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

时间:2009-12-02 15:11:38

标签: latex page-break

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

Text
Author

Text
Author

其中Text是左对齐的2-10行的块,而Author是右边对齐的一行,我需要这些Text + Author块始终出现在同一页面上。

1 个答案:

答案 0 :(得分:5)

  • 使用\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
相关问题