New answers tagged

0 votes

Hyperlink occurs empty space also for Centered text

This is highly experimental and might change, but you can try a package I'm working on for this: Download this file and save it as lua-links.sty next to your document. Then load the lua-links package ...
user avatar
5 votes

Hyperlink occurs empty space also for Centered text

If you want to avoid that you must break the line manually and use a \href on every one. Personally I would avoid such a large link area completely, it is imho quite a nuisance if too large parts of a ...
user avatar
0 votes

Nested Footnotes + Hyperref

If you change the \ref in Werner's answer to \getrefnumber from the refcount package it works with hyperref (if hyperfootnote=false isn't passed there are warnings about footnotemark links that lead ...
user avatar
  • 1,299
0 votes

Default value of hyperref's pdfborderstyle setting

Use \hypersetup{pdfborderstyle={/W 1}} from the point after which you want to have the default boxed PDF hyperlinks. The W stands for width.
user avatar
  • 263
0 votes
Accepted

Named boxes with links compatibility

I've got this answer from Alexander Grahn, so I'm sharing it here. Alexander's Gitlab \documentclass{article} \usepackage{hyperref} \newcommand\namedsbox[2]{% \ifcsname#1\endcsname\else% \...
user avatar
0 votes
Accepted

How to add a downloadable .zip link to Overleaf using documentclass Report?

Welcome to TeX SE! I would recommend uploading your *.zip file to a cloud storage somewhere (e.g. Dropbox, Google Drive, etc.) and then hyperlink it using \href, i.e., \documentclass[11pt,a4]{report} \...
user avatar
2 votes

How can I align 4 equations in a 2 by 2 layout while having them separately numbered?

You can do this with two minipages, each with its own align environment. I made the left minipage 40% of \textwidth and the right 60%, but you can adjust that how you like. For example, with .5\...
user avatar
  • 19.8k
2 votes
Accepted

\pdfstringdefDisableCommands with starred and non starred commands

You have to redefine the command using the same signature as the original command. Since s m is a valid signature for an expandable command, you can just redefine using \...
user avatar
6 votes
Accepted

Unexpected table/figure reference

First, \autoref does not use \@currentlabelname but rather uses \@currentHref to get the counter name. However, every caption in a figure uses the same \@currentHref, which is set at the top of the ...
user avatar
  • 69.4k
0 votes

Hyperref from document to the page of Table of Abbreviations

I had a similar problem and was using \usepackage[toc]{glossaries}. I just added \label{chap:custom_name} to the first glossary entry and referred to it via The abbreviations can be found in chapter \...
user avatar
0 votes

hash-tag in \href causes error

I had an URL with two # signs in it (a matrix server link). The second one was ignored even with escaping. What worked for me: replace the second occurrence with its urlencoding value: \href{https://...
user avatar
  • 1,193
1 vote
Accepted

Autonum wrong behaviour

As the user guide of the autonum package explains, you need to load the hyperref package with the option hypertexnames=false. I would therefore change \usepackage[colorlinks, breaklinks, citecolor=...
user avatar
  • 435k
1 vote
Accepted

Hyperlink prints OK but jumps to wrong target

Looking at the aux file output, I have a suspicion that you are running into the same (or at least very similar) bug that I diagnosed in this previous answer. While a patch has been checked into the ...
user avatar
  • 19.7k
1 vote
Accepted

problem using tex4ht with xr-hyper when other documents are in separate folders

It is possible to add the subdirectory support with these .4ht files. First, we need to save directory for the external file in a macro for a later retrieval. We can do that in xrhyper-hooks.4ht: % ...
user avatar
  • 44.8k
0 votes

Referring to subfigures without using sub caption or similar packages

The subcaption package documentation contains a section "Captions inside sub-figures" regarding this topic. Particularly the sub-sections "Referencing sub-figures without sub-captions&...
user avatar
0 votes

Referring to subfigures without using sub caption or similar packages

I use \subfig, \subcaption packages when I have multiple subfigures in my write-up. I'm not sure if this is what you're looking for, but please see below my approach. I used the latex .svg.png file as ...
user avatar
  • 147
1 vote

Knowledge package coloring

Another solution, maybe more precise in its scope, is to use a modified version of the \cmdkl macro which deactivates link colors: \newcommand\uncolor[1]{\begingroup\hypersetup{allcolors=.}#1\endgroup}...
user avatar
1 vote

PDF Table of Contents Metadata

You're referring to the TOC bookmarks as displayed in some pdf viewers like Acrobat. I believe that by default arXiv doesn't build pdf with the bookmarks option. So I recommend that you add: \...
user avatar
  • 673
3 votes
Accepted

Knowledge package coloring

You can try \everydisplay{\hypersetup{allcolors=.}} and \everymath{\hypersetup{allcolors=.}}. Then hyperref will pick up the current color for the links. (Completly disabling the coloring doesn't ...
user avatar
3 votes
Accepted

Identify the previous question number

\documentclass[10pt,addpoints]{exam} \newcommand{\lastquestion}{% % The class exam writes the definition of \exam@numquestions % in the .aux file. In the first LaTeX run, \numquestions sees ...
user avatar
  • 2,390

Top 50 recent answers are included