TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After some brute-force attempts I found out that I could right-align two lines in a longtabu cell as follows:





\newcommand{\desc}[2]{ \begin{minipage}[t]{6em} \hfill \textbf{#1}\\  \footnotesize \raggedleft #2 \end{minipage} }

\begin{longtabu} to \linewidth{r l}
 \desc{Frequency}{kHz} & \bfseries Callsign \\ \toprule
2500 & WWV \\
3330 & CHU


Both lines aligned to the right

When I change the second line to use \hfill it is aligned to the left:

\newcommand{\desc}[2]{ \begin{minipage}[t]{6em} \hfill \textbf{#1}\\  \footnotesize \hfill #2 \end{minipage} }

With hfill for both lines

And if I try to use \raggedleft for the whole minipage, like this:

\newcommand{\desc}[2]{ \begin{minipage}[t]{6em} \raggedleft \textbf{#1}\\  \footnotesize  #2 \end{minipage} }

then the document does not compile anymore. Why not? In any Office program I would just select the cell content and press the “right aligned” button, is LaTeX really that complicated?

share|improve this question
Welcome to TeX.SX! – c.p. Feb 5 '13 at 14:25

It's not entirely clear what you want the output to look like, but it seems you are after using \multicolumn to adjust the alignment of a single cell, for example




    \bfseries Frequency & \bfseries Callsign \\
    \multicolumn{1}{l}{kHz} \\
  2500 & WWV \\
  3330 & CHU \\


Note that longtabu (and tabu) have some 'unusual' interface choices, and for creating a demo I've stuck with the standard tabular environment.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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