Port from glossary package to glossaries

main
Jeff Moe 2022-08-27 20:15:20 -06:00
parent 956a899bda
commit b50eee1f07
6 changed files with 69 additions and 37 deletions

View File

@ -11,16 +11,13 @@
\section{Overview of Analysis} \section{Overview of Analysis}
\label{sec:overview-analysis} \label{sec:overview-analysis}
Analyze data with applications, such as AstroImageJ.
\glossary{AstroImageJ}{Application for astronomy and satellite image analysis.}
\glossary{FITS}{Flexible Image Transport System is an open standard defining a digital file format useful for storage, transmission and processing of data: formatted as multi-dimensional arrays (for example a 2D image), or tables. FITS is the most commonly used digital file format in astronomy. The FITS standard was designed specifically for astronomical data, and includes provisions such as describing photometric and spatial calibration information, together with image origin metadata.}
% No footnotes in glossary?
% \footnote{\scriptsize{\url{https://en.wikipedia.org/w/index.php?title=FITS&oldid=1091431488}}}
\index{analysis}\index{AstroImageJ}\index{FITS} \index{analysis}\index{AstroImageJ}\index{FITS}
AstroImageJ can read FITS format files. Analyze data with applications, such as \gls{AstroImageJ}.
\gls{AstroImageJ} can read \gls{FITS} format files.
See See
\ref{fig:astroimagej}, page \pageref{fig:astroimagej}, \ref{fig:astroimagej}, page \pageref{fig:astroimagej},
for a screenshot displaying a FITS file generated by for a screenshot displaying a \gls{FITS} file generated by
\texttt{stvid}. \texttt{stvid}.
\index{stvid} \index{stvid}

13
src/Glossary.tex 100644
View File

@ -0,0 +1,13 @@
\newglossaryentry{AstroImageJ}
{ name={AstroImageJ},
description={Application for astronomy and satellite image analysis}}
\newglossaryentry{FITS}
{ name={FITS},
description={Flexible Image Transport System is an open standard defining a digital file format useful for storage, transmission and processing of data: formatted as multi-dimensional arrays (for example a 2D image), or tables. FITS is the most commonly used digital file format in astronomy. The FITS standard was designed specifically for astronomical data, and includes provisions such as describing photometric and spatial calibration information, together with image origin metadata}}
%\footnote{\scriptsize{\url{https://en.wikipedia.org/w/index.php?title=FITS&oldid=1091431488}}}
\newglossaryentry{artificial satellite}
{ name={artificial satellite},
description={Satellite launched by teh hoomans}}

View File

@ -7,7 +7,6 @@ all:
-interaction=nonstopmode \ -interaction=nonstopmode \
-no-pdf \ -no-pdf \
SNOUG.tex SNOUG.tex
makeindex -s SNOUG.gst -o SNOUG.gls SNOUG.glo
makeindex -s SNOUG.ist SNOUG.idx makeindex -s SNOUG.ist SNOUG.idx
xelatex \ xelatex \
-halt-on-error \ -halt-on-error \

View File

@ -1,16 +1,31 @@
% % makeindex style file created by the glossaries package
% SNOUG.ist % for document 'SNOUG' on 2022-8-27
% makindex index style file actual '?'
% encap '|'
% SatNOGS Optical Unofficial Guide level '!'
% quote '"'
% Copyright (C) 2022, Jeff Moe keyword "\\glossaryentry"
% preamble "\\glossarysection[\\glossarytoctitle]{\\glossarytitle}\\glossarypreamble\n\\begin{theglossary}\\glossaryheader\n"
% This document is licensed under the Creative Commons Attribution 4.0 postamble "\%\n\\end{theglossary}\\glossarypostamble\n"
% International Public License (CC BY-SA 4.0) by Jeff Moe. group_skip "\\glsgroupskip\n"
% item_0 "\%\n"
item_1 "\%\n"
heading_prefix "{\\normalsize \\bfseries\\hfil\\ " item_2 "\%\n"
heading_suffix " \\ \\hfil}\\nopagebreak\n" item_01 "\%\n"
headings_flag 1 item_x1 "\\relax \\glsresetentrylist\n"
item_12 "\%\n"
item_x2 "\\relax \\glsresetentrylist\n"
delim_0 "\{\\glossaryentrynumbers\{\\relax "
delim_1 "\{\\glossaryentrynumbers\{\\relax "
delim_2 "\{\\glossaryentrynumbers\{\\relax "
delim_t "\}\}"
delim_n "\\delimN "
delim_r "\\delimR "
headings_flag 1
heading_prefix "\\glsgroupheading\{"
heading_suffix "\}\\relax \\glsresetentrylist "
symhead_positive "glssymbols"
numhead_positive "glsnumbers"
page_compositor "."
suffix_2p ""
suffix_3p ""

View File

@ -15,11 +15,6 @@
% International Public License (CC BY-SA 4.0) by Jeff Moe. % International Public License (CC BY-SA 4.0) by Jeff Moe.
% %
%%% XXX NOTE
%%% Glossaries and indices are broken:
%%% https://sharelatex.tenderapp.com/help/discussions/questions/19378-glossaries-indices-and-speed
%%% XXX NOTE
% LaTeX Docs: % LaTeX Docs:
% http://en.wikibooks.org/wiki/Category:LaTeX % http://en.wikibooks.org/wiki/Category:LaTeX
@ -64,8 +59,6 @@ leftmargin=1cm,rightmargin=1cm
%\usepackage{url} % /usr/share/doc/texlive-doc/latex/url/url.pdf % Use hyperref. %\usepackage{url} % /usr/share/doc/texlive-doc/latex/url/url.pdf % Use hyperref.
\graphicspath{{./figures/}} \graphicspath{{./figures/}}
\makeindex
\makeglossary
\usepackage{xcolor} \usepackage{xcolor}
@ -127,6 +120,7 @@ leftmargin=1cm,rightmargin=1cm
\usepackage{smartdiagram} \usepackage{smartdiagram}
\usesmartdiagramlibrary{additions} \usesmartdiagramlibrary{additions}
%%% SNOUG PAGE STYLE %%% %%% SNOUG PAGE STYLE %%%
\makepagestyle{jebbastyle} \makepagestyle{jebbastyle}
\pagestyle{jebbastyle} \pagestyle{jebbastyle}
@ -183,6 +177,18 @@ leftmargin=1cm,rightmargin=1cm
\definecolor{jebba-darker-blue}{cmyk}{0.84 0.76 0.00 0.70} \definecolor{jebba-darker-blue}{cmyk}{0.84 0.76 0.00 0.70}
%%% END COLORS %%% %%% END COLORS %%%
%%% INDEX %%%
\makeindex
%%% END INDEX %%%
%%% GLOSSARY %%%
%\usepackage{glossaries}
\usepackage[nogroupskip]{glossaries}
\loadglsentries{Glossary.tex}
\makenoidxglossaries
%\makeglossaries
%%% END GLOSSARY %%%
%%% DEBUG %%% %%% DEBUG %%%
%\showoutput %\showoutput
%\typeoutlayout %\typeoutlayout
@ -301,12 +307,14 @@ leftmargin=1cm,rightmargin=1cm
%%% END INDEX %%% %%% END INDEX %%%
%%% GLOSSARY %%% %%% GLOSSARY %%%
\renewcommand{\memgloterm}[1]{\fontspec{lmsans10-bold.otf}{#1}} %\renewcommand{\memgloterm}[1]{\fontspec{lmsans10-bold.otf}{#1}}
\renewcommand{\memglodesc}[1]{\fontspec{lmroman12-italic.otf}{#1}} %\renewcommand{\memglodesc}[1]{\fontspec{lmroman12-italic.otf}{#1}}
\renewcommand{\memglonum}[1]{} %\renewcommand{\memglonum}[1]{}
\clearpage \clearpage
\printglossary %\printglossary
%\printunsrtglossaries
\printnoidxglossaries
%%% END GLOSSARY %%% %%% END GLOSSARY %%%
%%% COLOPHON %%% %%% COLOPHON %%%

View File

@ -13,5 +13,5 @@
\label{sec:overview-satellites} \label{sec:overview-satellites}
\index{satellites} \index{satellites}
Artificial satellites are rocks with modems. \gls{artificial satellite} are rocks with modems.
\glossary{Artificial satellite}{Satellite launched by teh hoomans.}