Tag Info

Hot answers tagged

6

A penalty of 10000 forbids breaks. Set the penalties to smaller values: \documentclass[fontsize=12pt,paper=a4,]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage{biblatex} \addbibresource{bib.bib} \setcounter{biburlnumpenalty}{100} \setcounter{biburllcpenalty}{100} \setcounter{biburlucpenalty}{100} ...


6

Even if the urls are turned off at TOC, they may appear in other places like the headers. Hence it is better to use the optional argument of \section \documentclass{article} \usepackage[% unicode, colorlinks=true, linkcolor=blue, urlcolor=blue, citecolor=blue]% {hyperref} \begin{document} \tableofcontents ...


5

\href can be redefined locally: \begingroup \renewcommand*{\href}[2]{#2} \tableofcontents \endgroup


4

From the url documentation: You can allow some spacing around the breakable characters by assigning \Urlmuskip = 0mu plus 1mu (with mu units because of math mode). In your case it seems to don't suffice, so you can try with: \Urlmuskip=0mu plus 2mu MWE: \documentclass[a4paper,11pt]{book} \usepackage[T1]{fontenc} ...


3

This was done on a smaller scale for a map of Hawaii using a 20x20 grid. For the final version you set the opacity of the map to 1. I find using a checkerboard background helps when aligning links to the map. Using a \parbox instead of tikz \matrix is much faster. I stole the map from http://www.enchantedlearning.com/usa/states/hawaii/map.GIF and ...


3

\url comes from package url (loaded by hyperref). \urlstyle configures the font. The same font: \urlstyle{same} This means, no special font is set and the current font is used for the URL. Other pre-defined styles: \urlstyle{rm}: The font \rmfamily is used. \urlstyle{sf}: The font \sffamily is used. \urlstyle{tt}: This is the default: \ttfamily. See ...


2

A similar question was asked in How to make the `url` package respect fontspec font options (stylisticset) with LuaLaTeX, and egreg's answer with a following comment provide the solution for this as well. \documentclass{article} \usepackage{url} \urlstyle{same} \usepackage{fontspec} \setmainfont{Libertine Serif}[Numbers = {OldStyle, Proportional}] ...


1

You can display the URL on its own with \DeclareFieldFormat{url}{\url{#1}}


1

My suggestion would be against adjusting font sizes in favour of consistency. If line-breaking is a problem, consider following the suggestions in Forcing linebreaks in \url. However, you can change the font size of a URL locally using ... {\small \url{<URL>}} ... For making a global change to font sizes, use ...



Only top voted, non community-wiki answers of a minimum length are eligible