I am currently working on my thesis report and would like to add affirmation to it. Following is the minimal code for the same :
\documentclass[]{article}
\begin{document}
\section*{Affirmation}
\addcontentsline{toc}{section}{Affirmation}
\hspace{1cm}something
\vspace{2cm}
\hspace{1cm}city, date \hspace{3cm}\line(1,0){200}
\newline
\hspace{8cm}(name)
\clearpage
\end{document}
It produces the following output
As it can be seen, the (name) should come below the line, But due to some reason the \hspace
before (name) isn't working.
Any help would in this regards would be really appreciated.
Best Answer
What your code does
From the unofficial LaTeX reference manual, sec. 20.1:
So let’s use
\hspace*
instead:What your picture says
The rest of the spacing is pretty different from your output because your screen shot was quite certainly not produced by the code you posted. With a bit of guesswork, I think this is closer to what you intended (note that you have to use the starred version of
\hspace
in several instances):What I would suggest
Taking your layout and thinking about an implementation, I would do something like this, which is cleaner than meddling with a lot of spacing manually: