Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terms and glossary #22

Closed
oscarlevin opened this issue Jul 1, 2016 · 3 comments
Closed

Terms and glossary #22

oscarlevin opened this issue Jul 1, 2016 · 3 comments

Comments

@oscarlevin
Copy link
Owner

To create a list of symbols for the book, I used the glossaries package. The definitions live inside "symbols.tex". For example, there I have the line

\newgsym{isom}{\cong}{isomorphic to}

which is short for

\newglossaryentry{isom}{type=symbols,name={\ensuremath{\cong}}, sort=isom, description={isomorphic to}}

In the text I can type \gls{isom} and this inserts $\cong$ (ensuring math mode) as well as puts the current page as a reference in the list of symbols.

One way or another, this needs to get implemented in the mbx source.

@davidfarmer
Copy link
Contributor

The best I can see happening automatically is:

In math mode, replace \gls{isom} by
\isom

Outside math mode replace it by
$\isom$ \index{$\isom$}

where I have used LaTeX notation in both cases.

Let me know if you have a better suggestion.

On Fri, 1 Jul 2016, Oscar Levin wrote:

To create a list of symbols for the book, I used the glossaries package. The
definitions live inside "symbols.tex". For example, there I have the line

\newgsym{isom}{\cong}{isomorphic to}

which is short for

\newglossaryentry{isom}{type=symbols,name={\ensuremath{\cong}}, sort=isom,
description={isomorphic to}}

In the text I can type \gls{isom} and this inserts $\cong$ (ensuring math mode) as
well as puts the current page as a reference in the list of symbols.

One way or another, this needs to get implemented in the mbx source.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the
thread.[AAM6LFr1SIXQ7djhLO4O1JOh7n8Jh3zvks5qRYOTgaJpZM4JDfG9.gif]

@oscarlevin
Copy link
Owner Author

Would you read the definitions from the "symbols.tex" file or just convert \gls{blah} to \blah (or $\blah$, if not in math mode)? The former is really cool but sounds like a lot of work for what is probably a single use case. The latter would work only some of the time, as not all my glossary terms are so nice. For example, \gls{Bkn} should be $\b B^n_k$ (where "\b" is my macro for \mathbold).

I don't use \gls that often in the text, and as it stands now, it is pretty easy to search for them and fix manually (either before or after conversion).

@davidfarmer
Copy link
Contributor

The next pull request will just replace "blah" by "\blah". We can think about automating the symbols
file, but it is a one-time global replacement and so probably is the same amount of work to do
by hand at the end instead of automating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants