-
Notifications
You must be signed in to change notification settings - Fork 77
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
do not set prefix defaults with cleveref #189
Comments
This is a tricky subject. On one hand, I get where you're coming from. On the other hand, the behaviour you're suggesting can be very confusing when outputting to multiple formats. FWIW, custom LaTeX templates allow you to modify the default behaviour however you wish. |
I was going to post a similar issue when I found this one.
which overwrites my crefname customization. Is it better to put those crefname setting within the
|
@zwz, Pandoc's LaTeX template ( $for(header-includes)$
$header-includes$
$endfor$ This is specifically what pandoc-crossref uses to add commands to the preamble. So the first and easiest workaround is to just remove this, and add your own definitions instead. You could also just add your own package customization after this code, inside $for(header-includes)$
$header-includes$
$endfor$
% Customize cleveref prefixes
\AtBeginDocument{%
\crefname{figure}{...}{...}
...
} |
Or another way to use cref, which is what I am doing, is to set Maybe you can make a note in the document of pandoc-crossref. |
Is there the possibility to omit all the prefix defaults and use |
@LukasCBossert if you're using a custom pandoc LaTeX template, just remove this from the template:
|
Currently, prefix defaults like
fig.
will be set even if cleveref is in use (cref: true
). If the language is set to a language which is also supported by cleveref (i. e. german;lang: de-DE locale: de-DE
), figure labels get translated by cleveref as expected (in this case intoAbbildung #:
) but references are prefixed withfig.
instead ofAbb.
because the prefixes were overwritten by pandoc-crossref.I suggest to change crefnames only if set in YAML or variable or differ from default.
The text was updated successfully, but these errors were encountered: