In a previous post I asked how one can customize an alpha style-type bst file.
Now, I would like to know how I can change the font of some element (e.g., the titles). In particular, some elements are in italic form. How can I remove that?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityIn a previous post I asked how one can customize an alpha style-type bst file.
Now, I would like to know how I can change the font of some element (e.g., the titles). In particular, some elements are in italic form. How can I remove that?
I take it you're using a modified version of the file alpha.bst
. It contains a function called emphasize
, which is invoked in more than a dozen different instances throughout the bst file.
Rather than edit these dozen+ different instances, I suggest disabling the function itself. In the modified bst file, look for the following code block:
FUNCTION {emphasize}
{ duplicate$ empty$
{ pop$ "" }
{ "{\em " swap$ * "}" * }
if$
}
(Depending on the vintage of your bst file, it may say { "\emph{" swap$ * "}" * }
instead of { "{\em " swap$ * "}" * }
.)
Change the code block to
FUNCTION {emphasize}
{}
which, effectively, makes it an empty shell that does nothing at all -- exactly what you want it to be, right?