Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
glosTeX -any experiences?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
YakS
n00b
n00b


Joined: 16 Jul 2003
Posts: 17
Location: Zurich, Switzerland

PostPosted: Sun Sep 12, 2004 7:05 pm    Post subject: glosTeX -any experiences? Reply with quote

Hi

I've tried to install a package for /laTeX for some weeks now, glossTeX. Glosstex is a program and package for making a glossary with laTeX.


http://www.ctan.org/tex-archive/help/Catalogue/entries/glosstex.html?preferredCTAN=ftp.tu-chemnitz.de&action=/tools/cataloguesearch&catstring=glosstex

Well, i tried to install it, but it allways failed. Has anybody any experiences with installing it?

Thanx.
Back to top
View user's profile Send private message
RoyRatcliffe
n00b
n00b


Joined: 19 Jan 2005
Posts: 1
Location: UK

PostPosted: Thu Apr 28, 2005 11:44 am    Post subject: How to set up GlossTeX on Gentoo Reply with quote

Use the following ebuild script to install GlossTeX on Gentoo Linux.
Code:

# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit latex-package

# Note: version is 0.4 as taken from Release file, see
# ftp://ftp.dante.de/tex-archive/support/glosstex.  However, tarball
# name on ftp.dante.de is simply glosstex without version
# identification.  Also, after unpacking to the work directory,
# glosstex subdirectory continues without version identification.
# Hence, we only assume version 0.4!  Any way of checking?
S="${WORKDIR}/${PN}"

DESCRIPTION="Prepare glossaries in LaTeX"
SRC_URI="http://theory.uwinnipeg.ca/scripts/CTAN/support/${PN}.tar.gz"
HOMEPAGE="http://tug.ctan.org/tex-archive/help/Catalogue/entries/glosstex.html"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""

src_compile() {
   latex-package_src_compile
   cd ${S}
   emake || die "Error compiling glosstex binary"
}

src_install() {
   dobin glosstex
   # Instructions output at the end of ``make all'' say:
   #   glosstex.sty to texmf/tex/latex/glosstex
   #   glosstex.std to texmf/tex/latex/glosstex
   #   glosstex.ist to texmf/makeindex
   latex-package_src_doinstall sty doc
   insinto ${TEXMF}/tex/latex/${PN}
   doins glosstex.std
   insinto ${TEXMF}/makeindex
   doins glosstex.ist
}


Follow the steps below.
1) Copy the ebuild script to /usr/local/portage/dev-tex/glosstex, assuming your local Portage overlay directory is /usr/local/portage. Of course, you need a corresponding entry in /etc/make.conf, i.e.
Code:
PORTDIR_OVERLAY=/usr/local/portage

2) As root user, create the package manifest using
Code:
ebuild /usr/local/portage/dev-tex/glosstex/glosstex-0.4.ebuild digest

3) Finally, merge the package using
Code:
emerge glosstex


You can test the installation by creating testglosstex.tex containing LaTeX input:
Code:

\documentclass{article}
\usepackage{glosstex}
\begin{document}
\gls{GlossTeX}
\printglosstex(glo)
\end{document}

%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:

and a glossary definition input, testglosstex.gdf:
Code:

% -*- latex -*-
@entry{GlossTeX} package for preparing glossaries in \LaTeX

and some makefile rules, testglosstex.makefile:
Code:

%.gxs: %.tex %.gdf
   glosstex $* $*.gdf

%.glx: %.gxs
   makeindex $< -o $@ -s glosstex.ist


Run latex first! It may give errors but ignore them. Then run
Code:

   make -f testglosstex.makefile testglosstex.glx

The makefile rules here assume that your LaTeX input is something.tex and your glossary definitions are something.gdf (see GlossTeX documentation for the details). Finally run latex again and your glossary definitions should appear!

Regards,
Roy
Back to top
View user's profile Send private message
el_Salmon
Guru
Guru


Joined: 15 Dec 2003
Posts: 339
Location: Around 2.4GHz

PostPosted: Mon May 28, 2007 9:02 pm    Post subject: Reply with quote

I have updated the glosstex ebuild (I fixed SRC_URI and I added ppc keyword):

Code:
 Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit latex-package

# Note: version is 0.4 as taken from Release file, see
# ftp://ftp.dante.de/tex-archive/support/glosstex.  However, tarball
# name on ftp.dante.de is simply glosstex without version
# identification.  Also, after unpacking to the work directory,
# glosstex subdirectory continues without version identification.
# Hence, we only assume version 0.4!  Any way of checking?
S="${WORKDIR}/${PN}"

DESCRIPTION="Prepare glossaries in LaTeX"
SRC_URI="ftp://cam.ctan.org/tex-archive/support/${PN}.zip"
HOMEPAGE="http://tug.ctan.org/tex-archive/help/Catalogue/entries/glosstex.html"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc"
IUSE=""

src_compile() {
        latex-package_src_compile
        cd ${S}
        emake || die "Error compiling glosstex binary"
}

src_install() {
        dobin glosstex
        # Instructions output at the end of ``make all'' say:
        #   glosstex.sty to texmf/tex/latex/glosstex
        #   glosstex.std to texmf/tex/latex/glosstex
        #   glosstex.ist to texmf/makeindex
        latex-package_src_doinstall sty doc
        insinto ${TEXMF}/tex/latex/${PN}
        doins glosstex.std
        insinto ${TEXMF}/makeindex
        doins glosstex.ist
}
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum