Skip to content

Commit de532c5

Browse files
committed
[macros] Create \tref and \fref commands if they doesn't exist yet.
The existence of \tref and \fref seems to have changed as package versions have been evolving.
1 parent d6fcada commit de532c5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

source/macros.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,10 @@
406406
\ExplSyntaxOff
407407

408408
%% Inline non-parenthesized table reference (override memoir's \tref)
409+
\providecommand{\tref}{}
409410
\renewcommand{\tref}[1]{\hyperref[tab:#1]{\tablerefname \nolinebreak[3] \ref*{tab:#1}}}
410411
%% Inline non-parenthesized figure reference (override memoir's \fref)
412+
\providecommand{\fref}{}
411413
\renewcommand{\fref}[1]{\hyperref[fig:#1]{\figurerefname \nolinebreak[3] \ref*{fig:#1}}}
412414

413415
%% NTBS, etc.

0 commit comments

Comments
 (0)