This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Options for packages loaded elsewhere | |
\PassOptionsToPackage{unicode}{hyperref} | |
\PassOptionsToPackage{hyphens}{url} | |
\documentclass[ | |
ignorenonframetext, | |
]{beamer} | |
\newif\ifbibliography | |
\usepackage{pgfpages} | |
\setbeamertemplate{caption}[numbered] | |
\setbeamertemplate{caption label separator}{: } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$-- Template for letters, targeting Pandoc 3.1.3 | |
% Options for packages loaded elsewhere | |
\PassOptionsToPackage{unicode$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref} | |
\PassOptionsToPackage{hyphens}{url} | |
$if(colorlinks)$ | |
\PassOptionsToPackage{dvipsnames,svgnames,x11names}{xcolor} | |
$endif$ | |
$if(CJKmainfont)$ | |
\PassOptionsToPackage{space}{xeCJK} | |
$endif$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Options for packages loaded elsewhere | |
\PassOptionsToPackage{unicode$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref} | |
\PassOptionsToPackage{hyphens}{url} | |
$if(colorlinks)$ | |
\PassOptionsToPackage{dvipsnames,svgnames,x11names}{xcolor} | |
$endif$ | |
$if(CJKmainfont)$ | |
\PassOptionsToPackage{space}{xeCJK} | |
$endif$ | |
% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Options for packages loaded elsewhere | |
\PassOptionsToPackage{unicode$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref} | |
\PassOptionsToPackage{hyphens}{url} | |
$if(colorlinks)$ | |
\PassOptionsToPackage{dvipsnames,svgnames,x11names}{xcolor} | |
$endif$ | |
$if(CJKmainfont)$ | |
\PassOptionsToPackage{space}{xeCJK} | |
$endif$ | |
% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import sys | |
# open and read the first argument | |
with open(sys.argv[1], "r") as in_file: | |
bibliography = in_file.read() | |
# Make sets of the citekeys found in the file, and of the entries | |
# The self_keys regex matches an upper or lower case cite, citep, citeyear, citeauthor, | |
# citeyearpar, and then anything between that and the first bracket |