Hi,
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
LyX ⇒ Compiling Error ! Bad mathchar (32768)
-
- Posts: 2
- Joined: Thu Feb 23, 2017 2:44 pm
Compiling Error ! Bad mathchar (32768)
- Attachments
-
- MWE_Bad_Mathchar.lyx
- (5.37 KiB) Downloaded 432 times
-
- Ins_Table_Main_Results.tex
- (174 Bytes) Downloaded 375 times
-
- Fra_Table_Main_Results.tex
- (856 Bytes) Downloaded 400 times
NEW: TikZ book now 40% off at Amazon.com for a short time.

Compiling Error ! Bad mathchar (32768)
Hi,
try put this in the preamble:
try put this in the preamble:
Code: Select all
\usepackage{mathpazo}
\usepackage[mathpazo]{flexisym}
-
- Posts: 2
- Joined: Thu Feb 23, 2017 2:44 pm
Compiling Error ! Bad mathchar (32768)
Hi roby92ita,
this actually worked. Thank you! So what exactly was the problem here? A missing font for the math stuff?
Best,
TiredHornet
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)
You're welcome!
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.
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.