Tag Info

New answers tagged

1

An easy way to keep the link while hiding the URL is to set your URL in the corresponding entry in the .bib file like this: note = {\href{http://www.something.com}{View online}} instead of this url = {http://www.something.com} But it won't create a link over the whole entry. EDIT: minimal example .tex file: \documentclass[a4paper,11pt,oneside]{book} ...


3

The penalties are not used in a bibitem, but only in \biburlsetup which is done at the begin of the bibliography. If you want to change the settings for one bibitem, you should call the url setup again: \AtEveryBibitem{% \ifcategory{badbreaks} {\defcounter{biburllcpenalty}{9000}\biburlsetup} {}} Output with OP MWE (\def\mybiburlval{0}):


0

The easiest way is to simply escape it. \documentclass{article} \usepackage{hyperref} \begin{document} text\footnote{% \href{http://example.com/name\%27s-page}{http://example.com/name's-page}% } \end{document}


1

You can redefine \href command in the custom config file to include that attribute. Create file hello.cfg: \Preamble{xhtml} \begin{document} \makeatletter \renewcommand{\href}[2]{\bgroup\let~\H@tilde% \Link[#1 target="_blank"]{}{}% {#2}\egroup\EndLink}% \makeatother \EndPreamble this definition is modified macro from tex4ht sources. \let~\H@tilde is ...


0

I don't like how url (and doi) are typically formatted (I think the `URL' which appears before the url is superfluous), so I usually format doi and url in bibtex using the 'note' field, for example note={\url{http://stackexchange.com/}} This has the added bonus that the url (or doi) appears in the citation, even if the bibtex style ignores the url field ...


0

With the commands \href and \allowbreak I was able to get the desired output. Dotted line and line break. Unfortunately I have no idea how it would be possible to add the \allowbreaks automatically after every /. \documentclass{article} \usepackage[hidelinks]{hyperref} \usepackage{ulem} \makeatother \AtBeginDocument{ \let\oldurl=\url ...


1

Here it is: \documentclass[a4paper, 12pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[french,]{babel} \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @ARTICLE{Monnier_democ_1999, author = {Monnier, Raymonde}, title = {Démocratie et Révolution française}, journal = {Mots}, year = ...


2

There are a few things to note. Underscores, in general, must be escaped in order to show up properly outside of math mode. If this is surprising, you may well find reading at least the first parts of the The Com­pre­hen­sive LaTeX Sym­bol List worth your time. The beamer class loads hyperref by default, and, if you want to use a command like \url, then ...



Top 50 recent answers are included