Open matsievskiysv opened 3 years ago
Configuration should look something like this:
% Equation
\crefformat{equation}{Eq.~(#2#1#3)} % single reference with name
\Crefformat{equation}{Equation~(#2#1#3)} % single reference with name
\labelcrefformat{equation}{(#2#1#3)} % single reference without name
\crefrangeformat{equation}{Eqs.~(#3#1#4) --~(#5#2#6)} % reference range with name
\Crefrangeformat{equation}{Equations~(#3#1#4) --~(#5#2#6)} % reference range with name
\labelcrefrangeformat{equation}{(#3#1#4) --~(#5#2#6)} % reference range without name
\crefmultiformat{equation}{Eqs.~(#2#1#3)}{ and~(#2#1#3)}{, (#2#1#3)}{ and~(#2#1#3)} % reference list with name
\Crefmultiformat{equation}{Equations~(#2#1#3)}{ and~(#2#1#3)}{, (#2#1#3)}{ and~(#2#1#3)} % reference list with name
\labelcrefmultiformat{equation}{(#2#1#3)}{ and~(#2#1#3)}{, (#2#1#3)}{ and~(#2#1#3)} % reference list without name
% Figure
\crefformat{figure}{Fig.~#2#1#3} % single reference with name
\Crefformat{figure}{Figure~#2#1#3} % single reference with name
\labelcrefformat{figure}{#2#1#3} % single reference without name
\crefrangeformat{figure}{Fig.~#3#1#4 --~#5#2#6} % reference range with name
\Crefrangeformat{figure}{Figures~#3#1#4 --~#5#2#6} % reference range with name
\labelcrefrangeformat{figure}{#3#1#4 --~#5#2#6} % reference range without name
\crefmultiformat{figure}{Fig.~#2#1#3}{ and~#2#1#3}{, #2#1#3}{ and~#2#1#3} % reference list with name
\Crefmultiformat{figure}{Figures~#2#1#3}{ and~#2#1#3}{, #2#1#3}{ and~#2#1#3} % reference list with name
\labelcrefmultiformat{figure}{#2#1#3}{ and~#2#1#3}{, #2#1#3}{ and~#2#1#3} % reference list without name
% Table
\crefformat{table}{Table~#2#1#3} % single reference with name
\Crefformat{table}{Table~#2#1#3} % single reference with name
\labelcrefformat{table}{#2#1#3} % single reference without name
\crefrangeformat{table}{Table~#3#1#4 --~#5#2#6} % reference range with name
\Crefrangeformat{table}{Table~#3#1#4 --~#5#2#6} % reference range with name
\labelcrefrangeformat{table}{#3#1#4 --~#5#2#6} % reference range without name
\crefmultiformat{table}{Tables~#2#1#3}{ and~#2#1#3}{, #2#1#3}{ and~#2#1#3} % reference list with name
\Crefmultiformat{table}{Tables~#2#1#3}{ and~#2#1#3}{, #2#1#3}{ and~#2#1#3} % reference list with name
\labelcrefmultiformat{table}{#2#1#3}{ and~#2#1#3}{, #2#1#3}{ and~#2#1#3} % reference list without name
Dear @matsievskiysv
sorry for the delayed response, for the next rework I will take a closer look into cleveref
and your suggestions. Thank you
Hi Mxwell,
jacow class does not have numbered sections, therefore \ref already delivers nothing. You will see only Sec , ?? Sec , ?? Eqn 1, eq. (1)
On 04/09/2023 19:42, Mxwell wrote:
Also, the JACoW template seems to suffer the same issue as AASJournals/AASTeX60#69 https://github.com/AASJournals/AASTeX60/issues/69
— Reply to this email directly, view it on GitHub https://github.com/JACoW-org/JACoW_Templates/issues/1#issuecomment-1705573035, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADIDWMPHE6GMDRVXKW43TD3XYYHGZANCNFSM5EET3HGA. You are receiving this because you commented.Message ID: @.***>
Hi @vrws , yes, I had that realization shortly after I posted my comment and deleted it, I guess you still got a notification email.
This is a JACoW template section dedicated to the use of references:
It's has a lot of rules which may be hard to follow. IMHO it would be better to use
cleveref
package and to enforce reference style in template itself. Withcleveref
all the references will be done by using either\cref
(in the middle of the sentence) or\Cref
(in the beginning of the sentence) commands. Customization of the reference style is quite flexible. Here's the setup example from https://github.com/AndreyAkinshin/Russian-Phd-LaTeX-Dissertation-Template/blob/master/common/styles.texIf you decide to use
cleveref
, you might want to include a following code snippet to allow using spaces between references in\cref
as described in https://tex.stackexchange.com/a/340502/104425.