|
39 | 39 | \RequirePackage{subcaption} |
40 | 40 | \RequirePackage{ragged2e} |
41 | 41 | \RequirePackage{ifoddpage} |
| 42 | +\RequirePackage{adjustbox} |
42 | 43 | \RequirePackage[xindy, toc, nopostdot]{glossaries} |
43 | 44 | \RequirePackage{hyperref} |
44 | 45 | % “… cleveref must be loaded *last*” |
|
189 | 190 | \color{black}% |
190 | 191 | \selectfont} |
191 | 192 |
|
192 | | -\newlength\thesis@chapter@width |
193 | | -\newlength\thesis@chapter@orig |
194 | | - |
195 | 193 | \titleformat{\chapter} |
196 | 194 | {\gdef\chapterlabel{}} |
197 | 195 | {\begingroup% |
|
201 | 199 | {0pt}% Sep |
202 | 200 | {\begingroup% |
203 | 201 | \usekomafont{chapter}% |
204 | | - \setlength\thesis@chapter@orig{\textwidth}% |
205 | | - \setlength\thesis@chapter@width{\textwidth}% |
206 | | - \addtolength\thesis@chapter@width{\marginparwidth}% |
207 | | - \addtolength\thesis@chapter@width{\marginparsep}% |
208 | 202 | \makebox[\textwidth][l]{% |
209 | | - \begin{minipage}{\thesis@chapter@width} |
210 | | - \begin{minipage}[t]{\thesis@chapter@orig} |
211 | | - \hyphenpenalty=10000% |
212 | | - \exhyphenpenalty=10000% |
213 | | - \raggedright#1% |
214 | | - \end{minipage}% |
215 | | - \hspace{\marginparsep}% |
216 | | - {\thesis@chapternumber\addfontfeature{Numbers=Lining}{\chapterlabel}} |
217 | | - \end{minipage}} |
| 203 | + \begin{adjustbox}{minipage=\textwidth, valign=t} |
| 204 | + \hyphenpenalty=10000% |
| 205 | + \exhyphenpenalty=10000% |
| 206 | + \raggedright#1% |
| 207 | + \end{adjustbox}% |
| 208 | + \hspace{\marginparsep}% |
| 209 | + \begin{adjustbox}{minipage=\marginparwidth, valign=t} |
| 210 | + {\thesis@chapternumber\addfontfeature{Numbers=Lining}{\chapterlabel}}% |
| 211 | + \end{adjustbox}} |
| 212 | + \vspace{-\baselineskip} |
218 | 213 | \endgroup% |
219 | 214 | \setbox0\vbox{\use@preamble{chapter@u}% |
220 | 215 | \vskip-\parskip}% |
|
0 commit comments