Skip to content

This small Python program creates a full LaTeX glossary entry, which is copied to your clipboard and command line.

License

Notifications You must be signed in to change notification settings

ManuelTS/latexGlossaryEntry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

LaTeX Glossary Entry

This small Python program creates efficiently a full LaTeX glossary entry to your clipboard and command line.

Why doing it by hand when you can do it by code?

The benefit of using a LaTeX Glossary is to get abbreviations and their descriptions nicely and automatically structured in your document.

But only with the generated LaTeX-Code, an example is below.

Run

By running

python lge.py "Volume Clipping" "VC" "selectively disables or enables rendering operations inside a \Gls{ri}, which is in practice predominantly the intersection of two or more overlapping objects"

a full LaTeX glossary entry as

\newglossaryentry{VCG}{
    name={VC},
    description={Volume Clipping (VC) selectively disables or enables rendering operations inside a \Gls{ri}, which is in practice predominantly the intersection of two or more overlapping objects}
}
\newglossaryentry{VC}{
    type=\acronymtype,
    name={VC},
    description={Volume Clipping},
    first={Volume Clipping (VC) \glsadd{VCG}},
    see=[Glossary:]{VCG}
}

will be printed on the command line for you to verify the result and also copied to your clipboard for direct pasting.

Dependencies

Make sure you have Python's pip and on Ubuntu xclip installed. You can install it on Ubuntu with:

sudo apt-get install python-pip xclip

and Pyperclip by running:

pip install pyperclip

or both with

sudo apt-get install python-pip xclip && pip install pyperclip

About

This small Python program creates a full LaTeX glossary entry, which is copied to your clipboard and command line.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages