Skip to content

Commit

Permalink
fix vrule color not working (#59)
Browse files Browse the repository at this point in the history
* fix vrule color

#55
  • Loading branch information
eeholmes authored Jan 15, 2025
1 parent 9337532 commit 5b0d67a
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ example_4.*
example_4_files/
example_5.*
example_5_files/
*.html
2 changes: 1 addition & 1 deletion _extensions/titlepage/_titlepage.tex
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
\newcommand{\vrulecode}{\noindent\colorbox{$titlepage-theme.vrule-color$}{\begin{minipage}[b][0.99\textheight][c]{\vrulewidth}$if(titlepage-theme.vrule-text)$
\centering\rotatebox{90}{\makebox[0.88\textheight][r]{$if(titlepage-theme.vrule-text-fontstyle)$$for(titlepage-theme.vrule-text-fontstyle)$\$titlepage-theme.vrule-text-fontstyle${$endfor$$endif$$if(titlepage-theme.vrule-text-color)$\color{$titlepage-theme.vrule-text-color$}$endif$$titlepage-theme.vrule-text$$for(titlepage-theme.vrule-text-fontstyle)$}$endfor$}}$endif$\end{minipage}}}
$else$
\newcommand{\vrulecode}{\rule{\vrulewidth}{\textheight}}
\newcommand{\vrulecode}{\textcolor{$titlepage-theme.vrule-color$}{\rule{\vrulewidth}{\textheight}}}
$endif$
\newlength{\vrulewidth}
\setlength{\vrulewidth}{$titlepage-theme.vrule-width$}
Expand Down
Binary file modified example_1.pdf
Binary file not shown.
1 change: 0 additions & 1 deletion example_1.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ author:
address: R Tradição 35, Portugal 2950-726
bibliography: references.bib
format:
html: default
titlepage-pdf:
documentclass: scrbook
classoption: ["oneside", "open=any"]
Expand Down
Binary file modified example_3.pdf
Binary file not shown.
3 changes: 3 additions & 0 deletions example_3.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ format:
- tex/copyright.tex
titlepage-include-file:
- tex/dedication.tex
titlepage-theme:
vrule-color: "green"
vrule-width: "10pt"
coverpage: otter
coverpage-bg-image: "img/otter-bar.jpeg"
coverpage-title: "Otters"
Expand Down

0 comments on commit 5b0d67a

Please sign in to comment.