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

se_*_*vel 2 latex page-break

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

Text
Author

Text
Author
Run Code Online (Sandbox Code Playgroud)

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

Ale*_*tov 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
Run Code Online (Sandbox Code Playgroud)