How to use fit tikzpicture in a latex file?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite
1












I use tkiz to draw a picture in latex. It works with me with documentclass[border=5pt,tikz]standalone However, when i try to use the same code in my original latex file documentclass[english]IEEEtran, it does not fit in the paper. How can I edit the following code to use it in my latex file.



documentclass[border=5pt,tikz]standalone
usetikzlibraryarrows,positioning
newcommandparallelsummathbin
newcommandpointtextbullethspace1em
everymathdisplaystyle


begindocument




begintikzpicture[every node/.style=inner sep=6pt,draw,anchor=east,>=triangle 60]
node[xshift=1cm] (a) textcolorred$V_1$ generate a temporary key pairs $[Pk^1_v_1, Pr^1_v_1]$;
draw[->,cyan] ([yshift=.3cm,xshift=2cm]a.east) --+ (5,0) node[black,midway,above=.1cm] $Pk^1_v_1$;
draw[<-,cyan] ([yshift=-.3cm,xshift=2cm]a.east) --+ (5,0) node[black,midway,below=.1cm] $mathcalT_1= $;
node[right=9.5 of a,yellow!70!black,fill=yellow] (b) Hugetextcolorwhite$R_1$;
node[right=1 of b]
begintabularl
point Generate: $M_1 = Pk^1_v_1, textcolorredmathrmtag_mathrmhe_1,R_1$ \
point Calculate: $mathrmS_R_1(M_1)$
endtabular
;
beginscope[yshift=-3cm]


node (a)
begintabularp7cm

textcolorbluepoint Run the PoW algorithm to get $S_mathcalT_1$ \
point $L_R_1=( Pk^2_v_1) $
endtabular

;




draw[->,cyan] ([yshift=.3cm,xshift=1cm]a.east) --+ (5,0) node[black,midway,above=.1cm] $mathrmL_R_1$;
draw[<-,cyan] ([yshift=-.1cm,xshift=1cm]a.east) --+ (5.8,0) node[text width=5.8cm,black,midway,below=.1cm] $mathcalT_2= Sh_R_2(M_1) $;
node[right=8.5 of a,yellow!70!black,fill=yellow] (b) Hugetextcolorwhite$R_2$;
node[right=1 of b] (c)
begintabularl
point Verify $mathrmL_R_1$ and Shares. \
point Checks if: $(t_r-t_1)<mathrmCertain target value$ \

point $M_2=$ \
point Calculate: $Sh_R_3(M_2)$ \

point Calculate: $Sh_R_3(M_3)$\
endtabular
;
endscope
draw[o-o,dashed] ([yshift=1.5cm]a.west) -- ([yshift=1.5cm]c.east);

endtikzpicture
enddocument









share|improve this question



















  • 1




    Well, the perhaps simplest option might be to include the pdf of the picture in your document. If this is not an option for you, you may tell us if you set any length parameters in your document different from the defaults of your class since this may help us judging whether or not the picture will fit. Or is your question how to redesign your picture in such a way that it becomes narrower?
    – marmot
    2 days ago











  • @marmot I am using the standard IEEEtran conferences format: documentclass[english]IEEEtran. I just need to the figure to fit in my paper not include it as a picture. I try many solutions but I got many errors.
    – Mohamed
    2 days ago






  • 1




    I guess it will be very hard to fix this. You have many large explicit dimensions, explicit shifts and so on. The IMHO most promising way would be a more or less complete redesign.
    – marmot
    2 days ago










  • @marmot could you help me with that. As I am very new to tkiz. Just fix me a part of the code so I can learn how to fix the remaining by myself.
    – Mohamed
    2 days ago






  • 1




    This post may help you Scaling different components of tikzpicture together.
    – J Leon V.
    2 days ago















up vote
3
down vote

favorite
1












I use tkiz to draw a picture in latex. It works with me with documentclass[border=5pt,tikz]standalone However, when i try to use the same code in my original latex file documentclass[english]IEEEtran, it does not fit in the paper. How can I edit the following code to use it in my latex file.



documentclass[border=5pt,tikz]standalone
usetikzlibraryarrows,positioning
newcommandparallelsummathbin
newcommandpointtextbullethspace1em
everymathdisplaystyle


begindocument




begintikzpicture[every node/.style=inner sep=6pt,draw,anchor=east,>=triangle 60]
node[xshift=1cm] (a) textcolorred$V_1$ generate a temporary key pairs $[Pk^1_v_1, Pr^1_v_1]$;
draw[->,cyan] ([yshift=.3cm,xshift=2cm]a.east) --+ (5,0) node[black,midway,above=.1cm] $Pk^1_v_1$;
draw[<-,cyan] ([yshift=-.3cm,xshift=2cm]a.east) --+ (5,0) node[black,midway,below=.1cm] $mathcalT_1= $;
node[right=9.5 of a,yellow!70!black,fill=yellow] (b) Hugetextcolorwhite$R_1$;
node[right=1 of b]
begintabularl
point Generate: $M_1 = Pk^1_v_1, textcolorredmathrmtag_mathrmhe_1,R_1$ \
point Calculate: $mathrmS_R_1(M_1)$
endtabular
;
beginscope[yshift=-3cm]


node (a)
begintabularp7cm

textcolorbluepoint Run the PoW algorithm to get $S_mathcalT_1$ \
point $L_R_1=( Pk^2_v_1) $
endtabular

;




draw[->,cyan] ([yshift=.3cm,xshift=1cm]a.east) --+ (5,0) node[black,midway,above=.1cm] $mathrmL_R_1$;
draw[<-,cyan] ([yshift=-.1cm,xshift=1cm]a.east) --+ (5.8,0) node[text width=5.8cm,black,midway,below=.1cm] $mathcalT_2= Sh_R_2(M_1) $;
node[right=8.5 of a,yellow!70!black,fill=yellow] (b) Hugetextcolorwhite$R_2$;
node[right=1 of b] (c)
begintabularl
point Verify $mathrmL_R_1$ and Shares. \
point Checks if: $(t_r-t_1)<mathrmCertain target value$ \

point $M_2=$ \
point Calculate: $Sh_R_3(M_2)$ \

point Calculate: $Sh_R_3(M_3)$\
endtabular
;
endscope
draw[o-o,dashed] ([yshift=1.5cm]a.west) -- ([yshift=1.5cm]c.east);

endtikzpicture
enddocument









share|improve this question



















  • 1




    Well, the perhaps simplest option might be to include the pdf of the picture in your document. If this is not an option for you, you may tell us if you set any length parameters in your document different from the defaults of your class since this may help us judging whether or not the picture will fit. Or is your question how to redesign your picture in such a way that it becomes narrower?
    – marmot
    2 days ago











  • @marmot I am using the standard IEEEtran conferences format: documentclass[english]IEEEtran. I just need to the figure to fit in my paper not include it as a picture. I try many solutions but I got many errors.
    – Mohamed
    2 days ago






  • 1




    I guess it will be very hard to fix this. You have many large explicit dimensions, explicit shifts and so on. The IMHO most promising way would be a more or less complete redesign.
    – marmot
    2 days ago










  • @marmot could you help me with that. As I am very new to tkiz. Just fix me a part of the code so I can learn how to fix the remaining by myself.
    – Mohamed
    2 days ago






  • 1




    This post may help you Scaling different components of tikzpicture together.
    – J Leon V.
    2 days ago













up vote
3
down vote

favorite
1









up vote
3
down vote

favorite
1






1





I use tkiz to draw a picture in latex. It works with me with documentclass[border=5pt,tikz]standalone However, when i try to use the same code in my original latex file documentclass[english]IEEEtran, it does not fit in the paper. How can I edit the following code to use it in my latex file.



documentclass[border=5pt,tikz]standalone
usetikzlibraryarrows,positioning
newcommandparallelsummathbin
newcommandpointtextbullethspace1em
everymathdisplaystyle


begindocument




begintikzpicture[every node/.style=inner sep=6pt,draw,anchor=east,>=triangle 60]
node[xshift=1cm] (a) textcolorred$V_1$ generate a temporary key pairs $[Pk^1_v_1, Pr^1_v_1]$;
draw[->,cyan] ([yshift=.3cm,xshift=2cm]a.east) --+ (5,0) node[black,midway,above=.1cm] $Pk^1_v_1$;
draw[<-,cyan] ([yshift=-.3cm,xshift=2cm]a.east) --+ (5,0) node[black,midway,below=.1cm] $mathcalT_1= $;
node[right=9.5 of a,yellow!70!black,fill=yellow] (b) Hugetextcolorwhite$R_1$;
node[right=1 of b]
begintabularl
point Generate: $M_1 = Pk^1_v_1, textcolorredmathrmtag_mathrmhe_1,R_1$ \
point Calculate: $mathrmS_R_1(M_1)$
endtabular
;
beginscope[yshift=-3cm]


node (a)
begintabularp7cm

textcolorbluepoint Run the PoW algorithm to get $S_mathcalT_1$ \
point $L_R_1=( Pk^2_v_1) $
endtabular

;




draw[->,cyan] ([yshift=.3cm,xshift=1cm]a.east) --+ (5,0) node[black,midway,above=.1cm] $mathrmL_R_1$;
draw[<-,cyan] ([yshift=-.1cm,xshift=1cm]a.east) --+ (5.8,0) node[text width=5.8cm,black,midway,below=.1cm] $mathcalT_2= Sh_R_2(M_1) $;
node[right=8.5 of a,yellow!70!black,fill=yellow] (b) Hugetextcolorwhite$R_2$;
node[right=1 of b] (c)
begintabularl
point Verify $mathrmL_R_1$ and Shares. \
point Checks if: $(t_r-t_1)<mathrmCertain target value$ \

point $M_2=$ \
point Calculate: $Sh_R_3(M_2)$ \

point Calculate: $Sh_R_3(M_3)$\
endtabular
;
endscope
draw[o-o,dashed] ([yshift=1.5cm]a.west) -- ([yshift=1.5cm]c.east);

endtikzpicture
enddocument









share|improve this question















I use tkiz to draw a picture in latex. It works with me with documentclass[border=5pt,tikz]standalone However, when i try to use the same code in my original latex file documentclass[english]IEEEtran, it does not fit in the paper. How can I edit the following code to use it in my latex file.



documentclass[border=5pt,tikz]standalone
usetikzlibraryarrows,positioning
newcommandparallelsummathbin
newcommandpointtextbullethspace1em
everymathdisplaystyle


begindocument




begintikzpicture[every node/.style=inner sep=6pt,draw,anchor=east,>=triangle 60]
node[xshift=1cm] (a) textcolorred$V_1$ generate a temporary key pairs $[Pk^1_v_1, Pr^1_v_1]$;
draw[->,cyan] ([yshift=.3cm,xshift=2cm]a.east) --+ (5,0) node[black,midway,above=.1cm] $Pk^1_v_1$;
draw[<-,cyan] ([yshift=-.3cm,xshift=2cm]a.east) --+ (5,0) node[black,midway,below=.1cm] $mathcalT_1= $;
node[right=9.5 of a,yellow!70!black,fill=yellow] (b) Hugetextcolorwhite$R_1$;
node[right=1 of b]
begintabularl
point Generate: $M_1 = Pk^1_v_1, textcolorredmathrmtag_mathrmhe_1,R_1$ \
point Calculate: $mathrmS_R_1(M_1)$
endtabular
;
beginscope[yshift=-3cm]


node (a)
begintabularp7cm

textcolorbluepoint Run the PoW algorithm to get $S_mathcalT_1$ \
point $L_R_1=( Pk^2_v_1) $
endtabular

;




draw[->,cyan] ([yshift=.3cm,xshift=1cm]a.east) --+ (5,0) node[black,midway,above=.1cm] $mathrmL_R_1$;
draw[<-,cyan] ([yshift=-.1cm,xshift=1cm]a.east) --+ (5.8,0) node[text width=5.8cm,black,midway,below=.1cm] $mathcalT_2= Sh_R_2(M_1) $;
node[right=8.5 of a,yellow!70!black,fill=yellow] (b) Hugetextcolorwhite$R_2$;
node[right=1 of b] (c)
begintabularl
point Verify $mathrmL_R_1$ and Shares. \
point Checks if: $(t_r-t_1)<mathrmCertain target value$ \

point $M_2=$ \
point Calculate: $Sh_R_3(M_2)$ \

point Calculate: $Sh_R_3(M_3)$\
endtabular
;
endscope
draw[o-o,dashed] ([yshift=1.5cm]a.west) -- ([yshift=1.5cm]c.east);

endtikzpicture
enddocument






tikz-pgf tikz-pic






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago









marmot

56.8k462124




56.8k462124










asked 2 days ago









Mohamed

212




212







  • 1




    Well, the perhaps simplest option might be to include the pdf of the picture in your document. If this is not an option for you, you may tell us if you set any length parameters in your document different from the defaults of your class since this may help us judging whether or not the picture will fit. Or is your question how to redesign your picture in such a way that it becomes narrower?
    – marmot
    2 days ago











  • @marmot I am using the standard IEEEtran conferences format: documentclass[english]IEEEtran. I just need to the figure to fit in my paper not include it as a picture. I try many solutions but I got many errors.
    – Mohamed
    2 days ago






  • 1




    I guess it will be very hard to fix this. You have many large explicit dimensions, explicit shifts and so on. The IMHO most promising way would be a more or less complete redesign.
    – marmot
    2 days ago










  • @marmot could you help me with that. As I am very new to tkiz. Just fix me a part of the code so I can learn how to fix the remaining by myself.
    – Mohamed
    2 days ago






  • 1




    This post may help you Scaling different components of tikzpicture together.
    – J Leon V.
    2 days ago













  • 1




    Well, the perhaps simplest option might be to include the pdf of the picture in your document. If this is not an option for you, you may tell us if you set any length parameters in your document different from the defaults of your class since this may help us judging whether or not the picture will fit. Or is your question how to redesign your picture in such a way that it becomes narrower?
    – marmot
    2 days ago











  • @marmot I am using the standard IEEEtran conferences format: documentclass[english]IEEEtran. I just need to the figure to fit in my paper not include it as a picture. I try many solutions but I got many errors.
    – Mohamed
    2 days ago






  • 1




    I guess it will be very hard to fix this. You have many large explicit dimensions, explicit shifts and so on. The IMHO most promising way would be a more or less complete redesign.
    – marmot
    2 days ago










  • @marmot could you help me with that. As I am very new to tkiz. Just fix me a part of the code so I can learn how to fix the remaining by myself.
    – Mohamed
    2 days ago






  • 1




    This post may help you Scaling different components of tikzpicture together.
    – J Leon V.
    2 days ago








1




1




Well, the perhaps simplest option might be to include the pdf of the picture in your document. If this is not an option for you, you may tell us if you set any length parameters in your document different from the defaults of your class since this may help us judging whether or not the picture will fit. Or is your question how to redesign your picture in such a way that it becomes narrower?
– marmot
2 days ago





Well, the perhaps simplest option might be to include the pdf of the picture in your document. If this is not an option for you, you may tell us if you set any length parameters in your document different from the defaults of your class since this may help us judging whether or not the picture will fit. Or is your question how to redesign your picture in such a way that it becomes narrower?
– marmot
2 days ago













@marmot I am using the standard IEEEtran conferences format: documentclass[english]IEEEtran. I just need to the figure to fit in my paper not include it as a picture. I try many solutions but I got many errors.
– Mohamed
2 days ago




@marmot I am using the standard IEEEtran conferences format: documentclass[english]IEEEtran. I just need to the figure to fit in my paper not include it as a picture. I try many solutions but I got many errors.
– Mohamed
2 days ago




1




1




I guess it will be very hard to fix this. You have many large explicit dimensions, explicit shifts and so on. The IMHO most promising way would be a more or less complete redesign.
– marmot
2 days ago




I guess it will be very hard to fix this. You have many large explicit dimensions, explicit shifts and so on. The IMHO most promising way would be a more or less complete redesign.
– marmot
2 days ago












@marmot could you help me with that. As I am very new to tkiz. Just fix me a part of the code so I can learn how to fix the remaining by myself.
– Mohamed
2 days ago




@marmot could you help me with that. As I am very new to tkiz. Just fix me a part of the code so I can learn how to fix the remaining by myself.
– Mohamed
2 days ago




1




1




This post may help you Scaling different components of tikzpicture together.
– J Leon V.
2 days ago





This post may help you Scaling different components of tikzpicture together.
– J Leon V.
2 days ago











2 Answers
2






active

oldest

votes

















up vote
5
down vote













Is this what you are looking for?



documentclass[conference]IEEEtran
usepackagetikz
usetikzlibraryarrows,positioning
newcommandparallelsummathbin
newcommandpointtextbullethspace1em
everymathdisplaystyle
usepackagelipsum% MWE only

begindocument
beginfigure*[tp]
resizeboxtextwidth!%
begintikzpicture[every node/.style=inner sep=6pt,draw,anchor=east,>=triangle 60]
node[xshift=1cm] (a) textcolorred$V_1$ generate a temporary key pairs $[Pk^1_v_1, Pr^1_v_1]$;
draw[->,cyan] ([yshift=.3cm,xshift=2cm]a.east) --+ (5,0) node[black,midway,above=.1cm] $Pk^1_v_1$;
draw[<-,cyan] ([yshift=-.3cm,xshift=2cm]a.east) --+ (5,0) node[black,midway,below=.1cm] $mathcalT_1= $;
node[right=9.5 of a,yellow!70!black,fill=yellow] (b) Hugetextcolorwhite$R_1$;
node[right=1 of b]
begintabularl
point Generate: $M_1 = Pk^1_v_1, textcolorredmathrmtag_mathrmhe_1,R_1$ \
point Calculate: $mathrmS_R_1(M_1)$
endtabular
;
beginscope[yshift=-3cm]


node (a)
begintabularp7cm

textcolorbluepoint Run the PoW algorithm to get $S_mathcalT_1$ \
point $L_R_1=( Pk^2_v_1) $
endtabular

;




draw[->,cyan] ([yshift=.3cm,xshift=1cm]a.east) --+ (5,0) node[black,midway,above=.1cm] $mathrmL_R_1$;
draw[<-,cyan] ([yshift=-.1cm,xshift=1cm]a.east) --+ (5.8,0) node[text width=5.8cm,black,midway,below=.1cm] $mathcalT_2= Sh_R_2(M_1) $;
node[right=8.5 of a,yellow!70!black,fill=yellow] (b) Hugetextcolorwhite$R_2$;
node[right=1 of b] (c)
begintabularl
point Verify $mathrmL_R_1$ and Shares. \
point Checks if: $(t_r-t_1)<mathrmCertain target value$ \

point $M_2=$ \
point Calculate: $Sh_R_3(M_2)$ \

point Calculate: $Sh_R_3(M_3)$\
endtabular
;
endscope
draw[o-o,dashed] ([yshift=1.5cm]a.west) -- ([yshift=1.5cm]c.east);

endtikzpicture

captionSort of obligatory
endfigure*

lipsum[1-16]
enddocument


demo






share|improve this answer




















  • I try to run your code on my latex but it is talking too much time with no output.
    – Mohamed
    2 days ago

















up vote
4
down vote













I tried to redesign your picture and apologize in advance for all the mistakes I made, e.g. by breaking your formulae incorrectly.



documentclass[english]IEEEtran
usepackagetikz,tikzpagenodes % tikzpagenodes only for illustration
usetikzlibraryarrows.meta,positioning
newcommandparallelsummathbin
everymathdisplaystyle
begindocument
begintikzpicture[every node/.style=inner sep=2pt,draw,anchor=east,
>=Triangle,R-block/.style=text width=0.35textwidth,
L-block/.style=text width=0.25textwidth]
% start with the R nodes
node[yellow!70!black,fill=yellow,text=white,font=Huge] (b)$R_1$;
node[left=4cm of b,L-block] (a) textcolorred$V_1$ generate a temporary key pairs $[Pk^1_v_1, Pr^1_v_1]$;
draw[->,cyan] ([yshift=.3cm]a.east) -- ([yshift=.3cm]a.east -|b.west)
node[black,midway,above=.1cm] $Pk^1_v_1$;
draw[<-,cyan] ([yshift=-.3cm]a.east) -- ([yshift=-.3cm]a.east -|b.west)
node[black,midway,below=.1cm] $mathcalT_1= $;
node[right=2mm of b,R-block] (c) vspace-1exbeginitemize
item Generate: $M_1 = Pk^1_v_1, textcolorredmathrmtag_mathrmhe_1,R_1$ \
item Calculate: $mathrmS_R_1(M_1)$
enditemize
;
node[below=2.5cm of b,text=white,font=Huge,fill=yellow] (b') $R_2$;
node[left=4cm of b',L-block] (a') ;
draw[->,cyan] ([yshift=.3cm]a'.east) -- ([yshift=.3cm]a'.east -|b'.west)
node[black,midway,above=.1cm] $mathrmL_R_1$;
draw[<-,cyan] ([yshift=-.3cm]a'.east) -- ([yshift=-.3cm]a'.east -|b'.west)
node[text width=3cm,black,midway,below=.1cm,align=center]
$mathcalT_2= $;

node[right=2mm of b',R-block] (c') vspace-1exbeginitemize
item Verify $mathrmL_R_1$ and Shares.
item Checks if: $(t_r-t_1)<mathrmCertain target value$
item $M_2=$
item Calculate: $Sh_R_3(M_2)$
item Calculate: $Sh_R_3(M_3)$
enditemize
;
path (c'.north east) -- (c.south east) coordinate[midway] (R);
draw[Circle[open]-Circle[open],dashed] (R) -- (R-|a.west);
endtikzpicture
% only for illustation
begintikzpicture[overlay,remember picture]
draw[red,dashed] (current page text area.south west) rectangle
(current page text area.north east);
endtikzpicture
enddocument


enter image description here






share|improve this answer




















  • Thanks for your help. I try to copy the code to my TeXstudio program But it keeps trying to run and it is taking so much time without any response.
    – Mohamed
    2 days ago










  • @Mohamed I have no idea what happens on your machine. All I know that this code runs without problems on my updated TeXLive 2018 distribution. The only thing that I do not get from this contribution is IEEEtran.cls. Where did you get your version from? You seem to also have a problem with John Kormylo's code. Perhaps this suggests that you update your TeX installation.
    – marmot
    2 days ago











  • it works with me. Thank you very much. Is there is any way to resize the text inside the boxes? As it seems the text is not in a straight line.
    – Mohamed
    2 days ago










  • If this question worked for you, you should accept the answer with the green check, if you have additional questions you can ask them in another question centered on those issues or on other improvements.
    – J Leon V.
    2 days ago











  • @Mohamed I think all texts are on straight lines. You can resize texts as is done in the yellow boxes, e.g. with font=large. You can also say scale=0.8, say, but I would not do either since then the texts are different from what is in the main text.
    – marmot
    yesterday










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f450335%2fhow-to-use-fit-tikzpicture-in-a-latex-file%23new-answer', 'question_page');

);

Post as a guest






























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
5
down vote













Is this what you are looking for?



documentclass[conference]IEEEtran
usepackagetikz
usetikzlibraryarrows,positioning
newcommandparallelsummathbin
newcommandpointtextbullethspace1em
everymathdisplaystyle
usepackagelipsum% MWE only

begindocument
beginfigure*[tp]
resizeboxtextwidth!%
begintikzpicture[every node/.style=inner sep=6pt,draw,anchor=east,>=triangle 60]
node[xshift=1cm] (a) textcolorred$V_1$ generate a temporary key pairs $[Pk^1_v_1, Pr^1_v_1]$;
draw[->,cyan] ([yshift=.3cm,xshift=2cm]a.east) --+ (5,0) node[black,midway,above=.1cm] $Pk^1_v_1$;
draw[<-,cyan] ([yshift=-.3cm,xshift=2cm]a.east) --+ (5,0) node[black,midway,below=.1cm] $mathcalT_1= $;
node[right=9.5 of a,yellow!70!black,fill=yellow] (b) Hugetextcolorwhite$R_1$;
node[right=1 of b]
begintabularl
point Generate: $M_1 = Pk^1_v_1, textcolorredmathrmtag_mathrmhe_1,R_1$ \
point Calculate: $mathrmS_R_1(M_1)$
endtabular
;
beginscope[yshift=-3cm]


node (a)
begintabularp7cm

textcolorbluepoint Run the PoW algorithm to get $S_mathcalT_1$ \
point $L_R_1=( Pk^2_v_1) $
endtabular

;




draw[->,cyan] ([yshift=.3cm,xshift=1cm]a.east) --+ (5,0) node[black,midway,above=.1cm] $mathrmL_R_1$;
draw[<-,cyan] ([yshift=-.1cm,xshift=1cm]a.east) --+ (5.8,0) node[text width=5.8cm,black,midway,below=.1cm] $mathcalT_2= Sh_R_2(M_1) $;
node[right=8.5 of a,yellow!70!black,fill=yellow] (b) Hugetextcolorwhite$R_2$;
node[right=1 of b] (c)
begintabularl
point Verify $mathrmL_R_1$ and Shares. \
point Checks if: $(t_r-t_1)<mathrmCertain target value$ \

point $M_2=$ \
point Calculate: $Sh_R_3(M_2)$ \

point Calculate: $Sh_R_3(M_3)$\
endtabular
;
endscope
draw[o-o,dashed] ([yshift=1.5cm]a.west) -- ([yshift=1.5cm]c.east);

endtikzpicture

captionSort of obligatory
endfigure*

lipsum[1-16]
enddocument


demo






share|improve this answer




















  • I try to run your code on my latex but it is talking too much time with no output.
    – Mohamed
    2 days ago














up vote
5
down vote













Is this what you are looking for?



documentclass[conference]IEEEtran
usepackagetikz
usetikzlibraryarrows,positioning
newcommandparallelsummathbin
newcommandpointtextbullethspace1em
everymathdisplaystyle
usepackagelipsum% MWE only

begindocument
beginfigure*[tp]
resizeboxtextwidth!%
begintikzpicture[every node/.style=inner sep=6pt,draw,anchor=east,>=triangle 60]
node[xshift=1cm] (a) textcolorred$V_1$ generate a temporary key pairs $[Pk^1_v_1, Pr^1_v_1]$;
draw[->,cyan] ([yshift=.3cm,xshift=2cm]a.east) --+ (5,0) node[black,midway,above=.1cm] $Pk^1_v_1$;
draw[<-,cyan] ([yshift=-.3cm,xshift=2cm]a.east) --+ (5,0) node[black,midway,below=.1cm] $mathcalT_1= $;
node[right=9.5 of a,yellow!70!black,fill=yellow] (b) Hugetextcolorwhite$R_1$;
node[right=1 of b]
begintabularl
point Generate: $M_1 = Pk^1_v_1, textcolorredmathrmtag_mathrmhe_1,R_1$ \
point Calculate: $mathrmS_R_1(M_1)$
endtabular
;
beginscope[yshift=-3cm]


node (a)
begintabularp7cm

textcolorbluepoint Run the PoW algorithm to get $S_mathcalT_1$ \
point $L_R_1=( Pk^2_v_1) $
endtabular

;




draw[->,cyan] ([yshift=.3cm,xshift=1cm]a.east) --+ (5,0) node[black,midway,above=.1cm] $mathrmL_R_1$;
draw[<-,cyan] ([yshift=-.1cm,xshift=1cm]a.east) --+ (5.8,0) node[text width=5.8cm,black,midway,below=.1cm] $mathcalT_2= Sh_R_2(M_1) $;
node[right=8.5 of a,yellow!70!black,fill=yellow] (b) Hugetextcolorwhite$R_2$;
node[right=1 of b] (c)
begintabularl
point Verify $mathrmL_R_1$ and Shares. \
point Checks if: $(t_r-t_1)<mathrmCertain target value$ \

point $M_2=$ \
point Calculate: $Sh_R_3(M_2)$ \

point Calculate: $Sh_R_3(M_3)$\
endtabular
;
endscope
draw[o-o,dashed] ([yshift=1.5cm]a.west) -- ([yshift=1.5cm]c.east);

endtikzpicture

captionSort of obligatory
endfigure*

lipsum[1-16]
enddocument


demo






share|improve this answer




















  • I try to run your code on my latex but it is talking too much time with no output.
    – Mohamed
    2 days ago












up vote
5
down vote










up vote
5
down vote









Is this what you are looking for?



documentclass[conference]IEEEtran
usepackagetikz
usetikzlibraryarrows,positioning
newcommandparallelsummathbin
newcommandpointtextbullethspace1em
everymathdisplaystyle
usepackagelipsum% MWE only

begindocument
beginfigure*[tp]
resizeboxtextwidth!%
begintikzpicture[every node/.style=inner sep=6pt,draw,anchor=east,>=triangle 60]
node[xshift=1cm] (a) textcolorred$V_1$ generate a temporary key pairs $[Pk^1_v_1, Pr^1_v_1]$;
draw[->,cyan] ([yshift=.3cm,xshift=2cm]a.east) --+ (5,0) node[black,midway,above=.1cm] $Pk^1_v_1$;
draw[<-,cyan] ([yshift=-.3cm,xshift=2cm]a.east) --+ (5,0) node[black,midway,below=.1cm] $mathcalT_1= $;
node[right=9.5 of a,yellow!70!black,fill=yellow] (b) Hugetextcolorwhite$R_1$;
node[right=1 of b]
begintabularl
point Generate: $M_1 = Pk^1_v_1, textcolorredmathrmtag_mathrmhe_1,R_1$ \
point Calculate: $mathrmS_R_1(M_1)$
endtabular
;
beginscope[yshift=-3cm]


node (a)
begintabularp7cm

textcolorbluepoint Run the PoW algorithm to get $S_mathcalT_1$ \
point $L_R_1=( Pk^2_v_1) $
endtabular

;




draw[->,cyan] ([yshift=.3cm,xshift=1cm]a.east) --+ (5,0) node[black,midway,above=.1cm] $mathrmL_R_1$;
draw[<-,cyan] ([yshift=-.1cm,xshift=1cm]a.east) --+ (5.8,0) node[text width=5.8cm,black,midway,below=.1cm] $mathcalT_2= Sh_R_2(M_1) $;
node[right=8.5 of a,yellow!70!black,fill=yellow] (b) Hugetextcolorwhite$R_2$;
node[right=1 of b] (c)
begintabularl
point Verify $mathrmL_R_1$ and Shares. \
point Checks if: $(t_r-t_1)<mathrmCertain target value$ \

point $M_2=$ \
point Calculate: $Sh_R_3(M_2)$ \

point Calculate: $Sh_R_3(M_3)$\
endtabular
;
endscope
draw[o-o,dashed] ([yshift=1.5cm]a.west) -- ([yshift=1.5cm]c.east);

endtikzpicture

captionSort of obligatory
endfigure*

lipsum[1-16]
enddocument


demo






share|improve this answer












Is this what you are looking for?



documentclass[conference]IEEEtran
usepackagetikz
usetikzlibraryarrows,positioning
newcommandparallelsummathbin
newcommandpointtextbullethspace1em
everymathdisplaystyle
usepackagelipsum% MWE only

begindocument
beginfigure*[tp]
resizeboxtextwidth!%
begintikzpicture[every node/.style=inner sep=6pt,draw,anchor=east,>=triangle 60]
node[xshift=1cm] (a) textcolorred$V_1$ generate a temporary key pairs $[Pk^1_v_1, Pr^1_v_1]$;
draw[->,cyan] ([yshift=.3cm,xshift=2cm]a.east) --+ (5,0) node[black,midway,above=.1cm] $Pk^1_v_1$;
draw[<-,cyan] ([yshift=-.3cm,xshift=2cm]a.east) --+ (5,0) node[black,midway,below=.1cm] $mathcalT_1= $;
node[right=9.5 of a,yellow!70!black,fill=yellow] (b) Hugetextcolorwhite$R_1$;
node[right=1 of b]
begintabularl
point Generate: $M_1 = Pk^1_v_1, textcolorredmathrmtag_mathrmhe_1,R_1$ \
point Calculate: $mathrmS_R_1(M_1)$
endtabular
;
beginscope[yshift=-3cm]


node (a)
begintabularp7cm

textcolorbluepoint Run the PoW algorithm to get $S_mathcalT_1$ \
point $L_R_1=( Pk^2_v_1) $
endtabular

;




draw[->,cyan] ([yshift=.3cm,xshift=1cm]a.east) --+ (5,0) node[black,midway,above=.1cm] $mathrmL_R_1$;
draw[<-,cyan] ([yshift=-.1cm,xshift=1cm]a.east) --+ (5.8,0) node[text width=5.8cm,black,midway,below=.1cm] $mathcalT_2= Sh_R_2(M_1) $;
node[right=8.5 of a,yellow!70!black,fill=yellow] (b) Hugetextcolorwhite$R_2$;
node[right=1 of b] (c)
begintabularl
point Verify $mathrmL_R_1$ and Shares. \
point Checks if: $(t_r-t_1)<mathrmCertain target value$ \

point $M_2=$ \
point Calculate: $Sh_R_3(M_2)$ \

point Calculate: $Sh_R_3(M_3)$\
endtabular
;
endscope
draw[o-o,dashed] ([yshift=1.5cm]a.west) -- ([yshift=1.5cm]c.east);

endtikzpicture

captionSort of obligatory
endfigure*

lipsum[1-16]
enddocument


demo







share|improve this answer












share|improve this answer



share|improve this answer










answered 2 days ago









John Kormylo

40.8k12363




40.8k12363











  • I try to run your code on my latex but it is talking too much time with no output.
    – Mohamed
    2 days ago
















  • I try to run your code on my latex but it is talking too much time with no output.
    – Mohamed
    2 days ago















I try to run your code on my latex but it is talking too much time with no output.
– Mohamed
2 days ago




I try to run your code on my latex but it is talking too much time with no output.
– Mohamed
2 days ago










up vote
4
down vote













I tried to redesign your picture and apologize in advance for all the mistakes I made, e.g. by breaking your formulae incorrectly.



documentclass[english]IEEEtran
usepackagetikz,tikzpagenodes % tikzpagenodes only for illustration
usetikzlibraryarrows.meta,positioning
newcommandparallelsummathbin
everymathdisplaystyle
begindocument
begintikzpicture[every node/.style=inner sep=2pt,draw,anchor=east,
>=Triangle,R-block/.style=text width=0.35textwidth,
L-block/.style=text width=0.25textwidth]
% start with the R nodes
node[yellow!70!black,fill=yellow,text=white,font=Huge] (b)$R_1$;
node[left=4cm of b,L-block] (a) textcolorred$V_1$ generate a temporary key pairs $[Pk^1_v_1, Pr^1_v_1]$;
draw[->,cyan] ([yshift=.3cm]a.east) -- ([yshift=.3cm]a.east -|b.west)
node[black,midway,above=.1cm] $Pk^1_v_1$;
draw[<-,cyan] ([yshift=-.3cm]a.east) -- ([yshift=-.3cm]a.east -|b.west)
node[black,midway,below=.1cm] $mathcalT_1= $;
node[right=2mm of b,R-block] (c) vspace-1exbeginitemize
item Generate: $M_1 = Pk^1_v_1, textcolorredmathrmtag_mathrmhe_1,R_1$ \
item Calculate: $mathrmS_R_1(M_1)$
enditemize
;
node[below=2.5cm of b,text=white,font=Huge,fill=yellow] (b') $R_2$;
node[left=4cm of b',L-block] (a') ;
draw[->,cyan] ([yshift=.3cm]a'.east) -- ([yshift=.3cm]a'.east -|b'.west)
node[black,midway,above=.1cm] $mathrmL_R_1$;
draw[<-,cyan] ([yshift=-.3cm]a'.east) -- ([yshift=-.3cm]a'.east -|b'.west)
node[text width=3cm,black,midway,below=.1cm,align=center]
$mathcalT_2= $;

node[right=2mm of b',R-block] (c') vspace-1exbeginitemize
item Verify $mathrmL_R_1$ and Shares.
item Checks if: $(t_r-t_1)<mathrmCertain target value$
item $M_2=$
item Calculate: $Sh_R_3(M_2)$
item Calculate: $Sh_R_3(M_3)$
enditemize
;
path (c'.north east) -- (c.south east) coordinate[midway] (R);
draw[Circle[open]-Circle[open],dashed] (R) -- (R-|a.west);
endtikzpicture
% only for illustation
begintikzpicture[overlay,remember picture]
draw[red,dashed] (current page text area.south west) rectangle
(current page text area.north east);
endtikzpicture
enddocument


enter image description here






share|improve this answer




















  • Thanks for your help. I try to copy the code to my TeXstudio program But it keeps trying to run and it is taking so much time without any response.
    – Mohamed
    2 days ago










  • @Mohamed I have no idea what happens on your machine. All I know that this code runs without problems on my updated TeXLive 2018 distribution. The only thing that I do not get from this contribution is IEEEtran.cls. Where did you get your version from? You seem to also have a problem with John Kormylo's code. Perhaps this suggests that you update your TeX installation.
    – marmot
    2 days ago











  • it works with me. Thank you very much. Is there is any way to resize the text inside the boxes? As it seems the text is not in a straight line.
    – Mohamed
    2 days ago










  • If this question worked for you, you should accept the answer with the green check, if you have additional questions you can ask them in another question centered on those issues or on other improvements.
    – J Leon V.
    2 days ago











  • @Mohamed I think all texts are on straight lines. You can resize texts as is done in the yellow boxes, e.g. with font=large. You can also say scale=0.8, say, but I would not do either since then the texts are different from what is in the main text.
    – marmot
    yesterday














up vote
4
down vote













I tried to redesign your picture and apologize in advance for all the mistakes I made, e.g. by breaking your formulae incorrectly.



documentclass[english]IEEEtran
usepackagetikz,tikzpagenodes % tikzpagenodes only for illustration
usetikzlibraryarrows.meta,positioning
newcommandparallelsummathbin
everymathdisplaystyle
begindocument
begintikzpicture[every node/.style=inner sep=2pt,draw,anchor=east,
>=Triangle,R-block/.style=text width=0.35textwidth,
L-block/.style=text width=0.25textwidth]
% start with the R nodes
node[yellow!70!black,fill=yellow,text=white,font=Huge] (b)$R_1$;
node[left=4cm of b,L-block] (a) textcolorred$V_1$ generate a temporary key pairs $[Pk^1_v_1, Pr^1_v_1]$;
draw[->,cyan] ([yshift=.3cm]a.east) -- ([yshift=.3cm]a.east -|b.west)
node[black,midway,above=.1cm] $Pk^1_v_1$;
draw[<-,cyan] ([yshift=-.3cm]a.east) -- ([yshift=-.3cm]a.east -|b.west)
node[black,midway,below=.1cm] $mathcalT_1= $;
node[right=2mm of b,R-block] (c) vspace-1exbeginitemize
item Generate: $M_1 = Pk^1_v_1, textcolorredmathrmtag_mathrmhe_1,R_1$ \
item Calculate: $mathrmS_R_1(M_1)$
enditemize
;
node[below=2.5cm of b,text=white,font=Huge,fill=yellow] (b') $R_2$;
node[left=4cm of b',L-block] (a') ;
draw[->,cyan] ([yshift=.3cm]a'.east) -- ([yshift=.3cm]a'.east -|b'.west)
node[black,midway,above=.1cm] $mathrmL_R_1$;
draw[<-,cyan] ([yshift=-.3cm]a'.east) -- ([yshift=-.3cm]a'.east -|b'.west)
node[text width=3cm,black,midway,below=.1cm,align=center]
$mathcalT_2= $;

node[right=2mm of b',R-block] (c') vspace-1exbeginitemize
item Verify $mathrmL_R_1$ and Shares.
item Checks if: $(t_r-t_1)<mathrmCertain target value$
item $M_2=$
item Calculate: $Sh_R_3(M_2)$
item Calculate: $Sh_R_3(M_3)$
enditemize
;
path (c'.north east) -- (c.south east) coordinate[midway] (R);
draw[Circle[open]-Circle[open],dashed] (R) -- (R-|a.west);
endtikzpicture
% only for illustation
begintikzpicture[overlay,remember picture]
draw[red,dashed] (current page text area.south west) rectangle
(current page text area.north east);
endtikzpicture
enddocument


enter image description here






share|improve this answer




















  • Thanks for your help. I try to copy the code to my TeXstudio program But it keeps trying to run and it is taking so much time without any response.
    – Mohamed
    2 days ago










  • @Mohamed I have no idea what happens on your machine. All I know that this code runs without problems on my updated TeXLive 2018 distribution. The only thing that I do not get from this contribution is IEEEtran.cls. Where did you get your version from? You seem to also have a problem with John Kormylo's code. Perhaps this suggests that you update your TeX installation.
    – marmot
    2 days ago











  • it works with me. Thank you very much. Is there is any way to resize the text inside the boxes? As it seems the text is not in a straight line.
    – Mohamed
    2 days ago










  • If this question worked for you, you should accept the answer with the green check, if you have additional questions you can ask them in another question centered on those issues or on other improvements.
    – J Leon V.
    2 days ago











  • @Mohamed I think all texts are on straight lines. You can resize texts as is done in the yellow boxes, e.g. with font=large. You can also say scale=0.8, say, but I would not do either since then the texts are different from what is in the main text.
    – marmot
    yesterday












up vote
4
down vote










up vote
4
down vote









I tried to redesign your picture and apologize in advance for all the mistakes I made, e.g. by breaking your formulae incorrectly.



documentclass[english]IEEEtran
usepackagetikz,tikzpagenodes % tikzpagenodes only for illustration
usetikzlibraryarrows.meta,positioning
newcommandparallelsummathbin
everymathdisplaystyle
begindocument
begintikzpicture[every node/.style=inner sep=2pt,draw,anchor=east,
>=Triangle,R-block/.style=text width=0.35textwidth,
L-block/.style=text width=0.25textwidth]
% start with the R nodes
node[yellow!70!black,fill=yellow,text=white,font=Huge] (b)$R_1$;
node[left=4cm of b,L-block] (a) textcolorred$V_1$ generate a temporary key pairs $[Pk^1_v_1, Pr^1_v_1]$;
draw[->,cyan] ([yshift=.3cm]a.east) -- ([yshift=.3cm]a.east -|b.west)
node[black,midway,above=.1cm] $Pk^1_v_1$;
draw[<-,cyan] ([yshift=-.3cm]a.east) -- ([yshift=-.3cm]a.east -|b.west)
node[black,midway,below=.1cm] $mathcalT_1= $;
node[right=2mm of b,R-block] (c) vspace-1exbeginitemize
item Generate: $M_1 = Pk^1_v_1, textcolorredmathrmtag_mathrmhe_1,R_1$ \
item Calculate: $mathrmS_R_1(M_1)$
enditemize
;
node[below=2.5cm of b,text=white,font=Huge,fill=yellow] (b') $R_2$;
node[left=4cm of b',L-block] (a') ;
draw[->,cyan] ([yshift=.3cm]a'.east) -- ([yshift=.3cm]a'.east -|b'.west)
node[black,midway,above=.1cm] $mathrmL_R_1$;
draw[<-,cyan] ([yshift=-.3cm]a'.east) -- ([yshift=-.3cm]a'.east -|b'.west)
node[text width=3cm,black,midway,below=.1cm,align=center]
$mathcalT_2= $;

node[right=2mm of b',R-block] (c') vspace-1exbeginitemize
item Verify $mathrmL_R_1$ and Shares.
item Checks if: $(t_r-t_1)<mathrmCertain target value$
item $M_2=$
item Calculate: $Sh_R_3(M_2)$
item Calculate: $Sh_R_3(M_3)$
enditemize
;
path (c'.north east) -- (c.south east) coordinate[midway] (R);
draw[Circle[open]-Circle[open],dashed] (R) -- (R-|a.west);
endtikzpicture
% only for illustation
begintikzpicture[overlay,remember picture]
draw[red,dashed] (current page text area.south west) rectangle
(current page text area.north east);
endtikzpicture
enddocument


enter image description here






share|improve this answer












I tried to redesign your picture and apologize in advance for all the mistakes I made, e.g. by breaking your formulae incorrectly.



documentclass[english]IEEEtran
usepackagetikz,tikzpagenodes % tikzpagenodes only for illustration
usetikzlibraryarrows.meta,positioning
newcommandparallelsummathbin
everymathdisplaystyle
begindocument
begintikzpicture[every node/.style=inner sep=2pt,draw,anchor=east,
>=Triangle,R-block/.style=text width=0.35textwidth,
L-block/.style=text width=0.25textwidth]
% start with the R nodes
node[yellow!70!black,fill=yellow,text=white,font=Huge] (b)$R_1$;
node[left=4cm of b,L-block] (a) textcolorred$V_1$ generate a temporary key pairs $[Pk^1_v_1, Pr^1_v_1]$;
draw[->,cyan] ([yshift=.3cm]a.east) -- ([yshift=.3cm]a.east -|b.west)
node[black,midway,above=.1cm] $Pk^1_v_1$;
draw[<-,cyan] ([yshift=-.3cm]a.east) -- ([yshift=-.3cm]a.east -|b.west)
node[black,midway,below=.1cm] $mathcalT_1= $;
node[right=2mm of b,R-block] (c) vspace-1exbeginitemize
item Generate: $M_1 = Pk^1_v_1, textcolorredmathrmtag_mathrmhe_1,R_1$ \
item Calculate: $mathrmS_R_1(M_1)$
enditemize
;
node[below=2.5cm of b,text=white,font=Huge,fill=yellow] (b') $R_2$;
node[left=4cm of b',L-block] (a') ;
draw[->,cyan] ([yshift=.3cm]a'.east) -- ([yshift=.3cm]a'.east -|b'.west)
node[black,midway,above=.1cm] $mathrmL_R_1$;
draw[<-,cyan] ([yshift=-.3cm]a'.east) -- ([yshift=-.3cm]a'.east -|b'.west)
node[text width=3cm,black,midway,below=.1cm,align=center]
$mathcalT_2= $;

node[right=2mm of b',R-block] (c') vspace-1exbeginitemize
item Verify $mathrmL_R_1$ and Shares.
item Checks if: $(t_r-t_1)<mathrmCertain target value$
item $M_2=$
item Calculate: $Sh_R_3(M_2)$
item Calculate: $Sh_R_3(M_3)$
enditemize
;
path (c'.north east) -- (c.south east) coordinate[midway] (R);
draw[Circle[open]-Circle[open],dashed] (R) -- (R-|a.west);
endtikzpicture
% only for illustation
begintikzpicture[overlay,remember picture]
draw[red,dashed] (current page text area.south west) rectangle
(current page text area.north east);
endtikzpicture
enddocument


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered 2 days ago









marmot

56.8k462124




56.8k462124











  • Thanks for your help. I try to copy the code to my TeXstudio program But it keeps trying to run and it is taking so much time without any response.
    – Mohamed
    2 days ago










  • @Mohamed I have no idea what happens on your machine. All I know that this code runs without problems on my updated TeXLive 2018 distribution. The only thing that I do not get from this contribution is IEEEtran.cls. Where did you get your version from? You seem to also have a problem with John Kormylo's code. Perhaps this suggests that you update your TeX installation.
    – marmot
    2 days ago











  • it works with me. Thank you very much. Is there is any way to resize the text inside the boxes? As it seems the text is not in a straight line.
    – Mohamed
    2 days ago










  • If this question worked for you, you should accept the answer with the green check, if you have additional questions you can ask them in another question centered on those issues or on other improvements.
    – J Leon V.
    2 days ago











  • @Mohamed I think all texts are on straight lines. You can resize texts as is done in the yellow boxes, e.g. with font=large. You can also say scale=0.8, say, but I would not do either since then the texts are different from what is in the main text.
    – marmot
    yesterday
















  • Thanks for your help. I try to copy the code to my TeXstudio program But it keeps trying to run and it is taking so much time without any response.
    – Mohamed
    2 days ago










  • @Mohamed I have no idea what happens on your machine. All I know that this code runs without problems on my updated TeXLive 2018 distribution. The only thing that I do not get from this contribution is IEEEtran.cls. Where did you get your version from? You seem to also have a problem with John Kormylo's code. Perhaps this suggests that you update your TeX installation.
    – marmot
    2 days ago











  • it works with me. Thank you very much. Is there is any way to resize the text inside the boxes? As it seems the text is not in a straight line.
    – Mohamed
    2 days ago










  • If this question worked for you, you should accept the answer with the green check, if you have additional questions you can ask them in another question centered on those issues or on other improvements.
    – J Leon V.
    2 days ago











  • @Mohamed I think all texts are on straight lines. You can resize texts as is done in the yellow boxes, e.g. with font=large. You can also say scale=0.8, say, but I would not do either since then the texts are different from what is in the main text.
    – marmot
    yesterday















Thanks for your help. I try to copy the code to my TeXstudio program But it keeps trying to run and it is taking so much time without any response.
– Mohamed
2 days ago




Thanks for your help. I try to copy the code to my TeXstudio program But it keeps trying to run and it is taking so much time without any response.
– Mohamed
2 days ago












@Mohamed I have no idea what happens on your machine. All I know that this code runs without problems on my updated TeXLive 2018 distribution. The only thing that I do not get from this contribution is IEEEtran.cls. Where did you get your version from? You seem to also have a problem with John Kormylo's code. Perhaps this suggests that you update your TeX installation.
– marmot
2 days ago





@Mohamed I have no idea what happens on your machine. All I know that this code runs without problems on my updated TeXLive 2018 distribution. The only thing that I do not get from this contribution is IEEEtran.cls. Where did you get your version from? You seem to also have a problem with John Kormylo's code. Perhaps this suggests that you update your TeX installation.
– marmot
2 days ago













it works with me. Thank you very much. Is there is any way to resize the text inside the boxes? As it seems the text is not in a straight line.
– Mohamed
2 days ago




it works with me. Thank you very much. Is there is any way to resize the text inside the boxes? As it seems the text is not in a straight line.
– Mohamed
2 days ago












If this question worked for you, you should accept the answer with the green check, if you have additional questions you can ask them in another question centered on those issues or on other improvements.
– J Leon V.
2 days ago





If this question worked for you, you should accept the answer with the green check, if you have additional questions you can ask them in another question centered on those issues or on other improvements.
– J Leon V.
2 days ago













@Mohamed I think all texts are on straight lines. You can resize texts as is done in the yellow boxes, e.g. with font=large. You can also say scale=0.8, say, but I would not do either since then the texts are different from what is in the main text.
– marmot
yesterday




@Mohamed I think all texts are on straight lines. You can resize texts as is done in the yellow boxes, e.g. with font=large. You can also say scale=0.8, say, but I would not do either since then the texts are different from what is in the main text.
– marmot
yesterday

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f450335%2fhow-to-use-fit-tikzpicture-in-a-latex-file%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What does second last employer means? [closed]

Installing NextGIS Connect into QGIS 3?

One-line joke