Alternative to LaTeX?

Bas van Gils basvg at cs.ru.nl
Wed May 24 18:53:56 UTC 2006


On Wed, May 24, 2006 at 11:40:18AM +0100, Sean Hammond wrote:
> I tried LyX again over the last couple of days and have changed my
> mind. 
[ ... ]

good to hear!

> It also hides having to call LaTeX and BibTeX multiple times.

Ah yes, you wrote about that earlier. A while ago my problem was a bit more
complex. I also wanted to include subversion version numers in my document,
make an author index, generate an retular index and so on. I wrote a Makefile
(attached to this mail) to help me automate the job. Perhaps someone here will
find it useful.

[ ... ]
> My favourite thing so far has been the cross-referencing. LyX makes
> placing cross-references much easier than plain LaTeX, and then LaTeX
> will write 'section x.x on page x' in place of a cross-reference, but
> if the thing you're referencing happens to be on the next page it will
> write 'section x.x on the next page', and if you happen to
> cross-reference to the next page twice on the same page then instead
> of repeating the phrase 'on the next page' twice it will use 'on the
> following page.'

Neat trick. Wouldn't know how to do that in plain LaTeX. Well, happy hacking!

Cheers,

  Bas 

-- 
<Bas.vanGils at cs.ru.nl> - GPG Key ID: 2768A493  -  http://www.cs.ru.nl/~basvg
Radboud University Nijmegen Institute for Computing and Information Sciences

-------------- next part --------------
##
## VARIABLES
##
BASENAME = dissertation

##
## ACTIONS
##

#
# default operation: LaTeX
# action: run through LaTeX once, then check for BiBTeX and rerun LaTeX as
#         many times as necessary to get all references right.
#
${BASENAME}.dvi: *.tex *.sty *.bib
	svnversion -n . | sed -e s/M//g > version.tex

	latex ${BASENAME}.tex;
	if grep "LaTeX Warning: Citation" < ${BASENAME}.log;  then \
		bibtex ${BASENAME}; \
		latex ${BASENAME}.tex;\
	fi
	authorindex ${BASENAME}.aux
	makeindex -s ${BASENAME}.ist ${BASENAME}
	while grep "Rerun to get cross-references right." < ${BASENAME}.log; do \
		latex ${BASENAME}.tex;\
	done
	latex ${BASENAME}.tex;\

	

#
# operation: clean
# action   : get rid of 'old' stuff
# 
clean:
	rm -f \
		${BASENAME}.aux \
		${BASENAME}.cb  \
		${BASENAME}.bbl \
		${BASENAME}.blg \
		${BASENAME}.log \
		${BASENAME}.ps  \
		${BASENAME}.out \
		${BASENAME}.dvi \
		${BASENAME}.pdf \
		${BASENAME}.ilg \
		${BASENAME}.idx \
		${BASENAME}.ind 

# 
# operation : pdf
# depends on: the DVI-file
# action    : make a pdf-version of the LaTeX document
# 
pdf: ${BASENAME}.dvi
	dvipdf ${BASENAME}.tex

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060524/dae52176/attachment.sig>


More information about the ubuntu-users mailing list