다음 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}}
그러면 다음과 같은 결과가 나옵니다.
- 왜 tikz 그림에서 의 프라임 기호가 의 프라임 기호
$U'_\mathrm{L}$
보다 낮습니까$\underline{U}'_\mathrm{N}$
? (나에게는 후자의 프라임 위치 지정이 올바른 것 같습니다...) 분명히 이것은 명령과 관련이 있을 것입니다\underline
. 그러나 이 프라임 기호 위치가 잘못된 문제를 해결하려면 어떻게 해야 합니까? 글씨를 써서 프라임 기호를 높이는$U^{'}_\mathrm{L}$
것은 너무 높게 들리며 어쨌든 이 문제를 해결하는 최적의 방법은 아닐 것입니다. - 저는
\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}$