%%
%% This is file `indextra-doc-demo.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% indextra.dtx  (with options: `demo')
%% 
%% This is a generated file.
%% 
%% Copyright (C) 2025 Alan J. Cain
%% 
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3c of this license or (at your option) any later
%% version. The latest version of this license is in:
%% 
%% http://www.latex-project.org/lppl.txt
%% 
%% and version 1.3c or later is part of all distributions of
%% LaTeX version 2008-05-04 or later.
%% 
\documentclass{article}

\usepackage[
paperwidth=105mm,
paperheight=100mm,
inner=5mm,
width=90mm,
height=90mm,
top=5mm,
nohead,
nofoot,
columnsep=5mm,
twocolumn,
]{geometry}

\usepackage{xcolor}
\definecolor{bg}{gray}{0.9}
\pagecolor{bg}

\parindent=1em

\usepackage{indextra}

\indextrasetup{
  before code={},
  after code={},
}

\newcommand\see[1]{\textit{see}~`#1'}
\newcommand\seealso[1]{\textit{see also}~`#1'}

\raggedright
\pagestyle{empty}

\begin{document}

\begin{theindextra}
  \indextrastyleversion{0.1}
  \indextraprocessortype{ist}

  \indextraentry{0}{neutron}{855, 862, 885--886}%
  \indextraentry{0}{\textit{New Astronomy} (Kepler)}{\see{\textit{Astronomia Nova}}{}}%
  \indextraentry{0}{Newtonian physics}{298, 376, 390, 589, 813, 830, 834, 842, 891, 894--895}%
  \indextraentry{0}{\textit{Nicomachean Ethics} (Aristotle)}{85}%
  \indextraentry{0}{Nim}{11}%
  \indextraentry{0}{nine-point circle}{584, 641, 662--663}%
  \indextraentry{0}{Nobel Prize}{}%
    \indextraentry{1}{chemistry}{495, 566, 815, 865, 937}%
    \indextraentry{1}{literature}{485}%
    \indextraentry{1}{peace}{865}%
    \indextraentry{1}{physics}{502, 598, 727, 834, 836, 838, 851, 853--854, 856, 865, 867, 877, 893, 903, 905, 918, 921}%
  \indextraentry{0}{nobility}{188, 240, 250, 464}%
  \indextraentry{0}{non-aesthetic property}{700, 715}%
  \indextraentry{0}{non-associative algebra}{848}%
  \indextraentry{0}{non-commutativity}{643}%
  \indextraentry{0}{non-constructive proof}{787}%
  \indextraentry{0}{non-determinism}{595}%
  \indextraentry{0}{non-euclidean geometry}{380, 401, 404--408, 436, 628, 643, 880, 896}%
  \indextraentry{0}{non-linearity}{882}%
  \indextraentry{0}{non-measurable set}{672}%
  \indextraentry{0}{non-sensory property}{695}%
  \indextraentry{0}{non-visual thinking}{633}%
  \indextraentry{0}{nonagon}{220}%

\end{theindextra}

\end{document}
