Skip to content
Snippets Groups Projects
Commit e138826b authored by Lorenzo Ferron's avatar Lorenzo Ferron
Browse files

Aggiunta opzione nolabel a \lrefrange.

parent cb18d2de
No related branches found
No related tags found
No related merge requests found
%! Author = lorenzo
%! Date = 22/08/22
%! Date = 08/09/22
\newcommand{\lrefrange}[2]{{\csname cref@line@name@plural\endcsname}~\hyperlink{#1}{\ref*{#1}}--\hyperlink{#2}{\ref*{#2}}}
\ExplSyntaxOn
\cs_new_eq:NN \strcompare \str_if_eq:eeTF
\ExplSyntaxOff
\newcommand{\lrefrange}[3][label]{\strcompare{label}{#1}{{\csname cref@line@name@plural\endcsname}~}{\strcompare{nolabel}{#1}{}{\GenericError{}{Error: Invalid option!}{}{}}}\hyperlink{#2}{\ref*{#2}}--\hyperlink{#3}{\ref*{#3}}}
%% Use ONLY \lref NOT \lreflst
\ExplSyntaxOn
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment