
Este é o resultado esperado:
Este é o meu trabalho até agora e tive problemas quando coloquei as duas folgas para ir para a nova linha. Use XelaTeX para compilar ...
\documentclass[nocrop]{sesamanuel}
\let\ifluatex\relax
\usepackage{hyperref}
\begin{document}
\NewThema{A}{a}{analyse}{Analyse}{ANALYSE}{PartieFonction}{A3}
\themaA
\colorlet{ChapterNumSquare1Color}{PartieFonction}
\chapter{Fonctions\\Numériques}
\cours
my first chapter goes here... chapter goes here...
\themaG
\colorlet{ChapterNumSquare1Color}{PartieGeometrie}
\chapter{Nombres\\Complexes}
\cours
my second chapter goes here...
\NewThema{PS}{ps}{probabilités statistiques}{Probabilités Statistiques}{PROBABILITES \\ STATISTIQUES}{PartieStatistique}{U1}
\themaPS
\colorlet{ChapterNumSquare1Color}{PartieStatistique}
\chapter{Probabilités\\Statistiques}
\cours
my third chapter ....
\end{document}
depois de compilar este é o resultado:
Responder1
Parece que o problema é que \NewThema
não lida bem com a quebra de linha. Como solução alternativa, você pode usar \newcommand*\themaPS{...}
para definir seu novo tema.
% !TEX TS-program = xelatex
\documentclass[nocrop]{sesamanuel}
\let\ifluatex\relax
\usepackage{hyperref}
\makeatletter
\newcommand*\themaPS{%
\cleardoubleoddpage
\def\smc@thema{probabilités statistiques}%
\def\smc@themacap{PROBABILIT\'ES\\ STATISTIQUES}%
\def\smc@thema@init{ps}%
\def\smc@thema@initcap{PS}%
\smc@themaSColor
}
\makeatother
\begin{document}
\themaPS
\chapter{Partie Statistique}
my first chapter goes here... chapter goes here...
\end{document}