I am currently having issues with vertial alignment based on the type of character being inputted. If I use a character that has some sort of descender or tail, it adjusts the height of the \hrule
that appears under the text. This can be seen in the image below, in which the p
of pppaaa
is shifting the \hrule
.
To create this, I am using a small custom command which is the following
\newcommand{\customHeading}[1] {
\begin{flushleft}
\LARGE{#1}
\end{flushleft}
\hrule height 1.5pt
}
Now, I could just use a \vspace{...}
, in which I pass a custom spacing parameter for each new \customHeading
but that seems a tad hacky. I was hoping there would be a better way of adjusting the alignment, in which I am open to suggestions!
Note - I looked at the following question, but using those ideas, I couldn't really fix my issue.
\strut
can help?\hrule
\rule
instead of the tex prmitive\hrule
then the spacing would be the same.\LARGE{#1}
should be\LARGE#1
size commands do not take an argument.\smash[b]{...}
. If the text extends to more than one line, apply the\smash
to only the last line.