mirror of https://github.com/CGAL/cgal
\ccc and \ccRefIdfierPage now have an optional argument. Usage:
\ccc[Kernel::do_intersect]{void do_intersect(int a, int b)}
\ccRefIdfierPage[Kernel::do_intersect]{do_intersect}
The argument must be a label declared with \ccRefLabel, such as in:
\ccRefLabel{Kernel::do_intersect}
This commit is contained in:
parent
e68504513a
commit
89908df679
|
|
@ -425,7 +425,11 @@
|
|||
% | \ccStyle
|
||||
% +--------------------------------------------------------------------------
|
||||
\newcommand{\ccc}[1]{[cccbegin]\lciParseCC{\lciCCStyle 1}{#1}[cccend]} %% the 1 is a dummy to keep it
|
||||
%% from parsing spaces
|
||||
%% from parsing spaces
|
||||
\newcommand{\ccc@om}{\lciParseCC{\cccCont}{#2}{#1}}
|
||||
\newcommand{\cccCont}{\cccContX\lciCCParameter}
|
||||
\newcommand{\cccContX}[2]{\lcRawHtml{<i>}\ccRef[#X1]{ccRef_#2}\lcRawHtml{</i>}}
|
||||
|
||||
\newcommand{\ccStyle}{\ccc}
|
||||
|
||||
% Add a wrapper around \ccc so that one can chose the URL of the HTML link,
|
||||
|
|
|
|||
|
|
@ -1007,7 +1007,7 @@ Reference~Manual}%
|
|||
}
|
||||
|
||||
% abbreviations
|
||||
\newcommand{\ccc}{\ccStyle}
|
||||
\newcommand{\ccc}[2][]{\ccStyle{#2}}
|
||||
|
||||
% Add a wrapper around \ccc so that one can chose the URL of the HTML link,
|
||||
% instead of the automatic one.
|
||||
|
|
@ -1326,12 +1326,15 @@ Reference~Manual}%
|
|||
\newcommand{\ccRefPageNumAtMargin}{}
|
||||
\gdef\ccRefPageNumAtMargin{\ccTrue}
|
||||
\newcommand{\ccRefPageFill}{\dotfill}
|
||||
\newcommand{\ccRefIdfierPage}{\begingroup\ccCatcode\ccRefIdfierPageX}
|
||||
\def\ccRefIdfierPageX #1{\endgroup%
|
||||
\newcommand{\ccRefIdfierPage}[2][\ccRefIdfierPageDefault]{%
|
||||
\def\ccRefIdfierPageDefault{#2}%
|
||||
\begingroup\ccCatcode\ccRefIdfierPageX{#1}{#2}%
|
||||
}
|
||||
\def\ccRefIdfierPageX #1#2{\endgroup%
|
||||
\ifnum\ccRefPageNumAtMargin=\ccTrue
|
||||
\ccc{#1}\ccRefPageFill \ccRefPage{#1}%
|
||||
\ccc{#2}\ccRefPageFill \ccRefPage{#1}%
|
||||
\else
|
||||
\ccc{#1} (pg. \pageref{ccRef_#1})%
|
||||
\ccc{#2} (pg. \pageref{ccRef_#1})%
|
||||
\fi
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue