
예상되는 결과는 다음과 같습니다.
이것은 지금까지의 내 작업이며 새 라인으로 이동하기 위해 두 개의 백래시를 넣을 때 문제가 발생했습니다. 컴파일을 위해 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}