-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpreamble.tex
More file actions
46 lines (42 loc) · 1.1 KB
/
Copy pathpreamble.tex
File metadata and controls
46 lines (42 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
\documentclass[a4paper,12pt]{article}
\usepackage[finnish]{babel}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{epstopdf}
\usepackage{gensymb}
\usepackage{subcaption}
\usepackage{color}
\usepackage{listings}
\usepackage{setspace}
\usepackage{amssymb}
\usepackage{epstopdf}
\usepackage{enumitem}
\usepackage[parfill]{parskip}
%partial derivative
\newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}}
%bra-ket notation
\newcommand{\bra}[1]{\left\langle #1 \right|}
\newcommand{\ket}[1]{\left| #1 \right\rangle}
\newcommand{\braket}[2]{\left\langle #1 \big| #2 \right\rangle}
%upright subscripts
\begingroup\lccode`~=`!
\lowercase{\endgroup\def~}#1{_{\mathrm{#1}}}
\mathchardef\exclam=\mathcode`!
\AtBeginDocument{\mathcode`!=\string"8000 }
%uprigth mu (or any greek letter)
\usepackage{xspace}
\def\mum{\ensuremath{\upmu \mathrm{m} \xspace}}
%\usepackage[]{mcode}
%\lstset{
% literate = {ö}{{\"o}}1
% {ä}{{\"a}}1
% {€}{{\euro}}1
%}
\begin{document}
\begin{equation}
\braket{\psi!1}{\psi!2} = \pd{x}{t}
\end{equation}
\end{document}