# Adding an underline to the word “Abstract” in \abstract?

To meet the requirements of the university, I need to be able to underline the word Abstract in my dissertation? Can anyone provide me with some guidance on how best to do this using the apa6 class? Thanks in advance for your help.

-

You can just do

\renewcommand{\abstractname}{\underline{Abstract}}


This may not work well with other language settings (that is, an automated adaptation), but it doesn't require any packages.

-
I tried using this option, and I was unable to make it work. –  MorganHill May 19 '12 at 19:07
@MorganHill: My suggestion is virtually identical to @_GozaloMedina's, so if his worked, mine should to. I tested it with his MWE. Not sure what you're doing wrong. –  Werner May 19 '12 at 20:02

You can use the etoolbox package to patch the \maketitle command responsible for typesetting the abstract:

\documentclass[doc]{apa6}
\usepackage{etoolbox}

\title{The Title}
\threeauthors{John and Jim}{Mary and Sue}{Nick}
\threeaffiliations{U of A}{U of B}{U of C}
\abstract{text}

\patchcmd{\maketitle}{\abstractname}{\underline{\abstractname}}{}{}

\begin{document}

\maketitle

\end{document}


-
Thanks for responding to my query. This worked perfectly. Thanks! –  MorganHill May 19 '12 at 19:08
@MorganHill: You're welcome. Please consider accepting the answer that you think best solved your problem In case of doubt, please see How do you accept an answer?. –  Gonzalo Medina May 19 '12 at 20:00