Am 18.11.24 um 15:43 schrieb Andreas Plihal via lyx-users:
Dear community,
to create a new layout for my mathematical KOMA book, I used the mdframed package. I extracted one of the examples from the associated documentation, but got an error. Then I radically shortened the preamble so that only the error remained. However, it is still possible to generate an output (MWE). I searched Google and Stack Exchange for a long time and made several attempts to fix the error, but unfortunately failed.

The error message reads:

! Missing number, treated as zero.

<to be read again>

−

l.78 ...in{stz}[\textsc{Pythagoräischer} Lehrsatz]

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.)

! Illegal unit of measure (pt inserted).

<to be read again>

−

l.78 ...in{stz}[\textsc{Pythagoräischer} Lehrsatz]


This line is the problem:

frametitleaboveskip=\dimexpr−\ht\strutbox\relax

Delete it and it should work. Maybe a bug in mdframed or
a change to the keyword frametitleaboveskip

Herbert



Dimensions can be in units of em, ex, in, pt, pc, cm, mm, dd, cc, bp, or sp; but yours is a new one! I'll assume that you meant to say pt, for printer's points. To recover gracefully from this error, it's best to delete the erroneous units; e.g., type `2' to delete two letters. (See Chapter 27 of The TeXbook.)

Can you help me, please?
Greetings
Andreas


--
lyx-users mailing list
lyx-users@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to