Last active
October 23, 2021 18:36
-
-
Save ordotools/5658ca031eb1a351eb22820c44c6ce91 to your computer and use it in GitHub Desktop.
corei8 Latex Guide
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
% !TEX program = lualatex | |
\documentclass[11pt]{amsbook} | |
% book --> good for bound material, margins are designed for binding. | |
% article --> title appears at the head of the fist page; margins are even. | |
% report --> same as article, but the title is seperate page. | |
\usepackage{geometry} | |
\geometry{ | |
paperheight=8.5in, | |
paperwidth=5.5in, | |
% margins: | |
top=0.5in, | |
bottom=0.5in, | |
inner=0.5in, | |
outer=0.5in, | |
} | |
\usepackage{layout} | |
\usepackage[letterspace=500]{microtype} | |
\usepackage[T1]{fontenc} | |
\usepackage[usefilenames,RMstyle={Text,Semibold},SSstyle={Text,Semibold},TTstyle={Text,Semibold},DefaultFeatures={Ligatures=Common}]{plex-otf} % | |
\usepackage{fontspec} | |
% great font for situations where class and legibility are both necessary | |
\usepackage{ragged2e} | |
% better options for adusting justification | |
\usepackage[latin]{babel} | |
% english, german, french, etc. | |
\usepackage{setspace} | |
\usepackage{xcolor} | |
% adjust color with \color{color} | |
\usepackage{stackengine} | |
\renewcommand\stacktype{L} % long stack | |
\renewcommand\stackalignment{c} % center the elements | |
\setstackgap{L}{8pt} % gap between | |
% \stackunder{static}{under} \stackover{static}{over} | |
\usepackage{tabularx} | |
% totally necessary \begin{tabularx}{\textwidth}{@{} p{1.0in} X l r c @{}} | |
\usepackage[most]{tcolorbox} | |
\usepackage{longtable} | |
% good for tables that are, well, looooong | |
\usepackage{graphicx} | |
\graphicspath{ {./images/} } | |
% use images: [b=bottom, c=center, t=top] | |
% \begin{figure}[b] | |
% \includegraphics[scale=.18]{mhtlogo.png} | |
% \centering | |
% \vspace{1in} | |
% \end{figure} | |
% CUSTOM FUNCTIONS | |
\newcommand{mynewcommand}{ | |
Do Something! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment