I want to replace static image annotations with annotations in LaTeX to have them be all the same size. I always use figures and sometimes subfigures.
How would I get the same lines as in the image with numbers as in https://tex.stackexchange.com/a/7045/50965 ? Can I resuse that circled code?
I tried and searched for some tikz solutions but am not familiar with how I would approach this.
The code of this specific image (in a sub figure) is:
\documentclass{scrbook}
\usepackage{tikz}
\begin{figure}[tph]
\hspace{5mm}\subfloat[figure 1 description]{%
\begin{minipage}[b][1\totalheight][c]{0.4\columnwidth}%
\noindent \begin{center}
\includegraphics[width=1\columnwidth]{path/To/Image}
\par\end{center}%
\end{minipage}
}\hfill{}\subfloat[mentioned figure from question]{\noindent \begin{centering}
\begin{minipage}[b][5.5cm][c]{0.4\columnwidth}%
\noindent \begin{center}
\includegraphics[width=1\columnwidth]{path/To/Image}
\par\end{center}%
\end{minipage}
\par\end{centering}
}\hspace{5mm}
\protect\caption{de}
\end{figure}
Best Answer
This is very easy and may be a duplicate too. Any way, I am posting this and if this is closed a duplicate, I will delete this answer.
You can use this inside regular
fu=igure
s/subfigure
s like this. I have modified theminipage
dimensions. Roll it back in your case. Also, it is better to use\centering
than\begin{center}... \end{center}
.You can define a
style
for thenode
likeand use it like
addendum from @Hug:
the answer helped very much, but I wanted to also show the complete answer to get a desired result which also has the happy side effects of:
this results in the following MWE (with 8 different colors to choose from):
which results in this image:
So, thanks a lot to Harish Kumar, without whose help this hadn't been possible for me.