
Вот какой результат следует ожидать:
Это моя работа на данный момент, и у меня возникла проблема, когда я вставил два обратных зазора, чтобы перейти на новую строку. Используйте XelaTeX для компиляции...
\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}
После компиляции вот такой результат:
решение1
Кажется, проблема в том, что это \NewThema
не очень хорошо справляется с переносом строки. В качестве обходного пути вы можете использовать \newcommand*\themaPS{...}
для определения вашей новой темы.
% !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}