3

I have a problem. How can I put this text perfectly aligned on the right side, like the trying of the screenshot?

Screenshot #1

Is there a smarter way?

\noindent 
\hspace*{8cm}
Artigo apresentado ao curso de graduação em\\
\hspace*{8cm}
Engenharia Civil da Universidade Católica de\\
\hspace*{8cm}
 Brasília, como requerimento parcial para a\\
\hspace*{8cm}
obtenção do Título de Bacharel em Engenharia\\ 
\hspace*{8cm}
Civil.
2
  • 1
    Place it in a minipage using \raggedright inside and an \hfill in front of the minipage. – Johannes_B Aug 23 '15 at 15:39
  • 1
    @Johannes_B I was typing my answer while you posted your comment, which is essentially identical. I have changed the authorship of my answer as "community wiki". Hope this is alright for you. – RHertel Aug 23 '15 at 15:47
5

As suggested in the comment by @Johannes_B you could wrap the text into a minipage and use \hfill before the definition of the minipage, in order to place it on the right side of the page.

enter image description here

\documentclass{article}
\usepackage[T1]{fontenc} % for the rendering of accented characters
\usepackage[utf8]{inputenc}
\begin{document}
\hfill\begin{minipage}{0.6\textwidth}
\raggedright % obviates the need for explicit linebreaks
Artigo apresentado ao curso de graduação em
Engenharia Civil da Universidade Católica de
Brasília, como requerimento parcial para a
obtenção do Título de Bacharel em Engenharia
Civil.
\end{minipage}
\end{document}
3
  • 1
    Almost identical to the example i had ready :-) – Johannes_B Aug 23 '15 at 15:50
  • 1
    It worked! Thank you @Johannes_B and RHertel !! – Pedro Felipe Oliveira Aug 23 '15 at 16:08
  • @PedroFelipeOliveira, if answer worked for you, why then you didn't accept it? – Zarko Aug 28 '15 at 16:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.