将文本设置为垂直一行

将文本设置为垂直一行

我想要一些看起来像这样的东西:

some words: ducks don't like gooses
            but gooses like ducks

我有这个代码

{\noindent some words: ducks don't like gooses \\ but gooses like ducks}\\[2\baselineskip]

这给了我这个

some words: ducks don't like gooses
but gooses like ducks

我怎样才能实现第一个目标?

答案1

像这样的事情应该可以做你想做的事:

\documentclass{article}
\begin{document}

    \begin{tabbing}
        Some words: \= ducks don't like gooses \\
        \> but gooses like ducks
        \end{tabbing}
\end{document}

相关内容