首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >LaTeX:如何创建左对齐段落和右对齐段落作者

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

Stack Overflow用户
提问于 2009-12-02 23:11:38
回答 1查看 8.2K关注 0票数 2

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

代码语言:javascript
复制
Text
Author

Text
Author

其中文本是一个2-10行左对齐的块,作者是一行对齐到右,我需要这些Text+Author块总是出现在同一页。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2009-12-03 00:15:18

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

代码语言:javascript
复制
{\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
票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/1833512

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档