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

Post by magical marshmallow »

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.

Code: Select all

The style file: myIEEEtran.bst A level-1 auxilary file: library.aux pk is
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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
hugovdberg
Posts: 133
Joined: Sat Feb 25, 2012 6:12 pm

Re: Remove URL from Bibliography

Post by hugovdberg »

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

Remove URL from Bibliography

Post by magical marshmallow »

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

Code: Select all

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

Re: Remove URL from Bibliography

Post by hugovdberg »

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

Re: Remove URL from Bibliography

Post by magical marshmallow »

Sure can! Thanks for you time on this
Attachments
myIEEEtran.bst
(45.53 KiB) Downloaded 633 times
hugovdberg
Posts: 133
Joined: Sat Feb 25, 2012 6:12 pm

Re: Remove URL from Bibliography

Post by hugovdberg »

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: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Remove URL from Bibliography

Post by Johannes_B »

Hi,

Code: Select all

file myIEEEtran.bst 
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

Remove URL from Bibliography

Post by hugovdberg »

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

Re: Remove URL from Bibliography

Post by magical marshmallow »

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

Re: Remove URL from Bibliography

Post by magical marshmallow »

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 673 times
Post Reply