Re: Tabelle matematiche

#22538
lorenzo.pantieri
Partecipante
    Up
    0
    Down
    ::


    Niente da fare. Quel codice da solo funziona, ma va in conflitto con gli altri pacchetti che uso. Cominciamo dalla tabella con gli stili matematici e il mathcal “problematico”:
    `\documentclass{scrreprt}

    \newcommand{\myName}{…}
    \newcommand{\myTitle}{…}

    \usepackage[T1]{fontenc}
    \usepackage{amsfonts,amssymb}
    \usepackage{makeidx}
    \usepackage[light,condensed,math]{iwona}
    \usepackage[italian,squaren,cdot]{SIunits}
    \usepackage{classicthesis-ldpkg}
    \usepackage[eulermath,pdfspacing]{classicthesis}

    \DeclareRobustCommand*{\comando}[1]{\lstinline!\\#1!%
    \index{Comando!#1@\texttt{\textbackslash#1}}%
    \index{#1@\texttt{\hspace*{-1.2ex}\textbackslash#1}}}

    \DeclareRobustCommand*{\pacchetto}[1]{{\normalfont\ttfamily#1}%
    \index{Pacchetto!#1@\texttt{#1}}%
    \index{#1@\texttt{#1}}}

    \newsavebox{\symbbox}
    \newenvironment{symbols}[1]%
    {\medskip
    \renewcommand{\arraystretch}{1.1}
    \begin{lrbox}{\symbbox}
    \begin{tabular}{@{}#1@{}}}%
    {\end{tabular}\end{lrbox}\makebox[\textwidth][c]{\usebox{\symbbox}}\par\medskip}

    \IfFileExists{mathrsfs.sty}
    {\RequirePackage{mathrsfs}\let\MathRSFS\mathscr\let\mathscr\relax}{}
    \IfFileExists{amssymb.sty}
    {\let\noAMS\relax \RequirePackage{amssymb}}
    {\def\noAMS{\endinput}\RequirePackage{latexsym}}
    \IfFileExists{eucal.sty}
    {\RequirePackage[mathscr]{eucal}}
    {\IfFileExists{euscript.sty}
    {\RequirePackage{euscript}}{}}
    \IfFileExists{amsbsy.sty}
    {\RequirePackage{amsbsy}}{}

    \DeclareSymbolFont{ltxsymbols}{OMS}{cmsy}{m}{n}
    \DeclareSymbolFontAlphabet{\ltxmathcal}{ltxsymbols}

    \begin{document}

    \begin{table}[tb]
    \caption{Font matematici.}
    \begin{symbols}{@{}*3l@{}}
    \toprule
    Esempio & Comando & Pacchetto richiesto \\
    \midrule
    $\mathit{ABCdef}$ & \comando{mathit}\lstinline!{ABCdef}! & \\
    $\mathbf{ABCdef}$ & \comando{mathbf}\lstinline!{ABCdef}! & \\
    $\mathrm{ABCdef}$ & \comando{mathrm}\lstinline!{ABCdef}! & \\
    $\mathtt{ABCdef}$ & \comando{mathtt}\lstinline!{ABCdef}! & \\
    $\mathsf{ABCdef}$ & \comando{mathsf}\lstinline!{ABCdef}! & \\
    $\mathnormal{ABCdef}$ & \comando{mathnormal}\lstinline!{ABCdef}! & \\
    $\ltxmathcal{ABC}$ & \comando{mathcal}\lstinline!{ABC}! & \\
    \ifx\MathRSFS\undefined\else
    $\MathRSFS{ABC}$ & \comando{mathscr}\lstinline!{ABC}! &\pacchetto{mathrsfs} \\
    \fi
    \ifx\EuScript\undefined\else
    $\EuScript{ABC}$ & \comando{mathcal}\lstinline!{ABC}! &\pacchetto{eucal} \\
    $\mathfrak{ABCdef}$ & \comando{mathfrak}\lstinline!{ABCdef}! &\pacchetto{eufrak} \\
    \fi
    $\mathbb{ABC}$ & \comando{mathbb}\lstinline!{ABC}! &\pacchetto{amssymb} \\
    \bottomrule
    \end{symbols}
    \end{table}

    \end{document}
    `
    Sul mio Mac:
    `LaTeX Error: Too many math alphabets used in version iwona.
    `

    😥 😥 😥

    P.S. Se continuo comunque con la compilazione, ottengo il risultato voluto, ma quell’errore vorrei eliminarlo!!

    Go to top