Fixing label
and ref
commands + Section header styling
This commit is contained in:
parent
c947501f4d
commit
693b5f0414
113
amuthesis.cls
113
amuthesis.cls
@ -819,25 +819,22 @@
|
|||||||
\vskip 3 \baselineskip
|
\vskip 3 \baselineskip
|
||||||
\thispagestyle{plain}
|
\thispagestyle{plain}
|
||||||
\IfBooleanTF{#1}{%
|
\IfBooleanTF{#1}{%
|
||||||
\vbox to 6 \baselineskip{%
|
\bgroup%
|
||||||
\bgroup%
|
\fontsize{18pt}{24pt}\selectfont\centering%
|
||||||
\fontsize{18pt}{24pt}\selectfont\centering%
|
\vskip 1.5 \baselineskip#2\par%
|
||||||
\vskip 1.5 \baselineskip#2\par%
|
\vskip 1.5 \baselineskip%
|
||||||
\vfill%
|
\egroup%
|
||||||
\egroup%
|
|
||||||
}%
|
|
||||||
\markboth{#2}{#2}%
|
\markboth{#2}{#2}%
|
||||||
}{%
|
}{%
|
||||||
\stepcounter{chapter}
|
\stepcounter{chapter}
|
||||||
\vbox to 6 \baselineskip{%
|
\protected@edef\@currentlabel{\p@chapter\thechapter}%
|
||||||
\bgroup%
|
\bgroup%
|
||||||
\fontsize{14pt}{24pt}\selectfont\centering%
|
\fontsize{14pt}{24pt}\selectfont\centering%
|
||||||
\textsc{\chaptername~\thechapter}\par%
|
\textsc{\chaptername~\thechapter}\par%
|
||||||
\vskip 0.5 \baselineskip%
|
\vskip 0.5 \baselineskip%
|
||||||
\fontsize{18pt}{24pt}\selectfont#2\par%
|
\fontsize{18pt}{24pt}\selectfont#2\par%
|
||||||
\vfill%
|
\vskip 1.5 \baselineskip%
|
||||||
\egroup
|
\egroup
|
||||||
}%
|
|
||||||
\addcontentsline{toc}{chapter}{\chaptername~\thechapter.~#2}%
|
\addcontentsline{toc}{chapter}{\chaptername~\thechapter.~#2}%
|
||||||
%\addtocontents{toc}{\vskip 1 \baselineskip}
|
%\addtocontents{toc}{\vskip 1 \baselineskip}
|
||||||
\markboth{\chaptername~\thechapter.~#2}{\chaptername~\thechapter.~#2}%
|
\markboth{\chaptername~\thechapter.~#2}{\chaptername~\thechapter.~#2}%
|
||||||
@ -856,33 +853,30 @@
|
|||||||
|
|
||||||
% Paragrafy
|
% Paragrafy
|
||||||
\RenewDocumentCommand\section{sm}{%
|
\RenewDocumentCommand\section{sm}{%
|
||||||
\stepcounter{section}
|
\vskip 1 \baselineskip
|
||||||
\vskip 2 \baselineskip
|
|
||||||
\IfBooleanTF{#1}{%
|
\IfBooleanTF{#1}{%
|
||||||
\vbox to 2 \baselineskip{%
|
\bgroup%
|
||||||
\bgroup%
|
\fontsize{14pt}{18pt}\selectfont\centering%
|
||||||
\fontsize{14pt}{24pt}\selectfont\centering%
|
\textsc{#2}\par%
|
||||||
\textsc{#2}\par%
|
\vskip 0.75 \baselineskip%
|
||||||
\vfill%
|
\egroup%
|
||||||
\egroup%
|
|
||||||
}%
|
|
||||||
\markright{#2}%
|
\markright{#2}%
|
||||||
}{%
|
}{%
|
||||||
\vbox to 2 \baselineskip{%
|
\stepcounter{section}
|
||||||
|
\protected@edef\@currentlabel{\p@section\thesection}%
|
||||||
\bgroup%
|
\bgroup%
|
||||||
\fontsize{14pt}{24pt}\selectfont\centering%
|
\fontsize{14pt}{18pt}\selectfont\centering%
|
||||||
\if@optpolski
|
\if@optpolski
|
||||||
\phantomsection
|
\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
|
\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
|
||||||
\vfill%
|
\vskip 0.75 \baselineskip%
|
||||||
\egroup%
|
\egroup%
|
||||||
}%
|
|
||||||
\markright{\thesection.~#2}%
|
\markright{\thesection.~#2}%
|
||||||
}
|
}
|
||||||
\if@optindent
|
\if@optindent
|
||||||
@ -900,32 +894,29 @@
|
|||||||
|
|
||||||
% Podparagrafy
|
% Podparagrafy
|
||||||
\RenewDocumentCommand\subsection{sm}{%
|
\RenewDocumentCommand\subsection{sm}{%
|
||||||
\stepcounter{subsection}
|
\vskip 1 \baselineskip
|
||||||
\vskip 2 \baselineskip
|
|
||||||
\IfBooleanTF{#1}{%
|
\IfBooleanTF{#1}{%
|
||||||
\vbox to 1 \baselineskip{%
|
\bgroup%
|
||||||
\bgroup%
|
\noindent\textbf{#2}\par%
|
||||||
\noindent\textbf{#2}\par%
|
\vskip 0.75 \baselineskip%
|
||||||
\vfill%
|
\egroup%
|
||||||
\egroup%
|
|
||||||
}%
|
|
||||||
\markright{#2}%
|
\markright{#2}%
|
||||||
}{%
|
}{%
|
||||||
\vbox to 1 \baselineskip{%
|
\stepcounter{subsection}
|
||||||
|
\protected@edef\@currentlabel{\p@subsection\thesubsection}%
|
||||||
\bgroup%
|
\bgroup%
|
||||||
\noindent
|
\noindent
|
||||||
\if@optpolski
|
\if@optpolski
|
||||||
\phantomsection
|
\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
|
\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
|
||||||
\vfill%
|
\vskip 0.75 \baselineskip%
|
||||||
\egroup%
|
\egroup%
|
||||||
}%
|
|
||||||
\markright{\thesubsection.~#2}%
|
\markright{\thesubsection.~#2}%
|
||||||
}
|
}
|
||||||
\if@optindent
|
\if@optindent
|
||||||
|
Loading…
Reference in New Issue
Block a user