From 758cd6700617e1f9a4072c6930f11220091b115c Mon Sep 17 00:00:00 2001 From: Samuel Ortion Date: Sat, 26 Aug 2023 11:48:50 +0200 Subject: [PATCH] back to school ?! --- .gitignore | 1 + .vscode/settings.json | 3 -- content/chapters/include.tex | 18 +++++++ copier.yml | 24 ++++----- content/include.tex => glossary.tex | 0 main.pdf | Bin 7603 -> 0 bytes main.tex | 19 ------- main.tex.jinja | 77 +++++++++++++++++++--------- 8 files changed, 82 insertions(+), 60 deletions(-) delete mode 100644 .vscode/settings.json create mode 100755 content/chapters/include.tex rename content/include.tex => glossary.tex (100%) delete mode 100644 main.pdf delete mode 100644 main.tex diff --git a/.gitignore b/.gitignore index 275fb7a..76f44d5 100755 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ build/ +.auctex-auto ## Core latex/pdflatex auxiliary files: *.aux diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 9d14cfb..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ansible.python.interpreterPath": "/bin/python" -} \ No newline at end of file diff --git a/content/chapters/include.tex b/content/chapters/include.tex new file mode 100755 index 0000000..7922d7d --- /dev/null +++ b/content/chapters/include.tex @@ -0,0 +1,18 @@ +%---------------------------------------- +% CHAPTERS +%---------------------------------------- + +\newcommand{\includechapters}[2]{% + \foreach \i in {0, ..., #2} {% + \edef\FileName{content/chapters/#1/\i}% + \IfFileExists{\FileName}{% + \input{\FileName}% + } + } +} + +\includechapters{part1}{2} + +% \includechapters{part2}{2} + +% \includechapters{part3}{1} \ No newline at end of file diff --git a/copier.yml b/copier.yml index 1d1fdea..708f66d 100644 --- a/copier.yml +++ b/copier.yml @@ -1,26 +1,28 @@ +--- _exclude: - .git - copier.yml + - example _tasks: - git init . - git add . - git commit -m "Initial commit" - - git checkout -b dev -student_name: +author_name: type: str default: Samuel Ortion help: Your name +author_email: + type: str + default: samuel@ortion.fr + help: Your email + teacher_name: type: str help: Teacher's name -teacher_email: - type: str - help: Teacher's email - course_name: type: str help: Course name @@ -30,11 +32,7 @@ semester: help: Semester default: M1 - S1 -pathway: +cursus: type: str - help: Pathway - default: GENIOMHE - -title: - type: str - help: Title + help: Cursus + default: GENIOMHE \ No newline at end of file diff --git a/content/include.tex b/glossary.tex similarity index 100% rename from content/include.tex rename to glossary.tex diff --git a/main.pdf b/main.pdf deleted file mode 100644 index edded294b4d7dd3df961f4358cdef81793fb083b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7603 zcmbVR1yCH#whkH~5Zoaw?y!p!T!Sv|5NsC<&f@ODf)m^&XmCjg4k019yL)iA@HY3| zsy|itzxUmGT{G3)(`V+KIo;FeJKxZ&O3Si?ICwGWe@u2x^v;a*^kE19fB*+G8w_D# z0H>_AEez@muWe0XP-&>S0|W}-RD#-D!mI#XAOV1=DBzz3!v*FHHMPU=mu*>?jm zW!!Uuh(9Q(8z&)?p#FTxJfdeX+K}b-$XgF>l1RZsMDW`=i7>mRF1`xPnJB{gsPm0Z z@B>}I+!Y`jh;A(%z|?7`S~=mj>jIfd6GX48^qYz0dX@E>ro2Qqw%&e`J*#c*s~A2} z=Bt1ZCTFfnrIzRiR3gTXH>N2~iS-(W4RLZGm|M=il&!0Z*K7r3{;D3s)nyno*I9Z+ zFs*e4UR%c%MV_0i5oNj~6VRx~OBfcIN#%Fjwh;2%I&HpAn7RX3eVJ=bq!L>l3nM>v z)p>&fwTJxkCE=~#9s=?Gx31#(!&892TxD)zvSMPQW}-Ud7O*Ogo{01W=NFRT-zeh$ zLy?B78O+lWJ`Ymz(y|WrFim&|DD{8L6%U`_UncxzK&7^|CV>u7Rq-x|Yz<@HPvp-^ zTJiYYXox`(2EuCM^b#GoAkYVsXM+ryQVszMka+t~RD&!mXjoX1#8DM}I67$5YLd}T z-Bu8;2y;i-L?s69kNxH;HiPm*X=(TAo+U%&FOL@QCf(b;mqk=UT0WW4#9J+WO6|W; z%WK1pAKk;GCnwn;u2h&RVdWhfyl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KOkk zubnR&vbO?lxH8;YX79~@Q+w0C0%DWv<+x9dEy8TkXdBQU{>p`h$}ZZiZc5rqEkk1h z3fW8N0^UL#4`*!Xj*SlIEgA3wx86na@TFuGF%3xWH$UXL>ub zFGaJC(PWNOBe5H($8P%?X;^V@nw18*IJpZAX?*REULExdDv&MCiW$2<^+(b@H*kP3ABo69rf77|9vFv4pmu*-9dT4`+6&;^2qwi z(c1p}g&^^T`n2KAVezR5s+Lyh>l1*XC_!xh&#y`rTP*K3#VzNHUnt#J4~> zpOdGuhM~oi)l&xgGFVbH3^Z?6?76@UM8XYX-#cBHx&7Lm_pvg(=B)a}QTLpf*?2IB z^N_vj)_>jR7*l8VCux;}LsYqX8<9@V$2(@7qQ|6i^#^{P$Fb7`kbKQ*8O%7Rd_Gox zyp8ZpHjUuX8I-$~tGl~9#Ps5@r;t{dv|({wC&SK-HDrd^ncB6809^1BepTJU0S16aLLfl> z_bnC<0IuJA=e&5Fu7k`4Zaw+i9WvL5WgQSCuD2}94jsX~&xASm4R?HkQ+@UW|N9fp= zTiDZs^C@1Ag}E?Z$=MmnGx!i)jIqe$mbgOOQMmiHB5T%p=5xo{6QsENr+|NTqYKQ` W8Rh}s|1tQvc;WwO>19-8G5!ayT)+MR diff --git a/main.tex b/main.tex deleted file mode 100644 index f0d81f6..0000000 --- a/main.tex +++ /dev/null @@ -1,19 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% LuaLaTeX Template for course notes -% -% -% Version: v0.0.1 -% Author: Samuel ORTION -% Date: 2023-04-30 -% License: LPPL 1.3c -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\documentclass{talpa} - -\author{Samuel Ortion} -\date{\today} -\title{Course notes \\ Template} - -\begin{document} -\maketitle -\end{document} diff --git a/main.tex.jinja b/main.tex.jinja index ccd2832..eaf498a 100644 --- a/main.tex.jinja +++ b/main.tex.jinja @@ -1,10 +1,10 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Course of {{ course_name }} +% Course - {{ course_name }} -- {{ cursus }} -- {{ semester }} % -% Author: Samuel ORTION -% Version: 0.0.1 +% Author: {{ author_name }} <{{ author_email }}> +% Version: 0.1.0 % Date: 2023 -% Licence: CC-By-SA 4.0+ International +% License: CC-By-SA 4.0+ International %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass[ @@ -12,35 +12,62 @@ 10pt, fleqn, oneside -]{talpa} +]{musculus/mus} -\input{colors.tex} -\input{meta.tex} -\input{definitions.tex} - -\hypersetup{ - pdftitle={ - Course - {{ course_name }} - }, - pdfauthor={ - {{ student_name }} - }, - pdfsubject={}, - pdfkeywords={}, - pdfcreator={LaTeX} +\title{ + {{ course_name }} +} +\author{ + {{ author_name }} +} +\cursus{ + {{ cursus }} +} +\semester{ + {{ semester }} +} +\teacher{ + {{ teacher_name }} } -% \addbibressource{bibliography.bib} +\input{definitions} -\makeindex +\hypersetup{ +pdftitle={ +Course - {{ course_name }} +}, +pdfauthor={ + {{ author_name }} + }, +pdfsubject={}, +pdfkeywords={}, +pdfcreator={LaTeX} +} + +\addbibresource{references} + +\usepackage[ + type={CC}, + modifier={by-sa}, + version={4.0}, +]{doclicense} + +\input{preamble} +\input{glossary} +\input{definitions} + +\makeindex% +\makeglossary% \begin{document} \tableofcontents -% \input{content/introduction.tex} +\doclicenseThis% -\input{content/chapters/include.tex} +\input{content/introduction} -% \input{content/conclusion.tex} +\input{content/chapters/include} -\end{document} \ No newline at end of file +\input{content/conclusion} + +\end{document}