我经常写一些简短的陈述,希望后面几行能够继续在第一行的结尾下面。
有没有快速的方法来做到这一点(需要数组?)
this is the first sentence:
continue here
and here too
答案1
您可以使用tabbing
环境。
\begin{tabbing}
this is the first sentence:\=\\
\>continue here\\
\>and here too\\
\end{tabbing}
答案2
\documentclass{article}
\usepackage{stackengine}
\usepackage{lipsum}
\parskip 2em
\newcommand\parbrlap[2]{\brlap{\parbox[t]{#1}{#2}}}
\begin{document}
this is the first sentence\parbrlap{2in}{continue here\\and here}
this is the first sentence\brlap{continue just here}
\tllap{Top left}\bllap{Bottom left}A demonstration%
\tclap{Top center}\bclap{Bottom center} of lapping%
\trlap{Top right}\brlap{Bottom right}.
this is the first sentence\parbrlap{2in}{\tiny\lipsum[3]}
\end{document}