Draw 4 of the same figure in the same tikzpicture Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)TikZ: Cropping the Bounding BoxRotate a node but not its content: the case of the ellipse decorationtikzpicture within figure captionTikZ scaling graphic and adjust node position and keep font sizeTikZ/ERD: node (=Entity) label on the insideTikzpicture/figure shiftDraw tikzpicture in figure captionTikZ: Drawing an arc from an intersection to an intersectionLine up nested tikz enviroments or how to get rid of themDrawing graph with Tikz: Link it with main text without overlapping with text

What does Turing mean by this statement?

Misunderstanding of Sylow theory

What is the home of the drow in Flanaess?

C's equality operator on converted pointers

How did Fremen produce and carry enough thumpers to use Sandworms as de facto Ubers?

Can a Beast Master ranger change beast companions?

Draw 4 of the same figure in the same tikzpicture

Can I infer the range of a random variable based on a confidence interval for the mean?

Central Vacuuming: Is it worth it, and how does it compare to normal vacuuming?

How fail-safe is nr as stop bytes?

How does a spellshard spellbook work?

Why are my pictures showing a dark band on one edge?

In musical terms, what properties are varied by the human voice to produce different words / syllables?

Sentence with dass with three Verbs (One modal and two connected with zu)

Why do early math courses focus on the cross sections of a cone and not on other 3D objects?

Why can't I install Tomboy in Ubuntu Mate 19.04?

A term for a woman complaining about things/begging in a cute/childish way

What is the meaning of 'breadth' in breadth first search?

Significance of Cersei's obsession with elephants?

Drawing spherical mirrors

How to run automated tests after each commit?

How many time has Arya actually used Needle?

How does Belgium enforce obligatory attendance in elections?

What to do with repeated rejections for phd position



Draw 4 of the same figure in the same tikzpicture



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)TikZ: Cropping the Bounding BoxRotate a node but not its content: the case of the ellipse decorationtikzpicture within figure captionTikZ scaling graphic and adjust node position and keep font sizeTikZ/ERD: node (=Entity) label on the insideTikzpicture/figure shiftDraw tikzpicture in figure captionTikZ: Drawing an arc from an intersection to an intersectionLine up nested tikz enviroments or how to get rid of themDrawing graph with Tikz: Link it with main text without overlapping with text










4















I want to draw this: enter image description here



I have managed to do one of the Hexagons using this code:



documentclassarticle
usepackagetikz
begindocument
beginfigure
begintikzpicture[scale=2,cap=round,>=latex]

newdimenR
R=0.8cm
coordinate (center) at (0,0);
draw (0:R)
foreach x in 60,120,...,360 -- (x:R)
-- cycle (300:R) node[below]
-- cycle (240:R) node[below]
-- cycle (180:R) node[left]
-- cycle (120:R) node[above]
-- cycle (60:R) node[above]
-- cycle (0:R) node[right] ;
draw (60:R) -- (30:0.69) -- (center) -- (60:R) [fill=gray];
draw (90:0.69) -- (120:R) -- (center) -- (90:0.69) [fill=gray];
draw (180:R) -- (150:0.69) -- (center) -- (180:R) [fill=gray];
draw (240:R) -- (210:0.69) -- (center) -- (240:R) [fill=gray];
draw (300:R) -- (270:0.69) -- (center) -- (300:R) [fill=gray];
draw (0:R) -- (330:0.69) -- (center) -- (0:R) [fill=gray];

endtikzpicture
endfigure

enddocument


And it draw this:



enter image description here



But when I try to do 4 of them, it is really complicated to me, please help with that. Thank you










share|improve this question






















  • the newdimenR should be in the preamble not inside an environment (newdimen allocations are always global) but then can you not simply copy the tikzpicture 4 times?

    – David Carlisle
    2 hours ago















4















I want to draw this: enter image description here



I have managed to do one of the Hexagons using this code:



documentclassarticle
usepackagetikz
begindocument
beginfigure
begintikzpicture[scale=2,cap=round,>=latex]

newdimenR
R=0.8cm
coordinate (center) at (0,0);
draw (0:R)
foreach x in 60,120,...,360 -- (x:R)
-- cycle (300:R) node[below]
-- cycle (240:R) node[below]
-- cycle (180:R) node[left]
-- cycle (120:R) node[above]
-- cycle (60:R) node[above]
-- cycle (0:R) node[right] ;
draw (60:R) -- (30:0.69) -- (center) -- (60:R) [fill=gray];
draw (90:0.69) -- (120:R) -- (center) -- (90:0.69) [fill=gray];
draw (180:R) -- (150:0.69) -- (center) -- (180:R) [fill=gray];
draw (240:R) -- (210:0.69) -- (center) -- (240:R) [fill=gray];
draw (300:R) -- (270:0.69) -- (center) -- (300:R) [fill=gray];
draw (0:R) -- (330:0.69) -- (center) -- (0:R) [fill=gray];

endtikzpicture
endfigure

enddocument


And it draw this:



enter image description here



But when I try to do 4 of them, it is really complicated to me, please help with that. Thank you










share|improve this question






















  • the newdimenR should be in the preamble not inside an environment (newdimen allocations are always global) but then can you not simply copy the tikzpicture 4 times?

    – David Carlisle
    2 hours ago













4












4








4


0






I want to draw this: enter image description here



I have managed to do one of the Hexagons using this code:



documentclassarticle
usepackagetikz
begindocument
beginfigure
begintikzpicture[scale=2,cap=round,>=latex]

newdimenR
R=0.8cm
coordinate (center) at (0,0);
draw (0:R)
foreach x in 60,120,...,360 -- (x:R)
-- cycle (300:R) node[below]
-- cycle (240:R) node[below]
-- cycle (180:R) node[left]
-- cycle (120:R) node[above]
-- cycle (60:R) node[above]
-- cycle (0:R) node[right] ;
draw (60:R) -- (30:0.69) -- (center) -- (60:R) [fill=gray];
draw (90:0.69) -- (120:R) -- (center) -- (90:0.69) [fill=gray];
draw (180:R) -- (150:0.69) -- (center) -- (180:R) [fill=gray];
draw (240:R) -- (210:0.69) -- (center) -- (240:R) [fill=gray];
draw (300:R) -- (270:0.69) -- (center) -- (300:R) [fill=gray];
draw (0:R) -- (330:0.69) -- (center) -- (0:R) [fill=gray];

endtikzpicture
endfigure

enddocument


And it draw this:



enter image description here



But when I try to do 4 of them, it is really complicated to me, please help with that. Thank you










share|improve this question














I want to draw this: enter image description here



I have managed to do one of the Hexagons using this code:



documentclassarticle
usepackagetikz
begindocument
beginfigure
begintikzpicture[scale=2,cap=round,>=latex]

newdimenR
R=0.8cm
coordinate (center) at (0,0);
draw (0:R)
foreach x in 60,120,...,360 -- (x:R)
-- cycle (300:R) node[below]
-- cycle (240:R) node[below]
-- cycle (180:R) node[left]
-- cycle (120:R) node[above]
-- cycle (60:R) node[above]
-- cycle (0:R) node[right] ;
draw (60:R) -- (30:0.69) -- (center) -- (60:R) [fill=gray];
draw (90:0.69) -- (120:R) -- (center) -- (90:0.69) [fill=gray];
draw (180:R) -- (150:0.69) -- (center) -- (180:R) [fill=gray];
draw (240:R) -- (210:0.69) -- (center) -- (240:R) [fill=gray];
draw (300:R) -- (270:0.69) -- (center) -- (300:R) [fill=gray];
draw (0:R) -- (330:0.69) -- (center) -- (0:R) [fill=gray];

endtikzpicture
endfigure

enddocument


And it draw this:



enter image description here



But when I try to do 4 of them, it is really complicated to me, please help with that. Thank you







tikz-pgf






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 2 hours ago









J.RodriguezJ.Rodriguez

2916




2916












  • the newdimenR should be in the preamble not inside an environment (newdimen allocations are always global) but then can you not simply copy the tikzpicture 4 times?

    – David Carlisle
    2 hours ago

















  • the newdimenR should be in the preamble not inside an environment (newdimen allocations are always global) but then can you not simply copy the tikzpicture 4 times?

    – David Carlisle
    2 hours ago
















the newdimenR should be in the preamble not inside an environment (newdimen allocations are always global) but then can you not simply copy the tikzpicture 4 times?

– David Carlisle
2 hours ago





the newdimenR should be in the preamble not inside an environment (newdimen allocations are always global) but then can you not simply copy the tikzpicture 4 times?

– David Carlisle
2 hours ago










1 Answer
1






active

oldest

votes


















4














Normally the recommendation is to use pics but here you can just use a slightly extended standard node.



documentclassarticle
usepackagetikz
usetikzlibraryshapes.geometric,calc
tikzsetrepeating shape/.style=regular polygon,regular polygon sides=#1,alias=curr,draw,append after command=
[draw,] foreach XX [remember=XX as YY (initially #1)]
in 1,...,#1
(curr.corner XX) -- (curr.center) -- ($(curr.corner YY)!0.5!(curr.corner
XX)$)

begindocument
beginfigure
begintikzpicture[scale=2]
draw[fill=gray] foreach X in 0,2.2 foreach Y in 0,2.2
(X,Y) node[repeating shape=6,minimum size=3cm] ;
endtikzpicture
endfigure
enddocument


enter image description here






share|improve this answer























  • What kind of sorcery is this? Good job. Can you add comments indicating what each section of your code does in order for other readers to have an idea on how replicate or edit the sections.

    – azetina
    2 hours ago






  • 1





    @azetina No sorcery, only append after command which can be found on p. 150 of the pgfmanual.

    – marmot
    2 hours ago











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',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
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%2f485642%2fdraw-4-of-the-same-figure-in-the-same-tikzpicture%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









4














Normally the recommendation is to use pics but here you can just use a slightly extended standard node.



documentclassarticle
usepackagetikz
usetikzlibraryshapes.geometric,calc
tikzsetrepeating shape/.style=regular polygon,regular polygon sides=#1,alias=curr,draw,append after command=
[draw,] foreach XX [remember=XX as YY (initially #1)]
in 1,...,#1
(curr.corner XX) -- (curr.center) -- ($(curr.corner YY)!0.5!(curr.corner
XX)$)

begindocument
beginfigure
begintikzpicture[scale=2]
draw[fill=gray] foreach X in 0,2.2 foreach Y in 0,2.2
(X,Y) node[repeating shape=6,minimum size=3cm] ;
endtikzpicture
endfigure
enddocument


enter image description here






share|improve this answer























  • What kind of sorcery is this? Good job. Can you add comments indicating what each section of your code does in order for other readers to have an idea on how replicate or edit the sections.

    – azetina
    2 hours ago






  • 1





    @azetina No sorcery, only append after command which can be found on p. 150 of the pgfmanual.

    – marmot
    2 hours ago















4














Normally the recommendation is to use pics but here you can just use a slightly extended standard node.



documentclassarticle
usepackagetikz
usetikzlibraryshapes.geometric,calc
tikzsetrepeating shape/.style=regular polygon,regular polygon sides=#1,alias=curr,draw,append after command=
[draw,] foreach XX [remember=XX as YY (initially #1)]
in 1,...,#1
(curr.corner XX) -- (curr.center) -- ($(curr.corner YY)!0.5!(curr.corner
XX)$)

begindocument
beginfigure
begintikzpicture[scale=2]
draw[fill=gray] foreach X in 0,2.2 foreach Y in 0,2.2
(X,Y) node[repeating shape=6,minimum size=3cm] ;
endtikzpicture
endfigure
enddocument


enter image description here






share|improve this answer























  • What kind of sorcery is this? Good job. Can you add comments indicating what each section of your code does in order for other readers to have an idea on how replicate or edit the sections.

    – azetina
    2 hours ago






  • 1





    @azetina No sorcery, only append after command which can be found on p. 150 of the pgfmanual.

    – marmot
    2 hours ago













4












4








4







Normally the recommendation is to use pics but here you can just use a slightly extended standard node.



documentclassarticle
usepackagetikz
usetikzlibraryshapes.geometric,calc
tikzsetrepeating shape/.style=regular polygon,regular polygon sides=#1,alias=curr,draw,append after command=
[draw,] foreach XX [remember=XX as YY (initially #1)]
in 1,...,#1
(curr.corner XX) -- (curr.center) -- ($(curr.corner YY)!0.5!(curr.corner
XX)$)

begindocument
beginfigure
begintikzpicture[scale=2]
draw[fill=gray] foreach X in 0,2.2 foreach Y in 0,2.2
(X,Y) node[repeating shape=6,minimum size=3cm] ;
endtikzpicture
endfigure
enddocument


enter image description here






share|improve this answer













Normally the recommendation is to use pics but here you can just use a slightly extended standard node.



documentclassarticle
usepackagetikz
usetikzlibraryshapes.geometric,calc
tikzsetrepeating shape/.style=regular polygon,regular polygon sides=#1,alias=curr,draw,append after command=
[draw,] foreach XX [remember=XX as YY (initially #1)]
in 1,...,#1
(curr.corner XX) -- (curr.center) -- ($(curr.corner YY)!0.5!(curr.corner
XX)$)

begindocument
beginfigure
begintikzpicture[scale=2]
draw[fill=gray] foreach X in 0,2.2 foreach Y in 0,2.2
(X,Y) node[repeating shape=6,minimum size=3cm] ;
endtikzpicture
endfigure
enddocument


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered 2 hours ago









marmotmarmot

119k6154289




119k6154289












  • What kind of sorcery is this? Good job. Can you add comments indicating what each section of your code does in order for other readers to have an idea on how replicate or edit the sections.

    – azetina
    2 hours ago






  • 1





    @azetina No sorcery, only append after command which can be found on p. 150 of the pgfmanual.

    – marmot
    2 hours ago

















  • What kind of sorcery is this? Good job. Can you add comments indicating what each section of your code does in order for other readers to have an idea on how replicate or edit the sections.

    – azetina
    2 hours ago






  • 1





    @azetina No sorcery, only append after command which can be found on p. 150 of the pgfmanual.

    – marmot
    2 hours ago
















What kind of sorcery is this? Good job. Can you add comments indicating what each section of your code does in order for other readers to have an idea on how replicate or edit the sections.

– azetina
2 hours ago





What kind of sorcery is this? Good job. Can you add comments indicating what each section of your code does in order for other readers to have an idea on how replicate or edit the sections.

– azetina
2 hours ago




1




1





@azetina No sorcery, only append after command which can be found on p. 150 of the pgfmanual.

– marmot
2 hours ago





@azetina No sorcery, only append after command which can be found on p. 150 of the pgfmanual.

– marmot
2 hours ago

















draft saved

draft discarded
















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f485642%2fdraw-4-of-the-same-figure-in-the-same-tikzpicture%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Bett Inhaltsverzeichnis Geschichte | Bettformen | Bettgrößen | Andere Bezeichnungen | Bettenmangel | Betten in der bildenden Kunst | Schlafmedizinische Gesichtspunkte | Siehe auch | Literatur | Weblinks | Einzelnachweise | NavigationsmenüBett, Bettstatt, BettstelleCommons: BettBabybetten: Anwendung, Ausstattungsmerkmale und VergleichskriterienWasserbetten. Vorurteile im TestHapfnNursch10.1007/s11818-012-0584-74006250-8AKS4329276-8

Luksemburg Sisukord Nimi | Asend | Loodus | Riigikord | Haldusjaotus | Rahvastik | Riigikaitse | Majandus | Taristu | Ajalugu | Eesti ja Luksemburgi suhted | Haridus | Kultuur | Vaata ka | Viited | Välislingid | Navigeerimismenüü50° N, 6° EÜlevaade Luksemburgi kaitsealadest.Luksemburgi rahvaarv. Statistikaamet.World Bank'i andmebaasÜlevaade Luksemburgi loodusest.Ülevaade Luksemburgi metsadest.Guy Colling. "Red List of the Vascular Plants of Luxembourg." Travaux scientifiques du Musée national d’histoire naturelle Luxembourg. 2005.Luxembourg’s biodiversity at risk.Maailma kahepaiksete andmebaas.Denis Lepage. "Luxembourg." Avibase.Ülevaade temperatuuridest. Luksemburgi meteoroloogiateenistus.Ülevaade Luksemburgist. Euroopa Liidu esinduse koduleht.Système politique. TerritoireÜlevaade Luksemburgi rahvastikust. Luksemburgi statistikaamet.Luksemburgi rahvastik. Luksemburgi statistikaamet.The World FactbookMonique Borsenberger, Paul Dickes. "Religions au Luxembourg. Quelle évolution entre 1999-2008". Luksemburgi statistikaamet. 2011.Luksemburgi peapiiskopkond. Catholic-Hierarchy.Luksemburgi armee koduleht.Luksemburgi armee relvastus.Eesti Välisministeerium.Luksemburgi rahvastik. Luksemburgi statistikaamet.Luksemburgi Eesti Seltsi koduleht.Helen Eelrand. "Raadio, mis muutis maailma." Eesti Päevaleht. 13. märts 2004.Ülevaade Luksemburgi haridussüsteemist.Ülevaade Luksemburgi keskkoolidest.Luksemburgr

Valle di Casies Indice Geografia fisica | Origini del nome | Storia | Società | Amministrazione | Sport | Note | Bibliografia | Voci correlate | Altri progetti | Collegamenti esterni | Menu di navigazione46°46′N 12°11′E / 46.766667°N 12.183333°E46.766667; 12.183333 (Valle di Casies)46°46′N 12°11′E / 46.766667°N 12.183333°E46.766667; 12.183333 (Valle di Casies)Sito istituzionaleAstat Censimento della popolazione 2011 - Determinazione della consistenza dei tre gruppi linguistici della Provincia Autonoma di Bolzano-Alto Adige - giugno 2012Numeri e fattiValle di CasiesDato IstatTabella dei gradi/giorno dei Comuni italiani raggruppati per Regione e Provincia26 agosto 1993, n. 412Heraldry of the World: GsiesStatistiche I.StatValCasies.comWikimedia CommonsWikimedia CommonsValle di CasiesSito ufficialeValle di CasiesMM14870458910042978-6