\documentclass[12pt]{article}
%\usepackage{fullpage}
\usepackage{hyperref}
\usepackage{color}
\usepackage{colortbl}
\usepackage{graphicx}
\DeclareGraphicsExtensions{.pdf,.png,.gif,.jpg}
\begin{document}
\title{Homework}
\author{John Doe}
\date{\today}
\maketitle
\section*{1) Boson and Fermion Wave Functions}
\subsection*{a)}
lskdfjlskdfjlsdfk $\langle \psi \mid \psi \rangle$
\[ \langle \psi_i \mid \psi_j \rangle \]
\includegraphics[height=64mm]{plots/limits/compare}
\end{document}
Writes Ket states, direct products of 3 and 4 kets respectively, and Matrix Elements.
\newcommand{\ket}[1]{\mid #1\rangle}
\newcommand{\kett}[3]{\wf{#1} \otimes \wf{#2} \otimes \wf{#3}}
\newcommand{\ketf}[4]{\wf{#1} \otimes \wf{#2} \otimes \wf{#3} \otimes \wf{#4}}
\newcommand{\matelement}[3]{\langle #1 \mid #2 \wf{#3}}
Put before \begin{document}:
%\usepackage{tikz}
\usepackage{pgfplots}
\tikzset{every picture/.style=semithick}
\tikzset{every axis/.append style={semithick,tick style={semithick,black}}}
\tikzset{/pgfplots/error bars/error bar style=semithick}
\tikzset{/pgfplots/tick scale binop=\times}
Example pgf-plots picture:
\begin{tikzpicture}
\begin{axis}[
width=0.49\textwidth,
height=0.49\textwidth,
%xmode=log,ymode=log,
%xmin=-10,xmax=10,
%ymin=-10,ymax=10,
xlabel={$x$},
ylabel={$y$},
]
\addplot
[blue,domain=-10:10,samples=201]
{x^2}
coordinate [pos=0.3] (A) % Example put a named node 30% along the plotted path
;
\addplot
[
only marks, % no lines inbetween points
mark=*,
mark size=1.5pt,
red,
error bars/.cd,
y dir=both,y explicit,
error mark=-,
]
coordinates
{
(-10,-3) +- (0.,3)
(0,1) +- (0.,2)
(10,17) +- (0.,3)
}
coordinate [pos=1.] (Data)
;
\node at (A) [above right,blue] {$x^2$};
\node at (Data) [above=7pt,red] {Data};
\node (B) at (axis cs:0,80) {}; % example using axis coordinates
\node at (B) [] {Example};
\end{axis}
\end{tikzpicture}
These all Support full mathematics1
Recommend converting to the more modern T1 font encoding before changing to any of these fonts:2
\usepackage[T1]{fontenc}
Bookman
%Math is in CM
\usepackage{bookman}
Palatino
\usepackage{mathpazo}
%or
\usepackage{pxfonts}
Garamond
%Math is in CM
\usepackage{garamond}
Times:
\usepackage{txfonts}
Bitstream Vera Serif
\usepackage[charter]{mathdesign}
Utopia
\usepackage{fourier}
New Century Schoolbook
\usepackage{newcent}
Helvetica (Grotesque)
\usepackage{helvet}
Bitstream Vera Sans (Grotesque)
\usepackage{arev}
Avantgarde (Grotesque)
\usepackage{avant}
\sf % Then right after document class to get into sans serif
\rm % If you want to go back to roman font
Iwona
\usepackage[math]{iwona}
New Century Schoolbook (serif--transitional)
\usepackage{fouriernc}
Classico (Optima Clone--sans huminist)
\renewcommand*\sfdefault{uop}
\renewcommand*\familydefault{\sfdefault}
For a full page document:
\usepackage{fullpage}
For hanging indentation (Note Taking):
\usepackage{hanging}
%At Text:
\begin{hangparas}{.25in}{1} %Indent Size, line to start indenting
Paragraph to be hanging indented
Another paragraph to be hanging indented
\end{hangparas}
For images, and a preference for .pdfs:
\DeclareGraphicsExtensions{.pdf,.png,.gif,.jpg}
For Colored Tables:
\usepackage{color}
\usepackage{colortbl}
%Then use:
\cellcolor{red}
\rowcolor{blue}
...
To define new colors: http://en.wikibooks.org/wiki/LaTeX/Colors#Color_Models
To make a CV or resume, the moderncv
package is nice. To make exams or
homework, the exam
package is useful.
Page on using my system fonts with LuaLatex
Use gitinfo:
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\usepackage{gitinfo}
\usepackage{fancyhdr}
\fancypagestyle{plain}{ %
\fancyhf{} % clear all header and footer fields
\fancyhead[L]{\textcolor{light-gray}{\scriptsize Document Draft}}
\fancyhead[R]{\textcolor{light-gray}{\scriptsize Git Commit: \texttt{\gitAbbrevHash{} \gitCommitterIsoDate{} \gitReferences{}}}}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
\fancypagestyle{empty}{ %
\fancyhf{} % clear all header and footer fields
\fancyhead[L]{\textcolor{light-gray}{\scriptsize Document Dissertation Draft}}
\fancyhead[R]{\textcolor{light-gray}{\scriptsize Git Commit: \texttt{\gitAbbrevHash{} \gitCommitterIsoDate{} \gitReferences{}}}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
\pagestyle{plain}
In addition to the text recommended for git hooks in the gitinfo manual, append this line:
sed -i "s/\_/\\\_/g" $pref/gitHeadInfo.gin