2

I have researched and seen this type of question asked here before, but I was not able to figure out how to modify the solutions I saw there.

This is what I currently have:

I would like the line, and "Dr. Hill" to be aligned on the left, and I'm not sure but I think I would like the name a little closer to the line. This The current code I have is

\documentclass{book}
\usepackage{parskip}
\usepackage[doublespacing]{setspace}

\begin{document}

\begin{tabular}{@{}p{0in}p{2in}@{}}

& \rule{4cm}{0.4pt} \\
& Dr. Hill\\

\end{tabular}

\end{document}

I have tried to put it into a flushleft environment, but that seemed not to affect it at all.

Sorry I did not know what to tag this.

Helix
  • 135
  • Welcome to TeX SX! What is the reason for the 0width first column? – Bernard Jul 22 '19 at 20:30
  • @Bernard Thanks! I'm not familiar with the "tabular environment," so I just copied that and changed numbers around. A positive width seems to shift the line to the right, and 0 does what is shown. I tried negative, but that wasn't any better than 0. – Helix Jul 22 '19 at 20:34
  • It's simpler to remove it and use \noindent just before the tabular environment. – Bernard Jul 22 '19 at 20:37
  • Related: https://tex.stackexchange.com/questions/48152/dynamic-signature-date-line/501036 – schtandard Jul 23 '19 at 01:02

1 Answers1

1

If you want to stick to your tabular environment, simply remove the first (empty) column that is causing the unwanted indentation:

enter image description here

\documentclass{book}
\usepackage{parskip}
\usepackage[doublespacing]{setspace}

\begin{document}
Signature

\begin{tabular}{@{}p{2in}}
\rule{4cm}{0.4pt} \\
Dr. Hill\\
\end{tabular}

\end{document}

If you want to decrease the vertical distance between the line and the name, you can use the following:

enter image description here

\documentclass{book}
\usepackage{parskip}
\usepackage[doublespacing]{setspace}

\begin{document}
Signature

\begin{spacing}{1}
\begin{tabular}{@{}p{2in}} 
\rule{4cm}{0.4pt} \\
Dr. Hill\\
\end{tabular}
\end{spacing}

\end{document}
leandriis
  • 62,593