Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
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 2 '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 2 '12 at 15:35

1 Answer 1

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

share|improve this answer
    
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 2 '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 2 '12 at 20:56
    
Thanks @lockstep it works –  pengcheng Nov 5 '12 at 22:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.