Skip to content

Instantly share code, notes, and snippets.

@te-lang-wakker
Created December 2, 2024 22:29
Show Gist options
  • Select an option

  • Save te-lang-wakker/b401bcf7f05658c624fab1ba38c94a24 to your computer and use it in GitHub Desktop.

Select an option

Save te-lang-wakker/b401bcf7f05658c624fab1ba38c94a24 to your computer and use it in GitHub Desktop.
\documentclass{article}
\usepackage{minted}
\usepackage{hyperref}
\usepackage{microtype}
\usepackage[fencedCode]{markdown}
\usepackage{graphicx}
\usepackage{xcolor}
%%% <CONFIG> %%%
% MARGINS
% \usepackage[a4paper, left={1cm}, right={1cm}, top={1cm}, bottom={1cm}]{geometry}
\usepackage[a4paper, margin={2.8cm}]{geometry}
\usepackage[flushmargin, bottom]{footmisc}
\setlength{\skip\footins}{2cm}
\setlength{\footnotesep}{3\footnotesep}
% FONTS (edu.nl/nxhnp)
\usepackage{charter} % a nice serif font that's not too scientificy
% \usepackage[sfdefault, light]{FiraSans} % a thin sans-serif I like
% TYPESETTING
\linespread{1.2} % equivalent to CSS' line-height
\setlength{\parskip}{0.25cm} % space between paragraphs
\setlength{\parindent}{0cm} % optional indent at the start of paragarphs
% CODE BLOCKS
\setminted{
fontsize=\small, % edu.nl/v3k4q
baselinestretch=1.2, % see \linespread
bgcolor=white, % edu.nl/jnxc7
style=friendly, % edu.nl/rkyxn
}
%%% <\CONFIG> %%%
% resize figures to page width
\let\latexincludegraphics\includegraphics
\renewcommand{\includegraphics}[2][]{
\resizebox{\textwidth}{!}{
\centering
\latexincludegraphics[#1]{#2}
}
}
% float figures in place by breaking the environment that prefers otherwise
\makeatletter
\renewenvironment{figure}[1][]
\makeatother
% disable all numbering
\pagenumbering{gobble}
\setcounter{secnumdepth}{0}
\begin{document}
\markdownInput{README.md}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment