Bug#298767: bibtex2html: fails to use macros with -m option
Package: bibtex2html
Version: 1.75-1
Severity: normal
Version 1.75-1 of bibtex2html doesn't seem to properly read LaTeX
macros from a file anymore. Here is an example of trying to use a
macro to substitute in a journal name:
---
$ cat test.bib
@Article{Test2004,
Author = {Webster},
Title = {Test title},
Journal = {\test},
Volume = {100},
Pages = {1000},
Year = {2004},
Abstract = {Test abstract.},
}
$ cat macros.tex
\def \test {"Correctly substituted journal name."}
$ bibtex2html -m macros.tex test.bib
macro: test = "Correctly substituted journal name."
This is bibtex2html version 1.75, compiled on Sun Feb 6 16:17:24 CET
2005
Copyright (c) 1997-2001 Jean-Christophe tre and Claude March
This is free software with ABSOLUTELY NO WARRANTY (use option
--warranty)
Reading test.bib...ok (1 entries).
calling BibTeX...This is BibTeX, Version 0.99c (Web2C 7.4.5)
The top-level auxiliary file: /tmp/bib2htmle3c704.aux
The style file: plain.bst
Database file #1: test.bib
Reading /tmp/bib2htmle3c704.bbl...ok (1 entries)
Sorting...ok.
Making HTML document (test.html)...Unknown macro: \test
ok
Making HTML list of BibTeX entries (test_bib.html)...ok
$
---
So it does seem to read the macro, but then later complains with
"Unknown macro: \test". The generated .html files don't contain
anything where the substituted text should be.
I could be doing something wrong here, but this same setup worked with
a previous version of bibtex2html.
Scott Webster
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (400, 'testing'), (200, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-2-k7-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages bibtex2html depends on:
ii ocaml-base-nox [ocaml-base-no 3.08.2-1 Runtime system for ocaml bytecode
ii perl 5.8.4-6 Larry Wall's Practical Extraction
ii tetex-base 2.0.2c-6 Basic library files of teTeX
ii tetex-bin 2.0.2-26 The teTeX binary files
ii tetex-extra 2.0.2c-6 Additional library files of teTeX
-- no debconf information
Reply to: