Pour franciser une documentation de 187 p., sans babel, la compilation est complète. Mais pour respecter les règles typographiques françaises, % ----- babel bloque la compilation ----- % % ----- typographie française (i) ----- % %\usepackage[french]{babel} %\setlength{\parindent}{0pt} %\setlength{\parskip}{4pt plus 1pt minus 1pt} % ----- typographie française (ii) ----- % %\DefTblrTemplate{contfoot-text}{default}{Suite page suivante} %\DefTblrTemplate{conthead-text}{default}{(suite)} % pour franciser les changements de page dans les grands tableaux % DÉBUT DU PRÉAMBULE % -*- coding: utf-8 -*- % !TEX program = lualatex \documentclass[oneside]{book} \newcommand*{\myversion}{X} \newcommand*{\mylpad}[1]{\ifnum#1<10 0\the#1\else\the#1\fi} \usepackage[a4paper,margin=2.5cm]{geometry} %\usepackage[french]{babel} \setlength{\parindent}{0pt} \setlength{\parskip}{4pt plus 1pt minus 1pt} \usepackage{codehigh} % https://ctan.org/pkg/codehigh \usepackage{tabularray} \usepackage{array,multirow,amsmath} \usepackage{chemmacros,environ} \usepackage{enumitem} \usepackage[firstpage=true]{background} \backgroundsetup{contents={}} \UseTblrLibrary{amsmath,booktabs,counter,diagbox,functional,siunitx,varwidth} \usepackage{hyperref} \hypersetup{ colorlinks=true, urlcolor=blue3, linkcolor=blue3, pdfauthor=[MFerrer erreur babel], pdftitle=recherche de solution \today, pdfsubject= typographie française } \usepackage{tcolorbox} \tcbset{sharp corners, boxrule=0.5pt, colback=red9} \usepackage{float} %\usepackage{enumerate} \setcounter{tocdepth}{1} \newcommand*{\K}[1]{\texttt{#1}} \newcommand*{\V}[1]{\texttt{#1}} \newcommand*{\None}{$\times$} \NewTblrEnviron{newtblr} \SetTblrOuter[newtblr]{long} \SetTblrInner[newtblr]{ hlines = {white}, column{1,2} = {co=1}, colsep = 5pt, row{odd} = {brown8}, row{even} = {gray8}, row{1} = {fg=white, bg=purple2, font=\bfseries\sffamily}, } \NewTblrEnviron{spectblr} \SetTblrOuter[spectblr]{long} \SetTblrInner[spectblr]{ hlines = {white}, column{2} = {co=1}, colsep = 5pt, row{odd} = {brown8}, row{even} = {gray8}, row{1} = {fg=white, bg=purple2, font=\bfseries\sffamily}, rowhead = 1, } \newcommand{\mywarning}[1]{% \begin{tcolorbox} The interfaces in this #1 should be seen as \textcolor{red3}{\bfseries experimental} and are likely to change in future releases, if necessary. Don’t use them in important documents. \end{tcolorbox} } %\renewcommand*{\thefootnote}{*} \colorlet{highback}{azure9} \CodeHigh{language=latex/table,style/main=highback,style/code=highback} \NewCodeHighEnv{code}{style/main=gray9,style/code=gray9} \NewCodeHighEnv{demo}{style/main=gray9,style/code=gray9,demo} %\CodeHigh{lite} \begin{document} \begin{demohigh} \NewExpandableDocumentCommand\yes{O{Yes}m}{\SetCell{bg=green9}#1} \NewExpandableDocumentCommand\no{O{No}m}{\SetCell{bg=red9}#1} \begin{tblr}[expand=\expanded]{hlines} What I get & is below \\ \expanded{\yes{}} & \expanded{\no{}} \\ \expanded{\yes[Great]{}} & \expanded{\no[Bad]{}} \end{tblr} \end{demohigh} \end{document} Capture d’écran de la console babel activé Posée 09 Avr '24, 15:27 MFerrer |
La commande Publiée 09 Avr '24, 15:34 denis ♦♦ |