我想在命令中输入一个段落,每次它转到新行时,都会留下空格和水平线以供翻译。我无论如何也想不出如何自动执行此操作。我手动创建了一个版本。如您所见,手动执行此操作并不优雅。
\documentclass[a4paper]{article}
\newcommand{\translationlines}{\vspace*{2em}\hrule\vspace*{2em}\hrule\vspace*{2em}}
\begin{document}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed id dictum nisi,
\translationlines
\noindent nec interdum enim. Phasellus eros lacus, interdum ac eros et, luctus suscipit
\translationlines
\noindent risus. Suspendisse accumsan consequat libero, eleifend sagittis lorem aliquam
\translationlines
\noindent ut. Nulla facilisi. Ut ante enim, pharetra ut faucibus nec, sagittis ac leo.
\translationlines
\noindent Nunc sollicitudin facilisis velit, a elementum est convallis quis. Sed eget leo
\translationlines
\end{document}
答案1
在优秀答案的帮助下https://tex.stackexchange.com/a/261496/36296您可以错过双下划线:
\documentclass[a4paper]{article}
\usepackage{ulem}
\setlength{\ULdepth}{2.5\baselineskip}
\makeatletter
\renewcommand*{\uuline}{%
\bgroup
\UL@setULdepth
\markoverwith{%
\lower\ULdepth\hbox{%
\kern-.03em%
\vtop{%
\hrule width.2em%
\kern\ULdepth
\hrule
\kern\ULdepth
}%
\kern-.03em%
}%
}%
\ULon
}
\makeatother
\begin{document}
\noindent\uuline{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed id dictum nisi, nec interdum enim. Phasellus eros lacus, interdum ac eros et, luctus suscipit risus. Suspendisse accumsan consequat libero, eleifend sagittis lorem aliquam ut. Nulla facilisi. Ut ante enim, pharetra ut faucibus nec, sagittis ac leo. Nunc sollicitudin facilisis velit, a elementum est convallis quis. Sed eget leo}
\end{document}