3

The desired result should be as follows

enter image description here

What I've tried so far is \raggedleft and tabular with r. But the results are not as desired.

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{helvet}

\begin{document}

\fontfamily{phv}\selectfont

{\raggedleft\fontsize{40}{40}\selectfont Journal\par}
{\raggedleft\fontsize{32}{32}\selectfont 2021\par}
{\raggedleft\fontsize{24}{24}\selectfont Vol. 1\par}
{\raggedleft\fontsize{12}{12}\selectfont Issue 1\par}

\begin{tabular}{r}
{\fontsize{40}{40}\selectfont Journal}\\
{\fontsize{32}{32}\selectfont 2021}\\
{\fontsize{24}{24}\selectfont Vol. 1}\\
{\fontsize{12}{12}\selectfont Issue 1}
\end{tabular}

\end{document}

This is what I get

enter image description here

3
  • And with {r@{}} as the tabular preamble?
    – Bernard
    Commented Oct 30, 2021 at 9:43
  • you are using lining digits 0-9 all have the same width so that columns of numbers look right, this means that 1 has a lot of white space within the actual character box about which TeX has no information. So you could switch to a font with proportional digits or add a small negative space to adjust by eye. Commented Oct 30, 2021 at 9:44
  • @Bernard {r@{}} has no effect
    – wolfrevo
    Commented Oct 30, 2021 at 9:47

1 Answer 1

5

The digits you are using are designed so that tabular columns of numbers line up, so they all have the same width. To achieve this 1 has a lot of white space within the character box. Tex has no control over that. You could choose a font with proportional digits where each digit has its "natural" width, or as here simply adjust by eye.

enter image description here

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{helvet}
\usepackage{microtype}

\begin{document}

\fontfamily{phv}\selectfont

{\raggedleft\fontsize{40}{40}\selectfont Journal\par}
{\raggedleft\fontsize{32}{32}\selectfont 2021\kern-.13em\par}
{\raggedleft\fontsize{24}{24}\selectfont Vol. 1\kern-.1em\par}
{\raggedleft\fontsize{12}{12}\selectfont Issue 1\kern-.01em\par}

\begin{tabular}{r@{\vline}}
{\fontsize{40}{40}\selectfont Journal}\\
{\fontsize{32}{32}\selectfont 2021\kern-.13em}\\
{\fontsize{24}{24}\selectfont Vol. 1\kern-.1em}\\
  {\fontsize{12}{12}\selectfont Issue 1\kern-.01em}\\
\end{tabular}

\end{document}
1
  • Thanks a lot for your answer!
    – wolfrevo
    Commented Oct 30, 2021 at 11:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .