Skip to content

Commit

Permalink
a little nicer dummy lettrines
Browse files Browse the repository at this point in the history
  • Loading branch information
jemmybutton committed Apr 24, 2019
1 parent dbf82bf commit 82b1691
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions preamble_be.tex
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,19 @@
{\externalfigure[lettrines/#1.pdf][width=1.5cm,height=1.5cm]\ignorespaces}
{\ifx#1\plateName\ignorespaces
\framed[
width=7.59cm,height=1.5cm,
frame=off]{}\ignorespaces
width=7.6cm,height=1.5cm,
frame=off,
background=color,
backgroundcolor=black,
frameoffset=0cm,
foregroundcolor=white]{}\ignorespaces
\else\ignorespaces
\framed[
width=1.5cm,height=1.5cm,
frame=off,
background=color,
backgroundcolor=black,
frameoffset=0cm,
foregroundcolor=white]{\tfd #1}\ignorespaces
foregroundcolor=white]{\vskip-13.5pt\vbox{\tfd #1}}\ignorespaces
\fi}\ignorespaces}}}

% This one is used standalone, f. e. in the Introduction
Expand Down Expand Up @@ -233,7 +236,7 @@

\def\plateName{plate}

\define[2]\bookTitle{\vbox{\vskip -\topspace\hskip0pt\hfill\hbox{\putLettrine{\plateName}}\hfill\hskip0pt\vskip 5\baselineskip~\hfill\hbox{\tfd #2}\hfill~}}
\define[2]\bookTitle{\vbox{\vskip -\topspace\hskip0pt\hfill\hbox{\hskip-1pt\putLettrine{\plateName}\hskip-1pt}\hfill\hskip0pt\vskip 5\baselineskip~\hfill\hbox{\tfd #2}\hfill~}}

\definehead[intro][coupling=part,default=part,incrementnumber=no,placehead=yes]
\setuphead[intro][alternative=text,command=\bookTitle,header=empty,footer=none,before={},after={}]
Expand Down

0 comments on commit 82b1691

Please sign in to comment.