Skip to content

Commit 9f326e5

Browse files
authored
Merge pull request #28 from nmfs-opensci/27-error-trying-to-reproduce-exampleqmd-on-windows
27 error trying to reproduce exampleqmd on windows
2 parents 3bf49e2 + 9275f11 commit 9f326e5

File tree

7 files changed

+48
-59
lines changed

7 files changed

+48
-59
lines changed

_extensions/titlepage/_extension.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
title: titlepage
22
author: Eli Holmes
3-
version: 3.3.4
3+
version: 3.3.5
44
contributes:
55
format:
66
pdf:

_extensions/titlepage/coverpage-theme.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ Set up the demos
232232
if isEmpty(m['coverpage-footer']) then
233233
m['coverpage-footer'] = "Templates for title pages and covers"
234234
end
235-
demovals = {["title-align"] = "right", ["title-fontsize"] = 30, ["title-fontfamily"] = "Palatino", ["title-fontstyle"] = {"textbf", "textit"}, ["title-bottom"] = "10in", ["author-style"] = "none", ["footer-fontsize"] = 20, ["footer-fontfamily"] = "Palatino", ["footer-fontstyle"] = {"textit"}, ["footer-align"] = "right", ["footer-bottom"] = "9.5in", ["page-html-color"] = "F6D5A8", ["bg-image-fading"] = "north"}
235+
demovals = {["title-align"] = "right", ["title-fontsize"] = 40, ["title-fontfamily"] = "QTDublinIrish.otf", ["title-bottom"] = "10in", ["author-style"] = "none", ["footer-fontsize"] = 20, ["footer-fontfamily"] = "QTDublinIrish.otf", ["footer-align"] = "right", ["footer-bottom"] = "9.5in", ["page-html-color"] = "F6D5A8", ["bg-image-fading"] = "north"}
236236
for dkey, val in pairs(demovals) do
237237
if isEmpty(m['coverpage-theme'][dkey]) then
238238
m['coverpage-theme'][dkey] = val

documentation/02-titlepages.qmd

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Example:
6565
titlepage-theme:
6666
page-html-color: "c4c4c4"
6767
title-style: "plain"
68-
title-fontfamily: "Palatino"
68+
title-fontfamily: "Arial"
6969
title-fontstyle: ["Huge", "bfseries"]
7070
title-align: left
7171
title-space-after: 1in
@@ -258,12 +258,12 @@ These are features that you can customize. If you leave it out, it will either n
258258
page-html-color: "c4c4c4"
259259
page-color: green # use either html-color or color
260260
page-text-align: center
261-
page-fontfamily: "Palatino"
261+
page-fontfamily: "Arial"
262262
page-fontsize: 40
263263
page-spacing: 48
264264
title-style: "plain"
265265
title-color: "white"
266-
title-fontfamily: "Palatino"
266+
title-fontfamily: "Arial"
267267
title-fontsize: 14
268268
title-spacing: 16
269269
title-fontstyle: ["textit", "bfseries"]
@@ -274,7 +274,7 @@ These are features that you can customize. If you leave it out, it will either n
274274
title-colorbox-bordercolor: "black"
275275
title-subtitle-space-between: "0.1\\textheight"
276276
subtitle-color: "white"
277-
subtitle-fontfamily: "Palatino"
277+
subtitle-fontfamily: "Arial"
278278
subtitle-fontsize: 10
279279
subtitle-spacing: 12
280280
subtitle-fontstyle: ["textit", "bfseries"]
@@ -283,21 +283,21 @@ These are features that you can customize. If you leave it out, it will either n
283283
author-style: "superscript"
284284
author-sep: ",\ "
285285
author-color: "white"
286-
author-fontfamily: "Palatino"
286+
author-fontfamily: "Arial"
287287
author-fontsize: 14
288288
author-spacing: 16
289289
author-fontstyle: ["textsc"]
290290
author-align: center
291291
author-space-after: "0.1\\paperheight"
292292
affiliation-style: "numberedlist"
293-
affiliation-fontfamily: "Palatino"
293+
affiliation-fontfamily: "Arial"
294294
affiliation-fontsize: 12
295295
affiliation-spacing: 16
296296
affiliation-fontstyle: "large"
297297
affiliation-align: left
298298
affiliation-space-after: 1in
299299
footer-style: "colorbox"
300-
footer-fontfamily: "Palatino"
300+
footer-fontfamily: "Arial"
301301
footer-fontsize: 12
302302
footer-spacing: 16
303303
footer-fontstyle: "uppercase"
@@ -307,7 +307,7 @@ These are features that you can customize. If you leave it out, it will either n
307307
footer-colorbox-borderwidth: 2pt
308308
footer-colorbox-bordercolor: "black"
309309
header-style: "plain"
310-
header-fontfamily: "Palatino"
310+
header-fontfamily: "Arial"
311311
header-fontsize: 12
312312
header-spacing: 20
313313
header-fontstyle: "lowercase"
@@ -317,7 +317,7 @@ These are features that you can customize. If you leave it out, it will either n
317317
header-colorbox-borderwidth: 2pt
318318
header-colorbox-bordercolor: "black"
319319
date-style: "colorbox"
320-
date-fontfamily: "Palatino"
320+
date-fontfamily: "Arial"
321321
date-fontsize: 12
322322
date-spacing: 20
323323
date-fontstyle: ["slseries"]

documentation/04-coverpages.qmd

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Example:
6767
coverpage-theme:
6868
page-html-color: "c4c4c4" # html color
6969
title-style: "plain"
70-
title-fontfamily: "Palatino"
70+
title-fontfamily: "Arial"
7171
title-fontstyle: ["Huge", "bfseries"]
7272
title-align: left
7373
title-location-bottom: "0.5\\paperheight"
@@ -198,12 +198,12 @@ These are features that you can customize. If you leave it out, it will either n
198198
page-html-color: "c4c4c4"
199199
page-color: green # use either html-color or color
200200
page-text-align: center
201-
page-fontfamily: "Palatino"
201+
page-fontfamily: "Arial"
202202
page-fontsize: 40
203203
page-spacing: 48
204204
title-style: "plain"
205205
title-color: "white"
206-
title-fontfamily: "Palatino"
206+
title-fontfamily: "Arial"
207207
title-fontsize: 14
208208
title-spacing: 16
209209
title-fontstyle: ["textit", "bfseries"]
@@ -215,7 +215,7 @@ These are features that you can customize. If you leave it out, it will either n
215215
author-style: "plain"
216216
author-sep: ",\ "
217217
author-color: "white"
218-
author-fontfamily: "Palatino"
218+
author-fontfamily: "Arial"
219219
author-fontsize: 14
220220
author-spacing: 16
221221
author-fontstyle: ["textsc"]
@@ -225,7 +225,7 @@ These are features that you can customize. If you leave it out, it will either n
225225
author-bottom: 1in
226226
author-width: 6in
227227
footer-style: "plain"
228-
footer-fontfamily: "Palatino"
228+
footer-fontfamily: "Arial"
229229
footer-fontsize: 12
230230
footer-spacing: 16
231231
footer-fontstyle: "uppercase"
@@ -235,7 +235,7 @@ These are features that you can customize. If you leave it out, it will either n
235235
footer-bottom: 1cm
236236
footer-width: 10cm
237237
header-style: "plain"
238-
header-fontfamily: "Palatino"
238+
header-fontfamily: "Arial"
239239
header-fontsize: 12
240240
header-spacing: 20
241241
header-fontstyle: "lowercase"
@@ -244,7 +244,7 @@ These are features that you can customize. If you leave it out, it will either n
244244
header-left: "0.5\\paperwidth"
245245
header-bottom: "0.9\\paperwidth"
246246
date-style: "plain"
247-
date-fontfamily: "Palatino"
247+
date-fontfamily: "Arial"
248248
date-fontsize: 12
249249
date-spacing: 20
250250
date-fontstyle: ["slseries"]

documentation/05-coverpage-themes.qmd

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,14 @@ This demo has an image that fade to the top with a page color that matches the t
5353
coverpage-footer: "Templates for title pages and covers"
5454
coverpage-theme:
5555
page-html-color: "F6D5A8"
56-
title-fontfamily: "Palatino"
57-
title-fontsize: 30
58-
title-fontstyle: ["textbf", "textit"]
56+
title-fontfamily: "QTDublinIrish.otf"
57+
title-fontsize: 40
5958
title-align: "right"
6059
title-bottom: "10in"
6160
header-style: "none"
6261
author-style: "none"
6362
footer-fontsize: 20
64-
footer-fontfamily: "Palatino"
65-
footer-fontstyle: "textit"
63+
footer-fontfamily: "QTDublinIrish.otf"
6664
footer-align: "right"
6765
footer-bottom: "9.5in"
6866
date-style: "none"

example.pdf

-11.1 KB
Binary file not shown.

example.tex

Lines changed: 27 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@
169169
\usepackage[pagecolor=none]{pagecolor}
170170

171171

172-
173172
% Set the titlepage font families
174173

175174

@@ -179,14 +178,10 @@
179178

180179

181180
% Set the coverpage font families
182-
183181
\usepackage{fontspec}
184-
\newfontfamily{\coverpagetitlefont}{Palatino}
185-
186-
182+
\newfontfamily{\coverpagetitlefont}{QTDublinIrish.otf}
187183
\usepackage{fontspec}
188-
\newfontfamily{\coverpagefooterfont}{Palatino}
189-
184+
\newfontfamily{\coverpagefooterfont}{QTDublinIrish.otf}
190185

191186
\ifLuaTeX
192187
\usepackage{selnolig} % disable illegal ligatures
@@ -238,19 +233,18 @@
238233
\tikzfading[name=fadeout, inner color=transparent!0,outer color=transparent!100]
239234
\tikzfading[name=fadein, inner color=transparent!100,outer color=transparent!0]
240235
\node[ scope fading=north, anchor=south west, rotate=0.0, opacity=1.0] at ($(current page.south west)+(0.0, 0.0)$) {
241-
\includegraphics[width=\paperwidth, keepaspectratio]{\_extensions/titlepage/images/TheGreatWaveoffKanagawa.jpeg}};
236+
\includegraphics[width=\paperwidth, keepaspectratio]{/Users/eli.holmes/Documents/GitHub/quarto\_titlepages/\_extensions/titlepage/images/TheGreatWaveoffKanagawa.jpeg}};
242237

243238
% Title
244239
\newcommand{\titlelocationleft}{0.8\paperwidth}
245240
\newcommand{\titlelocationbottom}{10in}
246241
\newcommand{\titlealign}{right}
247242

248-
\begin{scope}
249-
{%
250-
\fontsize{30}{36.0}\selectfont
243+
\begin{scope}{%
244+
\fontsize{40}{48.0}\selectfont
251245
\coverpagetitlefont
252246
\node[anchor=north
253-
east, align=right, rotate=0] (Title1) at ($(current page.south west)+(\titlelocationleft,\titlelocationbottom)$) [text width = 0.7\paperwidth] {{\textbf{\textit{\nohyphens{quarto\_titlepages}}}}};
247+
east, align=right, rotate=0] (Title1) at ($(current page.south west)+(\titlelocationleft,\titlelocationbottom)$) [text width = 0.7\paperwidth] {{\nohyphens{quarto\_titlepages}}};
254248
}
255249
\end{scope}
256250

@@ -264,8 +258,8 @@
264258
\fontsize{20}{24.0}\selectfont
265259
\coverpagefooterfont
266260
\node[anchor=north east, align=right, rotate=0] (Footer1) at %
267-
($(current page.south west)+(\footerlocationleft,\footerlocationbottom)$) [text width = 0.7\paperwidth] {{\textit{\nohyphens{Templates
268-
for title pages and covers}}}};
261+
($(current page.south west)+(\footerlocationleft,\footerlocationbottom)$) [text width = 0.7\paperwidth] {{\nohyphens{Templates
262+
for title pages and covers}}};
269263
}
270264
\end{scope}
271265

@@ -306,35 +300,32 @@
306300
\newcommand{\affiliationstyle}[1]{{\large{#1}}}
307301

308302
\newcommand{\titlepageauthorblock}{
309-
\authorstyle{Jane
310-
Doe{\textsuperscript{1}}\textsuperscript{,}{\textsuperscript{2}}, Eva
311-
Nováková{\textsuperscript{3}}, Matti
312-
Meikäläinen{\textsuperscript{4}}\textsuperscript{,}{\textsuperscript{*}} and Ashok
313-
Kumar{\textsuperscript{2}}\textsuperscript{,}{\textsuperscript{5}}%
314-
315-
}}
303+
{\authorstyle{\nohyphens{Jane
304+
Doe}{\textsuperscript{1}}\textsuperscript{,}{\textsuperscript{2}}, \nohyphens{Eva
305+
Nováková}{\textsuperscript{3}}, \nohyphens{Matti
306+
Meikäläinen}{\textsuperscript{4}}\textsuperscript{,}{\textsuperscript{*}} and \nohyphens{Ashok
307+
Kumar}{\textsuperscript{2}}\textsuperscript{,}{\textsuperscript{5}}}}}
316308

317309
\newcommand{\titlepageaffiliationblock}{
318310
\hangindent=1em
319311
\hangafter=1
320-
\affiliationstyle{
321-
{1}.~Minnesota Department of Natural Resources, 500 Lafayette Road
322-
Saint Paul, MN 55155
323-
\par\hangindent=1em\hangafter=1%
324-
{2}.~University of Minnesota, Department of Mathematics
325-
\par\hangindent=1em\hangafter=1%
326-
{3}.~Czech University of Life Sciences, Družstevní 666, Vikýřovice,
327-
Czechia
328-
\par\hangindent=1em\hangafter=1%
329-
{4}.~University of Kemijärvi, Department of Biological and Environmental
330-
Science, Kylmäniementie 79, 98120, KEMIJÄRVI, Finland
331-
\par\hangindent=1em\hangafter=1%
332-
{5}.~HØnefoss Institute, R Tradição 35, Portugal 2950-726
312+
{\affiliationstyle{
313+
{1}.~Minnesota Department of Natural Resources,~500 Lafayette Road Saint
314+
Paul, MN 55155
315+
\par\hangindent=1em\hangafter=1{2}.~University of Minnesota,~Department
316+
of Mathematics
317+
\par\hangindent=1em\hangafter=1{3}.~Czech University of Life
318+
Sciences,~Družstevní 666, Vikýřovice, Czechia
319+
\par\hangindent=1em\hangafter=1{4}.~University of Kemijärvi,~Department
320+
of Biological and Environmental Science,~Kylmäniementie 79, 98120,
321+
KEMIJÄRVI, Finland
322+
\par\hangindent=1em\hangafter=1{5}.~HØnefoss Institute,~R Tradição 35,
323+
Portugal 2950-726
333324

334325

335326
\vspace{1\baselineskip}
336327
* \textit{Correspondence:}~Matti Meikälä[email protected]
337-
}
328+
}}
338329
}
339330
\newcommand{\headerstyled}{%
340331
{The Publisher}
@@ -456,7 +447,7 @@
456447
\setcounter{page}{1}
457448
\end{frontmatter}
458449

459-
%%%%% end titlepage extension code\ifdefined\Shaded\renewenvironment{Shaded}{\begin{tcolorbox}[enhanced, interior hidden, breakable, borderline west={3pt}{0pt}{shadecolor}, sharp corners, boxrule=0pt, frame hidden]}{\end{tcolorbox}}\fi
450+
%%%%% end titlepage extension code\ifdefined\Shaded\renewenvironment{Shaded}{\begin{tcolorbox}[boxrule=0pt, interior hidden, sharp corners, breakable, frame hidden, borderline west={3pt}{0pt}{shadecolor}, enhanced]}{\end{tcolorbox}}\fi
460451

461452
\renewcommand*\contentsname{Table of contents}
462453
{

0 commit comments

Comments
 (0)