From 01175b30fd80ae3f3452960b60787c7f6df9b18d Mon Sep 17 00:00:00 2001 From: Peter Nerlich Date: Tue, 21 Sep 2021 23:39:42 +0200 Subject: [PATCH] fix timetable for 2 col parallel events --- timetable/timetable.sty | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/timetable/timetable.sty b/timetable/timetable.sty index 041e428..842acbb 100755 --- a/timetable/timetable.sty +++ b/timetable/timetable.sty @@ -222,7 +222,7 @@ } \addcase\dothis{1}{} \addcase\dothis{7}{} - \addcase\dothis{2}{\addtolength{\@startposx}{\@colwdth}\addtolength{\@offset}{\@colwdth}} + \addcase\dothis{2}{\addtolength{\@startposx}{\@colwdth}} \addcase\dothis{3}{ \addtolength{\@startposx}{\@colwidth-10pt} % \addtolength{\@offset}{60pt} @@ -333,6 +333,12 @@ \ifthenelse{#9 = 7}{ \addtolength{\@newcolleft}{10pt} }{} + \ifthenelse{#9 = 1 \OR #9 = 2}{ + \addtolength{\@newcolwidth}{-\@colwidth*\real{0.5}} + \ifthenelse{#9 = 2}{ + \addtolength{\@newcolleft}{+\@colwidth*\real{0.5}} + } {} + } {} \ifthenelse{#9 = 3}{ \addtolength{\@newcolwidth}{-\@colwidth*\real{0.5}} \addtolength{\@newcolwidth}{11pt} @@ -398,7 +404,7 @@ \put(\strip@pt\@newcolleft,\strip@pt\@newrowtop) {\begin{minipage}[t]{1.0\@newcolwidth}% \hspace*{\@offset} - \@ttfont\raggedright\color{@timetable#8text}{\@bottomstyle #6% + \@ttfont\raggedright\color{@timetable#8text}{\@bottomstyle #6% \vphantom{A}} \ifthenelse{\value{@printtimestamps} = 1}% {{\@timestyle \@fmtTime{@endHour}{@endMinute}}}%