2009-12-02 77 views

回答

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 
+0

这就是我开得......如果你需要做这个的两倍多包这一切在一个'\ newcommand'或'\ newenvironment'或同等学历。 – dmckee 2009-12-02 17:38:39

+0

'\ raggedright','\ nobreak','\ hfill'的字母少于\ begin {someenviroment} ... \ end {someenviroment}。 – 2009-12-02 19:02:35

+0

谢谢你,hfill命令帮助我 – 2009-12-03 14:58:17