From 6ad9e97c3afb98e2894602c1a99e8bf39b6605bd Mon Sep 17 00:00:00 2001 From: Samuel Ortion Date: Mon, 18 Sep 2023 11:47:55 +0200 Subject: [PATCH] Slight update --- README.md | 10 +++++++ content/conclusion.tex | 0 content/introduction.tex | 0 copier.yml | 18 +++++++++-- main.tex.jinja | 65 +++++++++++++++++++--------------------- references.bib | 0 6 files changed, 57 insertions(+), 36 deletions(-) create mode 100644 README.md create mode 100644 content/conclusion.tex create mode 100644 content/introduction.tex create mode 100644 references.bib diff --git a/README.md b/README.md new file mode 100644 index 0000000..f514a0d --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# `cm.template` - copier powered university LaTeX course notes template with `mus` style + +## Quick start + +Clone this repository, then +```bash +copier ./cm.template ./your/project/folder +``` + +Answer the question, and you are ready to go. \ No newline at end of file diff --git a/content/conclusion.tex b/content/conclusion.tex new file mode 100644 index 0000000..e69de29 diff --git a/content/introduction.tex b/content/introduction.tex new file mode 100644 index 0000000..e69de29 diff --git a/copier.yml b/copier.yml index 708f66d..3c943e0 100644 --- a/copier.yml +++ b/copier.yml @@ -2,7 +2,15 @@ _exclude: - .git - copier.yml - - example + - example/ + - README.md + +_envops: + autoescape: false + block_start_string: "BLOCK{" + block_end_string: "}" + variable_start_string: "VAR{" + variable_end_string: "}" _tasks: - git init . @@ -35,4 +43,10 @@ semester: cursus: type: str help: Cursus - default: GENIOMHE \ No newline at end of file + default: GENIOMHE + +university: + type: str + help: University + default: Université Paris-Saclay, Université d'Évry val d'Essonne +... \ No newline at end of file diff --git a/main.tex.jinja b/main.tex.jinja index eaf498a..8e8f49a 100644 --- a/main.tex.jinja +++ b/main.tex.jinja @@ -1,55 +1,50 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Course - {{ course_name }} -- {{ cursus }} -- {{ semester }} +% Course -- VAR{course_name} --- VAR{cursus} --- VAR{semester} % -% Author: {{ author_name }} <{{ author_email }}> +% Author: VAR{author_name} % Version: 0.1.0 % Date: 2023 % License: CC-By-SA 4.0+ International %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass[ - a4paper, - 10pt, - fleqn, - oneside -]{musculus/mus} + a4paper, + fontsize=10pt, + fleqn, + oneside +]{scrbook} -\title{ - {{ course_name }} -} -\author{ - {{ author_name }} -} -\cursus{ - {{ cursus }} -} -\semester{ - {{ semester }} -} -\teacher{ - {{ teacher_name }} -} +\usepackage{mus} + +\titlehead{VAR{cursus}} +\title{VAR{course_name}} +\author{VAR{author_name}} +\teacher{VAR{teacher_name}} +\cursus{VAR{cursus}} +\university{VAR{university}} +\semester{VAR{semester}} +\date{VAR{date}} \input{definitions} \hypersetup{ -pdftitle={ -Course - {{ course_name }} -}, -pdfauthor={ - {{ author_name }} - }, -pdfsubject={}, -pdfkeywords={}, -pdfcreator={LaTeX} + pdftitle={ + Course - VAR{course_name} + }, + pdfauthor={ + VAR{author_name} + }, + pdfsubject={}, + pdfkeywords={}, + pdfcreator={LaTeX} } \addbibresource{references} \usepackage[ - type={CC}, - modifier={by-sa}, - version={4.0}, + type={CC}, + modifier={by-sa}, + version={4.0}, ]{doclicense} \input{preamble} @@ -60,6 +55,8 @@ pdfcreator={LaTeX} \makeglossary% \begin{document} +\maketitlefullpage + \tableofcontents \doclicenseThis% diff --git a/references.bib b/references.bib new file mode 100644 index 0000000..e69de29