Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (38 sloc) 1.22 KB
\newif\ifusinght
\makeatletter
\@ifundefined{HCode}{\usinghtfalse}{\usinghttrue}
\makeatother
\newcommand{\authorbio}[1]{\vspace{-14pt}\noindent\textit{#1}\vspace{14pt}\noindent}
\usepackage{ifthen}
\ifusinght
\newcommand*{\chapterwithauthor}[3][\empty]{%
\ifthenelse{\equal{#1}{\empty}}
{\chapter{#3}{#2}}%
{\chapter[#1]{#3}{#2}}%
}
\else
\renewcommand*{\chaptermarkformat}{}
\renewcommand*{\chapterheadstartvskip}{\vspace*{0.5\baselineskip}}
\renewcommand*{\chapterheadendvskip}{\vspace*{1\baselineskip}}
\makeatletter
\newcommand*{\chapterwithauthor}[3][\empty]{%
\ifthenelse{\equal{#1}{\empty}}
{\gdef\chapterauthor{#2}\chapter{#3}}%
{\gdef\chapterauthor{#2}\chapter[#1]{#3}}%
}
\renewcommand*{\chapterformat}{\thechapter\autodot\hskip 1pc}
\newlength{\authorindent}
\gdef\chapterauthor{}
\renewcommand*{\chapterheadendvskip}{%
\ifx\chapterauthor\@empty\else
\markright{\chapterauthor}%
\vskip\baselineskip\nobreak
\settowidth{\authorindent}{{%
\usekomafont{sectioning}\usekomafont{chapter}\chapterformat
}}%
\begin{flushright}\sffamily\hspace*{\authorindent}\chapterauthor\par\nobreak
\global\let\chapterauthor\@empty\end{flushright}
\fi
\noindent\par\nobreak\vskip 2\baselineskip%
}
\fi
Something went wrong with that request. Please try again.