Generating index when compiling document

Herbert Voss Herbert.Voss at fu-berlin.de
Fri Dec 2 07:56:51 UTC 2022



Am 01.12.22 um 22:47 schrieb Rich Shepard:
> On Thu, 1 Dec 2022, Herbert Voss wrote:
>
>> After running texindy there must be *.ind file which will be input by
>> \printindex
>
>
>
> That's what I thought, but it's not there. Where should I look for the
> reason?

Did you insert the command »Insert -> Lists -> Index«  into your document?
Attached a simple example for creating the index with texindy.

Herbert
-------------- next part --------------
#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass apa
\begin_preamble
%% uncomment the following line to get this information
% below the tile
%\note{Draft of \today}

%% Some information on the journal. This will be
%% printed on the headline of the first page
%% Just uncomment wir a '%' if you don't want this
% Journal name
\journal{The Test Journal}
% volume, number, pages
\volume{Vol. 0 (2007), pp.~1--22}
% copyright notice
\ccoppy{\textcopyright\ The Author}
% Serial number or other reference
\copnum{ISSN XXX-XXXX-XXXX}

%% The usual ...
\acknowledgements{Author notes, acknowledgements, contact information go here \ldots}

\note{This is a note}
\end_preamble
\options jou
\use_default_options false
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures false
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command bibtex
\index_command texindy
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine natbib
\cite_engine_type authoryear
\biblio_style plainnat
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\use_minted 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Title
Title
\end_layout

\begin_layout RightHeader
Running Head for Journal and \SpecialChar LaTeX
 Mode
\end_layout

\begin_layout Author
Author's Name
\end_layout

\begin_layout Affiliation
Department of Psychology
\begin_inset Newline newline
\end_inset

Your university
\end_layout

\begin_layout Abstract
Stuff we did.
\end_layout

\begin_layout Standard
Article starts here.
 
\end_layout

\begin_layout Standard
Just to test
\end_layout

\begin_layout Section
Methods
\end_layout

\begin_layout Standard
Descibing our methods \SpecialChar ldots

\end_layout

\begin_layout Subsection
Participants
\end_layout

\begin_layout Standard
Involved
\begin_inset Index idx
status open

\begin_layout Plain Layout
Involved
\end_layout

\end_inset

 
\begin_inset Index idx
status open

\begin_layout Plain Layout
participants
\end_layout

\end_inset

participants \SpecialChar ldots

\end_layout

\begin_layout Subsection
Procedures
\end_layout

\begin_layout Standard
\SpecialChar ldots
 and procedures
\end_layout

\begin_layout Section
Results
\end_layout

\begin_layout Standard
And what came out \SpecialChar ldots

\end_layout

\begin_layout Subsection
Descriptives
\end_layout

\begin_layout Standard
This \SpecialChar ldots

\end_layout

\begin_layout Subsection
Analysis
\end_layout

\begin_layout Standard
\SpecialChar ldots
 and that.
\end_layout

\begin_layout Standard
The index starts on the next page
\end_layout

\begin_layout Standard
\begin_inset CommandInset index_print
LatexCommand printindex
type "idx"
name "Index"

\end_inset


\end_layout

\end_body
\end_document


More information about the lyx-users mailing list