Tag Info

Hot answers tagged

5

A minimal example reproducing the error is: \documentclass{article} \usepackage{hyperref} \begin{document} \footnote{\href{http://whatever}} \end{document} The solution: hyperref's \href has two arguments: \href{URL}{text}. Either use both or use \url{URL}: \documentclass{article} \usepackage{hyperref} \begin{document} ...


3

You can achieve it by testing if doi is empty inside the function format.url. Replace your format.url by the following: FUNCTION {format.url} { doi empty$ { url duplicate$ empty$ { pop$ "" } { "\urlprefix\url{" swap$ * "}" * } if$ } { "" } if$ }


2

If I change the position of the \bf directive, I seem to get your desired result: \setupinteraction[state=start,style=normal] \starttext {\goto{\bf Link 1}[url(http://www.example.com)]} \goto{Link 2}[url(http://www.example2.com)] \stoptext However, I am uncertain if there might be side effects to this.


2

You can define a new interaction and style it differently. For example: \setupinteraction[state=start,style=normal] \defineinteraction[bold][state=start,style=bold] \starttext {\setinteraction[bold] \goto{Link 1}[url(http://www.example.com)]} \goto{Link 2}[url(http://www.example2.com)] \stoptext If you want the interaction to follow the style of the ...


1

This is how scrartcl does by default: The default configuration of the KOMA-Script classes is: \deffootnote[1em]{1.5em}{1em} {\textsuperscript{\thefootnotemark}} (section 3.14 of the manual) Here's a minimal example: \documentclass[ final, numbers=noenddot, a4paper, 12pt, oneside ]{scrartcl} ...


1

In my point of view, the external references should be made with xr-hyper and \href{filename#ext-label}{some-text}, where some text is the same as the filename ('url'). Using a common style file for all (sub)documents reduces the typing and in my point of view the \mychoose command is not needed here. \documentclass{article} \usepackage{filecontents} ...


1

None of the answers helped me out. My long url was placed in a footnote. After searching around I found a working solution here. In my preamble: \usepackage{hyperref} \def\UrlBreaks{\do\/\do-} The last line instructs the url-package which is loaded with the hyperref-package to additionally break at the characters / and -. The option breaklinks=true in ...



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