LyX ⇒ MacTex 2010 - Lyx can't detect siunitx.lyx?
MacTex 2010 - Lyx can't 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?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
MacTex 2010 - Lyx can't detect siunitx.lyx?
Code: Select all
\documentclass{article}
\usepackage[load-configurations=version-1]{siunitx}
\begin{document}
to reach $\mbox{800 \bbar}$
\end{document}
MacTex 2010 - Lyx can't detect siunitx.lyx?
Dear Joseph,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}
Have solved the problem. I reinstalled the Texlive 2010, then change the syntax to $\mbox\si{\bbar}. It works!
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
MacTex 2010 - Lyx can't detect siunitx.lyx?
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10