Search found 6 matches

by jdege
Tue Nov 11, 2008 6:18 am
Forum: General
Topic: Chris Monson's LaTeX Makefile and glossaries.sty
Replies: 1
Views: 2270

Chris Monson's LaTeX Makefile and glossaries.sty

I've been using Chris Monson's Makefile ( http://www.bouncingchairs.net/oss/latex.html ) to run my LaTeX builds, and it worked very well for me, until I started using glossaries.sty.

Glossaries.sty uses a script entitled makeglossaries to build .gls files from the .glo files that the \glossaryentry ...
by jdege
Fri Nov 07, 2008 3:55 pm
Forum: General
Topic: Usinng \usebox inside \newenvironment
Replies: 0
Views: 1416

Usinng \usebox inside \newenvironment

What I'm trying to do is pretty simple - to combine ntheorem.sty and glossaries.sty in an environment that will take a word and a definition and to display then as a definition at the current location in the text and to display them in a glossary in the endmatter.

What I have so far (and thanks to ...
by jdege
Sun Nov 02, 2008 9:13 pm
Forum: General
Topic: \savebox in \newenvironment
Replies: 7
Views: 10141

Re: \savebox in \newenvironment

That got me the rest of the way, thanks.
by jdege
Sun Nov 02, 2008 8:05 pm
Forum: General
Topic: \savebox in \newenvironment
Replies: 7
Views: 10141

\savebox in \newenvironment

That's one step closer, thanks.

What I was trying to do was to capture the contents of the environment in the savebox. When that didn't work, I tried to capture an arbitrary string, and print that. When that didn't work, I went asking for help.

Your changes make my test work, thanks. But when I ...
by jdege
Sun Nov 02, 2008 5:57 pm
Forum: General
Topic: \savebox in \newenvironment
Replies: 7
Views: 10141

\savebox in \newenvironment

OK.

This works (or, rather it outputs the contents of the savebox):

\documentclass{article}
\usepackage{ntheorem}
\newtheorem{definition}{Definition}
\newsavebox{\mybox}
\newenvironment{glossdef}{%
\begin{definition}\savebox{\mybox}{Extra stuff in a savebox}}{%
\usebox{\mybox}\end{definition ...
by jdege
Sun Nov 02, 2008 4:47 am
Forum: General
Topic: \savebox in \newenvironment
Replies: 7
Views: 10141

\savebox in \newenvironment

What I want is a new definition environment that will take a word and a definition, and format it in place in a \newtheorems environment, and will add the word and the definition to the glossary at the end of the document.

My idea is to use theorems.sty and glossaries.sty, and to define a ...