
我經常寫一些簡短的陳述,我希望以下幾行繼續在第一行的末尾。
有沒有一種快速的方法來做到這一點(需要數組?)
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}