Skip to content

Commit d12441e

Browse files
committed
[macros,regex] Pass an argument to the \xref macro
1 parent 85f4bb4 commit d12441e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

source/macros.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@
371371
\newcommand{\templalias}{\Fundesc{Alias template}}
372372

373373
%% Cross-reference
374-
\newcommand{\xref}{\textsc{See also:}\space}
375-
\newcommand{\xrefc}[1]{\xref{} \IsoC{}, #1}
374+
\newcommand{\xref}[1]{\textsc{See also:}\space #1}
375+
\newcommand{\xrefc}[1]{\xref{\IsoC{}, #1}}
376376
\newcommand{\termref}[3]{\textit{#2}{#3}\iref{#1}} % in Clause 3
377377

378378
%% Inline comma-separated parenthesized references

source/regex.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -686,23 +686,23 @@
686686
\tcode{ECMAScript} &
687687
Specifies that the grammar recognized by the regular expression engine
688688
shall be that used by ECMAScript in ECMA-262, as modified in~\ref{re.grammar}.
689-
\newline \xref ECMA-262 15.10
689+
\newline \xref{ECMA-262 15.10}
690690
\indextext{ECMAScript}%
691691
\indexlibrarymember{syntax_option_type}{ECMAScript}%
692692
\\ \rowsep
693693
%
694694
\tcode{basic} &
695695
Specifies that the grammar recognized by the regular expression engine
696696
shall be that used by basic regular expressions in POSIX.
697-
\newline \xref POSIX, Base Definitions and Headers, Section 9.3
697+
\newline \xref{POSIX, Base Definitions and Headers, Section 9.3}
698698
\indextext{POSIX!regular expressions}%
699699
\indexlibrarymember{syntax_option_type}{basic}%
700700
\\ \rowsep
701701
%
702702
\tcode{extended} &
703703
Specifies that the grammar recognized by the regular expression engine
704704
shall be that used by extended regular expressions in POSIX.
705-
\newline \xref POSIX, Base Definitions and Headers, Section 9.4
705+
\newline \xref{POSIX, Base Definitions and Headers, Section 9.4}
706706
\indextext{POSIX!extended regular expressions}%
707707
\indexlibrarymember{syntax_option_type}{extended}%
708708
\\ \rowsep
@@ -3997,5 +3997,5 @@
39973997
iterator range \range{first}{last} if
39983998
\tcode{traits_inst.isctype(c, traits_inst.lookup_classname(first, last, flags() \& icase))} is \tcode{true}.
39993999
\end{itemize}
4000-
\xref ECMA-262 15.10
4000+
\xref{ECMA-262 15.10}
40014001
\indextext{regular expression|)}

0 commit comments

Comments
 (0)