\phantomsection (przeniesienia)

This commit is contained in:
Bartek Przybylski 2017-09-24 12:45:25 +02:00
parent d190f553ed
commit 27b3a3e001
3 changed files with 6 additions and 2 deletions

Binary file not shown.

View File

@ -512,7 +512,7 @@
% Paragrafy % Paragrafy
\RenewDocumentCommand\section{sm}{% \RenewDocumentCommand\section{sm}{%
\stepcounter{section}\phantomsection \stepcounter{section}
\vskip 2 \baselineskip \vskip 2 \baselineskip
\IfBooleanTF{#1}{% \IfBooleanTF{#1}{%
\vbox to 2 \baselineskip{% \vbox to 2 \baselineskip{%
@ -528,9 +528,11 @@
\bgroup% \bgroup%
\fontsize{14pt}{24pt}\selectfont\centering% \fontsize{14pt}{24pt}\selectfont\centering%
\if@optpolski \if@optpolski
\phantomsection
\addcontentsline{toc}{section}{\thesection.~\hskip 0.25em #2}% \addcontentsline{toc}{section}{\thesection.~\hskip 0.25em #2}%
\textsc{\thesection.~\hskip 0.25em #2}\par% \textsc{\thesection.~\hskip 0.25em #2}\par%
\else \else
\phantomsection
\addcontentsline{toc}{section}{\thesection~\hskip 1em #2}% \addcontentsline{toc}{section}{\thesection~\hskip 1em #2}%
\textsc{\thesection~\hskip 1em #2}\par% \textsc{\thesection~\hskip 1em #2}\par%
\fi \fi
@ -554,7 +556,7 @@
% Podparagrafy % Podparagrafy
\RenewDocumentCommand\subsection{sm}{% \RenewDocumentCommand\subsection{sm}{%
\stepcounter{subsection}\phantomsection \stepcounter{subsection}
\vskip 2 \baselineskip \vskip 2 \baselineskip
\IfBooleanTF{#1}{% \IfBooleanTF{#1}{%
\vbox to 1 \baselineskip{% \vbox to 1 \baselineskip{%
@ -569,9 +571,11 @@
\bgroup% \bgroup%
\noindent \noindent
\if@optpolski \if@optpolski
\phantomsection
\addcontentsline{toc}{subsection}{\thesubsection.~\hskip 0.25em #2}% \addcontentsline{toc}{subsection}{\thesubsection.~\hskip 0.25em #2}%
\textbf{\thesubsection.~\hskip 0.25em #2}\par% \textbf{\thesubsection.~\hskip 0.25em #2}\par%
\else \else
\phantomsection
\addcontentsline{toc}{subsection}{\thesubsection~\hskip 1em #2}% \addcontentsline{toc}{subsection}{\thesubsection~\hskip 1em #2}%
\textbf{\thesubsection~\hskip 1em #2}\par% \textbf{\thesubsection~\hskip 1em #2}\par%
\fi \fi

Binary file not shown.