Latex Page Break In Bibliography

Hello fellows,

today I would like to share some insights on URLs in a bibtex file and how to do a line brake for long URLs so they fit on the page.

Ok, a quick word why that is interesting:

I am currently writing my Master’s Thesis and had some troubles with my bibliography, here a screenshot so you can see what I mean:

long URLs do not properly wrap at line end

Here is what I did to get this:

\usepackage{url} \usepackage{breakurl} \usepackage[breaklinks]{hyperref}

and this is the bibtex entry:

@misc{GartnerNFC, author = "Clark, Sarah", howpublished = "nfcworld.com", month = aug, note = "Cited July 3rd 2012", title = "{Gartner’s Hype Cycle places NFC at ‘Peak of Inflated Expectations’}", url = "http://www.nfcworld.com/2011/08/11/39008/gartner-hype-cycle-places-nfc-at-peak-of-inflated-expectations", year = "2011" }

So, as you can see in the screenshot above, the URL does not get broken. So how to fix that?

After reading this entries (https://groups.google.com/group/comp.text.tex/browse_thread/thread/b2ff42fe61a0ee3a), I checked the following file and found the characters where URLs are allowed to be wrapped to a new line (search for “\UrlBreaks”): http://www.tex.ac.uk/tex-archive/support/ltx2x/url.sty

Since in my case there are a lot of “-” in the URL, I want latex to use them too to break lines. That can be done with this command, right below of “\usepackage{url}” (so actually I add “/” and “-“):

\def\UrlBreaks{\do\/\do-}

Here is how the result looks like:

URLs now get wrapped at line end

I hope this helps you.

Cheers
norbert

Like this:

LikeLoading...

Related

This entry was posted in Latex, Master Thesis and tagged bibliograhy, Bibtex, break url, howto, LaTeX, long url, url in bibliography, url.sty. Bookmark the permalink.

You are writing a manuscript that contains several chapters. You would like to display a reference list at the end of each chapter but not at the end of the manuscript. The latest EndNote version can help you accomplish this task. You just need to do two things:

From the EndNote Library: modify the style

  1. Go to Edit -->Output Styles --> Open Style Manager and choose the style you are using. For example, APA 6th
  2. Click Edit and then click Sections from the lefthand panel when the style window opens. This allows you to create multiple reference list for a single Word document
  3. Check “Create a bibliography for each section”
  4. Save the style as a modified version of  APA 6th , such as APA 6th Bibliography

On the Word document: insert section break to each chapter and apply the modified style

For Mac Users (Word 2011)

  1. Separate each chapter by going to Insert --> Section Break
  2. Go to Tools --> EndNote --> Configure Bibliography making sure the style is set to the one you just modified, such as APA 6th Bibliography
  3. Word document will automatically update the references and display them after each chapter.

For PC Users (Word 2010)

  1. Separate each chapter by going to Page Layout  --> Break -->Next Page under Section Breaks
  2. Click the EndNote tab on Word
  3. Click the arrow at the right corner of Bibliography 
  4. Configure Bibliography window opens making sure the style is set to the one you just modified, such as APA 6th Bibliography
  5. Word document will automatically update the references and display them after each chapter.

0 comments

Leave a Reply

Your email address will not be published. Required fields are marked *