Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.87 KB | None | 0 0
  1. numberwithin{equation}{chapter}
  2.  
  3. renewcommand*{theequation}{%
  4. ifnumvalue{subsection}=0 %
  5. thesection
  6. else
  7. thesubsection
  8. fi
  9. .arabic{equation}%
  10. }
  11.  
  12. documentclass[12pt,oneside]{book}
  13. usepackage[width=0.8paperwidth, height = 0.85paperheight]{geometry}
  14.  
  15. usepackage[utf8]{inputenc} % Norwegian letters
  16. thispagestyle{empty} % Remove page numbers from first page
  17. usepackage{tocloft} % Make dots in the toc
  18. usepackage{amsmath, bm, array} % Extra math functionality
  19. usepackage{hyperref}
  20. usepackage{mhchem} % Write chemical equations
  21. usepackage{siunitx} % Typing of SI units
  22. usepackage{float} % Enables use of H-specific in images
  23. usepackage[nottoc,numbib]{tocbibind} % References in toc
  24. usepackage{caption}
  25. usepackage[toc,page]{appendix}
  26. usepackage{listings}
  27. usepackage{gensymb}
  28. usepackage{afterpage}
  29. usepackage[pdftex]{graphicx}
  30. usepackage{booktabs,fixltx2e}
  31. usepackage{subcaption,ragged2e}
  32. usepackage{mathtools}
  33. usepackage{setspace}
  34. usepackage{svg}
  35. usepackage{titlesec}
  36. usepackage{chngcntr}
  37.  
  38. begin{document}
  39.  
  40. chapter{This is the first chapter}
  41.  
  42. section{First section in first chapter}
  43.  
  44. begin{equation}
  45. label{reflection-coefficient-as}
  46. A = a cdot x
  47. end{equation}
  48.  
  49. begin{align}
  50. chi_{S}^{e,1} &= frac{1}{sqrt{2}} begin{bmatrix}
  51. u_{bm{k}}, v_{bm{k}}
  52. end{bmatrix} otimes begin{bmatrix}
  53. -1 \ \ 1
  54. end{bmatrix} =
  55. frac{1}{sqrt{2}} begin{bmatrix}
  56. -u_{bm{k}} \ \ u_{bm{k}} \ \ -v_{bm{k}} \ \ v_{bm{k}}
  57. end{bmatrix} text{, } & chi_{S}^{e,-1} &=
  58. frac{1}{sqrt{2}} begin{bmatrix}
  59. u_{bm{k}}, v_{bm{k}}
  60. end{bmatrix}
  61. otimes
  62. begin{bmatrix}
  63. 1 \ \ 1
  64. end{bmatrix} =
  65. frac{1}{sqrt{2}} begin{bmatrix}
  66. u_{bm{k}} \ \ u_{bm{k}} \ \ v_{bm{k}} \ \ v_{bm{k}}
  67. end{bmatrix} text{, } nonumber \ nonumber \
  68. chi_{S}^{h,1} &=
  69. frac{1}{sqrt{2}} begin{bmatrix}
  70. v_{bm{k}}, u_{bm{k}}
  71. end{bmatrix}
  72. otimes
  73. begin{bmatrix}
  74. -1 \ \ 1
  75. end{bmatrix} =
  76. frac{1}{sqrt{2}} begin{bmatrix}
  77. -v_{bm{k}} \ \ v_{bm{k}} \ \ -u_{bm{k}} \ \ u_{bm{k}}
  78. end{bmatrix} text{, and } & chi_{S}^{h,-1} &=
  79. frac{1}{sqrt{2}} begin{bmatrix}
  80. v_{bm{k}}, u_{bm{k}}
  81. end{bmatrix}
  82. otimes
  83. begin{bmatrix}
  84. 1 \ \ 1
  85. end{bmatrix} =
  86. frac{1}{sqrt{2}} begin{bmatrix}
  87. v_{bm{k}} \ \ v_{bm{k}} \ \ u_{bm{k}} \ \ u_{bm{k}}
  88. end{bmatrix} text{.}
  89. end{align} nonumber
  90.  
  91.  
  92. chapter{This is the second chapter}
  93.  
  94. begin{equation}
  95. label{reflection-coefficient-as}
  96. A = a cdot x
  97. end{equation}
  98.  
  99. begin{equation}
  100. label{reflection-coefficient-as}
  101. A = a cdot x
  102. end{equation}
  103.  
  104. section{Section Chap 2}
  105.  
  106. begin{equation}
  107. label{reflection-coefficient-as}
  108. A = a cdot x
  109. end{equation}
  110.  
  111. begin{appendices}
  112.  
  113. chapter{Chapter 1}
  114.  
  115. begin{equation}
  116. A = x c
  117. end{equation}
  118.  
  119. begin{equation}
  120. A = x c
  121. end{equation}
  122.  
  123. section{Section 1}
  124.  
  125. begin{equation}
  126. A = x c
  127. end{equation}
  128.  
  129. begin{equation}
  130. A = x c
  131. end{equation}
  132.  
  133. end{appendices}
  134.  
  135. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement