Good morning, everybody.
I'm really going crazy to get a correct code to reproduce what you see in the picture (made with Word). Can someone help me? Thank you.
2 Answers
Here I use a list making environment, so that it will break nicely at page boundaries, unlike approaches that use, for example, tabular environments.
The optional argument to mylist is the indent width (default 1in).
\documentclass{article}
\usepackage{enumitem,lipsum}
%\usepackage[pass,showframe]{geometry}
\let\svitem\item
\newenvironment{mylist}[1][1in]
{%
\def\mylistindent{#1}%
\renewcommand\item[1][---]{\svitem[{\makebox[\mylistindent][l]{##1}}]}
\begin{description}[leftmargin=\mylistindent,labelsep=0pt]%
}{%
\end{description}%
}
\begin{document}
\begin{mylist}[.8in]
\item[JIM]\lipsum[4]
\item[ROBBIE]\lipsum[2]
\end{mylist}
\end{document}
- 237,551
-
Thank you, Steven. But if I enter a longer name, for example "MANZAREK" the character name invades the line text. – maxxfur Jun 24 '20 at 14:35
-
@masfur That is what the optional argument is for...make the value as big as needed for the particular list you are constructing. Also, you can change the default
1invalue, as well. – Steven B. Segletes Jun 24 '20 at 15:33 -
Unfortunately you did not give the faintest information what you tried and what exactly you want. So, here is just a wild guess at what could be a possible solution.
\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
\noindent Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
\bigskip
\begin{tabular}{lp{0.7\textwidth}}
JIM & Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. \
ROBBIE & Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. \
MANZAREK & Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. \
JOHN & Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. \
\end{tabular}
\bigskip
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
\end{document}
Next time, I would recommend you provide a working minimal example and a clear statement of what you want to achieve and where the problems lie.
- 1,995
-
You're right. I've been reading so many Latex tutorials and now I'm really confused. I'm a drama writer and I've always written my own scripts with Word, without getting what I want well. I think using Latex can achieve my goal. – maxxfur Jun 24 '20 at 12:36
-
I followed the instructions of this post First I was excited, but then I saw that the code is too difficult! – maxxfur Jun 24 '20 at 12:40

dramatistpackage - which is however quite simple and a bit old, you may have better results with one of the other packages from the page linked above. – Marijn Jun 24 '20 at 13:12\newcommand\character[1]\par\everypar{\hangindent=0.3\linewidth\hangafter=1}\parskip=0.667\baselineskip plus 2pt\large\makebox[0.3\linewidth][r]{\MakeTextUppercase{\1}:\hskip0.1\linewidth }}.
– maxxfur Jun 25 '20 at 13:44