I know there are many questions about the list of symbols and abbreviations already posted but I can not find one that solves my problem directly. I found one answer (https://tex.stackexchange.com/a/366282/211159)(method 4) which relates to my question but it requires loading external files. I am using Overleaf as my tex editor so I am not entirely sure how to do that.
I am thinking of either using the glossaries acro or nomencl packages. I think nomencl is the most straightforward.
What I want:
- To define all my symbols and/or abbreviations in a
.auxor.bibmaster file (can be a separate file for symbols and one for abbreviations if necessary) - When I type in my document and use for example
\ac{NY}the abbreviation 'NY' appears in my text and the entry is taken from the.bibor.auxfile and added to the List of Abbreviations. - Use the code
\input{ListofSymb}where I want the list to appear.
I do something similar with my preamble and my bibliography, whereby I have a master list that I have for all my projects and I just recall the files using \input.
MWE:
Preamble:
\usepackage{glossaries}
Main file
\documentclass [a4paper,12pt]{report}
\input{1.mypreamble}
\begin{document}
\input{ListofSymb}
This is a test paragraph where I will use some of the entries in the "ListofSymb" file. The entries I use are the only one I want to appear in the printed List of Symbols i.e. Not all symbols in the master list must appear the List of Symbols. I want symbols; $\gls{a}$, $\gls{t}$ and
$\gls{F}$ to appear. Additionally, they should appear in alphabetical order.
\end{document}
ListofSymb
@entry{x,
name={\ensuremath{x}},
description={position}
}
@entry{v,
name={\ensuremath{v}},
description={velocity}
}
@entry{a,
name={\ensuremath{a}},
description={acceleration}
}
@entry{t,
name={\ensuremath{t}},
description={time}
}
@entry{F,
name={\ensuremath{F}},
description={force}
}
Output:
I'm not sure if the packages and code used in this example is correct but its the closest I could get. I have taken examples from many different answers so it may be slightly jumbled.


\jobname.auxthat gets overwritten each and every time a LaTeX file is compiled? Pleas clarify. – Mico Jul 19 '20 at 15:17.texmight work best instead. I just want the file to be a personal database that stores all the symbols I use in my main document. Instead of having all the details of each entry in the main file, I want to have the entry details in a secondary file where i can then use\input– Aaron Rhodes Jul 19 '20 at 15:32.texis probably safe, though. – Mico Jul 19 '20 at 16:56.texfile, do you have any idea how i would go about this? Best packages, best syntax etc. – Aaron Rhodes Jul 19 '20 at 16:59