Re: InPreamble Tag: Bug #10215

2016-06-24 Thread Richard Heck
I'm now wondering whether what we really want to do here is just output ALL the things that are included via addPreambleSnippet after the "Textclass specific LaTeX commands": This is all the stuff loaded via Preamble and AddToPreamble in the main document layout file and by specific styles and

Re: InPreamble Tag: Bug #10215

2016-06-19 Thread Guenter Milde
On 2016-06-18, Guillaume Munch wrote: > Le 18/06/2016 17:42, Richard Heck a écrit : >> On 06/17/2016 05:16 AM, Jean-Marc Lasgouttes wrote: >>> Le 14/06/2016 à 18:53, Richard Heck a écrit : This seems to me to count as a bug. To fix it, though, we'd obviously have to output the code from

Re: InPreamble Tag: Bug #10215

2016-06-18 Thread Guillaume Munch
Le 18/06/2016 17:42, Richard Heck a écrit : On 06/17/2016 05:16 AM, Jean-Marc Lasgouttes wrote: Le 14/06/2016 à 18:53, Richard Heck a écrit : This seems to me to count as a bug. To fix it, though, we'd obviously have to output the code from the style AFTER the Preamble, which would change the

Re: InPreamble Tag: Bug #10215

2016-06-18 Thread Richard Heck
On 06/17/2016 05:16 AM, Jean-Marc Lasgouttes wrote: > Le 14/06/2016 à 18:53, Richard Heck a écrit : >> This seems to me to count as a bug. To fix it, though, we'd obviously >> have to output the code from the style AFTER the Preamble, which would >> change the TeX export of lots of files. An

Re: InPreamble Tag: Bug #10215

2016-06-18 Thread Richard Heck
On 06/17/2016 06:34 AM, Jean-Pierre Chrétien wrote: > Le 14/06/2016 17:53, Richard Heck a écrit : >> >> Suppose you have a style like this: >> >> Style Test >>LaTeXType command >>LaTeXName whatever >>InPreamble 1 >>Preamble >> \newcommand\whatever[1]{#1} >>EndPreamble >>

Re: InPreamble Tag: Bug #10215

2016-06-17 Thread Jean-Pierre Chrétien
Le 14/06/2016 17:53, Richard Heck a écrit : Suppose you have a style like this: Style Test LaTeXType command LaTeXName whatever InPreamble 1 Preamble \newcommand\whatever[1]{#1} EndPreamble End Then LyX gives you: % LyX specific LaTeX commands. \whatever{this is a test}

Re: InPreamble Tag: Bug #10215

2016-06-17 Thread Jean-Marc Lasgouttes
Le 14/06/2016 à 18:53, Richard Heck a écrit : This seems to me to count as a bug. To fix it, though, we'd obviously have to output the code from the style AFTER the Preamble, which would change the TeX export of lots of files. An alternative would be to introduce a new tag that would basically

InPreamble Tag: Bug #10215

2016-06-14 Thread Richard Heck
Suppose you have a style like this: Style Test LaTeXType command LaTeXName whatever InPreamble 1 Preamble \newcommand\whatever[1]{#1} EndPreamble End Then LyX gives you: % LyX specific LaTeX commands. \whatever{this is a test} % Textclass specific LaTeX commands.