| 1 |
% !TeX encoding = UTF-8 |
| 2 |
% !TeX spellcheck = en_US |
| 3 |
% !TEX TS-program = lualatex |
| 4 |
\documentclass{article} |
| 5 |
\usepackage[nostamp]{moodle} |
| 6 |
\ifPDFTeX % FOR LATEX and PDFLATEX |
| 7 |
\usepackage[utf8]{inputenc} % necessary |
| 8 |
\usepackage[T1]{fontenc} % necessary |
| 9 |
\else % assuming XELATEX or LUALATEX |
| 10 |
\usepackage{fontspec} |
| 11 |
\fi |
| 12 |
\usepackage[french]{babel} % for french quotes |
| 13 |
\usepackage{hyperref} |
| 14 |
% pangramme conçu par Gilles Esposito-Farèse et cité dans "Petites leçons de |
| 15 |
% typographie" de Jacques André: https://jacques-andre.fr/faqtypo/lessons.pdf |
| 16 |
\ifPDFTeX |
| 17 |
\def\myquestiontext{ \underline{Pangramme} con\c{c}u par |
| 18 |
Gilles \textsc{Esposito-Far\`ese}\,:} |
| 19 |
\def\pangramme{D\`es No\"el o\`u un z\'ephyr ha\"i me |
| 20 |
v\^et de gla\c{c}ons w\"urmiens je d\^ine d'exquis |
| 21 |
r\^otis de b\oe uf au kir \`a l'a\"y d'\^age m\^ur \& |
| 22 |
c\ae tera\,!} |
| 23 |
\def\myfeedback{cit\'e dans |
| 24 |
\og\,\href{https://jacques-andre.fr/faqtypo/lessons.pdf}{Petites |
| 25 |
le\c{c}ons de typographie}\,\fg\ de Jacques |
| 26 |
\textsc{Andr\'e}.} |
| 27 |
\else % assuming XELATEX or LUALATEX |
| 28 |
\def\myquestiontext{ \underline{Pangramme} conçu par |
| 29 |
Gilles \textsc{Esposito-Farèse}:} |
| 30 |
\def\pangramme{Dès Noël où un zéphyr haï me vêt de |
| 31 |
glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à |
| 32 |
l’aÿ d’âge mûr \& cætera\,!} |
| 33 |
\def\myfeedback{cité dans |
| 34 |
\og\href{https://jacques-andre.fr/faqtypo/lessons.pdf} |
| 35 |
{Petites leçons de typographie}\fg\ de Jacques |
| 36 |
\textsc{André}.} |
| 37 |
\fi |
| 38 |
\htmlregister{\myquestiontext} |
| 39 |
\htmlregister{\pangramme} |
| 40 |
\htmlregister{\myfeedback} |
| 41 |
\begin{document} |
| 42 |
|
| 43 |
\section*{Introduction} |
| 44 |
|
| 45 |
This document is intended to check the support of the \texttt{babel} package |
| 46 |
with option \texttt{french} that causes problems during \texttt{pdfLaTeX} |
| 47 |
compilation, due to autospacing. |
| 48 |
|
| 49 |
Secondarily, the use of \verb|\textsuperscript| (and french adaptation |
| 50 |
\verb|\fup|), \verb|\textsubscript|, \verb|\textsc|, \verb|\underline|, |
| 51 |
\verb|\url|, and \verb|\href| is also demonstrated. |
| 52 |
|
| 53 |
\begin{quiz}[points=1]{French Issues} |
| 54 |
\ifPDFTeX |
| 55 |
\NoAutoSpacing% this option preserves pdflatex compilation |
| 56 |
\fi |
| 57 |
\begin{multi}[feedback={1\fup{er}, M\fup{me}, N\fup{o}\\ |
| 58 |
1\textsuperscript{er}, M\textsuperscript{me}, N\textsuperscript{o}\\ |
| 59 |
H\textsubscript{2}O}]{Test french} |
| 60 |
\myquestiontext |
| 61 |
\item[feedback={\myfeedback}]* \pangramme |
| 62 |
\item Portez ce vieux whisky au juge blond qui fume. |
| 63 |
\end{multi} |
| 64 |
|
| 65 |
\end{quiz} |
| 66 |
\end{document} |