Re: Generating index when compiling document

2022-12-03 Thread Dr Eberhard W Lisse
Running an 8 yrar old Linux. Hmm.

el

On 02/12/2022 01:01, Rich Shepard wrote:
> On Fri, 2 Dec 2022, Udicoudco wrote:
> 
>> Which latex distribution did you install and which operating system are
>> you working on?
> 
> Udi,
> 
> Slackware-14.2/x86_64 and texlive-2021.210418-x86_64-1slint.
> 
> Rich

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-03 Thread Dr Eberhard W Lisse
WHat I am seeing is that texindy is not (properly) installed. I would
figure out to which slackware package texindy belongs (probably texlive)
and reinstall that.

el

On 02/12/2022 16:33, Rich Shepard wrote:
> On Fri, 2 Dec 2022, Herbert Voss wrote:
> 
>> Rich, export your document to LaTeX, go into the directory of
>> the exported code and then run
>> pdflatex 
>> texindy file.idx
>> then you'll see what happens. If you know the temporary directory
>> of the LyX files, you can also run texindy in that directory with the
>> current filename.
> 
> Herbert,
> 
> Yesterday I ran texindy on the *.idx file in /tmp; today produced the same
> result.
> 
> Exported document to latex (pdflatex).
> $ pdflatex biota-to-set-wq-standards.tex
> $ texindy biota-to-set-wq-standards.idx
> texindy: not a symlink as required for TeX Live at /usr/bin/texindy line
> 414.
> 
> I posted the relevant portion of that script yesterday. Can provide it
> again
> if needed.
> 
> I'll see if the Slackware-15.0 texlive has the texindy perl script and will
> use that to replace 2021-04-18 version in /usr/bin/.
> 
> Thanks,
> 
> Rich


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-03 Thread Rich Shepard

On Sat, 3 Dec 2022, Herbert Voss wrote:


/usr/local/bin   makes more sense to me


Herbert,

Slackware puts executables in /usr/bin.


Are you really sure, that there is no other copy in your system?
which -a texindy


One copy only. But the texindy.pl installed had 544 perms. When I changed
those to 755 texindy worked as designed.

Thanks,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document [RESOLVED]

2022-12-03 Thread Herbert Voss




Am 03.12.22 um 01:08 schrieb Rich Shepard:

On Fri, 2 Dec 2022, Rich Shepard wrote:


Okay. Found the problem, but the solution doesn't work.


Well, part of the problem.

I had texindy.pl in the wrong directory and it had perms 544. Moving 
it to

/usr/share/texmf-dist-scripts/xindy/ and changing the perms to 755 got it
working.

I now have the .ind file for pdflatex.



that's fine ... so forget my last reply.

HErbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-02 Thread Herbert Voss



Am 02.12.22 um 20:47 schrieb Rich Shepard:

On Fri, 2 Dec 2022, Rich Shepard wrote:


$ texindy biota-to-set-wq-standards.idx
texindy: not a symlink as required for TeX Live at /usr/bin/texindy 
line 414.


Okay. Found the problem, but the solution doesn't work.

I copied texindy.pl into /usr/share/texmf-dist/scripts/ where its 
perms are

755.

In /usr/bin/ I deleted texindy and created a soft-link to
/usr/share/texmf-dist/scripts/texindy.pl. The /usr/bin/ version has 
perms:


/usr/local/bin   makes more sense to me


# ll texindy
lrwxrwxrwx 1 root root 40 Dec  2 11:41 texindy -> 
/usr/share/texmf-dist/scripts/texindy.pl


When I try to run the script (as a user) the response is:
$ texindy biota-to-set-wq-standards.idx
-bash: /usr/bin/texindy: Permission denied

This puzzles me as /usr/bin/texindy is a link with 777 perms.


Are you really sure, that there is no other copy in your system?

which -a texindy

what happens if you run

/usr/share/texmf-dist/scripts/texindy.pl biota-to-set-wq-standards.idx

and

/usr/bin/texindy biota-to-set-wq-standards.idx

However, official reinstalling should fix the permission problem:

sudo apt-get --reinstall install xindy

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document [RESOLVED]

2022-12-02 Thread Rich Shepard

On Fri, 2 Dec 2022, Rich Shepard wrote:


Okay. Found the problem, but the solution doesn't work.


Well, part of the problem.

I had texindy.pl in the wrong directory and it had perms 544. Moving it to
/usr/share/texmf-dist-scripts/xindy/ and changing the perms to 755 got it
working.

I now have the .ind file for pdflatex.

Thanks all!

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-02 Thread Rich Shepard

On Fri, 2 Dec 2022, Rich Shepard wrote:


$ texindy biota-to-set-wq-standards.idx
texindy: not a symlink as required for TeX Live at /usr/bin/texindy line 414.


Okay. Found the problem, but the solution doesn't work.

I copied texindy.pl into /usr/share/texmf-dist/scripts/ where its perms are
755.

In /usr/bin/ I deleted texindy and created a soft-link to
/usr/share/texmf-dist/scripts/texindy.pl. The /usr/bin/ version has perms:
# ll texindy
lrwxrwxrwx 1 root root 40 Dec  2 11:41 texindy -> 
/usr/share/texmf-dist/scripts/texindy.pl

When I try to run the script (as a user) the response is:
$ texindy biota-to-set-wq-standards.idx
-bash: /usr/bin/texindy: Permission denied

This puzzles me as /usr/bin/texindy is a link with 777 perms.

What have I done incorrectly here?

Rich

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-02 Thread Rich Shepard

On Fri, 2 Dec 2022, Rich Shepard wrote:


They're perl scripts and don't need the package manager; I'll just have
root copy them (without the .pl extension) to /usr/bin/.


I copied xindy.pl and texindy.pl to /usr/share/texmf-dist/scripts/xindy/.
And, the two files, minux the .pl extension, to /usr/bin/.

The same 'not a symlink' error repeats:
$ texindy biota-to-set-wq-standards.idx
texindy: not a symlink as required for TeX Live at /usr/bin/texindy line 414.

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-02 Thread Rich Shepard

On Fri, 2 Dec 2022, Herbert Voss wrote:


it is part of the xindy package. Attached both scripts. You should also be
able to reinstall xindy with your package manager.


Hrbert,

Thank you.

They're perl scripts and don't need the package manager; I'll just have root
copy them (without the .pl extension) to /usr/bin/.

Regards,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-02 Thread Rich Shepard

On Fri, 2 Dec 2022, Herbert Voss wrote:


what does
which texindy


$ which texindy
/usr/bin/texindy


and
which xindy


$ which xindy
/usr/bin/xindy


xindy -C utf8 -I latex file.idx


$ xindy -C utf8 -I latex biota-to-set-wq-standards.idx
*** - PROGN: variable LANG/GENERAL/UTF8-LANG.XDY has no value

Surprisingly, Slackware-15.0 also has the same texlive version as does
-14.2. So the texlive source will have the same texindy version

I'll ask on the maillist about this.

My web search for 'texindy' found man pages for various linux distros, but
not a perl script itself.

Thanks, Herbert,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-02 Thread Herbert Voss

Am 02.12.22 um 15:33 schrieb Rich Shepard:


Yesterday I ran texindy on the *.idx file in /tmp; today produced the 
same

result.

Exported document to latex (pdflatex).
$ pdflatex biota-to-set-wq-standards.tex
$ texindy biota-to-set-wq-standards.idx
texindy: not a symlink as required for TeX Live at /usr/bin/texindy 
line 414.


I posted the relevant portion of that script yesterday. Can provide it 
again

if needed.

I'll see if the Slackware-15.0 texlive has the texindy perl script and 
will

use that to replace 2021-04-18 version in /usr/bin/.



what does

which texindy

and

which xindy

say? It is a really old script, you can use any available version.
However, you can also try

xindy -C utf8 -I latex file.idx

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-02 Thread Rich Shepard

On Fri, 2 Dec 2022, Herbert Voss wrote:


Rich, export your document to LaTeX, go into the directory of
the exported code and then run
pdflatex 
texindy file.idx
then you'll see what happens. If you know the temporary directory
of the LyX files, you can also run texindy in that directory with the
current filename.


Herbert,

Yesterday I ran texindy on the *.idx file in /tmp; today produced the same
result.

Exported document to latex (pdflatex).
$ pdflatex biota-to-set-wq-standards.tex
$ texindy biota-to-set-wq-standards.idx
texindy: not a symlink as required for TeX Live at /usr/bin/texindy line 414.

I posted the relevant portion of that script yesterday. Can provide it again
if needed.

I'll see if the Slackware-15.0 texlive has the texindy perl script and will
use that to replace 2021-04-18 version in /usr/bin/.

Thanks,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-02 Thread Herbert Voss



Am 02.12.22 um 14:46 schrieb Rich Shepard:

On Fri, 2 Dec 2022, Herbert Voss wrote:

Did you insert the command »Insert -> Lists -> Index«  into your 
document?



Yes.

Since texindy is a perl script I'll look for a newer version to 
replace it.



Rich, export your document to LaTeX, go into the directory of
the exported code and then run

pdflatex 
texindy file.idx

then you'll see what happens.  If you know the temporary directory
of the LyX files, you can also run texindy in that directory with the
current filename.


Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-02 Thread Rich Shepard

On Fri, 2 Dec 2022, Herbert Voss wrote:


Did you insert the command »Insert -> Lists -> Index«  into your document?


Herbert,

Yes.

Since texindy is a perl script I'll look for a newer version to replace it.

Thanks,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-01 Thread Herbert Voss



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#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--}

%% 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
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-01 Thread Rich Shepard

On Fri, 2 Dec 2022, Udicoudco wrote:


Which latex distribution did you install and which operating system are
you working on?


Udi,

Slackware-14.2/x86_64 and texlive-2021.210418-x86_64-1slint.

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-01 Thread Udicoudco
On Fri, Dec 2, 2022 at 12:12 AM Rich Shepard  wrote:
>
> On Fri, 2 Dec 2022, Udicoudco wrote:
>
>
> Udi,
>
> Interesting result:
> # texindy biota-to-set-wq-standards.idx
> texindy: not a symlink as required for TeX Live at /usr/bin/texindy line 414.
>
> Here's that function, starting at line 409:
> if ( $is_TL ) { # TeX Live
>
>  if ( $is_w32 ) {
>  $xindy = "$cmd_dir/xindy.pl";
>  } else { # LINE 414 follows immediately:
>  die "$cmd: not a symlink as required for TeX Live"  unless -l $0;
>  # FIXME: What this good for? Ain't xindy not also
>  # "$cmd_dir/xindy.pl" in a Unix TL installation? Why does
>  # Peter use the directory of the last symlink, where it just
>  # finds the symlink again that is then expanded by xindy.pl?
>  $real_cmd = $0;
>  $cmd_dir = dirname($real_cmd);
>  # Follow symlinks, but remember last one
>  my $lcmd_dir;
>  while ( -l $real_cmd ) {
>  $lcmd_dir = $cmd_dir;
>  $real_cmd = readlink($real_cmd);
>  $real_cmd = "$lcmd_dir/$real_cmd"  unless $real_cmd =~ 
> m,^[\\/],; # relative link
>  $cmd_dir = dirname($real_cmd);
>  }
>  $xindy = "$lcmd_dir/xindy";
>  }
>  # FIXME: That's a very ugly kludge to achieve that the VERSION
>  # file is found in output_xindy_release(). The real solution is to
>  # copy the code from xindy.pl that determines $modules_dir and
>  # $lib_dir and use that code as well.
>  $cmd_dir = Cwd::realpath("$cmd_dir/../../xindy/modules");
>  die "Cannot locate xindy modules directory"  unless -f 
> "$cmd_dir/../VERSION";
> } else {
> ...
>
> And I don't know perl.
>
> Rich

Rich,

Which latex distribution did you install and which operating system
are you working on?

Regards,
Udi
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-01 Thread Rich Shepard

On Fri, 2 Dec 2022, Udicoudco wrote:


If you open your terminal, cd to the temp directory and write:texindy
biota-to-set-wq-standards.idx does this produce a file called
biota-to-set-wq-standards.ind?


Udi,

Interesting result:
# texindy biota-to-set-wq-standards.idx
texindy: not a symlink as required for TeX Live at /usr/bin/texindy line 414.

Here's that function, starting at line 409:
if ( $is_TL ) { # TeX Live

if ( $is_w32 ) {
$xindy = "$cmd_dir/xindy.pl";
} else { # LINE 414 follows immediately:
die "$cmd: not a symlink as required for TeX Live"  unless -l $0;
# FIXME: What this good for? Ain't xindy not also
# "$cmd_dir/xindy.pl" in a Unix TL installation? Why does
# Peter use the directory of the last symlink, where it just
# finds the symlink again that is then expanded by xindy.pl?
$real_cmd = $0;
$cmd_dir = dirname($real_cmd);
# Follow symlinks, but remember last one
my $lcmd_dir;
while ( -l $real_cmd ) {
$lcmd_dir = $cmd_dir;
$real_cmd = readlink($real_cmd);
$real_cmd = "$lcmd_dir/$real_cmd"  unless $real_cmd =~ m,^[\\/],; # 
relative link
$cmd_dir = dirname($real_cmd);
}
$xindy = "$lcmd_dir/xindy";
}
# FIXME: That's a very ugly kludge to achieve that the VERSION
# file is found in output_xindy_release(). The real solution is to
# copy the code from xindy.pl that determines $modules_dir and
# $lib_dir and use that code as well.
$cmd_dir = Cwd::realpath("$cmd_dir/../../xindy/modules");
die "Cannot locate xindy modules directory"  unless -f 
"$cmd_dir/../VERSION";
} else {
...

And I don't know perl.

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-01 Thread Udicoudco
On Thu, Dec 1, 2022 at 11:48 PM Rich Shepard  wrote:
>
> On Thu, 1 Dec 2022, Herbert Voss wrote:
>
> Herbert,
>
> That's what I thought, but it's not there. Where should I look for the
> reason?
>
> Thanks,
>
> Rich

Rich,

If you open your terminal, cd to the temp directory and write:texindy
biota-to-set-wq-standards.idx
does this produce a file called biota-to-set-wq-standards.ind?

Regards,
Udi
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-01 Thread Rich Shepard

On Thu, 1 Dec 2022, Herbert Voss wrote:


After running texindy there must be *.ind file which will be input by
\printindex


Herbert,

That's what I thought, but it's not there. Where should I look for the
reason?

Thanks,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-01 Thread Herbert Voss




Am 01.12.22 um 22:38 schrieb Rich Shepard:

On Thu, 1 Dec 2022, Udicoudco wrote:

I also suggest that after you switch from xindy to texindy (or 
makeindex)

in the preferences menu, open the temporary directory where lyx compiles
all the files (to do so, create a latex error on purpose by writing
\undefined in ERT for example, press on view complete log, and then open
containing directory), and delete all the files there (or atleast files
with .idx and .ind extensions).


Udi,

No switching required. And in /tmp/lyx_tmpdir.laolWovT9417/lyx_tmpbuf0 is
the list of files:
biota-to-set-wq-standards-blx.bib
biota-to-set-wq-standards.aux
biota-to-set-wq-standards.bbl
biota-to-set-wq-standards.blg
biota-to-set-wq-standards.idx



After running texindy there must be *.ind file which will be input by
\printindex

Herbert




biota-to-set-wq-standards.lof
biota-to-set-wq-standards.log
biota-to-set-wq-standards.lot
biota-to-set-wq-standards.pdf
biota-to-set-wq-standards.run.xml
biota-to-set-wq-standards.tex
biota-to-set-wq-standards.tex.dep-pdf
biota-to-set-wq-standards.toc

And the *.idx file contains:
\indexentry{Water Pollution Control Act}{xiii}
\indexentry{Clean Water Act}{xiii}
\indexentry{CWA| see(Clean Water Act)}{xiii}
\indexentry{Water quality standards}{xiii}
\indexentry{Maximum concentration limit}{xiii}
\indexentry{MCL| see(Water quality standard)}{xiii}
\indexentry{Designated use}{xiii}
\indexentry{Beneficial use| see (Designated use)}{xiii}
\indexentry{Aquatic biota}{xiii}
\indexentry{Ambient water quality}{xiii}

So why don't these appear in the PDF?

Rich


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-01 Thread Rich Shepard

On Thu, 1 Dec 2022, Udicoudco wrote:


Try to delete the files in the temporary directory and export  to pdf again.


Udi,

No change in the /tmp/* files, no index in the PDF.

Regards,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-01 Thread Rich Shepard

On Thu, 1 Dec 2022, Udicoudco wrote:


I also suggest that after you switch from xindy to texindy (or makeindex)
in the preferences menu, open the temporary directory where lyx compiles
all the files (to do so, create a latex error on purpose by writing
\undefined in ERT for example, press on view complete log, and then open
containing directory), and delete all the files there (or atleast files
with .idx and .ind extensions).


Udi,

No switching required. And in /tmp/lyx_tmpdir.laolWovT9417/lyx_tmpbuf0 is
the list of files:
biota-to-set-wq-standards-blx.bib
biota-to-set-wq-standards.aux
biota-to-set-wq-standards.bbl
biota-to-set-wq-standards.blg
biota-to-set-wq-standards.idx
biota-to-set-wq-standards.lof
biota-to-set-wq-standards.log
biota-to-set-wq-standards.lot
biota-to-set-wq-standards.pdf
biota-to-set-wq-standards.run.xml
biota-to-set-wq-standards.tex
biota-to-set-wq-standards.tex.dep-pdf
biota-to-set-wq-standards.toc

And the *.idx file contains:
\indexentry{Water Pollution Control Act}{xiii}
\indexentry{Clean Water Act}{xiii}
\indexentry{CWA| see(Clean Water Act)}{xiii}
\indexentry{Water quality standards}{xiii}
\indexentry{Maximum concentration limit}{xiii}
\indexentry{MCL| see(Water quality standard)}{xiii}
\indexentry{Designated use}{xiii}
\indexentry{Beneficial use| see (Designated use)}{xiii}
\indexentry{Aquatic biota}{xiii}
\indexentry{Ambient water quality}{xiii}

So why don't these appear in the PDF?

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-01 Thread Udicoudco
On Thu, Dec 1, 2022 at 11:31 PM Rich Shepard  wrote:
>
> On Thu, 1 Dec 2022, Udicoudco wrote:
>

> Udi,
>
> I mis-remembered the Tools -> Preferences -> Output/LaTeX -> Index
> generation processor. It's texindy.
>
> Thanks,
>
> Rich

Rich,

Try to delete the files in the temporary directory and export  to pdf again.

Regards,
Udi

> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-01 Thread Rich Shepard

On Thu, 1 Dec 2022, Udicoudco wrote:


If you want to produce an index for LaTeX documents, the command texindy
(1) is probably more of interest for you. It is a wrapper for xindy that
turns on many LaTeX conventions by default."


Udi,

I mis-remembered the Tools -> Preferences -> Output/LaTeX -> Index
generation processor. It's texindy.

Thanks,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-01 Thread Udicoudco
On Thu, Dec 1, 2022 at 10:16 PM Rich Shepard  wrote:
>
> On Thu, 1 Dec 2022, Rich Shepard wrote:
>
> > Your memory is correct. I did that yesterday and I have the little
> > white-filled box with 'Index' placed after the bibliography. But, when the
> > file is compiled with pdflatex there's no index at the end. That's the
> > part I'm missiing.
>
> And, yes, I added a few items using the Add Index icon on the tool bar. So,
> there's content to be displayed.
>
> Rich
> --


I've tried to compile a few minimal documents to see the differences
between the index tools.  I've noticed that unlike makeindex and
texindy, xindy does not produce a .ind file that should be processed
by latex and create an index list, but only an .idx file, which
usually gets converted to .ind file.

On the first page of Xindy manual it is stated that

"xindy is the formatter-indepedent command of xindy, the flexible
indexing system. It takes a raw index as
input, and produces a merged, sorted and tagged index. Merging,
sorting, and tagging is controlled by xindy
style files.

Files with the raw index are passed as arguments. If no arguments are
passed, the raw index will be read
from standard input.

xindy is completely described in its manual that you will find on its
Web Site, http://www.xindy.org/. A
good introductionary description appears in the indexing chapter of
the LaTeX Companion (2nd ed.)

If you want to produce an index for LaTeX documents, the command
texindy (1) is probably more of inter-
est for you. It is a wrapper for xindy that turns on many LaTeX
conventions by default."

So it seems you should use texindy and not xindy directly. I also
suggest that  after you switch from xindy to texindy (or makeindex) in
the preferences menu, open the temporary directory where lyx compiles
all the files (to do so, create a latex error on purpose by writing
\undefined in ERT for example, press on view complete log, and then
open containing directory),  and delete all the files there (or
atleast files with .idx and .ind extensions).

Regards,
Udi

> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-01 Thread Rich Shepard

On Thu, 1 Dec 2022, Rich Shepard wrote:


Your memory is correct. I did that yesterday and I have the little
white-filled box with 'Index' placed after the bibliography. But, when the
file is compiled with pdflatex there's no index at the end. That's the
part I'm missiing.


And, yes, I added a few items using the Add Index icon on the tool bar. So,
there's content to be displayed.

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-01 Thread Udicoudco
On Thu, Dec 1, 2022 at 10:01 PM Rich Shepard 
wrote:

> On Thu, 1 Dec 2022, Udicoudco wrote:
>
> > If I remember correctly, it can be found in Insert->List/TOC->Index
> > List.
>
> Udi,
>
> Your memory is correct. I did that yesterday and I have the little
> white-filled box with 'Index' placed after the bibliography. But, when the
> file is compiled with pdflatex there's no index at the end. That's the part
> I'm missiing.
>
> Thanks,
>
> Rich
>

Do you currently have any index entry in the document? otherwise no index
will be generated (not even the title).

Regards,
Udi

> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-01 Thread Rich Shepard

On Thu, 1 Dec 2022, Udicoudco wrote:


If I remember correctly, it can be found in Insert->List/TOC->Index
List.


Udi,

Your memory is correct. I did that yesterday and I have the little
white-filled box with 'Index' placed after the bibliography. But, when the
file is compiled with pdflatex there's no index at the end. That's the part
I'm missiing.

Thanks,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Generating index when compiling document

2022-12-01 Thread Udicoudco
On Thu, Dec 1, 2022 at 9:54 PM Rich Shepard 
wrote:

> Section 6.6.6 (Index Program) in the User Guide told me to look in the
> document's preferences for the index-related tools installed here. I have
> both xindy and makeindex installed (xindy is the default selection), and
> I've no idea what options I might want to use with it (following the link
> in
> the manual showed me the available options.)
>
> Regardless, what do I do to have the index generated and appended to the
> document after the References (Bibliography)? I don't see that in the index
> section of the UG. It was in 2004 when I last generated a book index and
> I've not remembered what I did then. :-)
>
> Regards,
>
> Rich
>
>
Hi Rich,

If I remember correctly,   it can be found in Insert->List/TOC->Index List.

Regards,
Udi

--
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Generating index when compiling document

2022-12-01 Thread Rich Shepard

Section 6.6.6 (Index Program) in the User Guide told me to look in the
document's preferences for the index-related tools installed here. I have
both xindy and makeindex installed (xindy is the default selection), and
I've no idea what options I might want to use with it (following the link in
the manual showed me the available options.)

Regardless, what do I do to have the index generated and appended to the
document after the References (Bibliography)? I don't see that in the index
section of the UG. It was in 2004 when I last generated a book index and
I've not remembered what I did then. :-)

Regards,

Rich

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users