Re: How to prevent escaping for LaTeX when in module?

2012-01-10 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/01/12 18:03, Jürgen Spitzmüller wrote: Jean-Marc Lasgouttes wrote: I think we should not read both files, since the semantics of replacing a system file by a user one should be preserved. It would be better to load a

Re: How to prevent escaping for LaTeX when in module?

2012-01-10 Thread Julien Rioux
On 05/01/2012 12:03 PM, Jürgen Spitzmüller wrote: Jean-Marc Lasgouttes wrote: I think we should not read both files, since the semantics of replacing a system file by a user one should be preserved. It would be better to load a external_templates.user file (or any better name you come up with),

Re: How to prevent escaping for LaTeX when in module?

2012-01-10 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/01/12 18:03, Jürgen Spitzmüller wrote: Jean-Marc Lasgouttes wrote: I think we should not read both files, since the semantics of replacing a system file by a user one should be preserved. It would be better to load a

Re: How to prevent escaping for LaTeX when in module?

2012-01-10 Thread Julien Rioux
On 05/01/2012 12:03 PM, Jürgen Spitzmüller wrote: Jean-Marc Lasgouttes wrote: I think we should not read both files, since the semantics of replacing a system file by a user one should be preserved. It would be better to load a external_templates.user file (or any better name you come up with),

Re: How to prevent "escaping" for LaTeX when in module?

2012-01-10 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/01/12 18:03, Jürgen Spitzmüller wrote: > Jean-Marc Lasgouttes wrote: >> I think we should not read both files, since the semantics of >> replacing a system file by a user one should be preserved. It >> would be better to load a

Re: How to prevent "escaping" for LaTeX when in module?

2012-01-10 Thread Julien Rioux
On 05/01/2012 12:03 PM, Jürgen Spitzmüller wrote: Jean-Marc Lasgouttes wrote: I think we should not read both files, since the semantics of replacing a system file by a user one should be preserved. It would be better to load a external_templates.user file (or any better name you come up with),

Re: How to prevent escaping for LaTeX when in module?

2012-01-09 Thread Guenter Milde
On 2012-01-05, Rainer M Krug wrote: On 05/01/12 16:12, Jürgen Spitzmüller wrote: Rainer M Krug wrote: One more question: how can I deal with a function which requires two paramerer, e.g. \textattachfile{FILENAME.EXT}{THE TEXT OF THE LINK} in a module? Is there anywhere an example on how an

Re: How to prevent escaping for LaTeX when in module?

2012-01-09 Thread Guenter Milde
On 2012-01-05, Rainer M Krug wrote: On 05/01/12 16:12, Jürgen Spitzmüller wrote: Rainer M Krug wrote: One more question: how can I deal with a function which requires two paramerer, e.g. \textattachfile{FILENAME.EXT}{THE TEXT OF THE LINK} in a module? Is there anywhere an example on how an

Re: How to prevent "escaping" for LaTeX when in module?

2012-01-09 Thread Guenter Milde
On 2012-01-05, Rainer M Krug wrote: > On 05/01/12 16:12, Jürgen Spitzmüller wrote: >> Rainer M Krug wrote: >>> One more question: how can I deal with a function which requires >>> two paramerer, e.g. \textattachfile{FILENAME.EXT}{THE TEXT OF THE >>> LINK} in a module? Is there anywhere an example

Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Rainer M Krug wrote: I have written this small module to make attaching files to a pdf easier. It works nice, unless I have e.g. a _ in the file name, as then the text in the inset is escaped, i.e. newfile_1.lyx becomes newfile\_.lyx, which is obviously not found. Is there a way of treating

Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/01/12 15:22, Jürgen Spitzmüller wrote: Rainer M Krug wrote: I have written this small module to make attaching files to a pdf easier. It works nice, unless I have e.g. a _ in the file name, as then the text in the inset is escaped, i.e.

Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/01/12 15:56, Rainer M Krug wrote: On 05/01/12 15:22, Jürgen Spitzmüller wrote: Rainer M Krug wrote: I have written this small module to make attaching files to a pdf easier. It works nice, unless I have e.g. a _ in the file name, as then

Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Rainer M Krug wrote: One more question: how can I deal with a function which requires two paramerer, e.g. \textattachfile{FILENAME.EXT}{THE TEXT OF THE LINK} in a module? Is there anywhere an example on how an inset with two parametern looks? In Paragraphy styles (not in layouts I think), you

Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Rainer M Krug wrote: Just a quick follow up - to add a template, do I have to add it to the existing external_templates file, or can I have the additional template in my .lyx folder (which subfolder?)? external_templates itself states it clearly: # This file contains the definitions of those

Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/01/12 16:16, Jürgen Spitzmüller wrote: Rainer M Krug wrote: Just a quick follow up - to add a template, do I have to add it to the existing external_templates file, or can I have the additional template in my .lyx folder (which

Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/01/12 16:12, Jürgen Spitzmüller wrote: Rainer M Krug wrote: One more question: how can I deal with a function which requires two paramerer, e.g. \textattachfile{FILENAME.EXT}{THE TEXT OF THE LINK} in a module? Is there anywhere an example on

Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Rainer M Krug wrote: Thanks a lot for the info - I should have looked closer. But it would be nice, if both would be read and just added to each other. Yes. That's actually http://www.lyx.org/trac/ticket/3983 Jürgen

Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jean-Marc Lasgouttes
Le 05/01/2012 17:32, Jürgen Spitzmüller a écrit : Rainer M Krug wrote: Thanks a lot for the info - I should have looked closer. But it would be nice, if both would be read and just added to each other. Yes. That's actually http://www.lyx.org/trac/ticket/3983 I think we should not read both

Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: I think we should not read both files, since the semantics of replacing a system file by a user one should be preserved. It would be better to load a external_templates.user file (or any better name you come up with), like we load several flavors of lyxrc files

Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Rainer M Krug wrote: I have written this small module to make attaching files to a pdf easier. It works nice, unless I have e.g. a _ in the file name, as then the text in the inset is escaped, i.e. newfile_1.lyx becomes newfile\_.lyx, which is obviously not found. Is there a way of treating

Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/01/12 15:22, Jürgen Spitzmüller wrote: Rainer M Krug wrote: I have written this small module to make attaching files to a pdf easier. It works nice, unless I have e.g. a _ in the file name, as then the text in the inset is escaped, i.e.

Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/01/12 15:56, Rainer M Krug wrote: On 05/01/12 15:22, Jürgen Spitzmüller wrote: Rainer M Krug wrote: I have written this small module to make attaching files to a pdf easier. It works nice, unless I have e.g. a _ in the file name, as then

Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Rainer M Krug wrote: One more question: how can I deal with a function which requires two paramerer, e.g. \textattachfile{FILENAME.EXT}{THE TEXT OF THE LINK} in a module? Is there anywhere an example on how an inset with two parametern looks? In Paragraphy styles (not in layouts I think), you

Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Rainer M Krug wrote: Just a quick follow up - to add a template, do I have to add it to the existing external_templates file, or can I have the additional template in my .lyx folder (which subfolder?)? external_templates itself states it clearly: # This file contains the definitions of those

Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/01/12 16:16, Jürgen Spitzmüller wrote: Rainer M Krug wrote: Just a quick follow up - to add a template, do I have to add it to the existing external_templates file, or can I have the additional template in my .lyx folder (which

Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/01/12 16:12, Jürgen Spitzmüller wrote: Rainer M Krug wrote: One more question: how can I deal with a function which requires two paramerer, e.g. \textattachfile{FILENAME.EXT}{THE TEXT OF THE LINK} in a module? Is there anywhere an example on

Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Rainer M Krug wrote: Thanks a lot for the info - I should have looked closer. But it would be nice, if both would be read and just added to each other. Yes. That's actually http://www.lyx.org/trac/ticket/3983 Jürgen

Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jean-Marc Lasgouttes
Le 05/01/2012 17:32, Jürgen Spitzmüller a écrit : Rainer M Krug wrote: Thanks a lot for the info - I should have looked closer. But it would be nice, if both would be read and just added to each other. Yes. That's actually http://www.lyx.org/trac/ticket/3983 I think we should not read both

Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: I think we should not read both files, since the semantics of replacing a system file by a user one should be preserved. It would be better to load a external_templates.user file (or any better name you come up with), like we load several flavors of lyxrc files

Re: How to prevent "escaping" for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Rainer M Krug wrote: > I have written this small module to make attaching files to a pdf > easier. It works nice, unless I have e.g. a _ in the file name, as > then the text in the inset is "escaped", i.e. newfile_1.lyx becomes > newfile\_.lyx, which is obviously not found. Is there a way of >

Re: How to prevent "escaping" for LaTeX when in module?

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/01/12 15:22, Jürgen Spitzmüller wrote: > Rainer M Krug wrote: >> I have written this small module to make attaching files to a >> pdf easier. It works nice, unless I have e.g. a _ in the file >> name, as then the text in the inset is "escaped",

Re: How to prevent "escaping" for LaTeX when in module?

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/01/12 15:56, Rainer M Krug wrote: > On 05/01/12 15:22, Jürgen Spitzmüller wrote: >> Rainer M Krug wrote: >>> I have written this small module to make attaching files to a >>> pdf easier. It works nice, unless I have e.g. a _ in the file >>>

Re: How to prevent "escaping" for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Rainer M Krug wrote: > One more question: how can I deal with a function which requires two > paramerer, e.g. \textattachfile{FILENAME.EXT}{THE TEXT OF THE LINK} in > a module? Is there anywhere an example on how an inset with two > parametern looks? In Paragraphy styles (not in layouts I think),

Re: How to prevent "escaping" for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Rainer M Krug wrote: > Just a quick follow up - to add a template, do I have to add it to the > existing external_templates file, or can I have the additional > template in my .lyx folder (which subfolder?)? external_templates itself states it clearly: # This file contains the definitions of

Re: How to prevent "escaping" for LaTeX when in module?

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/01/12 16:16, Jürgen Spitzmüller wrote: > Rainer M Krug wrote: >> Just a quick follow up - to add a template, do I have to add it >> to the existing external_templates file, or can I have the >> additional template in my .lyx folder (which

Re: How to prevent "escaping" for LaTeX when in module?

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/01/12 16:12, Jürgen Spitzmüller wrote: > Rainer M Krug wrote: >> One more question: how can I deal with a function which requires >> two paramerer, e.g. \textattachfile{FILENAME.EXT}{THE TEXT OF THE >> LINK} in a module? Is there anywhere an

Re: How to prevent "escaping" for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Rainer M Krug wrote: > Thanks a lot for the info - I should have looked closer. > But it would be nice, if both would be read and just added to each other. Yes. That's actually http://www.lyx.org/trac/ticket/3983 Jürgen

Re: How to prevent "escaping" for LaTeX when in module?

2012-01-05 Thread Jean-Marc Lasgouttes
Le 05/01/2012 17:32, Jürgen Spitzmüller a écrit : Rainer M Krug wrote: Thanks a lot for the info - I should have looked closer. But it would be nice, if both would be read and just added to each other. Yes. That's actually http://www.lyx.org/trac/ticket/3983 I think we should not read both

Re: How to prevent "escaping" for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > I think we should not read both files, since the semantics of replacing > a system file by a user one should be preserved. It would be better to > load a external_templates.user file (or any better name you come up > with), like we load several flavors of lyxrc