
期待される結果は次のとおりです:
これはこれまでの私の作業ですが、新しい行に移動するために 2 つのバックスラッシュを配置したときに問題が発生しました。コンパイルには 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}