-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmyglossary.sty
227 lines (191 loc) · 7.66 KB
/
myglossary.sty
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
\ProvidesPackage{myglossary}
\RequirePackage[%
% nomain,
acronyms,
automake,
nonumberlist,% Removes page numbers from glossary
%nogroupskip,
toc=false,% Add glossary to ToC
style=tree,
shortcuts,% Add links to glossary entries
]{glossaries-extra}
% Some set up
\normalem
% MARK: Glossary styles
% https://www.dickimaw-books.com/gallery/index.php?label=sample-abbr-styles
\setabbreviationstyle[acronym]{long-short} % The default style
\setabbreviationstyle[named]{long-short-em}
% MARK: ACRONYMS
\newacronym{ADC}{A-DC}{Analog-to-Digital Converter}
\newacronym{ADComp}{ADC}{Atmospheric Dispersion Compensator}
\newacronym[shortplural={AGN}, longplural={Active Galactic Nuclei}]{AGN}{AGN}{Active Galactic Nucleus}
\newacronym{CCD}{CCD}{Charged-Coupled Device}
\newacronym{cgs}{cgs}{centimeter-gram-second}
\newacronym{CLI}{CLI}{Command Line Interface}
\newacronym{CMOS}{CMOS}{Complementary Metal-Oxide-Semiconductor}
\newacronym{CRR}{CRR}{Cosmic Ray Rejection}
\newacronym{ESO}{ESO}{European Southern Observatory}
\newacronym{EVPA}{EVPA}{Electric Vector Position Angle}
\newacronym{EW}{EW}{Equivalent Width}
\newacronym{FITS}{FITS}{Flexible Image Transport System}
\newacronym{FSRQ}{FSRQ}{Flat Spectrum Radio Quasar}
\newacronym[shortplural={FWHM}, longplural={Full Width at Half Maxima}]{FWHM}{FWHM}{Full Width at Half Maximum}
\newacronym{GUI}{GUI}{Graphical User Interface}
\newacronym{GRB}{GRB}{Gamma-ray Burst}
\newacronym{HDU}{HDU}{Header and Data Unit}
\newacronym{HEASA}{HEASA}{High Energy Astrophysics South Africa}
\newacronym{IMF}{IMF}{Interstellar Magnetic Fields}
\newacronym{L-45P}{L$-45^\circ$}{Linear $-45^\circ$ Polarized}
\newacronym{L45P}{L$+45^\circ$}{Linear $+45^\circ$ Polarized}
\newacronym{LCP}{LCP}{Left Circularly Polarized}
\newacronym{LHP}{LHP}{Linear Horizontally Polarized}
\newacronym{LVP}{LVP}{Linear Vertically Polarized}
\newacronym{NIR}{NIR}{Near Infra-Red}
\newacronym{PyPI}{PyPI}{Python Package Index}
\newacronym{QE}{QE}{Quantum Efficiency}
\newacronym{RCP}{RCP}{Right Circularly Polarized}
\newacronym{RMS}{RMS}{Root Mean Square}
\newacronym{SAC}{SAC}{Spherical Aberration Corrector}
\newacronym{SED}{SED}{Spectral Energy Distribution}
\newacronym{SNR}{SNR}{Signal-to-Noise Ratio}
\newacronym{UV}{UV}{Ultraviolet}
\newacronym{VPH}{VPH}{Volume Phase Holographic}
% MARK: Code
\setabbreviationstyle[code]{short-sc-long}
\newacronym[category={code}]{IRAF}{iraf}{\textit{Image Reduction and Analysis Facility}}
\newacronym[category={code}]{POLSALT}{polsalt}{\textit{Polarimetric reductions for SALT}}
\newacronym[category={code}]{STOPS}{stops}{\textit{Supplementary Tools for \textsc{polsalt} Spectro\-polarimetry}}
% MARK: SALT
\setabbreviationstyle[elements]{short}
\newacronym[category={elements}, sort={Argon}]{Ar}{Ar}{Argon}
\newacronym[category={elements}, sort={Copper}]{CuAr}{CuAr}{Copper-Argon}
\newacronym[category={elements}, sort={Mercury}]{HgAr}{HgAr}{Mercury-Argon}
\newacronym[category={elements}, sort={Neon}]{NeAr}{Ne}{Neon-Argon}
\newacronym[category={elements}, sort={Thorium}]{ThAr}{ThAr}{Thorium-Argon}
\newacronym[category={elements}, sort={Xenon}]{Xe}{Xe}{Xenon}
\newacronym{HRS}{HRS}{High Resolution Spectrograph}
\newacronym{NIRWALS}{NIRWALS}{Near Infra-Red Washburn Labs Spectrograph}
\newacronym{RSS}{RSS}{Robert Stobie Spectrograph}
\newacronym{SAAO}{SAAO}{South African Astronomical Observatory}
\newacronym{SALT}{SALT}{Southern African Large Telescope}
\newacronym{SALTICAM}{SALTICAM}{SALT Imaging Camera}
% MARK: Fermi
\newacronym[sort={Fermi LAT}]{FermiLAT}{\textit{Fermi}-LAT}{\textit{Fermi} Large Area Telescope}
\newacronym[sort={Fermi LCR}]{FermiLCR}{\textit{Fermi} LCR}{\textit{Fermi} Light Curve Repository}
% MARK: Swift
\newacronym[category={named}]{Swift}{Swift}{Neil Gerhels \textit{Swift} Observatory}
\newacronym{Swift_BAT}{BAT}{Burst Alert Telescope}
\newacronym{UVOT}{UVOT}{Ultraviolet Optical Telescope}
% MARK: VLT
\newacronym{VLT}{VLT}{Very Large Telescope}
\newacronym{FORS}{FORS}{Focal Reducer and Low Dispersion Spectrograph}
% MARK: HET
\newacronym{HET}{HET}{Hobby-Eberly Telescope}
% MARK: Provide cmd's
\providecommand\iraf{\gls{IRAF}}
\providecommand\polsalt{\gls{POLSALT}}
\providecommand\stops{\gls{STOPS}}
% Add any glossary entries below
% cursor commands
% exposure
% frame
% CLI (terminal) (UNIX -> bash, Windows -> Powershell/cmd, macOS -> Zsh)
% wildcard
% MARK: Johnson-Cousins
\setabbreviationstyle[filters]{short}
\newglossaryentry{Johnson-Cousins}{%
name=Johnson-Cousins photometric system,
description={A widely-used system of broad-band photo\-metry that uses a set of standard filters to measure the magnitudes of stars and other astronomical objects.},
}
\newglossaryentry{U}{%
name=\ensuremath{U},
description={The ultraviolet filter, typically centered at $\lambda \approx 3640$ \AA.},
parent={Johnson-Cousins},
category={filters},
sort={a}
}
\newglossaryentry{B}{%
name=\ensuremath{B},
description={The blue filter, typically centered at $\lambda \approx 4420$ \AA.},
parent={Johnson-Cousins},
category={filters},
sort={b}
}
\newglossaryentry{V}{%
name=\ensuremath{V},
description={The visual filter, designed to approximate human visual sensitivity and typically centered at $\lambda \approx 5400$ \AA.},
parent={Johnson-Cousins},
category={filters},
sort={c}
}
\newglossaryentry{R}{%
name=\ensuremath{R},
description={The red filter, typically centered at $\lambda \approx 6580$ \AA.},
parent={Johnson-Cousins},
category={filters},
sort={d}
}
\newglossaryentry{I}{%
name=\ensuremath{I},
description={The infrared filter, typically centered at $\lambda \approx 8060$ \AA.},
parent={Johnson-Cousins},
category={filters},
sort={e}
}
% MARK: FITS
\setabbreviationstyle[extensions]{short}
\newglossaryentry{FITS-extensions}{%
name={FITS extensions},
description={Extensions used in \gls{FITS} files to store different types of data.}
}
\newglossaryentry{PRIMARY}{%
name={`Primary'},
description={The Primary extension of a \gls{FITS} file which contains the file Header.},
parent={FITS-extensions},
category={extensions},
}
\newglossaryentry{SCI}{%
name={`SCI'},
description={The Science data extension in a \gls{FITS} file.},
parent={FITS-extensions},
category={extensions},
}
\newglossaryentry{VAR}{%
name={`VAR'},
description={The Variance data extension in a \gls{FITS} file.},
parent={FITS-extensions},
category={extensions},
}
\newglossaryentry{BPM}{%
name={`BPM'},
description={The Bad Pixel Map extension in a \gls{FITS} file.},
parent={FITS-extensions},
category={extensions},
}
\newglossaryentry{WAV}{%
name={`WAV'},
description={The Wavelength extension in a \gls{FITS} file.},
parent={FITS-extensions},
category={extensions},
}
\newglossaryentry{OE-beams}{%
name={$O$- and $E$-beam},
description={The Ordinary and Extraordinary (perpendicular) polarization beams, stored either in a single extension or as sub-extensions in a FITS file.}
}
% \newglossaryentry{science}{
% name={science},
% description={A science frame is an image taken of the object of interest.},
% plural={science},
% }
% \newglossaryentry{graphical user interface}{
% name={graphical user interface},
% description={A user interface that allows users to interact with a computer using graphical elements.},
% plural={graphical user interfaces},
% }
% \newglossaryentry{command line interface}{
% name={command line interface},
% description={A user interface that allows users to interact with a computer using text commands.},
% plural={command line interfaces},
% }
% Make latex compile acronyms to use in document section
\makeglossaries