加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

LaTeX学习(8) 文本对齐方式

(2013-11-03 10:24:15)
标签:

latex文本对齐

it

分类: Other

2.9 Environments

  http://www.cosy.sbg.ac.at/~held/teaching/wiss_arbeiten/latex/lshort2e/node41.html

To typeset special purpose text, LATEX defines many different environments for all sorts of formatting: 
http://www.cosy.sbg.ac.at/~held/teaching/wiss_arbeiten/latex/lshort2e/img61.gif文本对齐方式" />  
Where name is the name of the environment. Environments can be called several times within each other as long as the calling order is maintained. 
http://www.cosy.sbg.ac.at/~held/teaching/wiss_arbeiten/latex/lshort2e/img62.gif文本对齐方式" />  

In the following sections all important environments are explained.


2.9.2 Flushleft, Flushright, and Center

www.cosy.sbg.ac.at/~held/teaching/wiss_arbeiten/latex/lshort2e/node43.html

The environments flushleft and flushright generate paragraphs which are either left or right aligned.   The center environment generates centred text. If you do not issue to specify linebreaks, LATEX will automatically determine linebreaks.


http://www.cosy.sbg.ac.at/~held/teaching/wiss_arbeiten/latex/lshort2e/img64.gif文本对齐方式" />  


http://www.cosy.sbg.ac.at/~held/teaching/wiss_arbeiten/latex/lshort2e/img65.gif文本对齐方式" />  


http://www.cosy.sbg.ac.at/~held/teaching/wiss_arbeiten/latex/lshort2e/img66.gif文本对齐方式" />

转自:http://blog.163.com/chen_dawn/blog/static/1125063201351734719153/

http://s11/middle/5e16f177072dcfd9b659a&690


解决方案代码:
    \documentclass{article}
    \usepackage{lipsum} % used to auto-generate-text
    \usepackage{titling}
    \usepackage{abstract}

    \title{Great Title Here}
    \author{Roy G. Biv}
    \date{\today}

    \pretitle{\begin{flushright}\LARGE} % makes document title flush right
    \posttitle{\end{flushright}}
    \preauthor{\begin{flushright}\large} % makes author flush right
    \postauthor{\end{flushright}}
    \predate{\begin{flushright}\large} % makes date title flush right
    \postdate{\end{flushright}}


    \renewcommand{\absnamepos}{flushright} % makes word ``Abstract'' flushright
    \setlength{\absrightindent}{0pt} % makes abstract go all the way to right
    \setlength{\absleftindent}{0.2\textwidth} % makes abstract skip the left quarter of page
    \renewcommand{\abstracttextfont}{\normalfont\small\raggedleft} % makes the abstract text flush right -- very ugly, don't do this!

    \begin{document}
    \maketitle
    \begin{abstract}
    \lipsum[1-2] % autogenerates abstract text; replace with yours
    \end{abstract}
    \lipsum[3-15] % auto-generate body text.
    \end{document}

转自:http://blog.sina.com.cn/s/blog_5e16f1770100grxj.html

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有