Page Layout ⇒ flushright title for style article
flushright title for style article
I would like to create an article with the abstract and title information pinned to the first page of the text- and flushright instead of centered. When I use the \author \date as well as the \maketitle command to generate my title information on the same page as my abstract and article, I cannot find a way to set the title information flushright. Does anyone know how to do this?
Thanks,
Jbike
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
flushright title for style article
Code: Select all
\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}
Re: flushright title for style article
I cannot thank you enough.
Jbike