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?
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
-
- 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
Code, edit and compile here:\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