我经常在 tikz 环境中注释图形。例如
\documentclass[12pt]{report}
\usepackage[T1]{fontenc}
\usepackage{Baskervaldx}
\usepackage[Baskervaldx,upint]{newtxmath}
\usepackage{tikz}
\usetikzlibrary{arrows,arrows.meta,patterns,decorations,shapes.geometric}
\usetikzlibrary{decorations.markings,decorations.pathmorphing,decorations.pathreplacing}
\begin{document}
\begin{figure}[h]
\centering
\begin{tikzpicture}
\node[anchor=south west,inner sep=0] at (0,0)
{
\includegraphics[width=1.0\textwidth]{Images/MyImage.pdf}
};
\begin{scope}
\draw[decoration={brace,raise=0mm},decorate] (58.4mm,37mm)--(80.1mm,37mm)node[above,align=center,midway,sloped]{here is some text};
\end{scope}
\end{tikzpicture}
\caption{Oh Caption, my Caption...}
\label{MyFigure}
\end{figure}
\end{document}
每当我调用环境时,我都想减小字体大小tikzpicture
,因为目前它似乎只是由文档全局字体设置来设置的。
因此,我想保留文档中其余的字体设置(字体系列、字体大小等),就像我定义的那样,但要使字体处于tikzpicture
环境中