## [MiKTeX] BibTex @STRING problem

 [MiKTeX] BibTex @STRING problem From: Leonardo Freitas - 2003-06-30 09:19:39 ```Hi. I am trying to use @STRING in my bib files but they are not working as I = was expecting. I defined strings like in a file called "general.bib" %=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D %=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Publishers = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D %=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D @STRING{awl =3D "Addison Wesley"} @STRING{phl =3D "Prentice-Hall"} @STRING{spv =3D "Springer-Verlang"} @STRING{jws =3D "John Willey \& Sons"} @STRING{OUP =3D "Oxford University Press"} Then I use these strings in bib entries like the one below. @BOOK{z.books:woodcock, AUTHOR =3D {Jim Woodcock and Jim Davies}, TITLE =3D {Using Z: Specification, Refinement, and Proof}, YEAR =3D {1996}, PUBLISHER =3D {phl}, series =3D {iscs}, annote =3D {Main book on Z description and refinement.} } The final result in the .PS or .PDF file comes like: [89] Jim Woodcock and Jim Davies. Using Z: Specification, Refinement, = and Proof. phl, 1996. What do I need to do in order to put this work? I mean to have the above = line like [89] Jim Woodcock and Jim Davies. Using Z: Specification, Refinement, = and Proof. Prentice-Hall, 1996. Thanks. leo =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D Leonardo Freitas PhD - Circus Model Checking Formal Methods - Soft. Eng. http://www.cs.ukc.ac.uk/~lf25 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D ```

 [MiKTeX] BibTex @STRING problem From: Leonardo Freitas - 2003-06-30 09:19:39 ```Hi. I am trying to use @STRING in my bib files but they are not working as I = was expecting. I defined strings like in a file called "general.bib" %=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D %=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Publishers = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D %=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D @STRING{awl =3D "Addison Wesley"} @STRING{phl =3D "Prentice-Hall"} @STRING{spv =3D "Springer-Verlang"} @STRING{jws =3D "John Willey \& Sons"} @STRING{OUP =3D "Oxford University Press"} Then I use these strings in bib entries like the one below. @BOOK{z.books:woodcock, AUTHOR =3D {Jim Woodcock and Jim Davies}, TITLE =3D {Using Z: Specification, Refinement, and Proof}, YEAR =3D {1996}, PUBLISHER =3D {phl}, series =3D {iscs}, annote =3D {Main book on Z description and refinement.} } The final result in the .PS or .PDF file comes like: [89] Jim Woodcock and Jim Davies. Using Z: Specification, Refinement, = and Proof. phl, 1996. What do I need to do in order to put this work? I mean to have the above = line like [89] Jim Woodcock and Jim Davies. Using Z: Specification, Refinement, = and Proof. Prentice-Hall, 1996. Thanks. leo =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D Leonardo Freitas PhD - Circus Model Checking Formal Methods - Soft. Eng. http://www.cs.ukc.ac.uk/~lf25 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D ```
 Re: [MiKTeX] BibTex @STRING problem From: Philip G. Ratcliffe - 2003-06-30 09:48:08 ```> I defined strings like in a file called "general.bib" > > @STRING{awl = "Addison Wesley"} > @STRING{phl = "Prentice-Hall"} > @STRING{spv = "Springer-Verlang"} > @STRING{jws = "John Willey \& Sons"} > @STRING{OUP = "Oxford University Press"} Perfectly OK. > Then I use these strings in bib entries like the one below. > > @BOOK{z.books:woodcock, > AUTHOR = {Jim Woodcock and Jim Davies}, > TITLE = {Using Z: Specification, Refinement, and Proof}, > YEAR = {1996}, > PUBLISHER = {phl}, > series = {iscs}, > annote = {Main book on Z description and refinement.} > } > > The final result in the .PS or .PDF file comes like: Of course, it's got nothing to do with .PS or .PDF output. > [89] Jim Woodcock and Jim Davies. Using Z: Specification, > Refinement, and Proof. phl, 1996. > > What do I need to do in order to put this work? Like the BibTeX manual says, don't put braces (or "" either) around the strings in the bib entry, otherwise they just get interpretted as any other character string. In other words, you should use @BOOK{z.books:woodcock, AUTHOR = {Jim Woodcock and Jim Davies}, TITLE = {Using Z: Specification, Refinement, and Proof}, YEAR = {1996}, PUBLISHER = phl, series = iscs, annote = {Main book on Z description and refinement.} } Cheers, Phil Ratcliffe ```