![width= \textwidth からスケールはどのように計算されますか?](https://rvso.com/image/357853/width%3D%20%5Ctextwidth%20%E3%81%8B%E3%82%89%E3%82%B9%E3%82%B1%E3%83%BC%E3%83%AB%E3%81%AF%E3%81%A9%E3%81%AE%E3%82%88%E3%81%86%E3%81%AB%E8%A8%88%E7%AE%97%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%E3%81%8B%3F.png)
画像にテキストやマーカーを入れた後、画像のサイズを変更するために callouts パッケージを使用しています。
\begin{figure}[h]
\centering
\begin{annotate}{\includegraphics[width=0.8\textwidth]{./Bilder/testcenter_main_gui}}{0.8}
%\callout{X-Start, Y-Start}{Text}{X-Ende, Y-Ende}
%\helpgrid
\draw [thick, \arcol] (-6.775,3.85) rectangle (-6.45, 4.2);
\callout{-6, 0}{Testbundle laden}{-6.6125,3.85}
\draw [thick, \arcol] (-6.37,3.85) rectangle (-6.05, 4.2);
\callout{-4.8, 1}{Testplan laden}{-6.21,3.85}
\end{annotate}
\caption[Screenshot Hauptfenster Testcenter 2]{Hauptfenster Testcenter 2}
\label{fig:testcenter_main_gui}
\end{figure}
結果は(テキストは気にしないでください、ページ全体をお見せしたかったのです)
スケーリングを に変更しwidth=0.4\textwidth
、コールアウト環境のパラメータを に変更します0,4
。
注釈環境では、画像の比率を維持するためにスケーリング係数が必要であることはわかっています。 を使用して再スケーリングしたいと思います\textwidth
。
width=\textwidth
またはのスケーリングを計算するにはどうすればよいでしょうかwidth=0.4\textwidth
?
答え1
annotate 環境では の係数が必要なwidth=0.4\textwidth
ので が必要です0.4
。私の例にはエラーはありませんでした。