I'm working with overleaf and trying to add texts in these red marked positions. For example, I want to add 4,5 and 6 respectively. I've tried with \put(0,0), but it always disables the \resizebox attribute and makes the image out of proportion, also the text doesn't get placed in the position at all. What changes can I make in the code mention below to add 4,5 and 6 in these three positions? Picture can be found in this link.

    \caption{Flowchart of Heuristic adjustment 1.}

4,5,6 should be added respectively in the red marked positions

  • 1
    Welcome to TeX.SE! How the picture is drawn? If is by TikZ package, the simplest way is add desired text in image. Otherwise include image in TikZ node and find desired position with something like [node distance = <height> and <width> of <node name>.south west] – Zarko Jun 24 '20 at 11:48
  • 2
    Why did you use resizebox on the includegraphics command? Why not simply use the width option of includegraphics? – leandriis Jun 24 '20 at 14:47
  • @Zarko, thank you for the suggestion. Worked very nicely. – Md Ashaduzzaman Niloy 16002100 Jun 24 '20 at 15:57
  • @leandriis, sorry I didn't know about the width option. I'm a newbie. I'll use it in future for sure. Thank you. – Md Ashaduzzaman Niloy 16002100 Jun 24 '20 at 15:58

Have a look if it suits your requirement-- the red circles need to be removed-- a little bit of fine tuning may be required by varying the x,y coordinates-- the green color can be changed or made white as per your choice

enter image description here

\usetikzlibrary{calc,matrix, arrows.meta, positioning, 
 decorations,decorations.markings, math}

\node[above right,
        inner sep=0
        (image) at (0,0) {
% Create scope with normalized axes
x={($0.1*(image.south east)$)},
y={($0.1*(image.north west)$)}]

% Labels
\node[circle,fill=green] at (2.85,3.3){\scriptsize 4};

\node[circle,fill=green] at (6.35,3.3){\scriptsize 5};

\node[circle,fill=green] at (7.15,0.82){\scriptsize 6};



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.