LyX ⇒ Compiling Error ! Bad mathchar (32768)
-
TiredHornet
- Posts: 2
- Joined: Thu Feb 23, 2017 2:44 pm
Compiling Error ! Bad mathchar (32768)
I am having some trouble compiling an article in LyX. I get the errors:
!Bad mathchar (32768)
! Missing number, treated as zero.
! Missing number, treated as zero.
The bad mathcar error has the following message in the log file:
"A mathchar number must be between 0 and 32767.
I changed this one to zero."
Missing number has this message:
"A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)"
I was able to narrow the problem down to either the table I input into LyX or the math formulas I use. I created a minimal working example, which I attached below. When I compile this LyX file I get the errors. If I remove either one of the equations or the table everything is fine. Can someone tell me what I am doing wrong?
Best regards,
TiredHornet
- Attachments
-
- MWE_Bad_Mathchar.lyx
- (5.37 KiB) Downloaded 457 times
-
- Ins_Table_Main_Results.tex
- (174 Bytes) Downloaded 406 times
-
- Fra_Table_Main_Results.tex
- (856 Bytes) Downloaded 423 times
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
Compiling Error ! Bad mathchar (32768)
try put this in the preamble:
Code: Select all
\usepackage{mathpazo}
\usepackage[mathpazo]{flexisym}-
TiredHornet
- Posts: 2
- Joined: Thu Feb 23, 2017 2:44 pm
Compiling Error ! Bad mathchar (32768)
this actually worked. Thank you! So what exactly was the problem here? A missing font for the math stuff?
Best,
TiredHornet
Compiling Error ! Bad mathchar (32768)
Actually searching for that error I found this on a forum:
"It has nothing to do with the specific table used but the fact that the table may contain math characters or somehow messes with the way LyX deals with math characters inside tex code."
So I thought that using a package for math symbols could help and it worked for your example, but I'm not sure what exactly the problem was.
Try looking in breqn for more details.