Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix styling of \section in epleval.cls + fix baseline of label #849

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/eplbase.cls
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@

%%% SECTION TITLE APPEARANCE
\RequirePackage{sectsty}
% Section title sizes are by default: Large for section, large for subsection, normalsize for subsubsection, paragraph, subparagraph.
\allsectionsfont{\sffamily\mdseries\upshape} % (See the fntguide.pdf for font help)
% (This matches ConTeXt defaults)

Expand Down
4 changes: 2 additions & 2 deletions src/epleval.cls
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
\titleformat
{\section} % command
[hang] % shape
{\bfseries} % format
{\shadowbox{~\thesection~}} % label
{\mdseries\Large\sffamily\upshape} % format
{\raisebox{-\shadowsize}{\shadowbox{\bfseries\rmfamily\normalsize~\thesection~}}} % label ; note: \fboxsep is the padding
{0.5ex} % sep
{} % before-code

Expand Down
4 changes: 2 additions & 2 deletions src/eplexercises.cls
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
\titleformat
{\section} % command
[display] % shape
{\bfseries\Large} % format
{\sffamily\mdseries\upshape\Large} % format
{APE \thesection} % label
{0.5ex} % sep
{} % before-code
Expand All @@ -45,7 +45,7 @@
\titleformat
{\subsection} % command
[display] % shape
{\bfseries\Large} % format
{\sffamily\mdseries\upshape\large} % format
{\IfLanguageName{english}{Exercise}{Exercice} \thesubsection} % label
{0.5ex} % sep
{} % before-code
Expand Down
4 changes: 2 additions & 2 deletions src/eplmcq.cls
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
\titleformat
{\section} % command
[display] % shape
{\bfseries\Large} % format
{\sffamily\mdseries\upshape\Large} % format
{\IfLanguageName{english}{MCQ}{QCM} \thesection} % label
{0.5ex} % sep
{} % before-code
Expand All @@ -35,7 +35,7 @@
\titleformat
{\subsection} % command
[display] % shape
{\bfseries\Large} % format
{\sffamily\mdseries\upshape\large} % format
{\IfLanguageName{english}{MCQ}{QCM} \thesubsection} % label
{0.5ex} % sep
{} % before-code
Expand Down