1 % -*- coding: utf-8 -*-
2 \NeedsTeXFormat{LaTeX2e}
3 \ProvidesClass{fnprep}[2011/11/28 Modern Poland Foundation Report style]
6 %\RequirePackage{geometry}
7 \RequirePackage{setspace}
8 \RequirePackage{type1cm}
9 \RequirePackage{amssymb}
10 \RequirePackage{amsmath}
11 \RequirePackage{paralist}
12 \RequirePackage[normalem]{ulem}
13 \RequirePackage{xifthen}
14 \RequirePackage{environ} % environments with \BODY, for wyimek
16 \PassOptionsToClass{landscape,twoside}{report}
17 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
21 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
24 \usepackage[explicit]{titlesec}
27 \usepackage[MeX]{polski}
29 \usepackage{longtable}
37 \usepackage[xetex]{graphicx}
38 \usepackage[silent]{fontspec} % silent - no warnings, quiet - warn only to log
41 %\usepackage{trimspaces} % imported by something else?
43 \usepackage[overload]{textcase}
45 \usepackage[colorlinks=false,linkcolor=white,pdfborder={0,0,0},setpagesize=false,urlcolor=black,xetex,linktocpage]{hyperref}
46 %\usepackage{hyperref}
48 \let\footnote=\endnote
49 \newcommand{\printfootnotes}{%
51 \markboth{\MakeTextUppercase{Przypisy}}{}
52 \renewcommand{\enoteheading}{}
57 \def\enotesize{\normalsize}
65 \usepackage[stable]{footmisc}
67 %http://tex.stackexchange.com/questions/40510/set-first-paragraph-no-indentation-after-re-definition-of-section#40512
70 \counterwithout{footnote}{chapter}
71 \usepackage{microtype}
77 \emergencystretch=30pt
82 %%%%%%%%%%%%%%%%%%%%%%% Paper size
87 top=\dimexpr22.578mm+28pt\relax,%
91 headsep=47pt,% 2x grid(14) - 9 (text font size) + 28pt
93 \setlength\columnsep{10mm}
94 \newlength\szpaltawidth
95 \setlength\szpaltawidth{80mm}
97 %%%%%%%%%%%%%%%%%%%%%%%% Fonts
100 ItalicFont = Lato-Italic,
101 BoldFont = Lato-Bold,
102 BoldItalicFont = Lato-BoldItalic,
103 Ligatures={Common, Contextual},
104 SmallCapsFont = Lato-Regular,
105 SmallCapsFeatures={Letters=SmallCaps},
108 \newfontface\latoblack{Lato-Black}
109 \newfontface\headfont{LeagueGothic-Regular}
112 \setlength{\parindent}{3mm}
113 \setlength{\parskip}{0mm}
115 % \normalsize – normalny tekst
116 % \large - normalny tekst headingowy (nie wiem czy jest inny niz normalsize?)
117 % \Large - troche większy tekst headingowy (spis treści)
118 % \huge - pagina tytuł rozdziału
119 % \Huge - naglowek na szarym tle
121 % grid 14, normal 9/12,
122 % sródtytuły leage 10/8 14
123 % XXXX pagina: (mała? nie uzywana!)league 8, kerning 60 -› (30, 90), przy nowoczesna polska 100
124 % pagina: 28pt od top: 10mm CMY 0 75 100
125 % kolumna-›teskt base 2xgrid
126 % tabela header 14pt, LEAGE GOT RE [pad: left:3mm, 1,41mm od góry
128 % tabela kreska 0.7pt pomarancz, potem 0.5pt też pomarańcz
129 % tabela tekst: 8.5/11pt lato regular (wtedy pomaranczem wyróżnienia)
131 % (bez gridu) (abo 8.5/11pt reglar) , poza interlinią 1mm odpycha enter
134 % footer LATO BLACK 15 -- pagina(strona) TYLKO Z PRAWEJ
135 % footer srodek. league gothic 10 k70
136 % toc:wstep leag gothic 38 kern 75
137 % toc: 11pkt na grid 7
138 % marginesy: top: 22.578 mm bottom 24.439mm rynna 10; out 20mm, ins
140 % sród->text base 2xgrid
141 % toc: wstep->text 3xgrid,
142 % toc: left: 25mm right: 25mm
143 % toc długość tytułu (łamanie) 10m od końca
144 % toc: od numeru enspace (indent)
145 % footer 2xgrid od dołu 9.7mm
146 % master toc: margin left: -width - 10 / 2 ; 136mm [3x łam]
147 % footnotes SOURCE SANS PRO 8/11pt semibold na gridzie (ale nie musi) spacing
149 % master toc: 11pt/21pt leage na pół-grid (jak ejst mniejsze
150 % --licencja to 10pt!)
151 % master toc head 15pt,
152 % master toc wpisy: 11pt - (można 11pt + black)
153 % TYtUL leag gothi 46pt
156 \newcommand{\headingbig}{\fontsize{28}{28}\selectfont}
157 \renewcommand{\Huge}{\fontsize{38}{42}\selectfont}
158 \renewcommand{\huge}{\fontsize{15}{21}\selectfont}
159 \renewcommand{\LARGE}{\fontsize{14}{14}\selectfont}
160 \renewcommand{\large}{\fontsize{10}{14}\selectfont} % 21
161 \renewcommand{\Large}{\fontsize{11}{14}\selectfont}
162 \newcommand{\TOCtext}{\fontsize{11}{21}\selectfont}
163 \renewcommand{\normalsize}{\fontsize{9}{14}\selectfont}
164 \renewcommand{\footnotesize}{\fontsize{8}{10.5}\selectfont} %
165 \renewcommand{\scriptsize}{\fontsize{8.5}{11}\selectfont}
166 \newcommand{\titlesize}{\fontsize{46}{46}\selectfont}
167 \newcommand{\footerbig}{\fontsize{15}{15}\selectfont}
168 \newcommand{\footernormal}{\fontsize{10}{10}\selectfont}
171 %% \renewcommand{\normalsize}{\fontsize{10.4}{14.28}\addfontfeature{LetterSpace=3.0}\selectfont}
172 %% \renewcommand{\large}{\fontsize{14}{14.28}\addfontfeature{LetterSpace=3.0,Letters=Uppercase}\selectfont} % srodtytul
173 %% \renewcommand{\small}{\fontsize{8}{14.28}\addfontfeature{LetterSpace=5.0}\selectfont} % paginy
174 %% \renewcommand{\Large}{\fontsize{15}{21.42}\addfontfeature{LetterSpace=0.0}\selectfont} % tytuł rozdziału
175 %% \renewcommand{\huge}{\fontsize{18}{28.56}\addfontfeature{LetterSpace=1.0}\selectfont} % wyimek
176 %% \renewcommand{\Huge}{\fontsize{24}{40}\selectfont} % cover
177 %% \renewcommand{\footnotesize}{\addfontfeature{LetterSpace=1.0}\fontsize{9}{10.74}\selectfont}
180 % • • • • • • • • Multicols •
181 \newif\ifinmulticols \inmulticolsfalse
183 \newcommand{\inmulticols}[0]{\ifinmulticols{}\else\begin{multicols*}{3}\inmulticolstrue\fi}
184 \newcommand{\outmulticols}[0]{\ifinmulticols{}\end{multicols*}\clearpage\inmulticolsfalse\else\fi}
186 % • • • • • • • • • COLORS • •
187 \definecolor{stoK}{cmyk}{0,0,0,1}
188 \definecolor{theme}{gray}{.3}
189 \definecolor{headcolor}{HTML}{EA5F21}
190 \definecolor{graybg}{cmyk}{0,0,0,0.55}
193 \arrayrulecolor{headcolor}
195 % • • • • • • • • METADATA • •
198 \newcommand{\@address}{}
199 \newcommand{\address}[1]{\renewcommand{\@address}{#1}}
202 % • • • • • • • • HEADINGS • •
203 %% this will go to \leftmark
208 \renewcommand{\chaptermark}[1]{\markboth{\MakeTextUppercase{#1}}{}}
209 % on the odd right : chapter title
210 \fancyhead[LE,RO]{{\color{headcolor}\headfont\headingbig\leftmark}}
211 \fancyfoot[RO]{{\color{gray}\latoblack\footerbig\thepage}}
212 \fancyfoot[RE]{{\color{gray}\headfont\footernormal\MakeTextUppercase{\@title}}}
213 \fancyfoot[LO]{{\color{gray}\headfont\footernormal\MakeTextUppercase{\@address}}}
215 \renewcommand{\headrulewidth}{0pt}
216 \renewcommand{\footrulewidth}{0pt}
219 %%%%%%%%%% Nagłówek pierwszej strony rozdziału
221 \fancypagestyle{plain}{%
223 \fancyfoot[RO]{{\color{gray}\latoblack\footerbig\thepage}}
224 \fancyfoot[LO]{{\color{gray}\headfont\footernormal\MakeTextUppercase{\@address}}}
228 % • • • • • • • • TITLES • • •
229 % no chapter numbers and no ``Rozdział'' word
230 %\renewcommand{\thechapter}{}
231 %\renewcommand{\chaptername}{}
233 % • chapter • • • • • • • • • •
236 %% \newsavebox{\chaptitlebox}
237 %% \newenvironment{chaptertitlebox}%
238 %% {\begin{lrbox}{\chaptitlebox}\begin{minipage}{\dimexpr\linewidth-0.5\columnsep\relax}}%
239 %% {\vfill\end{minipage}\end{lrbox}%
240 %% \vspace{-5mm}\colorbox{graybg}{\usebox{\chaptitlebox}}%
243 %% \begin{lrbox}{\@tempboxa}\begin{minipage}[t][\dimexpr\textheight-0.5cm\relax]{\dimexpr\linewidth-0.5\columnsep\relax}}{\end{minipage}\end{lrbox}%
244 %% \colorbox{graybg}{\raisebox{1cm}{\usebox{\@tempboxa}}}
248 \newcommand{\nochapternumbers}{
249 \renewcommand{\thesection}{\@arabic \c@section .}
254 \startcontents[chapter]
256 \newcommand{\chapterblock}[1]{%
258 \addcontentsline{toc}{chapter}{#1}%
259 \setlength{\fboxsep}{0pt}%
260 \noindent\colorbox{graybg}{%
263 \begin{minipage}[t][\dimexpr\textheight-28pt\relax]{\dimexpr\szpaltawidth-5mm\relax}%
264 \Huge{}\headfont\color{white}#1%
265 \vspace{\dimexpr21mm-11mm\relax}%
266 \par{\printcontents[chapter]{}{1}{}}
267 \end{minipage}%(testing)%\rule{0.1pt}{\baselineskip}%
269 \vspace{\dimexpr-\parskip-11pt\relax}%
272 \titlespacing*{\chapter}{0pt}{0pt}{0pt}
274 % • section • • • • • • • • • • • • • • •
275 \titleformat{\section}[runin]%
276 {\large\headfont%\nochapternumbers
278 {}{0pt}{\makebox[\linewidth][l]{\color{headcolor}\raggedright{}\thesection\enskip #1}%
279 % this is just to make the spacing between section and following
280 % text right (newlines produce strange amount of space
281 \makebox[\linewidth][l]{~}}%
283 \titlecontents{section}[0pt]{\headfont\Large\color{white}}%
284 {\thecontentslabel\enspace}{\contentsmargin{0pt}}%
285 {\hfill\color{white}{\thecontentspage}}
288 % \fboxsep=0pt % for framebox
289 % ramki wkokół elementów \fbox{}
290 %\titlespacing*{\section}{0pt}{0pt}{2\baselineskip}
293 %% \titleformat{\chapter}[block]%
294 %% {\Large\intro\addfontfeature{LetterSpace=0.5,Kerning={Uppercase}}}%
295 %% {}{0pt}{\parbox{80mm}{\raggedright#1}}
296 %% \newlength{\chapterposcorrection}\newlength{\chapterspaceafter}
297 %% \setlength{\chapterposcorrection}{-\headsep-2\baselineskip-2.352mm} % 2.352 is a measured correction:
298 %% \setlength{\chapterspaceafter}{14\baselineskip-14pt+2.352mm}%\f@size of large
299 %% \titlespacing*{\chapter}{0pt}{\chapterposcorrection}{\chapterspaceafter}
302 %% \titleformat{\section}%
303 %% {\addfontfeature{LetterSpace=0.3}\large}%
304 %% {\thesection{}.}{.5em}{\MakeTextUppercase{#1}}
305 %% \renewcommand{\thesection}{\Roman{section}}
306 %% \titlespacing*{\section}{0pt}{\baselineskip}{0em}
308 %% \titleformat{\subsection}[block]%
310 %% {\thesubsection{}.}{.5em}{\MakeTextUppercase{#1}.}[]
312 %% \renewcommand{\thesubsection}{\Alph{subsection}}
313 %% \titlespacing*{\subsection}{0pt}{\baselineskip}{0em}
315 %% \newcommand{\typosubsubsection}[1]{%
320 %%%%% Footnotes (works with footmisc) %%%%%%%%
321 \newlength{\footnoteindent}\newlength{\footnoteprespace}
322 \setlength{\footnoteindent}{8mm}%{3.5mm}
323 \setlength{\footnoteprespace}{0em}
326 \renewcommand\@makefnmark{%
327 \hspace{\footnoteprespace}
328 \hbox{{\normalfont \@thefnmark}}%
330 \renewcommand\thefootnote{[\arabic{footnote}]}
332 \setlength{\footnotemargin}{-\footnoteindent-\footnoteprespace-.3em}
333 \renewcommand\footnotelayout[1]{%
334 \setlength{\leftskip}{\footnoteindent}#1}
336 %% \long\def\@makefntext#1{%
337 %% \setlength{\leftskip}{\footnoteindent}%
338 %% \setlength{\hskip}{-\footnoteindent-\footnoteprespace-.1em}%
339 %% \hb@xt@ \dimexpr\footnoteindent+\footnoteprespace%
341 %% % \parindent 1em\noindent \hb@xt@ 1.8em{\hss \@makefnmark \enskip}#1
345 \newlength{\myendnoteprespace}\setlength{\myendnoteprespace}{.5em}
346 \newlength{\myendnoteindent}\setlength{\myendnoteindent}{14mm+.5em}
348 \renewcommand\theendnote{[\roman{endnote}]}
349 \renewcommand\makeenmark{\hspace{\myendnoteprespace}\theenmark}
350 \renewcommand{\notesname}{}
351 \newcommand{\authornotes}{
354 \chapter{Przypisy autora}
355 \setlength{\parindent}{0pt}
356 \def\enotesize{\normalsize}
359 %% \newcommand{\@makeentext}[1]{%
360 %% \noindent\theenmark\hspace{\footnoteindent}#1
363 %% \def\enoteformat{\rightskip\z@ \parindent=0em
364 %% \makebox[\myendnoteindent][l]{\makeenmark}} % 12.4mm - measured biggest endnote marker (in Moglen text [xxxviii])
365 \def\enoteformat{\rightskip\z@ \setlength{\leftskip}{\myendnoteindent-\myendnoteprespace} \parindent=0em
366 \leavevmode\llap{\makebox[\myendnoteindent][l]{\makeenmark}}}
370 \def\trimspace#1{\trim@spaces{#1}}
374 %%%%%%%%%%%%%%%%%%%%%% Wyimki
375 %% \floatstyle{plain}
376 %% \newfloat{wyimekbox}{p}{wmk}
377 %% \floatname{wyimekbox}{Wyimek}
379 \NewEnviron{wyimek}{%
382 \PackageWarning{wlpub}{Wyimek on odd page, omitting it ( \BODY )}
386 \begin{minipage}[t][\textheight][c]{70mm}
395 %% wyimek that doesn't leave text in text flow
396 %% TODO: reduce code duplication
397 \NewEnviron{wyimekextra}{%
400 \PackageWarning{wlpub}{Wyimek on odd page, omitting it ( \BODY )}
404 \begin{minipage}[t][\textheight][c]{70mm}
415 %%%%%%%%%%%%%%%%%%%%%%%%%%
421 \doublehyphendemerits=9000
422 \finalhyphendemerits=6000
425 % see http://osdir.com/ml/tex.xetex/2005-10/msg00003.html
426 \newsavebox{\ximagebox}\newlength{\ximageheight}
427 \newsavebox{\xglyphbox}\newlength{\xglyphheight}
428 \newcommand{\xbox}[1]
429 {\savebox{\ximagebox}{#1}\settoheight{\ximageheight}{\usebox {\ximapgebox}}%
430 \savebox{\xglyphbox}{\char32}\settoheight{\xglyphheight}{\usebox {\xglyphbox}}%
431 \raisebox{\ximageheight}[0pt][0pt]{%\raisebox{-\xglyphheight}[0pt] [0pt]{%
432 \makebox[0pt][l]{\usebox{\xglyphbox}}}%}%
434 \raisebox{0pt}[0pt][0pt]{\makebox[0pt][r]{\usebox{\xglyphbox}}}}
437 \newcommand{\makecover}{
441 %% \paperheight=210mm
443 %% \newgeometry{paperwidth=297mm,paperheight=210mm}
444 %% \pdfpageheight=210mm
445 %% \pdfpagewidth=297mm
447 %% \thispagestyle{empty}
448 %% \newlength{\PictHOffset}
449 %% \newlength{\PictVOffset}
450 %% \setlength{\PictHOffset}{1in}
451 %% \addtolength{\PictHOffset}{\hoffset}
452 %% \addtolength{\PictHOffset}{\oddsidemargin}
454 %% \setlength{\PictVOffset}{1in}
455 %% \addtolength{\PictVOffset}{\voffset}
456 %% \addtolength{\PictVOffset}{\topmargin}
457 %% \addtolength{\PictVOffset}{\headheight}
458 %% \addtolength{\PictVOffset}{\headsep}
459 %% \addtolength{\PictVOffset}{\topskip}
461 %% \addtolength{\PictVOffset}{-\paperheight}
463 %% \noindent\hspace*{-\PictHOffset}%
464 %% \raisebox{\PictVOffset}[0pt][0pt]{\makebox[0pt][l]{%
465 %% \includegraphics[height=\pdfpageheight,width=\pdfpagewidth]{cover.pdf}}}
468 %% \pdfpageheight=210mm
469 %% \pdfpagewidth=148mm
473 \renewcommand{\maketitle}{
474 %\vspace{\paperheight}
475 \thispagestyle{empty}
477 %% \setcounter{page}{1}
478 %% \thispagestyle{empty}
481 %% \begin{spacing}{1.4}
482 %% \Huge \noindent \thetitle
487 %% \vspace{\baselineskip}
497 %% %\emph{\thankyou}\\
498 %% %\indent\emph{You made this book possible.}
499 %% \vspace{7\baselineskip}
502 %% \includegraphics[scale=.2]{logo.eps}
508 \newcommand{\editorialsection}{
510 %% \thispagestyle{empty}
512 %% \setlength{\parindent}{0mm}
518 \renewcommand*\contentsname{Spis treści}
519 \newcommand{\spistresci}{
521 \setcounter{tocdepth}{0}
530 \newcommand{\tytul}[1]{%
535 \newcommand{\nazwapodutworu}[1]{%
539 \newcommand{\autorutworu}[1]{%
541 %\subsection*{\typosubsection{#1}}%
544 \newcommand{\dzielonadrzedne}[1]{%
548 \newcommand{\nazwautworu}[1]{%
552 \newcommand{\podtytul}[1]{%
553 \subsection*{\typosubsubsection{#1}}%
556 \newcommand{\podtytulpodutworu}[1]{%
557 \subsection*{\typosubsubsection{#1}}%
560 \newcommand{\translator}[1]{%
561 \subsection*{\typosubsubsection{tłum. #1}}%
563 \newcommand{\translatorsline}[1]{%
567 \newcommand{\powiesc}[1]{#1}
568 \newcommand{\opowiadanie}[1]{#1}
569 \newcommand{\lirykal}[1]{#1}
570 \newcommand{\lirykalp}[1]{#1}
571 \newcommand{\dramatwierszowanyl}[1]{#1}
572 \newcommand{\dramatwierszowanylp}[1]{#1}
573 \newcommand{\dramatwspolczesny}[1]{#1}
576 \newcommand{\dedykacja}[1]{%
584 \newcommand{\dlugicytat}[1]{%
586 \noindent{}\ignorespaces#1%
591 \newcommand{\poezjacyt}[1]{%
596 \newcommand{\motto}[1]{%
601 \newcommand{\listaosob}[2]{%
608 \newcommand{\nagloweklisty}[1]{%
609 \typosubsubsection{#1}%
612 \newcommand{\listaosoba}[1]{%
616 \newcommand{\kwestia}[1]{%
620 \newcommand{\naglowekakt}[1]{%
622 \subsection*{\typosubsection{#1}}%
624 \newcommand{\naglowekczesc}[1]{%
628 \newcommand{\srodtytul}[1]{%
632 \newcommand{\naglowekscena}[1]{%
633 \subsubsection*{\typosubsubsection{#1}}%
636 \newcommand{\theautorrozdzialu}{}
638 \newcommand{\autorrozdzialu}[1]{%
639 \renewcommand{\theautorrozdzialu}{{\normalfont\normalsize\newline{}\newline{}\parbox{\textwidth}{\normalsize\it #1}}}
643 \newcommand{\naglowekrozdzial}[1]{%
645 \startcontents[chapter]
651 \newcommand{\naglowekosoba}[1]{%
652 \par{\textsc{#1}}\nopagebreak%
654 \newcommand{\naglowekpodrozdzial}[1]{%
656 \section{#1}\nopagebreak%
658 \newcommand{\miejsceczas}[1]{%
661 \newcommand{\didaskalia}[1]{%
665 \newcommand{\akap}[1]{%
669 % newline here needed, we don't use \par cause it ignores \noindent before
671 \newcommand{\akapdialog}[1]{%
674 \newcommand{\akapcd}[1]{%
678 \newcommand{\mottopodpis}[1]{%
686 \newcommand{\strofa}[1]{%
687 #1\vspace{\baselineskip}%
690 \newcommand{\wers}[1]{#1}
692 \newcommand{\wersakap}[1]{%
695 \newcommand{\werscd}[1]{%
698 \newcommand{\werswciety}[2][1em]{%
702 \newcommand{\pa}[1]{\NoCaseChange{\endnote{#1}}}
703 \newcommand{\pe}[1]{\NoCaseChange{\footnote{#1}}}
704 \newcommand{\pr}[1]{\NoCaseChange{\footnote{#1}}}
705 \newcommand{\pt}[1]{\NoCaseChange{\footnote{#1}}}
708 \newcommand{\mat}[1]{$#1$}
710 \newcommand{\didasktekst}[1]{%
713 \newcommand{\slowoobce}[1]{%
718 \newif\ifinnota \innotafalse
720 \newcommand{\tytuldziela}[1]{%
729 \newcommand{\wyroznienie}[1]{%
733 \newcommand{\nota}[1]{%
738 \noindent{}\small{}#1%
745 \newcommand{\osoba}[1]{%
749 \newcommand{\sekcjaswiatlo}{%
750 \vspace{\baselineskip}%
753 \newcommand{\sekcjaasterysk}{%
754 \vspace{\baselineskip}%
760 \newcommand{\separatorlinia}{%
766 \newcommand{\ilustrscale}[0]{1}
767 \newcommand{\setilustrscale}[1]{\renewcomand{\ilustrscale}{#1}}
769 \newcommand{\ilustr}[3][]{
771 \ifthenelse{\isempty{#1}}%
772 {\par{\includegraphics{\trimspace{#2}}\\#3}}%
773 {\par{\includegraphics[#1]{\trimspace{#2}}\\#3}}%
778 \newcommand{\lista}[1]{%
785 \newcommand{\punkt}[1]{%
788 \newcommand{\link}[2]{\href{#1}{\uline{#2}\footnote{#1}}}
790 \newcommand{\www}[1]{{\normalfont\href{#1}{#1}}}
796 \newenvironment{tabela}[0]%
797 {\renewcommand{\inmulticols}{\relax}%
798 \begin{longtable}{p{40mm}@{\hspace{5mm}}p{65mm}@{\hspace{5mm}}p{65mm}@{\hspace{5mm}}p{65mm}}}%
801 \newcommand{\formatkomnaglowek}[1]% reset format
802 {{\LARGE\headfont\color{headcolor}\MakeTextUppercase{#1}}}
803 \newcommand{\formatkompierwsza}[1]% reset format
804 {{\LARGE\headfont\color{graybg}\MakeTextUppercase{#1}}}
805 \newcommand{\formatkom}[1]{\scriptsize{}#1} % nop
807 \newcommand{\tabelanaglowek}[1]{%
813 \newcommand{\tabelawiersz}[1]{
814 \cmidrule[0.7pt](r{5mm}){1-1}%
815 \cmidrule[0.7pt](r{5mm}){2-2}%
816 \cmidrule[0.7pt](r{5mm}){3-3}%
817 \cmidrule[0.7pt](r{5mm}){4-4} \\[1mm]
822 \newcommand{\tabelakomnaglowek}[1]{\formatkomnaglowek{#1}}
823 \newcommand{\tabelakompierwsza}[1]{\formatkompierwsza{#1}}
824 \newcommand{\tabelakom}[1]{\formatkom{#1}}