Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Create index for macro names #7297

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
Loading
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions 9 source/back.tex
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,15 @@
\printindex[conceptindex]
}

\clearpage
\renewcommand{\preindexhook}{The bold page number for each entry is the page
where the macro is defined.
Other page numbers refer to pages where the macro is mentioned in the general text.\\}
{
\raggedright
\printindex[macroindex]
}

\clearpage
\renewcommand{\preindexhook}{The entries in this index are rough descriptions; exact
specifications are at the indicated page in the general text.\\}
Expand Down
8 changes: 8 additions & 0 deletions 8 source/macros.tex
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
\newcommand{\indexhdr}[1]{\index[headerindex]{\idxhdr{#1}}}
\newcommand{\indexconcept}[1]{\index[conceptindex]{#1}}
\newcommand{\indexgram}[1]{\index[grammarindex]{#1}}
\newcommand{\indexmacro}[1]{\index[macroindex]{#1}}

% Collation helper: When building an index key, replace all macro definitions
% in the key argument with a no-op for purposes of collation.
Expand Down Expand Up @@ -192,6 +193,7 @@
\newcommand{\idxcode}[1]{#1@\CodeStylex{#1}}
\newcommand{\idxconcept}[1]{#1@\CodeStylex{#1}}
\newcommand{\idxexposconcept}[1]{#1@\CodeStylex{\placeholder{#1}}}
\newcommand{\idxmacro}[1]{#1@\CodeStylex{#1}}
\newcommand{\idxhdr}[1]{#1@\CodeStylex{<#1>}}
\newcommand{\idxgram}[1]{#1@\gterm{#1}}
\newcommand{\idxterm}[1]{#1@\term{#1}}
Expand Down Expand Up @@ -504,6 +506,12 @@
\newcommand{\defexposconcept}[1]{\ecname{#1}\indexconcept{\idxexposconcept{#1}|idxbfpage}} % macro length: 16
\newcommand{\defexposconceptnc}[1]{\ecname{#1}\indexconcept{\idxexposconcept{#1}|idxbfpage}\itcorr[-1]} % macro length: 18

%% Macros
\newcommand{\macroname}[1]{\tcode{#1}}
\newcommand{\stdmacrox}[2]{\macroname{#1}\indexmacro{\idxmacro{#2}}}
\newcommand{\stdmacro}[1]{\stdmacrox{#1}{#1}}
\newcommand{\defstdmacro}[1]{\macroname{#1}\indexmacro{\idxmacro{#1}}\indexmacro{\idxmacro{#1}|idxbfpage}}

%% Ranges
\newcommand{\Range}[4]{\ensuremath{#1}\tcode{#3}\ensuremath{,}\,\penalty2000{}\tcode{#4}\ensuremath{#2}}
\newcommand{\crange}[2]{\Range{[}{]}{#1}{#2}}
Expand Down
1 change: 1 addition & 0 deletions 1 source/std.tex
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
\makeindex[name=headerindex,title=Index of library headers]
\makeindex[name=libraryindex,options=-s libraryindex.ist,title=Index of library names]
\makeindex[name=conceptindex,title=Index of library concepts]
\makeindex[name=macroindex,title=Index of macro names]
\makeindex[name=impldefindex,title=Index of implementation-defined behavior]
\makeglossary[xrefindex]
\makeglossary[xrefdelta]
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.