How would I write the following in LaTeX:
_Abstract_
XXXX This is the
XXXX abstract.
_Keywords_
XXXX keyword1, keyword1
In the above the letter X
stands for space.
indentation
How would I write the following in LaTeX:
_Abstract_
XXXX This is the
XXXX abstract.
_Keywords_
XXXX keyword1, keyword1
In the above the letter X
stands for space.
Best Answer
Using the
adjustwidth
environment from thechangepage
package it is possible to push the left/right margins of the text in by any given amount. The environment has the following syntax:where it pushes the left margin in by
<leftskip>
and the right margin in by<rightskip>
. To make the indentation align between the Abstract and Keywords, use the same<leftskip>
length in\hspace{<leftskip>}
.Here is a minimal working example:
The Abstract and Keyword titles were typeset as
\section*
, although this can be changed. For example, thearticle
document class provides anabstract
environment which typesets a heading and indents the abstract (like theadjustwidth
environment)\leftmargin
from the left and right. As such, you could use\hspace{\leftmargin}
to have the Keywords indent the same distance. For completeness, in order to obtain the same formatting then, you could useFinally,
lipsum
was merely used for dummy text.