From acfd16903e3da481e0135c4680c3b556b58f8e24 Mon Sep 17 00:00:00 2001 From: novacto3 <tomas.novacek@fit.cvut.cz> Date: Tue, 18 Jun 2024 11:15:54 +0200 Subject: [PATCH] Sync of caption positions and trailing spaces in the example --- README.md | 2 +- changelog.md | 9 +++++++++ ctufit-thesis.tex | 2 +- text/text.tex | 9 +++++---- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 07b8fa8..b1e344e 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Recommended template for theses submitted at [Faculty of Information Technology] Version -------- -1.3.1, built 17. 6. 2024. The whole changelog can be found in the [Changelog file](changelog.md). +1.3.2, built 18. 6. 2024. The whole changelog can be found in the [Changelog file](changelog.md). Bugs and support diff --git a/changelog.md b/changelog.md index 0622411..bda9590 100644 --- a/changelog.md +++ b/changelog.md @@ -5,6 +5,15 @@ 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.2] - 18. 6. 2024 + +Improvements of captions in the example. + +### Changed +- All captions are now at the bottom of the object (figure, listing, table, etc.). +- The trailing spaces have been removed from the caption + + ## [1.3.1] - 17. 6. 2024 Improvements of frontmatter, table of contents entries and sectioning. diff --git a/ctufit-thesis.tex b/ctufit-thesis.tex index 8fa3878..a54076d 100644 --- a/ctufit-thesis.tex +++ b/ctufit-thesis.tex @@ -1,7 +1,7 @@ %% 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.1, built 17. 6. 2024. +%% This is version 1.3.2, built 18. 6. 2024. %% %% Get the newest version from %% https://gitlab.fit.cvut.cz/theses-templates/FITthesis-LaTeX diff --git a/text/text.tex b/text/text.tex index 55a5703..b074573 100644 --- a/text/text.tex +++ b/text/text.tex @@ -92,7 +92,7 @@ \path (v) -- (w) node [midway] {$\Leftrightarrow$}; \path (r) -- (c) node [midway] {$\cdots$}; \end{tikzpicture}} -\caption{~Lorem ipsum dolor sit amet}\label{img:index} +\caption{Lorem ipsum dolor sit amet}\label{img:index} \end{figure} %--------------------------------------------------------------- @@ -158,7 +158,7 @@ Curabitur ligula sapien, pulvinar a vestibulum quis, facilisis vel sapien. Duis Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Nulla non arcu lacinia neque faucibus fringilla. Vestibulum erat nulla, ullamcorper nec, rutrum non, nonummy ac, erat. Aliquam erat volutpat. Proin pede metus, vulputate nec, fermentum fringilla, vehicula vitae, justo.\footnote{Ut enim ad minim veniam, quis nostrud exercitation.} Etiam dictum tincidunt diam. In laoreet, magna id viverra tincidunt, sem odio bibendum justo, vel imperdiet sapien wisi sed libero. Nulla est. Maecenas fermentum, sem in pharetra pellentesque, velit turpis volutpat ante, in pharetra metus odio a lectus. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. -\begin{lstlisting}[caption={~ZbyteÄŤnĂ˝ kĂłd},label=list:8-6,captionpos=t,float,abovecaptionskip=-\medskipamount,belowcaptionskip=\medskipamount,language=C] +\begin{lstlisting}[caption={ZbyteÄŤnĂ˝ kĂłd},label=list:8-6,captionpos=b,float,abovecaptionskip=-\medskipamount,abovecaptionskip=\medskipamount,language=C] #include<stdio.h> #include<iostream> // A comment @@ -174,7 +174,6 @@ Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliqu % package minted requires execution with `-shell-escape' % e.g., `xelatex -shell-escape ctufit-thesis.tex' % \begin{listing} -% \caption{ZbyteÄŤnĂ˝ kĂłd}\label{list:8-6} % \begin{minted}{C} % #include<stdio.h> % #include<iostream> @@ -185,6 +184,7 @@ Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliqu % return 0; % } % \end{minted} +% \caption{ZbyteÄŤnĂ˝ kĂłd}\label{list:8-6} % \end{listing} % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Nullam feugiat, turpis at pulvinar vulputate, erat libero tristique tellus, nec bibendum odio risus sit amet ante. Aenean id metus id velit ullamcorper pulvinar. Fusce wisi. Integer lacinia. Aliquam id dolor. Pellentesque pretium lectus id turpis. Suspendisse sagittis ultrices augue. In laoreet, magna id viverra tincidunt, sem odio bibendum justo, vel imperdiet sapien wisi sed libero. Sed ac dolor sit amet purus malesuada congue. \cite{Crochemore2002} @@ -198,12 +198,13 @@ Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Nulla non arcu lacinia neque faucibus fringilla. Vestibulum erat nulla, ullamcorper nec, rutrum non, nonummy ac, erat. Aliquam erat volutpat. Proin pede metus, vulputate nec, fermentum fringilla, vehicula vitae, justo. Etiam dictum tincidunt diam. In laoreet, magna id viverra tincidunt, sem odio bibendum justo. \cite{Sestakova2018} \begin{table}\centering -\caption[PĹ™Ăklad tabulky]{~ZadávánĂ matematiky}\label{tab:matematika} \begin{tabular}{l|l|c|c} Typ & ProstĹ™edĂ & \LaTeX{}ovská zkratka & \TeX{}ovská zkratka \tabularnewline \hline Text & \verb|math| & \verb|\(...\)| & \verb|$...$| \tabularnewline \hline Displayed & \verb|displaymath| & \verb|\[...\]| & \verb|$$...$$| \tabularnewline \end{tabular} +\caption[PĹ™Ăklad tabulky]{ZadávánĂ matematiky} +\label{tab:matematika} \end{table} -- GitLab