Re: Index John, see Joe

2012-04-01 Thread Steve Litt
On Sat, 31 Mar 2012 17:57:52 -0400
Richard Heck rgh...@comcast.net wrote:

 On 03/31/2012 04:11 PM, iustifico wrote:
  Dear People on the lys-users-list,
 
  I am trying to adapt the examples posted in the lyx-wiki 
  http://wiki.lyx.org/Tips/Indexing to make an index entry point to 
  another one. Like
 
  Index
 
  J
  Joe, 1
  John, see Joe
 
  But all
 
  Index
 
  J
  Joe, 1
 
  See the minimal example and the pdf output for how I adapted the 
  information from the wiki. I am using lyx 2.0.3 on Mac OS Lion.
 
  Do I miss something maybe?
 
 I think we need to update this a bit. What you need to write is:
  Jimmy|see[ERT]{[/ERT]Joe[ERT]}[/ERT]
 where the ERT stuff means: put the brackets in ERT. The problem is
 that LyX is escaping the brackets for you, which is usually the right
 thing to do, but not here.
 
 Richard

I've found it much, much, MUCH easier to do see and seealso entries in
a separate text file, and then add this to the document preamble:

\input{seealso.inc}

Here is the text of my (very short) seealso.inc for my book The Key to
Everyday Excellence


==
\index{UTP|see{Universal Troubleshooting Process}}
\index{Jim Barber|see{Barber (Jim)}}
\index{Scan and Exploit!To teach calculus|see{Calculus}}
\index{Justice Coalition!Design discussions|seealso{Skill Transfer 
Process-Targeted-Derivation of the Justice Coalition}}
==

When doing indices, see's and seealso's, be very, very careful of your
font encoding, or you'll get these errors caused by LyX's propensity to
replace pipe symbols with actual LaTeX code. This goes away if you use
T1 font encoding, but in LyX 2.x I can't find where you set that.

SteveT



Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-04-01 Thread Liviu Andronic
On Sat, Mar 31, 2012 at 10:28 PM, Trevor Jenkins bslwann...@gmail.com wrote:
 Thomas' attachments were sent to me and are in my archive (aka my GMail
 folder for LyX) so it doesn't appear to be the size or number of attachments
 sent.

Thomas was likely talking about Internet archiving. His first message
didn't get archived (attachments including a binary PDF), while his
last (without the PDF) got. [1]

Liviu

[1] http://www.mail-archive.com/lyx-users@lists.lyx.org/msg91798.html


Re: Index John, see Joe

2012-04-01 Thread stefano franchi
On Sun, Apr 1, 2012 at 1:26 AM, Steve Litt sl...@troubleshooters.comwrote:

 On Sat, 31 Mar 2012 17:57:52 -0400
 Richard Heck rgh...@comcast.net wrote:

  On 03/31/2012 04:11 PM, iustifico wrote:
   Dear People on the lys-users-list,
  
   I am trying to adapt the examples posted in the lyx-wiki
   http://wiki.lyx.org/Tips/Indexing to make an index entry point to
   another one. Like
  
   Index
  
   J
   Joe, 1
   John, see Joe
  
   But all
  
   Index
  
   J
   Joe, 1
  
   See the minimal example and the pdf output for how I adapted the
   information from the wiki. I am using lyx 2.0.3 on Mac OS Lion.
  
   Do I miss something maybe?
  
  I think we need to update this a bit. What you need to write is:
   Jimmy|see[ERT]{[/ERT]Joe[ERT]}[/ERT]
  where the ERT stuff means: put the brackets in ERT. The problem is
  that LyX is escaping the brackets for you, which is usually the right
  thing to do, but not here.
 
  Richard

 I've found it much, much, MUCH easier to do see and seealso entries in
 a separate text file, and then add this to the document preamble:

 \input{seealso.inc}


Excellent suggestion. I did the same for my book and avoided all the
problems Richard pointed out.

S.


-- 
__
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


Lyx - Program Listing - default settings cross-reference

2012-04-01 Thread Rainer Koelle
Hello all,

I am struggling with 
1.) default settings of program listings, and 
2.) creating a cross-reference to (a) program listing(s) 
in my document. 
Unfortunately, the documentation did not shed any light on me...

I use the standard book template for my document. 

1.) How to define 'default settings' for program listings?
Upon inserting a program listing, I am able to tweak the listing properties 
through a right-click and adding / ticking the properties I want. It seems that 
I cannot define personalised preferences. 
And editing the properties for every program listing will be cumbersome (a lot 
of work, as I am going to add a lot of program listings).

2.) How to cross reference a program listing
It seems that one cannot add a labe or define a label in the program listing 
settings (adding a label={listing:somefancynameforlabel} ) also failed 
miserably - did not show up in the reference list.

Thanks for any pointer in the right direction.

Servus from Belgium,
Rainer
-- 
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!  

Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a


Re: Lyx - Program Listing - default settings cross-reference

2012-04-01 Thread Paul A . Rubin
Rainer Koelle rqkoelle at gmx.net writes:


 
 1.) How to define 'default settings' for program listings?

In Document  Settings...  LaTeX Preamble, insert

\lset{key=value, key=value, ...}

For example: \lstset{language=Fortran,numbers=right}.

 
 2.) How to cross reference a program listing

Try inserting the following into Document  Settings...  Local Layout:

Float
Type  listing
GuiName   Listing
Placement tbp
Extension lol
NumberWithin  none
Style ruled
ListName  List of Listings
IsPredefined  false
UsesFloatPkg  true
RefPrefix lst
End

You will now be able to create floats of type Listing via Insert  Float 
Listing.  Put each program listing in a float of that type.  Place the labels
inside the float captions.  Cross-references should now work, and you can create
a List of Listings.  You are also free to change Listing to something else
(such as Program) throughout the code above.

Paul





Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-04-01 Thread Murat Yildizoglu
Very nice initiative, thank you very much Thomas!

I have not yet had time to check the modifications you have sent, but I am
sure that they make this module much more useful.

2012/3/31 Thomas Coffee thomasmcof...@gmail.com

 Hi Murat and Xu,

 I found your thread in the archives and did some further work on the
 LyX-SageTeX module that Murat posted previously.

 I fixed a few things that did not work for me in the version described
 earlier, and expanded the module specification to provide some
 additional conveniences for including literate Sage code in LyX
 documents. There's still much room for development and customization.

 The attachments comprise a set of files and a shell script setup.sh
 that should largely automate the configuration process on GNU/Linux
 systems.

 *** Help needed:

 For other interested users, I'd like to upload this to
 http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
 links anywhere under the upload path wiki.lyx.org/ipfm. The page
 http://wiki.lyx.org/Site/AboutUploading also tells me I will need
 someone to tell me the upload password. Can anyone assist?

 Thanks,
  Thomas


  Hi Xu,
 
  Thank you for your appreciation. I cannot advance anymore without any
 help
  from Lyx gurus.
  I think I have extracted all the information I can from the help docs.
 If I
  get any answer to my questions, I can construct a little bit smarter
 module
  but the one we have now is already usable. With some supplementary tricks
  from the sagetex documentation and through manual executions of the
  latex-sage-latex chain, it is possible to make a lot of computations.
 
  I was also very agreeably surprised that this module can be used for
  conversion to HTML from LyX, with figures and all.
 
  I attach to this message the module in its actual stage and some
  instruction for making the conversion chain functional. I hope this would
  already help some of you.
 
  As soon as I have more information, I will try to complete the module
 file.
 
  Best regards,
 
  Murat
 
  2011/10/31 Xu Wang xuwang...@gmail.com
 
   Dear Murat,
  
   This is great! I have been waiting for something like this for a long
   time. I also like the Sweave-like philosophy of this. It's more
 transparent
   and reproducible.
  
   I am looking forward to the final release with much excitement.
  
   Thank you for your work!
  
   Best,
  
   Xu
  
  
   On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu myi...@gmail.com
 wrote:
  
   Just another mail to correct a problem with the preceding Lyx file
 (see
   the new file attached, and the $ signs in ERT boxes, this is
 connected with
   the problem I describe below) and ask a question about insets again:
  
   What kind of Flex insets can be included in a math mode text? Is this
   possible at all? Especially in displayed equation where one would
 like to
   include results from SAge computations?
   I cannot write the following in math mode in Lyx, putting the left
 member
   in a displayed equation and the right member in a sagecode inset that
 would
   be converted to the expression I give
  (\sage{integral(x/(x^2+1),x,0,1))
  \dfrac{\partial^{4}y}{\partial
   x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
  
   I meet two problems:
   1/ I cannot insert a Flex:sagecommand inset in a displayed equation,
 Lyx
   just goes to the next line before inserting it...
   2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
x^2 in the right member must not be interpreted by LyX, since Sage
 will
   need it for its computation.
  
   I can of course type everything in an ERT, but this cannot be called
   integration can it? ;-)
  
   I have reread again the help document on layouts and insets, and I
 have
   checked the files that come in the layout folder of LyX, but cannot
 find
   any answer to my question.
  
   Sorry for bothering you again with my problems... I hope that Sage
   integration will interest other people...
  
   Murat
  
   I definitely need the help of a Lyx wizard who understands well the
   insets and their integration in Lyx/Latex...
  
  
  
   2011/10/31 Murat Yildizoglu myi...@gmail.com
  
   Just to show you the kind of niceties that such an integration can
   bring, I send you two files. One is the Lyx source and the other one
 is the
   final PDF.
   In Lyx, I just click on the  Preview button and wait a little bit to
 get
   the final PDF that I show here, with results of the computations
 done by
   Sage and converted back to Latex.
  
   The module isfar from perfect yet (this is the first module I am
   creating), a better integration between the Latex output by Sage,
 and the
   math mode in LyX would be implemented to have nice equations typeset
 with
   equation numbers and what not. You can also see that the output of
 the
   integral by Sage is not very beautiful...
  
   I will continue to work on this module, but it is already useful for
 me
   and eliminates some regrets I feel ;-), since I 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-04-01 Thread Murat Yildizoglu
Good idea, thanks a lot for the suggestion Xu. Here is my statement (I put
the devel list as CC) :

I hereby grant permission to license my contributions to the SAGE
module for LyX under the GNU
General Public Licence, version 2 or later.

Murat Yildizoglu


2012/3/31 Xu Wang xuwang...@gmail.com

 Dear Thomas

 Excellent news! Thank you for your continued work. I have not taken a fine
 look at this yet, but I also use Ubuntu so it looks like it might be useful.

 I'm not sure but I think for your contributions to be used you have to
 give permission explicitly. Look at this email:

 http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161963.html
 You can send something like that to the development list, lyx-devel

 And it could be a good idea for Murat to do the same.

 I'm not sure though.

 In any case, thank you for your continued work. I am appreciative. Xu



 On Sat, Mar 31, 2012 at 3:08 AM, Thomas Coffee thomasmcof...@gmail.comwrote:

 Hi Murat and Xu,

 I found your thread in the archives and did some further work on the
 LyX-SageTeX module that Murat posted previously.

 I fixed a few things that did not work for me in the version described
 earlier, and expanded the module specification to provide some
 additional conveniences for including literate Sage code in LyX
 documents. There's still much room for development and customization.

 The attachments comprise a set of files and a shell script setup.sh
 that should largely automate the configuration process on GNU/Linux
 systems.

 *** Help needed:

 For other interested users, I'd like to upload this to
 http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
 links anywhere under the upload path wiki.lyx.org/ipfm. The page
 http://wiki.lyx.org/Site/AboutUploading also tells me I will need
 someone to tell me the upload password. Can anyone assist?

 Thanks,
  Thomas


  Hi Xu,
 
  Thank you for your appreciation. I cannot advance anymore without any
 help
  from Lyx gurus.
  I think I have extracted all the information I can from the help docs.
 If I
  get any answer to my questions, I can construct a little bit smarter
 module
  but the one we have now is already usable. With some supplementary
 tricks
  from the sagetex documentation and through manual executions of the
  latex-sage-latex chain, it is possible to make a lot of computations.
 
  I was also very agreeably surprised that this module can be used for
  conversion to HTML from LyX, with figures and all.
 
  I attach to this message the module in its actual stage and some
  instruction for making the conversion chain functional. I hope this
 would
  already help some of you.
 
  As soon as I have more information, I will try to complete the module
 file.
 
  Best regards,
 
  Murat
 
  2011/10/31 Xu Wang xuwang...@gmail.com
 
   Dear Murat,
  
   This is great! I have been waiting for something like this for a long
   time. I also like the Sweave-like philosophy of this. It's more
 transparent
   and reproducible.
  
   I am looking forward to the final release with much excitement.
  
   Thank you for your work!
  
   Best,
  
   Xu
  
  
   On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu myi...@gmail.com
 wrote:
  
   Just another mail to correct a problem with the preceding Lyx file
 (see
   the new file attached, and the $ signs in ERT boxes, this is
 connected with
   the problem I describe below) and ask a question about insets again:
  
   What kind of Flex insets can be included in a math mode text? Is this
   possible at all? Especially in displayed equation where one would
 like to
   include results from SAge computations?
   I cannot write the following in math mode in Lyx, putting the left
 member
   in a displayed equation and the right member in a sagecode inset
 that would
   be converted to the expression I give
  (\sage{integral(x/(x^2+1),x,0,1))
  \dfrac{\partial^{4}y}{\partial
   x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
  
   I meet two problems:
   1/ I cannot insert a Flex:sagecommand inset in a displayed equation,
 Lyx
   just goes to the next line before inserting it...
   2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
x^2 in the right member must not be interpreted by LyX, since
 Sage will
   need it for its computation.
  
   I can of course type everything in an ERT, but this cannot be called
   integration can it? ;-)
  
   I have reread again the help document on layouts and insets, and I
 have
   checked the files that come in the layout folder of LyX, but cannot
 find
   any answer to my question.
  
   Sorry for bothering you again with my problems... I hope that Sage
   integration will interest other people...
  
   Murat
  
   I definitely need the help of a Lyx wizard who understands well the
   insets and their integration in Lyx/Latex...
  
  
  
   2011/10/31 Murat Yildizoglu myi...@gmail.com
  
   Just to show you the kind of niceties that such an integration can
   bring, I send you two 

Re: Index John, see Joe

2012-04-01 Thread Steve Litt
On Sat, 31 Mar 2012 17:57:52 -0400
Richard Heck rgh...@comcast.net wrote:

 On 03/31/2012 04:11 PM, iustifico wrote:
  Dear People on the lys-users-list,
 
  I am trying to adapt the examples posted in the lyx-wiki 
  http://wiki.lyx.org/Tips/Indexing to make an index entry point to 
  another one. Like
 
  Index
 
  J
  Joe, 1
  John, see Joe
 
  But all
 
  Index
 
  J
  Joe, 1
 
  See the minimal example and the pdf output for how I adapted the 
  information from the wiki. I am using lyx 2.0.3 on Mac OS Lion.
 
  Do I miss something maybe?
 
 I think we need to update this a bit. What you need to write is:
  Jimmy|see[ERT]{[/ERT]Joe[ERT]}[/ERT]
 where the ERT stuff means: put the brackets in ERT. The problem is
 that LyX is escaping the brackets for you, which is usually the right
 thing to do, but not here.
 
 Richard

I've found it much, much, MUCH easier to do see and seealso entries in
a separate text file, and then add this to the document preamble:

\input{seealso.inc}

Here is the text of my (very short) seealso.inc for my book The Key to
Everyday Excellence


==
\index{UTP|see{Universal Troubleshooting Process}}
\index{Jim Barber|see{Barber (Jim)}}
\index{Scan and Exploit!To teach calculus|see{Calculus}}
\index{Justice Coalition!Design discussions|seealso{Skill Transfer 
Process-Targeted-Derivation of the Justice Coalition}}
==

When doing indices, see's and seealso's, be very, very careful of your
font encoding, or you'll get these errors caused by LyX's propensity to
replace pipe symbols with actual LaTeX code. This goes away if you use
T1 font encoding, but in LyX 2.x I can't find where you set that.

SteveT



Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-04-01 Thread Liviu Andronic
On Sat, Mar 31, 2012 at 10:28 PM, Trevor Jenkins bslwann...@gmail.com wrote:
 Thomas' attachments were sent to me and are in my archive (aka my GMail
 folder for LyX) so it doesn't appear to be the size or number of attachments
 sent.

Thomas was likely talking about Internet archiving. His first message
didn't get archived (attachments including a binary PDF), while his
last (without the PDF) got. [1]

Liviu

[1] http://www.mail-archive.com/lyx-users@lists.lyx.org/msg91798.html


Re: Index John, see Joe

2012-04-01 Thread stefano franchi
On Sun, Apr 1, 2012 at 1:26 AM, Steve Litt sl...@troubleshooters.comwrote:

 On Sat, 31 Mar 2012 17:57:52 -0400
 Richard Heck rgh...@comcast.net wrote:

  On 03/31/2012 04:11 PM, iustifico wrote:
   Dear People on the lys-users-list,
  
   I am trying to adapt the examples posted in the lyx-wiki
   http://wiki.lyx.org/Tips/Indexing to make an index entry point to
   another one. Like
  
   Index
  
   J
   Joe, 1
   John, see Joe
  
   But all
  
   Index
  
   J
   Joe, 1
  
   See the minimal example and the pdf output for how I adapted the
   information from the wiki. I am using lyx 2.0.3 on Mac OS Lion.
  
   Do I miss something maybe?
  
  I think we need to update this a bit. What you need to write is:
   Jimmy|see[ERT]{[/ERT]Joe[ERT]}[/ERT]
  where the ERT stuff means: put the brackets in ERT. The problem is
  that LyX is escaping the brackets for you, which is usually the right
  thing to do, but not here.
 
  Richard

 I've found it much, much, MUCH easier to do see and seealso entries in
 a separate text file, and then add this to the document preamble:

 \input{seealso.inc}


Excellent suggestion. I did the same for my book and avoided all the
problems Richard pointed out.

S.


-- 
__
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


Lyx - Program Listing - default settings cross-reference

2012-04-01 Thread Rainer Koelle
Hello all,

I am struggling with 
1.) default settings of program listings, and 
2.) creating a cross-reference to (a) program listing(s) 
in my document. 
Unfortunately, the documentation did not shed any light on me...

I use the standard book template for my document. 

1.) How to define 'default settings' for program listings?
Upon inserting a program listing, I am able to tweak the listing properties 
through a right-click and adding / ticking the properties I want. It seems that 
I cannot define personalised preferences. 
And editing the properties for every program listing will be cumbersome (a lot 
of work, as I am going to add a lot of program listings).

2.) How to cross reference a program listing
It seems that one cannot add a labe or define a label in the program listing 
settings (adding a label={listing:somefancynameforlabel} ) also failed 
miserably - did not show up in the reference list.

Thanks for any pointer in the right direction.

Servus from Belgium,
Rainer
-- 
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!  

Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a


Re: Lyx - Program Listing - default settings cross-reference

2012-04-01 Thread Paul A . Rubin
Rainer Koelle rqkoelle at gmx.net writes:


 
 1.) How to define 'default settings' for program listings?

In Document  Settings...  LaTeX Preamble, insert

\lset{key=value, key=value, ...}

For example: \lstset{language=Fortran,numbers=right}.

 
 2.) How to cross reference a program listing

Try inserting the following into Document  Settings...  Local Layout:

Float
Type  listing
GuiName   Listing
Placement tbp
Extension lol
NumberWithin  none
Style ruled
ListName  List of Listings
IsPredefined  false
UsesFloatPkg  true
RefPrefix lst
End

You will now be able to create floats of type Listing via Insert  Float 
Listing.  Put each program listing in a float of that type.  Place the labels
inside the float captions.  Cross-references should now work, and you can create
a List of Listings.  You are also free to change Listing to something else
(such as Program) throughout the code above.

Paul





Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-04-01 Thread Murat Yildizoglu
Very nice initiative, thank you very much Thomas!

I have not yet had time to check the modifications you have sent, but I am
sure that they make this module much more useful.

2012/3/31 Thomas Coffee thomasmcof...@gmail.com

 Hi Murat and Xu,

 I found your thread in the archives and did some further work on the
 LyX-SageTeX module that Murat posted previously.

 I fixed a few things that did not work for me in the version described
 earlier, and expanded the module specification to provide some
 additional conveniences for including literate Sage code in LyX
 documents. There's still much room for development and customization.

 The attachments comprise a set of files and a shell script setup.sh
 that should largely automate the configuration process on GNU/Linux
 systems.

 *** Help needed:

 For other interested users, I'd like to upload this to
 http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
 links anywhere under the upload path wiki.lyx.org/ipfm. The page
 http://wiki.lyx.org/Site/AboutUploading also tells me I will need
 someone to tell me the upload password. Can anyone assist?

 Thanks,
  Thomas


  Hi Xu,
 
  Thank you for your appreciation. I cannot advance anymore without any
 help
  from Lyx gurus.
  I think I have extracted all the information I can from the help docs.
 If I
  get any answer to my questions, I can construct a little bit smarter
 module
  but the one we have now is already usable. With some supplementary tricks
  from the sagetex documentation and through manual executions of the
  latex-sage-latex chain, it is possible to make a lot of computations.
 
  I was also very agreeably surprised that this module can be used for
  conversion to HTML from LyX, with figures and all.
 
  I attach to this message the module in its actual stage and some
  instruction for making the conversion chain functional. I hope this would
  already help some of you.
 
  As soon as I have more information, I will try to complete the module
 file.
 
  Best regards,
 
  Murat
 
  2011/10/31 Xu Wang xuwang...@gmail.com
 
   Dear Murat,
  
   This is great! I have been waiting for something like this for a long
   time. I also like the Sweave-like philosophy of this. It's more
 transparent
   and reproducible.
  
   I am looking forward to the final release with much excitement.
  
   Thank you for your work!
  
   Best,
  
   Xu
  
  
   On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu myi...@gmail.com
 wrote:
  
   Just another mail to correct a problem with the preceding Lyx file
 (see
   the new file attached, and the $ signs in ERT boxes, this is
 connected with
   the problem I describe below) and ask a question about insets again:
  
   What kind of Flex insets can be included in a math mode text? Is this
   possible at all? Especially in displayed equation where one would
 like to
   include results from SAge computations?
   I cannot write the following in math mode in Lyx, putting the left
 member
   in a displayed equation and the right member in a sagecode inset that
 would
   be converted to the expression I give
  (\sage{integral(x/(x^2+1),x,0,1))
  \dfrac{\partial^{4}y}{\partial
   x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
  
   I meet two problems:
   1/ I cannot insert a Flex:sagecommand inset in a displayed equation,
 Lyx
   just goes to the next line before inserting it...
   2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
x^2 in the right member must not be interpreted by LyX, since Sage
 will
   need it for its computation.
  
   I can of course type everything in an ERT, but this cannot be called
   integration can it? ;-)
  
   I have reread again the help document on layouts and insets, and I
 have
   checked the files that come in the layout folder of LyX, but cannot
 find
   any answer to my question.
  
   Sorry for bothering you again with my problems... I hope that Sage
   integration will interest other people...
  
   Murat
  
   I definitely need the help of a Lyx wizard who understands well the
   insets and their integration in Lyx/Latex...
  
  
  
   2011/10/31 Murat Yildizoglu myi...@gmail.com
  
   Just to show you the kind of niceties that such an integration can
   bring, I send you two files. One is the Lyx source and the other one
 is the
   final PDF.
   In Lyx, I just click on the  Preview button and wait a little bit to
 get
   the final PDF that I show here, with results of the computations
 done by
   Sage and converted back to Latex.
  
   The module isfar from perfect yet (this is the first module I am
   creating), a better integration between the Latex output by Sage,
 and the
   math mode in LyX would be implemented to have nice equations typeset
 with
   equation numbers and what not. You can also see that the output of
 the
   integral by Sage is not very beautiful...
  
   I will continue to work on this module, but it is already useful for
 me
   and eliminates some regrets I feel ;-), since I 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-04-01 Thread Murat Yildizoglu
Good idea, thanks a lot for the suggestion Xu. Here is my statement (I put
the devel list as CC) :

I hereby grant permission to license my contributions to the SAGE
module for LyX under the GNU
General Public Licence, version 2 or later.

Murat Yildizoglu


2012/3/31 Xu Wang xuwang...@gmail.com

 Dear Thomas

 Excellent news! Thank you for your continued work. I have not taken a fine
 look at this yet, but I also use Ubuntu so it looks like it might be useful.

 I'm not sure but I think for your contributions to be used you have to
 give permission explicitly. Look at this email:

 http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161963.html
 You can send something like that to the development list, lyx-devel

 And it could be a good idea for Murat to do the same.

 I'm not sure though.

 In any case, thank you for your continued work. I am appreciative. Xu



 On Sat, Mar 31, 2012 at 3:08 AM, Thomas Coffee thomasmcof...@gmail.comwrote:

 Hi Murat and Xu,

 I found your thread in the archives and did some further work on the
 LyX-SageTeX module that Murat posted previously.

 I fixed a few things that did not work for me in the version described
 earlier, and expanded the module specification to provide some
 additional conveniences for including literate Sage code in LyX
 documents. There's still much room for development and customization.

 The attachments comprise a set of files and a shell script setup.sh
 that should largely automate the configuration process on GNU/Linux
 systems.

 *** Help needed:

 For other interested users, I'd like to upload this to
 http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
 links anywhere under the upload path wiki.lyx.org/ipfm. The page
 http://wiki.lyx.org/Site/AboutUploading also tells me I will need
 someone to tell me the upload password. Can anyone assist?

 Thanks,
  Thomas


  Hi Xu,
 
  Thank you for your appreciation. I cannot advance anymore without any
 help
  from Lyx gurus.
  I think I have extracted all the information I can from the help docs.
 If I
  get any answer to my questions, I can construct a little bit smarter
 module
  but the one we have now is already usable. With some supplementary
 tricks
  from the sagetex documentation and through manual executions of the
  latex-sage-latex chain, it is possible to make a lot of computations.
 
  I was also very agreeably surprised that this module can be used for
  conversion to HTML from LyX, with figures and all.
 
  I attach to this message the module in its actual stage and some
  instruction for making the conversion chain functional. I hope this
 would
  already help some of you.
 
  As soon as I have more information, I will try to complete the module
 file.
 
  Best regards,
 
  Murat
 
  2011/10/31 Xu Wang xuwang...@gmail.com
 
   Dear Murat,
  
   This is great! I have been waiting for something like this for a long
   time. I also like the Sweave-like philosophy of this. It's more
 transparent
   and reproducible.
  
   I am looking forward to the final release with much excitement.
  
   Thank you for your work!
  
   Best,
  
   Xu
  
  
   On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu myi...@gmail.com
 wrote:
  
   Just another mail to correct a problem with the preceding Lyx file
 (see
   the new file attached, and the $ signs in ERT boxes, this is
 connected with
   the problem I describe below) and ask a question about insets again:
  
   What kind of Flex insets can be included in a math mode text? Is this
   possible at all? Especially in displayed equation where one would
 like to
   include results from SAge computations?
   I cannot write the following in math mode in Lyx, putting the left
 member
   in a displayed equation and the right member in a sagecode inset
 that would
   be converted to the expression I give
  (\sage{integral(x/(x^2+1),x,0,1))
  \dfrac{\partial^{4}y}{\partial
   x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
  
   I meet two problems:
   1/ I cannot insert a Flex:sagecommand inset in a displayed equation,
 Lyx
   just goes to the next line before inserting it...
   2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
x^2 in the right member must not be interpreted by LyX, since
 Sage will
   need it for its computation.
  
   I can of course type everything in an ERT, but this cannot be called
   integration can it? ;-)
  
   I have reread again the help document on layouts and insets, and I
 have
   checked the files that come in the layout folder of LyX, but cannot
 find
   any answer to my question.
  
   Sorry for bothering you again with my problems... I hope that Sage
   integration will interest other people...
  
   Murat
  
   I definitely need the help of a Lyx wizard who understands well the
   insets and their integration in Lyx/Latex...
  
  
  
   2011/10/31 Murat Yildizoglu myi...@gmail.com
  
   Just to show you the kind of niceties that such an integration can
   bring, I send you two 

Re: Index "John, see Joe"

2012-04-01 Thread Steve Litt
On Sat, 31 Mar 2012 17:57:52 -0400
Richard Heck  wrote:

> On 03/31/2012 04:11 PM, iustifico wrote:
> > Dear People on the lys-users-list,
> >
> > I am trying to adapt the examples posted in the lyx-wiki 
> >  to make an index entry point to 
> > another one. Like
> >
> > Index
> >
> > J
> > Joe, 1
> > John, see Joe
> >
> > But all
> >
> > Index
> >
> > J
> > Joe, 1
> >
> > See the minimal example and the pdf output for how I adapted the 
> > information from the wiki. I am using lyx 2.0.3 on Mac OS Lion.
> >
> > Do I miss something maybe?
> >
> I think we need to update this a bit. What you need to write is:
>  Jimmy|see[ERT]{[/ERT]Joe[ERT]}[/ERT]
> where the ERT stuff means: put the brackets in ERT. The problem is
> that LyX is escaping the brackets for you, which is usually the right
> thing to do, but not here.
> 
> Richard

I've found it much, much, MUCH easier to do see and seealso entries in
a separate text file, and then add this to the document preamble:

\input{seealso.inc}

Here is the text of my (very short) seealso.inc for my book "The Key to
Everyday Excellence"


==
\index{UTP|see{Universal Troubleshooting Process}}
\index{Jim Barber|see{Barber (Jim)}}
\index{Scan and Exploit!To teach calculus|see{Calculus}}
\index{Justice Coalition!Design discussions|seealso{Skill Transfer 
Process->Targeted->Derivation of the Justice Coalition}}
==

When doing indices, see's and seealso's, be very, very careful of your
font encoding, or you'll get these errors caused by LyX's propensity to
replace pipe symbols with actual LaTeX code. This goes away if you use
T1 font encoding, but in LyX 2.x I can't find where you set that.

SteveT



Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-04-01 Thread Liviu Andronic
On Sat, Mar 31, 2012 at 10:28 PM, Trevor Jenkins  wrote:
> Thomas' attachments were sent to me and are in my "archive" (aka my GMail
> folder for LyX) so it doesn't appear to be the size or number of attachments
> sent.
>
Thomas was likely talking about Internet archiving. His first message
didn't get archived (attachments including a binary PDF), while his
last (without the PDF) got. [1]

Liviu

[1] http://www.mail-archive.com/lyx-users@lists.lyx.org/msg91798.html


Re: Index "John, see Joe"

2012-04-01 Thread stefano franchi
On Sun, Apr 1, 2012 at 1:26 AM, Steve Litt wrote:

> On Sat, 31 Mar 2012 17:57:52 -0400
> Richard Heck  wrote:
>
> > On 03/31/2012 04:11 PM, iustifico wrote:
> > > Dear People on the lys-users-list,
> > >
> > > I am trying to adapt the examples posted in the lyx-wiki
> > >  to make an index entry point to
> > > another one. Like
> > >
> > > Index
> > >
> > > J
> > > Joe, 1
> > > John, see Joe
> > >
> > > But all
> > >
> > > Index
> > >
> > > J
> > > Joe, 1
> > >
> > > See the minimal example and the pdf output for how I adapted the
> > > information from the wiki. I am using lyx 2.0.3 on Mac OS Lion.
> > >
> > > Do I miss something maybe?
> > >
> > I think we need to update this a bit. What you need to write is:
> >  Jimmy|see[ERT]{[/ERT]Joe[ERT]}[/ERT]
> > where the ERT stuff means: put the brackets in ERT. The problem is
> > that LyX is escaping the brackets for you, which is usually the right
> > thing to do, but not here.
> >
> > Richard
>
> I've found it much, much, MUCH easier to do see and seealso entries in
> a separate text file, and then add this to the document preamble:
>
> \input{seealso.inc}
>
>
Excellent suggestion. I did the same for my book and avoided all the
problems Richard pointed out.

S.


-- 
__
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


Lyx - Program Listing - default settings & cross-reference

2012-04-01 Thread Rainer Koelle
Hello all,

I am struggling with 
1.) default settings of program listings, and 
2.) creating a cross-reference to (a) program listing(s) 
in my document. 
Unfortunately, the documentation did not shed any light on me...

I use the standard book template for my document. 

1.) How to define 'default settings' for program listings?
Upon inserting a program listing, I am able to tweak the listing properties 
through a right-click and adding / ticking the properties I want. It seems that 
I cannot define personalised preferences. 
And editing the properties for every program listing will be cumbersome (a lot 
of work, as I am going to add a lot of program listings).

2.) How to cross reference a program listing
It seems that one cannot add a labe or define a label in the program listing 
settings (adding a label={listing:somefancynameforlabel} ) also failed 
miserably - did not show up in the reference list.

Thanks for any pointer in the right direction.

Servus from Belgium,
Rainer
-- 
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!  

Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a


Re: Lyx - Program Listing - default settings & cross-reference

2012-04-01 Thread Paul A . Rubin
Rainer Koelle  gmx.net> writes:


> 
> 1.) How to define 'default settings' for program listings?

In Document > Settings... > LaTeX Preamble, insert

\lset{key=value, key=value, ...}

For example: \lstset{language=Fortran,numbers=right}.

> 
> 2.) How to cross reference a program listing

Try inserting the following into Document > Settings... > Local Layout:

Float
Type  listing
GuiName   Listing
Placement tbp
Extension lol
NumberWithin  none
Style ruled
ListName  "List of Listings"
IsPredefined  false
UsesFloatPkg  true
RefPrefix lst
End

You will now be able to create floats of type "Listing" via Insert > Float >
Listing.  Put each program listing in a float of that type.  Place the labels
inside the float captions.  Cross-references should now work, and you can create
a List of Listings.  You are also free to change "Listing" to something else
(such as "Program") throughout the code above.

Paul





Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-04-01 Thread Murat Yildizoglu
Very nice initiative, thank you very much Thomas!

I have not yet had time to check the modifications you have sent, but I am
sure that they make this module much more useful.

2012/3/31 Thomas Coffee 

> Hi Murat and Xu,
>
> I found your thread in the archives and did some further work on the
> LyX-SageTeX module that Murat posted previously.
>
> I fixed a few things that did not work for me in the version described
> earlier, and expanded the module specification to provide some
> additional conveniences for including literate Sage code in LyX
> documents. There's still much room for development and customization.
>
> The attachments comprise a set of files and a shell script "setup.sh"
> that should largely automate the configuration process on GNU/Linux
> systems.
>
> *** Help needed:
>
> For other interested users, I'd like to upload this to
> http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
> links anywhere under the upload path wiki.lyx.org/ipfm. The page
> http://wiki.lyx.org/Site/AboutUploading also tells me I will need
> someone to tell me the upload password. Can anyone assist?
>
> Thanks,
>  Thomas
>
>
> > Hi Xu,
> >
> > Thank you for your appreciation. I cannot advance anymore without any
> help
> > from Lyx gurus.
> > I think I have extracted all the information I can from the help docs.
> If I
> > get any answer to my questions, I can construct a little bit smarter
> module
> > but the one we have now is already usable. With some supplementary tricks
> > from the sagetex documentation and through manual executions of the
> > latex-sage-latex chain, it is possible to make a lot of computations.
> >
> > I was also very agreeably surprised that this module can be used for
> > conversion to HTML from LyX, with figures and all.
> >
> > I attach to this message the module in its actual stage and some
> > instruction for making the conversion chain functional. I hope this would
> > already help some of you.
> >
> > As soon as I have more information, I will try to complete the module
> file.
> >
> > Best regards,
> >
> > Murat
> >
> > 2011/10/31 Xu Wang 
> >
> > > Dear Murat,
> > >
> > > This is great! I have been waiting for something like this for a long
> > > time. I also like the Sweave-like philosophy of this. It's more
> transparent
> > > and reproducible.
> > >
> > > I am looking forward to the final release with much excitement.
> > >
> > > Thank you for your work!
> > >
> > > Best,
> > >
> > > Xu
> > >
> > >
> > > On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu  >wrote:
> > >
> > >> Just another mail to correct a problem with the preceding Lyx file
> (see
> > >> the new file attached, and the $ signs in ERT boxes, this is
> connected with
> > >> the problem I describe below) and ask a question about insets again:
> > >>
> > >> What kind of Flex insets can be included in a math mode text? Is this
> > >> possible at all? Especially in displayed equation where one would
> like to
> > >> include results from SAge computations?
> > >> I cannot write the following in math mode in Lyx, putting the left
> member
> > >> in a displayed equation and the right member in a sagecode inset that
> would
> > >> be converted to the expression I give
>  (\sage{integral(x/(x^2+1),x,0,1))
> > >>\dfrac{\partial^{4}y}{\partial
> > >> x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
> > >>
> > >> I meet two problems:
> > >> 1/ I cannot insert a Flex:sagecommand inset in a displayed equation,
> Lyx
> > >> just goes to the next line before inserting it...
> > >> 2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
> > >>  "x^2" in the right member must not be interpreted by LyX, since Sage
> will
> > >> need it for its computation.
> > >>
> > >> I can of course type everything in an ERT, but this cannot be called
> > >> "integration" can it? ;-)
> > >>
> > >> I have reread again the help document on layouts and insets, and I
> have
> > >> checked the files that come in the layout folder of LyX, but cannot
> find
> > >> any answer to my question.
> > >>
> > >> Sorry for bothering you again with my problems... I hope that Sage
> > >> integration will interest other people...
> > >>
> > >> Murat
> > >>
> > >> I definitely need the help of a Lyx wizard who understands well the
> > >> insets and their integration in Lyx/Latex...
> > >>
> > >>
> > >>
> > >> 2011/10/31 Murat Yildizoglu 
> > >>
> > >>> Just to show you the kind of niceties that such an integration can
> > >>> bring, I send you two files. One is the Lyx source and the other one
> is the
> > >>> final PDF.
> > >>> In Lyx, I just click on the  Preview button and wait a little bit to
> get
> > >>> the final PDF that I show here, with results of the computations
> done by
> > >>> Sage and converted back to Latex.
> > >>>
> > >>> The module isfar from perfect yet (this is the first module I am
> > >>> creating), a better integration between the 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-04-01 Thread Murat Yildizoglu
Good idea, thanks a lot for the suggestion Xu. Here is my statement (I put
the devel list as CC) :

I hereby grant permission to license my contributions to the SAGE
module for LyX under the GNU
General Public Licence, version 2 or later.

Murat Yildizoglu


2012/3/31 Xu Wang 

> Dear Thomas
>
> Excellent news! Thank you for your continued work. I have not taken a fine
> look at this yet, but I also use Ubuntu so it looks like it might be useful.
>
> I'm not sure but I think for your contributions to be used you have to
> give permission explicitly. Look at this email:
>
> http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161963.html
> You can send something like that to the development list, lyx-devel
>
> And it could be a good idea for Murat to do the same.
>
> I'm not sure though.
>
> In any case, thank you for your continued work. I am appreciative. Xu
>
>
>
> On Sat, Mar 31, 2012 at 3:08 AM, Thomas Coffee wrote:
>
>> Hi Murat and Xu,
>>
>> I found your thread in the archives and did some further work on the
>> LyX-SageTeX module that Murat posted previously.
>>
>> I fixed a few things that did not work for me in the version described
>> earlier, and expanded the module specification to provide some
>> additional conveniences for including literate Sage code in LyX
>> documents. There's still much room for development and customization.
>>
>> The attachments comprise a set of files and a shell script "setup.sh"
>> that should largely automate the configuration process on GNU/Linux
>> systems.
>>
>> *** Help needed:
>>
>> For other interested users, I'd like to upload this to
>> http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
>> links anywhere under the upload path wiki.lyx.org/ipfm. The page
>> http://wiki.lyx.org/Site/AboutUploading also tells me I will need
>> someone to tell me the upload password. Can anyone assist?
>>
>> Thanks,
>>  Thomas
>>
>>
>> > Hi Xu,
>> >
>> > Thank you for your appreciation. I cannot advance anymore without any
>> help
>> > from Lyx gurus.
>> > I think I have extracted all the information I can from the help docs.
>> If I
>> > get any answer to my questions, I can construct a little bit smarter
>> module
>> > but the one we have now is already usable. With some supplementary
>> tricks
>> > from the sagetex documentation and through manual executions of the
>> > latex-sage-latex chain, it is possible to make a lot of computations.
>> >
>> > I was also very agreeably surprised that this module can be used for
>> > conversion to HTML from LyX, with figures and all.
>> >
>> > I attach to this message the module in its actual stage and some
>> > instruction for making the conversion chain functional. I hope this
>> would
>> > already help some of you.
>> >
>> > As soon as I have more information, I will try to complete the module
>> file.
>> >
>> > Best regards,
>> >
>> > Murat
>> >
>> > 2011/10/31 Xu Wang 
>> >
>> > > Dear Murat,
>> > >
>> > > This is great! I have been waiting for something like this for a long
>> > > time. I also like the Sweave-like philosophy of this. It's more
>> transparent
>> > > and reproducible.
>> > >
>> > > I am looking forward to the final release with much excitement.
>> > >
>> > > Thank you for your work!
>> > >
>> > > Best,
>> > >
>> > > Xu
>> > >
>> > >
>> > > On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu > >wrote:
>> > >
>> > >> Just another mail to correct a problem with the preceding Lyx file
>> (see
>> > >> the new file attached, and the $ signs in ERT boxes, this is
>> connected with
>> > >> the problem I describe below) and ask a question about insets again:
>> > >>
>> > >> What kind of Flex insets can be included in a math mode text? Is this
>> > >> possible at all? Especially in displayed equation where one would
>> like to
>> > >> include results from SAge computations?
>> > >> I cannot write the following in math mode in Lyx, putting the left
>> member
>> > >> in a displayed equation and the right member in a sagecode inset
>> that would
>> > >> be converted to the expression I give
>>  (\sage{integral(x/(x^2+1),x,0,1))
>> > >>\dfrac{\partial^{4}y}{\partial
>> > >> x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
>> > >>
>> > >> I meet two problems:
>> > >> 1/ I cannot insert a Flex:sagecommand inset in a displayed equation,
>> Lyx
>> > >> just goes to the next line before inserting it...
>> > >> 2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
>> > >>  "x^2" in the right member must not be interpreted by LyX, since
>> Sage will
>> > >> need it for its computation.
>> > >>
>> > >> I can of course type everything in an ERT, but this cannot be called
>> > >> "integration" can it? ;-)
>> > >>
>> > >> I have reread again the help document on layouts and insets, and I
>> have
>> > >> checked the files that come in the layout folder of LyX, but cannot
>> find
>> > >> any answer to my question.
>> > >>
>> >