Problem im Sesamanuel-Paket, um den Kapiteltitel in zwei Zeilen umzubrechen?

Problem im Sesamanuel-Paket, um den Kapiteltitel in zwei Zeilen umzubrechen?

Dies ist das zu erwartende Ergebnis:

Auszug aus Sesamath

Das ist meine bisherige Arbeit und ich habe ein Problem, als ich die beiden Backslashs einfügte, um zur neuen Zeile zu gelangen. Verwenden Sie XelaTeX zum Kompilieren ...

\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}

nach dem Kompilieren ist dies das Ergebnis:

mein Ergebnis

Antwort1

Das Problem scheint darin zu liegen, dass \NewThemader Zeilenumbruch nicht gut funktioniert. Als Workaround könnten Sie verwenden, \newcommand*\themaPS{...}um Ihr neues Design zu definieren.

% !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}

Bildbeschreibung hier eingeben

verwandte Informationen