[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#298767: marked as done (bibtex2html: fails to use macros with -m option)



Your message dated Wed, 9 Mar 2005 22:12:41 +0100
with message-id <[🔎] 20050309211241.GA2071@club-internet.fr>
and subject line Bug#298767: bibtex2html: fails to use macros with -m option
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 9 Mar 2005 20:20:55 +0000
>From swebster@berserk.physics.ubc.ca Wed Mar 09 12:20:55 2005
Return-path: <swebster@berserk.physics.ubc.ca>
Received: from berserk.physics.ubc.ca [142.103.140.62] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1D97fr-0001vs-00; Wed, 09 Mar 2005 12:20:55 -0800
Received: from swebster by berserk.physics.ubc.ca with local (Exim 3.36 #1 (Debian))
	id 1D97fq-0002DJ-00
	for <submit@bugs.debian.org>; Wed, 09 Mar 2005 12:20:54 -0800
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Scott Webster <swebster@physics.ubc.ca>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bibtex2html: fails to use macros with -m option
X-Mailer: reportbug 3.8
Date: Wed, 09 Mar 2005 12:20:54 -0800
Message-Id: <[🔎] E1D97fq-0002DJ-00@berserk.physics.ubc.ca>
Sender: Scott Webster <swebster@berserk.physics.ubc.ca>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

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

---------------------------------------
Received: (at 298767-close) by bugs.debian.org; 9 Mar 2005 21:12:43 +0000
>From treinen@free.fr Wed Mar 09 13:12:43 2005
Return-path: <treinen@free.fr>
Received: from postfix3-1.free.fr [213.228.0.44] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1D98Tz-000810-00; Wed, 09 Mar 2005 13:12:43 -0800
Received: from localhost (bdv75-5-82-229-144-192.fbx.proxad.net [82.229.144.192])
	by postfix3-1.free.fr (Postfix) with ESMTP id 61C76173485;
	Wed,  9 Mar 2005 22:12:42 +0100 (CET)
Received: from rt by localhost with local (Exim 3.36 #1 (Debian))
	id 1D98Tx-0000ec-00; Wed, 09 Mar 2005 22:12:41 +0100
Date: Wed, 9 Mar 2005 22:12:41 +0100
From: Ralf Treinen <treinen@free.fr>
To: Scott Webster <swebster@physics.ubc.ca>
Cc: 298767-close@bugs.debian.org, debian-ocaml-maint@lists.debian.org
Subject: Re: Bug#298767: bibtex2html: fails to use macros with -m option
Message-ID: <[🔎] 20050309211241.GA2071@club-internet.fr>
Mail-Followup-To: Scott Webster <swebster@physics.ubc.ca>,
	298767-close@bugs.debian.org, debian-ocaml-maint@lists.debian.org
References: <[🔎] E1D97fq-0002DJ-00@berserk.physics.ubc.ca>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[🔎] E1D97fq-0002DJ-00@berserk.physics.ubc.ca>
User-Agent: Mutt/1.5.6+20040907i
Sender: Ralf Treinen <treinen@free.fr>
Delivered-To: 298767-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

On Wed, Mar 09, 2005 at 12:20:54PM -0800, Scott Webster wrote:
> 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 macros.tex
> \def \test {"Correctly substituted journal name."}

It does work if you define the macros with LaTeX, instead of native TeX:

% cat macros.tex
\newcommand{\test}{"Correctly substituted journal name."}

I didn't check with earlier versions of bibtex2html whether TeX-style
definitions used to work. However, the documentation only talks about
LaTeX macros, not about TeX macros. Hence I suppose that this is
indeed the intended behaviour.

-Ralf.
-- 



Reply to: