Skip to content

Commit

Permalink
fix coverpage author color (#58)
Browse files Browse the repository at this point in the history
* fix author color for coverpage.

#57

* ignore testing examples

* Update QTDublinIrish.otf
  • Loading branch information
eeholmes authored Jan 15, 2025
1 parent b7fd3dd commit 9337532
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,8 @@ template.log
template.tex
template.pdf

# Some testing examples
example_4.*
example_4_files/
example_5.*
example_5_files/
Empty file modified QTDublinIrish.otf
100755 → 100644
Empty file.
5 changes: 2 additions & 3 deletions _extensions/titlepage/_coverpage.tex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
$endif$

\newcommand{\coverauthorstyle}[1]{{$if(coverpage-theme.author-fontsize)$\fontsize{$coverpage-theme.author-fontsize$}{$coverpage-theme.author-spacing$}\selectfont
$endif$$for(coverpage-theme.author-fontstyle)$\$coverpage-theme.author-fontstyle${$endfor$#1$for(coverpage-theme.author-fontstyle)$}$endfor$}}
$endif$$for(coverpage-theme.author-fontstyle)$\$coverpage-theme.author-fontstyle${$endfor$$if(coverpage-theme.author-color)$\textcolor{$coverpage-theme.author-color$}$endif${#1}$for(coverpage-theme.author-fontstyle)$}$endfor$}}
\begin{tikzpicture}[remember picture, overlay, inner sep=0pt, outer sep=0pt]
Expand Down Expand Up @@ -55,8 +55,7 @@
{%
$if(coverpage-theme.author-fontsize)$\fontsize{$coverpage-theme.author-fontsize$}{$coverpage-theme.author-spacing$}\selectfont
$endif$$if(coverpage-theme.author-fontfamily)$\coverpageauthorfont
$endif$\node[anchor=$coverpage-theme.author-anchor$, align=$coverpage-theme.author-align$, rotate=$coverpage-theme.author-rotate$] (Author1) at ($$(current page.south west)+(\authorlocationleft,\authorlocationbottom)$$) [text width = $coverpage-theme.author-width$$if(coverpage-theme.author-node-spec)$, $coverpage-theme.author-node-spec$$endif$] {
$if(coverpage-theme.author-color)$\textcolor{$coverpage-theme.author-color$}$endif$\coverauthorstyle{$for(coverpage-author)$$coverpage-author$$sep$$coverpage-theme.author-sep$$endfor$\\}};
$endif$\node[anchor=$coverpage-theme.author-anchor$, align=$coverpage-theme.author-align$, rotate=$coverpage-theme.author-rotate$] (Author1) at ($$(current page.south west)+(\authorlocationleft,\authorlocationbottom)$$) [text width = $coverpage-theme.author-width$$if(coverpage-theme.author-node-spec)$, $coverpage-theme.author-node-spec$$endif$] {\coverauthorstyle{$for(coverpage-author)$$coverpage-author$$sep$$coverpage-theme.author-sep$$endfor$\\}};
}
\end{scope}
$endif$
Expand Down
2 changes: 1 addition & 1 deletion _extensions/titlepage/_extension.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: titlepage
author: Eli Holmes
quarto-required: ">=1.1.0"
version: 3.3.10
version: 3.3.11
contributes:
format:
pdf:
Expand Down
Binary file modified example_3.pdf
Binary file not shown.
4 changes: 3 additions & 1 deletion example_3.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ format:
titlepage-pdf:
documentclass: scrbook
classoption: ["oneside", "open=any"]
link-citations: true
number-sections: true
toc: true
lof: true
Expand All @@ -39,8 +40,9 @@ format:
title-fontsize: 100
author-style: "plain"
author-sep: "newline"
author-fontstyle: "textsc"
author-fontstyle: ["textbf", "textsc"]
author-fontsize: 30
author-color: green
author-align: "right"
author-bottom: "2in"
footer-style: "none"
Expand Down

0 comments on commit 9337532

Please sign in to comment.