使用 overpic 标记 LaTeX 图形:重新缩放问题

使用 overpic 标记 LaTeX 图形:重新缩放问题

我正在使用overpic包在 LaTeX 中覆盖不同的图片。我还使用 标记了图形的轴\put。问题是我已经正确标记了图形。现在,过了一段时间我改变了图形的比例。改变比例时标签变得混乱。有没有办法根据图形的比例调整标签?这是我的.tex文件的一部分:

\begin{figure}[H]
\hspace*{7.3cm}
\hspace*{0.5cm}\begin{overpic}[scale=0.3]{abstract.pdf}
    \put(103,3){\includegraphics[scale=0.09]{abpink.pdf}}
    \put(100,27){\includegraphics[scale=0.09]{abloop.pdf}}
    \put(93,48){\includegraphics[scale=0.09]{abgreen.pdf}}
    \put(72,57){\includegraphics[scale=0.09]{abangti.pdf}}
    \put(55,81){\includegraphics[scale=0.09]{abblue.pdf}}
    \put(-105,5){\includegraphics[scale=0.28]{abphase.pdf}}
    %\linethickness{1pt}
    \put(-9,69){\color{black}\vector(0,1){12}}
    \put(-10,82){$\hat{z}$}
    \put(-9,68){\color{black}\vector(0,-1){12}}
    \put(-11,51){$\hat{v}$}
    \put(-63,-1){$\theta$}
    \put(-115,44){$\partial_s\theta$}
    \put(-1.5,92){$q$}
    \put(88,-0.5){$|\bv|$}
    \put(-1,-0.5){$T$}
    \end{overpic}
    \end{figure}

答案1

请始终发布可用的文档,包括定义的所有宏,而不仅仅是片段。

您可以同时缩放图像和文本:

在此处输入图片描述

\documentclass{article}

\usepackage{overpic,color}\def\bv{b_v}

\begin{document}


\begin{overpic}[scale=0.3]{example-image-a}
    \put(-9,69){\color{black}\vector(0,1){12}}
    \put(-10,82){$\hat{z}$}
    \put(-9,68){\color{black}\vector(0,-1){12}}
    \put(-11,51){$\hat{v}$}
    \put(-63,-1){$\theta$}
    \put(-115,44){$\partial_s\theta$}
    \put(-1.5,92){$q$}
    \put(88,-0.5){$|\bv|$}
    \put(-1,-0.5){$T$}
\end{overpic}

\vfill

\hrule

\vfill

\scalebox{.2}{%
\begin{overpic}[scale=0.3]{example-image-a}
    \put(-9,69){\color{black}\vector(0,1){12}}
    \put(-10,82){$\hat{z}$}
    \put(-9,68){\color{black}\vector(0,-1){12}}
    \put(-11,51){$\hat{v}$}
    \put(-63,-1){$\theta$}
    \put(-115,44){$\partial_s\theta$}
    \put(-1.5,92){$q$}
    \put(88,-0.5){$|\bv|$}
    \put(-1,-0.5){$T$}
\end{overpic}}

\vfill

\hrule

\vfill

\scalebox{2}{%
\begin{overpic}[scale=0.3]{example-image-a}
    \put(-9,69){\color{black}\vector(0,1){12}}
    \put(-10,82){$\hat{z}$}
    \put(-9,68){\color{black}\vector(0,-1){12}}
    \put(-11,51){$\hat{v}$}
    \put(-63,-1){$\theta$}
    \put(-115,44){$\partial_s\theta$}
    \put(-1.5,92){$q$}
    \put(88,-0.5){$|\bv|$}
    \put(-1,-0.5){$T$}
\end{overpic}}

\end{document}

相关内容