8

I have a question on the font style of the bibliography.

My references use italics for book titles. Is there any command I can set to make sure all text in the bibliography is in one style only, i.e., the upright style?

lockstep
  • 250,273
  • 1
    Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. It is considered a lot better to put in some code that will compile, as it makes it a lot easier for us to copy it into our text editor and work with it, and see exactly what it is you are trying to do. The answer might very well depend upon how you create yout bibliography. – cgnieder Nov 02 '12 at 15:34
  • 1
    Which bibliography style file do you use? It's the file specified in the argument of the \bibliographystyle command. – Mico Nov 02 '12 at 15:35

2 Answers2

10

What should work for any bibliography style using either \em (e.g., plain) or \emph (e.g., plainnat) or the more basic \itshape is to put the bibliography inside a group and to issue \let\itshape\upshape at the start of this group.

\documentclass{article}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@book{A01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
}
\end{filecontents}

\begin{document}

\nocite{*}

\begingroup
\let\itshape\upshape

\bibliographystyle{plain}
\bibliography{\jobname}

\endgroup

\end{document}

enter image description here

lockstep
  • 250,273
  • Hello guys, I am using lyx so default style is ieeetr, so I choose plain style, but nothing changed. I am using a customized format package, could that be the problem overwriting my bibtex style? – pengcheng Nov 02 '12 at 20:37
  • @pengcheng Possible. But try to add \begingroup\let\itshape\upshape and \endgroup as "Evil Red Text" (LaTeX Code) at the appropriate places in your document body. – lockstep Nov 02 '12 at 20:56
  • Worked for me too with IEEEtran style, thank's a lot! – gaborous Jan 06 '15 at 17:50
3

Based on the following answer: https://tex.stackexchange.com/a/296150

For biblatex, you can disable all emphasizing (italics) with the following:

\makeatletter
\renewrobustcmd*{\mkbibemph}{}
\protected\long\def\blx@imc@mkbibemph#1{#1}
\makeatother