我怎样才能使数学公式也像手写一样?我可以让手写的字母像屏幕上写的那样小写吗?
如您所见,g af b 都写为 G 和 B。
\documentclass[border=1 cm]{standalone}
\usepackage{pgfplots,tikz}
\pgfplotsset{compat=1.18}
\usepackage[T1]{fontenc}
\DeclareRobustCommand{\augiefamily}{%
\fontfamily{augie}\fontseries{m}\fontshape{n}\selectfont}
\DeclareTextFontCommand{\textaugie}{\augiefamily}
\begin{document}
\begin{tikzpicture}
\node at (0,0) {$f(x)=b\cdot a^x$};
\node[scale=0.4, blue] at (2.5,-0.2) {\augiefamily Eksponenten, den uafhængige variabel};
\node[scale=0.4, orange] at (1.6,-0.6) {\augiefamily Fremskrivningsfaktoren};
\node[scale=0.4, red] at (1.2,0.5) {\augiefamily Skæring med y-aksen};
\draw[->,red] (0.4,0.5) to[out=180,in=90] (0.27,0.25);
\draw[->,blue] (1.1,-0.2) to[out=180,in=270] (0.88,0);
\draw[->,orange] (1,-0.5) to[out=140,in=270] (0.7,-0.15);
\end{tikzpicture}
\end{document}
答案1
如果您能够切换到 xelatex 或 lualatex 并且已augie
在您的计算机上安装字体,您可以执行以下操作:
% !TeX TS-program = lualatex
\documentclass[border=1cm,beamer,crop]{standalone}
\usepackage{pgfplots,tikz}
\pgfplotsset{compat=1.18}
\usepackage{fontspec}
\setsansfont{augie}
\begin{document}
\begin{tikzpicture}
\node at (0,0) {$f(x)=b\cdot a^x$};
\node[scale=0.4, blue] at (2.5,-0.2) { Eksponenten, den uafhængige variabel};
\node[scale=0.4, orange] at (1.6,-0.6) { Fremskrivningsfaktoren};
\node[scale=0.4, red] at (1.2,0.5) { Skæring med y-aksen};
\draw[->,red] (0.4,0.5) to[out=180,in=90] (0.27,0.25);
\draw[->,blue] (1.1,-0.2) to[out=180,in=270] (0.88,0);
\draw[->,orange] (1,-0.5) to[out=140,in=270] (0.7,-0.15);
\end{tikzpicture}
\end{document}