Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- numberwithin{equation}{chapter}
- renewcommand*{theequation}{%
- ifnumvalue{subsection}=0 %
- thesection
- else
- thesubsection
- fi
- .arabic{equation}%
- }
- documentclass[12pt,oneside]{book}
- usepackage[width=0.8paperwidth, height = 0.85paperheight]{geometry}
- usepackage[utf8]{inputenc} % Norwegian letters
- thispagestyle{empty} % Remove page numbers from first page
- usepackage{tocloft} % Make dots in the toc
- usepackage{amsmath, bm, array} % Extra math functionality
- usepackage{hyperref}
- usepackage{mhchem} % Write chemical equations
- usepackage{siunitx} % Typing of SI units
- usepackage{float} % Enables use of H-specific in images
- usepackage[nottoc,numbib]{tocbibind} % References in toc
- usepackage{caption}
- usepackage[toc,page]{appendix}
- usepackage{listings}
- usepackage{gensymb}
- usepackage{afterpage}
- usepackage[pdftex]{graphicx}
- usepackage{booktabs,fixltx2e}
- usepackage{subcaption,ragged2e}
- usepackage{mathtools}
- usepackage{setspace}
- usepackage{svg}
- usepackage{titlesec}
- usepackage{chngcntr}
- begin{document}
- chapter{This is the first chapter}
- section{First section in first chapter}
- begin{equation}
- label{reflection-coefficient-as}
- A = a cdot x
- end{equation}
- begin{align}
- chi_{S}^{e,1} &= frac{1}{sqrt{2}} begin{bmatrix}
- u_{bm{k}}, v_{bm{k}}
- end{bmatrix} otimes begin{bmatrix}
- -1 \ \ 1
- end{bmatrix} =
- frac{1}{sqrt{2}} begin{bmatrix}
- -u_{bm{k}} \ \ u_{bm{k}} \ \ -v_{bm{k}} \ \ v_{bm{k}}
- end{bmatrix} text{, } & chi_{S}^{e,-1} &=
- frac{1}{sqrt{2}} begin{bmatrix}
- u_{bm{k}}, v_{bm{k}}
- end{bmatrix}
- otimes
- begin{bmatrix}
- 1 \ \ 1
- end{bmatrix} =
- frac{1}{sqrt{2}} begin{bmatrix}
- u_{bm{k}} \ \ u_{bm{k}} \ \ v_{bm{k}} \ \ v_{bm{k}}
- end{bmatrix} text{, } nonumber \ nonumber \
- chi_{S}^{h,1} &=
- frac{1}{sqrt{2}} begin{bmatrix}
- v_{bm{k}}, u_{bm{k}}
- end{bmatrix}
- otimes
- begin{bmatrix}
- -1 \ \ 1
- end{bmatrix} =
- frac{1}{sqrt{2}} begin{bmatrix}
- -v_{bm{k}} \ \ v_{bm{k}} \ \ -u_{bm{k}} \ \ u_{bm{k}}
- end{bmatrix} text{, and } & chi_{S}^{h,-1} &=
- frac{1}{sqrt{2}} begin{bmatrix}
- v_{bm{k}}, u_{bm{k}}
- end{bmatrix}
- otimes
- begin{bmatrix}
- 1 \ \ 1
- end{bmatrix} =
- frac{1}{sqrt{2}} begin{bmatrix}
- v_{bm{k}} \ \ v_{bm{k}} \ \ u_{bm{k}} \ \ u_{bm{k}}
- end{bmatrix} text{.}
- end{align} nonumber
- chapter{This is the second chapter}
- begin{equation}
- label{reflection-coefficient-as}
- A = a cdot x
- end{equation}
- begin{equation}
- label{reflection-coefficient-as}
- A = a cdot x
- end{equation}
- section{Section Chap 2}
- begin{equation}
- label{reflection-coefficient-as}
- A = a cdot x
- end{equation}
- begin{appendices}
- chapter{Chapter 1}
- begin{equation}
- A = x c
- end{equation}
- begin{equation}
- A = x c
- end{equation}
- section{Section 1}
- begin{equation}
- A = x c
- end{equation}
- begin{equation}
- A = x c
- end{equation}
- end{appendices}
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement