Giter VIP home page Giter VIP logo

Comments (3)

davidfarmer avatar davidfarmer commented on May 27, 2024

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]

from discrete-book.

oscarlevin avatar oscarlevin commented on May 27, 2024

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).

from discrete-book.

davidfarmer avatar davidfarmer commented on May 27, 2024

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.

from discrete-book.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.