Re: Macros with optional arguments - LyX 1.6.1
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 an error: "File 'xargs.sty' not found" The LyX file compiles fine, so I must have this file installed, but I cannot seem to find where. I have attached the actual .tex file that LyX produces. Is anyone else able to compile this? James macro_test.tex Description: Binary data On Jan 6, 2009, at 8:58 AM, James C. Sutherland wrote: 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 compile it, the macro definition seems to create problems. This does not occur with macros that only have required arguments. I don't know much about LaTeX macros, so I am not sure if what LyX is doing for the LaTeX export makes sense or not. However, macros with optional arguments have the "\newcommandx" tag while macros without optional arguments do not. The "\newcommandx" tag seems to give LaTeX some trouble. Specifically, when I compile the .tex file, I get the error "Undefined control sequence" when the "\newcommandx" line is parsed. I have also attached the exported .tex file. Can anyone duplicate this? Is this a known problem? I am on Mac OSX with LyX 1.6.1. James
Macros with optional arguments - LyX 1.6.1
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 compile it, the macro definition seems to create problems. This does not occur with macros that only have required arguments. I don't know much about LaTeX macros, so I am not sure if what LyX is doing for the LaTeX export makes sense or not. However, macros with optional arguments have the "\newcommandx" tag while macros without optional arguments do not. The "\newcommandx" tag seems to give LaTeX some trouble. Specifically, when I compile the .tex file, I get the error "Undefined control sequence" when the "\newcommandx" line is parsed. I have also attached the exported .tex file. Can anyone duplicate this? Is this a known problem? I am on Mac OSX with LyX 1.6.1. James macro_test.tex Description: Binary data macro_test.lyx Description: Binary data
Re: biblatex for Lyx 1.6.1, OSX
On Tue, Jan 6, 2009 at 4:21 AM, Jürgen Spitzmüller wrote: > I think on the Mac, it's /Library/texmf/bibtex/bib > (if the bibtex or bib folder does not ecist, just create it) That's right. Bennett
Re: biblatex for Lyx 1.6.1, OSX
That's one reason to put it under your home (personal, user) directory. Normally, your TeX distribution will define a "user" directory, where you can put stuff that is "just yours". In your case, it's like to be something like /Users/stefan/texmf/, but I don't know for sure, as I too am not on Mac. But if that were right, then you could put your bib files in /Users/stefan/texmf/bibtex/ bib/, and they'd no more be lost on update than any of your other "personal" files. I think on the Mac, it's /Library/texmf/bibtex/bib (if the bibtex or bib folder does not ecist, just create it) Would I have to add the path in the preamble then? No. Thanks again. I will save my files there from now on. Best* Jess
Re: biblatex for Lyx 1.6.1, OSX
jezZiFeR wrote: > > That's one reason to put it under your home (personal, user) > > directory. Normally, your TeX distribution will define a "user" > > directory, where you can put stuff that is "just yours". In your > > case, it's like to be something like /Users/stefan/texmf/, but I > > don't know for sure, as I too am not on Mac. But if that were right, > > then you could put your bib files in /Users/stefan/texmf/bibtex/ > > bib/, and they'd no more be lost on update than any of your other > > "personal" files. I think on the Mac, it's /Library/texmf/bibtex/bib (if the bibtex or bib folder does not ecist, just create it) > Would I have to add the path in the preamble then? No. Jürgen