Initial commit
This commit is contained in:
commit
e477692fa7
20
.gitignore
vendored
Normal file
20
.gitignore
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
Covers
|
||||
*bklt*
|
||||
*.aux
|
||||
*.log
|
||||
*.out
|
||||
*.synctex.gz
|
||||
*.toc
|
||||
*.dvi
|
||||
*.odt
|
||||
metric*
|
||||
*.mx1
|
||||
*.abc
|
||||
*.bak
|
||||
*wc*
|
||||
*drafts*
|
||||
/build/*
|
||||
*/build/*
|
||||
*/spoken/*
|
||||
**/*.pdf
|
||||
004/build/cover-004.pdf
|
||||
9
README.md
Normal file
9
README.md
Normal file
@ -0,0 +1,9 @@
|
||||
#$\LaTeX$ Miscellany Files
|
||||
|
||||
Just miscellaneous bits and bobs so I don't forget things.
|
||||
|
||||
At https://git.kjodle.net/kjodle/latex-miscellany and also at https://codeberg.org/kjodle/latex-miscellany.
|
||||
|
||||
Feel free to clone, or to fork from Codeberg to suggest changes and additions.
|
||||
|
||||
|
||||
1
commands.tex
Normal file
1
commands.tex
Normal file
@ -0,0 +1 @@
|
||||
\raggedbottom
|
||||
32
custom-macros.tex
Normal file
32
custom-macros.tex
Normal file
@ -0,0 +1,32 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% Custom Macros %%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
% Make a nice border and box for the tops of our examples
|
||||
\newcommand\klab[3]{\vspace{#1}\noindent{}\hrulefill\fbox{\texttt{~#2~}}\hrulefill\vspace{#3}}
|
||||
|
||||
% Add an \hrule with space above and below
|
||||
\newcommand\krule[2]{\vspace{#1}\hrule\vspace{#2}}
|
||||
|
||||
% Make hrefs easier (must load package hyperref}
|
||||
\newcommand\kref[2]{\href{#1}{{\texttt{#2}}}}
|
||||
|
||||
% Rotate text in tables easier
|
||||
% https://tex.stackexchange.com/questions/89115/how-to-rotate-text-in-multirow-table
|
||||
\newcommand\krot[3]{\parbox[t]{#1}{\multirow{#2}{*}{\rotatebox[origin=c]{90}{#3}}}}
|
||||
|
||||
% Make diversions easier (and uniform!)
|
||||
\newcommand\kdivb[2]{
|
||||
\medskip
|
||||
\hrule
|
||||
\medskip
|
||||
\noindent{}\textbf{#1}
|
||||
\vspace{#2mm}
|
||||
\begin{multicols}{2}
|
||||
}
|
||||
|
||||
\newcommand\kdive[1]{
|
||||
\end{multicols}
|
||||
\vspace{#1mm}
|
||||
\hrule
|
||||
\medskip
|
||||
}
|
||||
12
geometry-halfletter.tex
Normal file
12
geometry-halfletter.tex
Normal file
@ -0,0 +1,12 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% Document Setup%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\usepackage{geometry}
|
||||
\geometry{
|
||||
paperheight=8.5in,
|
||||
paperwidth=5.5in,
|
||||
% heightrounded,
|
||||
margin=0.5in
|
||||
}
|
||||
|
||||
\addtolength{\topmargin}{0.4in} % Adjust and bottom margin
|
||||
\addtolength{\textheight}{-0.75in} % Adjust the bottom margin
|
||||
8
memoir-halfletter.tex
Normal file
8
memoir-halfletter.tex
Normal file
@ -0,0 +1,8 @@
|
||||
\documentclass[9pt,openany]{memoir}
|
||||
|
||||
\setstocksize{8.5in}{5.5in}
|
||||
\settrimmedsize{8.5in}{5.5in}{*}
|
||||
\settrims{0mm}{0mm}
|
||||
\setlrmarginsandblock{12mm}{15mm}{*}
|
||||
\setulmarginsandblock{22mm}{20mm}{*}
|
||||
|
||||
27
packages.tex
Normal file
27
packages.tex
Normal file
@ -0,0 +1,27 @@
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage{amsmath}
|
||||
\usepackage{amssymb}
|
||||
\usepackage{makeidx}
|
||||
\usepackage{graphicx}
|
||||
\graphicspath{{images/}} % Where are our images?
|
||||
\usepackage[nott]{kpfonts}
|
||||
\usepackage{float}
|
||||
\usepackage{array}
|
||||
\usepackage{multirow}
|
||||
\usepackage{gensymb} % Just for the degree symbol
|
||||
\usepackage{ccicons} % Creative Commons icons; now we can delete an image
|
||||
\usepackage{lettrine} % Drop caps
|
||||
\usepackage{wrapfig} % Let's wrap some images
|
||||
\usepackage{hanging} % For hanging indents in a script
|
||||
\usepackage{fancyvrb} % Use line numbers with code samples
|
||||
\usepackage{fvextra} % Break lines inside Verbatim environment:
|
||||
\usepackage{enumitem} % Control spacing in lists
|
||||
\usepackage{setspace} % Better control over line-spacing
|
||||
\usepackage{nicefrac} % Use nice fractions
|
||||
\usepackage[bottom]{footmisc} % Keep the footnotes at the bottom of the page
|
||||
\usepackage{tabto} % Use tab stops when we need to (especially in footnotes)
|
||||
\usepackage{microtype} % Make things neater. Thanks /u/-LeopardShark-
|
||||
\usepackage{tabularray} % Easy tables
|
||||
\usepackage[font=footnotesize,justification=raggedright]{caption} % Control of captions in floating environments
|
||||
\usepackage[hidelinks]{hyperref} % Include URLs, but load this package last
|
||||
Loading…
Reference in New Issue
Block a user