New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expand table links to include "Table", like "Clause" and "Annex" #2835
Comments
This turns out to be non-trivial.
in macros.tex, and then
in tables.tex (where we used to have \label). It seems the \tablelabel macro only works outside of \caption. Inside, the error message is
But outside, I get additional blank vertical space after the table caption (and before the actual table), which is undesirable. Any ideas? |
Ah, I found a solution: Adjust \tref and do not attempt to modify the stuff written into the .aux file.
|
@jensmaurer That's the solution I used for another project. Mine was slightly fancier in that it checks to see if the % Macro to simplify linking to chapters
\newcommand{\chaplink}[1]{%
% not using \autoref here because I don't want to fix the case of \chapterautorefname for individual languages --godbyk
\IfBeforeSubStringEmpty{ch:}{#1}{\hyperref[#1]{\@chapapp~}\ref{#1}\hyperref[#1]{: }\nameref{#1}}{\hyperref[ch:#1]{\@chapapp~}\ref{ch:#1}\hyperref[ch:#1]{: }\nameref{ch:#1}}%
}
% Macro to simplify linking to sections
\newcommand{\seclink}[1]{%
%\IfBeforeSubStringEmpty{sec:}{#1}{\autoref{#1}\hyperref[#1]{: }\nameref{#1}}{\autoref{sec:#1}\hyperref[sec:#1]{: }\nameref{sec:#1}}%
\IfBeforeSubStringEmpty{sec:}{#1}{\nameref{#1}}{\nameref{sec:#1}}%
} The result was that you could write either |
The text was updated successfully, but these errors were encountered: