Re: \dagger e LuaLaTeX

#92577
robitex
Amministratore del forum
    Up
    0
    Down
    ::

    PM” post=92169Salve, usando lualatex sto avendo il seguente problema: volendo utilizzare simboli UTF8 da inserire direttamente nel sorgente, ho incluso nel prambolo il pacchetto unicode-math. Tuttavia se compilo

    `
    \documentclass[10pt]{article}
    \usepackage{fontspec}
    \usepackage{luaotfload}
    \usepackage{unicode-math}
    \begin{document}
    Buongiorno $O^\dagger$
    \end{document}
    `

    ottengo l’errore
    `
    Missing { inserted Buongiorno $O^\dagger$
    Command \textdagger invalid in math mode on input line 11.
    Missing } inserted Buongiorno $0^\dagger$
    `

    il problema non sussiste se

    1) non inserisco unicode-math
    2) scrivo $O^{\dagger}$

    Tuttavia gradirei funzionasse anche semplicemente inserendo $O^\dagger$. È possibile?
    Grazie in anticipo

    Mi dispiace ma il codice da te postato compila perfettamente nella mia TeX Live 2013.
    Ecco le versoni dei pacchetti:
    `
    $ tlmgr show luatex
    package: luatex
    category: TLCore
    shortdesc: The LuaTeX engine.
    longdesc: LuaTeX is an extended version of pdfTeX using Lua as an embedded sc
    ripting language. The LuaTeX project's main objective is to provide an open and
    configurable variant of TeX while at the same time offering downward compatibili
    ty. LuaTeX uses Unicode (as UTF-8) as its default input encoding, and is able to
    use modern (OpenType) fonts (for both text and mathematics). It should be noted
    that LuaTeX is still under development; its specification has been declared sta
    ble, but absolute stability may not in practice be assumed.
    installed: Yes
    revision: 30581
    sizes: doc: 1885k, run: 149k, bin: 7461k
    relocatable: No
    cat-version: 0.70.1
    cat-date: 2011-11-09 15:33:34 +0100
    cat-license: gpl2
    collection: collection-basic

    $ tlmgr show unicode-math
    package: unicode-math
    category: Package
    shortdesc: Unicode mathematics support for XeTeX and LuaTeX.
    longdesc: The current release of this package typesets mathematics with unico
    de input and using OpenType maths fonts. (There is little compatibility with old
    er maths packages.) XeTeX support is well tested, though LuaTeX support less so.
    The package can typeset using STIX fonts, the XITS development of those fonts,
    the Asana-Math fonts, the Latin Modern Math, and the TeX Gyre Math font families
    s, as well as the commercial Cambria Math fonts. There is no support for extra a
    lphabets in the Unicode 'private use area'. The package relies on recent version
    s of the fontspec package and the l3kernel and l3packages bundles.
    installed: Yes
    revision: 30504
    sizes: src: 905k, doc: 4361k, run: 433k
    relocatable: Yes
    cat-version: 0.7d
    cat-date: 2013-03-17 15:18:45 +0100
    cat-license: lppl1.3
    collection: collection-mathextra
    `
    Ciao.
    R.

    Go to top