Re: Strange behaviour on user command defined in preamble.

2012-07-26 Thread PhilipPirrip
Why don't you try this: http://www.ctan.org/tex-archive/macros/latex/contrib/acronym/acronym.pdf (Though I never worked with it, I think that Insert>Nomenclature entry... could do the same within LyX)

Mountain Lion

2012-07-26 Thread Anders Host-Madsen
Did anyone try to run LyX under Mountain Lion? Any problems? Thanks.

Re: Strange behaviour on user command defined in preamble.

2012-07-26 Thread Carlos Eduardo de Brito Novaes
Just for information, the actual command definition is presented below. I plan to use at the very first time a symbol is declared so it will get written to the list of symbols with the corresponding description. \newcommand{\simbolo}[2] { \ifthenelse{\equal{#2}{}} {\addcontentsline{los}{si

Re: Strange behaviour on user command defined in preamble.

2012-07-26 Thread Carlos Eduardo de Brito Novaes
I tried to replicate this error by setting a different language on different sections (something I do frequently in citations and for some expressions), but I cant reproduce the error anymore. Maybe if I mess up the text a little. Thanks for the help.

Re: Strange behaviour on user command defined in preamble.

2012-07-26 Thread Carlos Eduardo de Brito Novaes
I tried to replicate this error by setting a different language on different sections (something I do frequently in citations and for some expressions), but I cant reproduce the error anymore. Maybe if I mess up the text a little. Thanks for the help.

Re: Strange behaviour on user command defined in preamble.

2012-07-26 Thread Carlos Eduardo de Brito Novaes
This test case worked here too. Just my file behave strange, if I wrote some parts I got no errors, but if I copy the section that gave-me errors in your example it works fine. I found out that for some reason the lyx code had an line "\lang brasilian" just after the section that does not work,

Re: Strange behaviour on user command defined in preamble.

2012-07-26 Thread PhilipPirrip
The attached example works for me, an produces - Else1 Else2 is - simbolo-minimal.lyx Description: application/lyx

Re: Strange behaviour on user command defined in preamble.

2012-07-26 Thread PhilipPirrip
Do you have any suggestions? Minimal example .lyx file please.

Strange behaviour on user command defined in preamble.

2012-07-26 Thread Carlos Eduardo de Brito Novaes
Hello Everyone. I use lyx for some years, and use some (very few) advanced features. By now I intend to create a command to create a list of simbols in abnt style. So I wrote this in the preamble, for testing reasons only. \newcommand{\simbolo}[2] { \ifthenelse{\equal{#1}{}} {Then1} {

Re: Sweave documents fail to compile under 2.03

2012-07-26 Thread Yihui Xie
Oh, that is far in the opposite direction now -- too much debug information :) You do not need to turn on debug messages; normal messages are enough. The problem comes from: Rscript --verbose --no-save --no-restore "/Applications/LyX 2.app/Contents/Resources/scripts/lyxsweave.R" becomes '/L

Re: Sweave documents fail to compile under 2.03

2012-07-26 Thread Yihui Xie
You did not read Section 4 carefully. I said in the manual that you need to open View-->View Messages, and check the messages there. A simple error dialogue box saying "An error occured while running Rscript --verbose..." is not helpful for diagnosis at all. BTW, your document compiles fine under m

Re: Sweave documents fail to compile under 2.03

2012-07-26 Thread Yihui Xie
Please read section 4 of the manual and report more information: https://github.com/downloads/yihui/lyx/sweave.pdf otherwise it is hard to know what is exactly is the "failure". Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University

Sweave documents fail to compile under 2.03

2012-07-26 Thread Hobbs,Tom
Hello-- I have a mysterious problem. All of the documents that I created including Sweave code using lyx 2.0 fail to compile when I use lyx 2.03. I am running lyx using Mac OS Lion. I have several large documents with lots of Sweave code, so until I get this worked out, I won't able to upgrad

Re: working directory cannot find graphics files

2012-07-26 Thread Hobbs,Tom
Many thanks--I eventually figured this out. It is possible to do the working directory route as well, but you can't do both--have relative path names in directories below the one where the document is stored and the working directory set in Preferences. Thanks again for your helpful response.