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}
-
Thank you, Steven. But if I enter a longer name, for example "MANZAREK" the character name invades the line text.– maxxfurCommented Jun 24, 2020 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
1in
value, as well. Commented Jun 24, 2020 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.
-
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.– maxxfurCommented Jun 24, 2020 at 12:36
-
dramatist
package - 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.