Skip to content
Snippets Groups Projects
Commit 77ca4384 authored by Tomáš Nováček's avatar Tomáš Nováček
Browse files

Merge branch 'novacek/paragraph-section' into 'master'

[v1.3.4] Paragraph heading via documentclass option

See merge request theses-templates/FITthesis-LaTeX!30
parents 9ba321af 3ef34ed4
No related branches found
No related tags found
1 merge request!30[v1.3.4] Paragraph heading via documentclass option
Pipeline #451128 passed
......@@ -12,7 +12,7 @@ Recommended template for theses submitted at [Faculty of Information Technology]
 
Version
--------
1.3.3, built 22. 6. 2024. The whole changelog can be found in the [Changelog file](changelog.md).
1.3.4, built 25. 6. 2024. The whole changelog can be found in the [Changelog file](changelog.md).
 
 
Bugs and support
......
......@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
 
# [1.3.4] - 25. 6. 2024
Added support for paragraphs as the deepest level of headings via documentclass option.
### Added
- Added "paragraph" option for document class. If passed, it styles the paragraph command as another level of heading, adds number to it and shows it in ToC. Use with care! Normally, it is considered unwise to use it, since its too deep.
# [1.3.3] - 22. 6. 2024
Fixed warning about header height. Update of arara compilation settings.
......
......@@ -51,10 +51,17 @@
\PassOptionsToPackage{english,main=slovak}{babel}
\def\@ctufitlang{S}
}
\DeclareOption{subsubsection}{
\def\@ctufitsecdepth{3}
}
\DeclareOption{paragraph}{
\def\@ctufitsecdepth{4}
}
\PassOptionsToPackage{svgnames}{xcolor}
\PassOptionsToPackage{newfloat}{minted}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
\ExecuteOptions{unicode}
\ExecuteOptions{subsubsection}
\ProcessOptions\relax
 
% main declarations, loading files
......@@ -281,14 +288,13 @@
\def\frontsubsectionfont{\large}
\def\frontsubsubsectionfont{\bfseries}
 
\setcounter{secnumdepth}{3} % numbering sections; 3: subsubsection
\setcounter{secnumdepth}{\@ctufitsecdepth} % numbering sections
\newcommand{\stopTOCentries}{
\addtocontents{toc}{\protect\setcounter{tocdepth}{-1}}
}
 
\newcommand{\resumeTOCentries}{
\addtocontents{toc}{\protect\setcounter{tocdepth}{3}} % table of content depth; 3: subsubsection
\addtocontents{toc}{\protect\setcounter{tocdepth}{\@ctufitsecdepth}} % table of content depth
}
% frontmatter headings end
% frontmatter pseudochapters: named part without printing actual chapter heading
......@@ -416,6 +422,11 @@
\titleformat{\subsubsection}
{\large\bfseries\color{heading}}{{{\color{black}\thesubsubsection}}}{1em}{}%[\vskip -1em]
\ifnum\@ctufitsecdepth=4%if paragraph should be also styled
\titleformat{\paragraph}
{\bfseries\color{heading}}{{{\color{black}\theparagraph}}}{1em}{}%[\vskip -1em]
\fi
}
%%%%%%%%%%%%%%%%%%%%
% MAINMATTER SETTINGS END
......
%% This is the ctufit-thesis example file. It is used to produce theses
%% for submission to Czech Technical University, Faculty of Information Technology.
%%
%% This is version 1.3.3, built 22. 6. 2024.
%% This is version 1.3.4, built 25. 6. 2024.
%%
%% Get the newest version from
%% https://gitlab.fit.cvut.cz/theses-templates/FITthesis-LaTeX
......@@ -37,6 +37,7 @@
% thesis type: bachelor/master/dissertation
% colour: bw for black&white OR no option for default colour scheme
% electronic (oneside) or printed (twoside), twoside is default
% paragraph - if passed, this optional argument sets paragraphs as the deepest level of headers, styles it, numbers it and adds it to Table of Content. Use with care! Normally, it is considered unwise to use it, since its too deep.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[czech,bachelor,unicode,oneside]{ctufit-thesis}
 
......
......@@ -220,6 +220,8 @@ Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos
Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Fusce suscipit libero eget elit. Etiam dui sem, fermentum vitae, sagittis id, malesuada in, quam. Aliquam id dolor. Curabitur bibendum justo non orci.
\end{example}
 
\paragraph{Nadpis 5. úrovně}
\begin{theorem}
Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Fusce suscipit libero eget elit. Etiam dui sem, fermentum vitae, sagittis id, malesuada in, quam. Aliquam id dolor. Curabitur bibendum justo non orci.
\end{theorem}
......@@ -228,6 +230,8 @@ Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos
Fusce suscipit libero eget elit. Etiam dui sem, fermentum vitae, sagittis id, malesuada in, quam. Aliquam id dolor. Curabitur bibendum justo non orci.
\end{proof}
 
\paragraph{Level 5 heading}
\begin{corollary}
Fusce suscipit libero eget elit. Etiam dui sem, fermentum vitae, sagittis id, malesuada in, quam. Aliquam id dolor. Curabitur bibendum justo non orci.
\end{corollary}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment