Text Formattinghow to flush left the 'Abstract' ?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

how to flush left the 'Abstract' ?

Post by bkarpuz »

Dear All,

I am using the document class article, and I need to align the title abstract to the left-hand side, I used the following code but it did not work.

Code: Select all

\def\abstractname{\flushleft\textbf{Abstract}}
I would be glad if I can learn the correct code.

Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

how to flush left the 'Abstract' ?

Post by phi »

try

Code: Select all

\renewcommand*\abstractname{Abstract\hfill}
Besides, there is no "correct code" to achieve this. The centering of the abstract title is hard-wired in the article class, and so everything that changes this is a hack.
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

Re: how to flush left the 'Abstract' ?

Post by bkarpuz »

thanks, this works good, and I figured out how to modify it.
navidre
Posts: 1
Joined: Tue Apr 17, 2012 6:50 pm

how to flush left the 'Abstract' ?

Post by navidre »

This worked for me:

Code: Select all

\renewcommand*\abstractname{\flushleft\textbf{Abstract}\hfill}
Last edited by Stefan Kottwitz on Tue Apr 17, 2012 8:26 pm, edited 1 time in total.
Post Reply