diff --git a/Documentation/GUIDE_CSL-Clio.md b/Documentation/GUIDE_CSL-Clio.md index e316a2c..0e8d18f 100644 --- a/Documentation/GUIDE_CSL-Clio.md +++ b/Documentation/GUIDE_CSL-Clio.md @@ -6,6 +6,7 @@ date: 22/01/2021 lang: fr-FR toc: true lof: true +documentclass: scrbook top-level-division: part figureTemplate: '$$t$$' tableTemplate: '$$t$$' diff --git a/REB/REB_doc.md b/REB/GUIDE_REB.md similarity index 99% rename from REB/REB_doc.md rename to REB/GUIDE_REB.md index 721e3fb..03f9eae 100644 --- a/REB/REB_doc.md +++ b/REB/GUIDE_REB.md @@ -4,9 +4,11 @@ subtitle: "Revue des Études byzantines" date: 21/02/2021 author: Bastien Dumont lang: fr-FR +documentclass: scrartcl +top-level-division: section --- -::: {#license} + Malgré tous mes efforts, certaines limitations du langage CSL font @@ -24,7 +26,7 @@ pas pu être respectées. Les sections suivantes indiquent les tâches restantes. Si vous ne souhaitez pas utiliser les macros _LibreOffice_, vous devrez appliquer manuellement les corrections qu'elles apportent en plus de celles listées dans la section -[_Tâches à effectuer à la main_](#tâches-a-effectuer-à-la-main). +[_Tâches à effectuer à la main_](#tâches-à-effectuer-à-la-main). # Corrections appliquées par les macros _LibreOffice_ diff --git a/Utilitaires/Makefile b/Utilitaires/Makefile index 16bb668..fdc62e9 100644 --- a/Utilitaires/Makefile +++ b/Utilitaires/Makefile @@ -7,7 +7,8 @@ OUTPUT_FILE_SUFFIX = _CSL-Tests.html CSL_FILE_SUFFIX = .csl ifdef JOURNAL THIS_STYLE_DIR = $(STYLESHEETS_DIR)/$(JOURNAL) - DOC_FILE = $(STYLESHEETS_DIR)/$(JOURNAL)/GUIDE_$(JOURNAL) + DOC_DIR = $(THIS_STYLE_DIR) + DOC_FILE = $(DOC_DIR)/GUIDE_$(JOURNAL) VALIDATION_PROV_FILE = $(PROV_PREFIX)$(JOURNAL)$(VALIDATION_FILE_SUFFIX) CSL_FILE = $(THIS_STYLE_DIR)/$(JOURNAL)$(CSL_FILE_SUFFIX) VALIDATION_FILE = $(THIS_STYLE_DIR)/$(JOURNAL)$(VALIDATION_FILE_SUFFIX) @@ -19,9 +20,6 @@ else DOC_DIR = ../Documentation DOC_FILE = $(DOC_DIR)/GUIDE_CSL-Clio endif -FILTERS_LIST_LAST != ./get-filters.sh $(FILTERS_FILE_LAST) -DOC_DIR = ../Documentation -DOC_FILE = $(DOC_DIR)/GUIDE_CSL-Clio PANDOC_OPTIONS = -s \ $(FILTERS_LIST_FIRST) \ -C \ @@ -34,7 +32,6 @@ HTML-VIEWER = palemoon COMMON_DOC_OPTIONS=-s \ --filter pandoc-crossref \ -L license-dans-metadonnees.lua \ - --top-level-division=chapter \ $(DOC_FILE).md \ --resource-path=.:$(DOC_DIR) @@ -83,7 +80,7 @@ clean: doc: docA4 docDiapo docA4: $(DOC_FILE).md TEMPLATE_Guide-CSL-Clio.latex - pandoc $(COMMON_DOC_OPTIONS) -o $(DOC_FILE)_A4.pdf --pdf-engine=lualatex --top-level-division=chapter --template=TEMPLATE_Guide-CSL-Clio.latex + pandoc $(COMMON_DOC_OPTIONS) -o $(DOC_FILE)_A4.pdf --pdf-engine=lualatex --template=TEMPLATE_Guide-CSL-Clio.latex docDiapo: $(DOC_FILE).md TEMPLATE_Guide-CSL-Clio.context pandoc $(COMMON_DOC_OPTIONS) -o $(DOC_FILE)_Diapo.tex -t context --template=TEMPLATE_Guide-CSL-Clio.context && \ diff --git a/Utilitaires/TEMPLATE_Guide-CSL-Clio.context b/Utilitaires/TEMPLATE_Guide-CSL-Clio.context index 49d3a05..d963823 100644 --- a/Utilitaires/TEMPLATE_Guide-CSL-Clio.context +++ b/Utilitaires/TEMPLATE_Guide-CSL-Clio.context @@ -100,11 +100,13 @@ $endif$ \pagebreak $endif$ +$if(license)$ \startlicensepagemakeup $-- requiert le filtre "license-dans-metadonnees.lua" \inframed[frame=off, width=0.66\textwidth, align=normal]{$license$} \stoplicensepagemakeup \pagebreak +$endif$ \setupcombinedlist[content, listoftables, listoffigures][criterium=all, list={chapter,section,subsection}, @@ -127,6 +129,8 @@ $endif$ $body$ +$if(license)$ \input{../Utilitaires/fdl-1.3_ConTeXt} +$endif$ \stoptext \ No newline at end of file diff --git a/Utilitaires/TEMPLATE_Guide-CSL-Clio.latex b/Utilitaires/TEMPLATE_Guide-CSL-Clio.latex index 1db22cc..a107b18 100644 --- a/Utilitaires/TEMPLATE_Guide-CSL-Clio.latex +++ b/Utilitaires/TEMPLATE_Guide-CSL-Clio.latex @@ -1,4 +1,4 @@ -\documentclass[listof=leveldown, twoside=off]{scrbook} +\documentclass[listof=leveldown, twoside=off]{$documentclass$} \usepackage{microtype} \usepackage{graphicx} @@ -102,6 +102,7 @@ $abstract$ $endif$ $endif$ +$if(license)$ \pagebreak \thispagestyle{empty} \vspace*{\fill} @@ -109,6 +110,7 @@ $endif$ $-- requiert le filtre "license-dans-metadonnees.lua" $license$ } +$endif$ \pagebreak @@ -129,6 +131,8 @@ $for(include-after)$ $include-after$ $endfor$ +$if(license)$ \include{fdl-1.3.tex} +$endif$ \end{document}