gpt4 book ai didi

LaTeX:如何创建左对齐段落和右对齐段落作者

转载 作者:行者123 更新时间:2023-12-02 01:22:34 24 4
gpt4 key购买 nike

请帮我创建具有以下结构的 LaTeX 文档

Text
Author

Text
Author

其中文本是左对齐的 2-10 行 block ,作者是右对齐的一行,我需要这些文本+作者 block 始终出现在同一页面上。

最佳答案

  • 使用\nobreak避免分页。
  • 使用\raggedright进行左对齐,使用{}来限制宏\raggedright的效果和 } 之前的空行。
  • 使用 \hfill 将作者向右移动。

{\raggedright
Please help me in creating LaTex document with the following structure
Where Text is a block of 2--10 lines left aligned and Author is one line aligned to the right, and I need these Text+Author blocks to always appear on the same page.

}

\nobreak
\hfill se\_pavel

{\raggedright
Please help me in creating LaTex document with the following structure
Where Text is a block of 2--10 lines left aligned and Author is one line aligned to the right, and I need these Text+Author blocks to always appear on the same page.

}

\nobreak
\hfill se\_pavel

关于LaTeX:如何创建左对齐段落和右对齐段落作者,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1833512/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com