[Tex/LaTex] how to center align a word with bold and underline

formattinghorizontal alignment

I need to center align a word with bold and underlines.

I've tried with \textbf and \centerline in all possible combinations but no use.

I am using \documentclass[12pt]{report} for my report doc.

Best Answer

The following contains a number of solutions. Please pick up the one you want.

\documentclass[12pt]{report}

\usepackage{ulem}

\begin{document}

\centerline{I need to center align a \uline{\bfseries word} with bold and underlines.}

\bigskip

\begin{center}
  I need to center align a\\
  \uline{\bfseries word}\\
  with bold and underlines.
\end{center}


\bigskip

I need to center align a 

\centerline{\uline{\bfseries word}}

with bold and underlines.

\end{document}

Here is the output.

enter image description here