我怎样才能改变颜色和形状
\note{0,0}{Center}
在这个例子中
\documentclass[11pt]{scrartcl} % use larger type; default would be 10pt
\usepackage[wby]{callouts}
\usepackage{mwe}% for the example image
\begin{document}
\begin{annotate}{\includegraphics[width=\textwidth]{example-image}}{0.25}
\helpgrid[gray]
\note{0,0}{Center} <---------------------------------------------------------------
\callout{40,3}{Mushrom}{3,2}
\arrow{-3,-2.4}{-4.5,-3}
%And raw tikz
\draw[very thick,red] (-4,4) rectangle (-3,3);
\end{annotate}
\end{document}
我怎样才能做这样的笔记
\node[rectangle callout, fill=myblue,text width=2cm,align=center,font=\sffamily\bfseries\color{white},#1] at #2 {#3};
在上面的例子中?
答案1
该callouts
包非常简单,更改其命令以明确传递选项并不难。在此重新定义中,我将所有选项留给了用户。请注意,该包不使用 TikZshapes.callouts
库,因此我添加了它,以便您可以使用您的标注形状代码。
\documentclass[11pt]{scrartcl} % use larger type; default would be 10pt
\usepackage[wby]{callouts}
\usetikzlibrary{shapes.callouts} % added
\usepackage{mwe}% for the example image
\renewcommand{\note}[3][]{%
\node [#1] at (#2) {#3};
}
\begin{document}
\begin{annotate}{\includegraphics[width=.7\textwidth]{example-image}}{0.25}
\helpgrid[gray]
\note[rectangle callout, fill=blue,text width=2cm,align=center,font=\sffamily\bfseries\color{white}]{0,0}{Center} <---------------------------------------------------------------
\callout{40,3}{Mushrom}{3,2}
\arrow{-3,-2.4}{-4.5,-3}
%And raw tikz
\draw[very thick,red] (-4,4) rectangle (-3,3);
\end{annotate}
\end{document}