Add initial jtex workflow, template, and documentation for Cours 4.0
This commit is contained in:
commit
3847fd13ad
4 changed files with 155 additions and 0 deletions
15
.forgejo/workflows/jtex.yml
Normal file
15
.forgejo/workflows/jtex.yml
Normal file
|
@ -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
|
3
README.md
Normal file
3
README.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Cours 4.0
|
||||||
|
|
||||||
|
Cours4.0 Template
|
103
template.tex
Normal file
103
template.tex
Normal file
|
@ -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}
|
34
template.yml
Normal file
34
template.yml
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue