LyXMacTex 2010 - Lyx can't detect siunitx.lyx?

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
kllim
Posts: 3
Joined: Tue Oct 05, 2010 8:33 am

MacTex 2010 - Lyx can't detect siunitx.lyx?

Post by kllim »

After I update my MacTex to 2010, my Lyx could not detect siunitx.lyx.
It was alright before I update it. Now when I try to compile my file to pdf, the errors:"undefined control sequence" keep popping out.
One of the description is as following:

...ires about $\mbox{2.21 \kilowatthour/\kg}
$ to reach $\mbox{800 \bbar}$
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

Any idea how to resolve this problem?
Last edited by kllim on Wed Oct 06, 2010 11:52 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

MacTex 2010 - Lyx can't detect siunitx.lyx?

Post by josephwright »

It's hard to tell from your error, but I suspect that you've moved from siunitx v1 to v2 and are expecting to use units outside of the \SI/\si macros. To do that, you need to set a load-time option. Now, I'm not a Lyx user so this is a tough one for me. In pure LaTeX:

Code: Select all

\documentclass{article}
\usepackage[load-configurations=version-1]{siunitx}
\begin{document}
 to reach $\mbox{800 \bbar}$
\end{document}
Joseph Wright
kllim
Posts: 3
Joined: Tue Oct 05, 2010 8:33 am

MacTex 2010 - Lyx can't detect siunitx.lyx?

Post by kllim »

josephwright wrote:It's hard to tell from your error, but I suspect that you've moved from siunitx v1 to v2 and are expecting to use units outside of the \SI/\si macros. To do that, you need to set a load-time option. Now, I'm not a Lyx user so this is a tough one for me. In pure LaTeX:

Code: Select all

\documentclass{article}
\usepackage[load-configurations=version-1]{siunitx}
\begin{document}
 to reach $\mbox{800 \bbar}$
\end{document}
Dear Joseph,
Have solved the problem. I reinstalled the Texlive 2010, then change the syntax to $\mbox\si{\bbar}. It works!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

MacTex 2010 - Lyx can't detect siunitx.lyx?

Post by localghost »

Now that the problem is solved, please be so kind and mark the topic accordingly as clearly written in the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminders will not be necessary.


Best regards and welcome to the board
Thorsten
Post Reply