On 29.05.08, G. Milde wrote: > On 28.05.08, Abdelrazak Younes wrote: > > Helge Hafting wrote: > >> Abdelrazak Younes wrote: > >>> Jean-Marc Lasgouttes wrote:
> >>>> How difficult would it be to support unicode in maths?
> >>> In 1.5 forget about it. In 1.6 that would require a lot of work I
> >>> guess.
> >> This wasn't any generic unicode character, it was a delta which is
> >> normally used in math. The only strange thing about it was that it
> >> was in unicode rather than spelled out \delta.
> Support for individuall unicode characters in math can be achieved easily
> with lines like
> % centered dot
> \DeclareUnicodeCharacter{00B7}{\ifmmode\cdot\else\textperiodcentered\fi}
> in the LaTeX preamble (from Herbert Voss' "de_math.lyx" tips)
> without any change to the LyX code.
Unfortunately, this fails if the character in question is the first
character in a math array or equationarray (and similar).
See attached file math-inputenc-test.lyx.
(This is usually not a problem with characters like the centered dot
(Malzeichen) or \textdegree.)
> As with all common LaTeX problems, there should be a package providing
> this kind of table.
There are two packages supporting unicode in math (at least partially):
1. Package ucs and its utf8x font encoding together with
\SetUnicodeOption{mathletters} in the LaTeX preamble.
+ simple, all requirements are part of TeXLive (and probabely most
other standard TeX distributions)
- Not suited for Greek text
- set of math unicode chars not easily extendable,
5·3 becomes 5Δ3.
see attachment math-inputenc-ucs-test.lyx
2. The experimental package inpmath
http://www.latex-project.org/code/experimental/inpmath.zip
+ extensible
+ works also parallel to LGR encoding for Greek text
- experimental package not in TeXLive
- no pre-defined MathMeaning for Greek symbols
see attachment math-inpmath-test.lyx
All attachements work with my lyx 1.5.5 on Debian (after installing
inpmath).
Günter
math-inputenc-test.lyx
Description: application/lyx
math-inputenc-ucs-test.lyx
Description: application/lyx
math-inpmath-test.lyx
Description: application/lyx
