Text FormattingHyperref boxes appear in hanging indentation of footnote

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
cortes
Posts: 2
Joined: Tue Feb 22, 2011 12:10 pm

Hyperref boxes appear in hanging indentation of footnote

Post by cortes »

Hi,

for my thesis I use memoir for the layout.
I use

Code: Select all

\setlength{\footmarkwidth}{1.8em}
\setlength{\footmarksep}{0cm} 
\footmarkstyle{{#1}\hfill}
this code to create a hanging indentation for my footnotes.

When I cite a website, I have to underline the urls. In order to make urls wrap and have them underlined at the same time, I use hyperref with the following options:

Code: Select all

\usepackage[colorlinks=false,pdfborderstyle={/S/U/W 1},pdfborder=0 0 1,urlbordercolor={0 0 0},linkbordercolor={1 1 1},breaklinks]{hyperref}
However, the underline (actually a hyperref box) goes into the indentation as well, which is pretty ugly. I have included an image of this. Does anyone knows how to work around this?

Many thanks in advance!
hyperref_boxes_hanging_indent_footnotes.jpg
hyperref_boxes_hanging_indent_footnotes.jpg (61.01 KiB) Viewed 2673 times
Last edited by cortes on Mon Mar 07, 2011 10:25 pm, edited 1 time in total.

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

west.logan
Posts: 87
Joined: Tue Sep 14, 2010 6:58 pm

Re: Hyperref boxes appear in hanging indentation of footnote

Post by west.logan »

Do you have a MWE?

I think that my approach would be simply to use \textul{HYPERLINK} in the footnotes.
cortes
Posts: 2
Joined: Tue Feb 22, 2011 12:10 pm

Hyperref boxes appear in hanging indentation of footnote

Post by cortes »

Code: Select all

\usepackage[bottom,hang]{footmisc}
did solve the problem. Still don't know how to create the same effect in memoir though!
Post Reply