From: Craig B Upright (cupright@Princeton.EDU)
Date: 10 Mar 01, 05:29 EST
From: Craig B Upright <cupright@Princeton.EDU>
Subject: Re: A small problem with Alpha and BibTeX 1.1.8
On Thurs, 08 March 2001, Vittorio Coti Zelati wrote:
| >>As you probably know, I inherited Bib mode, and this part of the
| >>formatting is a legacy from the original author(s). I don't know the
| >>rationale for stripping any braces from a field that contains the
| >>hash. It could easily be changed -- if anyone has any further
| >>information on
| >>when the braces should or should not be stripped please let me
| >>know. My guess is that the line
| >>
| >> [regexp {\#} $value]]
| >>
| >>might need more elaboration.
| >
| >
|
| A first, simple and I think reasonable solution is to replace the line
|
| [regexp {\#} $value]]
|
| by the line
|
| [regexp {[^\]\#} $value]]
|
| In this way the formatting proc does not attempt to format the
| entries made by the concatenation of more the one string (i.e.
| something of the form string1 # string2) but formats the entries
| containing the character \#)
Thanks for the info concerning hashmarks and strings, and for the fix.
This has been included in the 7.5d1 distribution. I also changed some
behavior that's been annoying me for years. Previously, reformatting
something like this:
@book{usda1999,
author = {{United States Department of Agriculture}},
...
would reult in
@book{usda1999,
author = {United States Department of Agriculture},
...
and I would have to manually add the double braces back. Double braces
are now respected and preserved. Let me know if this presents problems
for cases that I did not anticipate.
| It is not yet a completely satisfactory approach, in the sense that
| an entry like
|
| author = "A.U" # {thor},
|
| would be left unchanged by the formatting proc, while a more
| consistent approach should be to reformat it as
|
| author = {A.U} # {thor},
|
| or
|
| author = "A.U" # "thor",
|
| depending on the formatting options.
|
| Let me also point out that, in formatting an entry like
|
| author = AT,
|
| the formatting proc checks to see if the command AT as been defined
| via a @STRING command. If this has been done, then the entry is left
| unchanged, while if AT has not been defined, then the entry is
| formatted as
|
| author = "AT",
|
| The same kind of check is not done for the entry
|
| author = AU # "Thor",
This is true. I generally don't use @string 's in my .bib files, so I'm
not inclined to pursue this one. If anyone has a solution, feel free to
contribute. I suspect that the fix won't be nearly as elegant as the
one above.
Note that command double clicking on strings will verify them, although
the status message that appears when clicking on an invalid string is
possibly not so helpful ...
-- Craig
______________________________________________________________
Craig Barton Upright email: cupright@princeton.edu
Department of Sociology phone: (609) 258.4539
Princeton University fax: (609) 258.2180
Princeton, New Jersey 08544 http://www.princeton.edu/~cupright/
______________________________________________________________
_______________________________________________
AlphaTcl-users mailing list
AlphaTcl-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/alphatcl-users