Text FormattingBibliography Style »plain« without Page Numbers in Reference

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
ougka
Posts: 43
Joined: Wed Jan 19, 2011 5:02 pm

Bibliography Style »plain« without Page Numbers in Reference

Post by ougka »

Hello there,

I am using the cite package and \bibliographystyle{plain} style for my references. Unfortunately I have been editing my thesis in different machines, and it seems that they have slightly different version of miktex (one has 2.7 and the other has 2.8). I am guessing that the citation package has been updated in the most recent version, because when I compile my project using the 2.8 version I see page numbers in my References.

Essentially it shows the page number that the reference appears in the text.
For example :
[5] Information about the Google WiFi Project. http://en.wikipedia.org/
wiki/Google_WiFi/. 7

(In page 7 i refer to the above)

Can I turn that feature off in the recent version? Is there any parameter that I could use in \bibliographystyle{plain} or when I use the cite package?

thanks a lot in advance

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

achim
Posts: 49
Joined: Wed Aug 05, 2009 2:29 pm

Bibliography Style »plain« without Page Numbers in Reference

Post by achim »

I wasn't aware of that change. Normally, I work with the ieeetr bibliography style. Just recently I wanted to add the page numbers to the references and link them to the page / or pages where it was cited. I found a way to ad this information at the end of the reference. This is done by adding the following in the preamble:

Code: Select all

\RequirePackage[hyperpageref]{backref}
   \renewcommand*{\backref}[1]{} 
   \renewcommand*{\backrefalt}[4]{
      \ifcase #1
         {}
      \or
         (p.~#2)
      \else
         (p.~#2)
      \fi} 
Maybe you can remove the page numbers in the plain style by just doing the following:

Code: Select all

\RequirePackage[hyperpageref]{backref}
   \renewcommand*{\backref}[1]{} 
   \renewcommand*{\backrefalt}[4]{
      \ifcase #1
         {}
      \or
         {}
      \else
         {}
      \fi} 
This is untested! Let us know if it worked!

Cheers
OS: Kubuntu
Distribution: TexLive
Editor: Kile
ougka
Posts: 43
Joined: Wed Jan 19, 2011 5:02 pm

Re: Bibliography Style »plain« without Page Numbers in Refer

Post by ougka »

thx for your reply achim.

I will test it and report back. However, I would prefer using an option in the bibliographystyle or somewhere else instead of editing it manually, because this might create problems in the different version of miktext I am having :-/

maybe downgrading to miktex 2.7 so that all my machines run the same version is a solution here...
Post Reply