sovrappongono due simboli

  • Creatore
    Topic
  • #119043
    Up
    0
    Down
    ::


    sovrapongo due simboli

Visualizzazione 1 filone di risposte
  • Autore
    Risposte
    • #119044
      OldClaudio
      Partecipante
        Up
        0
        Down
        ::


        Spiegati meglio.

      • #119045
        Up
        0
        Down
        ::


        Semplice:

        `
        \documentclass{article}
        \usepackage{amsmath}

        \makeatletter
        \newcommand{\overlay}[3][\mathord]{%
        #1{\vphantom{#2#3}\mathpalette\overlay@{{#2}{#3}}}%
        }
        \newcommand{\overlay@}[2]{\overlay@@#1#2}

        \newcommand{\overlay@@}[3]{%
        \ooalign{\hfil$\m@th#1#2$\hfil\cr\hfil$\m@th#1#3$\hfil\cr}%
        }
        \makeatother

        \begin{document}

        $x\overlay[\mathrel]{\to}{\mapstochar}y$

        $x\overlay[\mathrel]{\to}{\mapstochar\mspace{4mu}}y$

        $\displaystyle\overlay[\mathop]{\bigcup}{\circ}$
        $\textstyle\overlay[\mathop]{\bigcup}{\circ}$
        $\scriptstyle\overlay[\mathop]{\bigcup}{\circ}$
        $\scriptscriptstyle\overlay[\mathop]{\bigcup}{\circ}$

        \end{document}
        `

        [attachment=2547]ScreenShot2020-11-18at13.38.44.png[/attachment]

        Ciao
        Enrico

        Attachments:
        You must be logged in to view attached files.
    Visualizzazione 1 filone di risposte
    • Devi essere connesso per rispondere a questo topic.

    Go to top