From 85c9bf344395cbfb5acb71ea056e115b630e82cc Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 8 Oct 2024 10:28:00 +0200 Subject: [PATCH] usage of tex-fmt --- latex/book/book.tex | 9 ++++----- latex/book/sections/section1.tex | 1 - latex/book/sections/section2.tex | 1 - latex/book/sections/section3.tex | 1 - latex/document/document.tex | 9 ++++----- latex/exam/test.tex | 6 ++---- latex/presentation/slides.tex | 2 -- latex/presentation/slides_advanced.tex | 8 ++++---- 8 files changed, 14 insertions(+), 23 deletions(-) diff --git a/latex/book/book.tex b/latex/book/book.tex index 0c191a6..5dd76c7 100644 --- a/latex/book/book.tex +++ b/latex/book/book.tex @@ -20,10 +20,10 @@ \makeatletter \providecommand{\extra}[1]{ \apptocmd{\@author}{ - \end{tabular} - \par\vspace*{0.7em} - \begin{tabular}[t]{c} - #1}{}{} + \end{tabular} + \par\vspace*{0.7em} + \begin{tabular}[t]{c} + #1}{}{} } \makeatother @@ -58,7 +58,6 @@ \extra{\docSubject~$\cdot$ \docLocation} \date{} - \begin{document} \maketitle \flushbottom diff --git a/latex/book/sections/section1.tex b/latex/book/sections/section1.tex index 6bd397a..a6708cb 100644 --- a/latex/book/sections/section1.tex +++ b/latex/book/sections/section1.tex @@ -4,7 +4,6 @@ %\usepackage{minted} %\usemintedstyle{emacs} - \begin{document} Here is the first section. diff --git a/latex/book/sections/section2.tex b/latex/book/sections/section2.tex index 65d4964..9c4b7aa 100644 --- a/latex/book/sections/section2.tex +++ b/latex/book/sections/section2.tex @@ -4,7 +4,6 @@ %\usepackage{minted} %\usemintedstyle{emacs} - \begin{document} Here is the second section. diff --git a/latex/book/sections/section3.tex b/latex/book/sections/section3.tex index 681f5ec..80fc928 100644 --- a/latex/book/sections/section3.tex +++ b/latex/book/sections/section3.tex @@ -4,7 +4,6 @@ %\usepackage{minted} %\usemintedstyle{emacs} - \begin{document} Here is the third section. diff --git a/latex/document/document.tex b/latex/document/document.tex index d6cf4fb..29a9dc4 100644 --- a/latex/document/document.tex +++ b/latex/document/document.tex @@ -21,10 +21,10 @@ \makeatletter \providecommand{\extra}[1]{ \apptocmd{\@author}{ - \end{tabular} - \par\vspace*{0.7em} - \begin{tabular}[t]{c} - #1}{}{} + \end{tabular} + \par\vspace*{0.7em} + \begin{tabular}[t]{c} + #1}{}{} } \makeatother @@ -54,7 +54,6 @@ \extra{\docSubject~$\cdot$ \docLocation} \date{} - \begin{document} \maketitle \flushbottom diff --git a/latex/exam/test.tex b/latex/exam/test.tex index 52c8e9d..c8c37de 100644 --- a/latex/exam/test.tex +++ b/latex/exam/test.tex @@ -69,9 +69,9 @@ \begin{center} \parbox{14cm}{\centering \textbf{Tout document autorisé. - Tout dispositif de communication est interdit. } \\ + Tout dispositif de communication est interdit. } \\ Sauf indication contraire, toute assertion doit être démontrée. \\ - Le sujet est composé de \totalnumpages~pages.} + Le sujet est composé de \totalnumpages~pages.} \end{center} \begin{tabular}{r@{}p{0.8\textwidth}} @@ -105,7 +105,6 @@ \end{solutionorbox} \end{parts} - \question ÉNONCÉ DE L'EXERCICE 2 \begin{parts} @@ -122,7 +121,6 @@ \end{solutionorbox} \end{parts} - \question ÉNONCÉ DE L'EXERCICE 3 \begin{parts} diff --git a/latex/presentation/slides.tex b/latex/presentation/slides.tex index d5b0aa6..8caadb7 100644 --- a/latex/presentation/slides.tex +++ b/latex/presentation/slides.tex @@ -6,7 +6,6 @@ \author{YOU} \date{} - \begin{document} \maketitle @@ -14,7 +13,6 @@ \tableofcontents \end{frame} - \section{SECTION} \begin{frame}{TITLE} Hello, world! diff --git a/latex/presentation/slides_advanced.tex b/latex/presentation/slides_advanced.tex index 7e49b10..ae27e3e 100644 --- a/latex/presentation/slides_advanced.tex +++ b/latex/presentation/slides_advanced.tex @@ -7,7 +7,6 @@ \institute{SUBJECT $\cdot$ LOCATION} \date{} - \begin{document} \maketitle @@ -37,12 +36,13 @@ \end{center} \end{frame} - \appendix \begin{frame}{Sources} - \begin{itemize}\begin{multicols}{2} + \begin{itemize} + \begin{multicols}{2} \item \href{https://fr.wikipedia.org/}{\nolinkurl{wikipedia.org}} - \end{multicols}\end{itemize} + \end{multicols} + \end{itemize} \end{frame} \end{document}