diff --git a/requirements.txt b/requirements.txt index 6f0df57..6726b26 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,27 +1,28 @@ -h11~=0.14.0 -PyYAML~=6.0 -anyio~=3.6.2 -sniffio~=1.3.0 -click~=8.1.3 -httpcore==0.17.0 -idna~=3.4 -rfc3986==2.0.0 +anyio==3.6.2 certifi==2023.5.7 -pandoc~=2.3 -ply~=3.11 -plumbum~=1.8.0 -uvloop~=0.17.0 +click==8.1.7 +emoji==2.2.0 fastapi==0.95.2 -starlette==0.27.0 -pydantic~=1.10.2 -websockets==11.0.3 -uvicorn==0.22.0 -httptools~=0.5.0 -watchfiles==0.19.0 +h11==0.14.0 +httpcore==0.17.0 +httptools==0.5.0 httpx==0.24.0 -setuptools==67.7.2 +idna==3.6 +numpy==1.26.3 +opencv-python==4.7.0.72 +pandoc==2.3 +plumbum==1.8.2 +ply==3.11 +pydantic==1.10.13 pypandoc==1.11 -Wand~=0.6.10 -emoji~=2.2.0 -opencv-python~=4.7.0.68 -python-multipart~=0.0.6 +python-multipart==0.0.6 +PyYAML==6.0.1 +rfc3986==2.0.0 +sniffio==1.3.0 +starlette==0.27.0 +typing_extensions==4.9.0 +uvicorn==0.22.0 +uvloop==0.17.0 +Wand==0.6.13 +watchfiles==0.19.0 +websockets==11.0.3 diff --git a/styles/yapp/a4paper/Yapp-A4.pdf b/styles/yapp-abonnement/a4paper/Yapp-A4.pdf similarity index 100% rename from styles/yapp/a4paper/Yapp-A4.pdf rename to styles/yapp-abonnement/a4paper/Yapp-A4.pdf diff --git a/styles/yapp-abonnement/a4paper/cover.tex b/styles/yapp-abonnement/a4paper/cover.tex new file mode 100644 index 0000000..60f8b13 --- /dev/null +++ b/styles/yapp-abonnement/a4paper/cover.tex @@ -0,0 +1,19 @@ +\newpage + +\thispagestyle{empty} + +\noindent Tous droits réservés\ \newline \the\year{}\ -\ François Pelletier + +\leavevmode \newline + +\noindent Visite mon site web au \url{https://jevalide.ca} et mes réseaux sociaux au \url{https://linktr.ee/jevalideca} + +\leavevmode \newline + +\noindent Publié le \today + +\leavevmode \newline + +\noindent Mise en page effectuée avec \LaTeX\ et mon logiciel Fabrique à Documents + +\pagebreak diff --git a/styles/yapp/a4paper/header.tex b/styles/yapp-abonnement/a4paper/header.tex similarity index 94% rename from styles/yapp/a4paper/header.tex rename to styles/yapp-abonnement/a4paper/header.tex index 8beb9ab..f1cb6aa 100644 --- a/styles/yapp/a4paper/header.tex +++ b/styles/yapp-abonnement/a4paper/header.tex @@ -9,7 +9,7 @@ \usepackage{wallpaper} \makeatletter -\ULCornerWallPaper{1}{./styles/yapp/a4paper/Yapp-A4.pdf} +\ULCornerWallPaper{1}{./styles/yapp-abonnement/a4paper/Yapp-A4.pdf} \makeatother \usepackage{listings} diff --git a/styles/yapp-abonnement/format_parameters.json b/styles/yapp-abonnement/format_parameters.json new file mode 100644 index 0000000..24c9d9c --- /dev/null +++ b/styles/yapp-abonnement/format_parameters.json @@ -0,0 +1,100 @@ +{ + "a4paper": { + "linkcolor": "blue", + "tocdepth": 3, + "pdfengine": "lualatex", + "fontsize": 12, + "paperwidth": 2480, + "paperheight": 3507, + "ratio": 100, + "margin": 248, + "vmargin": 525, + "fps": 15, + "stilltime": 2, + "extension": "pdf" + }, + "lettre": { + "linkcolor": "blue", + "tocdepth": 3, + "pdfengine": "lualatex", + "fontsize": 12, + "paperwidth": 2550, + "paperheight": 3300, + "ratio": 100, + "margin": 255, + "vmargin": 495, + "fps": 15, + "stilltime": 2, + "extension": "pdf" + }, + "linkedin": { + "linkcolor": "blue", + "tocdepth": 2, + "pdfengine": "lualatex", + "fontsize": 16, + "paperwidth": 1080, + "paperheight": 1080, + "ratio": 100, + "margin": 180, + "vmargin": 180, + "fps": 15, + "stilltime": 2, + "extension": "jpg" + }, + "story": { + "linkcolor": "blue", + "tocdepth": 2, + "pdfengine": "lualatex", + "fontsize": 16, + "paperwidth": 1080, + "paperheight": 1920, + "ratio": 100, + "margin": 108, + "vmargin": 244, + "fps": 15, + "stilltime": 2, + "extension": "jpg" + }, + "instagram": { + "linkcolor": "blue", + "tocdepth": 2, + "pdfengine": "lualatex", + "fontsize": 16, + "paperwidth": 1080, + "paperheight": 1350, + "ratio": 100, + "margin": 75, + "vmargin": 165, + "fps": 15, + "stilltime": 2, + "extension": "jpg" + }, + "slide169": { + "linkcolor": "blue", + "tocdepth": 2, + "pdfengine": "lualatex", + "fontsize": 16, + "paperwidth": 2560, + "paperheight": 1440, + "ratio": 100, + "margin": 256, + "vmargin": 216, + "fps": 15, + "stilltime": 2, + "extension": "pdf" + }, + "slide169-prive": { + "linkcolor": "blue", + "tocdepth": 2, + "pdfengine": "lualatex", + "fontsize": 16, + "paperwidth": 2560, + "paperheight": 1440, + "ratio": 100, + "margin": 256, + "vmargin": 216, + "fps": 15, + "stilltime": 2, + "extension": "pdf" + } +} diff --git a/styles/yapp-abonnement/instagram/cover.tex b/styles/yapp-abonnement/instagram/cover.tex new file mode 100644 index 0000000..813c96a --- /dev/null +++ b/styles/yapp-abonnement/instagram/cover.tex @@ -0,0 +1,21 @@ +\newpage + +\thispagestyle{empty} + +\noindent Tu apprécies ? \emoji{❤️} et partage !\newline + +\noindent Deviens techno-zen un mois à la fois \emoji{🧘} + +\noindent L'abonnement \textbf{Y'app pas d'problème}. + +\noindent Inscris-toi maintenant ! + +\noindent Site web: \url{https://jevalide.ca/yapp} + +\pagebreak + +\noindent Certains droits réservés\ \ccbysa \newline \the\year{}\ -\ François Pelletier + +\noindent Publié le \today avec \LaTeX\ et mon logiciel Fabrique à Documents + +\pagebreak diff --git a/styles/yapp-abonnement/instagram/header.tex b/styles/yapp-abonnement/instagram/header.tex new file mode 100644 index 0000000..224e27c --- /dev/null +++ b/styles/yapp-abonnement/instagram/header.tex @@ -0,0 +1,59 @@ +\usepackage[french]{babel} % Césure en français +\usepackage[autolanguage]{numprint} + +\usepackage{ccicons} + +\usepackage{wallpaper} +\makeatletter +\ULCornerWallPaper{1}{./styles/yapp-abonnement/instagram/instagram-1080x1350.pdf} +\makeatother + +\usepackage{xcolor} + +\usepackage{listings} + +\lstset{ + basicstyle=\ttfamily, + numbers=left, + numberstyle=\footnotesize, + stepnumber=2, + numbersep=5pt, + backgroundcolor=\color{black!10}, + showspaces=false, + showstringspaces=false, + showtabs=false, + tabsize=2, + captionpos=b, + breaklines=true, + breakatwhitespace=true, + breakautoindent=true, + linewidth=\textwidth +} + +% Override default figure placement To be within the flow of the text rather +% than on it's own page. +\usepackage{float} +\makeatletter +\def\fps@figure{H} +\makeatother + +\pagenumbering{gobble} +\AddToHook{cmd/section/before}{\clearpage} +\AddToHook{cmd/subsection/before}{\clearpage} + +\usepackage{caption} +\DeclareCaptionLabelFormat{nolabel}{} +\captionsetup{labelformat=nolabel,textformat=empty} + +\usepackage{fontspec} + \setmainfont[Path=font/GlacialIndifference/]{GlacialIndifference-Regular.otf} + \setsansfont[Path=font/GlacialIndifference/]{GlacialIndifference-Regular.otf} + \setmonofont[Path=font/SourceCodePro/]{SourceCodePro-Regular.ttf} + +\newcommand{\emoji}[1]{ + {\setmainfont[Path=font/NotoColorEmoji/]{NotoColorEmoji.ttf}[Renderer=Harfbuzz]{#1}} +} + +\hyphenpenalty=10000 +\hbadness=10000 +\centering \ No newline at end of file diff --git a/styles/yapp-abonnement/instagram/instagram-1080x1350.pdf b/styles/yapp-abonnement/instagram/instagram-1080x1350.pdf new file mode 100644 index 0000000..deb8c9e Binary files /dev/null and b/styles/yapp-abonnement/instagram/instagram-1080x1350.pdf differ diff --git a/styles/yapp/lettre/Yapp-Lettre.pdf b/styles/yapp-abonnement/lettre/Yapp-Lettre.pdf similarity index 100% rename from styles/yapp/lettre/Yapp-Lettre.pdf rename to styles/yapp-abonnement/lettre/Yapp-Lettre.pdf diff --git a/styles/yapp-abonnement/lettre/cover.tex b/styles/yapp-abonnement/lettre/cover.tex new file mode 100644 index 0000000..60f8b13 --- /dev/null +++ b/styles/yapp-abonnement/lettre/cover.tex @@ -0,0 +1,19 @@ +\newpage + +\thispagestyle{empty} + +\noindent Tous droits réservés\ \newline \the\year{}\ -\ François Pelletier + +\leavevmode \newline + +\noindent Visite mon site web au \url{https://jevalide.ca} et mes réseaux sociaux au \url{https://linktr.ee/jevalideca} + +\leavevmode \newline + +\noindent Publié le \today + +\leavevmode \newline + +\noindent Mise en page effectuée avec \LaTeX\ et mon logiciel Fabrique à Documents + +\pagebreak diff --git a/styles/yapp-abonnement/lettre/header.tex b/styles/yapp-abonnement/lettre/header.tex new file mode 100644 index 0000000..2c26ea2 --- /dev/null +++ b/styles/yapp-abonnement/lettre/header.tex @@ -0,0 +1,51 @@ +\usepackage[french]{babel} % Césure en français +\usepackage[autolanguage]{numprint} + +\usepackage[ + type={CC}, + modifier={by-sa}, + version={4.0}, +]{doclicense} + +\usepackage{xcolor} + +\usepackage{listings} + +\lstset{ + basicstyle=\ttfamily, + numbers=left, + numberstyle=\footnotesize, + stepnumber=2, + numbersep=5pt, + backgroundcolor=\color{black!10}, + showspaces=false, + showstringspaces=false, + showtabs=false, + tabsize=2, + captionpos=b, + breaklines=true, + breakatwhitespace=true, + breakautoindent=true, + linewidth=\textwidth +} + +\usepackage{wallpaper} +\makeatletter +\ULCornerWallPaper{1}{./styles/yapp-abonnement/lettre/Yapp-Lettre.pdf} +\makeatother + +% Override default figure placement To be within the flow of the text rather +% than on it's own page. +\usepackage{float} +\makeatletter +\def\fps@figure{H} +\makeatother + +\usepackage{fontspec} + \setmainfont[Path=font/GlacialIndifference/]{GlacialIndifference-Regular.otf} + \setsansfont[Path=font/GlacialIndifference/]{GlacialIndifference-Regular.otf} + \setmonofont[Path=font/SourceCodePro/]{SourceCodePro-Regular.ttf} + +\newcommand{\emoji}[1]{ + {\setmainfont[Path=font/NotoColorEmoji/]{NotoColorEmoji.ttf}[Renderer=Harfbuzz]{#1}} +} diff --git a/styles/yapp-abonnement/linkedin/cover.tex b/styles/yapp-abonnement/linkedin/cover.tex new file mode 100644 index 0000000..88fd41f --- /dev/null +++ b/styles/yapp-abonnement/linkedin/cover.tex @@ -0,0 +1,22 @@ +\newpage + +\thispagestyle{empty} + +\noindent Tu apprécies ? \emoji{❤️} et partage !\newline + +\noindent Deviens techno-zen un mois à la fois \emoji{🧘} + +\noindent L'abonnement \textbf{Y'app pas d'problème}. + +\noindent Inscris-toi maintenant ! + +\noindent Site web: \url{https://jevalide.ca/yapp} + +\pagebreak + +\noindent Certains droits réservés\ \ccbysa \newline \the\year{}\ -\ François Pelletier + +\noindent Publié le \today avec \LaTeX\ et mon logiciel Fabrique à Documents + +\pagebreak + diff --git a/styles/yapp-abonnement/linkedin/header.tex b/styles/yapp-abonnement/linkedin/header.tex new file mode 100644 index 0000000..759e2af --- /dev/null +++ b/styles/yapp-abonnement/linkedin/header.tex @@ -0,0 +1,60 @@ +\usepackage[french]{babel} % Césure en français +\usepackage[autolanguage]{numprint} + +\usepackage{ccicons} + +\usepackage{wallpaper} +\makeatletter +\ULCornerWallPaper{1}{./styles/yapp-abonnement/linkedin/linkedin-1080x1080.pdf} +\makeatother + +\usepackage{xcolor} + +\usepackage{listings} + +\lstset{ + basicstyle=\ttfamily, + numbers=left, + numberstyle=\footnotesize, + stepnumber=2, + numbersep=5pt, + backgroundcolor=\color{black!10}, + showspaces=false, + showstringspaces=false, + showtabs=false, + tabsize=2, + captionpos=b, + breaklines=true, + breakatwhitespace=true, + breakautoindent=true, + linewidth=\textwidth +} + +% Override default figure placement To be within the flow of the text rather +% than on it's own page. +\usepackage{float} +\makeatletter +\def\fps@figure{H} +\makeatother + +\pagenumbering{gobble} +\AddToHook{cmd/section/before}{\clearpage} +\AddToHook{cmd/subsection/before}{\clearpage} + +\usepackage{caption} +\DeclareCaptionLabelFormat{nolabel}{} +\captionsetup{labelformat=nolabel,textformat=empty} + +\usepackage{fontspec} + \setmainfont[Path=font/GlacialIndifference/]{GlacialIndifference-Regular.otf} + \setsansfont[Path=font/GlacialIndifference/]{GlacialIndifference-Regular.otf} + \setmonofont[Path=font/SourceCodePro/]{SourceCodePro-Regular.ttf} + +\newcommand{\emoji}[1]{ + {\setmainfont[Path=font/NotoColorEmoji/]{NotoColorEmoji.ttf}[Renderer=Harfbuzz]{#1}} +} + +\hyphenpenalty=10000 +\hbadness=10000 +\centering + diff --git a/styles/yapp-abonnement/linkedin/linkedin-1080x1080.pdf b/styles/yapp-abonnement/linkedin/linkedin-1080x1080.pdf new file mode 100644 index 0000000..a786ed0 Binary files /dev/null and b/styles/yapp-abonnement/linkedin/linkedin-1080x1080.pdf differ diff --git a/styles/yapp/slide169/cover.tex b/styles/yapp-abonnement/slide169-prive/cover.tex similarity index 100% rename from styles/yapp/slide169/cover.tex rename to styles/yapp-abonnement/slide169-prive/cover.tex diff --git a/styles/yapp-abonnement/slide169-prive/header.tex b/styles/yapp-abonnement/slide169-prive/header.tex new file mode 100644 index 0000000..3355b4c --- /dev/null +++ b/styles/yapp-abonnement/slide169-prive/header.tex @@ -0,0 +1,59 @@ +\usepackage[french]{babel} % Césure en français +\usepackage[autolanguage]{numprint} + +\usepackage[ + type={CC}, + modifier={by-sa}, + version={4.0}, +]{doclicense} + +\usepackage{xcolor} + +\usepackage{listings} + +\lstset{ + basicstyle=\ttfamily, + numbers=left, + numberstyle=\footnotesize, + stepnumber=2, + numbersep=5pt, + backgroundcolor=\color{black!10}, + showspaces=false, + showstringspaces=false, + showtabs=false, + tabsize=2, + captionpos=b, + breaklines=true, + breakatwhitespace=true, + breakautoindent=true, + linewidth=\textwidth +} + +\usepackage{wallpaper} +\makeatletter +\ULCornerWallPaper{1}{./styles/yapp-abonnement/slide169/slides-1920x1080.pdf} +\makeatother + +% Override default figure placement To be within the flow of the text rather +% than on it's own page. +\usepackage{float} +\makeatletter +\def\fps@figure{H} +\makeatother + +\pagenumbering{gobble} +\AddToHook{cmd/section/before}{\clearpage} +\AddToHook{cmd/subsection/before}{\clearpage} + +\usepackage{caption} +\DeclareCaptionLabelFormat{nolabel}{} +\captionsetup{labelformat=nolabel,textformat=empty} + +\usepackage{fontspec} + \setmainfont[Path=font/GlacialIndifference/]{GlacialIndifference-Regular.otf} + \setsansfont[Path=font/GlacialIndifference/]{GlacialIndifference-Regular.otf} + \setmonofont[Path=font/SourceCodePro/]{SourceCodePro-Regular.ttf} + +\newcommand{\emoji}[1]{ + {\setmainfont[Path=font/NotoColorEmoji/]{NotoColorEmoji.ttf}[Renderer=Harfbuzz]{#1}} +} diff --git a/styles/yapp-abonnement/slide169-prive/slides-1920x1080.pdf b/styles/yapp-abonnement/slide169-prive/slides-1920x1080.pdf new file mode 100644 index 0000000..0f6cedc Binary files /dev/null and b/styles/yapp-abonnement/slide169-prive/slides-1920x1080.pdf differ diff --git a/styles/yapp-abonnement/slide169/cover.tex b/styles/yapp-abonnement/slide169/cover.tex new file mode 100644 index 0000000..3419748 --- /dev/null +++ b/styles/yapp-abonnement/slide169/cover.tex @@ -0,0 +1,21 @@ +\newpage + +\thispagestyle{empty} + +\noindent Tu apprécies ? \emoji{❤️} et partage !\newline + +\noindent Deviens techno-zen un mois à la fois \emoji{🧘} + +\noindent L'abonnement \textbf{Y'app pas d'problème}. + +\noindent Inscris-toi maintenant ! + +\noindent Site web: \url{https://jevalide.ca/yapp} + +\pagebreak + +\noindent Certains droits réservés\ \ccbysa \newline \the\year{}\ -\ François Pelletier + +\noindent Publié le \today avec \LaTeX\ et mon logiciel Fabrique à Documents + +\pagebreak \ No newline at end of file diff --git a/styles/yapp-abonnement/slide169/header.tex b/styles/yapp-abonnement/slide169/header.tex new file mode 100644 index 0000000..3355b4c --- /dev/null +++ b/styles/yapp-abonnement/slide169/header.tex @@ -0,0 +1,59 @@ +\usepackage[french]{babel} % Césure en français +\usepackage[autolanguage]{numprint} + +\usepackage[ + type={CC}, + modifier={by-sa}, + version={4.0}, +]{doclicense} + +\usepackage{xcolor} + +\usepackage{listings} + +\lstset{ + basicstyle=\ttfamily, + numbers=left, + numberstyle=\footnotesize, + stepnumber=2, + numbersep=5pt, + backgroundcolor=\color{black!10}, + showspaces=false, + showstringspaces=false, + showtabs=false, + tabsize=2, + captionpos=b, + breaklines=true, + breakatwhitespace=true, + breakautoindent=true, + linewidth=\textwidth +} + +\usepackage{wallpaper} +\makeatletter +\ULCornerWallPaper{1}{./styles/yapp-abonnement/slide169/slides-1920x1080.pdf} +\makeatother + +% Override default figure placement To be within the flow of the text rather +% than on it's own page. +\usepackage{float} +\makeatletter +\def\fps@figure{H} +\makeatother + +\pagenumbering{gobble} +\AddToHook{cmd/section/before}{\clearpage} +\AddToHook{cmd/subsection/before}{\clearpage} + +\usepackage{caption} +\DeclareCaptionLabelFormat{nolabel}{} +\captionsetup{labelformat=nolabel,textformat=empty} + +\usepackage{fontspec} + \setmainfont[Path=font/GlacialIndifference/]{GlacialIndifference-Regular.otf} + \setsansfont[Path=font/GlacialIndifference/]{GlacialIndifference-Regular.otf} + \setmonofont[Path=font/SourceCodePro/]{SourceCodePro-Regular.ttf} + +\newcommand{\emoji}[1]{ + {\setmainfont[Path=font/NotoColorEmoji/]{NotoColorEmoji.ttf}[Renderer=Harfbuzz]{#1}} +} diff --git a/styles/yapp-abonnement/slide169/slides-1920x1080.pdf b/styles/yapp-abonnement/slide169/slides-1920x1080.pdf new file mode 100644 index 0000000..0f6cedc Binary files /dev/null and b/styles/yapp-abonnement/slide169/slides-1920x1080.pdf differ diff --git a/styles/yapp-abonnement/story/cover.tex b/styles/yapp-abonnement/story/cover.tex new file mode 100644 index 0000000..88fd41f --- /dev/null +++ b/styles/yapp-abonnement/story/cover.tex @@ -0,0 +1,22 @@ +\newpage + +\thispagestyle{empty} + +\noindent Tu apprécies ? \emoji{❤️} et partage !\newline + +\noindent Deviens techno-zen un mois à la fois \emoji{🧘} + +\noindent L'abonnement \textbf{Y'app pas d'problème}. + +\noindent Inscris-toi maintenant ! + +\noindent Site web: \url{https://jevalide.ca/yapp} + +\pagebreak + +\noindent Certains droits réservés\ \ccbysa \newline \the\year{}\ -\ François Pelletier + +\noindent Publié le \today avec \LaTeX\ et mon logiciel Fabrique à Documents + +\pagebreak + diff --git a/styles/yapp-abonnement/story/header.tex b/styles/yapp-abonnement/story/header.tex new file mode 100644 index 0000000..9d2931a --- /dev/null +++ b/styles/yapp-abonnement/story/header.tex @@ -0,0 +1,65 @@ +\usepackage[french]{babel} % Césure en français +\usepackage[autolanguage]{numprint} + +\usepackage[ + type={CC}, + modifier={by-sa}, + version={4.0}, +]{doclicense} + +\usepackage{xcolor} + +\usepackage{listings} + +\usepackage{geometry} + +\lstset{ + basicstyle=\ttfamily, + numbers=left, + numberstyle=\footnotesize, + stepnumber=2, + numbersep=5pt, + backgroundcolor=\color{black!10}, + showspaces=false, + showstringspaces=false, + showtabs=false, + tabsize=2, + captionpos=b, + breaklines=true, + breakatwhitespace=true, + breakautoindent=true, + linewidth=\textwidth +} + +\usepackage{wallpaper} +\makeatletter +\ULCornerWallPaper{1}{./styles/yapp-abonnement/story/story-1080x1920.pdf} +\makeatother + +% Override default figure placement To be within the flow of the text rather +% than on it's own page. +\usepackage{float} +\makeatletter +\def\fps@figure{H} +\makeatother + +\pagenumbering{gobble} +\AddToHook{cmd/section/before}{\clearpage} +\AddToHook{cmd/subsection/before}{\clearpage} + +\usepackage{caption} +\DeclareCaptionLabelFormat{nolabel}{} +\captionsetup{labelformat=nolabel,textformat=empty} + +\usepackage{fontspec} + \setmainfont[Path=font/GlacialIndifference/]{GlacialIndifference-Regular.otf} + \setsansfont[Path=font/GlacialIndifference/]{GlacialIndifference-Regular.otf} + \setmonofont[Path=font/SourceCodePro/]{SourceCodePro-Regular.ttf} + +\newcommand{\emoji}[1]{ + {\setmainfont[Path=font/NotoColorEmoji/]{NotoColorEmoji.ttf}[Renderer=Harfbuzz]{#1}} +} + +\hyphenpenalty=10000 +\hbadness=10000 +\centering diff --git a/styles/yapp-abonnement/story/story-1080x1920.pdf b/styles/yapp-abonnement/story/story-1080x1920.pdf new file mode 100644 index 0000000..bfe4c5d Binary files /dev/null and b/styles/yapp-abonnement/story/story-1080x1920.pdf differ diff --git a/styles/yapp-ancien/a4paper/Yapp-A4.pdf b/styles/yapp-ancien/a4paper/Yapp-A4.pdf new file mode 100644 index 0000000..fef4153 Binary files /dev/null and b/styles/yapp-ancien/a4paper/Yapp-A4.pdf differ diff --git a/styles/yapp/a4paper/cover.tex b/styles/yapp-ancien/a4paper/cover.tex similarity index 100% rename from styles/yapp/a4paper/cover.tex rename to styles/yapp-ancien/a4paper/cover.tex diff --git a/styles/yapp/lettre/header.tex b/styles/yapp-ancien/a4paper/header.tex similarity index 94% rename from styles/yapp/lettre/header.tex rename to styles/yapp-ancien/a4paper/header.tex index a81706d..53efa7c 100644 --- a/styles/yapp/lettre/header.tex +++ b/styles/yapp-ancien/a4paper/header.tex @@ -7,10 +7,15 @@ version={4.0}, ]{doclicense} -\usepackage{xcolor} +\usepackage{wallpaper} +\makeatletter +\ULCornerWallPaper{1}{./styles/yapp-ancien/a4paper/Yapp-A4.pdf} +\makeatother \usepackage{listings} +\usepackage{xcolor} + \lstset{ basicstyle=\ttfamily, numbers=left, @@ -29,11 +34,6 @@ linewidth=\textwidth } -\usepackage{wallpaper} -\makeatletter -\ULCornerWallPaper{1}{./styles/yapp/lettre/Yapp-Lettre.pdf} -\makeatother - % Override default figure placement To be within the flow of the text rather % than on it's own page. \usepackage{float} @@ -48,4 +48,4 @@ \newcommand{\emoji}[1]{ {\setmainfont[Path=font/NotoColorEmoji/]{NotoColorEmoji.ttf}[Renderer=Harfbuzz]{#1}} -} +} \ No newline at end of file diff --git a/styles/yapp/format_parameters.json b/styles/yapp-ancien/format_parameters.json similarity index 100% rename from styles/yapp/format_parameters.json rename to styles/yapp-ancien/format_parameters.json diff --git a/styles/yapp/instagram/Yapp-FondStory.pdf b/styles/yapp-ancien/instagram/Yapp-FondStory.pdf similarity index 100% rename from styles/yapp/instagram/Yapp-FondStory.pdf rename to styles/yapp-ancien/instagram/Yapp-FondStory.pdf diff --git a/styles/yapp/instagram/cover.tex b/styles/yapp-ancien/instagram/cover.tex similarity index 100% rename from styles/yapp/instagram/cover.tex rename to styles/yapp-ancien/instagram/cover.tex diff --git a/styles/yapp/instagram/header.tex b/styles/yapp-ancien/instagram/header.tex similarity index 95% rename from styles/yapp/instagram/header.tex rename to styles/yapp-ancien/instagram/header.tex index 39a3628..f864621 100644 --- a/styles/yapp/instagram/header.tex +++ b/styles/yapp-ancien/instagram/header.tex @@ -33,7 +33,7 @@ \usepackage{wallpaper} \makeatletter -\ULCornerWallPaper{1}{./styles/yapp/instagram/Yapp-FondStory.pdf} +\ULCornerWallPaper{1}{./styles/yapp-ancien/instagram/Yapp-FondStory.pdf} \makeatother % Override default figure placement To be within the flow of the text rather diff --git a/styles/yapp-ancien/lettre/Yapp-Lettre.pdf b/styles/yapp-ancien/lettre/Yapp-Lettre.pdf new file mode 100644 index 0000000..e237881 Binary files /dev/null and b/styles/yapp-ancien/lettre/Yapp-Lettre.pdf differ diff --git a/styles/yapp/lettre/cover.tex b/styles/yapp-ancien/lettre/cover.tex similarity index 100% rename from styles/yapp/lettre/cover.tex rename to styles/yapp-ancien/lettre/cover.tex diff --git a/styles/yapp-ancien/lettre/header.tex b/styles/yapp-ancien/lettre/header.tex new file mode 100644 index 0000000..9e22939 --- /dev/null +++ b/styles/yapp-ancien/lettre/header.tex @@ -0,0 +1,51 @@ +\usepackage[french]{babel} % Césure en français +\usepackage[autolanguage]{numprint} + +\usepackage[ + type={CC}, + modifier={by-sa}, + version={4.0}, +]{doclicense} + +\usepackage{xcolor} + +\usepackage{listings} + +\lstset{ + basicstyle=\ttfamily, + numbers=left, + numberstyle=\footnotesize, + stepnumber=2, + numbersep=5pt, + backgroundcolor=\color{black!10}, + showspaces=false, + showstringspaces=false, + showtabs=false, + tabsize=2, + captionpos=b, + breaklines=true, + breakatwhitespace=true, + breakautoindent=true, + linewidth=\textwidth +} + +\usepackage{wallpaper} +\makeatletter +\ULCornerWallPaper{1}{./styles/yapp-ancien/lettre/Yapp-Lettre.pdf} +\makeatother + +% Override default figure placement To be within the flow of the text rather +% than on it's own page. +\usepackage{float} +\makeatletter +\def\fps@figure{H} +\makeatother + +\usepackage{fontspec} + \setmainfont[Path=font/GlacialIndifference/]{GlacialIndifference-Regular.otf} + \setsansfont[Path=font/GlacialIndifference/]{GlacialIndifference-Regular.otf} + \setmonofont[Path=font/SourceCodePro/]{SourceCodePro-Regular.ttf} + +\newcommand{\emoji}[1]{ + {\setmainfont[Path=font/NotoColorEmoji/]{NotoColorEmoji.ttf}[Renderer=Harfbuzz]{#1}} +} diff --git a/styles/yapp/linkedin/Yapp-Carre.pdf b/styles/yapp-ancien/linkedin/Yapp-Carre.pdf similarity index 100% rename from styles/yapp/linkedin/Yapp-Carre.pdf rename to styles/yapp-ancien/linkedin/Yapp-Carre.pdf diff --git a/styles/yapp/linkedin/cover.tex b/styles/yapp-ancien/linkedin/cover.tex similarity index 100% rename from styles/yapp/linkedin/cover.tex rename to styles/yapp-ancien/linkedin/cover.tex diff --git a/styles/yapp/linkedin/header.tex b/styles/yapp-ancien/linkedin/header.tex similarity index 95% rename from styles/yapp/linkedin/header.tex rename to styles/yapp-ancien/linkedin/header.tex index 78695bd..239bd9b 100644 --- a/styles/yapp/linkedin/header.tex +++ b/styles/yapp-ancien/linkedin/header.tex @@ -5,7 +5,7 @@ \usepackage{wallpaper} \makeatletter -\ULCornerWallPaper{1}{./styles/yapp/linkedin/Yapp-Carre.pdf} +\ULCornerWallPaper{1}{./styles/yapp-ancien/linkedin/Yapp-Carre.pdf} \makeatother \usepackage{xcolor} diff --git a/styles/yapp/pinterest/Yapp-Pinterest.pdf b/styles/yapp-ancien/pinterest/Yapp-Pinterest.pdf similarity index 100% rename from styles/yapp/pinterest/Yapp-Pinterest.pdf rename to styles/yapp-ancien/pinterest/Yapp-Pinterest.pdf diff --git a/styles/yapp/pinterest/cover.tex b/styles/yapp-ancien/pinterest/cover.tex similarity index 100% rename from styles/yapp/pinterest/cover.tex rename to styles/yapp-ancien/pinterest/cover.tex diff --git a/styles/yapp/pinterest/header.tex b/styles/yapp-ancien/pinterest/header.tex similarity index 94% rename from styles/yapp/pinterest/header.tex rename to styles/yapp-ancien/pinterest/header.tex index efd9b7c..aba1b91 100644 --- a/styles/yapp/pinterest/header.tex +++ b/styles/yapp-ancien/pinterest/header.tex @@ -5,7 +5,7 @@ \usepackage{wallpaper} \makeatletter -\ULCornerWallPaper{1}{./styles/yapp/pinterest/Yapp-Pinterest.pdf} +\ULCornerWallPaper{1}{./styles/yapp-ancien/pinterest/Yapp-Pinterest.pdf} \makeatother \usepackage{xcolor} diff --git a/styles/yapp/slide169/Yapp-slide169.pdf b/styles/yapp-ancien/slide169/Yapp-slide169.pdf similarity index 100% rename from styles/yapp/slide169/Yapp-slide169.pdf rename to styles/yapp-ancien/slide169/Yapp-slide169.pdf diff --git a/styles/yapp/slide43/cover.tex b/styles/yapp-ancien/slide169/cover.tex similarity index 100% rename from styles/yapp/slide43/cover.tex rename to styles/yapp-ancien/slide169/cover.tex diff --git a/styles/yapp/slide43/header.tex b/styles/yapp-ancien/slide169/header.tex similarity index 95% rename from styles/yapp/slide43/header.tex rename to styles/yapp-ancien/slide169/header.tex index 8c05b35..b03dcf9 100644 --- a/styles/yapp/slide43/header.tex +++ b/styles/yapp-ancien/slide169/header.tex @@ -31,7 +31,7 @@ \usepackage{wallpaper} \makeatletter -\ULCornerWallPaper{1}{./styles/yapp/slide43/Yapp-slide43.pdf} +\ULCornerWallPaper{1}{./styles/yapp-ancien/slide169/Yapp-slide169.pdf} \makeatother % Override default figure placement To be within the flow of the text rather diff --git a/styles/yapp/slide43/Yapp-slide43.pdf b/styles/yapp-ancien/slide43/Yapp-slide43.pdf similarity index 100% rename from styles/yapp/slide43/Yapp-slide43.pdf rename to styles/yapp-ancien/slide43/Yapp-slide43.pdf diff --git a/styles/yapp-ancien/slide43/cover.tex b/styles/yapp-ancien/slide43/cover.tex new file mode 100644 index 0000000..d112848 --- /dev/null +++ b/styles/yapp-ancien/slide43/cover.tex @@ -0,0 +1,15 @@ +\newpage + +\thispagestyle{empty} + +\noindent Tous droits réservés\ \newline \the\year{}\ -\ François Pelletier + +\noindent Site web: \newline\url{https://jevalide.ca} + +\noindent Réseaux sociaux: \newline\url{https://linktr.ee/jevalideca} + +\noindent Publié le \today. + +\noindent Mise en page effectuée avec \LaTeX\ et mon logiciel Fabrique à Documents + +\pagebreak diff --git a/styles/yapp/slide169/header.tex b/styles/yapp-ancien/slide43/header.tex similarity index 95% rename from styles/yapp/slide169/header.tex rename to styles/yapp-ancien/slide43/header.tex index e87cd36..df61432 100644 --- a/styles/yapp/slide169/header.tex +++ b/styles/yapp-ancien/slide43/header.tex @@ -31,7 +31,7 @@ \usepackage{wallpaper} \makeatletter -\ULCornerWallPaper{1}{./styles/yapp/slide169/Yapp-slide169.pdf} +\ULCornerWallPaper{1}{./styles/yapp-ancien/slide43/Yapp-slide43.pdf} \makeatother % Override default figure placement To be within the flow of the text rather diff --git a/test_main.http b/test_main.http index f86e065..b11019a 100644 --- a/test_main.http +++ b/test_main.http @@ -9,7 +9,7 @@ Content-Type: application/json Accept: application/zip { - "format": "instagram", + "format": "instagram-story", "style": "jevalideca", "linkcolor": "blue", "tocdepth": 2, @@ -33,7 +33,7 @@ Content-Type: application/json Accept: application/zip { - "format": "instagram", + "format": "instagram-story", "style": "jevalideca", "linkcolor": "blue", "tocdepth": 2, @@ -57,7 +57,7 @@ Content-Type: application/json Accept: application/pdf { - "format": "linkedin", + "format": "instagram-carre", "style": "jevalideca", "linkcolor": "blue", "tocdepth": 2, @@ -81,7 +81,7 @@ Content-Type: application/json Accept: application/pdf { - "format": "linkedin", + "format": "instagram-carre", "style": "missioncyber", "linkcolor": "blue", "tocdepth": 2, diff --git a/test_yapp.http b/test_yapp.http index b350fd1..af85a6e 100644 --- a/test_yapp.http +++ b/test_yapp.http @@ -6,14 +6,14 @@ Accept: application/zip { "format": "instagram", - "style": "yapp", + "style": "yapp-abonnement", "linkcolor": "blue", "tocdepth": 2, "pdfengine": "lualatex", "content": "# Ceci est un titre\n## Ceci est un sous-titre\n\nCeci est un paragraphe\n\n## Ceci est un autre sous-titre\n\n> Ceci est du code\n\nCeci est un emoji :heart_eyes:\n\n::: {.center}\nCeci est centré\n:::", "fontsize": 14, "paperwidth": 1080, - "paperheight": 1920, + "paperheight": 1350, "ratio": 100, "margin": 180, "vmargin": 180, @@ -29,8 +29,8 @@ Content-Type: application/json Accept: application/zip { - "format": "instagram", - "style": "yapp", + "format": "story", + "style": "yapp-abonnement", "linkcolor": "blue", "tocdepth": 2, "pdfengine": "lualatex", @@ -53,14 +53,14 @@ Content-Type: application/json Accept: application/pdf { - "format": "linkedin", - "style": "yapp", + "format": "slide169", + "style": "yapp-abonnement", "linkcolor": "blue", "tocdepth": 2, "pdfengine": "lualatex", "content": "# Ceci est un titre\n## Ceci est un sous-titre\n\nCeci est un paragraphe\n\n## Ceci est un autre sous-titre\n\n> Ceci est du code\n\nCeci est un emoji :heart_eyes:\n\n::: {.center}\nCeci est centré\n:::", "fontsize": 14, - "paperwidth": 1080, + "paperwidth": 1920, "paperheight": 1080, "ratio": 100, "margin": 90, @@ -78,7 +78,7 @@ Accept: application/pdf { "format": "linkedin", - "style": "yapp", + "style": "yapp-abonnement", "linkcolor": "blue", "tocdepth": 2, "pdfengine": "lualatex",