Re: Macros with optional arguments - LyX 1.6.1

2009-01-08 Thread Stefan Schimanski
Am 07.01.2009 um 22:45 schrieb Jean-Marc Lasgouttes: xargs is only needed if you have macros with optional arguments. Of course, \newcommand could handle the case with one optional. But, what we need in fact is something equivalent to \global\def for this case. Is there a way to do this

Re: Macros with optional arguments - LyX 1.6.1

2009-01-08 Thread Stefan Schimanski
Am 07.01.2009 um 22:45 schrieb Jean-Marc Lasgouttes: xargs is only needed if you have macros with optional arguments. Of course, \newcommand could handle the case with one optional. But, what we need in fact is something equivalent to \global\def for this case. Is there a way to do this

Re: Macros with optional arguments - LyX 1.6.1

2009-01-08 Thread Jean-Marc Lasgouttes
Stefan Schimanski s...@1stein.org writes: I think that \global\newcommand works in any case. It does? I think I tried and it did not. I might be wrong. I cannot find reference to that right now. A second requirement: the distinction between \newcommand and \renewcommand is very fragile. It

Re: Macros with optional arguments - LyX 1.6.1

2009-01-08 Thread Stefan Schimanski
Am 07.01.2009 um 22:45 schrieb Jean-Marc Lasgouttes: xargs is only needed if you have macros with optional arguments. Of course, \newcommand could handle the case with one optional. But, what we need in fact is something equivalent to \global\def for this case. Is there a way to do this

Re: Macros with optional arguments - LyX 1.6.1

2009-01-08 Thread Stefan Schimanski
Am 07.01.2009 um 22:45 schrieb Jean-Marc Lasgouttes: xargs is only needed if you have macros with optional arguments. Of course, \newcommand could handle the case with one optional. But, what we need in fact is something equivalent to \global\def for this case. Is there a way to do this

Re: Macros with optional arguments - LyX 1.6.1

2009-01-08 Thread Jean-Marc Lasgouttes
Stefan Schimanski s...@1stein.org writes: I think that \global\newcommand works in any case. It does? I think I tried and it did not. I might be wrong. I cannot find reference to that right now. A second requirement: the distinction between \newcommand and \renewcommand is very fragile. It

Re: Macros with optional arguments - LyX 1.6.1

2009-01-08 Thread Stefan Schimanski
Am 07.01.2009 um 22:45 schrieb Jean-Marc Lasgouttes: xargs is only needed if you have macros with optional arguments. Of course, \newcommand could handle the case with one optional. But, what we need in fact is something equivalent to \global\def for this case. Is there a way to do this

Re: Macros with optional arguments - LyX 1.6.1

2009-01-08 Thread Stefan Schimanski
Am 07.01.2009 um 22:45 schrieb Jean-Marc Lasgouttes: xargs is only needed if you have macros with optional arguments. Of course, \newcommand could handle the case with one optional. But, what we need in fact is something equivalent to \global\def for this case. Is there a way to do this

Re: Macros with optional arguments - LyX 1.6.1

2009-01-08 Thread Jean-Marc Lasgouttes
Stefan Schimanski writes: >> I think that \global\newcommand works in any case. > > It does? I think I tried and it did not. I might be wrong. I cannot find reference to that right now. > A second requirement: the distinction between \newcommand and > \renewcommand is very

Re: Macros with optional arguments - LyX 1.6.1

2009-01-07 Thread Jean-Marc Lasgouttes
[cc:ing to lyx-devel] James C. Sutherland james.sutherl...@utah.edu writes: Okay, I think that I found the problem: I am missing the xargs package. The exported LaTeX file actually had a line: \usepackage{xargs}[2008/03/08] which I discarded. This is presumably where the \newcommandx

Re: Macros with optional arguments - LyX 1.6.1

2009-01-07 Thread Stefan Schimanski
Am 07.01.2009 um 10:59 schrieb Jean-Marc Lasgouttes: [cc:ing to lyx-devel] James C. Sutherland james.sutherl...@utah.edu writes: Okay, I think that I found the problem: I am missing the xargs package. The exported LaTeX file actually had a line: \usepackage{xargs}[2008/03/08] which

Re: Macros with optional arguments - LyX 1.6.1

2009-01-07 Thread Stefan Schimanski
Am 06.01.2009 um 16:58 schrieb James C. Sutherland: I have been using macros in 1.6.1, and recently tried to use a macro with an optional argument. I have attached a trivial LyX file that shows this macro and an example of its use. This compiles through LyX just fine. The problem is

Re: Macros with optional arguments - LyX 1.6.1

2009-01-07 Thread Jean-Marc Lasgouttes
xargs is only needed if you have macros with optional arguments. Of course, \newcommand could handle the case with one optional. But, what we need in fact is something equivalent to \global\def for this case. Is there a way to do this with \newcommand? Why \global? I think that

Re: Macros with optional arguments - LyX 1.6.1

2009-01-07 Thread James C. Sutherland
On Jan 7, 2009, at 2:05 PM, Stefan Schimanski wrote: Updating your MacTex to the latest version will solve the problem. Updating MacTex did the job. Thank you! James

Re: Macros with optional arguments - LyX 1.6.1

2009-01-07 Thread Jean-Marc Lasgouttes
[cc:ing to lyx-devel] James C. Sutherland james.sutherl...@utah.edu writes: Okay, I think that I found the problem: I am missing the xargs package. The exported LaTeX file actually had a line: \usepackage{xargs}[2008/03/08] which I discarded. This is presumably where the \newcommandx

Re: Macros with optional arguments - LyX 1.6.1

2009-01-07 Thread Stefan Schimanski
Am 07.01.2009 um 10:59 schrieb Jean-Marc Lasgouttes: [cc:ing to lyx-devel] James C. Sutherland james.sutherl...@utah.edu writes: Okay, I think that I found the problem: I am missing the xargs package. The exported LaTeX file actually had a line: \usepackage{xargs}[2008/03/08] which

Re: Macros with optional arguments - LyX 1.6.1

2009-01-07 Thread Stefan Schimanski
Am 06.01.2009 um 16:58 schrieb James C. Sutherland: I have been using macros in 1.6.1, and recently tried to use a macro with an optional argument. I have attached a trivial LyX file that shows this macro and an example of its use. This compiles through LyX just fine. The problem is

Re: Macros with optional arguments - LyX 1.6.1

2009-01-07 Thread Jean-Marc Lasgouttes
xargs is only needed if you have macros with optional arguments. Of course, \newcommand could handle the case with one optional. But, what we need in fact is something equivalent to \global\def for this case. Is there a way to do this with \newcommand? Why \global? I think that

Re: Macros with optional arguments - LyX 1.6.1

2009-01-07 Thread James C. Sutherland
On Jan 7, 2009, at 2:05 PM, Stefan Schimanski wrote: Updating your MacTex to the latest version will solve the problem. Updating MacTex did the job. Thank you! James

Re: Macros with optional arguments - LyX 1.6.1

2009-01-07 Thread Jean-Marc Lasgouttes
[cc:ing to lyx-devel] "James C. Sutherland" writes: > Okay, I think that I found the problem: I am missing the "xargs" > package. The exported LaTeX file actually had a line: > \usepackage{xargs}[2008/03/08] > which I discarded. This is presumably where the

Re: Macros with optional arguments - LyX 1.6.1

2009-01-07 Thread Stefan Schimanski
Am 07.01.2009 um 10:59 schrieb Jean-Marc Lasgouttes: [cc:ing to lyx-devel] "James C. Sutherland" writes: Okay, I think that I found the problem: I am missing the "xargs" package. The exported LaTeX file actually had a line: \usepackage{xargs}[2008/03/08]

Re: Macros with optional arguments - LyX 1.6.1

2009-01-07 Thread Stefan Schimanski
Am 06.01.2009 um 16:58 schrieb James C. Sutherland: I have been using macros in 1.6.1, and recently tried to use a macro with an optional argument. I have attached a trivial LyX file that shows this macro and an example of its use. This compiles through LyX just fine. The problem is

Re: Macros with optional arguments - LyX 1.6.1

2009-01-07 Thread Jean-Marc Lasgouttes
xargs is only needed if you have macros with optional arguments. Of course, \newcommand could handle the case with one optional. But, what we need in fact is something equivalent to \global\def for this case. Is there a way to do this with \newcommand? Why \global? I think that

Re: Macros with optional arguments - LyX 1.6.1

2009-01-07 Thread James C. Sutherland
On Jan 7, 2009, at 2:05 PM, Stefan Schimanski wrote: Updating your MacTex to the latest version will solve the problem. Updating MacTex did the job. Thank you! James

Macros with optional arguments - LyX 1.6.1

2009-01-06 Thread James C. Sutherland
I have been using macros in 1.6.1, and recently tried to use a macro with an optional argument. I have attached a trivial LyX file that shows this macro and an example of its use. This compiles through LyX just fine. The problem is that if I export the file to LaTeX and then try to

Re: Macros with optional arguments - LyX 1.6.1

2009-01-06 Thread James C. Sutherland
Okay, I think that I found the problem: I am missing the xargs package. The exported LaTeX file actually had a line: \usepackage{xargs}[2008/03/08] which I discarded. This is presumably where the \newcommandx tag is defined. The problem is that when I run LaTeX on the file, I get

Macros with optional arguments - LyX 1.6.1

2009-01-06 Thread James C. Sutherland
I have been using macros in 1.6.1, and recently tried to use a macro with an optional argument. I have attached a trivial LyX file that shows this macro and an example of its use. This compiles through LyX just fine. The problem is that if I export the file to LaTeX and then try to

Re: Macros with optional arguments - LyX 1.6.1

2009-01-06 Thread James C. Sutherland
Okay, I think that I found the problem: I am missing the xargs package. The exported LaTeX file actually had a line: \usepackage{xargs}[2008/03/08] which I discarded. This is presumably where the \newcommandx tag is defined. The problem is that when I run LaTeX on the file, I get

Macros with optional arguments - LyX 1.6.1

2009-01-06 Thread James C. Sutherland
I have been using macros in 1.6.1, and recently tried to use a macro with an optional argument. I have attached a trivial LyX file that shows this macro and an example of its use. This compiles through LyX just fine. The problem is that if I export the file to LaTeX and then try to

Re: Macros with optional arguments - LyX 1.6.1

2009-01-06 Thread James C. Sutherland
Okay, I think that I found the problem: I am missing the "xargs" package. The exported LaTeX file actually had a line: \usepackage{xargs}[2008/03/08] which I discarded. This is presumably where the "\newcommandx" tag is defined. The problem is that when I run LaTeX on the file, I