5

I added the makecell package in order to insert a line break within a column of tabular environment.

Everything perfect and smooth except for the shrinkage of the text dimension:

\documentclass[a4paper,12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{subscript}
\usepackage{xunicode,xltxtra,url,parskip}   %other packages for formatting
\usepackage[big]{layaureo}              
\usepackage{titlesec}                   
\usepackage[normalem]{ulem}             
\usepackage{parskip}
\usepackage{eqparbox,array}
\usepackage{lastpage}
\usepackage{libertine}
\usepackage{hyperref}
\usepackage{makecell}

\begin{document}
\begin{tabular}{L{mylhead}p{0.95\textwidth-\mylheadwd}}
\textsc{\thead[cr]{Prof.~Dr.\\A.~Einstein}} & \thead[cl]{Physics Department\\University of the Universe}\\
& e-mail: \href{mailto:einstein@phy.uniun.un}{einstein@phy.uniun.un}\\\multicolumn{2}{c}{} \\
\textsc{\thead[cr]{Prof.\\M.~Curie}} & \thead[cl]{Department of Physics \\University of the Universe}\\
& e-mail: \href{mailto:m.curie@phy.un}{m.curie@phy.un}\\
\end{tabular}
\end{document}

enter image description here

NB: I used 12pt in the documentclass. The dimensions of what is inside \thead is smaller than what is outside (the email address for example).

Is makecell resetting what specified in the preamble?

6

\thead (not \makecell) sets the font size to \footnotesize for some reason. Add to your preamble

\renewcommand\theadfont{\normalsize\scshape}

Note: The \scshape command is in this code because the O.P. contains \textsc{\thead{...}} commands

  • 1
    \scshape is not even necessary – Dr_Zaszuś Aug 2 '17 at 14:23
  • @Szczypawka: But the the image in the O.P.'s post uses small caps! – Bernard Aug 2 '17 at 14:26
  • 1
    Right. I didn't notice. But it's nice to add it as a comment to make the answer more general... – Dr_Zaszuś Aug 10 '17 at 14:10
  • Right. I didn't notice. But it's nice to add it as a comment to make the answer more general... – Dr_Zaszuś Aug 10 '17 at 14:11
  • Thanks for the solution! It works! Although I had to remove \scshape. It might be worth printing the command without this. Is there any reason this is not the default behaviour by the way? – tommy.carstensen Jan 5 '18 at 14:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.