Schriftarten und Kalibrierung im Mathematikmodus

Schriftarten und Kalibrierung im Mathematikmodus

Hat jemand eine Idee, wie man das Kleine +in den tiefgestellten Ziffern, das Kürzere \overlinein den Ziffern \mathbb{N}und das Dicke \vertsin der Halbnorm unten hinbekommt, wie in der folgenden Notation zu sehen?

Bildbeschreibung hier eingeben

Antwort1

Hier sind einige mögliche Lösungen.

Verwenden Sie es \smallerplusfür die verkleinerte Größe „Plus“ und \shorteroverline{<symbol>}wenn Sie einen kürzeren Überstrich benötigen.

Denn \fatnormdie Syntax ist

  • \fatnorm*{<formula>}für die "automatisch erweiterbare Version"
  • \fatnorm[<size>]{<formula>}für die manuell angegebene Größe; der Standardwert ist „nichts“, <size>kann aber auch \big, \Big, \biggoder sein \Bigg.
\documentclass{article}
\usepackage{amssymb,amsmath}

%% service macros
\newcommand{\shorteroverline}[1]{%
  {\mkern1mu\overline{\mkern-1mu#1\mkern-1mu}\mkern1mu}}
\newcommand{\smallerplus}{\mathchoice
  {\scriptstyle+}
  {\scriptscriptstyle+}
  {\scriptscriptstyle+}
  {\scriptscriptstyle+}
}

%% N with shorter bar and smaller plus
\newcommand{\Nbarplus}{\shorteroverline{\mathbb{N}}_{\smallerplus}}

%% fat norm
\makeatletter
\newcommand{\@fatnormbar}{\vrule\@width 1.2\p@}
\newcommand{\fatnorm}{\@ifstar\@xfatnorm\@fatnorm}
\newcommand{\@xfatnorm}[1]{%
  \left.\kern-\nulldelimiterspace
  \@fatnormbar
  #1
  \@fatnormbar
  \right.\kern-\nulldelimiterspace
}
\newcommand\@fatnorm[2][]{%
  \mathopen{\vphantom{#1|}\mkern2mu\@fatnormbar\mkern2mu}
  #2
  \mathclose{\vphantom{#1|}\mkern2mu\@fatnormbar\mkern2mu}
}
\makeatother

\begin{document}
$\Nbarplus$

$\displaystyle\fatnorm*{\frac{1}{2}}
\fatnorm{v}\fatnorm[\big]{v}\fatnorm[\Big]{v}$
\end{document}

Bildbeschreibung hier eingeben

Ändern Sie die Zahl, \@fatnormbarwenn Sie eine andere Breite für die Fettnormbalken wünschen.

Antwort2

Da Sie kein MWE angehängt haben, gebe ich Ihnen Folgendes vollständig:

\documentclass{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{dsfont}
\usepackage{amsmath}

\newcommand{\minus}{{}^{-}}
\newcommand{\plus}{{}^{+}}

\newcommand{\bigvert}{\mathop{\rule{1ex}{1em}}}

\makeatletter
\newsavebox\myboxA
\newsavebox\myboxB
\newlength\mylenA

\newcommand*\xoverline[2][0.75]{%
    \sbox{\myboxA}{$\m@th#2$}%
    \setbox\myboxB\null% Phantom box
    \ht\myboxB=\ht\myboxA%
    \dp\myboxB=\dp\myboxA%
    \wd\myboxB=#1\wd\myboxA% Scale phantom
    \sbox\myboxB{$\m@th\overline{\copy\myboxB}$}%  Overlined phantom
    \setlength\mylenA{\the\wd\myboxA}%   calc width diff
    \addtolength\mylenA{-\the\wd\myboxB}%
    \ifdim\wd\myboxB<\wd\myboxA%
       \rlap{\hskip 0.5\mylenA\usebox\myboxB}{\usebox\myboxA}%
    \else
        \hskip -0.5\mylenA\rlap{\usebox\myboxA}{\hskip 0.5\mylenA\usebox\myboxB}%
    \fi}
\makeatother

\begin{document}
\begin{equation}
\mathds{R}_\mathrm{\plus}
\end{equation}
\begin{equation}
\xoverline{\mathds{N}}
\end{equation}
\begin{equation}
\bigvert \cdot \bigvert {}_\infty
\end{equation}
\end{document}

Bildbeschreibung hier eingeben

Ich hoffe, das passt für Sie (obwohl es möglicherweise keine sehr kompakte Lösung ist).

verwandte Informationen