UCWTeX: Vyčlenění formatitkolib
This commit is contained in:
parent
08df4dbd78
commit
87961754e8
2 changed files with 59 additions and 57 deletions
|
@ -22,6 +22,8 @@
|
|||
\pdfglyphtounicode{radicalbig}{221A}
|
||||
\pdfglyphtounicode{radicalBig}{221A}
|
||||
|
||||
\input formatitkolib.tex
|
||||
|
||||
|
||||
\input minim-xmp.tex
|
||||
\startmetadata
|
||||
|
@ -38,8 +40,6 @@
|
|||
\pdfgentounicode=1
|
||||
|
||||
|
||||
|
||||
|
||||
%Create an OutputIntent in order to correctly specify colours
|
||||
\immediate\pdfobj stream attr{/N 3} file{sRGB.icc}
|
||||
\pdfcatalog{%
|
||||
|
@ -61,52 +61,6 @@
|
|||
\parskip=5pt plus 3pt minus 2pt
|
||||
\parindent=0sp
|
||||
|
||||
\def\strong#1{{%
|
||||
\def\emph##1{{\bi{}##1}}%
|
||||
\bf{}#1%
|
||||
}}
|
||||
\def\emph#1{{%
|
||||
\def\strong##1{{\bi{}##1}}%
|
||||
\it{}#1%
|
||||
}}
|
||||
|
||||
|
||||
\def\superscript#1{$^{\hbox{#1}}$}
|
||||
\def\subscript#1{$_{\hbox{#1}}$}
|
||||
\newcount\fncount
|
||||
\fncount=1
|
||||
\def\fnmark{\superscript{\the\fncount}}
|
||||
\def\fn#1{\footnote\fnmark{#1}\advance\fncount by 1}
|
||||
\def\section#1#2{
|
||||
\vfil\supereject\vbox{\settextsize{20}\bf #1\kern 1em\relax#2
|
||||
\addtoc\tocsection{#1}{}{#2}
|
||||
}\nobreak\vskip 12pt
|
||||
}
|
||||
\def\subsection#1#2{
|
||||
\vskip 12pt\vbox{\settextsize{18}\bf #1\kern 1em\relax#2
|
||||
\addtoc\tocsubsection{#1}{}{#2}
|
||||
}\nobreak\vskip 7pt
|
||||
}
|
||||
\def\subsubsection#1#2{
|
||||
\vskip 10pt\vbox{\settextsize{16}\bf #1\kern 1em\relax#2
|
||||
\addtoc\tocsubsubsection{#1}{}{#2}
|
||||
}\nobreak\vskip 6pt
|
||||
}
|
||||
\def\subsubsubsection#1#2{
|
||||
\vskip 8pt\vbox{\settextsize{14}\bf #1\kern 1em\relax#2}\nobreak\vskip 5pt
|
||||
}
|
||||
\def\subsubsubsubsection#1#2{
|
||||
\vskip 7pt\vbox{\settextsize{12}\bf #1\kern 1em\relax#2}\nobreak\vskip 5pt
|
||||
}
|
||||
\def\subsubsubsubsubsection#1#2{
|
||||
\vskip 7pt\vbox{\settextsize{12}\bf #1\kern 1em\relax#2}\nobreak\vskip 5pt
|
||||
}
|
||||
\long\def\blockquote#1{\vskip\lineskip\vskip\parskip\hbox{\vrule\hskip5pt\vbox{#1}}}
|
||||
\def\strikeout#1{FIXME: Strikeout not implemented}
|
||||
\def\underline#1{FIXME: Underline not implemented}
|
||||
|
||||
|
||||
\def\mathbb#1{\hbox{\bb #1}}
|
||||
|
||||
|
||||
|
||||
|
@ -119,7 +73,7 @@
|
|||
}
|
||||
|
||||
% doporučen je horní, dolní a pravý okraj 25 mm, levý okraj 40 mm.
|
||||
% Protože doba tisknutí prací je už pryč, my máme tejně velkou stránku uprostřed papíru
|
||||
% Protože doba tisknutí prací je už pryč, my máme stejně velkou stránku uprostřed papíru
|
||||
\voffset 25mm
|
||||
|
||||
\hoffset 32.5mm
|
||||
|
@ -143,20 +97,12 @@
|
|||
%\def\h{\it} % hint
|
||||
%\def\bh{\bi} % bold hint
|
||||
|
||||
\def\N{{\bb N}}
|
||||
\def\R{{\bb R}}
|
||||
\def\E{{\bb E}}
|
||||
\def\O{{\cal O}}
|
||||
\def\SYM{{\rm SYM}}
|
||||
\def\frac#1#2{{{#1} \over {#2}}}
|
||||
|
||||
\def\mod{\mathrel{\rm mod}}
|
||||
|
||||
\settextsize{12}
|
||||
|
||||
|
||||
\def\unparskip{\vskip-\parskip}
|
||||
|
||||
\def\floatinsert#1{\par{
|
||||
\setbox0=\vbox{\boxmaxdepth=2pt\relax #1}
|
||||
\dimen0=\dimexpr \ht0 + \dp0 + \baselineskip + \pagetotal - \pageshrink \relax
|
||||
|
|
56
src/formatitko/tex/formatitkolib.tex
Normal file
56
src/formatitko/tex/formatitkolib.tex
Normal file
|
@ -0,0 +1,56 @@
|
|||
\def\strong#1{{%
|
||||
\def\emph##1{{\bi{}##1}}%
|
||||
\bf{}#1%
|
||||
}}
|
||||
\def\emph#1{{%
|
||||
\def\strong##1{{\bi{}##1}}%
|
||||
\it{}#1%
|
||||
}}
|
||||
|
||||
\def\N{{\bb N}}
|
||||
\def\R{{\bb R}}
|
||||
\def\E{{\bb E}}
|
||||
\def\O{{\cal O}}
|
||||
\def\SYM{{\rm SYM}}
|
||||
\def\frac#1#2{{{#1} \over {#2}}}
|
||||
|
||||
\def\superscript#1{$^{\hbox{\settextsize{0.8\textsize}#1}}$}
|
||||
\def\subscript#1{$_{\hbox{\settextsize{0.8\textsize}#1}}$}
|
||||
\newcount\fncount
|
||||
\fncount=1
|
||||
\def\fnmark{$^{\the\fncount}$}
|
||||
\def\fn#1{\footnote\fnmark{#1}\advance\fncount by 1}
|
||||
\def\section#1#2{
|
||||
\vfil\supereject
|
||||
\vbox{\settextsize{20}\bf #1\kern 1em\relax#2%
|
||||
\addtoc\tocsection{#1}{}{#2}%
|
||||
}\nobreak\vskip 12pt
|
||||
}
|
||||
\def\subsection#1#2{
|
||||
\vskip 12pt\vbox{\settextsize{18}\bf #1\kern 1em\relax#2%
|
||||
\addtoc\tocsubsection{#1}{}{#2}%
|
||||
}\nobreak\vskip 7pt
|
||||
}
|
||||
\def\subsubsection#1#2{
|
||||
\vskip 10pt\vbox{\settextsize{16}\bf #1\kern 1em\relax#2%
|
||||
\addtoc\tocsubsubsection{#1}{}{#2}%
|
||||
}\nobreak\vskip 6pt
|
||||
}
|
||||
\def\subsubsubsection#1#2{
|
||||
\vskip 8pt\vbox{\settextsize{14}\bf #1\kern 1em\relax#2}\nobreak\vskip 5pt
|
||||
}
|
||||
\def\subsubsubsubsection#1#2{
|
||||
\vskip 7pt\vbox{\settextsize{12}\bf #1\kern 1em\relax#2}\nobreak\vskip 5pt
|
||||
}
|
||||
\def\subsubsubsubsubsection#1#2{
|
||||
\vskip 7pt\vbox{\settextsize{12}\bf #1\kern 1em\relax#2}\nobreak\vskip 5pt
|
||||
}
|
||||
\long\def\blockquote#1{\vskip\lineskip\vskip\parskip\hbox{\vrule\hskip5pt\vbox{#1}}}
|
||||
\def\strikeout#1{FIXME: Strikeout not implemented}
|
||||
\def\underline#1{FIXME: Underline not implemented}
|
||||
|
||||
|
||||
\def\mathbb#1{\hbox{\bb #1}}
|
||||
|
||||
\def\unparskip{\vskip-\parskip}
|
||||
|
Loading…
Reference in a new issue