6,802 reputation
22939
bio website
location
age
visits member for 4 years, 2 months
seen Dec 17 at 5:03

Oct
18
awarded  Nice Answer
Oct
10
awarded  Yearling
Sep
27
comment In the minted package, how do I enforce straight single quotes?
For anyone who comes across this later: the upquote package modifies all verbatim text (\verb and the verbatim environment) to render ' and ` as the upright versions, not the “smart” and . Since (as I understand it) minted and listings rely on fancyvrb, which itself calls out to verbatim text under the hood, this has the desired effect.
Sep
10
awarded  Nice Answer
Sep
9
revised How can I save shell output to a variable in LaTeX?
Fixed usage of `\immediate` and added some extra explanation of various things.
Aug
14
awarded  Nice Question
Aug
8
awarded  Nice Answer
Aug
5
awarded  Nice Question
May
25
awarded  Benefactor
May
25
comment Hyperref jumps to the wrong equation if the equation has a \tag and cleveref is used
This works, but is clearly sort of ugly. If there's a better solution, I'm all ears (really!), but this is what ended up in my document.
May
25
comment Hyperref jumps to the wrong equation if the equation has a \tag and cleveref is used
I awarded you the bounty because your solution is what gave me the ability to understand what was going on and come up with a half-assed fix; thank you! (I'd still love to see if/how this generalizes to a nicer solution, but my urgent deadline is past, so it's just academic at this point. And/or if I need it in the future.)
May
25
accepted Hyperref jumps to the wrong equation if the equation has a \tag and cleveref is used
May
22
answered Hyperref jumps to the wrong equation if the equation has a \tag and cleveref is used
May
18
awarded  Promoter
May
18
comment Hyperref jumps to the wrong equation if the equation has a \tag and cleveref is used
As you noticed, this only works for equation. Unfortunately, I only noticed this now too, which is my own fault but is unfortunate. I've updated the question to reflect my actual needs (I need correct links to most of the possible environments), and I've added a bounty. If you have the solution and/or the time, I'd love to have it... :-)
May
18
comment Hyperref jumps to the wrong equation if the equation has a \tag and cleveref is used
I realized that what I was asking for was insufficient, so I've extended the question and added a bounty.
May
18
revised Hyperref jumps to the wrong equation if the equation has a \tag and cleveref is used
Extend the problem.
May
7
comment Hyperref jumps to the wrong equation if the equation has a \tag and cleveref is used
This seems to work—thanks! A question, though: why are you patching \tag as well as \equation? Intuitively, it seems like you should only need to patch \equation to maintain this new unique \theHequation; and if I comment out the patch to \tag, everything seems to still work at a quick glance.
May
7
comment Hyperref jumps to the wrong equation if the equation has a \tag and cleveref is used
I just noticed that the hyperref README suggests replacing equation by gather; that doesn't fix the behavior of the links, but I added information about what happens when I do that.
May
7
revised Hyperref jumps to the wrong equation if the equation has a \tag and cleveref is used
Added information about replacing `equation` with `gather`, as per hyperref's README.