General ⇒ How to (slightly) modify autoref feature of hyperref package
-
farazhussain
- Posts: 2
- Joined: Fri Mar 13, 2009 6:18 pm
How to (slightly) modify autoref feature of hyperref package
In my document, when referring to a certain section, I'm currently
using \ref and writing "§5.3" instead of "Section 5.3". Now I want to
use autoref to get the link on the entire "§5.3" and not just on
"5.3".
Therefore, I wrote the following command:
\def\sectionautorefname{\S{}}
It works good, except for one thing: it inserts a space after the
section symbol and before the section number. So the reference shown
above looks like "§ 5.3". I also tried "\def\sectionautorefname{\S\ }"
but that also doesn't work.
How do I get rid of this unwanted single space character? Thanks in
advance.
Best Regards,
Faraz Hussain
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: How to (slightly) modify autoref feature of hyperref package
\def\sectionautorefname{\S\hspace*{-2pt}}
try with different values of pt, I don´t know extactly how long is a single space in your latex document.
-
farazhussain
- Posts: 2
- Joined: Fri Mar 13, 2009 6:18 pm
Re: How to (slightly) modify autoref feature of hyperref package
http://groups.google.com/group/comp.tex ... e0afb9b677