Re: tex2lyx Feature Request

2023-06-30 Thread Dr Eberhard Lisse
Jean-Marc

Let's make it

--list-textclasses -l

that was just an example.

The request concerns tex2lyx.

I am getting the available textclasses out of it.

el

n 30/06/2023 11:30, Jean-Marc Lasgouttes wrote:
> Le 30/06/2023 à 11:07, Dr Eberhard Lisse a écrit :
>> so I wonder if one should not implement a similar switch like
>>
>>  --list-modules
> [--list-layouts, right?]
>>
>> or similar which would do just that and return something like
>>
>>  AEA
>>  IEEEtran-CompSoc
>>  IEEEtran-TransMag
> [...]
> 
> Note that this information is available in /textclasses.lst.
> 
> Does this request concern tex2lyx or LyX itself.
> 
> I am not totally sure what information you got from it, to be honoest.
> 
> JMarc
> 
> 

-- 
To email me replace 'nospam' with 'el'


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


Re: tex2lyx Feature Request

2023-06-30 Thread Jean-Marc Lasgouttes

Le 30/06/2023 à 11:07, Dr Eberhard Lisse a écrit :

so I wonder if one should not implement a similar switch like

 --list-modules

[--list-layouts, right?]


or similar which would do just that and return something like

 AEA
 IEEEtran-CompSoc
 IEEEtran-TransMag

[...]

Note that this information is available in /textclasses.lst.

Does this request concern tex2lyx or LyX itself.

I am not totally sure what information you got from it, to be honoest.

JMarc


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


tex2lyx Feature Request

2023-06-30 Thread Dr Eberhard Lisse
Hi,

I am doing an exercise of translating OpenOffice formatted files into
Lyx via pandoc and tex2lyx.

The LyX file is readable but when I use scrlettr it wants Koma Letter V1
which is not installed. I had to do

 find /Applications/LyX.app/ -name 'scrl*'

to find

 /Applications/LyX.app//Contents/Resources/layouts/scrlettr.layout
 /Applications/LyX.app//Contents/Resources/layouts/scrlttr2.layout

and I found

 pandoc --list-output-formats


so I wonder if one should not implement a similar switch like

 --list-modules

or similar which would do just that and return something like

 AEA
 IEEEtran-CompSoc
 IEEEtran-TransMag
 IEEEtran
 RJournal
 a0poster
 aa
 aapaper
 aastex
 aastex6
 aastex62
 achemso
 acm-sigs-alt
 acm-sigs
 acmart
 acmsiggraph-0-92
 acmsiggraph
 agu-dtd
 agums
 agutex
 amsart
 amsbook
 apa
 apa6
 apa7
 arab-article
 article-beamer
 article
 beamer
 beamerposter
 book
 broadway
 bxjsarticle
 bxjsbook
 bxjsreport
 bxjsslide
 chess
 cl2emult
 ctex-article
 ctex-book
 ctex-report
 db_sts.inc
 dinbrief
 docbook-book
 docbook-chapter
 docbook-section
 docbook
 doublecol-new
 dtk
 ectaart
 egs
 elsart
 elsarticle
 entcs
 europasscv
 europecv
 extarticle
 extbook
 extletter
 extreport
 foils
 frletter
 g-brief
 g-brief2
 heb-article
 heb-letter
 hollywood
 ijmpc
 ijmpd
 iopart
 isprs
 iucr
 jarticle
 jasatex
 jbook
 jgrga
 jreport
 jsarticle
 jsbook
 jss
 kluwer
 latex8
 letter
 lettre
 llncs
 ltugboat
 maa-monthly
 memoir
 moderncv
 mwart
 mwbk
 mwrep
 paper
 powerdot
 recipebook
 report
 revtex
 revtex4-1
 revtex4-2
 revtex4
 sciposter
 scrartcl
 scrarticle-beamer
 scrbook
 scrlettr
 scrlttr2
 scrreprt
 seminar
 siamltex
 sigplanconf
 simplecv
 singlecol-new
 singlecol
 slides
 spie
 sts.inc
 svglobal
 svglobal3
 svjog
 svmono
 svmult
 svprobth
 tarticle
 tbook
 treport
 tufte-book
 tufte-handout

which was generated by

 find /Applications/LyX.app -name  '*.layout' \
  | awk -F'/' '{print $7}' \
  | sort \
  | sed 's/.layout//g'

and so will miss the .inc and .module there.


Would that make sense?

el

-- 
To email me replace 'nospam' with 'el'

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


Re: feature request: text search in LaTex Preamble

2018-03-31 Thread Richard Kimberly Heck
On 03/31/2018 04:32 PM, David Pesetsky wrote:
> I often find myself hunting for something in the preamble and having to cut 
> and paste the contents of the "Document Settings/LaTex Preamble" window into 
> a text processing program to search for what I want. (And then I sometimes 
> tinker with it in the text processing program, forgetting that this does 
> nothing until I go back to LyX and make the change there.) It would be nice 
> to have a text search facility available within this LyX window, if possible. 
> Or am I missing something and the feature is there somewhere?
>
> (If there is another place to post feature requests let me know.  The bug 
> tracker looks like it's only for bugs.)

It also accepts enhancement requests. Just choose "enhancement" as the Type.

Riki



feature request: text search in LaTex Preamble

2018-03-31 Thread David Pesetsky
I often find myself hunting for something in the preamble and having to cut and 
paste the contents of the "Document Settings/LaTex Preamble" window into a text 
processing program to search for what I want. (And then I sometimes tinker with 
it in the text processing program, forgetting that this does nothing until I go 
back to LyX and make the change there.) It would be nice to have a text search 
facility available within this LyX window, if possible. Or am I missing 
something and the feature is there somewhere?

(If there is another place to post feature requests let me know.  The bug 
tracker looks like it's only for bugs.)

-David




Re: [Feature Request] python binding

2014-06-10 Thread Ross Reyes

Alex,  This did not work for me.

I can run the python script from the command line and it does produce a 
.png output.   So I know the

script is working.

But, in LyX 2.0.1 which I'm using, I get Error converting to loadable 
format.  I am trying to debug it.
Not sure at this point why it does not convert inside LyX.  I double 
checked the file format is defined and

also the converter is defined correctly.

I will try to turn on a log file to see if there are some other 
diagnostic messages.


Phil
On 6/2/2014 1:25 PM, Alex Vergara Gil wrote:
This might work!! Thanks for the suggestions, I will try it 
extensively and I will comments my experiences afterwards. It seems it 
also renders the graphic inside LyX itself! That's what I was talking 
about.


Regards
Alex

- Original Message - From: Rainer M Krug rai...@krugs.de
To: Alex Vergara Gil a...@cphr.edu.cu
Cc: Richard Heck rgh...@lyx.org; lyx-users Users 
lyx-users@lists.lyx.org; lyx-de...@lists.lyx.org

Sent: Monday, June 02, 2014 8:31 AM
Subject: Re: [Feature Request] python binding

I just add comments inline


Let's see if I understand:


-1. You define a *file type* in LyX under
 Preferences  File Handling  File Formats
for the file type .pygr in which Vector graphics format is ticked!

0. You define a converter under
 Preferences  File Handling  Converters
which calls a script which executed files with the extension .pygr and
generates, as you suggest below, an svg.


1. I wrote a python script that produces the graphic I want


Exactly - and you give it a specific extension .pygr for python
script which generates a graphic which you defined above.


2. I insert it in LyX somehow I don't know, perhaps defining a
converter from .py to svg, but this needs to be inside a module or
every python script in LyX will try to be converted into a svg!! So a
module is also needed


Use insert graphic and select *your .pygr* file as graphic - and Lyx
will do the rest of the conversion - i.e. use your converter to convert
the .pygr to an svg and other existing converters to generate the png
for the preview and the pdf / eps / ... for the final copmpilation of
the document.


3. LyX is the one who knows the correct size of the graphic so in
principle if I produce a svg should be enough but in this way I need
to produce a new svg every time the data change


Correct - if the input data changes, you have to generate the graph again
manually, or, if the Converter file cache is disabled, you just have
to close the document and open it again.

Hope this helps,

Rainer






Re: [Feature Request] python binding

2014-06-10 Thread Ross Reyes

Alex,  This did not work for me.

I can run the python script from the command line and it does produce a 
.png output.   So I know the

script is working.

But, in LyX 2.0.1 which I'm using, I get Error converting to loadable 
format.  I am trying to debug it.
Not sure at this point why it does not convert inside LyX.  I double 
checked the file format is defined and

also the converter is defined correctly.

I will try to turn on a log file to see if there are some other 
diagnostic messages.


Phil
On 6/2/2014 1:25 PM, Alex Vergara Gil wrote:
This might work!! Thanks for the suggestions, I will try it 
extensively and I will comments my experiences afterwards. It seems it 
also renders the graphic inside LyX itself! That's what I was talking 
about.


Regards
Alex

- Original Message - From: Rainer M Krug rai...@krugs.de
To: Alex Vergara Gil a...@cphr.edu.cu
Cc: Richard Heck rgh...@lyx.org; lyx-users Users 
lyx-users@lists.lyx.org; lyx-de...@lists.lyx.org

Sent: Monday, June 02, 2014 8:31 AM
Subject: Re: [Feature Request] python binding

I just add comments inline


Let's see if I understand:


-1. You define a *file type* in LyX under
 Preferences  File Handling  File Formats
for the file type .pygr in which Vector graphics format is ticked!

0. You define a converter under
 Preferences  File Handling  Converters
which calls a script which executed files with the extension .pygr and
generates, as you suggest below, an svg.


1. I wrote a python script that produces the graphic I want


Exactly - and you give it a specific extension .pygr for python
script which generates a graphic which you defined above.


2. I insert it in LyX somehow I don't know, perhaps defining a
converter from .py to svg, but this needs to be inside a module or
every python script in LyX will try to be converted into a svg!! So a
module is also needed


Use insert graphic and select *your .pygr* file as graphic - and Lyx
will do the rest of the conversion - i.e. use your converter to convert
the .pygr to an svg and other existing converters to generate the png
for the preview and the pdf / eps / ... for the final copmpilation of
the document.


3. LyX is the one who knows the correct size of the graphic so in
principle if I produce a svg should be enough but in this way I need
to produce a new svg every time the data change


Correct - if the input data changes, you have to generate the graph again
manually, or, if the Converter file cache is disabled, you just have
to close the document and open it again.

Hope this helps,

Rainer






Re: [Feature Request] python binding

2014-06-10 Thread Ross Reyes

Alex,  This did not work for me.

I can run the python script from the command line and it does produce a 
.png output.   So I know the

script is working.

But, in LyX 2.0.1 which I'm using, I get "Error converting to loadable 
format".  I am trying to debug it.
Not sure at this point why it does not convert inside LyX.  I double 
checked the file format is defined and

also the converter is defined correctly.

I will try to turn on a log file to see if there are some other 
diagnostic messages.


Phil
On 6/2/2014 1:25 PM, Alex Vergara Gil wrote:
This might work!! Thanks for the suggestions, I will try it 
extensively and I will comments my experiences afterwards. It seems it 
also renders the graphic inside LyX itself! That's what I was talking 
about.


Regards
Alex

- Original Message - From: "Rainer M Krug" <rai...@krugs.de>
To: "Alex Vergara Gil" <a...@cphr.edu.cu>
Cc: "Richard Heck" <rgh...@lyx.org>; "lyx-users Users" 
<lyx-users@lists.lyx.org>; <lyx-de...@lists.lyx.org>

Sent: Monday, June 02, 2014 8:31 AM
Subject: Re: [Feature Request] python binding

I just add comments inline


Let's see if I understand:


-1. You define a *file type* in LyX under
 Preferences > File Handling > File Formats
for the file type .pygr in which "Vector graphics format" is ticked!

0. You define a converter under
 Preferences > File Handling > Converters
which calls a script which executed files with the extension .pygr and
generates, as you suggest below, an svg.


1. I wrote a python script that produces the graphic I want


Exactly - and you give it a specific extension .pygr for "python
script which generates a graphic" which you defined above.


2. I insert it in LyX somehow I don't know, perhaps defining a
converter from .py to svg, but this needs to be inside a module or
every python script in LyX will try to be converted into a svg!! So a
module is also needed


Use insert graphic and select *your .pygr* file as graphic - and Lyx
will do the rest of the conversion - i.e. use your converter to convert
the .pygr to an svg and other existing converters to generate the png
for the preview and the pdf / eps / ... for the final copmpilation of
the document.


3. LyX is the one who knows the correct size of the graphic so in
principle if I produce a svg should be enough but in this way I need
to produce a new svg every time the data change


Correct - if the input data changes, you have to generate the graph again
manually, or, if the "Converter file cache" is disabled, you just have
to close the document and open it again.

Hope this helps,

Rainer






Re: [Feature Request] python binding

2014-06-02 Thread Alex Vergara Gil
From: Richard Heck rgh...@lyx.org
Sent: Thursday, May 29, 2014 5:05 PM
 I might be *completely* off, but couldn't you achieve exactly this via
 defining converters? I have for example a converter defined, which
 converts plantuml source fields into uml graphs, i.e. it defines the
 call to compile them and return the graphs which are then inserted in
 the document?
 
 Yes, that's more or less what I was suggesting.
 
 rh
 

Let's see if I understand:
1. I wrote a python script that produces the graphic I want
2. I insert it in LyX somehow I don't know, perhaps defining a converter from 
.py to svg, but this needs to be inside a module or every python script in LyX 
will try to be converted into a svg!! So a module is also needed
3. LyX is the one who knows the correct size of the graphic so in principle if 
I produce a svg should be enough but in this way I need to produce a new svg 
every time the data change

Take this simple script as example

import numpy as np
from numpy.random import randn
import matplotlib as mpl
import matplotlib.pyplot as plt
np.random.seed(9221999)
data = randn(75)
plt.hist(data)

which produce a graphic like this in spyder



So basically I save this graphic to a svg and then I load it into LyX, but why 
not letting LyX doing this automatically if it already handles with python?? 
This is my question.

Regards

Alex

Re: [Feature Request] python binding

2014-06-02 Thread Rainer M Krug
Alex Vergara Gil a...@cphr.edu.cu writes:

 From: Richard Heck rgh...@lyx.org
 Sent: Thursday, May 29, 2014 5:05 PM
 I might be *completely* off, but couldn't you achieve exactly this via
 defining converters? I have for example a converter defined, which
 converts plantuml source fields into uml graphs, i.e. it defines the
 call to compile them and return the graphs which are then inserted in
 the document?
 
 Yes, that's more or less what I was suggesting.
 
 rh
 


I just add comments inline

 Let's see if I understand:

-1. You define a *file type* in LyX under 
  Preferences  File Handling  File Formats
for the file type .pygr in which Vector graphics format is ticked!

0. You define a converter under
  Preferences  File Handling  Converters
which calls a script which executed files with the extension .pygr and
generates, as you suggest below, an svg.

 1. I wrote a python script that produces the graphic I want

Exactly - and you give it a specific extension .pygr for python
script which generates a graphic which you defined above.

 2. I insert it in LyX somehow I don't know, perhaps defining a
 converter from .py to svg, but this needs to be inside a module or
 every python script in LyX will try to be converted into a svg!! So a
 module is also needed

Use insert graphic and select *your .pygr* file as graphic - and Lyx
will do the rest of the conversion - i.e. use your converter to convert
the .pygr to an svg and other existing converters to generate the png
for the preview and the pdf / eps / ... for the final copmpilation of
the document.

 3. LyX is the one who knows the correct size of the graphic so in
 principle if I produce a svg should be enough but in this way I need
 to produce a new svg every time the data change

Correct - if the input data changes, you have to generate the graph again
manually, or, if the Converter file cache is disabled, you just have
to close the document and open it again. 

Hope this helps,

Rainer


 Take this simple script as example

 import numpy as np
 from numpy.random import randn
 import matplotlib as mpl
 import matplotlib.pyplot as plt
 np.random.seed(9221999)
 data = randn(75)
 plt.hist(data)

 which produce a graphic like this in spyder



 So basically I save this graphic to a svg and then I load it into LyX,
 but why not letting LyX doing this automatically if it already handles
 with python?? This is my question.

 Regards

 Alex

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgp86MxwTSdD2.pgp
Description: PGP signature


Re: [Feature Request] python binding

2014-06-02 Thread Alex Vergara Gil
This might work!! Thanks for the suggestions, I will try it extensively and 
I will comments my experiences afterwards. It seems it also renders the 
graphic inside LyX itself! That's what I was talking about.


Regards
Alex

- Original Message - 
From: Rainer M Krug rai...@krugs.de

To: Alex Vergara Gil a...@cphr.edu.cu
Cc: Richard Heck rgh...@lyx.org; lyx-users Users 
lyx-users@lists.lyx.org; lyx-de...@lists.lyx.org

Sent: Monday, June 02, 2014 8:31 AM
Subject: Re: [Feature Request] python binding

I just add comments inline


Let's see if I understand:


-1. You define a *file type* in LyX under
 Preferences  File Handling  File Formats
for the file type .pygr in which Vector graphics format is ticked!

0. You define a converter under
 Preferences  File Handling  Converters
which calls a script which executed files with the extension .pygr and
generates, as you suggest below, an svg.


1. I wrote a python script that produces the graphic I want


Exactly - and you give it a specific extension .pygr for python
script which generates a graphic which you defined above.


2. I insert it in LyX somehow I don't know, perhaps defining a
converter from .py to svg, but this needs to be inside a module or
every python script in LyX will try to be converted into a svg!! So a
module is also needed


Use insert graphic and select *your .pygr* file as graphic - and Lyx
will do the rest of the conversion - i.e. use your converter to convert
the .pygr to an svg and other existing converters to generate the png
for the preview and the pdf / eps / ... for the final copmpilation of
the document.


3. LyX is the one who knows the correct size of the graphic so in
principle if I produce a svg should be enough but in this way I need
to produce a new svg every time the data change


Correct - if the input data changes, you have to generate the graph again
manually, or, if the Converter file cache is disabled, you just have
to close the document and open it again.

Hope this helps,

Rainer



Re: [Feature Request] python binding

2014-06-02 Thread Alex Vergara Gil
From: Richard Heck rgh...@lyx.org
Sent: Thursday, May 29, 2014 5:05 PM
 I might be *completely* off, but couldn't you achieve exactly this via
 defining converters? I have for example a converter defined, which
 converts plantuml source fields into uml graphs, i.e. it defines the
 call to compile them and return the graphs which are then inserted in
 the document?
 
 Yes, that's more or less what I was suggesting.
 
 rh
 

Let's see if I understand:
1. I wrote a python script that produces the graphic I want
2. I insert it in LyX somehow I don't know, perhaps defining a converter from 
.py to svg, but this needs to be inside a module or every python script in LyX 
will try to be converted into a svg!! So a module is also needed
3. LyX is the one who knows the correct size of the graphic so in principle if 
I produce a svg should be enough but in this way I need to produce a new svg 
every time the data change

Take this simple script as example

import numpy as np
from numpy.random import randn
import matplotlib as mpl
import matplotlib.pyplot as plt
np.random.seed(9221999)
data = randn(75)
plt.hist(data)

which produce a graphic like this in spyder



So basically I save this graphic to a svg and then I load it into LyX, but why 
not letting LyX doing this automatically if it already handles with python?? 
This is my question.

Regards

Alex

Re: [Feature Request] python binding

2014-06-02 Thread Rainer M Krug
Alex Vergara Gil a...@cphr.edu.cu writes:

 From: Richard Heck rgh...@lyx.org
 Sent: Thursday, May 29, 2014 5:05 PM
 I might be *completely* off, but couldn't you achieve exactly this via
 defining converters? I have for example a converter defined, which
 converts plantuml source fields into uml graphs, i.e. it defines the
 call to compile them and return the graphs which are then inserted in
 the document?
 
 Yes, that's more or less what I was suggesting.
 
 rh
 


I just add comments inline

 Let's see if I understand:

-1. You define a *file type* in LyX under 
  Preferences  File Handling  File Formats
for the file type .pygr in which Vector graphics format is ticked!

0. You define a converter under
  Preferences  File Handling  Converters
which calls a script which executed files with the extension .pygr and
generates, as you suggest below, an svg.

 1. I wrote a python script that produces the graphic I want

Exactly - and you give it a specific extension .pygr for python
script which generates a graphic which you defined above.

 2. I insert it in LyX somehow I don't know, perhaps defining a
 converter from .py to svg, but this needs to be inside a module or
 every python script in LyX will try to be converted into a svg!! So a
 module is also needed

Use insert graphic and select *your .pygr* file as graphic - and Lyx
will do the rest of the conversion - i.e. use your converter to convert
the .pygr to an svg and other existing converters to generate the png
for the preview and the pdf / eps / ... for the final copmpilation of
the document.

 3. LyX is the one who knows the correct size of the graphic so in
 principle if I produce a svg should be enough but in this way I need
 to produce a new svg every time the data change

Correct - if the input data changes, you have to generate the graph again
manually, or, if the Converter file cache is disabled, you just have
to close the document and open it again. 

Hope this helps,

Rainer


 Take this simple script as example

 import numpy as np
 from numpy.random import randn
 import matplotlib as mpl
 import matplotlib.pyplot as plt
 np.random.seed(9221999)
 data = randn(75)
 plt.hist(data)

 which produce a graphic like this in spyder



 So basically I save this graphic to a svg and then I load it into LyX,
 but why not letting LyX doing this automatically if it already handles
 with python?? This is my question.

 Regards

 Alex

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgp86MxwTSdD2.pgp
Description: PGP signature


Re: [Feature Request] python binding

2014-06-02 Thread Alex Vergara Gil
This might work!! Thanks for the suggestions, I will try it extensively and 
I will comments my experiences afterwards. It seems it also renders the 
graphic inside LyX itself! That's what I was talking about.


Regards
Alex

- Original Message - 
From: Rainer M Krug rai...@krugs.de

To: Alex Vergara Gil a...@cphr.edu.cu
Cc: Richard Heck rgh...@lyx.org; lyx-users Users 
lyx-users@lists.lyx.org; lyx-de...@lists.lyx.org

Sent: Monday, June 02, 2014 8:31 AM
Subject: Re: [Feature Request] python binding

I just add comments inline


Let's see if I understand:


-1. You define a *file type* in LyX under
 Preferences  File Handling  File Formats
for the file type .pygr in which Vector graphics format is ticked!

0. You define a converter under
 Preferences  File Handling  Converters
which calls a script which executed files with the extension .pygr and
generates, as you suggest below, an svg.


1. I wrote a python script that produces the graphic I want


Exactly - and you give it a specific extension .pygr for python
script which generates a graphic which you defined above.


2. I insert it in LyX somehow I don't know, perhaps defining a
converter from .py to svg, but this needs to be inside a module or
every python script in LyX will try to be converted into a svg!! So a
module is also needed


Use insert graphic and select *your .pygr* file as graphic - and Lyx
will do the rest of the conversion - i.e. use your converter to convert
the .pygr to an svg and other existing converters to generate the png
for the preview and the pdf / eps / ... for the final copmpilation of
the document.


3. LyX is the one who knows the correct size of the graphic so in
principle if I produce a svg should be enough but in this way I need
to produce a new svg every time the data change


Correct - if the input data changes, you have to generate the graph again
manually, or, if the Converter file cache is disabled, you just have
to close the document and open it again.

Hope this helps,

Rainer



Re: [Feature Request] python binding

2014-06-02 Thread Alex Vergara Gil
From: "Richard Heck" 
Sent: Thursday, May 29, 2014 5:05 PM
>> I might be *completely* off, but couldn't you achieve exactly this via
>> defining converters? I have for example a converter defined, which
>> "converts" plantuml source fields into uml graphs, i.e. it defines the
>> call to compile them and return the graphs which are then inserted in
>> the document?
> 
> Yes, that's more or less what I was suggesting.
> 
> rh
> 

Let's see if I understand:
1. I wrote a python script that produces the graphic I want
2. I insert it in LyX somehow I don't know, perhaps defining a converter from 
.py to svg, but this needs to be inside a module or every python script in LyX 
will try to be converted into a svg!! So a module is also needed
3. LyX is the one who knows the correct size of the graphic so in principle if 
I produce a svg should be enough but in this way I need to produce a new svg 
every time the data change

Take this simple script as example

import numpy as np
from numpy.random import randn
import matplotlib as mpl
import matplotlib.pyplot as plt
np.random.seed(9221999)
data = randn(75)
plt.hist(data)

which produce a graphic like this in spyder



So basically I save this graphic to a svg and then I load it into LyX, but why 
not letting LyX doing this automatically if it already handles with python?? 
This is my question.

Regards

Alex

Re: [Feature Request] python binding

2014-06-02 Thread Rainer M Krug
"Alex Vergara Gil"  writes:

> From: "Richard Heck" 
> Sent: Thursday, May 29, 2014 5:05 PM
>>> I might be *completely* off, but couldn't you achieve exactly this via
>>> defining converters? I have for example a converter defined, which
>>> "converts" plantuml source fields into uml graphs, i.e. it defines the
>>> call to compile them and return the graphs which are then inserted in
>>> the document?
>> 
>> Yes, that's more or less what I was suggesting.
>> 
>> rh
>> 
>

I just add comments inline

> Let's see if I understand:

-1. You define a *file type* in LyX under 
  Preferences > File Handling > File Formats
for the file type .pygr in which "Vector graphics format" is ticked!

0. You define a converter under
  Preferences > File Handling > Converters
which calls a script which executed files with the extension .pygr and
generates, as you suggest below, an svg.

> 1. I wrote a python script that produces the graphic I want

Exactly - and you give it a specific extension .pygr for "python
script which generates a graphic" which you defined above.

> 2. I insert it in LyX somehow I don't know, perhaps defining a
> converter from .py to svg, but this needs to be inside a module or
> every python script in LyX will try to be converted into a svg!! So a
> module is also needed

Use insert graphic and select *your .pygr* file as graphic - and Lyx
will do the rest of the conversion - i.e. use your converter to convert
the .pygr to an svg and other existing converters to generate the png
for the preview and the pdf / eps / ... for the final copmpilation of
the document.

> 3. LyX is the one who knows the correct size of the graphic so in
> principle if I produce a svg should be enough but in this way I need
> to produce a new svg every time the data change

Correct - if the input data changes, you have to generate the graph again
manually, or, if the "Converter file cache" is disabled, you just have
to close the document and open it again. 

Hope this helps,

Rainer

>
> Take this simple script as example
>
> import numpy as np
> from numpy.random import randn
> import matplotlib as mpl
> import matplotlib.pyplot as plt
> np.random.seed(9221999)
> data = randn(75)
> plt.hist(data)
>
> which produce a graphic like this in spyder
>
>
>
> So basically I save this graphic to a svg and then I load it into LyX,
> but why not letting LyX doing this automatically if it already handles
> with python?? This is my question.
>
> Regards
>
> Alex

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgp86MxwTSdD2.pgp
Description: PGP signature


Re: [Feature Request] python binding

2014-06-02 Thread Alex Vergara Gil
This might work!! Thanks for the suggestions, I will try it extensively and 
I will comments my experiences afterwards. It seems it also renders the 
graphic inside LyX itself! That's what I was talking about.


Regards
Alex

- Original Message - 
From: "Rainer M Krug" <rai...@krugs.de>

To: "Alex Vergara Gil" <a...@cphr.edu.cu>
Cc: "Richard Heck" <rgh...@lyx.org>; "lyx-users Users" 
<lyx-users@lists.lyx.org>; <lyx-de...@lists.lyx.org>

Sent: Monday, June 02, 2014 8:31 AM
Subject: Re: [Feature Request] python binding

I just add comments inline


Let's see if I understand:


-1. You define a *file type* in LyX under
 Preferences > File Handling > File Formats
for the file type .pygr in which "Vector graphics format" is ticked!

0. You define a converter under
 Preferences > File Handling > Converters
which calls a script which executed files with the extension .pygr and
generates, as you suggest below, an svg.


1. I wrote a python script that produces the graphic I want


Exactly - and you give it a specific extension .pygr for "python
script which generates a graphic" which you defined above.


2. I insert it in LyX somehow I don't know, perhaps defining a
converter from .py to svg, but this needs to be inside a module or
every python script in LyX will try to be converted into a svg!! So a
module is also needed


Use insert graphic and select *your .pygr* file as graphic - and Lyx
will do the rest of the conversion - i.e. use your converter to convert
the .pygr to an svg and other existing converters to generate the png
for the preview and the pdf / eps / ... for the final copmpilation of
the document.


3. LyX is the one who knows the correct size of the graphic so in
principle if I produce a svg should be enough but in this way I need
to produce a new svg every time the data change


Correct - if the input data changes, you have to generate the graph again
manually, or, if the "Converter file cache" is disabled, you just have
to close the document and open it again.

Hope this helps,

Rainer



[Feature Request] python binding

2014-05-29 Thread Alex Vergara Gil
Hello Lyxers

I wonder why LyX is not available to process little pieces of python code 
within its own framework, like ipython notebook for instance??
This feature allows us to have beautiful graphics such the one produced by 
matplotlib package. I know there already exists a similar binding for R through 
knitr module, so why not a binding for python too??

Is there a way, like modules or whatever, to achieve the same functionality or 
at least some basic functionality of ipython notebook within LyX??

Regards
Alex Vergara
MSc Nuclear Physics
SSDL, CPHR, Havana, Cuba

[Feature Request] quality ePub export: Was [Feature Request] python binding

2014-05-29 Thread Steve Litt
On Thu, 29 May 2014 14:36:29 -0500
Alex Vergara Gil a...@cphr.edu.cu wrote:

 Hello Lyxers
 
 I wonder why LyX is not available to process little pieces of python
 code within its own framework, like ipython notebook for instance??
 This feature allows us to have beautiful graphics such the one
 produced by matplotlib package. I know there already exists a similar
 binding for R through knitr module, so why not a binding for python
 too??
 
 Is there a way, like modules or whatever, to achieve the same
 functionality or at least some basic functionality of ipython
 notebook within LyX??

Oh, if we're going consider requests for difficult additions to handle a
small subset of needs like beautiful graphics, how about filling the
GAPING HOLE that there's no practical way to export to ePub, without
massive human intervention and end-user programming? None of LyX's HTML
and xHtml exports are remotely suitable for flowing-text eBook
production, especially because different people have different ideas of
how eBooks should be built.

Personally, I think the easiest way forward on this is to take the
current half XML half something else native format, and make it well
formed XML. No doing favors of renaming graphics files with arbitrary
numbers, no doing favors of making obvious hierarchy into div, just
make the native format XML and let anyone with Python and lxml.etree
have his way with the native LyX file.

I know that two years ago I railed against XML native format, but
parsers have gotten better, and right now we have the human
unreadability of XML, combined with the unparsability of a more TeX
like language. Well formed XML can only be an improvement.

If well formed XML native format is not practical in the near future,
perhaps somebody could make a program that exports the current native
format into well-formed XML, once again without renumbering, throwing
away structure, etc. Basically, just pass the environments through: No
need to map Part to h1, once it's XML, we can trivially do that
ourselves, the way we want to. Given that most eBooks don't do a lot of
bibliography stuff, you could even have an initial version that has
hooks for the bibliography stuff but doesn't actually do it. Put in the
bibliographies next time. If it's not perfect with math, that's fine: I
can't think of anything more frustrating than trying to read a math
book on a small device.

Because of LyX's inability to author flowing text eBooks in any
reasonable way, I haven't used LyX in 9 months: I'm authoring with
Bluefish now. Slow, difficult, crashy, but at least my source document
can produce both print, PDF and ePub.

Maybe it's just me, but if there's one feature LyX should really have
in 2014, I think that one feature is a reasonable export mechanism to
something that can be turned into ePub, without undoing all the BS the
current LyX (x)Html converters throw into the export.

Mark my words: Within two years, beautiful graphics won't matter one
bit if the document can't be read on a small device.

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


[Feature Request] python binding

2014-05-29 Thread Alex Vergara Gil

From: Steve Litt sl...@troubleshooters.com
Sent: Thursday, May 29, 2014 2:35 PM

On Thu, 29 May 2014 14:36:29 -0500
Alex Vergara Gil a...@cphr.edu.cu wrote:


Hello Lyxers

I wonder why LyX is not available to process little pieces of python
code within its own framework, like ipython notebook for instance??
This feature allows us to have beautiful graphics such the one
produced by matplotlib package. I know there already exists a similar
binding for R through knitr module, so why not a binding for python
too??

Is there a way, like modules or whatever, to achieve the same
functionality or at least some basic functionality of ipython
notebook within LyX??


Oh, if we're going consider requests for difficult additions to handle a
small subset of needs like beautiful graphics, how about filling the
GAPING HOLE that there's no practical way to export to ePub, without
massive human intervention and end-user programming? None of LyX's HTML
and xHtml exports are remotely suitable for flowing-text eBook
production, especially because different people have different ideas of
how eBooks should be built.


I don´t think this is a dificult addition since there is already a module 
that does something similar for what I've asked, knitr module does this but 
accepting R commands instead of python ones, so maybe the knitr author can 
put some light to this discussion. Again there should be no need to touch 
the code, just build a module similar to knitr that can be named knitpy


This is my original motivation


(...)
SteveT


Regards
Alex 



Re: [Feature Request] python binding

2014-05-29 Thread Richard Heck

On 05/29/2014 03:36 PM, Alex Vergara Gil wrote:

Hello Lyxers
I wonder why LyX is not available to process little pieces of python 
code within its own framework, like ipython notebook for instance??


This feature allows us to have beautiful graphics such the one 
produced by matplotlib package. I know there already exists a similar 
binding for R through knitr module, so why not a binding for python too??
Is there a way, like modules or whatever, to achieve the same 
functionality or at least some basic functionality of ipython notebook 
within LyX??


Can you be more precise about what you want to do? I've never heard of 
ipython notebook.


Sweave works by our having an output format (sweave) for such 
documentsand then our declaring Rscript as a sweave -- LaTeX converter, 
so PDF export (say) goes via Rscript and pdflatex. There's a special 
script in lib/scripts/ that sets up some things for LyXfirst, or so it 
claims. It would be reasonably easy to do the same sort of thing for 
Python, if you wanted to do so. You'd just need to set up an appropriate 
format and then declare an appropriate script as a whatever - latex 
converter. Then LyX will run the script and do as you wish with the 
embedded python code.


Of course, as we've discussed on the list with respect to R, there are 
large security issues here, too.


Richard



Re: [Feature Request] python binding

2014-05-29 Thread Alex Vergara Gil

  From: Richard Heck 
  Sent: Thursday, May 29, 2014 3:26 PM


  On 05/29/2014 03:36 PM, Alex Vergara Gil wrote:

Hello Lyxers

I wonder why LyX is not available to process little pieces of python code 
within its own framework, like ipython notebook for instance??


This feature allows us to have beautiful graphics such the one produced by 
matplotlib package. I know there already exists a similar binding for R through 
knitr module, so why not a binding for python too??

Is there a way, like modules or whatever, to achieve the same functionality 
or at least some basic functionality of ipython notebook within LyX??
  Can you be more precise about what you want to do? I've never heard of 
ipython notebook.
sudo aptitude install ipython-notebook
ipython notebook

and there you can write even thesis in a web environment with python commands 
being executed inlined, exporting to pdf and latex too, it is a wonder of our 
times, so why not letting LyX do this miracle too??

  Sweave works by our having an output format (sweave) for such documents and 
then our declaring Rscript as a sweave -- LaTeX converter, so PDF export (say) 
goes via Rscript and pdflatex. There's a special script in lib/scripts/ that 
sets up some things for LyX first, or so it claims. It would be reasonably 
easy to do the same sort of thing for Python, if you wanted to do so. You'd 
just need to set up an appropriate format and then declare an appropriate 
script as a whatever - latex converter. Then LyX will run the script and do as 
you wish with the embedded python code.

  Of course, as we've discussed on the list with respect to R, there are large 
security issues here, too.

  Richard
you obviously miss the point here, or I was not very clear! it is not a 
different format, is a facility to have python scripts running within LyX 
framework, you have to see ipython notebook to understand what I mean, you will 
be surprised!!
Basically to build graphs, for instance (and only a piece of what can be done), 
you add the (let's call it) knitpy module and then place a knitpy insert, 
write some python code that produces a matplotlib graphic and then when lyx 
compiles the document, instead of the code it is shown the graph, it also can 
be done in the lyx editing window, but thats a more dificult request.

Regards
Alex

Re: [Feature Request] python binding

2014-05-29 Thread Rainer M Krug
Alex Vergara Gil a...@cphr.edu.cu writes:

   From: Richard Heck 
   Sent: Thursday, May 29, 2014 3:26 PM


   On 05/29/2014 03:36 PM, Alex Vergara Gil wrote:

 Hello Lyxers

 I wonder why LyX is not available to process little pieces of
 python code within its own framework, like ipython notebook for
 instance??


 This feature allows us to have beautiful graphics such the one
 produced by matplotlib package. I know there already exists a
 similar binding for R through knitr module, so why not a binding
 for python too??

 Is there a way, like modules or whatever, to achieve the same
 functionality or at least some basic functionality of ipython notebook
 within LyX??  Can you be more precise about what you want to do? I've
 never heard of ipython notebook.  sudo aptitude install
 ipython-notebook ipython notebook

 and there you can write even thesis in a web environment with python
 commands being executed inlined, exporting to pdf and latex too, it is
 a wonder of our times, so why not letting LyX do this miracle too??

   Sweave works by our having an output format (sweave) for such
   documents and then our declaring Rscript as a sweave -- LaTeX
   converter, so PDF export (say) goes via Rscript and
   pdflatex. There's a special script in lib/scripts/ that sets up
   some things for LyX first, or so it claims. It would be reasonably
   easy to do the same sort of thing for Python, if you wanted to do
   so. You'd just need to set up an appropriate format and then declare
   an appropriate script as a whatever - latex converter. Then LyX
   will run the script and do as you wish with the embedded python
   code.

   Of course, as we've discussed on the list with respect to R, there are 
 large security issues here, too.

   Richard you obviously miss the point here, or I was not very clear!
 it is not a different format, is a facility to have python scripts
 running within LyX framework, you have to see ipython notebook to
 understand what I mean, you will be surprised!!  Basically to build
 graphs, for instance (and only a piece of what can be done), you add
 the (let's call it) knitpy module and then place a knitpy insert,
 write some python code that produces a matplotlib graphic and then
 when lyx compiles the document, instead of the code it is shown the
 graph, it also can be done in the lyx editing window, but thats a more
 dificult request.

I might be *completely* off, but couldn't you achieve exactly this via
defining converters? I have for example a converter defined, which
converts plantuml source fields into uml graphs, i.e. it defines the
call to compile them and return the graphs which are then inserted in
the document?

I have never used python, but I guess a similar approach should be
possible here as well?

Cheers,

Rainer



 Regards
 Alex

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpNzrUAU7G2A.pgp
Description: PGP signature


Re: [Feature Request] python binding

2014-05-29 Thread Richard Heck

On 05/29/2014 04:57 PM, Rainer M Krug wrote:

Alex Vergara Gil a...@cphr.edu.cu writes:

   Richard you obviously miss the point here, or I was not very clear!
it is not a different format, is a facility to have python scripts
running within LyX framework, you have to see ipython notebook to
understand what I mean, you will be surprised!!  Basically to build
graphs, for instance (and only a piece of what can be done), you add
the (let's call it) knitpy module and then place a knitpy insert,
write some python code that produces a matplotlib graphic and then
when lyx compiles the document, instead of the code it is shown the
graph, it also can be done in the lyx editing window, but thats a more
dificult request.
I might be *completely* off, but couldn't you achieve exactly this via
defining converters? I have for example a converter defined, which
converts plantuml source fields into uml graphs, i.e. it defines the
call to compile them and return the graphs which are then inserted in
the document?


Yes, that's more or less what I was suggesting.

rh



Re: [Feature Request] python binding

2014-05-29 Thread Richard Heck

On 05/29/2014 05:34 PM, Alex Vergara Gil wrote:


*From:* Richard Heck mailto:rgh...@lyx.org
*Sent:* Thursday, May 29, 2014 3:26 PM

On 05/29/2014 03:36 PM, Alex Vergara Gil wrote:

Hello Lyxers
I wonder why LyX is not available to process little pieces of
python code within its own framework, like ipython notebook for
instance??

This feature allows us to have beautiful graphics such the one
produced by matplotlib package. I know there already exists a
similar binding for R through knitr module, so why not a binding
for python too??
Is there a way, like modules or whatever, to achieve the same
functionality or at least some basic functionality of ipython
notebook within LyX??

Can you be more precise about what you want to do? I've never
heard of ipython notebook.

sudo aptitude install ipython-notebook
ipython notebook

and there you can write even thesis in a web environment with python 
commands being executed inlined, exporting to pdf and latex too, it is 
a wonder of our times, so why not letting LyX do this miracle too??


Sweave works by our having an output format (sweave) for such
documentsand then our declaring Rscript as a sweave -- LaTeX
converter, so PDF export (say) goes via Rscript and pdflatex.
There's a special script in lib/scripts/ that sets up some things
for LyXfirst, or so it claims. It would be reasonably easy to do
the same sort of thing for Python, if you wanted to do so. You'd
just need to set up an appropriate format and then declare an
appropriate script as a whatever - latex converter. Then LyX will
run the script and do as you wish with the embedded python code.

Of course, as we've discussed on the list with respect to R, there
are large security issues here, too.

Richard

you obviously miss the point here, or I was not very clear! it is not 
a different format, is a facility to have python scripts running 
within LyX framework, you have to see ipython notebook to understand 
what I mean, you will be surprised!!
Basically to build graphs, for instance (and only a piece of what can 
be done), you add the (let's call it) knitpy module and then place a 
knitpy insert, write some python code that produces a matplotlib 
graphic and then when lyx compiles the document, instead of the code 
it is shown the graph, it also can be done in the lyx editing window, 
but thats a more dificult request.


No, that's exactly what I had in mind: Python code inthe document that 
gets executed at compile timeto create graphsor tables---or delete all 
your files. ;-) Formats are a LyX-internal method for keeping track of 
such thingsas what stage of compilation a document is at. The file 
format wouldn't really be different.


Richard



Re: [Feature Request] python binding

2014-05-29 Thread Scott Kostyshak
On Thu, May 29, 2014 at 3:36 PM, Alex Vergara Gil a...@cphr.edu.cu wrote:
 Hello Lyxers

 I wonder why LyX is not available to process little pieces of python code
 within its own framework, like ipython notebook for instance??
 This feature allows us to have beautiful graphics such the one produced by
 matplotlib package. I know there already exists a similar binding for R
 through knitr module, so why not a binding for python too??

 Is there a way, like modules or whatever, to achieve the same functionality
 or at least some basic functionality of ipython notebook within LyX??

Hi Alex,

Have you tried using knitr for python? Attached is a simple example
and the output created. For more info, see
http://yihui.name/knitr/demo/engines/ . graphics and everything else
should also work, although you might need to add custom hooks (not as
hard as it sounds).

This might not be ideal because you have to have R installed (knitr is
still itself written in R). But I would be curious in your thoughts.

Scott


python_knitr.21.lyx
Description: application/lyx


python_knitr.21.pdf
Description: Adobe PDF document


[Feature Request] python binding

2014-05-29 Thread Alex Vergara Gil
Hello Lyxers

I wonder why LyX is not available to process little pieces of python code 
within its own framework, like ipython notebook for instance??
This feature allows us to have beautiful graphics such the one produced by 
matplotlib package. I know there already exists a similar binding for R through 
knitr module, so why not a binding for python too??

Is there a way, like modules or whatever, to achieve the same functionality or 
at least some basic functionality of ipython notebook within LyX??

Regards
Alex Vergara
MSc Nuclear Physics
SSDL, CPHR, Havana, Cuba

[Feature Request] quality ePub export: Was [Feature Request] python binding

2014-05-29 Thread Steve Litt
On Thu, 29 May 2014 14:36:29 -0500
Alex Vergara Gil a...@cphr.edu.cu wrote:

 Hello Lyxers
 
 I wonder why LyX is not available to process little pieces of python
 code within its own framework, like ipython notebook for instance??
 This feature allows us to have beautiful graphics such the one
 produced by matplotlib package. I know there already exists a similar
 binding for R through knitr module, so why not a binding for python
 too??
 
 Is there a way, like modules or whatever, to achieve the same
 functionality or at least some basic functionality of ipython
 notebook within LyX??

Oh, if we're going consider requests for difficult additions to handle a
small subset of needs like beautiful graphics, how about filling the
GAPING HOLE that there's no practical way to export to ePub, without
massive human intervention and end-user programming? None of LyX's HTML
and xHtml exports are remotely suitable for flowing-text eBook
production, especially because different people have different ideas of
how eBooks should be built.

Personally, I think the easiest way forward on this is to take the
current half XML half something else native format, and make it well
formed XML. No doing favors of renaming graphics files with arbitrary
numbers, no doing favors of making obvious hierarchy into div, just
make the native format XML and let anyone with Python and lxml.etree
have his way with the native LyX file.

I know that two years ago I railed against XML native format, but
parsers have gotten better, and right now we have the human
unreadability of XML, combined with the unparsability of a more TeX
like language. Well formed XML can only be an improvement.

If well formed XML native format is not practical in the near future,
perhaps somebody could make a program that exports the current native
format into well-formed XML, once again without renumbering, throwing
away structure, etc. Basically, just pass the environments through: No
need to map Part to h1, once it's XML, we can trivially do that
ourselves, the way we want to. Given that most eBooks don't do a lot of
bibliography stuff, you could even have an initial version that has
hooks for the bibliography stuff but doesn't actually do it. Put in the
bibliographies next time. If it's not perfect with math, that's fine: I
can't think of anything more frustrating than trying to read a math
book on a small device.

Because of LyX's inability to author flowing text eBooks in any
reasonable way, I haven't used LyX in 9 months: I'm authoring with
Bluefish now. Slow, difficult, crashy, but at least my source document
can produce both print, PDF and ePub.

Maybe it's just me, but if there's one feature LyX should really have
in 2014, I think that one feature is a reasonable export mechanism to
something that can be turned into ePub, without undoing all the BS the
current LyX (x)Html converters throw into the export.

Mark my words: Within two years, beautiful graphics won't matter one
bit if the document can't be read on a small device.

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


[Feature Request] python binding

2014-05-29 Thread Alex Vergara Gil

From: Steve Litt sl...@troubleshooters.com
Sent: Thursday, May 29, 2014 2:35 PM

On Thu, 29 May 2014 14:36:29 -0500
Alex Vergara Gil a...@cphr.edu.cu wrote:


Hello Lyxers

I wonder why LyX is not available to process little pieces of python
code within its own framework, like ipython notebook for instance??
This feature allows us to have beautiful graphics such the one
produced by matplotlib package. I know there already exists a similar
binding for R through knitr module, so why not a binding for python
too??

Is there a way, like modules or whatever, to achieve the same
functionality or at least some basic functionality of ipython
notebook within LyX??


Oh, if we're going consider requests for difficult additions to handle a
small subset of needs like beautiful graphics, how about filling the
GAPING HOLE that there's no practical way to export to ePub, without
massive human intervention and end-user programming? None of LyX's HTML
and xHtml exports are remotely suitable for flowing-text eBook
production, especially because different people have different ideas of
how eBooks should be built.


I don´t think this is a dificult addition since there is already a module 
that does something similar for what I've asked, knitr module does this but 
accepting R commands instead of python ones, so maybe the knitr author can 
put some light to this discussion. Again there should be no need to touch 
the code, just build a module similar to knitr that can be named knitpy


This is my original motivation


(...)
SteveT


Regards
Alex 



Re: [Feature Request] python binding

2014-05-29 Thread Richard Heck

On 05/29/2014 03:36 PM, Alex Vergara Gil wrote:

Hello Lyxers
I wonder why LyX is not available to process little pieces of python 
code within its own framework, like ipython notebook for instance??


This feature allows us to have beautiful graphics such the one 
produced by matplotlib package. I know there already exists a similar 
binding for R through knitr module, so why not a binding for python too??
Is there a way, like modules or whatever, to achieve the same 
functionality or at least some basic functionality of ipython notebook 
within LyX??


Can you be more precise about what you want to do? I've never heard of 
ipython notebook.


Sweave works by our having an output format (sweave) for such 
documentsand then our declaring Rscript as a sweave -- LaTeX converter, 
so PDF export (say) goes via Rscript and pdflatex. There's a special 
script in lib/scripts/ that sets up some things for LyXfirst, or so it 
claims. It would be reasonably easy to do the same sort of thing for 
Python, if you wanted to do so. You'd just need to set up an appropriate 
format and then declare an appropriate script as a whatever - latex 
converter. Then LyX will run the script and do as you wish with the 
embedded python code.


Of course, as we've discussed on the list with respect to R, there are 
large security issues here, too.


Richard



Re: [Feature Request] python binding

2014-05-29 Thread Alex Vergara Gil

  From: Richard Heck 
  Sent: Thursday, May 29, 2014 3:26 PM


  On 05/29/2014 03:36 PM, Alex Vergara Gil wrote:

Hello Lyxers

I wonder why LyX is not available to process little pieces of python code 
within its own framework, like ipython notebook for instance??


This feature allows us to have beautiful graphics such the one produced by 
matplotlib package. I know there already exists a similar binding for R through 
knitr module, so why not a binding for python too??

Is there a way, like modules or whatever, to achieve the same functionality 
or at least some basic functionality of ipython notebook within LyX??
  Can you be more precise about what you want to do? I've never heard of 
ipython notebook.
sudo aptitude install ipython-notebook
ipython notebook

and there you can write even thesis in a web environment with python commands 
being executed inlined, exporting to pdf and latex too, it is a wonder of our 
times, so why not letting LyX do this miracle too??

  Sweave works by our having an output format (sweave) for such documents and 
then our declaring Rscript as a sweave -- LaTeX converter, so PDF export (say) 
goes via Rscript and pdflatex. There's a special script in lib/scripts/ that 
sets up some things for LyX first, or so it claims. It would be reasonably 
easy to do the same sort of thing for Python, if you wanted to do so. You'd 
just need to set up an appropriate format and then declare an appropriate 
script as a whatever - latex converter. Then LyX will run the script and do as 
you wish with the embedded python code.

  Of course, as we've discussed on the list with respect to R, there are large 
security issues here, too.

  Richard
you obviously miss the point here, or I was not very clear! it is not a 
different format, is a facility to have python scripts running within LyX 
framework, you have to see ipython notebook to understand what I mean, you will 
be surprised!!
Basically to build graphs, for instance (and only a piece of what can be done), 
you add the (let's call it) knitpy module and then place a knitpy insert, 
write some python code that produces a matplotlib graphic and then when lyx 
compiles the document, instead of the code it is shown the graph, it also can 
be done in the lyx editing window, but thats a more dificult request.

Regards
Alex

Re: [Feature Request] python binding

2014-05-29 Thread Rainer M Krug
Alex Vergara Gil a...@cphr.edu.cu writes:

   From: Richard Heck 
   Sent: Thursday, May 29, 2014 3:26 PM


   On 05/29/2014 03:36 PM, Alex Vergara Gil wrote:

 Hello Lyxers

 I wonder why LyX is not available to process little pieces of
 python code within its own framework, like ipython notebook for
 instance??


 This feature allows us to have beautiful graphics such the one
 produced by matplotlib package. I know there already exists a
 similar binding for R through knitr module, so why not a binding
 for python too??

 Is there a way, like modules or whatever, to achieve the same
 functionality or at least some basic functionality of ipython notebook
 within LyX??  Can you be more precise about what you want to do? I've
 never heard of ipython notebook.  sudo aptitude install
 ipython-notebook ipython notebook

 and there you can write even thesis in a web environment with python
 commands being executed inlined, exporting to pdf and latex too, it is
 a wonder of our times, so why not letting LyX do this miracle too??

   Sweave works by our having an output format (sweave) for such
   documents and then our declaring Rscript as a sweave -- LaTeX
   converter, so PDF export (say) goes via Rscript and
   pdflatex. There's a special script in lib/scripts/ that sets up
   some things for LyX first, or so it claims. It would be reasonably
   easy to do the same sort of thing for Python, if you wanted to do
   so. You'd just need to set up an appropriate format and then declare
   an appropriate script as a whatever - latex converter. Then LyX
   will run the script and do as you wish with the embedded python
   code.

   Of course, as we've discussed on the list with respect to R, there are 
 large security issues here, too.

   Richard you obviously miss the point here, or I was not very clear!
 it is not a different format, is a facility to have python scripts
 running within LyX framework, you have to see ipython notebook to
 understand what I mean, you will be surprised!!  Basically to build
 graphs, for instance (and only a piece of what can be done), you add
 the (let's call it) knitpy module and then place a knitpy insert,
 write some python code that produces a matplotlib graphic and then
 when lyx compiles the document, instead of the code it is shown the
 graph, it also can be done in the lyx editing window, but thats a more
 dificult request.

I might be *completely* off, but couldn't you achieve exactly this via
defining converters? I have for example a converter defined, which
converts plantuml source fields into uml graphs, i.e. it defines the
call to compile them and return the graphs which are then inserted in
the document?

I have never used python, but I guess a similar approach should be
possible here as well?

Cheers,

Rainer



 Regards
 Alex

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpNzrUAU7G2A.pgp
Description: PGP signature


Re: [Feature Request] python binding

2014-05-29 Thread Richard Heck

On 05/29/2014 04:57 PM, Rainer M Krug wrote:

Alex Vergara Gil a...@cphr.edu.cu writes:

   Richard you obviously miss the point here, or I was not very clear!
it is not a different format, is a facility to have python scripts
running within LyX framework, you have to see ipython notebook to
understand what I mean, you will be surprised!!  Basically to build
graphs, for instance (and only a piece of what can be done), you add
the (let's call it) knitpy module and then place a knitpy insert,
write some python code that produces a matplotlib graphic and then
when lyx compiles the document, instead of the code it is shown the
graph, it also can be done in the lyx editing window, but thats a more
dificult request.
I might be *completely* off, but couldn't you achieve exactly this via
defining converters? I have for example a converter defined, which
converts plantuml source fields into uml graphs, i.e. it defines the
call to compile them and return the graphs which are then inserted in
the document?


Yes, that's more or less what I was suggesting.

rh



Re: [Feature Request] python binding

2014-05-29 Thread Richard Heck

On 05/29/2014 05:34 PM, Alex Vergara Gil wrote:


*From:* Richard Heck mailto:rgh...@lyx.org
*Sent:* Thursday, May 29, 2014 3:26 PM

On 05/29/2014 03:36 PM, Alex Vergara Gil wrote:

Hello Lyxers
I wonder why LyX is not available to process little pieces of
python code within its own framework, like ipython notebook for
instance??

This feature allows us to have beautiful graphics such the one
produced by matplotlib package. I know there already exists a
similar binding for R through knitr module, so why not a binding
for python too??
Is there a way, like modules or whatever, to achieve the same
functionality or at least some basic functionality of ipython
notebook within LyX??

Can you be more precise about what you want to do? I've never
heard of ipython notebook.

sudo aptitude install ipython-notebook
ipython notebook

and there you can write even thesis in a web environment with python 
commands being executed inlined, exporting to pdf and latex too, it is 
a wonder of our times, so why not letting LyX do this miracle too??


Sweave works by our having an output format (sweave) for such
documentsand then our declaring Rscript as a sweave -- LaTeX
converter, so PDF export (say) goes via Rscript and pdflatex.
There's a special script in lib/scripts/ that sets up some things
for LyXfirst, or so it claims. It would be reasonably easy to do
the same sort of thing for Python, if you wanted to do so. You'd
just need to set up an appropriate format and then declare an
appropriate script as a whatever - latex converter. Then LyX will
run the script and do as you wish with the embedded python code.

Of course, as we've discussed on the list with respect to R, there
are large security issues here, too.

Richard

you obviously miss the point here, or I was not very clear! it is not 
a different format, is a facility to have python scripts running 
within LyX framework, you have to see ipython notebook to understand 
what I mean, you will be surprised!!
Basically to build graphs, for instance (and only a piece of what can 
be done), you add the (let's call it) knitpy module and then place a 
knitpy insert, write some python code that produces a matplotlib 
graphic and then when lyx compiles the document, instead of the code 
it is shown the graph, it also can be done in the lyx editing window, 
but thats a more dificult request.


No, that's exactly what I had in mind: Python code inthe document that 
gets executed at compile timeto create graphsor tables---or delete all 
your files. ;-) Formats are a LyX-internal method for keeping track of 
such thingsas what stage of compilation a document is at. The file 
format wouldn't really be different.


Richard



Re: [Feature Request] python binding

2014-05-29 Thread Scott Kostyshak
On Thu, May 29, 2014 at 3:36 PM, Alex Vergara Gil a...@cphr.edu.cu wrote:
 Hello Lyxers

 I wonder why LyX is not available to process little pieces of python code
 within its own framework, like ipython notebook for instance??
 This feature allows us to have beautiful graphics such the one produced by
 matplotlib package. I know there already exists a similar binding for R
 through knitr module, so why not a binding for python too??

 Is there a way, like modules or whatever, to achieve the same functionality
 or at least some basic functionality of ipython notebook within LyX??

Hi Alex,

Have you tried using knitr for python? Attached is a simple example
and the output created. For more info, see
http://yihui.name/knitr/demo/engines/ . graphics and everything else
should also work, although you might need to add custom hooks (not as
hard as it sounds).

This might not be ideal because you have to have R installed (knitr is
still itself written in R). But I would be curious in your thoughts.

Scott


python_knitr.21.lyx
Description: application/lyx


python_knitr.21.pdf
Description: Adobe PDF document


[Feature Request] python binding

2014-05-29 Thread Alex Vergara Gil
Hello Lyxers

I wonder why LyX is not available to process little pieces of python code 
within its own framework, like ipython notebook for instance??
This feature allows us to have beautiful graphics such the one produced by 
matplotlib package. I know there already exists a similar binding for R through 
knitr module, so why not a binding for python too??

Is there a way, like modules or whatever, to achieve the same functionality or 
at least some basic functionality of ipython notebook within LyX??

Regards
Alex Vergara
MSc Nuclear Physics
SSDL, CPHR, Havana, Cuba

[Feature Request] quality ePub export: Was [Feature Request] python binding

2014-05-29 Thread Steve Litt
On Thu, 29 May 2014 14:36:29 -0500
"Alex Vergara Gil"  wrote:

> Hello Lyxers
> 
> I wonder why LyX is not available to process little pieces of python
> code within its own framework, like ipython notebook for instance??
> This feature allows us to have beautiful graphics such the one
> produced by matplotlib package. I know there already exists a similar
> binding for R through knitr module, so why not a binding for python
> too??
> 
> Is there a way, like modules or whatever, to achieve the same
> functionality or at least some basic functionality of ipython
> notebook within LyX??

Oh, if we're going consider requests for difficult additions to handle a
small subset of needs like beautiful graphics, how about filling the
GAPING HOLE that there's no practical way to export to ePub, without
massive human intervention and end-user programming? None of LyX's HTML
and xHtml exports are remotely suitable for flowing-text eBook
production, especially because different people have different ideas of
how eBooks should be built.

Personally, I think the easiest way forward on this is to take the
current half XML half something else native format, and make it well
formed XML. No doing favors of renaming graphics files with arbitrary
numbers, no doing favors of making obvious hierarchy into , just
make the native format XML and let anyone with Python and lxml.etree
have his way with the native LyX file.

I know that two years ago I railed against XML native format, but
parsers have gotten better, and right now we have the human
unreadability of XML, combined with the unparsability of a more TeX
like language. Well formed XML can only be an improvement.

If well formed XML native format is not practical in the near future,
perhaps somebody could make a program that exports the current native
format into well-formed XML, once again without renumbering, throwing
away structure, etc. Basically, just pass the environments through: No
need to map Part to , once it's XML, we can trivially do that
ourselves, the way we want to. Given that most eBooks don't do a lot of
bibliography stuff, you could even have an initial version that has
hooks for the bibliography stuff but doesn't actually do it. Put in the
bibliographies next time. If it's not perfect with math, that's fine: I
can't think of anything more frustrating than trying to read a math
book on a small device.

Because of LyX's inability to author flowing text eBooks in any
reasonable way, I haven't used LyX in 9 months: I'm authoring with
Bluefish now. Slow, difficult, crashy, but at least my source document
can produce both print, PDF and ePub.

Maybe it's just me, but if there's one feature LyX should really have
in 2014, I think that one feature is a reasonable export mechanism to
something that can be turned into ePub, without undoing all the BS the
current LyX (x)Html converters throw into the export.

Mark my words: Within two years, beautiful graphics won't matter one
bit if the document can't be read on a small device.

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


[Feature Request] python binding

2014-05-29 Thread Alex Vergara Gil

From: "Steve Litt" 
Sent: Thursday, May 29, 2014 2:35 PM

On Thu, 29 May 2014 14:36:29 -0500
"Alex Vergara Gil"  wrote:


Hello Lyxers

I wonder why LyX is not available to process little pieces of python
code within its own framework, like ipython notebook for instance??
This feature allows us to have beautiful graphics such the one
produced by matplotlib package. I know there already exists a similar
binding for R through knitr module, so why not a binding for python
too??

Is there a way, like modules or whatever, to achieve the same
functionality or at least some basic functionality of ipython
notebook within LyX??


Oh, if we're going consider requests for difficult additions to handle a
small subset of needs like beautiful graphics, how about filling the
GAPING HOLE that there's no practical way to export to ePub, without
massive human intervention and end-user programming? None of LyX's HTML
and xHtml exports are remotely suitable for flowing-text eBook
production, especially because different people have different ideas of
how eBooks should be built.


I don´t think this is a "dificult addition" since there is already a module 
that does something similar for what I've asked, knitr module does this but 
accepting R commands instead of python ones, so maybe the knitr author can 
put some light to this discussion. Again there should be no need to touch 
the code, just build a module similar to knitr that can be named "knitpy"


This is my original motivation


(...)
SteveT


Regards
Alex 



Re: [Feature Request] python binding

2014-05-29 Thread Richard Heck

On 05/29/2014 03:36 PM, Alex Vergara Gil wrote:

Hello Lyxers
I wonder why LyX is not available to process little pieces of python 
code within its own framework, like ipython notebook for instance??


This feature allows us to have beautiful graphics such the one 
produced by matplotlib package. I know there already exists a similar 
binding for R through knitr module, so why not a binding for python too??
Is there a way, like modules or whatever, to achieve the same 
functionality or at least some basic functionality of ipython notebook 
within LyX??


Can you be more precise about what you want to do? I've never heard of 
ipython notebook.


Sweave works by our having an output format (sweave) for such 
documentsand then our declaring Rscript as a sweave --> LaTeX converter, 
so PDF export (say) goes via Rscript and pdflatex. There's a special 
script in lib/scripts/ that "sets up some things for LyX"first, or so it 
claims. It would be reasonably easy to do the same sort of thing for 
Python, if you wanted to do so. You'd just need to set up an appropriate 
format and then declare an appropriate script as a whatever -> latex 
converter. Then LyX will run the script and do as you wish with the 
embedded python code.


Of course, as we've discussed on the list with respect to R, there are 
large security issues here, too.


Richard



Re: [Feature Request] python binding

2014-05-29 Thread Alex Vergara Gil

  From: Richard Heck 
  Sent: Thursday, May 29, 2014 3:26 PM


  On 05/29/2014 03:36 PM, Alex Vergara Gil wrote:

Hello Lyxers

I wonder why LyX is not available to process little pieces of python code 
within its own framework, like ipython notebook for instance??


This feature allows us to have beautiful graphics such the one produced by 
matplotlib package. I know there already exists a similar binding for R through 
knitr module, so why not a binding for python too??

Is there a way, like modules or whatever, to achieve the same functionality 
or at least some basic functionality of ipython notebook within LyX??
  Can you be more precise about what you want to do? I've never heard of 
ipython notebook.
sudo aptitude install ipython-notebook
ipython notebook

and there you can write even thesis in a web environment with python commands 
being executed inlined, exporting to pdf and latex too, it is a wonder of our 
times, so why not letting LyX do this miracle too??

  Sweave works by our having an output format (sweave) for such documents and 
then our declaring Rscript as a sweave --> LaTeX converter, so PDF export (say) 
goes via Rscript and pdflatex. There's a special script in lib/scripts/ that 
"sets up some things for LyX" first, or so it claims. It would be reasonably 
easy to do the same sort of thing for Python, if you wanted to do so. You'd 
just need to set up an appropriate format and then declare an appropriate 
script as a whatever -> latex converter. Then LyX will run the script and do as 
you wish with the embedded python code.

  Of course, as we've discussed on the list with respect to R, there are large 
security issues here, too.

  Richard
you obviously miss the point here, or I was not very clear! it is not a 
different format, is a facility to have python scripts running within LyX 
framework, you have to see ipython notebook to understand what I mean, you will 
be surprised!!
Basically to build graphs, for instance (and only a piece of what can be done), 
you add the (let's call it) "knitpy" module and then place a knitpy insert, 
write some python code that produces a matplotlib graphic and then when lyx 
compiles the document, instead of the code it is shown the graph, it also can 
be done in the lyx editing window, but thats a more dificult request.

Regards
Alex

Re: [Feature Request] python binding

2014-05-29 Thread Rainer M Krug
"Alex Vergara Gil"  writes:

>   From: Richard Heck 
>   Sent: Thursday, May 29, 2014 3:26 PM
>
>
>   On 05/29/2014 03:36 PM, Alex Vergara Gil wrote:
>
> Hello Lyxers
>
> I wonder why LyX is not available to process little pieces of
> python code within its own framework, like ipython notebook for
> instance??
>
>
> This feature allows us to have beautiful graphics such the one
> produced by matplotlib package. I know there already exists a
> similar binding for R through knitr module, so why not a binding
> for python too??
>
> Is there a way, like modules or whatever, to achieve the same
> functionality or at least some basic functionality of ipython notebook
> within LyX??  Can you be more precise about what you want to do? I've
> never heard of ipython notebook.  sudo aptitude install
> ipython-notebook ipython notebook
>
> and there you can write even thesis in a web environment with python
> commands being executed inlined, exporting to pdf and latex too, it is
> a wonder of our times, so why not letting LyX do this miracle too??
>
>   Sweave works by our having an output format (sweave) for such
>   documents and then our declaring Rscript as a sweave --> LaTeX
>   converter, so PDF export (say) goes via Rscript and
>   pdflatex. There's a special script in lib/scripts/ that "sets up
>   some things for LyX" first, or so it claims. It would be reasonably
>   easy to do the same sort of thing for Python, if you wanted to do
>   so. You'd just need to set up an appropriate format and then declare
>   an appropriate script as a whatever -> latex converter. Then LyX
>   will run the script and do as you wish with the embedded python
>   code.
>
>   Of course, as we've discussed on the list with respect to R, there are 
> large security issues here, too.
>
>   Richard you obviously miss the point here, or I was not very clear!
> it is not a different format, is a facility to have python scripts
> running within LyX framework, you have to see ipython notebook to
> understand what I mean, you will be surprised!!  Basically to build
> graphs, for instance (and only a piece of what can be done), you add
> the (let's call it) "knitpy" module and then place a knitpy insert,
> write some python code that produces a matplotlib graphic and then
> when lyx compiles the document, instead of the code it is shown the
> graph, it also can be done in the lyx editing window, but thats a more
> dificult request.

I might be *completely* off, but couldn't you achieve exactly this via
defining converters? I have for example a converter defined, which
"converts" plantuml source fields into uml graphs, i.e. it defines the
call to compile them and return the graphs which are then inserted in
the document?

I have never used python, but I guess a similar approach should be
possible here as well?

Cheers,

Rainer


>
> Regards
> Alex

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpNzrUAU7G2A.pgp
Description: PGP signature


Re: [Feature Request] python binding

2014-05-29 Thread Richard Heck

On 05/29/2014 04:57 PM, Rainer M Krug wrote:

"Alex Vergara Gil"  writes:

   Richard you obviously miss the point here, or I was not very clear!
it is not a different format, is a facility to have python scripts
running within LyX framework, you have to see ipython notebook to
understand what I mean, you will be surprised!!  Basically to build
graphs, for instance (and only a piece of what can be done), you add
the (let's call it) "knitpy" module and then place a knitpy insert,
write some python code that produces a matplotlib graphic and then
when lyx compiles the document, instead of the code it is shown the
graph, it also can be done in the lyx editing window, but thats a more
dificult request.
I might be *completely* off, but couldn't you achieve exactly this via
defining converters? I have for example a converter defined, which
"converts" plantuml source fields into uml graphs, i.e. it defines the
call to compile them and return the graphs which are then inserted in
the document?


Yes, that's more or less what I was suggesting.

rh



Re: [Feature Request] python binding

2014-05-29 Thread Richard Heck

On 05/29/2014 05:34 PM, Alex Vergara Gil wrote:


*From:* Richard Heck 
*Sent:* Thursday, May 29, 2014 3:26 PM

On 05/29/2014 03:36 PM, Alex Vergara Gil wrote:

Hello Lyxers
I wonder why LyX is not available to process little pieces of
python code within its own framework, like ipython notebook for
instance??

This feature allows us to have beautiful graphics such the one
produced by matplotlib package. I know there already exists a
similar binding for R through knitr module, so why not a binding
for python too??
Is there a way, like modules or whatever, to achieve the same
functionality or at least some basic functionality of ipython
notebook within LyX??

Can you be more precise about what you want to do? I've never
heard of ipython notebook.

sudo aptitude install ipython-notebook
ipython notebook

and there you can write even thesis in a web environment with python 
commands being executed inlined, exporting to pdf and latex too, it is 
a wonder of our times, so why not letting LyX do this miracle too??


Sweave works by our having an output format (sweave) for such
documentsand then our declaring Rscript as a sweave --> LaTeX
converter, so PDF export (say) goes via Rscript and pdflatex.
There's a special script in lib/scripts/ that "sets up some things
for LyX"first, or so it claims. It would be reasonably easy to do
the same sort of thing for Python, if you wanted to do so. You'd
just need to set up an appropriate format and then declare an
appropriate script as a whatever -> latex converter. Then LyX will
run the script and do as you wish with the embedded python code.

Of course, as we've discussed on the list with respect to R, there
are large security issues here, too.

Richard

you obviously miss the point here, or I was not very clear! it is not 
a different format, is a facility to have python scripts running 
within LyX framework, you have to see ipython notebook to understand 
what I mean, you will be surprised!!
Basically to build graphs, for instance (and only a piece of what can 
be done), you add the (let's call it) "knitpy" module and then place a 
knitpy insert, write some python code that produces a matplotlib 
graphic and then when lyx compiles the document, instead of the code 
it is shown the graph, it also can be done in the lyx editing window, 
but thats a more dificult request.


No, that's exactly what I had in mind: Python code inthe document that 
gets executed at compile timeto create graphsor tables---or delete all 
your files. ;-) Formats are a LyX-internal method for keeping track of 
such thingsas what stage of compilation a document is at. The file 
format wouldn't really be different.


Richard



Re: [Feature Request] python binding

2014-05-29 Thread Scott Kostyshak
On Thu, May 29, 2014 at 3:36 PM, Alex Vergara Gil  wrote:
> Hello Lyxers
>
> I wonder why LyX is not available to process little pieces of python code
> within its own framework, like ipython notebook for instance??
> This feature allows us to have beautiful graphics such the one produced by
> matplotlib package. I know there already exists a similar binding for R
> through knitr module, so why not a binding for python too??
>
> Is there a way, like modules or whatever, to achieve the same functionality
> or at least some basic functionality of ipython notebook within LyX??

Hi Alex,

Have you tried using knitr for python? Attached is a simple example
and the output created. For more info, see
http://yihui.name/knitr/demo/engines/ . graphics and everything else
should also work, although you might need to add custom hooks (not as
hard as it sounds).

This might not be ideal because you have to have R installed (knitr is
still itself written in R). But I would be curious in your thoughts.

Scott


python_knitr.21.lyx
Description: application/lyx


python_knitr.21.pdf
Description: Adobe PDF document


Re: Feature request

2014-02-01 Thread Scott Kostyshak
Thanks Jim. I just responded to your feature request. Let's continue
the conversation on the trac ticket.

Scott

On Sat, Feb 1, 2014 at 6:49 PM, Jim Rockford jim.rockfo...@gmail.com wrote:
 Thanks for your attention Scott.  I just submitted the enhancement request
 you suggested.

 Best,
 Jim


 On Fri, Jan 31, 2014 at 4:43 PM, Scott Kostyshak skost...@lyx.org wrote:

 Hi Jim,

 Do you think something like the insert table icon would work well for
 matrices? If you haven't tried it yet, click on the Insert table
 icon in the top toolbar. If matrices worked in this way, would you
 consider that better or worse than how MathType does it?

 Can you open an enhancement request on trac for this?
 http://www.lyx.org/trac
 Also on the trac ticket can you post a screenshot of what MathType
 does? I'm wondering what the user interface is like.

 Best,

 Scott

 On Fri, Jan 31, 2014 at 4:29 PM, Jim Rockford jim.rockfo...@gmail.com
 wrote:
  MathType has the nice feature that when you click to insert a matrix,
  one
  has the choice of immediately inserting a typical low-dimensional matrix
  (i.e. 2x2, 3x3, 3x1, etc), in addition to the option of setting the row
  and
  column numbers manually.  As far as I can tell, in Lyx you must always
  specify the dimension explicitly.  I find this a bit of a nuisance and
  thus
  make the feature request.
 
  Thanks to the Lyx team for their great work and their consideration of
  user
  feature requests.
 
  Jim




Re: Feature request

2014-02-01 Thread Scott Kostyshak
Thanks Jim. I just responded to your feature request. Let's continue
the conversation on the trac ticket.

Scott

On Sat, Feb 1, 2014 at 6:49 PM, Jim Rockford jim.rockfo...@gmail.com wrote:
 Thanks for your attention Scott.  I just submitted the enhancement request
 you suggested.

 Best,
 Jim


 On Fri, Jan 31, 2014 at 4:43 PM, Scott Kostyshak skost...@lyx.org wrote:

 Hi Jim,

 Do you think something like the insert table icon would work well for
 matrices? If you haven't tried it yet, click on the Insert table
 icon in the top toolbar. If matrices worked in this way, would you
 consider that better or worse than how MathType does it?

 Can you open an enhancement request on trac for this?
 http://www.lyx.org/trac
 Also on the trac ticket can you post a screenshot of what MathType
 does? I'm wondering what the user interface is like.

 Best,

 Scott

 On Fri, Jan 31, 2014 at 4:29 PM, Jim Rockford jim.rockfo...@gmail.com
 wrote:
  MathType has the nice feature that when you click to insert a matrix,
  one
  has the choice of immediately inserting a typical low-dimensional matrix
  (i.e. 2x2, 3x3, 3x1, etc), in addition to the option of setting the row
  and
  column numbers manually.  As far as I can tell, in Lyx you must always
  specify the dimension explicitly.  I find this a bit of a nuisance and
  thus
  make the feature request.
 
  Thanks to the Lyx team for their great work and their consideration of
  user
  feature requests.
 
  Jim




Re: Feature request

2014-02-01 Thread Scott Kostyshak
Thanks Jim. I just responded to your feature request. Let's continue
the conversation on the trac ticket.

Scott

On Sat, Feb 1, 2014 at 6:49 PM, Jim Rockford <jim.rockfo...@gmail.com> wrote:
> Thanks for your attention Scott.  I just submitted the enhancement request
> you suggested.
>
> Best,
> Jim
>
>
> On Fri, Jan 31, 2014 at 4:43 PM, Scott Kostyshak <skost...@lyx.org> wrote:
>>
>> Hi Jim,
>>
>> Do you think something like the insert table icon would work well for
>> matrices? If you haven't tried it yet, click on the "Insert table"
>> icon in the top toolbar. If matrices worked in this way, would you
>> consider that better or worse than how MathType does it?
>>
>> Can you open an enhancement request on trac for this?
>> http://www.lyx.org/trac
>> Also on the trac ticket can you post a screenshot of what MathType
>> does? I'm wondering what the user interface is like.
>>
>> Best,
>>
>> Scott
>>
>> On Fri, Jan 31, 2014 at 4:29 PM, Jim Rockford <jim.rockfo...@gmail.com>
>> wrote:
>> > MathType has the nice feature that when you click to insert a matrix,
>> > one
>> > has the choice of immediately inserting a typical low-dimensional matrix
>> > (i.e. 2x2, 3x3, 3x1, etc), in addition to the option of setting the row
>> > and
>> > column numbers manually.  As far as I can tell, in Lyx you must always
>> > specify the dimension explicitly.  I find this a bit of a nuisance and
>> > thus
>> > make the feature request.
>> >
>> > Thanks to the Lyx team for their great work and their consideration of
>> > user
>> > feature requests.
>> >
>> > Jim
>
>


Feature request

2014-01-31 Thread Jim Rockford
MathType has the nice feature that when you click to insert a matrix, one
has the choice of immediately inserting a typical low-dimensional matrix
(i.e. 2x2, 3x3, 3x1, etc), in addition to the option of setting the row and
column numbers manually.  As far as I can tell, in Lyx you must always
specify the dimension explicitly.  I find this a bit of a nuisance and thus
make the feature request.

Thanks to the Lyx team for their great work and their consideration of user
feature requests.

Jim


Re: Feature request

2014-01-31 Thread Scott Kostyshak
Hi Jim,

Do you think something like the insert table icon would work well for
matrices? If you haven't tried it yet, click on the Insert table
icon in the top toolbar. If matrices worked in this way, would you
consider that better or worse than how MathType does it?

Can you open an enhancement request on trac for this? http://www.lyx.org/trac
Also on the trac ticket can you post a screenshot of what MathType
does? I'm wondering what the user interface is like.

Best,

Scott

On Fri, Jan 31, 2014 at 4:29 PM, Jim Rockford jim.rockfo...@gmail.com wrote:
 MathType has the nice feature that when you click to insert a matrix, one
 has the choice of immediately inserting a typical low-dimensional matrix
 (i.e. 2x2, 3x3, 3x1, etc), in addition to the option of setting the row and
 column numbers manually.  As far as I can tell, in Lyx you must always
 specify the dimension explicitly.  I find this a bit of a nuisance and thus
 make the feature request.

 Thanks to the Lyx team for their great work and their consideration of user
 feature requests.

 Jim


Feature request

2014-01-31 Thread Jim Rockford
MathType has the nice feature that when you click to insert a matrix, one
has the choice of immediately inserting a typical low-dimensional matrix
(i.e. 2x2, 3x3, 3x1, etc), in addition to the option of setting the row and
column numbers manually.  As far as I can tell, in Lyx you must always
specify the dimension explicitly.  I find this a bit of a nuisance and thus
make the feature request.

Thanks to the Lyx team for their great work and their consideration of user
feature requests.

Jim


Re: Feature request

2014-01-31 Thread Scott Kostyshak
Hi Jim,

Do you think something like the insert table icon would work well for
matrices? If you haven't tried it yet, click on the Insert table
icon in the top toolbar. If matrices worked in this way, would you
consider that better or worse than how MathType does it?

Can you open an enhancement request on trac for this? http://www.lyx.org/trac
Also on the trac ticket can you post a screenshot of what MathType
does? I'm wondering what the user interface is like.

Best,

Scott

On Fri, Jan 31, 2014 at 4:29 PM, Jim Rockford jim.rockfo...@gmail.com wrote:
 MathType has the nice feature that when you click to insert a matrix, one
 has the choice of immediately inserting a typical low-dimensional matrix
 (i.e. 2x2, 3x3, 3x1, etc), in addition to the option of setting the row and
 column numbers manually.  As far as I can tell, in Lyx you must always
 specify the dimension explicitly.  I find this a bit of a nuisance and thus
 make the feature request.

 Thanks to the Lyx team for their great work and their consideration of user
 feature requests.

 Jim


Feature request

2014-01-31 Thread Jim Rockford
MathType has the nice feature that when you click to insert a matrix, one
has the choice of immediately inserting a typical low-dimensional matrix
(i.e. 2x2, 3x3, 3x1, etc), in addition to the option of setting the row and
column numbers manually.  As far as I can tell, in Lyx you must always
specify the dimension explicitly.  I find this a bit of a nuisance and thus
make the feature request.

Thanks to the Lyx team for their great work and their consideration of user
feature requests.

Jim


Re: Feature request

2014-01-31 Thread Scott Kostyshak
Hi Jim,

Do you think something like the insert table icon would work well for
matrices? If you haven't tried it yet, click on the "Insert table"
icon in the top toolbar. If matrices worked in this way, would you
consider that better or worse than how MathType does it?

Can you open an enhancement request on trac for this? http://www.lyx.org/trac
Also on the trac ticket can you post a screenshot of what MathType
does? I'm wondering what the user interface is like.

Best,

Scott

On Fri, Jan 31, 2014 at 4:29 PM, Jim Rockford <jim.rockfo...@gmail.com> wrote:
> MathType has the nice feature that when you click to insert a matrix, one
> has the choice of immediately inserting a typical low-dimensional matrix
> (i.e. 2x2, 3x3, 3x1, etc), in addition to the option of setting the row and
> column numbers manually.  As far as I can tell, in Lyx you must always
> specify the dimension explicitly.  I find this a bit of a nuisance and thus
> make the feature request.
>
> Thanks to the Lyx team for their great work and their consideration of user
> feature requests.
>
> Jim


Re: New Feature Request: Chapter Contents

2013-10-15 Thread Mark Horton
Guenter Milde milde at users.sf.net writes:

 
 On 2013-10-13, Andrew Parsloe wrote:
  On 14/10/2013 5:35 a.m., Mark Horton wrote:
  Mark Horton mark.horton001 at yahoo.co.uk writes:
 
 ...
 
  However I am still getting the problem of being unable to control the 
depth
  of the initial Table of contents.
 
  This is controlled in LyX by going to Document  Settings  Numbering  
  TOC and adjusting the slider.
 
 And if you open ViewSource and click whole document, you will see the
 correct LaTeX code inserted into the document preamble to customize the
 tocdepth 
 
 Günter
 

Hi All

This all seems to be working now thanks to your help. :-) 


Andrew: The only thing not quite resolved is a new issue, that binary 
file. I can't seem to open or import it. So I can't even change the 
compression setting.  

Best Wishes

Mark :-)





Re: New Feature Request: Chapter Contents

2013-10-15 Thread Andrew Parsloe



On 16/10/2013 7:02 a.m., Mark Horton wrote:

Guenter Milde milde at users.sf.net writes:



On 2013-10-13, Andrew Parsloe wrote:

On 14/10/2013 5:35 a.m., Mark Horton wrote:

Mark Horton mark.horton001 at yahoo.co.uk writes:


...


However I am still getting the problem of being unable to control the

depth

of the initial Table of contents.



This is controlled in LyX by going to Document  Settings  Numbering 
TOC and adjusting the slider.


And if you open ViewSource and click whole document, you will see the
correct LaTeX code inserted into the document preamble to customize the
tocdepth

Günter



Hi All

This all seems to be working now thanks to your help. :-) 


Andrew: The only thing not quite resolved is a new issue, that binary
file. I can't seem to open or import it. So I can't even change the
compression setting.

Best Wishes

Mark :-)

Yes, I see I've sinned again. I created the document in 2.1 beta. I 
imagine you're using 2.0.something. So this time I've saved the document 
in 2.0 format and not bothered to compress it (it only comes to 14 kb). 
Now it should open in LyX 2.0. (But you seem to have got there anyway.)


Andrew



minitoc.20.lyx
Description: application/lyx


Re: New Feature Request: Chapter Contents

2013-10-15 Thread Mark Horton
Guenter Milde milde at users.sf.net writes:

 
 On 2013-10-13, Andrew Parsloe wrote:
  On 14/10/2013 5:35 a.m., Mark Horton wrote:
  Mark Horton mark.horton001 at yahoo.co.uk writes:
 
 ...
 
  However I am still getting the problem of being unable to control the 
depth
  of the initial Table of contents.
 
  This is controlled in LyX by going to Document  Settings  Numbering  
  TOC and adjusting the slider.
 
 And if you open ViewSource and click whole document, you will see the
 correct LaTeX code inserted into the document preamble to customize the
 tocdepth 
 
 Günter
 

Hi All

This all seems to be working now thanks to your help. :-) 


Andrew: The only thing not quite resolved is a new issue, that binary 
file. I can't seem to open or import it. So I can't even change the 
compression setting.  

Best Wishes

Mark :-)





Re: New Feature Request: Chapter Contents

2013-10-15 Thread Andrew Parsloe



On 16/10/2013 7:02 a.m., Mark Horton wrote:

Guenter Milde milde at users.sf.net writes:



On 2013-10-13, Andrew Parsloe wrote:

On 14/10/2013 5:35 a.m., Mark Horton wrote:

Mark Horton mark.horton001 at yahoo.co.uk writes:


...


However I am still getting the problem of being unable to control the

depth

of the initial Table of contents.



This is controlled in LyX by going to Document  Settings  Numbering 
TOC and adjusting the slider.


And if you open ViewSource and click whole document, you will see the
correct LaTeX code inserted into the document preamble to customize the
tocdepth

Günter



Hi All

This all seems to be working now thanks to your help. :-) 


Andrew: The only thing not quite resolved is a new issue, that binary
file. I can't seem to open or import it. So I can't even change the
compression setting.

Best Wishes

Mark :-)

Yes, I see I've sinned again. I created the document in 2.1 beta. I 
imagine you're using 2.0.something. So this time I've saved the document 
in 2.0 format and not bothered to compress it (it only comes to 14 kb). 
Now it should open in LyX 2.0. (But you seem to have got there anyway.)


Andrew



minitoc.20.lyx
Description: application/lyx


Re: New Feature Request: Chapter Contents

2013-10-15 Thread Mark Horton
Guenter Milde  users.sf.net> writes:

> 
> On 2013-10-13, Andrew Parsloe wrote:
> > On 14/10/2013 5:35 a.m., Mark Horton wrote:
> >> Mark Horton  yahoo.co.uk> writes:
> 
> ...
> 
> >> However I am still getting the problem of being unable to control the 
depth
> >> of the initial Table of contents.
> 
> > This is controlled in LyX by going to Document > Settings > Numbering & 
> > TOC and adjusting the slider.
> 
> And if you open View>Source and click "whole document", you will see the
> correct LaTeX code inserted into the document preamble to customize the
> tocdepth 
> 
> Günter
> 
>
Hi All

This all seems to be working now thanks to your help. :-) 


Andrew: The only thing not quite resolved is a "new" issue, that binary 
file. I can't seem to open or import it. So I can't even change the 
compression setting.  

Best Wishes

Mark :-)





Re: New Feature Request: Chapter Contents

2013-10-15 Thread Andrew Parsloe



On 16/10/2013 7:02 a.m., Mark Horton wrote:

Guenter Milde  users.sf.net> writes:



On 2013-10-13, Andrew Parsloe wrote:

On 14/10/2013 5:35 a.m., Mark Horton wrote:

Mark Horton  yahoo.co.uk> writes:


...


However I am still getting the problem of being unable to control the

depth

of the initial Table of contents.



This is controlled in LyX by going to Document > Settings > Numbering &
TOC and adjusting the slider.


And if you open View>Source and click "whole document", you will see the
correct LaTeX code inserted into the document preamble to customize the
tocdepth

Günter



Hi All

This all seems to be working now thanks to your help. :-) 


Andrew: The only thing not quite resolved is a "new" issue, that binary
file. I can't seem to open or import it. So I can't even change the
compression setting.

Best Wishes

Mark :-)

Yes, I see I've sinned again. I created the document in 2.1 beta. I 
imagine you're using 2.0.something. So this time I've saved the document 
in 2.0 format and not bothered to compress it (it only comes to 14 kb). 
Now it should open in LyX 2.0. (But you seem to have got there anyway.)


Andrew



minitoc.20.lyx
Description: application/lyx


Re: New Feature Request: Chapter Contents

2013-10-14 Thread Guenter Milde
On 2013-10-13, Andrew Parsloe wrote:
 On 14/10/2013 5:35 a.m., Mark Horton wrote:
 Mark Horton mark.horton001 at yahoo.co.uk writes:

...

 However I am still getting the problem of being unable to control the depth
 of the initial Table of contents.


 This is controlled in LyX by going to Document  Settings  Numbering  
 TOC and adjusting the slider.

And if you open ViewSource and click whole document, you will see the
correct LaTeX code inserted into the document preamble to customize the
tocdepth :-)

Günter



Re: New Feature Request: Chapter Contents

2013-10-14 Thread Guenter Milde
On 2013-10-13, Andrew Parsloe wrote:
 On 14/10/2013 5:35 a.m., Mark Horton wrote:
 Mark Horton mark.horton001 at yahoo.co.uk writes:

...

 However I am still getting the problem of being unable to control the depth
 of the initial Table of contents.


 This is controlled in LyX by going to Document  Settings  Numbering  
 TOC and adjusting the slider.

And if you open ViewSource and click whole document, you will see the
correct LaTeX code inserted into the document preamble to customize the
tocdepth :-)

Günter



Re: New Feature Request: Chapter Contents

2013-10-14 Thread Guenter Milde
On 2013-10-13, Andrew Parsloe wrote:
> On 14/10/2013 5:35 a.m., Mark Horton wrote:
>> Mark Horton  yahoo.co.uk> writes:

...

>> However I am still getting the problem of being unable to control the depth
>> of the initial Table of contents.


> This is controlled in LyX by going to Document > Settings > Numbering & 
> TOC and adjusting the slider.

And if you open View>Source and click "whole document", you will see the
correct LaTeX code inserted into the document preamble to customize the
tocdepth :-)

Günter



Re: New Feature Request: Chapter Contents

2013-10-13 Thread Mark Horton
Andrew Parsloe aparsloe at clear.net.nz writes:

 
 
 On 9/10/2013 11:34 a.m., Andrew Parsloe wrote:
 
  Stephano has replied, but he has not used MikTeX and doesn't use 
windows.
  Combining that with my near complete ignorance he has quite sensibly
  suggested I try to find out about installing packages with MikTeX.
 
  Having so far managed to produce a pretty impressive document (if only 
by
  weight) in LyX I am quite keen to keep it up and finish it in LyX if I
  can.
 
 
  Mark
 
 
  Have you managed to produce a pdf version of your document? If you have
  then you most likely already have MiKTeX installed on your system. Go to
  the Start button,  click on All Programs and scan down the list to
  MiKTeX, click on that, then on Maintenance, then on Package Manager.
  Scan down the list of packages until you come to minitoc. If it is
  already installed there will be a date in the Installed on column. If
  not, select minitoc and click the + button, upper left of the package
  manager window. Assuming you are currently connected to the internet,
  the minitoc package will be downloaded and installed for you.
 
  I omitted one item in the recipe for using minitoc in my previous
  posting. The sequence is this:
 
  1. Add \usepackage{minitoc} to your document preamble
 
  2. Insert \dominitoc in ERT (or TeX code) *before* your document's table
  of contents
 
  3. After each chapter heading insert \minitoc in ERT
 
  That's it. All the rest is tinkering or catering for special
  circumstances. The minitoc documentation is large, but only the first
  two chapters are relevant to the user.
 
  Andrew
 
 
 Further to the above, I've attached a summary about using minitoc with 
 LyX -- changing various settings. I was going to put it on the wiki, but 
 it's not clear to me exactly where to put it.
 
 Andrew
 
 Attachment (minitoc.lyx): application/x-lyx, 13 KiB


Hi Andrew

Thanks for that, I have a bit of your solution working...

Firstly your attached file is Binary, and I don't know what to do with it, 
it may lead to the info I need. If it is a link to the minitoc user manual I 
have it.

Next I tried to edit the latex “source”, as described. Because that doesn’t 
seem to be possible in Lyx I used TexWorks,  as found in the MiTeX2.9 
directory. 
However this meant exporting from Lyx to latex plain format. After doing the 
edits and re-importing back into Lyx I found that firstly the links to 
graphics were broken. The loss of graphics is not  a major problem because 
there are only 9 graphics in the whole document.
More of a problem (I think) is that I cannot view what I have done so far, 
(I have not used any option settings just put code in as suggested.) because 
lots of errors come up.
For the graphics there are…
LaTeX Error: Cannot determine size of graphic in 
C:/stringC:/Users/Mark/Download
For the command lines you said to insert there are…
Undefined control sequence.

Nevertheless I have continued to work in TeXworks to see how far I can get. 
With the Tables of Contents and have got quite far…
 The new mini TOC’s seem to be behaving ok, and respond to depth changes,  
but the initial Table of Contents still lists everything. I have tried a 
number of things including…
\setcounter{minitocdepth}{1}
\dominitoc
\tableofcontents

Or …

\mtcsetdepth{minitoc}{1}
\dominitoc
\tableofcontents

But whatever figure I put in, the initial TOC depth remains unchanged, 
listing everything.
I am probably missing something obvious, or it will be when pointed out :-)

Best Regards
Mark :-) 







Re: New Feature Request: Chapter Contents

2013-10-13 Thread Mark Horton
Mark Horton mark.horton001 at yahoo.co.uk writes:


 Nevertheless I have continued to work in TeXworks to see how far I can 
get. 
 With the Tables of Contents and have got quite far…
  The new mini TOC’s seem to be behaving ok, and respond to depth changes,  
 but the initial Table of Contents still lists everything. I have tried a 
 number of things including…
 \setcounter{minitocdepth}{1}
 \dominitoc
 \tableofcontents
 
 Or …
 
 \mtcsetdepth{minitoc}{1}
 \dominitoc
 \tableofcontents
 
 But whatever figure I put in, the initial TOC depth remains unchanged, 
 listing everything.
 I am probably missing something obvious, or it will be when pointed out 
 
 Best Regards
 Mark  
 
 

An update...

I have now inserted the commands into a Lyx document using the Lyx 
environment.
However I am still getting the problem of being unable to control the depth 
of the initial Table of contents.





Re: New Feature Request: Chapter Contents

2013-10-13 Thread Andrew Parsloe



On 14/10/2013 4:08 a.m., Mark Horton wrote:

Andrew Parsloe aparsloe at clear.net.nz writes:




On 9/10/2013 11:34 a.m., Andrew Parsloe wrote:



Stephano has replied, but he has not used MikTeX and doesn't use

windows.

Combining that with my near complete ignorance he has quite sensibly
suggested I try to find out about installing packages with MikTeX.

Having so far managed to produce a pretty impressive document (if only

by

weight) in LyX I am quite keen to keep it up and finish it in LyX if I
can.


Mark



Have you managed to produce a pdf version of your document? If you have
then you most likely already have MiKTeX installed on your system. Go to
the Start button,  click on All Programs and scan down the list to
MiKTeX, click on that, then on Maintenance, then on Package Manager.
Scan down the list of packages until you come to minitoc. If it is
already installed there will be a date in the Installed on column. If
not, select minitoc and click the + button, upper left of the package
manager window. Assuming you are currently connected to the internet,
the minitoc package will be downloaded and installed for you.

I omitted one item in the recipe for using minitoc in my previous
posting. The sequence is this:

1. Add \usepackage{minitoc} to your document preamble

2. Insert \dominitoc in ERT (or TeX code) *before* your document's table
of contents

3. After each chapter heading insert \minitoc in ERT

That's it. All the rest is tinkering or catering for special
circumstances. The minitoc documentation is large, but only the first
two chapters are relevant to the user.

Andrew



Further to the above, I've attached a summary about using minitoc with
LyX -- changing various settings. I was going to put it on the wiki, but
it's not clear to me exactly where to put it.

Andrew

Attachment (minitoc.lyx): application/x-lyx, 13 KiB



Hi Andrew

Thanks for that, I have a bit of your solution working...

Firstly your attached file is Binary, and I don't know what to do with it,
it may lead to the info I need. If it is a link to the minitoc user manual I
have it.

My apologies, I should have mentioned. I saved the file in compressed 
format so as not to burden the list with unnecessary bytes. If you open 
the file in LyX and look on the menu bar under Document, you will see 
Compressed there, with a tick beside it. Click on it to clear the 
compression. Next time you save the document it will be saved in 
uncompressed format. (The save icon may be greyed out. You may have to, 
e.g., tap the space bar then erase the space to enable the icon.)


Andrew


Next I tried to edit the latex “source”, as described. Because that doesn’t
seem to be possible in Lyx I used TexWorks,  as found in the MiTeX2.9
directory.
However this meant exporting from Lyx to latex plain format. After doing the
edits and re-importing back into Lyx I found that firstly the links to
graphics were broken. The loss of graphics is not  a major problem because
there are only 9 graphics in the whole document.
More of a problem (I think) is that I cannot view what I have done so far,
(I have not used any option settings just put code in as suggested.) because
lots of errors come up.
For the graphics there are…
LaTeX Error: Cannot determine size of graphic in
C:/stringC:/Users/Mark/Download
For the command lines you said to insert there are…
Undefined control sequence.

Nevertheless I have continued to work in TeXworks to see how far I can get.
With the Tables of Contents and have got quite far…
  The new mini TOC’s seem to be behaving ok, and respond to depth changes,
but the initial Table of Contents still lists everything. I have tried a
number of things including…
\setcounter{minitocdepth}{1}
\dominitoc
\tableofcontents

Or …

\mtcsetdepth{minitoc}{1}
\dominitoc
\tableofcontents

But whatever figure I put in, the initial TOC depth remains unchanged,
listing everything.
I am probably missing something obvious, or it will be when pointed out :-)

Best Regards
Mark :-)








Re: New Feature Request: Chapter Contents

2013-10-13 Thread Andrew Parsloe



On 14/10/2013 5:35 a.m., Mark Horton wrote:

Mark Horton mark.horton001 at yahoo.co.uk writes:



Nevertheless I have continued to work in TeXworks to see how far I can

get.

With the Tables of Contents and have got quite far…
  The new mini TOC’s seem to be behaving ok, and respond to depth changes,
but the initial Table of Contents still lists everything. I have tried a
number of things including…
\setcounter{minitocdepth}{1}
\dominitoc
\tableofcontents

Or …

\mtcsetdepth{minitoc}{1}
\dominitoc
\tableofcontents

But whatever figure I put in, the initial TOC depth remains unchanged,
listing everything.
I am probably missing something obvious, or it will be when pointed out

Best Regards
Mark




An update...

I have now inserted the commands into a Lyx document using the Lyx
environment.
However I am still getting the problem of being unable to control the depth
of the initial Table of contents.



This is controlled in LyX by going to Document  Settings  Numbering  
TOC and adjusting the slider.


Andrew


Re: New Feature Request: Chapter Contents

2013-10-13 Thread Mark Horton
Andrew Parsloe aparsloe at clear.net.nz writes:

 
 
 On 9/10/2013 11:34 a.m., Andrew Parsloe wrote:
 
  Stephano has replied, but he has not used MikTeX and doesn't use 
windows.
  Combining that with my near complete ignorance he has quite sensibly
  suggested I try to find out about installing packages with MikTeX.
 
  Having so far managed to produce a pretty impressive document (if only 
by
  weight) in LyX I am quite keen to keep it up and finish it in LyX if I
  can.
 
 
  Mark
 
 
  Have you managed to produce a pdf version of your document? If you have
  then you most likely already have MiKTeX installed on your system. Go to
  the Start button,  click on All Programs and scan down the list to
  MiKTeX, click on that, then on Maintenance, then on Package Manager.
  Scan down the list of packages until you come to minitoc. If it is
  already installed there will be a date in the Installed on column. If
  not, select minitoc and click the + button, upper left of the package
  manager window. Assuming you are currently connected to the internet,
  the minitoc package will be downloaded and installed for you.
 
  I omitted one item in the recipe for using minitoc in my previous
  posting. The sequence is this:
 
  1. Add \usepackage{minitoc} to your document preamble
 
  2. Insert \dominitoc in ERT (or TeX code) *before* your document's table
  of contents
 
  3. After each chapter heading insert \minitoc in ERT
 
  That's it. All the rest is tinkering or catering for special
  circumstances. The minitoc documentation is large, but only the first
  two chapters are relevant to the user.
 
  Andrew
 
 
 Further to the above, I've attached a summary about using minitoc with 
 LyX -- changing various settings. I was going to put it on the wiki, but 
 it's not clear to me exactly where to put it.
 
 Andrew
 
 Attachment (minitoc.lyx): application/x-lyx, 13 KiB


Hi Andrew

Thanks for that, I have a bit of your solution working...

Firstly your attached file is Binary, and I don't know what to do with it, 
it may lead to the info I need. If it is a link to the minitoc user manual I 
have it.

Next I tried to edit the latex “source”, as described. Because that doesn’t 
seem to be possible in Lyx I used TexWorks,  as found in the MiTeX2.9 
directory. 
However this meant exporting from Lyx to latex plain format. After doing the 
edits and re-importing back into Lyx I found that firstly the links to 
graphics were broken. The loss of graphics is not  a major problem because 
there are only 9 graphics in the whole document.
More of a problem (I think) is that I cannot view what I have done so far, 
(I have not used any option settings just put code in as suggested.) because 
lots of errors come up.
For the graphics there are…
LaTeX Error: Cannot determine size of graphic in 
C:/stringC:/Users/Mark/Download
For the command lines you said to insert there are…
Undefined control sequence.

Nevertheless I have continued to work in TeXworks to see how far I can get. 
With the Tables of Contents and have got quite far…
 The new mini TOC’s seem to be behaving ok, and respond to depth changes,  
but the initial Table of Contents still lists everything. I have tried a 
number of things including…
\setcounter{minitocdepth}{1}
\dominitoc
\tableofcontents

Or …

\mtcsetdepth{minitoc}{1}
\dominitoc
\tableofcontents

But whatever figure I put in, the initial TOC depth remains unchanged, 
listing everything.
I am probably missing something obvious, or it will be when pointed out :-)

Best Regards
Mark :-) 







Re: New Feature Request: Chapter Contents

2013-10-13 Thread Mark Horton
Mark Horton mark.horton001 at yahoo.co.uk writes:


 Nevertheless I have continued to work in TeXworks to see how far I can 
get. 
 With the Tables of Contents and have got quite far…
  The new mini TOC’s seem to be behaving ok, and respond to depth changes,  
 but the initial Table of Contents still lists everything. I have tried a 
 number of things including…
 \setcounter{minitocdepth}{1}
 \dominitoc
 \tableofcontents
 
 Or …
 
 \mtcsetdepth{minitoc}{1}
 \dominitoc
 \tableofcontents
 
 But whatever figure I put in, the initial TOC depth remains unchanged, 
 listing everything.
 I am probably missing something obvious, or it will be when pointed out 
 
 Best Regards
 Mark  
 
 

An update...

I have now inserted the commands into a Lyx document using the Lyx 
environment.
However I am still getting the problem of being unable to control the depth 
of the initial Table of contents.





Re: New Feature Request: Chapter Contents

2013-10-13 Thread Andrew Parsloe



On 14/10/2013 4:08 a.m., Mark Horton wrote:

Andrew Parsloe aparsloe at clear.net.nz writes:




On 9/10/2013 11:34 a.m., Andrew Parsloe wrote:



Stephano has replied, but he has not used MikTeX and doesn't use

windows.

Combining that with my near complete ignorance he has quite sensibly
suggested I try to find out about installing packages with MikTeX.

Having so far managed to produce a pretty impressive document (if only

by

weight) in LyX I am quite keen to keep it up and finish it in LyX if I
can.


Mark



Have you managed to produce a pdf version of your document? If you have
then you most likely already have MiKTeX installed on your system. Go to
the Start button,  click on All Programs and scan down the list to
MiKTeX, click on that, then on Maintenance, then on Package Manager.
Scan down the list of packages until you come to minitoc. If it is
already installed there will be a date in the Installed on column. If
not, select minitoc and click the + button, upper left of the package
manager window. Assuming you are currently connected to the internet,
the minitoc package will be downloaded and installed for you.

I omitted one item in the recipe for using minitoc in my previous
posting. The sequence is this:

1. Add \usepackage{minitoc} to your document preamble

2. Insert \dominitoc in ERT (or TeX code) *before* your document's table
of contents

3. After each chapter heading insert \minitoc in ERT

That's it. All the rest is tinkering or catering for special
circumstances. The minitoc documentation is large, but only the first
two chapters are relevant to the user.

Andrew



Further to the above, I've attached a summary about using minitoc with
LyX -- changing various settings. I was going to put it on the wiki, but
it's not clear to me exactly where to put it.

Andrew

Attachment (minitoc.lyx): application/x-lyx, 13 KiB



Hi Andrew

Thanks for that, I have a bit of your solution working...

Firstly your attached file is Binary, and I don't know what to do with it,
it may lead to the info I need. If it is a link to the minitoc user manual I
have it.

My apologies, I should have mentioned. I saved the file in compressed 
format so as not to burden the list with unnecessary bytes. If you open 
the file in LyX and look on the menu bar under Document, you will see 
Compressed there, with a tick beside it. Click on it to clear the 
compression. Next time you save the document it will be saved in 
uncompressed format. (The save icon may be greyed out. You may have to, 
e.g., tap the space bar then erase the space to enable the icon.)


Andrew


Next I tried to edit the latex “source”, as described. Because that doesn’t
seem to be possible in Lyx I used TexWorks,  as found in the MiTeX2.9
directory.
However this meant exporting from Lyx to latex plain format. After doing the
edits and re-importing back into Lyx I found that firstly the links to
graphics were broken. The loss of graphics is not  a major problem because
there are only 9 graphics in the whole document.
More of a problem (I think) is that I cannot view what I have done so far,
(I have not used any option settings just put code in as suggested.) because
lots of errors come up.
For the graphics there are…
LaTeX Error: Cannot determine size of graphic in
C:/stringC:/Users/Mark/Download
For the command lines you said to insert there are…
Undefined control sequence.

Nevertheless I have continued to work in TeXworks to see how far I can get.
With the Tables of Contents and have got quite far…
  The new mini TOC’s seem to be behaving ok, and respond to depth changes,
but the initial Table of Contents still lists everything. I have tried a
number of things including…
\setcounter{minitocdepth}{1}
\dominitoc
\tableofcontents

Or …

\mtcsetdepth{minitoc}{1}
\dominitoc
\tableofcontents

But whatever figure I put in, the initial TOC depth remains unchanged,
listing everything.
I am probably missing something obvious, or it will be when pointed out :-)

Best Regards
Mark :-)








Re: New Feature Request: Chapter Contents

2013-10-13 Thread Andrew Parsloe



On 14/10/2013 5:35 a.m., Mark Horton wrote:

Mark Horton mark.horton001 at yahoo.co.uk writes:



Nevertheless I have continued to work in TeXworks to see how far I can

get.

With the Tables of Contents and have got quite far…
  The new mini TOC’s seem to be behaving ok, and respond to depth changes,
but the initial Table of Contents still lists everything. I have tried a
number of things including…
\setcounter{minitocdepth}{1}
\dominitoc
\tableofcontents

Or …

\mtcsetdepth{minitoc}{1}
\dominitoc
\tableofcontents

But whatever figure I put in, the initial TOC depth remains unchanged,
listing everything.
I am probably missing something obvious, or it will be when pointed out

Best Regards
Mark




An update...

I have now inserted the commands into a Lyx document using the Lyx
environment.
However I am still getting the problem of being unable to control the depth
of the initial Table of contents.



This is controlled in LyX by going to Document  Settings  Numbering  
TOC and adjusting the slider.


Andrew


Re: New Feature Request: Chapter Contents

2013-10-13 Thread Mark Horton
Andrew Parsloe  clear.net.nz> writes:

> 
> 
> On 9/10/2013 11:34 a.m., Andrew Parsloe wrote:
> >
> >> Stephano has replied, but he has not used MikTeX and doesn't use 
windows.
> >> Combining that with my near complete ignorance he has quite sensibly
> >> suggested I try to find out about installing packages with MikTeX.
> >>
> >> Having so far managed to produce a pretty impressive document (if only 
by
> >> weight) in LyX I am quite keen to keep it up and finish it in LyX if I
> >> can.
> >>
> >>
> >> Mark
> >>
> >
> > Have you managed to produce a pdf version of your document? If you have
> > then you most likely already have MiKTeX installed on your system. Go to
> > the Start button,  click on All Programs and scan down the list to
> > MiKTeX, click on that, then on Maintenance, then on Package Manager.
> > Scan down the list of packages until you come to minitoc. If it is
> > already installed there will be a date in the "Installed on" column. If
> > not, select minitoc and click the + button, upper left of the package
> > manager window. Assuming you are currently connected to the internet,
> > the minitoc package will be downloaded and installed for you.
> >
> > I omitted one item in the recipe for using minitoc in my previous
> > posting. The sequence is this:
> >
> > 1. Add \usepackage{minitoc} to your document preamble
> >
> > 2. Insert \dominitoc in ERT (or TeX code) *before* your document's table
> > of contents
> >
> > 3. After each chapter heading insert \minitoc in ERT
> >
> > That's it. All the rest is tinkering or catering for special
> > circumstances. The minitoc documentation is large, but only the first
> > two chapters are relevant to the user.
> >
> > Andrew
> >
> 
> Further to the above, I've attached a summary about using minitoc with 
> LyX -- changing various settings. I was going to put it on the wiki, but 
> it's not clear to me exactly where to put it.
> 
> Andrew
> 
> Attachment (minitoc.lyx): application/x-lyx, 13 KiB


Hi Andrew

Thanks for that, I have a bit of your solution working...

Firstly your attached file is Binary, and I don't know what to do with it, 
it may lead to the info I need. If it is a link to the minitoc user manual I 
have it.

Next I tried to edit the latex “source”, as described. Because that doesn’t 
seem to be possible in Lyx I used TexWorks,  as found in the MiTeX2.9 
directory. 
However this meant exporting from Lyx to latex plain format. After doing the 
edits and re-importing back into Lyx I found that firstly the links to 
graphics were broken. The loss of graphics is not  a major problem because 
there are only 9 graphics in the whole document.
More of a problem (I think) is that I cannot view what I have done so far, 
(I have not used any option settings just put code in as suggested.) because 
lots of errors come up.
For the graphics there are…
LaTeX Error: Cannot determine size of graphic in 
C:/string"C:/Users/Mark/Download
For the command lines you said to insert there are…
Undefined control sequence.

Nevertheless I have continued to work in TeXworks to see how far I can get. 
With the Tables of Contents and have got quite far…
 The new mini TOC’s seem to be behaving ok, and respond to depth changes,  
but the initial Table of Contents still lists everything. I have tried a 
number of things including…
\setcounter{minitocdepth}{1}
\dominitoc
\tableofcontents

Or …

\mtcsetdepth{minitoc}{1}
\dominitoc
\tableofcontents

But whatever figure I put in, the initial TOC depth remains unchanged, 
listing everything.
I am probably missing something obvious, or it will be when pointed out :-)

Best Regards
Mark :-) 







Re: New Feature Request: Chapter Contents

2013-10-13 Thread Mark Horton
Mark Horton  yahoo.co.uk> writes:


> Nevertheless I have continued to work in TeXworks to see how far I can 
get. 
> With the Tables of Contents and have got quite far…
>  The new mini TOC’s seem to be behaving ok, and respond to depth changes,  
> but the initial Table of Contents still lists everything. I have tried a 
> number of things including…
> \setcounter{minitocdepth}{1}
> \dominitoc
> \tableofcontents
> 
> Or …
> 
> \mtcsetdepth{minitoc}{1}
> \dominitoc
> \tableofcontents
> 
> But whatever figure I put in, the initial TOC depth remains unchanged, 
> listing everything.
> I am probably missing something obvious, or it will be when pointed out 
> 
> Best Regards
> Mark  
> 
> 

An update...

I have now inserted the commands into a Lyx document using the Lyx 
environment.
However I am still getting the problem of being unable to control the depth 
of the initial Table of contents.





Re: New Feature Request: Chapter Contents

2013-10-13 Thread Andrew Parsloe



On 14/10/2013 4:08 a.m., Mark Horton wrote:

Andrew Parsloe  clear.net.nz> writes:




On 9/10/2013 11:34 a.m., Andrew Parsloe wrote:



Stephano has replied, but he has not used MikTeX and doesn't use

windows.

Combining that with my near complete ignorance he has quite sensibly
suggested I try to find out about installing packages with MikTeX.

Having so far managed to produce a pretty impressive document (if only

by

weight) in LyX I am quite keen to keep it up and finish it in LyX if I
can.


Mark



Have you managed to produce a pdf version of your document? If you have
then you most likely already have MiKTeX installed on your system. Go to
the Start button,  click on All Programs and scan down the list to
MiKTeX, click on that, then on Maintenance, then on Package Manager.
Scan down the list of packages until you come to minitoc. If it is
already installed there will be a date in the "Installed on" column. If
not, select minitoc and click the + button, upper left of the package
manager window. Assuming you are currently connected to the internet,
the minitoc package will be downloaded and installed for you.

I omitted one item in the recipe for using minitoc in my previous
posting. The sequence is this:

1. Add \usepackage{minitoc} to your document preamble

2. Insert \dominitoc in ERT (or TeX code) *before* your document's table
of contents

3. After each chapter heading insert \minitoc in ERT

That's it. All the rest is tinkering or catering for special
circumstances. The minitoc documentation is large, but only the first
two chapters are relevant to the user.

Andrew



Further to the above, I've attached a summary about using minitoc with
LyX -- changing various settings. I was going to put it on the wiki, but
it's not clear to me exactly where to put it.

Andrew

Attachment (minitoc.lyx): application/x-lyx, 13 KiB



Hi Andrew

Thanks for that, I have a bit of your solution working...

Firstly your attached file is Binary, and I don't know what to do with it,
it may lead to the info I need. If it is a link to the minitoc user manual I
have it.

My apologies, I should have mentioned. I saved the file in compressed 
format so as not to burden the list with unnecessary bytes. If you open 
the file in LyX and look on the menu bar under Document, you will see 
Compressed there, with a tick beside it. Click on it to clear the 
compression. Next time you save the document it will be saved in 
uncompressed format. (The save icon may be greyed out. You may have to, 
e.g., tap the space bar then erase the space to enable the icon.)


Andrew


Next I tried to edit the latex “source”, as described. Because that doesn’t
seem to be possible in Lyx I used TexWorks,  as found in the MiTeX2.9
directory.
However this meant exporting from Lyx to latex plain format. After doing the
edits and re-importing back into Lyx I found that firstly the links to
graphics were broken. The loss of graphics is not  a major problem because
there are only 9 graphics in the whole document.
More of a problem (I think) is that I cannot view what I have done so far,
(I have not used any option settings just put code in as suggested.) because
lots of errors come up.
For the graphics there are…
LaTeX Error: Cannot determine size of graphic in
C:/string"C:/Users/Mark/Download
For the command lines you said to insert there are…
Undefined control sequence.

Nevertheless I have continued to work in TeXworks to see how far I can get.
With the Tables of Contents and have got quite far…
  The new mini TOC’s seem to be behaving ok, and respond to depth changes,
but the initial Table of Contents still lists everything. I have tried a
number of things including…
\setcounter{minitocdepth}{1}
\dominitoc
\tableofcontents

Or …

\mtcsetdepth{minitoc}{1}
\dominitoc
\tableofcontents

But whatever figure I put in, the initial TOC depth remains unchanged,
listing everything.
I am probably missing something obvious, or it will be when pointed out :-)

Best Regards
Mark :-)








Re: New Feature Request: Chapter Contents

2013-10-13 Thread Andrew Parsloe



On 14/10/2013 5:35 a.m., Mark Horton wrote:

Mark Horton  yahoo.co.uk> writes:



Nevertheless I have continued to work in TeXworks to see how far I can

get.

With the Tables of Contents and have got quite far…
  The new mini TOC’s seem to be behaving ok, and respond to depth changes,
but the initial Table of Contents still lists everything. I have tried a
number of things including…
\setcounter{minitocdepth}{1}
\dominitoc
\tableofcontents

Or …

\mtcsetdepth{minitoc}{1}
\dominitoc
\tableofcontents

But whatever figure I put in, the initial TOC depth remains unchanged,
listing everything.
I am probably missing something obvious, or it will be when pointed out

Best Regards
Mark




An update...

I have now inserted the commands into a Lyx document using the Lyx
environment.
However I am still getting the problem of being unable to control the depth
of the initial Table of contents.



This is controlled in LyX by going to Document > Settings > Numbering & 
TOC and adjusting the slider.


Andrew


Re: New Feature Request: Chapter Contents

2013-10-09 Thread Andrew Parsloe



On 9/10/2013 11:34 a.m., Andrew Parsloe wrote:



Stephano has replied, but he has not used MikTeX and doesn't use windows.
Combining that with my near complete ignorance he has quite sensibly
suggested I try to find out about installing packages with MikTeX.

Having so far managed to produce a pretty impressive document (if only by
weight) in LyX I am quite keen to keep it up and finish it in LyX if I
can.


Mark



Have you managed to produce a pdf version of your document? If you have
then you most likely already have MiKTeX installed on your system. Go to
the Start button,  click on All Programs and scan down the list to
MiKTeX, click on that, then on Maintenance, then on Package Manager.
Scan down the list of packages until you come to minitoc. If it is
already installed there will be a date in the Installed on column. If
not, select minitoc and click the + button, upper left of the package
manager window. Assuming you are currently connected to the internet,
the minitoc package will be downloaded and installed for you.

I omitted one item in the recipe for using minitoc in my previous
posting. The sequence is this:

1. Add \usepackage{minitoc} to your document preamble

2. Insert \dominitoc in ERT (or TeX code) *before* your document's table
of contents

3. After each chapter heading insert \minitoc in ERT

That's it. All the rest is tinkering or catering for special
circumstances. The minitoc documentation is large, but only the first
two chapters are relevant to the user.

Andrew



Further to the above, I've attached a summary about using minitoc with 
LyX -- changing various settings. I was going to put it on the wiki, but 
it's not clear to me exactly where to put it.


Andrew


minitoc.lyx
Description: application/lyx


Re: New Feature Request: Chapter Contents

2013-10-09 Thread Andrew Parsloe



On 9/10/2013 11:34 a.m., Andrew Parsloe wrote:



Stephano has replied, but he has not used MikTeX and doesn't use windows.
Combining that with my near complete ignorance he has quite sensibly
suggested I try to find out about installing packages with MikTeX.

Having so far managed to produce a pretty impressive document (if only by
weight) in LyX I am quite keen to keep it up and finish it in LyX if I
can.


Mark



Have you managed to produce a pdf version of your document? If you have
then you most likely already have MiKTeX installed on your system. Go to
the Start button,  click on All Programs and scan down the list to
MiKTeX, click on that, then on Maintenance, then on Package Manager.
Scan down the list of packages until you come to minitoc. If it is
already installed there will be a date in the Installed on column. If
not, select minitoc and click the + button, upper left of the package
manager window. Assuming you are currently connected to the internet,
the minitoc package will be downloaded and installed for you.

I omitted one item in the recipe for using minitoc in my previous
posting. The sequence is this:

1. Add \usepackage{minitoc} to your document preamble

2. Insert \dominitoc in ERT (or TeX code) *before* your document's table
of contents

3. After each chapter heading insert \minitoc in ERT

That's it. All the rest is tinkering or catering for special
circumstances. The minitoc documentation is large, but only the first
two chapters are relevant to the user.

Andrew



Further to the above, I've attached a summary about using minitoc with 
LyX -- changing various settings. I was going to put it on the wiki, but 
it's not clear to me exactly where to put it.


Andrew


minitoc.lyx
Description: application/lyx


Re: New Feature Request: Chapter Contents

2013-10-09 Thread Andrew Parsloe



On 9/10/2013 11:34 a.m., Andrew Parsloe wrote:



Stephano has replied, but he has not used MikTeX and doesn't use windows.
Combining that with my near complete ignorance he has quite sensibly
suggested I try to find out about installing packages with MikTeX.

Having so far managed to produce a pretty impressive document (if only by
weight) in LyX I am quite keen to keep it up and finish it in LyX if I
can.


Mark



Have you managed to produce a pdf version of your document? If you have
then you most likely already have MiKTeX installed on your system. Go to
the Start button,  click on All Programs and scan down the list to
MiKTeX, click on that, then on Maintenance, then on Package Manager.
Scan down the list of packages until you come to minitoc. If it is
already installed there will be a date in the "Installed on" column. If
not, select minitoc and click the + button, upper left of the package
manager window. Assuming you are currently connected to the internet,
the minitoc package will be downloaded and installed for you.

I omitted one item in the recipe for using minitoc in my previous
posting. The sequence is this:

1. Add \usepackage{minitoc} to your document preamble

2. Insert \dominitoc in ERT (or TeX code) *before* your document's table
of contents

3. After each chapter heading insert \minitoc in ERT

That's it. All the rest is tinkering or catering for special
circumstances. The minitoc documentation is large, but only the first
two chapters are relevant to the user.

Andrew



Further to the above, I've attached a summary about using minitoc with 
LyX -- changing various settings. I was going to put it on the wiki, but 
it's not clear to me exactly where to put it.


Andrew


minitoc.lyx
Description: application/lyx


Re: New Feature Request: Chapter Contents

2013-10-08 Thread Mark Horton
stefano franchi stefano.franchi at gmail.com writes:

 
 
 
 On Mon, Oct 7, 2013 at 5:17 PM, Mark Horton mark.horton001 at 
yahoo.co.uk wrote:I found the package to do the job called Minitoc. 
 Unfortunately being anignorant beginner in this field  I don't know how to 
Install it  and make
 it work from Latex.
 
 
 
 Mark,
 
 installation of a Latex package is usually done, nowadays, by invoking the 
TeX package manager used by your TeX distribution. But there are several of 
those, and we can't help you further unless you tell us more about your 
system. Which platform are you on? Linux, Mac, Windows? How did you install 
(La)TeX? Detailed instructions on how to install the minitoc package depends 
on the answers to those questions.Cheers,Stefano
 
  
 
 
 -- __Stefano 
FranchiAssociate Research ProfessorDepartment of Hispanic Studies            
Ph:   +1 (979) 845-2125
 Texas AM University                          Fax:  +1 (979) 845-
6421College Station, Texas, USAstefano at 
tamu.eduhttp://stefano.cleinias.org
 
 
Wow Thanks Stephano, this is a very helpful group.

I am Using Windows 7 Home Premium and Lyx ver 2.06
I have downloaded an upgrade and don't remember exactly how I did the 
original.
I do remember it was very simple. I downloaded the Lyx file and then ran the 
Lyx installer application, choosing whatever defaults were offered. 
I don't recall installing La(Tex) in a separate process.

Regards

Mark :-)
 





Re: New Feature Request: Chapter Contents

2013-10-08 Thread Mark Horton
Mark Horton mark.horton001 at yahoo.co.uk writes:

 
 stefano franchi stefano.franchi at gmail.com writes:
 
  
  
  
  On Mon, Oct 7, 2013 at 5:17 PM, Mark Horton mark.horton001 at 
 yahoo.co.uk wrote:I found the package to do the job called Minitoc. 
  Unfortunately being anignorant beginner in this field  I don't know how 
to 
 Install it  and make
  it work from Latex.
  
  
  
  Mark,
  
  installation of a Latex package is usually done, nowadays, by invoking 
the 
 TeX package manager used by your TeX distribution. But there are several 
of 
 those, and we can't help you further unless you tell us more about your 
 system. Which platform are you on? Linux, Mac, Windows? How did you 
install 
 (La)TeX? Detailed instructions on how to install the minitoc package 
depends 
 on the answers to those questions.Cheers,Stefano
  
   
  
  
  -- __Stefano 
 FranchiAssociate Research ProfessorDepartment of Hispanic Studies         
   
 Ph:   +1 (979) 845-2125
  Texas AM University                          Fax:  +1 (979) 845-
 6421College Station, Texas, USAstefano at 
 tamu.eduhttp://stefano.cleinias.org
  
  
 Wow Thanks Stephano, this is a very helpful group.
 
 I am Using Windows 7 Home Premium and Lyx ver 2.06
 I have downloaded an upgrade and don't remember exactly how I did the 
 original.
 I do remember it was very simple. I downloaded the Lyx file and then ran 
the 
 Lyx installer application, choosing whatever defaults were offered. 
 I don't recall installing La(Tex) in a separate process.
 
 Regards
 
 Mark 
 
 
Stephano has replied, but he has not used MikTeX and doesn't use windows. 
Combining that with my near complete ignorance he has quite sensibly 
suggested I try to find out about installing packages with MikTeX.

Having so far managed to produce a pretty impressive document (if only by 
weight) in LyX I am quite keen to keep it up and finish it in LyX if I can.


Mark  







Re: New Feature Request: Chapter Contents

2013-10-08 Thread Andrew Parsloe



Stephano has replied, but he has not used MikTeX and doesn't use windows.
Combining that with my near complete ignorance he has quite sensibly
suggested I try to find out about installing packages with MikTeX.

Having so far managed to produce a pretty impressive document (if only by
weight) in LyX I am quite keen to keep it up and finish it in LyX if I can.


Mark



Have you managed to produce a pdf version of your document? If you have 
then you most likely already have MiKTeX installed on your system. Go to 
the Start button,  click on All Programs and scan down the list to 
MiKTeX, click on that, then on Maintenance, then on Package Manager. 
Scan down the list of packages until you come to minitoc. If it is 
already installed there will be a date in the Installed on column. If 
not, select minitoc and click the + button, upper left of the package 
manager window. Assuming you are currently connected to the internet, 
the minitoc package will be downloaded and installed for you.


I omitted one item in the recipe for using minitoc in my previous 
posting. The sequence is this:


1. Add \usepackage{minitoc} to your document preamble

2. Insert \dominitoc in ERT (or TeX code) *before* your document's table 
of contents


3. After each chapter heading insert \minitoc in ERT

That's it. All the rest is tinkering or catering for special 
circumstances. The minitoc documentation is large, but only the first 
two chapters are relevant to the user.


Andrew


Re: New Feature Request: Chapter Contents

2013-10-08 Thread Mark Horton
stefano franchi stefano.franchi at gmail.com writes:

 
 
 
 On Mon, Oct 7, 2013 at 5:17 PM, Mark Horton mark.horton001 at 
yahoo.co.uk wrote:I found the package to do the job called Minitoc. 
 Unfortunately being anignorant beginner in this field  I don't know how to 
Install it  and make
 it work from Latex.
 
 
 
 Mark,
 
 installation of a Latex package is usually done, nowadays, by invoking the 
TeX package manager used by your TeX distribution. But there are several of 
those, and we can't help you further unless you tell us more about your 
system. Which platform are you on? Linux, Mac, Windows? How did you install 
(La)TeX? Detailed instructions on how to install the minitoc package depends 
on the answers to those questions.Cheers,Stefano
 
  
 
 
 -- __Stefano 
FranchiAssociate Research ProfessorDepartment of Hispanic Studies            
Ph:   +1 (979) 845-2125
 Texas AM University                          Fax:  +1 (979) 845-
6421College Station, Texas, USAstefano at 
tamu.eduhttp://stefano.cleinias.org
 
 
Wow Thanks Stephano, this is a very helpful group.

I am Using Windows 7 Home Premium and Lyx ver 2.06
I have downloaded an upgrade and don't remember exactly how I did the 
original.
I do remember it was very simple. I downloaded the Lyx file and then ran the 
Lyx installer application, choosing whatever defaults were offered. 
I don't recall installing La(Tex) in a separate process.

Regards

Mark :-)
 





Re: New Feature Request: Chapter Contents

2013-10-08 Thread Mark Horton
Mark Horton mark.horton001 at yahoo.co.uk writes:

 
 stefano franchi stefano.franchi at gmail.com writes:
 
  
  
  
  On Mon, Oct 7, 2013 at 5:17 PM, Mark Horton mark.horton001 at 
 yahoo.co.uk wrote:I found the package to do the job called Minitoc. 
  Unfortunately being anignorant beginner in this field  I don't know how 
to 
 Install it  and make
  it work from Latex.
  
  
  
  Mark,
  
  installation of a Latex package is usually done, nowadays, by invoking 
the 
 TeX package manager used by your TeX distribution. But there are several 
of 
 those, and we can't help you further unless you tell us more about your 
 system. Which platform are you on? Linux, Mac, Windows? How did you 
install 
 (La)TeX? Detailed instructions on how to install the minitoc package 
depends 
 on the answers to those questions.Cheers,Stefano
  
   
  
  
  -- __Stefano 
 FranchiAssociate Research ProfessorDepartment of Hispanic Studies         
   
 Ph:   +1 (979) 845-2125
  Texas AM University                          Fax:  +1 (979) 845-
 6421College Station, Texas, USAstefano at 
 tamu.eduhttp://stefano.cleinias.org
  
  
 Wow Thanks Stephano, this is a very helpful group.
 
 I am Using Windows 7 Home Premium and Lyx ver 2.06
 I have downloaded an upgrade and don't remember exactly how I did the 
 original.
 I do remember it was very simple. I downloaded the Lyx file and then ran 
the 
 Lyx installer application, choosing whatever defaults were offered. 
 I don't recall installing La(Tex) in a separate process.
 
 Regards
 
 Mark 
 
 
Stephano has replied, but he has not used MikTeX and doesn't use windows. 
Combining that with my near complete ignorance he has quite sensibly 
suggested I try to find out about installing packages with MikTeX.

Having so far managed to produce a pretty impressive document (if only by 
weight) in LyX I am quite keen to keep it up and finish it in LyX if I can.


Mark  







Re: New Feature Request: Chapter Contents

2013-10-08 Thread Andrew Parsloe



Stephano has replied, but he has not used MikTeX and doesn't use windows.
Combining that with my near complete ignorance he has quite sensibly
suggested I try to find out about installing packages with MikTeX.

Having so far managed to produce a pretty impressive document (if only by
weight) in LyX I am quite keen to keep it up and finish it in LyX if I can.


Mark



Have you managed to produce a pdf version of your document? If you have 
then you most likely already have MiKTeX installed on your system. Go to 
the Start button,  click on All Programs and scan down the list to 
MiKTeX, click on that, then on Maintenance, then on Package Manager. 
Scan down the list of packages until you come to minitoc. If it is 
already installed there will be a date in the Installed on column. If 
not, select minitoc and click the + button, upper left of the package 
manager window. Assuming you are currently connected to the internet, 
the minitoc package will be downloaded and installed for you.


I omitted one item in the recipe for using minitoc in my previous 
posting. The sequence is this:


1. Add \usepackage{minitoc} to your document preamble

2. Insert \dominitoc in ERT (or TeX code) *before* your document's table 
of contents


3. After each chapter heading insert \minitoc in ERT

That's it. All the rest is tinkering or catering for special 
circumstances. The minitoc documentation is large, but only the first 
two chapters are relevant to the user.


Andrew


Re: New Feature Request: Chapter Contents

2013-10-08 Thread Mark Horton
stefano franchi  gmail.com> writes:

> 
> 
> 
> On Mon, Oct 7, 2013 at 5:17 PM, Mark Horton  
yahoo.co.uk> wrote:I found the "package" to do the job called Minitoc. 
 Unfortunately being anignorant beginner in this field  I don't know how to 
"Install it " and make
> it work from Latex.
> 
> 
> 
> Mark,
> 
> installation of a Latex package is usually done, nowadays, by invoking the 
TeX package manager used by your TeX distribution. But there are several of 
those, and we can't help you further unless you tell us more about your 
system. Which platform are you on? Linux, Mac, Windows? How did you install 
(La)TeX? Detailed instructions on how to install the minitoc package depends 
on the answers to those questions.Cheers,Stefano
> 
>  
> 
> 
> -- __Stefano 
FranchiAssociate Research ProfessorDepartment of Hispanic Studies            
Ph:   +1 (979) 845-2125
> Texas A University                          Fax:  +1 (979) 845-
6421College Station, Texas, USAstefano  
tamu.eduhttp://stefano.cleinias.org
> 
> 
Wow Thanks Stephano, this is a very helpful group.

I am Using Windows 7 Home Premium and Lyx ver 2.06
I have downloaded an upgrade and don't remember exactly how I did the 
original.
I do remember it was very simple. I downloaded the Lyx file and then ran the 
Lyx installer application, choosing whatever defaults were offered. 
I don't recall installing La(Tex) in a separate process.

Regards

Mark :-)
 





Re: New Feature Request: Chapter Contents

2013-10-08 Thread Mark Horton
Mark Horton  yahoo.co.uk> writes:

> 
> stefano franchi  gmail.com> writes:
> 
> > 
> > 
> > 
> > On Mon, Oct 7, 2013 at 5:17 PM, Mark Horton  
> yahoo.co.uk> wrote:I found the "package" to do the job called Minitoc. 
>  Unfortunately being anignorant beginner in this field  I don't know how 
to 
> "Install it " and make
> > it work from Latex.
> > 
> > 
> > 
> > Mark,
> > 
> > installation of a Latex package is usually done, nowadays, by invoking 
the 
> TeX package manager used by your TeX distribution. But there are several 
of 
> those, and we can't help you further unless you tell us more about your 
> system. Which platform are you on? Linux, Mac, Windows? How did you 
install 
> (La)TeX? Detailed instructions on how to install the minitoc package 
depends 
> on the answers to those questions.Cheers,Stefano
> > 
> >  
> > 
> > 
> > -- __Stefano 
> FranchiAssociate Research ProfessorDepartment of Hispanic Studies         
   
> Ph:   +1 (979) 845-2125
> > Texas A University                          Fax:  +1 (979) 845-
> 6421College Station, Texas, USAstefano  
> tamu.eduhttp://stefano.cleinias.org
> > 
> > 
> Wow Thanks Stephano, this is a very helpful group.
> 
> I am Using Windows 7 Home Premium and Lyx ver 2.06
> I have downloaded an upgrade and don't remember exactly how I did the 
> original.
> I do remember it was very simple. I downloaded the Lyx file and then ran 
the 
> Lyx installer application, choosing whatever defaults were offered. 
> I don't recall installing La(Tex) in a separate process.
> 
> Regards
> 
> Mark 
> 
> 
Stephano has replied, but he has not used MikTeX and doesn't use windows. 
Combining that with my near complete ignorance he has quite sensibly 
suggested I try to find out about installing packages with MikTeX.

Having so far managed to produce a pretty impressive document (if only by 
weight) in LyX I am quite keen to keep it up and finish it in LyX if I can.


Mark  







Re: New Feature Request: Chapter Contents

2013-10-08 Thread Andrew Parsloe



Stephano has replied, but he has not used MikTeX and doesn't use windows.
Combining that with my near complete ignorance he has quite sensibly
suggested I try to find out about installing packages with MikTeX.

Having so far managed to produce a pretty impressive document (if only by
weight) in LyX I am quite keen to keep it up and finish it in LyX if I can.


Mark



Have you managed to produce a pdf version of your document? If you have 
then you most likely already have MiKTeX installed on your system. Go to 
the Start button,  click on All Programs and scan down the list to 
MiKTeX, click on that, then on Maintenance, then on Package Manager. 
Scan down the list of packages until you come to minitoc. If it is 
already installed there will be a date in the "Installed on" column. If 
not, select minitoc and click the + button, upper left of the package 
manager window. Assuming you are currently connected to the internet, 
the minitoc package will be downloaded and installed for you.


I omitted one item in the recipe for using minitoc in my previous 
posting. The sequence is this:


1. Add \usepackage{minitoc} to your document preamble

2. Insert \dominitoc in ERT (or TeX code) *before* your document's table 
of contents


3. After each chapter heading insert \minitoc in ERT

That's it. All the rest is tinkering or catering for special 
circumstances. The minitoc documentation is large, but only the first 
two chapters are relevant to the user.


Andrew


Re: New Feature Request: Chapter Contents

2013-10-07 Thread Guenter Milde
On 2013-10-06, Andrew Parsloe wrote:
 On 7/10/2013 4:49 a.m., Richard Heck wrote:
 On 10/06/2013 07:33 AM, Mark Horton wrote:
 Hi Developers

 It would make navigation a lot easier for large documents if we had the
 the ability to generate a contents of Chapters at the start.

 Plus a more detailed contents page at the start of each Chapter.

...

 I've used the LaTeX minitoc package successfully with LyX for a large 
 book (600 pages). It creates a table of contents for each chapter, 
 inserted at the start of the chapter. I restricted the main TOC at the 
 start of the book to section level, but each chapter TOC was to 
 subsubsection level. Each chapter has \minitoc in ERT after the chapter 
 heading, but that's all, so ERT use is minimal. The preamble to the 
 master document (each chapter is a child document  has nothing in the 
 preamble) has

 \usepackage[tight]{minitoc}
 \setcounter{minitocdepth}{3}
 \setlength{\mtcindent}{24pt}
 \renewcommand{\mtcfont}{\small\rm}
 \renewcommand{\mtcSfont}{\small\bf}
 \renewcommand{\mtcSSSfont}{\footnotesize\it}
 \renewcommand{\mtctitle}{}

 which shows the kind of tailoring to individual whims that is possible.

It should be fairly easy to create a LyX module to support the minitoc
package.

Günter



Re: New Feature Request: Chapter Contents

2013-10-07 Thread Mark Horton
Guenter Milde milde at users.sf.net writes:

 
 On 2013-10-06, Andrew Parsloe wrote:
  On 7/10/2013 4:49 a.m., Richard Heck wrote:
  On 10/06/2013 07:33 AM, Mark Horton wrote:
  Hi Developers
 
  It would make navigation a lot easier for large documents if we had 
the
  the ability to generate a contents of Chapters at the start.
 
  Plus a more detailed contents page at the start of each Chapter.
 
 ...
 
  I've used the LaTeX minitoc package successfully with LyX for a large 
  book (600 pages). It creates a table of contents for each chapter, 
  inserted at the start of the chapter. I restricted the main TOC at the 
  start of the book to section level, but each chapter TOC was to 
  subsubsection level. Each chapter has \minitoc in ERT after the chapter 
  heading, but that's all, so ERT use is minimal. The preamble to the 
  master document (each chapter is a child document  has nothing in the 
  preamble) has
 
  \usepackage[tight]{minitoc}
  \setcounter{minitocdepth}{3}
  \setlength{\mtcindent}{24pt}
  \renewcommand{\mtcfont}{\small\rm}
  \renewcommand{\mtcSfont}{\small\bf}
  \renewcommand{\mtcSSSfont}{\footnotesize\it}
  \renewcommand{\mtctitle}{}
 
  which shows the kind of tailoring to individual whims that is possible.
 
 It should be fairly easy to create a LyX module to support the minitoc
 package.
 
 Günter
 
 
Hi Richard Andrew and Günter

Thanks for your replies.

I found the package to do the job called Minitoc.  Unfortunately being an 
ignorant beginner in this field  I don't know how to Install it  and make 
it work from Latex.

It appears to have no windows type executable or install files in the set I 
have downloaded. Though I guess some of them may be some sort of macro 
runable in Latex based software.

The installation instructions suggest were some files should go, but I 
haven't found were all of them should go yet. Even if they were all located 
it gives no indication as to what to do next. 
 
Is there somewhere on the LyX site which gives some general guide to the 
principles of installing such packages to use from Lyx?  Or am I thinking 
nonsense that won't happen for reasons I don't understand? Is the long 
learning curve of Latex the only way forwards for me?

Best Regards

Mark :-)





Re: New Feature Request: Chapter Contents

2013-10-07 Thread stefano franchi
On Mon, Oct 7, 2013 at 5:17 PM, Mark Horton mark.horton...@yahoo.co.ukwrote:

 I found the package to do the job called Minitoc.  Unfortunately being an
 ignorant beginner in this field  I don't know how to Install it  and make
 it work from Latex.


Mark,

installation of a Latex package is usually done, nowadays, by invoking the
TeX package manager used by your TeX distribution. But there are several of
those, and we can't help you further unless you tell us more about your
system. Which platform are you on? Linux, Mac, Windows? How did you install
(La)TeX? Detailed instructions on how to install the minitoc package
depends on the answers to those questions.


Cheers,

Stefano


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: New Feature Request: Chapter Contents

2013-10-07 Thread Guenter Milde
On 2013-10-06, Andrew Parsloe wrote:
 On 7/10/2013 4:49 a.m., Richard Heck wrote:
 On 10/06/2013 07:33 AM, Mark Horton wrote:
 Hi Developers

 It would make navigation a lot easier for large documents if we had the
 the ability to generate a contents of Chapters at the start.

 Plus a more detailed contents page at the start of each Chapter.

...

 I've used the LaTeX minitoc package successfully with LyX for a large 
 book (600 pages). It creates a table of contents for each chapter, 
 inserted at the start of the chapter. I restricted the main TOC at the 
 start of the book to section level, but each chapter TOC was to 
 subsubsection level. Each chapter has \minitoc in ERT after the chapter 
 heading, but that's all, so ERT use is minimal. The preamble to the 
 master document (each chapter is a child document  has nothing in the 
 preamble) has

 \usepackage[tight]{minitoc}
 \setcounter{minitocdepth}{3}
 \setlength{\mtcindent}{24pt}
 \renewcommand{\mtcfont}{\small\rm}
 \renewcommand{\mtcSfont}{\small\bf}
 \renewcommand{\mtcSSSfont}{\footnotesize\it}
 \renewcommand{\mtctitle}{}

 which shows the kind of tailoring to individual whims that is possible.

It should be fairly easy to create a LyX module to support the minitoc
package.

Günter



Re: New Feature Request: Chapter Contents

2013-10-07 Thread Mark Horton
Guenter Milde milde at users.sf.net writes:

 
 On 2013-10-06, Andrew Parsloe wrote:
  On 7/10/2013 4:49 a.m., Richard Heck wrote:
  On 10/06/2013 07:33 AM, Mark Horton wrote:
  Hi Developers
 
  It would make navigation a lot easier for large documents if we had 
the
  the ability to generate a contents of Chapters at the start.
 
  Plus a more detailed contents page at the start of each Chapter.
 
 ...
 
  I've used the LaTeX minitoc package successfully with LyX for a large 
  book (600 pages). It creates a table of contents for each chapter, 
  inserted at the start of the chapter. I restricted the main TOC at the 
  start of the book to section level, but each chapter TOC was to 
  subsubsection level. Each chapter has \minitoc in ERT after the chapter 
  heading, but that's all, so ERT use is minimal. The preamble to the 
  master document (each chapter is a child document  has nothing in the 
  preamble) has
 
  \usepackage[tight]{minitoc}
  \setcounter{minitocdepth}{3}
  \setlength{\mtcindent}{24pt}
  \renewcommand{\mtcfont}{\small\rm}
  \renewcommand{\mtcSfont}{\small\bf}
  \renewcommand{\mtcSSSfont}{\footnotesize\it}
  \renewcommand{\mtctitle}{}
 
  which shows the kind of tailoring to individual whims that is possible.
 
 It should be fairly easy to create a LyX module to support the minitoc
 package.
 
 Günter
 
 
Hi Richard Andrew and Günter

Thanks for your replies.

I found the package to do the job called Minitoc.  Unfortunately being an 
ignorant beginner in this field  I don't know how to Install it  and make 
it work from Latex.

It appears to have no windows type executable or install files in the set I 
have downloaded. Though I guess some of them may be some sort of macro 
runable in Latex based software.

The installation instructions suggest were some files should go, but I 
haven't found were all of them should go yet. Even if they were all located 
it gives no indication as to what to do next. 
 
Is there somewhere on the LyX site which gives some general guide to the 
principles of installing such packages to use from Lyx?  Or am I thinking 
nonsense that won't happen for reasons I don't understand? Is the long 
learning curve of Latex the only way forwards for me?

Best Regards

Mark :-)





Re: New Feature Request: Chapter Contents

2013-10-07 Thread stefano franchi
On Mon, Oct 7, 2013 at 5:17 PM, Mark Horton mark.horton...@yahoo.co.ukwrote:

 I found the package to do the job called Minitoc.  Unfortunately being an
 ignorant beginner in this field  I don't know how to Install it  and make
 it work from Latex.


Mark,

installation of a Latex package is usually done, nowadays, by invoking the
TeX package manager used by your TeX distribution. But there are several of
those, and we can't help you further unless you tell us more about your
system. Which platform are you on? Linux, Mac, Windows? How did you install
(La)TeX? Detailed instructions on how to install the minitoc package
depends on the answers to those questions.


Cheers,

Stefano


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: New Feature Request: Chapter Contents

2013-10-07 Thread Guenter Milde
On 2013-10-06, Andrew Parsloe wrote:
> On 7/10/2013 4:49 a.m., Richard Heck wrote:
>> On 10/06/2013 07:33 AM, Mark Horton wrote:
>>> Hi Developers

>>> It would make navigation a lot easier for large documents if we had the
>>> the ability to generate a contents of Chapters at the start.

>>> Plus a more detailed contents page at the start of each Chapter.

...

> I've used the LaTeX minitoc package successfully with LyX for a large 
> book (600 pages). It creates a table of contents for each chapter, 
> inserted at the start of the chapter. I restricted the main TOC at the 
> start of the book to section level, but each chapter TOC was to 
> subsubsection level. Each chapter has \minitoc in ERT after the chapter 
> heading, but that's all, so ERT use is minimal. The preamble to the 
> master document (each chapter is a child document & has nothing in the 
> preamble) has

> \usepackage[tight]{minitoc}
> \setcounter{minitocdepth}{3}
> \setlength{\mtcindent}{24pt}
> \renewcommand{\mtcfont}{\small\rm}
> \renewcommand{\mtcSfont}{\small\bf}
> \renewcommand{\mtcSSSfont}{\footnotesize\it}
> \renewcommand{\mtctitle}{}

> which shows the kind of tailoring to individual whims that is possible.

It should be fairly easy to create a LyX module to support the minitoc
package.

Günter



Re: New Feature Request: Chapter Contents

2013-10-07 Thread Mark Horton
Guenter Milde  users.sf.net> writes:

> 
> On 2013-10-06, Andrew Parsloe wrote:
> > On 7/10/2013 4:49 a.m., Richard Heck wrote:
> >> On 10/06/2013 07:33 AM, Mark Horton wrote:
> >>> Hi Developers
> 
> >>> It would make navigation a lot easier for large documents if we had 
the
> >>> the ability to generate a contents of Chapters at the start.
> 
> >>> Plus a more detailed contents page at the start of each Chapter.
> 
> ...
> 
> > I've used the LaTeX minitoc package successfully with LyX for a large 
> > book (600 pages). It creates a table of contents for each chapter, 
> > inserted at the start of the chapter. I restricted the main TOC at the 
> > start of the book to section level, but each chapter TOC was to 
> > subsubsection level. Each chapter has \minitoc in ERT after the chapter 
> > heading, but that's all, so ERT use is minimal. The preamble to the 
> > master document (each chapter is a child document & has nothing in the 
> > preamble) has
> 
> > \usepackage[tight]{minitoc}
> > \setcounter{minitocdepth}{3}
> > \setlength{\mtcindent}{24pt}
> > \renewcommand{\mtcfont}{\small\rm}
> > \renewcommand{\mtcSfont}{\small\bf}
> > \renewcommand{\mtcSSSfont}{\footnotesize\it}
> > \renewcommand{\mtctitle}{}
> 
> > which shows the kind of tailoring to individual whims that is possible.
> 
> It should be fairly easy to create a LyX module to support the minitoc
> package.
> 
> Günter
> 
> 
Hi Richard Andrew and Günter

Thanks for your replies.

I found the "package" to do the job called Minitoc.  Unfortunately being an 
ignorant beginner in this field  I don't know how to "Install it " and make 
it work from Latex.

It appears to have no windows type executable or install files in the set I 
have downloaded. Though I guess some of them may be some sort of macro 
runable in Latex based software.

The installation "instructions" suggest were some files should go, but I 
haven't found were all of them should go yet. Even if they were all located 
it gives no indication as to what to do next. 
 
Is there somewhere on the LyX site which gives some general guide to the 
principles of installing such packages to use from Lyx?  Or am I thinking 
nonsense that won't happen for reasons I don't understand? Is the long 
learning curve of Latex the only way forwards for me?

Best Regards

Mark :-)





Re: New Feature Request: Chapter Contents

2013-10-07 Thread stefano franchi
On Mon, Oct 7, 2013 at 5:17 PM, Mark Horton wrote:

> I found the "package" to do the job called Minitoc.  Unfortunately being an
> ignorant beginner in this field  I don't know how to "Install it " and make
> it work from Latex.
>
>
Mark,

installation of a Latex package is usually done, nowadays, by invoking the
TeX package manager used by your TeX distribution. But there are several of
those, and we can't help you further unless you tell us more about your
system. Which platform are you on? Linux, Mac, Windows? How did you install
(La)TeX? Detailed instructions on how to install the minitoc package
depends on the answers to those questions.


Cheers,

Stefano


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas A University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


New Feature Request: Chapter Contents

2013-10-06 Thread Mark Horton
Hi Developers

It would make navigation a lot easier for large documents if we had the
the ability to generate a contents of Chapters at the start.

Plus a more detailed contents page at the start of each Chapter. 


Best Regards

Mark Horton



Re: New Feature Request: Chapter Contents

2013-10-06 Thread Richard Heck

On 10/06/2013 07:33 AM, Mark Horton wrote:

Hi Developers

It would make navigation a lot easier for large documents if we had the
the ability to generate a contents of Chapters at the start.

Plus a more detailed contents page at the start of each Chapter.


This is a LaTeX issue, first and foremost. It's easy to get only the 
chapters in the TOC initially. (See Document Settings Numbering and 
TOC). It's getting the TOCs for each chapter that is the issue. But I 
believe there are LaTeX packages that will do this. Go to CTAN.org and 
search for them, or try googling. If you can find it, then, at a bare 
minimum, you could do this with ERT, and you can also file an 
enhancement request for native support for the package.


Richard



Re: New Feature Request: Chapter Contents

2013-10-06 Thread Andrew Parsloe

On 7/10/2013 4:49 a.m., Richard Heck wrote:

On 10/06/2013 07:33 AM, Mark Horton wrote:

Hi Developers

It would make navigation a lot easier for large documents if we had the
the ability to generate a contents of Chapters at the start.

Plus a more detailed contents page at the start of each Chapter.


This is a LaTeX issue, first and foremost. It's easy to get only the
chapters in the TOC initially. (See Document Settings Numbering and
TOC). It's getting the TOCs for each chapter that is the issue. But I
believe there are LaTeX packages that will do this. Go to CTAN.org and
search for them, or try googling. If you can find it, then, at a bare
minimum, you could do this with ERT, and you can also file an
enhancement request for native support for the package.

Richard



I've used the LaTeX minitoc package successfully with LyX for a large 
book (600 pages). It creates a table of contents for each chapter, 
inserted at the start of the chapter. I restricted the main TOC at the 
start of the book to section level, but each chapter TOC was to 
subsubsection level. Each chapter has \minitoc in ERT after the chapter 
heading, but that's all, so ERT use is minimal. The preamble to the 
master document (each chapter is a child document  has nothing in the 
preamble) has


\usepackage[tight]{minitoc}
\setcounter{minitocdepth}{3}
\setlength{\mtcindent}{24pt}
\renewcommand{\mtcfont}{\small\rm}
\renewcommand{\mtcSfont}{\small\bf}
\renewcommand{\mtcSSSfont}{\footnotesize\it}
\renewcommand{\mtctitle}{}

which shows the kind of tailoring to individual whims that is possible.

Andrew


Re: New Feature Request: Chapter Contents

2013-10-06 Thread Richard Heck

On 10/06/2013 07:33 AM, Mark Horton wrote:

 Hi Developers

 It would make navigation a lot easier for large documents if we had the
 the ability to generate a contents of Chapters at the start.

 Plus a more detailed contents page at the start of each Chapter.

This is a LaTeX issue, first and foremost. It's easy to get only the 
chapters in the TOC initially. (See Document Settings Numbering and 
TOC). It's getting the TOCs for each chapter that is the issue. But I 
believe there are LaTeX packages that will do this. Go to CTAN.org 
and search for them, or try googling. If you can find it, then, at a 
bare minimum, you could do this with ERT, and you can also file an 
enhancement request for native support for the package.




Thanks for the prompt reply.

I have found a package to do the job called Minitoc. Unfortunately 
being an ignorant beginner in this field  I don't know how to Install 
it  and make it work from Latex.


What OS are you using? There's probably a Package Manager of some sort 
you can use to install the package.


Andrew's instructions on how to use minitoc can be explained in more 
detail once we have the package installed.


Richard

PS Keep replies on the list, in case someone else has similar questions.



New Feature Request: Chapter Contents

2013-10-06 Thread Mark Horton
Hi Developers

It would make navigation a lot easier for large documents if we had the
the ability to generate a contents of Chapters at the start.

Plus a more detailed contents page at the start of each Chapter. 


Best Regards

Mark Horton



  1   2   3   4   5   6   7   8   9   >