Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
restrepo
GitHub Repository: restrepo/ComputationalMethods
Path: blob/master/activities/tex/macros.tex
934 views
1
%=========================================================================
2
% EXTERNAL PACKAGES
3
%=========================================================================
4
\usepackage[round]{natbib}
5
\usepackage[margin=3cm]{geometry}
6
\usepackage{hyperref}
7
\usepackage{times}
8
\usepackage{amsmath}
9
\usepackage{amssymb}
10
\usepackage{fancyhdr,graphicx}
11
\usepackage{array, xcolor, bibentry}
12
\usepackage[utf8]{inputenc}
13
%\usepackage[nottoc, notlof, notlot]{tocbibind}
14
15
%\definecolor{lightgray}{gray}{0.8}
16
\newcolumntype{L}{>{\raggedleft}p{0.14\textwidth}}
17
\newcolumntype{R}{p{0.8\textwidth}}
18
\newcommand\VRule{\color{lightgray}\vrule width 0.5pt}
19
20
\usepackage{booktabs}% http://ctan.org/pkg/booktabs
21
\newcommand{\tabitem}{~~\llap{\textbullet}~~}
22
23
%=========================================================================
24
% INTERNAL MACROS
25
%=========================================================================
26
% To highlight comments
27
\definecolor{red}{rgb}{1,0.0,0.0}
28
\newcommand{\red}{\color{red}}
29
\definecolor{darkgreen}{rgb}{0.0,0.5,0.0}
30
\newcommand{\SRK}[1]{\textcolor{darkgreen}{\bf SRK: \textit{#1}}}
31
\newcommand{\SRKED}[1]{\textcolor{darkgreen}{\bf #1}}
32
33
\newcommand{\LCDM}{$\Lambda$CDM~}
34
\newcommand{\beq}{\begin{eqnarray}}
35
\newcommand{\eeq}{\end{eqnarray}}
36
\newcommand{\zz}{$z\sim 3$}
37
\newcommand{\apj}{ApJ}
38
\newcommand{\apjs}{ApJS}
39
\newcommand{\apjl}{ApJL}
40
\newcommand{\aj}{AJ}
41
\newcommand{\mnras}{MNRAS}
42
\newcommand{\mnrassub}{MNRAS accepted}
43
\newcommand{\aap}{A\&A}
44
\newcommand{\aaps}{A\&AS}
45
\newcommand{\araa}{ARA\&A}
46
\newcommand{\nat}{Nature}
47
\newcommand{\physrep}{PhR}
48
\newcommand{\pasp}{PASP}
49
\newcommand{\pasj}{PASJ}
50
\newcommand{\avg}[1]{\langle{#1}\rangle}
51
\newcommand{\ly}{{\ifmmode{{\rm Ly}\alpha}\else{Ly$\alpha$}\fi}}
52
\newcommand{\hMpc}{{\ifmmode{h^{-1}{\rm Mpc}}\else{$h^{-1}$Mpc }\fi}}
53
\newcommand{\hGpc}{{\ifmmode{h^{-1}{\rm Gpc}}\else{$h^{-1}$Gpc }\fi}}
54
\newcommand{\hmpc}{{\ifmmode{h^{-1}{\rm Mpc}}\else{$h^{-1}$Mpc }\fi}}
55
\newcommand{\hkpc}{{\ifmmode{h^{-1}{\rm kpc}}\else{$h^{-1}$kpc }\fi}}
56
\newcommand{\hMsun}{{\ifmmode{h^{-1}{\rm {M_{\odot}}}}\else{$h^{-1}{\rm{M_{\odot}}}$}\fi}}
57
\newcommand{\hmsun}{{\ifmmode{h^{-1}{\rm {M_{\odot}}}}\else{$h^{-1}{\rm{M_{\odot}}}$}\fi}}
58
\newcommand{\Msun}{{\ifmmode{{\rm {M_{\odot}}}}\else{${\rm{M_{\odot}}}$}\fi}}
59
\newcommand{\msun}{{\ifmmode{{\rm {M_{\odot}}}}\else{${\rm{M_{\odot}}}$}\fi}}
60
\newcommand{\lya}{{Lyman$\alpha$~}}
61
\newcommand{\clara}{{\texttt{CLARA}}~}
62
\newcommand{\rand}{{\ifmmode{{\mathcal{R}}}\else{${\mathcal{R}}$ }\fi}}
63
64
65
%MY COMMANDS #############################################################
66
\newcommand{\sub}[1]{\mbox{\scriptsize{#1}}}
67
\newcommand{\dtot}[2]{ \frac{ d #1 }{d #2} }
68
\newcommand{\dpar}[2]{ \frac{ \partial #1 }{\partial #2} }
69
\newcommand{\pr}[1]{ \left( #1 \right) }
70
\newcommand{\corc}[1]{ \left[ #1 \right] }
71
\newcommand{\lla}[1]{ \left\{ #1 \right\} }
72
\newcommand{\bds}[1]{\boldsymbol{ #1 }}
73
\newcommand{\oiint}{\displaystyle\bigcirc\!\!\!\!\!\!\!\!\int\!\!\!\!\!\int}
74
\newcommand{\mathsize}[2]{\mbox{\fontsize{#1}{#1}\selectfont $#2$}}
75
\newcommand{\eq}[2]{\begin{equation} \label{eq:#1} #2 \end{equation}}
76
\newcommand{\lth}{$\lambda_{th}$ }
77
%#########################################################################
78
79
\setlength\parindent{0pt}
80
81
\def\LOGO{%
82
\begin{picture}(0,0)\unitlength=1cm
83
\put (6,-2) {\includegraphics[keepaspectratio=true,width=0.1\textheight]{./figures/UdeA_Shield.jpeg}}
84
\end{picture}
85
}
86