Commit f0659344 authored by Matej Čižik's avatar Matej Čižik Committed by Jan Kasprzak
Browse files

istimetables.tex: pridany 12. parameter na kod za lomitkom (zalamuje sa za...

istimetables.tex: pridany 12. parameter na kod za lomitkom (zalamuje sa za nim) a hyphenation Makroekonomie
parent c7703dfa
Loading
Loading
Loading
Loading
+23 −6
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@
\usepackage{graphicx, calc, ifthen}
\usepackage{xcolor}
\usepackage{longtable}
\hyphenation{An-glič-ti-na teorie}%{ algoritmů}
\hyphenation{An-glič-ti-na teorie Makro-eko-no-mie}%{ algoritmů}
\uchyph=1
\raggedright
\frenchspacing
@@ -245,6 +245,7 @@
\def\fseventh{\seventhfont}
\def\feighth{\eighthfont}
\def\fnineth{\ninethfont}
\def\ftwelweth{\ninethfont}
% frame style macro (size, line thickness, dashed lines, gray background)
\def\fs#1#2{%
  \default % if there is no style specified, use the default
@@ -264,6 +265,7 @@
      \def\feighth{\heighthfont}
      \setlength{\seighth}{\heighthskip}
      \def\fnineth{\hninethfont}
      \def\ftwelweth{\hninethfont}
  \fi
  \if e\tenth  %%  lower half frame
      \setcounter{tempheight}{\value{rowheight}/2-\value{sep}/2}
@@ -275,6 +277,7 @@
      \def\feighth{\heighthfont}
      \setlength{\seighth}{\heighthskip}
      \def\fnineth{\hninethfont}
      \def\ftwelweth{\hninethfont}
  \fi
  \if x\tenth  %% upper third frame
      \setcounter{tempheight}{\value{rowheight}/3-1}
@@ -286,6 +289,7 @@
      \def\feighth{\teighthfont}
      \setlength{\seighth}{\teighthskip}
      \def\fnineth{\tninethfont}
      \def\ftwelweteth{\tninethfont}
  \fi
  \if y\tenth  %% middle third frame
      \setcounter{tempheight}{\value{rowheight}/3-1}
@@ -298,6 +302,7 @@
      \def\feighth{\teighthfont}
      \setlength{\seighth}{\teighthskip}
      \def\fnineth{\tninethfont}
      \def\ftwelweth{\tninethfont}
  \fi
  \if z\tenth  %% lower third frame
      \setcounter{tempheight}{\value{rowheight}/3-1}
@@ -309,13 +314,14 @@
      \def\feighth{\teighthfont}
      \setlength{\seighth}{\teighthskip}
      \def\fnineth{\tninethfont}
      \def\ftwelweth{\tninethfont}
  \fi
}

% \first - \eleventh are first - eleventh parameters used in \pp

% how to deal with more than 9 parameters? here is a nice solution:
\def\nextparam#1#2#3{\def\nineth{#1}\def\tenth{#2}\def\eleventh{#3}%
\def\nextparam#1#2#3#4{\def\nineth{#1}\def\tenth{#2}\def\eleventh{#3}\def\twelweth{#4}%
      \ps}
\def\pp#1.#2-#3.#4:#5#6#7#8{\def\first{#1}%
    \def\second{#2}\def\third{#3}\def\fourth{#4}\def\fifth{#5}
@@ -375,21 +381,32 @@
%%  \settowidth{\pptmp}{\ffifth{\fifth}\ \ %
%%      \fnineth{\nineth}}%
% uprava kvuli prekryvu s 5. parametrem:
  \settowidth{\pptmp}{\ffifth{\fifth}\fnineth{\nineth}}%
  \settowidth{\pptmp}{\ffifth{\fifth}\fnineth{\nineth\twelweth}}%
  \ifthenelse{\lengthtest{\pptmp > \ppwidth}}%
    {
      \newbox\prekryv
      \setbox\prekryv=\vbox{\hbox{\ffifth{\fifth}}\hbox{\fnineth{\nineth}}}
      \setbox\prekryv=\vbox{\hbox{\ffifth{\fifth}}\hbox{\fnineth{\nineth\twelweth}}}
	\settowidth{\pptmp}{\fnineth{\scalefont{0.75}\nineth\twelweth}}%
	\ifthenelse{\lengthtest{\pptmp > \ppwidth}}%
	{
      \put(\value{tempx},\value{tempy}){%
        \makebox(\value{tempxx},\value{rowheighti})[tr]{%
           \mbox{\raisebox{-\ht\prekryv}[0pt][0pt]%
			{\textcolor{\ninethcolor}{\fnineth{\nineth}}}%
			{\textcolor{\ninethcolor}{\fnineth{\parbox[t]{\ppwidth}{\scalefont{0.75}\nineth\ \twelweth}}}}%
           }}}%	
	}%
	{
      \put(\value{tempx},\value{tempy}){%
        \makebox(\value{tempxx},\value{rowheighti})[tr]{%
           \textcolor{\ninethcolor}{\fnineth{\nineth}}}}%
           \mbox{\raisebox{-\ht\prekryv}[0pt][0pt]%
			{\textcolor{\ninethcolor}{\fnineth{\scalefont{0.75}\nineth\twelweth}}}%
           }}}%	
	}%
    }%
    {
      \put(\value{tempx},\value{tempy}){%
        \makebox(\value{tempxx},\value{rowheighti})[tr]{%
           \textcolor{\ninethcolor}{\fnineth{\nineth\twelweth}}}}%
    }%	
%%%%%%%%%%%%%%%% place the FIFTH parameter at the top left
      \put(\value{tempx},\value{tempy}){%