LaTeX makefile updated

Fri 29 March 2019

My default LaTeX makefile evolved. Here is an update:

The makefile looks like:

LATEX=pdflatex
BIBTEX=bibtex
BIB=
RERUN='(There is undefined reference|Rerun to get (cross-references|the bars) right)'

%.pdf:%.tex
    ${LATEX} $<
    @if [ -e $*.bbl ]; then ${BIBTEX} $* && ${LATEX} $< && ${LATEX} $< ; fi
    @if egrep -q $(RERUN) $*.log ; then ${LATEX} $< ; fi

%.aux %.log: %.tex
    ${LATEX} $<
    while grep -e 'Rerun to get' -e 'run LaTeX again' *.log ; do ${LATEX} $< ; done

%.idx %.toc: %.tex
    ${LATEX} $<

%.bbl %.blg: %.aux $(BIB)
    bibtex $< && ${LATEX} $*.tex

%.ind: %.idx
    makeindex $< && ${LATEX} $*.tex

indent: *tex
    for i in *.tex; do latexindent -w -y="defaultIndent:'    '" $$i ; done

clean:
    rm -fv *.log *.aux *.dvi *.toc *.lot *.lof *.snm *.nav *.out *.tns *.bak?

The main evolutions is the indent target to autoindent *.tex file.

Category: tools Tagged: GNU LaTeX Makefile Writing how to tools


Back online

Mon 18 February 2019

I've migrated the blog from wordpress to pelican. Static files, quite easy to use.

The migration process went well. The pelican import tool is easy to use and my rst linter highlighted the few errors done by the import tools (mainly empty sections).

There are still few artefacts due to …

Category: tools Tagged: pelican wordpress blog tools

Read More

Conference posters

Fri 11 December 2015

[caption id="" align="alignright" width="75" class="zemanta-img"]English: This mindmap (Mind map) consists of r... mindmap needing clarification (Photo credit: Wikipedia)[/caption]

Few weeks ago, I wrote about mindmap in [latex]LaTeX[/latex]. Now I want to precise few ideas and to have all key ideas visible in one sight. I think the best layout is similar …

Category: tools Tagged: LaTeX Poster how to tools

Read More
Page 1 of 3

Next »