commit 3847fd13ad717e2caa3aabcf225e3b7bee90f8dd
Author: Edgar P. Burkhart <git@edgarpierre.fr>
Date:   Fri Feb 28 10:38:05 2025 +0100

    Add initial jtex workflow, template, and documentation for Cours 4.0

diff --git a/.forgejo/workflows/jtex.yml b/.forgejo/workflows/jtex.yml
new file mode 100644
index 0000000..f4fe93e
--- /dev/null
+++ b/.forgejo/workflows/jtex.yml
@@ -0,0 +1,15 @@
+name: jtex
+on:
+  push:
+    branches: [main]
+  pull_request:
+    branches: [main]
+jobs:
+  test:
+    name: test template.yml
+    runs-on: self-hosted
+    steps:
+      - uses: actions/checkout@v4
+      - uses: actions/setup-node@v4
+      - run: npm install -g jtex
+      - run: jtex check
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..b09325b
--- /dev/null
+++ b/README.md
@@ -0,0 +1,3 @@
+# Cours 4.0
+
+Cours4.0 Template
\ No newline at end of file
diff --git a/template.tex b/template.tex
new file mode 100644
index 0000000..d7ce98a
--- /dev/null
+++ b/template.tex
@@ -0,0 +1,103 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Copy in your template with your latex document!
+
+\documentclass[french, a4paper, 12pt]{article}
+
+% You should have an imports section
+\usepackage[xetex]{geometry}
+\usepackage[pdfusetitle]{hyperref}
+\usepackage{fontspec}
+\usepackage{polyglossia}
+\usepackage{csquotes}
+\usepackage{amsmath, amssymb, amsbsy}
+\usepackage[sfdefault, semibold]{inter}
+\usepackage{titlesec}
+\usepackage{titling}
+\usepackage{xcolor}
+\usepackage{enumitem}
+\usepackage{unicode-math}
+\usepackage{fancyhdr}
+\usepackage{lastpage}
+\usepackage[useregional]{datetime2}
+\usepackage{parskip}
+\usepackage{authblk}
+\usepackage[bottom,multiple,norule,marginal]{footmisc} 
+
+[- IMPORTS -]
+
+\setdefaultlanguage{french}
+\MakeOuterQuote{"}
+
+\geometry{
+    a4paper,
+    margin=3cm,
+}
+
+\pretitle{\Huge\interextrabold}
+\posttitle{\par}
+\preauthor{}
+\renewcommand\Authfont{\normalsize\interlight}
+\renewcommand\Affilfont{\large\bfseries}
+\postauthor{\par}
+\predate{\large}
+\postdate{\par}
+
+\titleformat*{\subparagraph}{\bfseries}
+\titleformat*{\paragraph}{\bfseries}
+\titleformat*{\subsubsection}{\large\bfseries}
+\titleformat*{\subsection}{\Large\bfseries}
+\titleformat*{\section}{\LARGE\bfseries}
+\titleformat{\chapter}[display]{\interlight\LARGE\bfseries}
+	{\chaptertitlename~\thechapter}{12pt}{\interlight\Huge}
+
+
+\definecolor{customblue}{RGB}{0,102,204}
+
+\hypersetup{
+    allcolors=customblue,
+    colorlinks=true,
+}
+
+\setlist[itemize]{nosep}
+
+
+\title{[-doc.title-]}
+[#- for author in doc.authors -#]
+    \author{[-author.name-]}
+[# endfor #]
+
+[# for affiliation in doc.affiliations #]\affil{[-affiliation.value.name-]}[# endfor #]
+\DTMsavedate{articleDate}{[-doc.date.year-]-[-doc.date.month-]-[-doc.date.day-]}
+\date{\DTMusedate{articleDate}}
+
+\hypersetup{
+    pdftitle = {[-doc.title-]},
+    pdfauthor = {[-- doc.authors|join(",", "name") --]}
+}
+
+\definecolor{dim}{HTML}{666666}
+\pagestyle{fancy}
+\fancyhf{}
+\fancyhead[C]{\color{dim}\interlight [-doc.title-]}
+\fancyhead[L]{\color{dim}\interlight {[-- doc.affiliations|join(",", "name") --]}}
+\fancyhead[R]{\color{dim}\interlight \DTMusedate{articleDate}}
+\fancyfoot[C]{\color{dim}\interlight Page \textbf{\thepage} sur \textbf{\pageref*{LastPage}}}
+\renewcommand{\footnotelayout}{\color{dim}}
+\renewcommand{\headrulewidth}{0pt}
+\renewcommand{\footrulewidth}{0pt}
+
+\fancypagestyle{plain}{%
+  \fancyhf{}
+  \fancyfoot[C]{\color{dim}\interlight Page \textbf{\thepage} sur \textbf{\pageref*{LastPage}}}
+}
+
+\begin{document}
+
+\maketitle
+
+[-CONTENT-]
+
+[# if doc.bibliography #]
+\bibliography{[- doc.bibliography | join(", ") -]}
+[# endif #]
+\end{document}
diff --git a/template.yml b/template.yml
new file mode 100644
index 0000000..c4418c1
--- /dev/null
+++ b/template.yml
@@ -0,0 +1,34 @@
+jtex: v1
+title: 'Cours 4.0'
+description: 'Cours4.0 Template'
+version: 1.0.0
+license: MIT
+source: 'https://example.com/author-guidelines/latex-submission'
+tags:
+  - paper
+doc:
+  - id: title
+    required: true
+files:
+  - template.tex
+packages:
+  - geometry
+  - hyperref
+  - amsmath
+  - amssymb
+  - amsbsy
+  - fontspec
+  - polyglossia
+  - csquotes
+  - inter
+  - titlesec
+  - titling
+  - xcolor
+  - enumitem
+  - unicode-math
+  - fancyhdr
+  - lastpage
+  - datetime2
+  - parskip
+  - authblk
+  - footmisc