為什麼我的主要符號太低?並且:為什麼當我使用 \scriptsize 時我的下標沒有相應縮放?

為什麼我的主要符號太低?並且:為什麼當我使用 \scriptsize 時我的下標沒有相應縮放?

我有兩個(也許很簡單)關於以下 LaTeX 文件的問題

\documentclass{scrartcl}
\usepackage[ansinew]{inputenc}
\usepackage[T1]{fontenc}                                
\usepackage{tikz}                                               
\usepackage{pgfplots}                                       
\usetikzlibrary{intersections, calc}

\makeatletter
\DeclareMathSizes{\@xipt}{\@xipt}{6}{5}
\makeatother

\begin{document}
This is a nice picture with $\underline{U}_\mathrm{N}$, $U_\mathrm{L}$, $\varphi_\mathrm{U}$ and $\varphi_\mathrm{L}.$  

\begin{tikzpicture}
    \def\angle{acos(0.95)}

    \draw[->, name path=ul] (0,0) --  (5,0) coordinate (A) node[near end, anchor=north] {$U_\mathrm{L}$};
    \draw[->, name path=ux] (A) -- +({90-\angle}:3) coordinate (B) node[midway, anchor=west] {$\mathrm{j} \, X_\mathrm{N} \, \underline{I}$};
    \draw[->, name path=un] (0,0) -- (B) node[near end, anchor=south east] {$\underline{U}_\mathrm{N}$};
    \draw[->, name path=i] (0,0) -- +({-\angle}:1.5) coordinate (C) node[near end, anchor=north east] {$\underline{I}$};

    \path (0,0) let \p1 = ($(B)$) in +(15:{veclen(\x1,\y1)}) coordinate (D);
    \draw[gray, dashed, name path=circ] let \p1 = ($(B)$) in (D) arc (15:50:{veclen(\x1,\y1)});

    \draw[->, gray, name path=ii] (C) -- +({-\angle}:0.5) coordinate (CC) node[anchor=north east] {$\underline{I}'$};
    \draw[->, gray, name path=uull] (0,0) -- (4,0) coordinate (AA) node[near end, anchor=south] {$U'_\mathrm{L}$};
    \path[name path=uuxx] (AA) -- +({90-\angle}:8);
    \draw[->, gray, name intersections={of=uuxx and circ}] (AA) -- (intersection-1) coordinate (BB);
    \draw[->, gray, name path=uunn] (0,0) -- (BB) node[near end, anchor=south east] {$\underline{U}'_\mathrm{N}$};

    \draw[->] (1,0) let \p1 = ($(B)$) in arc (0:{atan(\y1/\x1)}:1) node[midway, anchor=west] {\scriptsize{$\varphi_\mathrm{U}$}};
    \draw[->] (1,0) let \p1 = ($(C)$) in arc (0:{atan(\y1/\x1)}:1) node[near end, anchor=west] {\scriptsize{$-\varphi_\mathrm{L}$}};
\end{tikzpicture}

\end{document}}

結果如下:

微量元素

  1. 為什麼$U'_\mathrm{L}$tikzpicture 中的主符號比 的主符號低$\underline{U}'_\mathrm{N}$? (後一個質數定位對我來說似乎是正確的...)顯然,這一定與命令有關\underline- 但我能做些什麼來解決這個素數符號錯位的問題呢?透過寫入來提高素數符號$U^{'}_\mathrm{L}$會將其提升得太高 - 並且很可能不是解決此問題的最佳方法。
  2. 我曾經\DeclareMathSizes{\@xipt}{\@xipt}{6}{5}在數學模式下減小下標和子下標的大小。然而,當我在數學環境中使用時,這似乎不起作用,\scriptsize{}從角度標籤可以看出:角度標籤中的 U 和 L 明顯比圖表上方的文字行中的大。我猜這是因為\DeclareMathSizes{\@xipt}{\@xipt}{6}{5}我將大小設為固定值 6 和 5 的“靜態”設定?如果是這樣,如何以更靈活的方式減少數學模式下下標和下標的大小?寫的\DeclareMathSizes{\@xipt}{\@xipt}{0.8*\@xipt}{0.7*\@xipt}不行...

答案1

主符號不是太低,而是太小:您要求第一級子/上標為 6pt,這與 11pt 大小的符號相比太小。

計算 11pt 的 80% 得出 8.8pt,11pt 的標準第一級下標/上標大小為 8pt。當然,您需要任意可縮放的字體才能使其工作(\usepackage{lmodern}例如);只需算一下:

\DeclareMathSizes{\@xipt}{\@xipt}{8.8}{7.7}

(但在我看來,這些值太大了,我會保留預設值)。下標使用的字體大小與上標使用的大小相同,這是無法避免的。您可以透過指定虛擬上標來強制將大下標(通常是大寫字母)向下推一點:

$a_{X} a^{}_{X}$

在此輸入影像描述

相關內容