Skip to content

Commit

Permalink
fix: Update pandoc and pandoc-crossref (#33)
Browse files Browse the repository at this point in the history
* fix(pandoc.yml): Update pandoc and pandoc-crossref
* fix(thesis): typos and cross-ref fixed
  • Loading branch information
maehr authored Feb 3, 2023
1 parent 0c15c68 commit b4de210
Show file tree
Hide file tree
Showing 15 changed files with 9,018 additions and 1,007 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/pandoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ jobs:
- uses: actions/checkout@v3
- name: install pandoc and pandoc-crossref
run: |
wget https://github.com/jgm/pandoc/releases/download/2.19.2/pandoc-2.19.2-1-amd64.deb
sudo dpkg -i pandoc-2.19.2-1-amd64.deb
wget https://github.com/lierdakil/pandoc-crossref/releases/download/v0.3.13.0b/pandoc-crossref-Linux.tar.xz
wget https://github.com/jgm/pandoc/releases/download/3.0.1/pandoc-3.0.1-1-amd64.deb
sudo dpkg -i pandoc-3.0.1-1-amd64.deb
rm pandoc-3.0.1-1-amd64.deb
wget https://github.com/lierdakil/pandoc-crossref/releases/download/v0.3.15.0/pandoc-crossref-Linux.tar.xz
tar -xvf pandoc-crossref-Linux.tar.xz
sudo mv pandoc-crossref /usr/bin
- uses: actions/cache@v3
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
[![DOI](https://zenodo.org/badge/139726344.svg)](https://zenodo.org/badge/latestdoi/139726344)

<!-- prettier-ignore -->

| from md | [article/article.md](article/article.md)[article/article.md](article/article.md) | [presentation/presentation.md](presentation/presentation.md) | [thesis/00.md](thesis/00.md) |
|---|-----|-----|-----|
| | [![](assets/images/article.png)](article/article.md) | [![](assets/images/presentation.png)](presentation/presentation.md) | [![](assets/images/thesis.png)](thesis/00.md) |
Expand Down
Binary file modified article/article.docx
Binary file not shown.
Binary file modified article/article.pdf
Binary file not shown.
26 changes: 15 additions & 11 deletions article/article.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@
\documentclass[
]{scrartcl}
\usepackage{amsmath,amssymb}
\usepackage{lmodern}
\usepackage{iftex}
\ifPDFTeX
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex
\usepackage{unicode-math}
\usepackage{unicode-math} % this also loads fontspec
\defaultfontfeatures{Scale=MatchLowercase}
\defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
\fi
\usepackage{lmodern}
\ifPDFTeX\else
% xetex/luatex font selection
\fi
% Use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
\IfFileExists{microtype.sty}{% use microtype if available
Expand Down Expand Up @@ -94,7 +97,7 @@
\makeatletter
\def\fps@figure{htbp}
\makeatother
\usepackage[normalem]{ulem}
\usepackage{soul}
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
Expand Down Expand Up @@ -147,7 +150,7 @@
\fi
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\urlstyle{same} % disable monospaced font for URLs
\urlstyle{same}
\hypersetup{
pdftitle={Title},
pdfauthor={Eleanor Roosevelt; John Peters Humphrey},
Expand Down Expand Up @@ -244,8 +247,8 @@ \subsection{Bold and italic}\label{bold-and-italic}}
\hypertarget{struck-through}{%
\subsection{Struck through}\label{struck-through}}

\sout{All human beings are born free and equal in dignity and rights.}
All human beings are born free and equal in dignity and rights.All human
\st{All human beings are born free and equal in dignity and rights.} All
human beings are born free and equal in dignity and rights.All human
beings are born free and equal in dignity and rights.All human beings
are born free and equal in dignity and rights.

Expand Down Expand Up @@ -370,22 +373,24 @@ \subsection{Tables}\label{tables}}
>{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.5000}}
>{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.5000}}@{}}
\caption{Table caption}\tabularnewline
\toprule()
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
column 1
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
column 2
\end{minipage} \\
\midrule()
\midrule\noalign{}
\endfirsthead
\toprule()
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
column 1
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
column 2
\end{minipage} \\
\midrule()
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
All human beings are born free and equal in dignity and rights. & All
human beings are born free and equal in dignity and rights. \\
All human beings are born free and equal in dignity and rights. & All
Expand All @@ -394,7 +399,6 @@ \subsection{Tables}\label{tables}}
human beings are born free and equal in dignity and rights. \\
All human beings are born free and equal in dignity and rights. & All
human beings are born free and equal in dignity and rights. \\
\bottomrule()
\end{longtable}

All human beings are born free and equal in dignity and rights. All
Expand Down
9,914 changes: 8,960 additions & 954 deletions presentation/presentation.html

Large diffs are not rendered by default.

Binary file modified presentation/presentation.pdf
Binary file not shown.
Binary file modified presentation/presentation.pptx
Binary file not shown.
33 changes: 19 additions & 14 deletions presentation/presentation.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@
\documentclass[
]{beamer}
\usepackage{amsmath,amssymb}
\usepackage{lmodern}
\usepackage{iftex}
\ifPDFTeX
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex
\usepackage{unicode-math}
\usepackage{unicode-math} % this also loads fontspec
\defaultfontfeatures{Scale=MatchLowercase}
\defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
\fi
\usepackage{lmodern}
\ifPDFTeX\else
% xetex/luatex font selection
\fi
% Use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
\IfFileExists{microtype.sty}{% use microtype if available
Expand Down Expand Up @@ -94,7 +97,7 @@
\makeatletter
\def\fps@figure{htbp}
\makeatother
\usepackage[normalem]{ulem}
\usepackage{soul}
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
Expand Down Expand Up @@ -137,7 +140,7 @@
\fi
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\urlstyle{same} % disable monospaced font for URLs
\urlstyle{same}
\hypersetup{
pdftitle={Title},
pdfauthor={Eleanor Roosevelt; John Peters Humphrey},
Expand Down Expand Up @@ -224,8 +227,8 @@ \subsection{Bold and italic}\label{bold-and-italic}}
\hypertarget{struck-through}{%
\subsection{Struck through}\label{struck-through}}

\sout{All human beings are born free and equal in dignity and rights.}
All human beings are born free and equal in dignity and rights.All human
\st{All human beings are born free and equal in dignity and rights.} All
human beings are born free and equal in dignity and rights.All human
beings are born free and equal in dignity and rights.All human beings
are born free and equal in dignity and rights.

Expand Down Expand Up @@ -320,22 +323,24 @@ \subsection{Tables}\label{tables}}
>{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.5000}}
>{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.5000}}@{}}
\caption{Table caption}\tabularnewline
\toprule()
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
column 1
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
column 2
\end{minipage} \\
\midrule()
\midrule\noalign{}
\endfirsthead
\toprule()
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
column 1
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
column 2
\end{minipage} \\
\midrule()
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
All human beings are born free and equal in dignity and rights. & All
human beings are born free and equal in dignity and rights. \\
All human beings are born free and equal in dignity and rights. & All
Expand All @@ -344,7 +349,6 @@ \subsection{Tables}\label{tables}}
human beings are born free and equal in dignity and rights. \\
All human beings are born free and equal in dignity and rights. & All
human beings are born free and equal in dignity and rights. \\
\bottomrule()
\end{longtable}

\hypertarget{footnotes}{%
Expand Down Expand Up @@ -505,13 +509,14 @@ \subsection{Two columns: image and
\includegraphics[width=\textwidth,height=0.5\textheight]{images/Eleanor_Roosevelt_and_Human_Rights_Declaration.jpeg}

\begin{longtable}[]{@{}lc@{}}
\toprule()
\toprule\noalign{}
\textbf{Item} & \textbf{Option} \\
\midrule()
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
Item 1 & Option 1 \\
Item 2 & Option 2 \\
\bottomrule()
\end{longtable}

\hypertarget{bibliography}{%
Expand Down
2 changes: 1 addition & 1 deletion thesis/00.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ header-includes:
```{=latex}
% titlepage
\subject{DISS. Nr. 1111\\~\\~\\}
\publishers{A thesis submitted to attain the degree o\\DOCTOR OF SCIENCES\\(Dr. sc.)\\~\\~\\presented by\\~\\Eleanor Roosevelt\\MA, University of Example\\born on 11.10.1884\\~\\~\\accepted on the recommendation of \\~\\Prof. Dr. Anna Hall Roosevelt\\Prof. Dr. Elliott Roosevelt\\~\\2022}
\publishers{A thesis submitted to attain the degree of\\DOCTOR OF SCIENCES\\(Dr. sc.)\\~\\~\\presented by\\~\\Eleanor Roosevelt\\MA, University of Example\\born on 11.10.1884\\~\\~\\accepted on the recommendation of \\~\\Prof. Dr. Anna Hall Roosevelt\\Prof. Dr. Elliott Roosevelt\\~\\2022}
\uppertitleback{Title}
\lowertitleback{\emph{Eleanor Roosevelt} is Fellow at the University of Example.}
\dedication{\emph{For all humants of this world}}
Expand Down
6 changes: 1 addition & 5 deletions thesis/00_Introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,7 @@ All human beings are born free and equal in dignity and rights. All human beings

## Equations

$$
x^2 + y^2 = z^2
$$

{#eq:pythagoras}
$$x^2 + y^2 = z^2$${#eq:pythagoras}

## Cross-references

Expand Down
Binary file modified thesis/thesis.docx
Binary file not shown.
Binary file modified thesis/thesis.epub
Binary file not shown.
Binary file modified thesis/thesis.pdf
Binary file not shown.
36 changes: 18 additions & 18 deletions thesis/thesis.tex
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,21 @@
toc=listof,
listof=nochaptergap]{scrbook}
\usepackage{amsmath,amssymb}
\usepackage{lmodern}
\usepackage{setspace}
\usepackage{iftex}
\ifPDFTeX
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex
\usepackage{unicode-math}
\usepackage{unicode-math} % this also loads fontspec
\defaultfontfeatures{Scale=MatchLowercase}
\defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
\fi
\usepackage{lmodern}
\ifPDFTeX\else
% xetex/luatex font selection
\fi
% Use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
\IfFileExists{microtype.sty}{% use microtype if available
Expand Down Expand Up @@ -101,7 +104,7 @@
\makeatletter
\def\fps@figure{htbp}
\makeatother
\usepackage[normalem]{ulem}
\usepackage{soul}
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
Expand Down Expand Up @@ -149,7 +152,7 @@
}%
% titlepage
\subject{DISS. Nr. 1111\\~\\~\\}
\publishers{A thesis submitted to attain the degree o\\DOCTOR OF SCIENCES\\(Dr. sc.)\\~\\~\\presented by\\~\\Eleanor Roosevelt\\MA, University of Example\\born on 11.10.1884\\~\\~\\accepted on the recommendation of \\~\\Prof. Dr. Anna Hall Roosevelt\\Prof. Dr. Elliott Roosevelt\\~\\2022}
\publishers{A thesis submitted to attain the degree of\\DOCTOR OF SCIENCES\\(Dr. sc.)\\~\\~\\presented by\\~\\Eleanor Roosevelt\\MA, University of Example\\born on 11.10.1884\\~\\~\\accepted on the recommendation of \\~\\Prof. Dr. Anna Hall Roosevelt\\Prof. Dr. Elliott Roosevelt\\~\\2022}
\uppertitleback{Title}
\lowertitleback{\emph{Eleanor Roosevelt} is Fellow at the University of Example.}
\dedication{\emph{For all humants of this world}}
Expand Down Expand Up @@ -199,7 +202,7 @@
\fi
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\urlstyle{same} % disable monospaced font for URLs
\urlstyle{same}
\hypersetup{
pdftitle={Title},
pdfauthor={\href{[email protected]}{Eleanor Roosevelt}},
Expand Down Expand Up @@ -305,10 +308,10 @@ \section{Bold and italic}\label{bold-and-italic}}
\hypertarget{struck-through}{%
\section{Struck through}\label{struck-through}}

\sout{All human beings are born free and equal in dignity and rights.}
All human beings are born free and equal in dignity and rights. All
\st{All human beings are born free and equal in dignity and rights.} All
human beings are born free and equal in dignity and rights. All human
beings are born free and equal in dignity and rights.
beings are born free and equal in dignity and rights. All human beings
are born free and equal in dignity and rights.

\hypertarget{numbered-lists}{%
\section{Numbered lists}\label{numbered-lists}}
Expand Down Expand Up @@ -434,22 +437,24 @@ \section{Tables}\label{tables}}
>{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.5000}}
>{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.5000}}@{}}
\caption{\label{tbl:example_tbl}Table caption}\tabularnewline
\toprule()
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
column 1
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
column 2
\end{minipage} \\
\midrule()
\midrule\noalign{}
\endfirsthead
\toprule()
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
column 1
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
column 2
\end{minipage} \\
\midrule()
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
All human beings are born free and equal in dignity and rights. & All
human beings are born free and equal in dignity and rights. \\
All human beings are born free and equal in dignity and rights. & All
Expand All @@ -458,7 +463,6 @@ \section{Tables}\label{tables}}
human beings are born free and equal in dignity and rights. \\
All human beings are born free and equal in dignity and rights. & All
human beings are born free and equal in dignity and rights. \\
\bottomrule()
\end{longtable}

All human beings are born free and equal in dignity and rights. All
Expand Down Expand Up @@ -509,11 +513,7 @@ \section{Scientific citations}\label{scientific-citations}}
\hypertarget{equations}{%
\section{Equations}\label{equations}}

\[
x^2 + y^2 = z^2
\]

\{\#eq:pythagoras\}
\begin{equation}\protect\hypertarget{eq:pythagoras}{}{x^2 + y^2 = z^2}\label{eq:pythagoras}\end{equation}

\hypertarget{cross-references}{%
\section{Cross-references}\label{cross-references}}
Expand Down

0 comments on commit b4de210

Please sign in to comment.