此图上的标签尺寸小于数学模式的尺寸。我该如何修复它们?

此图上的标签尺寸小于数学模式的尺寸。我该如何修复它们?

这是我在 Geogebra 中绘制的图形。

\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{pgf,tikz}
\usetikzlibrary{arrows}
\pagestyle{empty}
\begin{document}
This is some text with $S$, $A$, $B$, $C$
\begin{center}
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm]
\clip(-0.5,-0.5) rectangle (10,7.5);
\draw [line width=1.2pt,dash pattern=on 2pt off 2pt] (3,3)-- (0,0);
\draw [line width=1.2pt] (0,0)-- (6,0);
\draw [line width=1.2pt] (6,0)-- (9,3);
\draw [line width=1.2pt,dash pattern=on 2pt off 2pt] (9,3)-- (3,3);
\draw [line width=1.2pt,dash pattern=on 2pt off 2pt] (3,3)-- (1.5,7);
\draw [line width=1.2pt,dash pattern=on 2pt off 2pt] (1.5,7)-- (1.5,1.5);
\draw [line width=1.2pt] (1.5,7)-- (0,0);
\draw [line width=1.2pt] (1.5,7)-- (9,3);
\draw [line width=1.2pt, ,dash pattern=on 2pt off 2pt] (2.25,5)-- (9,3);
\draw [line width=1.2pt,dash pattern=on 2pt off 2pt] (2.25,5)-- (2.25,2.25);
\draw [line width=1.2pt,dash pattern=on 2pt off 2pt] (2.25,2.25)-- (9,3);
\draw [line width=1.2pt] (1.5,7)-- (6,0);
\begin{scriptsize}
\draw [fill=black] (0,0) circle (1.5pt);
\draw[color=black] (-0.13,-0.13) node {$B$};
\draw [fill=black] (3,3) circle (1.5pt);
\draw[color=black] (3.06,3.19) node {$A$};
\draw [fill=black] (6,0) circle (1.5pt);
\draw[color=black] (6.08,-0.15) node {$D$};
\draw [fill=black] (9,3) circle (1.5pt);
\draw[color=black] (9.16,3.05) node {$C$};
\draw [fill=black] (1.5,1.5) circle (1.5pt);
\draw[color=black] (1.55,1.34) node {$H$};
\draw [fill=black] (1.5,7) circle (1.5pt);
\draw[color=black] (1.54,7.22) node {$S$};
\draw [fill=black] (2.25,5) circle (1.5pt);
\draw[color=black] (2.3,5.28) node {$F$};
\draw [fill=black] (2.25,2.25) circle (1.5pt);
\draw[color=black] (2.26,2.04) node {$G$};
\end{scriptsize}
\end{tikzpicture}
\end{center}
\end{document}

在此处输入图片描述 图中标签 $S$、$A$、$B$、... 的大小小于图外数学模式 $S$、$A$、$B$、... 的大小。我该如何修复?

答案1

您的代码中存在的问题是\begin{scriptsize}...\end{scriptsize}因此您的字母以脚本大小打印。

将其移除并稍微调整字母的位置就应该符合您的要求了。

梅威瑟:

\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{pgf,tikz}
\usetikzlibrary{arrows}
\pagestyle{empty}
\begin{document}
This is some text with $S$, $A$, $B$, $C$
\begin{center}
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm]
\clip(-0.5,-0.5) rectangle (10,7.5);
\draw [line width=1.2pt,dash pattern=on 2pt off 2pt] (3,3)-- (0,0);
\draw [line width=1.2pt] (0,0)-- (6,0);
\draw [line width=1.2pt] (6,0)-- (9,3);
\draw [line width=1.2pt,dash pattern=on 2pt off 2pt] (9,3)-- (3,3);
\draw [line width=1.2pt,dash pattern=on 2pt off 2pt] (3,3)-- (1.5,7);
\draw [line width=1.2pt,dash pattern=on 2pt off 2pt] (1.5,7)-- (1.5,1.5);
\draw [line width=1.2pt] (1.5,7)-- (0,0);
\draw [line width=1.2pt] (1.5,7)-- (9,3);
\draw [line width=1.2pt, ,dash pattern=on 2pt off 2pt] (2.25,5)-- (9,3);
\draw [line width=1.2pt,dash pattern=on 2pt off 2pt] (2.25,5)-- (2.25,2.25);
\draw [line width=1.2pt,dash pattern=on 2pt off 2pt] (2.25,2.25)-- (9,3);
\draw [line width=1.2pt] (1.5,7)-- (6,0);
\draw [fill=black] (0,0) circle (1.5pt);
\draw[color=black] (-0.13,-0.25) node {$B$};
\draw [fill=black] (3,3) circle (1.5pt);
\draw[color=black] (3.21,3.22) node {$A$};
\draw [fill=black] (6,0) circle (1.5pt);
\draw[color=black] (6.08,-0.25) node {$D$};
\draw [fill=black] (9,3) circle (1.5pt);
\draw[color=black] (9.26,3.05) node {$C$};
\draw [fill=black] (1.5,1.5) circle (1.5pt);
\draw[color=black] (1.67,1.34) node {$H$};
\draw [fill=black] (1.5,7) circle (1.5pt);
\draw[color=black] (1.54,7.28) node {$S$};
\draw [fill=black] (2.25,5) circle (1.5pt);
\draw[color=black] (2.01,4.95) node {$F$};
\draw [fill=black] (2.25,2.25) circle (1.5pt);
\draw[color=black] (2.38,2.04) node {$G$};
\end{tikzpicture}
\end{center}
\end{document} 

输出:

在此处输入图片描述

相关内容