Re: Customizing the index

2000-07-28 Thread German Poo Caaman~o

Herbert Voss wrote:
 1. delete /usr/bin/makeindex
 this is only a link! have a look at it ...

In my Linux box (Mandrake 7.1beta) /usr/bin/makeindex is the
executable file.  But I wrote the script on my ~/bin directory
and it works ok.

Also, I downloaded your Letter.ist and I tried it successfully.
I noted that headings_flag, heading_prefix and heading_suffix
are the "commands" that I need.  So, I commented the others.

In the makeindex documentation appears lethead_prefix, but
it's the same, I guess.

My new question.  How can I center the heading_prefix?
I tried:
heading_prefix  "\\texbf{\t "   "\t\\texbf{ ", etc... But
it doesn't work :-(
With:
heading_prefix "\\begin{center}\\textbf{ "
heading_suffix " }\n\\end{center}"
It doesn't work either.

Ohh... \\hspace works.  But, how can I center it?


-- 
German Poo Caaman~o
mailto:[EMAIL PROTECTED]
http://www.ubiobio.cl/~gpoo/chilelindo.html
"La historia no se lee, se escribe"



Re: Customizing the index

2000-07-28 Thread Herbert Voss

German Poo Caaman~o wrote:
 
 Herbert Voss wrote:
  1. delete /usr/bin/makeindex
  this is only a link! have a look at it ...
 
 In my Linux box (Mandrake 7.1beta) /usr/bin/makeindex is the
 executable file.  But I wrote the script on my ~/bin directory
 and it works ok.
 
 Also, I downloaded your Letter.ist and I tried it successfully.
 I noted that headings_flag, heading_prefix and heading_suffix
 are the "commands" that I need.  So, I commented the others.
 
 In the makeindex documentation appears lethead_prefix, but
 it's the same, I guess.
 
 My new question.  How can I center the heading_prefix?
 I tried:
 heading_prefix  "\\texbf{\t "   "\t\\texbf{ ", etc... But
 it doesn't work :-(
 With:
 heading_prefix "\\begin{center}\\textbf{ "
 heading_suffix " }\n\\end{center}"
 It doesn't work either.

try this:

heading_prefix   "\\hfill\\textbf{" % boldfont
heading_suffix   "}\\hfill\\ \n"% newline

Herbert


-- 
[EMAIL PROTECTED]
http://perce.de/voss





Re: Customizing the index

2000-07-28 Thread German Poo Caaman~o

Herbert Voss wrote:
 1. delete /usr/bin/makeindex
 this is only a link! have a look at it ...

In my Linux box (Mandrake 7.1beta) /usr/bin/makeindex is the
executable file.  But I wrote the script on my ~/bin directory
and it works ok.

Also, I downloaded your Letter.ist and I tried it successfully.
I noted that headings_flag, heading_prefix and heading_suffix
are the "commands" that I need.  So, I commented the others.

In the makeindex documentation appears lethead_prefix, but
it's the same, I guess.

My new question.  How can I center the heading_prefix?
I tried:
heading_prefix  "\\texbf{\t "   "\t\\texbf{ ", etc... But
it doesn't work :-(
With:
heading_prefix "\\begin{center}\\textbf{ "
heading_suffix " }\n\\end{center}"
It doesn't work either.

Ohh... \\hspace works.  But, how can I center it?


-- 
German Poo Caaman~o
mailto:[EMAIL PROTECTED]
http://www.ubiobio.cl/~gpoo/chilelindo.html
"La historia no se lee, se escribe"



Re: Customizing the index

2000-07-28 Thread Herbert Voss

German Poo Caaman~o wrote:
 
 Herbert Voss wrote:
  1. delete /usr/bin/makeindex
  this is only a link! have a look at it ...
 
 In my Linux box (Mandrake 7.1beta) /usr/bin/makeindex is the
 executable file.  But I wrote the script on my ~/bin directory
 and it works ok.
 
 Also, I downloaded your Letter.ist and I tried it successfully.
 I noted that headings_flag, heading_prefix and heading_suffix
 are the "commands" that I need.  So, I commented the others.
 
 In the makeindex documentation appears lethead_prefix, but
 it's the same, I guess.
 
 My new question.  How can I center the heading_prefix?
 I tried:
 heading_prefix  "\\texbf{\t "   "\t\\texbf{ ", etc... But
 it doesn't work :-(
 With:
 heading_prefix "\\begin{center}\\textbf{ "
 heading_suffix " }\n\\end{center}"
 It doesn't work either.

try this:

heading_prefix   "\\hfill\\textbf{" % boldfont
heading_suffix   "}\\hfill\\ \n"% newline

Herbert


-- 
[EMAIL PROTECTED]
http://perce.de/voss





Re: Customizing the index

2000-07-28 Thread German Poo Caaman~o

Herbert Voss wrote:
> 1. delete /usr/bin/makeindex
> this is only a link! have a look at it ...

In my Linux box (Mandrake 7.1beta) /usr/bin/makeindex is the
executable file.  But I wrote the script on my ~/bin directory
and it works ok.

Also, I downloaded your Letter.ist and I tried it successfully.
I noted that headings_flag, heading_prefix and heading_suffix
are the "commands" that I need.  So, I commented the others.

In the makeindex documentation appears lethead_prefix, but
it's the same, I guess.

My new question.  How can I center the heading_prefix?
I tried:
heading_prefix  "\\texbf{\t "   "\t\\texbf{ ", etc... But
it doesn't work :-(
With:
heading_prefix "\\begin{center}\\textbf{ "
heading_suffix " }\n\\end{center}"
It doesn't work either.

Ohh... \\hspace works.  But, how can I center it?


-- 
German Poo Caaman~o
mailto:[EMAIL PROTECTED]
http://www.ubiobio.cl/~gpoo/chilelindo.html
"La historia no se lee, se escribe"



Re: Customizing the index

2000-07-28 Thread Herbert Voss

German Poo Caaman~o wrote:
> 
> Herbert Voss wrote:
> > 1. delete /usr/bin/makeindex
> > this is only a link! have a look at it ...
> 
> In my Linux box (Mandrake 7.1beta) /usr/bin/makeindex is the
> executable file.  But I wrote the script on my ~/bin directory
> and it works ok.
> 
> Also, I downloaded your Letter.ist and I tried it successfully.
> I noted that headings_flag, heading_prefix and heading_suffix
> are the "commands" that I need.  So, I commented the others.
> 
> In the makeindex documentation appears lethead_prefix, but
> it's the same, I guess.
> 
> My new question.  How can I center the heading_prefix?
> I tried:
> heading_prefix  "\\texbf{\t "   "\t\\texbf{ ", etc... But
> it doesn't work :-(
> With:
> heading_prefix "\\begin{center}\\textbf{ "
> heading_suffix " }\n\\end{center}"
> It doesn't work either.

try this:

heading_prefix   "\\hfill\\textbf{" % boldfont
heading_suffix   "}\\hfill\\ \n"% newline

Herbert


-- 
[EMAIL PROTECTED]
http://perce.de/voss





Re: Customizing the index

2000-07-27 Thread Herbert Voss

German Poo Caaman~o wrote:
 
 Reading some documents provides by "teTeX: A documentation guide" in
 my web2c TeX distribution I noted that some dvi files had the index
 as books.  I mean,
 Symbols
 ...
 A
 ...
 ...
 B
 ...
 ...
 
 (Neither I didn't find it on Herbert's tips page ;-)

http://www.educat.hu-berlin.de/~voss/Informatik/LyXTips.html#index_1

;-)

i think, it's a good idea, when lyx allows just like the mini 
bibtexmenue to insert a stylefile for makeindex.

so you have to run makeindex by hand with the -s option.

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/voss




Re: Customizing the index

2000-07-27 Thread Thomas Henlich

Customizing the index can been be made even more comfortable than Herbert
describes:

make a script 'lyx' in your ~/bin directory:

#!/bin/bash
export PATH=~/lyxbin:$PATH
/usr/bin/lyx -width 900 -height 700 $*


make a script 'makeindex' in the ~/lyxbin directory:

#!/bin/bash
# wrapper script for makeindex (to be called from lyx)

# copy the indexstyle (document_base_name.mst) to the directory $INDEXSTYLE.
# if this file does not exist, $ISTDEFAULT is used instead.
# if this also does not exist, no style file is used.
# The .idx file can be filtered through a program named $FILTER.

INDEXSTYLE=~/indexstyles
ISTDEFAULT=default.ist
FILTER=cat
MAKEINDEX=/usr/bin/makeindex
# LyX (1.1.5fix1) calls makeindex with "makeindex -c -q idxfile"
IDXFILE=$3
BASE=`basename $IDXFILE .idx`
INDFILE=$BASE.ind
MSTFILE=$BASE.mst
ILGFILE=$BASE.ilg
[ -f $INDEXSTYLE/$ISTDEFAULT ]  STYLE="-s $ISTDEFAULT"
[ -f $INDEXSTYLE/$MSTFILE ]  STYLE="-s $MSTFILE"
export INDEXSTYLE
$FILTER $IDXFILE | $MAKEINDEX -c -q $STYLE -o $INDFILE -t $ILGFILE


Now you can customize everything in the new 'makeindex' script.
The minimum is to create a file ~/indexstyles/default.ist, which changes the
index layout for _all_ documents.

-- 
Thomas Henlich



Re: Customizing the index

2000-07-27 Thread Herbert Voss

Thomas Henlich wrote:
 
 Customizing the index can been be made even more comfortable than Herbert
 describes:
 
 make a script 'lyx' in your ~/bin directory:
 
 #!/bin/bash
 export PATH=~/lyxbin:$PATH
 /usr/bin/lyx -width 900 -height 700 $*



good idea! but for those who have root access:

1. delete /usr/bin/makeindex
this is only a link! have a look at it ...

2. create a executable file makeindex in /usr/bin  or /usr/local/bin

--
#/bin/bash
/usr/share/texmf/teTeX/bin/i386-linux-glibc/makeindex -s StyleFile -c -q
$3
--

StyleFile has to changed to the specific file with full path.
this works for all standard tex-installation on linux. otherwise
look for the real location of makeindex and correct the path.

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/voss




Re: Customizing the index

2000-07-27 Thread Thomas Henlich

On Thu, Jul 27, 2000 at 01:42:50PM +, Herbert Voss wrote:
 Thomas Henlich wrote:
  
  make a script 'lyx' in your ~/bin directory:
  
  #!/bin/bash
  export PATH=~/lyxbin:$PATH
  /usr/bin/lyx -width 900 -height 700 $*
 
 good idea! but for those who have root access:
 
 1. delete /usr/bin/makeindex
 this is only a link! have a look at it ...
 
 2. create a executable file makeindex in /usr/bin  or /usr/local/bin
 
 --
 #/bin/bash
 /usr/share/texmf/teTeX/bin/i386-linux-glibc/makeindex -s StyleFile -c -q
 $3
 --

Not so good idea, because:
1. after the next upgrade of your LaTeX packages you lose these changes
2. you have to modify this script whenever you want to use another style for
a document.
3. You can't use makeindex (e.g. for LaTeX) anymore like you used to.
4. If there are any other users besides you on this machine who use
makeindex, they will go mad before they realize what has happend :-S

-- 
Thomas Henlich



Re: Customizing the index

2000-07-27 Thread Herbert Voss

German Poo Caaman~o wrote:
 
 Reading some documents provides by "teTeX: A documentation guide" in
 my web2c TeX distribution I noted that some dvi files had the index
 as books.  I mean,
 Symbols
 ...
 A
 ...
 ...
 B
 ...
 ...
 
 (Neither I didn't find it on Herbert's tips page ;-)

http://www.educat.hu-berlin.de/~voss/Informatik/LyXTips.html#index_1

;-)

i think, it's a good idea, when lyx allows just like the mini 
bibtexmenue to insert a stylefile for makeindex.

so you have to run makeindex by hand with the -s option.

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/voss




Re: Customizing the index

2000-07-27 Thread Thomas Henlich

Customizing the index can been be made even more comfortable than Herbert
describes:

make a script 'lyx' in your ~/bin directory:

#!/bin/bash
export PATH=~/lyxbin:$PATH
/usr/bin/lyx -width 900 -height 700 $*


make a script 'makeindex' in the ~/lyxbin directory:

#!/bin/bash
# wrapper script for makeindex (to be called from lyx)

# copy the indexstyle (document_base_name.mst) to the directory $INDEXSTYLE.
# if this file does not exist, $ISTDEFAULT is used instead.
# if this also does not exist, no style file is used.
# The .idx file can be filtered through a program named $FILTER.

INDEXSTYLE=~/indexstyles
ISTDEFAULT=default.ist
FILTER=cat
MAKEINDEX=/usr/bin/makeindex
# LyX (1.1.5fix1) calls makeindex with "makeindex -c -q idxfile"
IDXFILE=$3
BASE=`basename $IDXFILE .idx`
INDFILE=$BASE.ind
MSTFILE=$BASE.mst
ILGFILE=$BASE.ilg
[ -f $INDEXSTYLE/$ISTDEFAULT ]  STYLE="-s $ISTDEFAULT"
[ -f $INDEXSTYLE/$MSTFILE ]  STYLE="-s $MSTFILE"
export INDEXSTYLE
$FILTER $IDXFILE | $MAKEINDEX -c -q $STYLE -o $INDFILE -t $ILGFILE


Now you can customize everything in the new 'makeindex' script.
The minimum is to create a file ~/indexstyles/default.ist, which changes the
index layout for _all_ documents.

-- 
Thomas Henlich



Re: Customizing the index

2000-07-27 Thread Herbert Voss

Thomas Henlich wrote:
 
 Customizing the index can been be made even more comfortable than Herbert
 describes:
 
 make a script 'lyx' in your ~/bin directory:
 
 #!/bin/bash
 export PATH=~/lyxbin:$PATH
 /usr/bin/lyx -width 900 -height 700 $*



good idea! but for those who have root access:

1. delete /usr/bin/makeindex
this is only a link! have a look at it ...

2. create a executable file makeindex in /usr/bin  or /usr/local/bin

--
#/bin/bash
/usr/share/texmf/teTeX/bin/i386-linux-glibc/makeindex -s StyleFile -c -q
$3
--

StyleFile has to changed to the specific file with full path.
this works for all standard tex-installation on linux. otherwise
look for the real location of makeindex and correct the path.

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/voss




Re: Customizing the index

2000-07-27 Thread Thomas Henlich

On Thu, Jul 27, 2000 at 01:42:50PM +, Herbert Voss wrote:
 Thomas Henlich wrote:
  
  make a script 'lyx' in your ~/bin directory:
  
  #!/bin/bash
  export PATH=~/lyxbin:$PATH
  /usr/bin/lyx -width 900 -height 700 $*
 
 good idea! but for those who have root access:
 
 1. delete /usr/bin/makeindex
 this is only a link! have a look at it ...
 
 2. create a executable file makeindex in /usr/bin  or /usr/local/bin
 
 --
 #/bin/bash
 /usr/share/texmf/teTeX/bin/i386-linux-glibc/makeindex -s StyleFile -c -q
 $3
 --

Not so good idea, because:
1. after the next upgrade of your LaTeX packages you lose these changes
2. you have to modify this script whenever you want to use another style for
a document.
3. You can't use makeindex (e.g. for LaTeX) anymore like you used to.
4. If there are any other users besides you on this machine who use
makeindex, they will go mad before they realize what has happend :-S

-- 
Thomas Henlich



Re: Customizing the index

2000-07-27 Thread Herbert Voss

German Poo Caaman~o wrote:
> 
> Reading some documents provides by "teTeX: A documentation guide" in
> my web2c TeX distribution I noted that some dvi files had the index
> as books.  I mean,
> Symbols
> ...
> A
> ...
> ...
> B
> ...
> ...
> 
> (Neither I didn't find it on Herbert's tips page ;-)

http://www.educat.hu-berlin.de/~voss/Informatik/LyXTips.html#index_1

;-)

i think, it's a good idea, when lyx allows just like the mini 
bibtexmenue to insert a stylefile for makeindex.

so you have to run makeindex by hand with the -s option.

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/voss




Re: Customizing the index

2000-07-27 Thread Thomas Henlich

Customizing the index can been be made even more comfortable than Herbert
describes:

make a script 'lyx' in your ~/bin directory:

#!/bin/bash
export PATH=~/lyxbin:$PATH
/usr/bin/lyx -width 900 -height 700 $*


make a script 'makeindex' in the ~/lyxbin directory:

#!/bin/bash
# wrapper script for makeindex (to be called from lyx)

# copy the indexstyle (document_base_name.mst) to the directory $INDEXSTYLE.
# if this file does not exist, $ISTDEFAULT is used instead.
# if this also does not exist, no style file is used.
# The .idx file can be filtered through a program named $FILTER.

INDEXSTYLE=~/indexstyles
ISTDEFAULT=default.ist
FILTER=cat
MAKEINDEX=/usr/bin/makeindex
# LyX (1.1.5fix1) calls makeindex with "makeindex -c -q idxfile"
IDXFILE=$3
BASE=`basename $IDXFILE .idx`
INDFILE=$BASE.ind
MSTFILE=$BASE.mst
ILGFILE=$BASE.ilg
[ -f $INDEXSTYLE/$ISTDEFAULT ] && STYLE="-s $ISTDEFAULT"
[ -f $INDEXSTYLE/$MSTFILE ] && STYLE="-s $MSTFILE"
export INDEXSTYLE
$FILTER $IDXFILE | $MAKEINDEX -c -q $STYLE -o $INDFILE -t $ILGFILE


Now you can customize everything in the new 'makeindex' script.
The minimum is to create a file ~/indexstyles/default.ist, which changes the
index layout for _all_ documents.

-- 
Thomas Henlich



Re: Customizing the index

2000-07-27 Thread Herbert Voss

Thomas Henlich wrote:
> 
> Customizing the index can been be made even more comfortable than Herbert
> describes:
> 
> make a script 'lyx' in your ~/bin directory:
> 
> #!/bin/bash
> export PATH=~/lyxbin:$PATH
> /usr/bin/lyx -width 900 -height 700 $*



good idea! but for those who have root access:

1. delete /usr/bin/makeindex
this is only a link! have a look at it ...

2. create a executable file makeindex in /usr/bin  or /usr/local/bin

--
#/bin/bash
/usr/share/texmf/teTeX/bin/i386-linux-glibc/makeindex -s StyleFile -c -q
$3
--

StyleFile has to changed to the specific file with full path.
this works for all standard tex-installation on linux. otherwise
look for the real location of makeindex and correct the path.

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/voss




Re: Customizing the index

2000-07-27 Thread Thomas Henlich

On Thu, Jul 27, 2000 at 01:42:50PM +, Herbert Voss wrote:
> Thomas Henlich wrote:
> > 
> > make a script 'lyx' in your ~/bin directory:
> > 
> > #!/bin/bash
> > export PATH=~/lyxbin:$PATH
> > /usr/bin/lyx -width 900 -height 700 $*
> 
> good idea! but for those who have root access:
> 
> 1. delete /usr/bin/makeindex
> this is only a link! have a look at it ...
> 
> 2. create a executable file makeindex in /usr/bin  or /usr/local/bin
> 
> --
> #/bin/bash
> /usr/share/texmf/teTeX/bin/i386-linux-glibc/makeindex -s StyleFile -c -q
> $3
> --

Not so good idea, because:
1. after the next upgrade of your LaTeX packages you lose these changes
2. you have to modify this script whenever you want to use another style for
a document.
3. You can't use makeindex (e.g. for LaTeX) anymore like you used to.
4. If there are any other users besides you on this machine who use
makeindex, they will go mad before they realize what has happend :-S

-- 
Thomas Henlich



Customizing the index

2000-07-26 Thread German Poo Caaman~o


Reading some documents provides by "teTeX: A documentation guide" in
my web2c TeX distribution I noted that some dvi files had the index
as books.  I mean,
Symbols
...
A
...
...
B
...
...

I did search aboutr index but I didn't find anything.  I supossed that
is an option (such as a declare a package or similar).

What is the package that provides those index's format?

(Neither I didn't find it on Herbert's tips page ;-)

Thanks in advance,

-- 
German Poo Caaman~o
mailto:[EMAIL PROTECTED]
http://www.ubiobio.cl/~gpoo/chilelindo.html
"La historia no se lee, se escribe"




Customizing the index

2000-07-26 Thread German Poo Caaman~o


Reading some documents provides by "teTeX: A documentation guide" in
my web2c TeX distribution I noted that some dvi files had the index
as books.  I mean,
Symbols
...
A
...
...
B
...
...

I did search aboutr index but I didn't find anything.  I supossed that
is an option (such as a declare a package or similar).

What is the package that provides those index's format?

(Neither I didn't find it on Herbert's tips page ;-)

Thanks in advance,

-- 
German Poo Caaman~o
mailto:[EMAIL PROTECTED]
http://www.ubiobio.cl/~gpoo/chilelindo.html
"La historia no se lee, se escribe"




Customizing the index

2000-07-26 Thread German Poo Caaman~o


Reading some documents provides by "teTeX: A documentation guide" in
my web2c TeX distribution I noted that some dvi files had the index
as books.  I mean,
Symbols
...
A
...
...
B
...
...

I did search aboutr index but I didn't find anything.  I supossed that
is an option (such as a declare a package or similar).

What is the package that provides those index's format?

(Neither I didn't find it on Herbert's tips page ;-)

Thanks in advance,

-- 
German Poo Caaman~o
mailto:[EMAIL PROTECTED]
http://www.ubiobio.cl/~gpoo/chilelindo.html
"La historia no se lee, se escribe"




Re: Customizing an index

1999-06-10 Thread Stephan E. Schlierf


Thank you very much for your immediate answer.

On Wed, 9 Jun 1999, Jean-Marc Lasgouttes wrote:

  "Stephan" == Stephan E Schlierf [EMAIL PROTECTED] writes:
 
 Stephan What I already did was to export two environment variables
 Stephan LYX_MAKEINDEX (option -s and the name of the style file) and
 Stephan INDEXSTYLE (the path where the style file can be found).
 
 Stephan But the effect seems to be all the same: LyX seems to ignore
 Stephan it.
 
 Stephan Does anybody know a way to create such a customized index
 Stephan only using LyX (besides using xindy)?
 
 The source code which handles makeindex has the following comment:
 // It should be possible to set the switches for makeindex
 // sorting style and such. It would also be very convenient
 // to be able to make style files from within LyX. This has
 // to come for a later time. (0.13 perhaps?)
 
 The only solution I see are:
 
 - hardcode the style you want in LaTeX.C (around line 448)
 
 - have a 'makeindex' script which calls the real makeindex with the
   parameters you want
 
 - hope that some developper will add support for specifying makeindex
   arguments in lyxrc :)
 
 JMarc
 

Well, I really don't like to get on your nerves but I'm not so
familiar with programming (just a user :...)
Does the first solution mean I have to change the line

LString tmp = "makeindex -c -q "; --- line 452, LaTeX.C

to

LString tmp = "makeindex -c -q -s [name of my style file in
/usr/share/texmf/makeindex/]";

and everythink works fine?

(I'm a little bit nervous when changing source codes :-)

Thank you very much,
Stephan



Re: Customizing an index

1999-06-10 Thread Jean-Marc Lasgouttes

 "Stephan" == Stephan E Schlierf [EMAIL PROTECTED] writes:

Stephan Well, I really don't like to get on your nerves but I'm not
Stephan so familiar with programming (just a user :...)  Does the
Stephan first solution mean I have to change the line

Stephan LString tmp = "makeindex -c -q "; --- line 452, LaTeX.C

Stephan to

Stephan LString tmp = "makeindex -c -q -s [name of my style file in
Stephan /usr/share/texmf/makeindex/]";

Stephan and everythink works fine?

That's it. Don't forget to recompile lyx :)

JMarc



Re: Customizing an index

1999-06-10 Thread Stephan E. Schlierf


Thank you very much for your immediate answer.

On Wed, 9 Jun 1999, Jean-Marc Lasgouttes wrote:

  "Stephan" == Stephan E Schlierf [EMAIL PROTECTED] writes:
 
 Stephan What I already did was to export two environment variables
 Stephan LYX_MAKEINDEX (option -s and the name of the style file) and
 Stephan INDEXSTYLE (the path where the style file can be found).
 
 Stephan But the effect seems to be all the same: LyX seems to ignore
 Stephan it.
 
 Stephan Does anybody know a way to create such a customized index
 Stephan only using LyX (besides using xindy)?
 
 The source code which handles makeindex has the following comment:
 // It should be possible to set the switches for makeindex
 // sorting style and such. It would also be very convenient
 // to be able to make style files from within LyX. This has
 // to come for a later time. (0.13 perhaps?)
 
 The only solution I see are:
 
 - hardcode the style you want in LaTeX.C (around line 448)
 
 - have a 'makeindex' script which calls the real makeindex with the
   parameters you want
 
 - hope that some developper will add support for specifying makeindex
   arguments in lyxrc :)
 
 JMarc
 

Well, I really don't like to get on your nerves but I'm not so
familiar with programming (just a user :...)
Does the first solution mean I have to change the line

LString tmp = "makeindex -c -q "; --- line 452, LaTeX.C

to

LString tmp = "makeindex -c -q -s [name of my style file in
/usr/share/texmf/makeindex/]";

and everythink works fine?

(I'm a little bit nervous when changing source codes :-)

Thank you very much,
Stephan



Re: Customizing an index

1999-06-10 Thread Jean-Marc Lasgouttes

 "Stephan" == Stephan E Schlierf [EMAIL PROTECTED] writes:

Stephan Well, I really don't like to get on your nerves but I'm not
Stephan so familiar with programming (just a user :...)  Does the
Stephan first solution mean I have to change the line

Stephan LString tmp = "makeindex -c -q "; --- line 452, LaTeX.C

Stephan to

Stephan LString tmp = "makeindex -c -q -s [name of my style file in
Stephan /usr/share/texmf/makeindex/]";

Stephan and everythink works fine?

That's it. Don't forget to recompile lyx :)

JMarc



Re: Customizing an index

1999-06-10 Thread Stephan E. Schlierf


Thank you very much for your immediate answer.

On Wed, 9 Jun 1999, Jean-Marc Lasgouttes wrote:

> > "Stephan" == Stephan E Schlierf <[EMAIL PROTECTED]> writes:
> 
> Stephan> What I already did was to export two environment variables
> Stephan> LYX_MAKEINDEX (option -s and the name of the style file) and
> Stephan> INDEXSTYLE (the path where the style file can be found).
> 
> Stephan> But the effect seems to be all the same: LyX seems to ignore
> Stephan> it.
> 
> Stephan> Does anybody know a way to create such a customized index
> Stephan> only using LyX (besides using xindy)?
> 
> The source code which handles makeindex has the following comment:
> // It should be possible to set the switches for makeindex
> // sorting style and such. It would also be very convenient
> // to be able to make style files from within LyX. This has
> // to come for a later time. (0.13 perhaps?)
> 
> The only solution I see are:
> 
> - hardcode the style you want in LaTeX.C (around line 448)
> 
> - have a 'makeindex' script which calls the real makeindex with the
>   parameters you want
> 
> - hope that some developper will add support for specifying makeindex
>   arguments in lyxrc :)
> 
> JMarc
> 

Well, I really don't like to get on your nerves but I'm not so
familiar with programming (just a user :...)
Does the first solution mean I have to change the line

LString tmp = "makeindex -c -q "; ---> line 452, LaTeX.C

to

LString tmp = "makeindex -c -q -s [name of my style file in
/usr/share/texmf/makeindex/]";

and everythink works fine?

(I'm a little bit nervous when changing source codes :-)

Thank you very much,
Stephan



Re: Customizing an index

1999-06-10 Thread Jean-Marc Lasgouttes

> "Stephan" == Stephan E Schlierf <[EMAIL PROTECTED]> writes:

Stephan> Well, I really don't like to get on your nerves but I'm not
Stephan> so familiar with programming (just a user :...)  Does the
Stephan> first solution mean I have to change the line

Stephan> LString tmp = "makeindex -c -q "; ---> line 452, LaTeX.C

Stephan> to

Stephan> LString tmp = "makeindex -c -q -s [name of my style file in
Stephan> /usr/share/texmf/makeindex/]";

Stephan> and everythink works fine?

That's it. Don't forget to recompile lyx :)

JMarc



Re: Customizing an index

1999-06-09 Thread Jean-Marc Lasgouttes

 "Stephan" == Stephan E Schlierf [EMAIL PROTECTED] writes:

Stephan What I already did was to export two environment variables
Stephan LYX_MAKEINDEX (option -s and the name of the style file) and
Stephan INDEXSTYLE (the path where the style file can be found).

Stephan But the effect seems to be all the same: LyX seems to ignore
Stephan it.

Stephan Does anybody know a way to create such a customized index
Stephan only using LyX (besides using xindy)?

The source code which handles makeindex has the following comment:
// It should be possible to set the switches for makeindex
// sorting style and such. It would also be very convenient
// to be able to make style files from within LyX. This has
// to come for a later time. (0.13 perhaps?)

The only solution I see are:

- hardcode the style you want in LaTeX.C (around line 448)

- have a 'makeindex' script which calls the real makeindex with the
  parameters you want

- hope that some developper will add support for specifying makeindex
  arguments in lyxrc :)

JMarc



Re: Customizing an index

1999-06-09 Thread Jean-Marc Lasgouttes

 "Stephan" == Stephan E Schlierf [EMAIL PROTECTED] writes:

Stephan What I already did was to export two environment variables
Stephan LYX_MAKEINDEX (option -s and the name of the style file) and
Stephan INDEXSTYLE (the path where the style file can be found).

Stephan But the effect seems to be all the same: LyX seems to ignore
Stephan it.

Stephan Does anybody know a way to create such a customized index
Stephan only using LyX (besides using xindy)?

The source code which handles makeindex has the following comment:
// It should be possible to set the switches for makeindex
// sorting style and such. It would also be very convenient
// to be able to make style files from within LyX. This has
// to come for a later time. (0.13 perhaps?)

The only solution I see are:

- hardcode the style you want in LaTeX.C (around line 448)

- have a 'makeindex' script which calls the real makeindex with the
  parameters you want

- hope that some developper will add support for specifying makeindex
  arguments in lyxrc :)

JMarc



Re: Customizing an index

1999-06-09 Thread Jean-Marc Lasgouttes

> "Stephan" == Stephan E Schlierf <[EMAIL PROTECTED]> writes:

Stephan> What I already did was to export two environment variables
Stephan> LYX_MAKEINDEX (option -s and the name of the style file) and
Stephan> INDEXSTYLE (the path where the style file can be found).

Stephan> But the effect seems to be all the same: LyX seems to ignore
Stephan> it.

Stephan> Does anybody know a way to create such a customized index
Stephan> only using LyX (besides using xindy)?

The source code which handles makeindex has the following comment:
// It should be possible to set the switches for makeindex
// sorting style and such. It would also be very convenient
// to be able to make style files from within LyX. This has
// to come for a later time. (0.13 perhaps?)

The only solution I see are:

- hardcode the style you want in LaTeX.C (around line 448)

- have a 'makeindex' script which calls the real makeindex with the
  parameters you want

- hope that some developper will add support for specifying makeindex
  arguments in lyxrc :)

JMarc