Quero colocar meu nome no final de um artigo, a alguns cm da margem direita. Achei que isso poderia funcionar, mas \hspace
é praticamente ignorado, a menos que eu coloque um espaço depois, o que parece um hack total. Como isso seria feito de maneira um pouco mais agradável?
\documentclass{article}
\begin{document}
\begin{flushright}
{My name \hspace{10cm} }
\end{flushright}
\begin{flushright}
{My name \hspace{10cm}}
\end{flushright}
\begin{flushright}
{My name \hspace{2cm}}
\end{flushright}
\begin{flushright}
{My name }
\end{flushright}
\end{document}
Responder1
Use a versão com estrela de \hspace
.
\documentclass{article}
\begin{document}
\begin{flushright}
{My name \hspace*{10cm} }
\end{flushright}
\begin{flushright}
{My name \hspace*{10cm}}
\end{flushright}
\begin{flushright}
{My name \hspace*{2cm}}
\end{flushright}
\begin{flushright}
{My name }
\end{flushright}
\end{document}