Advertisement
Guest User

sng_style.sty

a guest
Aug 31st, 2012
676
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 10.28 KB | None | 0 0
  1. \ProvidesPackage{sng_style}
  2.  
  3. % Other packages
  4. \usepackage{amssymb,amsmath,amsfonts,amsthm,bm,enumerate}
  5.  
  6. % Environment definitions
  7. \newtheoremstyle{tnamed}
  8.     {\topsep}
  9.     {\topsep}
  10.     {}
  11.     {}
  12.     {\bfseries}
  13.     {.}
  14.     { }
  15.     {\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}}
  16.  
  17. \newtheoremstyle{notenamed*}
  18.     {\topsep}
  19.     {\topsep}
  20.     {\slshape}
  21.     {}
  22.     {\bfseries}
  23.     {:}
  24.     { }
  25.     {\thmnote{#3}}
  26.  
  27. \theoremstyle{notenamed*}
  28. \newtheorem{note*}{Note}
  29.  
  30. \theoremstyle{tnamed}
  31. \newtheorem{tnamed}[subsection]{Theorem}
  32. \newtheorem{cnamed}[subsection]{Corollary}
  33.  
  34. \theoremstyle{definition}
  35. \newtheorem{definition}[subsection]{Definition}
  36. \newtheorem{example}[subsection]{Example}
  37. \newtheorem{corollary}[subsection]{Corollary}
  38. \newtheorem{lemma}[subsection]{Lemma}
  39. \newtheorem{proposition}[subsection]{Proposition}
  40. \newtheorem{exercise}[subsection]{Exercise}
  41.  
  42. \newcommand{\notebox}[2]{%
  43. \begin{center}
  44.   \fbox{
  45.      \centering
  46.      \parbox{#1}{%
  47.          #2
  48.       }%
  49.    }%
  50. \end{center}
  51. }
  52.  
  53. \newcommand{\units}[1]{\mathrm{#1}}
  54.  
  55. % Sets
  56. \newcommand{\N}{\mathbb{N}}
  57. \newcommand{\R}{\mathbb{R}}
  58. \newcommand{\C}{\mathbb{C}}
  59. \newcommand{\Z}{\mathbb{Z}}
  60. \newcommand{\Q}{\mathbb{Q}}
  61.  
  62. % Shortcuts
  63. \newcommand{\od}[2]{\frac{\mathrm{d} #1}{\mathrm{d} #2}}
  64. \newcommand{\odn}[3]{\frac{\mathrm{d}^{#1} #2}{\mathrm{d} #3^{#1}}}
  65. \newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}}
  66. \newcommand{\pdn}[3]{\frac{\partial^{#1} #2}{\partial #3^{#1}}}
  67. \newcommand{\then}{\Longrightarrow \quad}
  68. \newcommand{\Then}{\quad \Longrightarrow \quad}
  69. \newcommand{\D}{\,\mathrm{d}}
  70. \newcommand{\ve}{\bm}
  71. \newcommand{\del}{\partial}
  72. \newcommand{\grad}{\nabla}
  73. \renewcommand{\div}{\nabla \cdot}
  74. \newcommand{\curl}{\nabla \times}
  75. \newcommand{\cross}{\times}
  76.  
  77. % Operators
  78. \DeclareMathOperator{\diag}{diag}
  79. \DeclareMathOperator{\J}{J}
  80. \DeclareMathOperator{\Y}{Y}
  81. \DeclareMathOperator{\Ai}{Ai}
  82. \DeclareMathOperator{\Bi}{Bi}
  83. \DeclareMathOperator{\sech}{sech}
  84. \DeclareMathOperator{\csch}{csch}
  85. \DeclareMathOperator{\sgn}{sgn}
  86. \DeclareMathOperator{\e}{e}
  87.  
  88. % Hat lower case letters
  89. \newcommand{\hta}{\hat{a}}
  90. \newcommand{\htb}{\hat{b}}
  91. \newcommand{\htc}{\hat{c}}
  92. \newcommand{\htd}{\hat{d}}
  93. \newcommand{\hte}{\hat{e}}
  94. \newcommand{\htf}{\hat{f}}
  95. \newcommand{\htg}{\hat{g}}
  96. \newcommand{\hth}{\hat{h}}
  97. \newcommand{\hti}{\hat{\imath}}
  98. \newcommand{\htj}{\hat{\jmath}}
  99. \newcommand{\htk}{\hat{k}}
  100. \newcommand{\htl}{\hat{l}}
  101. \newcommand{\htm}{\hat{m}}
  102. \newcommand{\htn}{\hat{n}}
  103. \newcommand{\hto}{\hat{o}}
  104. \newcommand{\htp}{\hat{p}}
  105. \newcommand{\htq}{\hat{q}}
  106. \newcommand{\htr}{\hat{r}}
  107. \newcommand{\hts}{\hat{s}}
  108. \newcommand{\htt}{\hat{t}}
  109. \newcommand{\htu}{\hat{u}}
  110. \newcommand{\htv}{\hat{v}}
  111. \newcommand{\htw}{\hat{w}}
  112. \newcommand{\htx}{\hat{x}}
  113. \newcommand{\hty}{\hat{y}}
  114. \newcommand{\htz}{\hat{z}}
  115.  
  116. % Hat upper case letters
  117. \newcommand{\htA}{\hat{A}}
  118. \newcommand{\htB}{\hat{B}}
  119. \newcommand{\htC}{\hat{C}}
  120. \newcommand{\htD}{\hat{D}}
  121. \newcommand{\htE}{\hat{E}}
  122. \newcommand{\htF}{\hat{F}}
  123. \newcommand{\htG}{\hat{G}}
  124. \newcommand{\htH}{\hat{H}}
  125. \newcommand{\htI}{\hat{I}}
  126. \newcommand{\htJ}{\hat{J}}
  127. \newcommand{\htK}{\hat{K}}
  128. \newcommand{\htL}{\hat{L}}
  129. \newcommand{\htM}{\hat{M}}
  130. \newcommand{\htN}{\hat{N}}
  131. \newcommand{\htO}{\hat{O}}
  132. \newcommand{\htP}{\hat{P}}
  133. \newcommand{\htQ}{\hat{Q}}
  134. \newcommand{\htR}{\hat{R}}
  135. \newcommand{\htS}{\hat{S}}
  136. \newcommand{\htT}{\hat{T}}
  137. \newcommand{\htU}{\hat{U}}
  138. \newcommand{\htV}{\hat{V}}
  139. \newcommand{\htW}{\hat{W}}
  140. \newcommand{\htX}{\hat{X}}
  141. \newcommand{\htY}{\hat{Y}}
  142. \newcommand{\htZ}{\hat{Z}}
  143.  
  144. % Hat lower case Greek letters
  145. \newcommand{\htalpha}{\hat{\alpha}}
  146. \newcommand{\htbeta}{\hat{\beta}}
  147. \newcommand{\htgamma}{\hat{\gamma}}
  148. \newcommand{\htdelta}{\hat{\delta}}
  149. \newcommand{\htepsilon}{\hat{\epsilon}}
  150. \newcommand{\htzeta}{\hat{\zeta}}
  151. \newcommand{\hteta}{\hat{\eta}}
  152. \newcommand{\httheta}{\hat{\theta}}
  153. \newcommand{\htiota}{\hat{\iota}}
  154. \newcommand{\htkappa}{\hat{\kappa}}
  155. \newcommand{\htlambda}{\hat{\lambda}}
  156. \newcommand{\htmu}{\hat{\mu}}
  157. \newcommand{\htnu}{\hat{\nu}}
  158. \newcommand{\htxi}{\hat{\xi}}
  159. \newcommand{\htpi}{\hat{\pi}}
  160. \newcommand{\htrho}{\hat{\rho}}
  161. \newcommand{\htsigma}{\hat{\sigma}}
  162. \newcommand{\httau}{\hat{\htau}}
  163. \newcommand{\htupsilon}{\hat{\upsilon}}
  164. \newcommand{\htphi}{\hat{\phi}}
  165. \newcommand{\htchi}{\hat{\chi}}
  166. \newcommand{\htpsi}{\hat{\psi}}
  167. \newcommand{\htvarphi}{\hat{\varphi}}
  168. \newcommand{\htomega}{\hat{\omega}}
  169.  
  170. % Hat upper case Greek letters
  171. \newcommand{\htGamma}{\hat{\Gamma}}
  172. \newcommand{\htDelta}{\hat{\Delta}}
  173. \newcommand{\htTheta}{\hat{\Theta}}
  174. \newcommand{\htLambda}{\hat{\Lambda}}
  175. \newcommand{\htXi}{\hat{\Xi}}
  176. \newcommand{\htPi}{\hat{\Pi}}
  177. \newcommand{\htSigma}{\hat{\Sigma}}
  178. \newcommand{\htPhi}{\hat{\phi}}
  179. \newcommand{\htPsi}{\hat{\Psi}}
  180. \newcommand{\htOmega}{\hat{\Omega}}
  181.  
  182. % Tilde lower case letters
  183. \newcommand{\ta}{\tilde{a}}
  184. \newcommand{\tb}{\tilde{b}}
  185. \newcommand{\tc}{\tilde{c}}
  186. \newcommand{\td}{\tilde{d}}
  187. \newcommand{\te}{\tilde{e}}
  188. \newcommand{\tf}{\tilde{f}}
  189. \newcommand{\tg}{\tilde{g}}
  190. \newcommand{\tlh}{\tilde{h}}
  191. \newcommand{\ti}{\tilde{\imath}}
  192. \newcommand{\tj}{\tilde{\jmath}}
  193. \newcommand{\tk}{\tilde{k}}
  194. \newcommand{\tl}{\tilde{l}}
  195. \newcommand{\tm}{\tilde{m}}
  196. \newcommand{\tn}{\tilde{n}}
  197. \newcommand{\tlo}{\tilde{o}}
  198. \newcommand{\tp}{\tilde{p}}
  199. \newcommand{\tq}{\tilde{q}}
  200. \newcommand{\tr}{\tilde{r}}
  201. \newcommand{\ts}{\tilde{s}}
  202. \newcommand{\tlt}{\tilde{t}}
  203. \newcommand{\tu}{\tilde{u}}
  204. \newcommand{\tv}{\tilde{v}}
  205. \newcommand{\tw}{\tilde{w}}
  206. \newcommand{\tx}{\tilde{x}}
  207. \newcommand{\ty}{\tilde{y}}
  208. \newcommand{\tz}{\tilde{z}}
  209.  
  210. % Tilde upper case letters
  211. \newcommand{\tA}{\tilde{A}}
  212. \newcommand{\tB}{\tilde{B}}
  213. \newcommand{\tC}{\tilde{C}}
  214. \newcommand{\tD}{\tilde{D}}
  215. \newcommand{\tE}{\tilde{E}}
  216. \newcommand{\tF}{\tilde{F}}
  217. \newcommand{\tG}{\tilde{G}}
  218. \newcommand{\tH}{\tilde{H}}
  219. \newcommand{\tI}{\tilde{I}}
  220. \newcommand{\tJ}{\tilde{J}}
  221. \newcommand{\tK}{\tilde{K}}
  222. \newcommand{\tL}{\tilde{L}}
  223. \newcommand{\tM}{\tilde{M}}
  224. \newcommand{\tN}{\tilde{N}}
  225. \newcommand{\tO}{\tilde{O}}
  226. \newcommand{\tP}{\tilde{P}}
  227. \newcommand{\tQ}{\tilde{Q}}
  228. \newcommand{\tR}{\tilde{R}}
  229. \newcommand{\tS}{\tilde{S}}
  230. \newcommand{\tT}{\tilde{T}}
  231. \newcommand{\tU}{\tilde{U}}
  232. \newcommand{\tV}{\tilde{V}}
  233. \newcommand{\tW}{\tilde{W}}
  234. \newcommand{\tX}{\tilde{X}}
  235. \newcommand{\tY}{\tilde{Y}}
  236. \newcommand{\tZ}{\tilde{Z}}
  237.  
  238. % Tilde lower case Greek letters
  239. \newcommand{\talpha}{\tilde{\alpha}}
  240. \newcommand{\tbeta}{\tilde{\beta}}
  241. \newcommand{\tgamma}{\tilde{\gamma}}
  242. \newcommand{\tdelta}{\tilde{\delta}}
  243. \newcommand{\tepsilon}{\tilde{\epsilon}}
  244. \newcommand{\tzeta}{\tilde{\zeta}}
  245. \newcommand{\teta}{\tilde{\eta}}
  246. \newcommand{\ttheta}{\tilde{\theta}}
  247. \newcommand{\tiota}{\tilde{\iota}}
  248. \newcommand{\tkappa}{\tilde{\kappa}}
  249. \newcommand{\tlambda}{\tilde{\lambda}}
  250. \newcommand{\tmu}{\tilde{\mu}}
  251. \newcommand{\tnu}{\tilde{\nu}}
  252. \newcommand{\txi}{\tilde{\xi}}
  253. \newcommand{\tpi}{\tilde{\pi}}
  254. \newcommand{\trho}{\tilde{\rho}}
  255. \newcommand{\tsigma}{\tilde{\sigma}}
  256. \newcommand{\ttau}{\tilde{\tau}}
  257. \newcommand{\tupsilon}{\tilde{\upsilon}}
  258. \newcommand{\tphi}{\tilde{\phi}}
  259. \newcommand{\tchi}{\tilde{\chi}}
  260. \newcommand{\tpsi}{\tilde{\psi}}
  261. \newcommand{\tvarphi}{\tilde{\varphi}}
  262. \newcommand{\tomega}{\tilde{\omega}}
  263.  
  264. % Tilde upper case Greek letters
  265. \newcommand{\tGamma}{\tilde{\Gamma}}
  266. \newcommand{\tDelta}{\tilde{\Delta}}
  267. \newcommand{\tTheta}{\tilde{\Theta}}
  268. \newcommand{\tLambda}{\tilde{\Lambda}}
  269. \newcommand{\tXi}{\tilde{\Xi}}
  270. \newcommand{\tPi}{\tilde{\Pi}}
  271. \newcommand{\tSigma}{\tilde{\Sigma}}
  272. \newcommand{\tPhi}{\tilde{\phi}}
  273. \newcommand{\tPsi}{\tilde{\Psi}}
  274. \newcommand{\tOmega}{\tilde{\Omega}}
  275.  
  276. % Bar lower case letters
  277. \newcommand{\bra}{\bar{a}}
  278. \newcommand{\brb}{\bar{b}}
  279. \newcommand{\brc}{\bar{c}}
  280. \newcommand{\brd}{\bar{d}}
  281. \newcommand{\bre}{\bar{e}}
  282. \newcommand{\brf}{\bar{f}}
  283. \newcommand{\brg}{\bar{g}}
  284. \newcommand{\brh}{\bar{h}}
  285. \newcommand{\bri}{\bar{\imath}}
  286. \newcommand{\brj}{\bar{\jmath}}
  287. \newcommand{\brk}{\bar{k}}
  288. \newcommand{\brl}{\bar{l}}
  289. \newcommand{\brm}{\bar{m}}
  290. \newcommand{\brn}{\bar{n}}
  291. \newcommand{\bro}{\bar{o}}
  292. \newcommand{\brp}{\bar{p}}
  293. \newcommand{\brq}{\bar{q}}
  294. \newcommand{\brr}{\bar{r}}
  295. \newcommand{\brs}{\bar{s}}
  296. \newcommand{\brt}{\bar{t}}
  297. \newcommand{\bru}{\bar{u}}
  298. \newcommand{\brv}{\bar{v}}
  299. \newcommand{\brw}{\bar{w}}
  300. \newcommand{\brx}{\bar{x}}
  301. \newcommand{\bry}{\bar{y}}
  302. \newcommand{\brz}{\bar{z}}
  303.  
  304. % Bar upper case letters
  305. \newcommand{\brA}{\bar{A}}
  306. \newcommand{\brB}{\bar{B}}
  307. \newcommand{\brC}{\bar{C}}
  308. \newcommand{\brD}{\bar{D}}
  309. \newcommand{\brE}{\bar{E}}
  310. \newcommand{\brF}{\bar{F}}
  311. \newcommand{\brG}{\bar{G}}
  312. \newcommand{\brH}{\bar{H}}
  313. \newcommand{\brI}{\bar{I}}
  314. \newcommand{\brJ}{\bar{J}}
  315. \newcommand{\brK}{\bar{K}}
  316. \newcommand{\brL}{\bar{L}}
  317. \newcommand{\brM}{\bar{M}}
  318. \newcommand{\brN}{\bar{N}}
  319. \newcommand{\brO}{\bar{O}}
  320. \newcommand{\brP}{\bar{P}}
  321. \newcommand{\brQ}{\bar{Q}}
  322. \newcommand{\brR}{\bar{R}}
  323. \newcommand{\brS}{\bar{S}}
  324. \newcommand{\brT}{\bar{T}}
  325. \newcommand{\brU}{\bar{U}}
  326. \newcommand{\brV}{\bar{V}}
  327. \newcommand{\brW}{\bar{W}}
  328. \newcommand{\brX}{\bar{X}}
  329. \newcommand{\brY}{\bar{Y}}
  330. \newcommand{\brZ}{\bar{Z}}
  331.  
  332. % Bar lower case Greek letters
  333. \newcommand{\bralpha}{\bar{\alpha}}
  334. \newcommand{\brbeta}{\bar{\beta}}
  335. \newcommand{\brgamma}{\bar{\gamma}}
  336. \newcommand{\brdelta}{\bar{\delta}}
  337. \newcommand{\brepsilon}{\bar{\epsilon}}
  338. \newcommand{\brzeta}{\bar{\zeta}}
  339. \newcommand{\breta}{\bar{\eta}}
  340. \newcommand{\brtheta}{\bar{\brheta}}
  341. \newcommand{\briota}{\bar{\iota}}
  342. \newcommand{\brkappa}{\bar{\kappa}}
  343. \newcommand{\brlambda}{\bar{\lambda}}
  344. \newcommand{\brmu}{\bar{\mu}}
  345. \newcommand{\brnu}{\bar{\nu}}
  346. \newcommand{\brxi}{\bar{\xi}}
  347. \newcommand{\brpi}{\bar{\pi}}
  348. \newcommand{\brrho}{\bar{\rho}}
  349. \newcommand{\brsigma}{\bar{\sigma}}
  350. \newcommand{\brtau}{\bar{\brau}}
  351. \newcommand{\brupsilon}{\bar{\upsilon}}
  352. \newcommand{\brphi}{\bar{\phi}}
  353. \newcommand{\brchi}{\bar{\chi}}
  354. \newcommand{\brpsi}{\bar{\psi}}
  355. \newcommand{\brvarphi}{\bar{\varphi}}
  356. \newcommand{\bromega}{\bar{\omega}}
  357.  
  358. % Bar upper case Greek letters
  359. \newcommand{\brGamma}{\bar{\Gamma}}
  360. \newcommand{\brDelta}{\bar{\Delta}}
  361. \newcommand{\brTheta}{\bar{\Theta}}
  362. \newcommand{\brLambda}{\bar{\Lambda}}
  363. \newcommand{\brXi}{\bar{\Xi}}
  364. \newcommand{\brPi}{\bar{\Pi}}
  365. \newcommand{\brSigma}{\bar{\Sigma}}
  366. \newcommand{\brPhi}{\bar{\Phi}}
  367. \newcommand{\brPsi}{\bar{\Psi}}
  368. \newcommand{\brOmega}{\bar{\Omega}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement