LaTeX forum ⇒ BibTeX, biblatex and biberRemove URL from Bibliography

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
magical marshmallow
Posts: 30
Joined: Mon Jan 21, 2013 11:37 am

Remove URL from Bibliography

Postby magical marshmallow » Tue Feb 18, 2014 5:16 pm

Hey,

I'm writing my thesis using the scrreprt document class and the IEEEtran bibliography style. When I compile this, I get my bibliography printed which is great. However, what I want to do is remove the text "[Online]. Available: http://www.some.url"

I've tried to achieve that by copying the "IEEEtran.bst" file and editing the section under FUNCTION{format.url} which is described here.

When I do this and run BibTeX, I get the following error about the .aux file.
  1. The style file: myIEEEtran.bst A level-1 auxilary file: library.aux pk is
  2. an illegal style file command---line 1 of file myIEEEtran.bst: pk :

Has anyone manages successfully to do this or have any ideas what to do?


Cheers

Tags:

hugovdberg
Posts: 133
Joined: Sat Feb 25, 2012 6:12 pm

Postby hugovdberg » Wed Feb 19, 2014 1:17 pm

Did you try to just copy everything from the original style (which you know to work) to your custom file to make sure there is no typo in your file. If that works your can then try to change the file again so it does not display the URL.
Ubuntu 13.10 + Tex Live 2013 + Texmaker / Windows 7 Pro + MikTex 2.9 + TexnicCenter / Android 4.3 + TexPortal + DroidEdit

magical marshmallow
Posts: 30
Joined: Mon Jan 21, 2013 11:37 am

Postby magical marshmallow » Thu Feb 20, 2014 1:45 pm

Hey Hugovdberg,

Thats exactly what I did - copied the file IEEEtran.bst and saved it as myIEEEtran.bst. Then deleted the pertinent section.

I also just copied and renamed the file to myIEEEtran.bst which worked fine, however; editing out the
  1. FUNCTION{format.url}
section of the file and running the BiBTeX caused the failure in my previous post.

Although running LaTeX will still produced a document, no bibliography is shown

hugovdberg
Posts: 133
Joined: Sat Feb 25, 2012 6:12 pm

Postby hugovdberg » Thu Feb 20, 2014 1:54 pm

Could you post your myIEEEtran.bst? Without code it is hard to guess what is wrong with it.
Ubuntu 13.10 + Tex Live 2013 + Texmaker / Windows 7 Pro + MikTex 2.9 + TexnicCenter / Android 4.3 + TexPortal + DroidEdit

magical marshmallow
Posts: 30
Joined: Mon Jan 21, 2013 11:37 am

Postby magical marshmallow » Thu Feb 20, 2014 2:04 pm

Sure can! Thanks for you time on this
Attachments
myIEEEtran.bst
(45.53 KiB) Downloaded 258 times

hugovdberg
Posts: 133
Joined: Sat Feb 25, 2012 6:12 pm

Postby hugovdberg » Thu Feb 20, 2014 2:34 pm

I'm having some trouble opening the file, and I guess so does BibTeX, do you know what file encoding is used for this file? What editor did you use to make the changes? From the small bits of text I can read it seems to be some kind of XML format. Did you try making the changes in a simple texteditor like notepad?
Ubuntu 13.10 + Tex Live 2013 + Texmaker / Windows 7 Pro + MikTex 2.9 + TexnicCenter / Android 4.3 + TexPortal + DroidEdit

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Thu Feb 20, 2014 3:14 pm

Hi,

  1. file myIEEEtran.bst
  2. myIEEEtran.bst: Microsoft Excel 2007+


Opening the file in a simple text editor (like hugo already suggested) would suffice.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

hugovdberg
Posts: 133
Joined: Sat Feb 25, 2012 6:12 pm

Postby hugovdberg » Thu Feb 20, 2014 3:19 pm

I suspected it was a Word document in disguise, but I never knew about the file command, thanks Johannes!
Last edited by hugovdberg on Thu Feb 20, 2014 4:16 pm, edited 1 time in total.
Ubuntu 13.10 + Tex Live 2013 + Texmaker / Windows 7 Pro + MikTex 2.9 + TexnicCenter / Android 4.3 + TexPortal + DroidEdit

magical marshmallow
Posts: 30
Joined: Mon Jan 21, 2013 11:37 am

Postby magical marshmallow » Thu Feb 20, 2014 4:11 pm

You're absolutely right Hugo, that was the problem. All sorted now! Thanks for you help

magical marshmallow
Posts: 30
Joined: Mon Jan 21, 2013 11:37 am

Postby magical marshmallow » Sun Apr 06, 2014 7:20 pm

Sorry to re-open the thread, but I've been having a problem with this on a different PC. I've copied the file from one PC to the other and I'm having the problem that LaTex can't open the file. Could some kind person have a look and let me know if I've the same coding issue as before?

The error text I'm getting is: "I couldn't open style myIEEEtran.bst--line 3 of References.aux : \bibstyle{myIEEEtran : } I'm skipping whatever remains of this command A level-1 auxiliary file: library.aux I found no style file ---when reading file Thesis.aux

Cheers
Attachments
myIEEEtran.bst
(57.79 KiB) Downloaded 329 times


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 2 guests