How to adjust a circular text below a circular picture in Tikz in a single code?

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











up vote
2
down vote

favorite












I have coded the orange picture and the text below it in separate codes. How can I put them together in a single code to move and re-size together? (pictures have been re-scaled in the attachment.)



documentclass[6pt,border=1mm]standalone
usepackagetikz, pgfornament, tikzrput
usetikzlibrarydecorations, decorations.text
usepackagebookman
begindocument
begintikzpicture
beginscope[color=red,
every node/.style=inner sep=0pt]
node[minimum size=6cm](vecbox);
node[anchor=north west] at (vecbox.north west)
pgfornament[width=1cm]61;
node[anchor=north east] at (vecbox.north east)
pgfornament[width=1cm,symmetry=v]61;
node[anchor=south west] at (vecbox.south west)
pgfornament[width=1cm, symmetry=h]61;
node[anchor=south east] at (vecbox.south east)
pgfornament[width=1cm,symmetry=c]61;
endscope
beginframeTheorems, Definitions, Corollaries, etc.
draw [path picture= node at (path picture bounding box.center)
includegraphics[height=5cm, width=5cm]photo;] (0,0) circle (2);
draw[color=blue, rotate=90, yshift=0cm, xshift=0cm, postaction=decorate,
decoration=text along path, raise=-10pt, text align=align=center,
text=This is some random text] (0,0) circle (2cm);
endframe
endtikzpicture
enddocument


photoenter image description here










share|improve this question

















  • 1




    Thanks to your question (and your code), I have just understood how to attach an external photo to the tex code on tex.stackexchange.com. Thank you very much! Besides, you draw very well!
    – AndréC
    3 hours ago















up vote
2
down vote

favorite












I have coded the orange picture and the text below it in separate codes. How can I put them together in a single code to move and re-size together? (pictures have been re-scaled in the attachment.)



documentclass[6pt,border=1mm]standalone
usepackagetikz, pgfornament, tikzrput
usetikzlibrarydecorations, decorations.text
usepackagebookman
begindocument
begintikzpicture
beginscope[color=red,
every node/.style=inner sep=0pt]
node[minimum size=6cm](vecbox);
node[anchor=north west] at (vecbox.north west)
pgfornament[width=1cm]61;
node[anchor=north east] at (vecbox.north east)
pgfornament[width=1cm,symmetry=v]61;
node[anchor=south west] at (vecbox.south west)
pgfornament[width=1cm, symmetry=h]61;
node[anchor=south east] at (vecbox.south east)
pgfornament[width=1cm,symmetry=c]61;
endscope
beginframeTheorems, Definitions, Corollaries, etc.
draw [path picture= node at (path picture bounding box.center)
includegraphics[height=5cm, width=5cm]photo;] (0,0) circle (2);
draw[color=blue, rotate=90, yshift=0cm, xshift=0cm, postaction=decorate,
decoration=text along path, raise=-10pt, text align=align=center,
text=This is some random text] (0,0) circle (2cm);
endframe
endtikzpicture
enddocument


photoenter image description here










share|improve this question

















  • 1




    Thanks to your question (and your code), I have just understood how to attach an external photo to the tex code on tex.stackexchange.com. Thank you very much! Besides, you draw very well!
    – AndréC
    3 hours ago













up vote
2
down vote

favorite









up vote
2
down vote

favorite











I have coded the orange picture and the text below it in separate codes. How can I put them together in a single code to move and re-size together? (pictures have been re-scaled in the attachment.)



documentclass[6pt,border=1mm]standalone
usepackagetikz, pgfornament, tikzrput
usetikzlibrarydecorations, decorations.text
usepackagebookman
begindocument
begintikzpicture
beginscope[color=red,
every node/.style=inner sep=0pt]
node[minimum size=6cm](vecbox);
node[anchor=north west] at (vecbox.north west)
pgfornament[width=1cm]61;
node[anchor=north east] at (vecbox.north east)
pgfornament[width=1cm,symmetry=v]61;
node[anchor=south west] at (vecbox.south west)
pgfornament[width=1cm, symmetry=h]61;
node[anchor=south east] at (vecbox.south east)
pgfornament[width=1cm,symmetry=c]61;
endscope
beginframeTheorems, Definitions, Corollaries, etc.
draw [path picture= node at (path picture bounding box.center)
includegraphics[height=5cm, width=5cm]photo;] (0,0) circle (2);
draw[color=blue, rotate=90, yshift=0cm, xshift=0cm, postaction=decorate,
decoration=text along path, raise=-10pt, text align=align=center,
text=This is some random text] (0,0) circle (2cm);
endframe
endtikzpicture
enddocument


photoenter image description here










share|improve this question













I have coded the orange picture and the text below it in separate codes. How can I put them together in a single code to move and re-size together? (pictures have been re-scaled in the attachment.)



documentclass[6pt,border=1mm]standalone
usepackagetikz, pgfornament, tikzrput
usetikzlibrarydecorations, decorations.text
usepackagebookman
begindocument
begintikzpicture
beginscope[color=red,
every node/.style=inner sep=0pt]
node[minimum size=6cm](vecbox);
node[anchor=north west] at (vecbox.north west)
pgfornament[width=1cm]61;
node[anchor=north east] at (vecbox.north east)
pgfornament[width=1cm,symmetry=v]61;
node[anchor=south west] at (vecbox.south west)
pgfornament[width=1cm, symmetry=h]61;
node[anchor=south east] at (vecbox.south east)
pgfornament[width=1cm,symmetry=c]61;
endscope
beginframeTheorems, Definitions, Corollaries, etc.
draw [path picture= node at (path picture bounding box.center)
includegraphics[height=5cm, width=5cm]photo;] (0,0) circle (2);
draw[color=blue, rotate=90, yshift=0cm, xshift=0cm, postaction=decorate,
decoration=text along path, raise=-10pt, text align=align=center,
text=This is some random text] (0,0) circle (2cm);
endframe
endtikzpicture
enddocument


photoenter image description here







tikz-pgf






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 4 hours ago









Reza

31319




31319







  • 1




    Thanks to your question (and your code), I have just understood how to attach an external photo to the tex code on tex.stackexchange.com. Thank you very much! Besides, you draw very well!
    – AndréC
    3 hours ago













  • 1




    Thanks to your question (and your code), I have just understood how to attach an external photo to the tex code on tex.stackexchange.com. Thank you very much! Besides, you draw very well!
    – AndréC
    3 hours ago








1




1




Thanks to your question (and your code), I have just understood how to attach an external photo to the tex code on tex.stackexchange.com. Thank you very much! Besides, you draw very well!
– AndréC
3 hours ago





Thanks to your question (and your code), I have just understood how to attach an external photo to the tex code on tex.stackexchange.com. Thank you very much! Besides, you draw very well!
– AndréC
3 hours ago











1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted










I have no idea what the purpose of the frame here is, but otherwise I think you're almost there. (Note also that photo has a different content on my machine. ;-)



documentclass[6pt,border=1mm]standalone
usepackagetikz, pgfornament, tikzrput
usetikzlibrarydecorations, decorations.text
usepackagebookman
begindocument
%beginframeTheorems, Definitions, Corollaries, etc.
begintikzpicture
beginscope[color=red,
every node/.style=inner sep=0pt]
node[minimum size=6cm](vecbox);
node[anchor=north west] at (vecbox.north west)
pgfornament[width=1cm]61;
node[anchor=north east] at (vecbox.north east)
pgfornament[width=1cm,symmetry=v]61;
node[anchor=south west] at (vecbox.south west)
pgfornament[width=1cm, symmetry=h]61;
node[anchor=south east] at (vecbox.south east)
pgfornament[width=1cm,symmetry=c]61;
clip (vecbox.center) circle(2);
node at (vecbox.center) includegraphics[height=5cm, width=5cm]photo;
endscope
draw[color=blue, rotate=90, yshift=0cm, xshift=0cm, postaction=decorate,
decoration=text along path, raise=-10pt, text align=align=center,
text=This is some random text] (vecbox.center) circle (2cm);
endtikzpicture
%endframe
enddocument


enter image description here



This can be transformed at will.



documentclass[tikz,6pt,border=1mm]standalone
usepackagepgfornament, tikzrput
usetikzlibrarydecorations, decorations.text
usepackagebookman
begindocument
%beginframeTheorems, Definitions, Corollaries, etc.
foreach X in 0,10,...,360
pgfmathsetmacroSF0.75+0.25*cos(X)
begintikzpicture
path[use as bounding box] (-3,-3) rectangle (3,3);
beginscope[scale=SF,transform shape]
beginscope[color=red,
every node/.style=inner sep=0pt]
node[minimum size=6cm](vecbox);
node[anchor=north west] at (vecbox.north west)
pgfornament[width=1cm]61;
node[anchor=north east] at (vecbox.north east)
pgfornament[width=1cm,symmetry=v]61;
node[anchor=south west] at (vecbox.south west)
pgfornament[width=1cm, symmetry=h]61;
node[anchor=south east] at (vecbox.south east)
pgfornament[width=1cm,symmetry=c]61;
clip (vecbox.center) circle(2);
node at (vecbox.center) includegraphics[height=5cm, width=5cm]photo;
endscope
draw[color=blue, rotate=90, yshift=0cm, xshift=0cm, postaction=decorate,
decoration=text along path, raise=-10pt, text align=align=center,
text=This is some random text] (vecbox.center) circle (2cm);
endscope
endtikzpicture
%endframe
enddocument


enter image description here






share|improve this answer






















    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%2f457233%2fhow-to-adjust-a-circular-text-below-a-circular-picture-in-tikz-in-a-single-code%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote



    accepted










    I have no idea what the purpose of the frame here is, but otherwise I think you're almost there. (Note also that photo has a different content on my machine. ;-)



    documentclass[6pt,border=1mm]standalone
    usepackagetikz, pgfornament, tikzrput
    usetikzlibrarydecorations, decorations.text
    usepackagebookman
    begindocument
    %beginframeTheorems, Definitions, Corollaries, etc.
    begintikzpicture
    beginscope[color=red,
    every node/.style=inner sep=0pt]
    node[minimum size=6cm](vecbox);
    node[anchor=north west] at (vecbox.north west)
    pgfornament[width=1cm]61;
    node[anchor=north east] at (vecbox.north east)
    pgfornament[width=1cm,symmetry=v]61;
    node[anchor=south west] at (vecbox.south west)
    pgfornament[width=1cm, symmetry=h]61;
    node[anchor=south east] at (vecbox.south east)
    pgfornament[width=1cm,symmetry=c]61;
    clip (vecbox.center) circle(2);
    node at (vecbox.center) includegraphics[height=5cm, width=5cm]photo;
    endscope
    draw[color=blue, rotate=90, yshift=0cm, xshift=0cm, postaction=decorate,
    decoration=text along path, raise=-10pt, text align=align=center,
    text=This is some random text] (vecbox.center) circle (2cm);
    endtikzpicture
    %endframe
    enddocument


    enter image description here



    This can be transformed at will.



    documentclass[tikz,6pt,border=1mm]standalone
    usepackagepgfornament, tikzrput
    usetikzlibrarydecorations, decorations.text
    usepackagebookman
    begindocument
    %beginframeTheorems, Definitions, Corollaries, etc.
    foreach X in 0,10,...,360
    pgfmathsetmacroSF0.75+0.25*cos(X)
    begintikzpicture
    path[use as bounding box] (-3,-3) rectangle (3,3);
    beginscope[scale=SF,transform shape]
    beginscope[color=red,
    every node/.style=inner sep=0pt]
    node[minimum size=6cm](vecbox);
    node[anchor=north west] at (vecbox.north west)
    pgfornament[width=1cm]61;
    node[anchor=north east] at (vecbox.north east)
    pgfornament[width=1cm,symmetry=v]61;
    node[anchor=south west] at (vecbox.south west)
    pgfornament[width=1cm, symmetry=h]61;
    node[anchor=south east] at (vecbox.south east)
    pgfornament[width=1cm,symmetry=c]61;
    clip (vecbox.center) circle(2);
    node at (vecbox.center) includegraphics[height=5cm, width=5cm]photo;
    endscope
    draw[color=blue, rotate=90, yshift=0cm, xshift=0cm, postaction=decorate,
    decoration=text along path, raise=-10pt, text align=align=center,
    text=This is some random text] (vecbox.center) circle (2cm);
    endscope
    endtikzpicture
    %endframe
    enddocument


    enter image description here






    share|improve this answer


























      up vote
      3
      down vote



      accepted










      I have no idea what the purpose of the frame here is, but otherwise I think you're almost there. (Note also that photo has a different content on my machine. ;-)



      documentclass[6pt,border=1mm]standalone
      usepackagetikz, pgfornament, tikzrput
      usetikzlibrarydecorations, decorations.text
      usepackagebookman
      begindocument
      %beginframeTheorems, Definitions, Corollaries, etc.
      begintikzpicture
      beginscope[color=red,
      every node/.style=inner sep=0pt]
      node[minimum size=6cm](vecbox);
      node[anchor=north west] at (vecbox.north west)
      pgfornament[width=1cm]61;
      node[anchor=north east] at (vecbox.north east)
      pgfornament[width=1cm,symmetry=v]61;
      node[anchor=south west] at (vecbox.south west)
      pgfornament[width=1cm, symmetry=h]61;
      node[anchor=south east] at (vecbox.south east)
      pgfornament[width=1cm,symmetry=c]61;
      clip (vecbox.center) circle(2);
      node at (vecbox.center) includegraphics[height=5cm, width=5cm]photo;
      endscope
      draw[color=blue, rotate=90, yshift=0cm, xshift=0cm, postaction=decorate,
      decoration=text along path, raise=-10pt, text align=align=center,
      text=This is some random text] (vecbox.center) circle (2cm);
      endtikzpicture
      %endframe
      enddocument


      enter image description here



      This can be transformed at will.



      documentclass[tikz,6pt,border=1mm]standalone
      usepackagepgfornament, tikzrput
      usetikzlibrarydecorations, decorations.text
      usepackagebookman
      begindocument
      %beginframeTheorems, Definitions, Corollaries, etc.
      foreach X in 0,10,...,360
      pgfmathsetmacroSF0.75+0.25*cos(X)
      begintikzpicture
      path[use as bounding box] (-3,-3) rectangle (3,3);
      beginscope[scale=SF,transform shape]
      beginscope[color=red,
      every node/.style=inner sep=0pt]
      node[minimum size=6cm](vecbox);
      node[anchor=north west] at (vecbox.north west)
      pgfornament[width=1cm]61;
      node[anchor=north east] at (vecbox.north east)
      pgfornament[width=1cm,symmetry=v]61;
      node[anchor=south west] at (vecbox.south west)
      pgfornament[width=1cm, symmetry=h]61;
      node[anchor=south east] at (vecbox.south east)
      pgfornament[width=1cm,symmetry=c]61;
      clip (vecbox.center) circle(2);
      node at (vecbox.center) includegraphics[height=5cm, width=5cm]photo;
      endscope
      draw[color=blue, rotate=90, yshift=0cm, xshift=0cm, postaction=decorate,
      decoration=text along path, raise=-10pt, text align=align=center,
      text=This is some random text] (vecbox.center) circle (2cm);
      endscope
      endtikzpicture
      %endframe
      enddocument


      enter image description here






      share|improve this answer
























        up vote
        3
        down vote



        accepted







        up vote
        3
        down vote



        accepted






        I have no idea what the purpose of the frame here is, but otherwise I think you're almost there. (Note also that photo has a different content on my machine. ;-)



        documentclass[6pt,border=1mm]standalone
        usepackagetikz, pgfornament, tikzrput
        usetikzlibrarydecorations, decorations.text
        usepackagebookman
        begindocument
        %beginframeTheorems, Definitions, Corollaries, etc.
        begintikzpicture
        beginscope[color=red,
        every node/.style=inner sep=0pt]
        node[minimum size=6cm](vecbox);
        node[anchor=north west] at (vecbox.north west)
        pgfornament[width=1cm]61;
        node[anchor=north east] at (vecbox.north east)
        pgfornament[width=1cm,symmetry=v]61;
        node[anchor=south west] at (vecbox.south west)
        pgfornament[width=1cm, symmetry=h]61;
        node[anchor=south east] at (vecbox.south east)
        pgfornament[width=1cm,symmetry=c]61;
        clip (vecbox.center) circle(2);
        node at (vecbox.center) includegraphics[height=5cm, width=5cm]photo;
        endscope
        draw[color=blue, rotate=90, yshift=0cm, xshift=0cm, postaction=decorate,
        decoration=text along path, raise=-10pt, text align=align=center,
        text=This is some random text] (vecbox.center) circle (2cm);
        endtikzpicture
        %endframe
        enddocument


        enter image description here



        This can be transformed at will.



        documentclass[tikz,6pt,border=1mm]standalone
        usepackagepgfornament, tikzrput
        usetikzlibrarydecorations, decorations.text
        usepackagebookman
        begindocument
        %beginframeTheorems, Definitions, Corollaries, etc.
        foreach X in 0,10,...,360
        pgfmathsetmacroSF0.75+0.25*cos(X)
        begintikzpicture
        path[use as bounding box] (-3,-3) rectangle (3,3);
        beginscope[scale=SF,transform shape]
        beginscope[color=red,
        every node/.style=inner sep=0pt]
        node[minimum size=6cm](vecbox);
        node[anchor=north west] at (vecbox.north west)
        pgfornament[width=1cm]61;
        node[anchor=north east] at (vecbox.north east)
        pgfornament[width=1cm,symmetry=v]61;
        node[anchor=south west] at (vecbox.south west)
        pgfornament[width=1cm, symmetry=h]61;
        node[anchor=south east] at (vecbox.south east)
        pgfornament[width=1cm,symmetry=c]61;
        clip (vecbox.center) circle(2);
        node at (vecbox.center) includegraphics[height=5cm, width=5cm]photo;
        endscope
        draw[color=blue, rotate=90, yshift=0cm, xshift=0cm, postaction=decorate,
        decoration=text along path, raise=-10pt, text align=align=center,
        text=This is some random text] (vecbox.center) circle (2cm);
        endscope
        endtikzpicture
        %endframe
        enddocument


        enter image description here






        share|improve this answer














        I have no idea what the purpose of the frame here is, but otherwise I think you're almost there. (Note also that photo has a different content on my machine. ;-)



        documentclass[6pt,border=1mm]standalone
        usepackagetikz, pgfornament, tikzrput
        usetikzlibrarydecorations, decorations.text
        usepackagebookman
        begindocument
        %beginframeTheorems, Definitions, Corollaries, etc.
        begintikzpicture
        beginscope[color=red,
        every node/.style=inner sep=0pt]
        node[minimum size=6cm](vecbox);
        node[anchor=north west] at (vecbox.north west)
        pgfornament[width=1cm]61;
        node[anchor=north east] at (vecbox.north east)
        pgfornament[width=1cm,symmetry=v]61;
        node[anchor=south west] at (vecbox.south west)
        pgfornament[width=1cm, symmetry=h]61;
        node[anchor=south east] at (vecbox.south east)
        pgfornament[width=1cm,symmetry=c]61;
        clip (vecbox.center) circle(2);
        node at (vecbox.center) includegraphics[height=5cm, width=5cm]photo;
        endscope
        draw[color=blue, rotate=90, yshift=0cm, xshift=0cm, postaction=decorate,
        decoration=text along path, raise=-10pt, text align=align=center,
        text=This is some random text] (vecbox.center) circle (2cm);
        endtikzpicture
        %endframe
        enddocument


        enter image description here



        This can be transformed at will.



        documentclass[tikz,6pt,border=1mm]standalone
        usepackagepgfornament, tikzrput
        usetikzlibrarydecorations, decorations.text
        usepackagebookman
        begindocument
        %beginframeTheorems, Definitions, Corollaries, etc.
        foreach X in 0,10,...,360
        pgfmathsetmacroSF0.75+0.25*cos(X)
        begintikzpicture
        path[use as bounding box] (-3,-3) rectangle (3,3);
        beginscope[scale=SF,transform shape]
        beginscope[color=red,
        every node/.style=inner sep=0pt]
        node[minimum size=6cm](vecbox);
        node[anchor=north west] at (vecbox.north west)
        pgfornament[width=1cm]61;
        node[anchor=north east] at (vecbox.north east)
        pgfornament[width=1cm,symmetry=v]61;
        node[anchor=south west] at (vecbox.south west)
        pgfornament[width=1cm, symmetry=h]61;
        node[anchor=south east] at (vecbox.south east)
        pgfornament[width=1cm,symmetry=c]61;
        clip (vecbox.center) circle(2);
        node at (vecbox.center) includegraphics[height=5cm, width=5cm]photo;
        endscope
        draw[color=blue, rotate=90, yshift=0cm, xshift=0cm, postaction=decorate,
        decoration=text along path, raise=-10pt, text align=align=center,
        text=This is some random text] (vecbox.center) circle (2cm);
        endscope
        endtikzpicture
        %endframe
        enddocument


        enter image description here







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 2 hours ago

























        answered 3 hours ago









        marmot

        69.4k476148




        69.4k476148



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f457233%2fhow-to-adjust-a-circular-text-below-a-circular-picture-in-tikz-in-a-single-code%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