How do I make an offset table?

David Niklas great123456 at mail.com
Thu Feb 3 05:09:32 CET 2022


On Sun, 30 Jan 2022 10:44:20 +0100 (CET)
Hartmut Henkel <hartmut_henkel at gmx.de> wrote:
> Hello Philip.
>
> On Sun, 30 Jan 2022, Philip Taylor (Hellenic Institute) wrote:
> > But that is a 100% vertical offset, is it not Hartmut ?
>
> oh yes, thanks & sorry, i should have better read the original mail.
> Then maybe this one:
>
> \documentclass{article}
> \begin{document}
> \newdimen\off\off=-0.5\baselineskip
> \begin{center}
>   \newcommand{\timetask}[2]{#1 & \\[\off] & #2\\[\off]}
>   \begin{tabular}{ll}
>     \timetask{08:00}{breakfast}
>     \timetask{13:00}{lunch}
>     \timetask{17:00}{dinner}
>   \end{tabular}%
> \end{center}
> \end{document}
>
> Best Regards, Hartmut

Thanks all! I decided to go with Hartmut's answer as it's the most
concise coding.

David



More information about the texhax mailing list.