发布时间:2010-01-08 15:10:01
文章类别:小技巧
原文地址:http://blog.sina.com.cn/s/blog_5e16f1770100grxj.html

QQ群:91940767/145316219/141877998/80300084/194770436
淘宝店:http://latexstudio.taobao.com
技巧续篇:http://latexstudio.net/
常见数学公式问题集下载

效果图:
LaTeX技巧213:标题居右的制作方法


解决方案代码:
\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}

点赞(0)

评论列表 共有 0 条评论

暂无评论
立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部