Skip to content

Commit

Permalink
latex styling
Browse files Browse the repository at this point in the history
  • Loading branch information
calnfynn committed Jul 3, 2024
1 parent bcc4f7d commit 0def115
Show file tree
Hide file tree
Showing 41 changed files with 6,954 additions and 136 deletions.
678 changes: 678 additions & 0 deletions Die-barocken-Schloss--und-Gartenveduten.tex

Large diffs are not rendered by default.

33 changes: 24 additions & 9 deletions _quarto.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
project:
type: book
output-dir: docs
title: "Die barocken Schloss- und Gartenveduten"
subtitle: "Ein Versuch eines PDF-Buchs"
title: "Katalog zur Ausstellung: Die barocken Schloss- und Gartenveduten"
subtitle: "Versuch eines PDF-Buchs"
author: # repeat as often as needed
- name: Jane Doe
affiliations:
- name: Minnesota Department of Natural Resources
address: 500 Lafayette Road Saint Paul, MN 55155
email: [email protected]
- name: Maxine Mustermann
affiliations:
- name: University of Minnesota
department: Department of Mathematics
email: [email protected]
- name: Neptune III.
affiliations:
- name: University of Somewhere
department: Department of Marine Biology
abstract: "This is an abstract. :)"

# Quarto options for books
# https://quarto.org/docs/reference/projects/books.html
book:
Expand All @@ -35,39 +45,44 @@ format:
# https://quarto.org/docs/reference/formats/html.html
html:
number-sections: false
# css: https://latex.vercel.app/style.css
# Quarto allows a number of pre-packaged themes for the HTML version
# You can choose between them using the documentation at https://quarto.org/docs/output-formats/html-themes.html
theme:
dark: [slate, custom.scss]
light: [minty, custom.scss]
dark: [slate]
light: [minty]
code-fold: true
code-overflow: wrap
# options for PDF output
# https://quarto.org/docs/reference/formats/pdf.html
pdf:
keep-tex: true
include-in-header: "in-header.tex"
geometry:
pagestyle: plain # page numbers
geometry: # margins
- top=35mm
- right=25mm
- bottom=35mm
- left=25mm
- heightrounded
documentclass: book
classoption: openany
fontsize: 11pt
number-sections: true
documentclass: book
papersize: a4
toc: true
toc-depth: 3
toc-title: Inhaltsverzeichnis
urlcolor: cyan
template-partials:
- "before-body.tex"
- "_titlepage.tex"
#template: main.tex
- "before-body.tex"
title-bg-image: "images/cover.jpg"
title-bg-location: "UL"
title-bg-size: 1
docx:
toc: true
epub:
css: epubstyle.css
toc: true
epub-cover-image: images/cover.jpg
code-fold: true
Expand Down
128 changes: 74 additions & 54 deletions _titlepage.tex
Original file line number Diff line number Diff line change
@@ -1,65 +1,83 @@
% SOURCE: https://github.com/nmfs-opensci/quarto_titlepages_v1/tree/main

% This is a combination of Pandoc templating and LaTeX
% Pandoc templating https://pandoc.org/MANUAL.html#templates
% https://github.com/nmfs-opensci/quarto_titlepages_v1/tree/main


$if(titlepage-geometry)$
\newgeometry{$for(titlepage-geometry)$$titlepage-geometry$$sep$,$endfor$}
$endif$
\begin{minipage}[b][\textheight][s]{\textwidth}
\raggedright
\tcbset{
frame code={},
left=0pt,
right=0pt,
top=0pt,
bottom=0pt,
colback=gray!10!black,
colframe=white,
width=\dimexpr\textwidth\relax,
enlarge left by=0mm,
boxsep=15pt,
arc=0pt,outer arc=0pt,
opacityback=0.35, % translucent background
before skip=0pt,
after skip=0pt,
fontupper=\color{white},
fontlower=\color{white}
}

% background image
$if(title-bg-image)$
\This$if(title-bg-location)$$title-bg-location$$else$UL$endif$CornerWallPaper{$if(title-bg-size)$$title-bg-size$$else$0.5$endif$}{$title-bg-image$}
\This$if(title-bg-location)$$title-bg-location$$else$UL$endif$CornerWallPaper{$if(title-bg-size)$$title-bg-size$$else$0.5$endif$}{$title-bg-image$}
$endif$

\begin{tcolorbox}

$if(titlepage-geometry)$
\newgeometry{$for(titlepage-geometry)$$titlepage-geometry$$sep$,$endfor$}
$endif$

\centering

% Title and subtitle
\textcolor{white}{{\Huge\bfseries\nohyphens{$title$}}}\\[1\baselineskip]
{\Huge\bfseries\nohyphens{$title$}}\\[1\baselineskip]
$if(subtitle)$
\textcolor{white}{{\huge{$subtitle$}}}\\[4\baselineskip]
{\huge{$subtitle$}}\\[4\baselineskip]
$endif$


\end{tcolorbox}

\bigbreak

% Authors
% This is how to do it if you don't need the "and"
\begin{tcolorbox}

$if(by-author/allbutlast)$
$for(by-author/allbutlast)$
{\large{$by-author.name.literal$}}$for(by-author.affiliations)${\textsuperscript{$it.number$}}$sep$\textsuperscript{,}$endfor$%
$if(by-author.email)$%
$if(by-author.affiliations)$\textsuperscript{,}$endif$%
{\textsuperscript{*}}%
$endif$%
$sep$,
$endfor$
$for(by-author/last)$%
{ and \large{$by-author.name.literal$}}%
$for(by-author.affiliations)${\textsuperscript{$it.number$}}$sep$\textsuperscript{,}%
$endfor$%
$if(by-author.email)$%
$if(by-author.affiliations)$\textsuperscript{,}$endif$%
{\textsuperscript{*}}%
$endif$%
$endfor$
$else$
$for(by-author/last)$%
{\large{$by-author.name.literal$}}%
$for(by-author.affiliations)$%
{\textsuperscript{$it.number$}}$sep$\textsuperscript{,}$endfor$%
$if(by-author.email)$%
$if(by-author.affiliations)$\textsuperscript{,}$endif$%
{\textsuperscript{,*}}%
$for(by-author/allbutlast)$
{\large{$by-author.name.literal$}}$for(by-author.affiliations)${\textsuperscript{$it.number$}}$sep$\textsuperscript{,}$endfor$%
$if(by-author.email)$%
$if(by-author.affiliations)$\textsuperscript{,}$endif$%
{\textsuperscript{*}}%
$endif$%
$sep$,
$endfor$
$for(by-author/last)$%
{ and \large{$by-author.name.literal$}}%
$for(by-author.affiliations)${\textsuperscript{$it.number$}}$sep$\textsuperscript{,}%
$endfor$%
$if(by-author.email)$%
$if(by-author.affiliations)$\textsuperscript{,}$endif$%
{\textsuperscript{*}}%
$endif$%
$endfor$
$else$
$for(by-author/last)$%
{\large{$by-author.name.literal$}}%
$for(by-author.affiliations)$%
{\textsuperscript{$it.number$}}$sep$\textsuperscript{,}$endfor$%
$if(by-author.email)$%
$if(by-author.affiliations)$\textsuperscript{,}$endif$%
{\textsuperscript{,*}}%
$endif$%
$endfor$
$endif$

% This is how to do it if you don't need the "and"
%$if(false)$
% $for(by-author)$
% {$by-author.name.literal$}$for(by-author.affiliations)${\textsuperscript{$it.number$}}$sep${\textsuperscript{,}}$endfor$$if(by-author.email)$,{\textsuperscript{*}}$endif$$sep$,
%$endfor$
%$endif$

%%%%%% Affiliations
\vspace{2\baselineskip}

Expand All @@ -83,28 +101,30 @@

$for(by-author)$
$if(by-author.email)$
* \textit{Correspondence:}~$by-author.name.literal$~$by-author.email$
* \textit{Correspondence:}~$by-author.name.literal$~$by-author.email$\newline
$endif$
$endfor$

\end{tcolorbox}

%use \vfill instead to get the space to fill flexibly
%\vspace{0.25\textheight} % Whitespace between the title block and the publisher

\vfill

%%%%%% Cover image
$if(cover)$\includegraphics[width=\]{$cover$}$endif$

% Whitespace between the title block and the tagline
\vspace{1\baselineskip}

\begin{tcolorbox}
\centering

%%%%%% Tagline at bottom
\textcolor{white}{
TIB\newline
Open Science Lab\newline
{
TIB\\
Open Science Lab
}
\end{tcolorbox}

\end{minipage}
$if(titlepage-geometry)$
\restoregeometry
$endif$
\restoregeometry
$endif$
5 changes: 3 additions & 2 deletions before-body.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
$else$
\begin{titlepage}
$_titlepage.tex()$

\end{titlepage}
$endif$
$endif$

{\let\newpage\relax}
Binary file modified docs/Die-barocken-Schloss--und-Gartenveduten.docx
Binary file not shown.
Binary file modified docs/Die-barocken-Schloss--und-Gartenveduten.epub
Binary file not shown.
Binary file modified docs/Die-barocken-Schloss--und-Gartenveduten.pdf
Binary file not shown.
36 changes: 29 additions & 7 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

<meta name="author" content="Jane Doe">
<meta name="author" content="Maxine Mustermann">
<meta name="author" content="Neptune III.">
<meta name="dcterms.date" content="2024-06-15">

<title>Die barocken Schloss- und Gartenveduten</title>
Expand Down Expand Up @@ -91,7 +93,7 @@
<button type="button" class="quarto-btn-toggle btn" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<i class="bi bi-layout-text-sidebar-reverse"></i>
</button>
<nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="./index.html"><span class="chapter-title">Die barocken Schloss- und Gartenveduten</span></a></li></ol></nav>
<nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="./index.html">Katalog zur Ausstellung: Die barocken Schloss- und Gartenveduten</a></li></ol></nav>
<a class="flex-grow-1" role="button" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
</a>
<button type="button" class="btn quarto-search-button" aria-label="" onclick="window.quartoOpenSearch();">
Expand Down Expand Up @@ -145,7 +147,8 @@
<ul class="list-unstyled mt-1">
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="./index.html" class="sidebar-item-text sidebar-link active"><span class="chapter-title">Die barocken Schloss- und Gartenveduten</span></a>
<a href="./index.html" class="sidebar-item-text sidebar-link active">
<span class="menu-text">Katalog zur Ausstellung: Die barocken Schloss- und Gartenveduten</span></a>
</div>
</li>
<li class="sidebar-item">
Expand Down Expand Up @@ -173,25 +176,38 @@ <h2 id="toc-title">Table of contents</h2>
<header id="title-block-header" class="quarto-title-block default">
<div class="quarto-title">
<h1 class="title">Die barocken Schloss- und Gartenveduten</h1>
<p class="subtitle lead">Ein Versuch eines PDF-Buchs</p>
<p class="subtitle lead">Versuch eines PDF-Buchs</p>
</div>


<div class="quarto-title-meta-author">
<div class="quarto-title-meta-heading">Author</div>
<div class="quarto-title-meta-heading">Authors</div>
<div class="quarto-title-meta-heading">Affiliations</div>

<div class="quarto-title-meta-contents">
<p class="author">Jane Doe </p>
<p class="author">Jane Doe <a href="mailto:[email protected]" class="quarto-title-author-email"><i class="bi bi-envelope"></i></a> </p>
</div>
<div class="quarto-title-meta-contents">
<p class="affiliation">
Minnesota Department of Natural Resources
</p>
</div>
<div class="quarto-title-meta-contents">
<p class="author">Maxine Mustermann <a href="mailto:[email protected]" class="quarto-title-author-email"><i class="bi bi-envelope"></i></a> </p>
</div>
<div class="quarto-title-meta-contents">
<p class="affiliation">
University of Minnesota
</p>
</div>
<div class="quarto-title-meta-contents">
<p class="author">Neptune III. </p>
</div>
<div class="quarto-title-meta-contents">
<p class="affiliation">
University of Somewhere
</p>
</div>
</div>

<div class="quarto-title-meta">
Expand All @@ -207,14 +223,20 @@ <h1 class="title">Die barocken Schloss- und Gartenveduten</h1>

</div>

<div>
<div class="abstract">
<div class="block-title">Abstract</div>
This is an abstract. :)
</div>
</div>


</header>



<section id="katalog-zur-ausstellung-die-barocken-schloss--und-gartenveduten" class="level1">
<h1>Katalog zur Ausstellung: Die barocken Schloss- und Gartenveduten</h1><p><img src="images/fmd10005861a.jpg" title="Die barocken Schloss- und Gartenveduten" class="quarto-cover-image img-fluid"></p>
<section id="katalog-zur-ausstellung-die-barocken-schloss--und-gartenveduten" class="level1 unnumbered">
<h1 class="unnumbered">Katalog zur Ausstellung: Die barocken Schloss- und Gartenveduten</h1><p><img src="images/fmd10005861a.jpg" title="Die barocken Schloss- und Gartenveduten" class="quarto-cover-image img-fluid"></p>
<p>Ein Katalog mit Kunstwerken aus der CbDD-Sammlung. Textteil: <a href="https://www.deckenmalerei.eu/42d06165-58e7-4653-bfe4-3d5f7091fc33#6e73f774-4b7f-4e37-937b-e11cc35c5bc8">6e73f774-4b7f-4e37-937b-e11cc35c5bc8</a></p>
<p>Die barocken Schloss- und Gartenveduten [Sammlung]<br></p>
<p><a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://licensebuttons.net/l/by-nc-nd/4.0/88x31.png"></a> This work is licensed under a <a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/">Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International License</a>.</p>
Expand Down
4 changes: 2 additions & 2 deletions docs/search.json

Large diffs are not rendered by default.

Loading

0 comments on commit 0def115

Please sign in to comment.