Good morning everyone!
Still for my theater script template, I created the \move command for captions, but I can't set the carriage return (see figure). However, the text must keep in line with the rest. Is this possible? Thank you very much.
\documentclass[a4paper,12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\newcommand\move{\par\vskip0mm \noindent\makebox[35mm][l]{}\hangindent=35mm\textsl}
\def\declname#1#2{%
\def#1{\vskip5mm \noindent\hbox to35mm{#2\hss}\hangindent=35mm \ignorespaces}}
\declname \JAMES {JAMES}
\begin{document}
\JAMES
Lorem ipsum dolor sit amet, consectetuer adipiscing elit lorem ipsum dolor.
\move{(Duis autem vel eum iriure dolor in hendrerit.)}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
\move{(Ut wisi enim ad minim veniam, quis nostrud exercitation ullamcorper)}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit lorem ipsum dolor.
\end{document}



\parat the end of your\movedefinition, but why is this all defined using primitves such as\vskip,\hangindent, rather than a latex list? – David Carlisle Nov 24 '22 at 14:40movecommand to:\newcommand\move[1]{\par\vskip0mm\noindent\makebox[35mm][l]{}\hangindent=35mm\textsl{#1}\par\noindent\makebox[35mm][l]{}\hangindent=35mm}. – dexteritas Nov 24 '22 at 14:46\\to end a line is appropriate. Redefining the carriage return can be dangerous, and is not a good idea. – barbara beeton Nov 24 '22 at 15:44\move[aaa}is always followed by more text, just using\par(without a following\noindentas in the previous comment)is preferable. – David Carlisle Nov 24 '22 at 18:29\paris preferable. But the other is possible, and I believe that it's good to know when the double backslash may be acceptable in order to know when not to use it. Note that I don't intend to post this as an answer. – barbara beeton Nov 24 '22 at 21:43