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 order were files/directories output in dir?

What happened to Thoros of Myr's flaming sword?

Amount of permutations on an NxNxN Rubik's Cube

Draw 4 of the same figure in the same tikzpicture

How do I tell what width chain my used chainring needs?

How often does castling occur in grandmaster games?

Is there any word for a place full of confusion?

Why does it sometimes sound good to play a grace note as a lead in to a note in a melody?

The Nth Gryphon Number

Should a wizard buy fine inks every time he want to copy spells into his spellbook?

How to run automated tests after each commit?

One-one communication

Lagrange four-squares theorem --- deterministic complexity

What is Adi Shankara referring to when he says "He has Vajra marks on his feet"?

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

How can I prevent/balance waiting and turtling as a response to cooldown mechanics

Maximum summed subsequences with non-adjacent items

Is it fair for a professor to grade us on the possession of past papers?

Strange behavior of Object.defineProperty() in JavaScript

How could we fake a moon landing now?

Is there public access to the Meteor Crater in Arizona?

Why weren't discrete x86 CPUs ever used in game hardware?

Is it possible for SQL statements to execute concurrently within a single session in SQL Server?

Can a Beast Master ranger change beast companions?



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
    1 hour 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
    1 hour 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 1 hour 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
    1 hour 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
    1 hour 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
1 hour 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
1 hour 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
    1 hour ago






  • 1





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

    – marmot
    1 hour 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
    1 hour ago






  • 1





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

    – marmot
    1 hour 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
    1 hour ago






  • 1





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

    – marmot
    1 hour 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 1 hour 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
    1 hour ago






  • 1





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

    – marmot
    1 hour 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
    1 hour ago






  • 1





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

    – marmot
    1 hour 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
1 hour 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
1 hour ago




1




1





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

– marmot
1 hour ago





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

– marmot
1 hour 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

Which organization defines CJK Unified Ideographs? The Next CEO of Stack OverflowCharacters which have several different shapesHow useful are the kanji in reading Chinese?Can Chinese readers scan large amounts of text faster/more accurately than their alphabet-using counterparts?丼: why is “well” also “bowl of food”?What Does Unicode 8.0 Mean For Chinese?How are blanks indicated for placeholders in Chinese (like ???)Is there a dictionary of standard character variants?How to display CJK Extension F?How is it decided as to which character is used on the tech terminology?How does 子 come to mean 'midnight'?

Shenzhen Football Club Índice Elenco atual | Títulos | Referências Ligações externas | Menu de navegaçãoGooglenotíciaslivrosacadêmicoeditar«"Elenco"»Site oficialexpandindo-oeee

When We Were Young (canção de Adele) Índice Antecedentes e lançamento | Faixas e formatos | Performances e covers | Desempenho nas tabelas musicais | Créditos | Histórico de lançamento | Referências Menu de navegação«Best albums of 2015»«Adele - When We Were Young (Radio Date: 22-01-2016)»«When We Were Young - Single by Adele»«Adele: Inside Her Private Life and Triumphant Return»«adele interview: world exclusive first interview in three years»«Tobias Jesso Jr: since Adele tweeted his song, he's even bigger than his dad»«Adele interviews Tobias Jesso Jr: 'I think that a couple of the ideas we had could be rap songs'»«Adele on Her Return: 'I Was So Frightened That No One Cared'»«Tobias Jesso Jr. on working with Adele: 'I was as nervous as shit'»«How Ariel Rechtshaid Pushed Adele To Her Limit»«Adele Previews 'When We Were Young' on '60 Minutes' Teaser, Tops Trending 140»«Adele Performs New '25' Ballad, "When We Were Young" Live: Watch»«Which '25' Song Should Be Adele's Next Single?»«Adele's 'When We Were Young' Confirmed As Second Single From '25'»«Adele's new single artwork for 'When We Were Young' is perfectly adorable»«Adele at the BBC review: honest, funny and spectacular – Celebrity News News»«'Saturday Night Live': Adele Sings 'Hello' and 'When We Were Young'»«'Adele: Live in New York City' NBC Special – Set List Revealed!»«Adele Closes Out the 2016 Brit Awards With 'When We Were Young'»«What Is The Adele Live Tour Set List? There's No Way She'd Leave Out These 8 Songs»«See Demi Lovato's Soaring Cover of Adele's 'When We Were Young'»«'The Voice': 5 Best Moments From Week 1 Blind Auditions»«Adele – When We Were Young (Media Control Charts)»«Adele – When We Were Young (Entertainment Monitoring Africa)»«Adele – When We Were Young (ARIA Charts)»«Adele – When We Were Young (Ö3 Austria Top 40)»«Adele – When We Were Young (Ultratop 50)»«Adele – When We Were Young (Ultratop 40)»«Adele – When We Were Young (Canadian Hot 100)»«Adele – When We Were Young (Tracklisten)»«Adele – When We Were Young (The Official Charts Company)»«Adele – Hello (IFPI Slovenská Republika)»«Adele – When We Were Young (Productores de Música de España)»«Adele – When We Were Young (Billboard Hot 100)»«Adele – When We Were Young (Pop Songs)»«Adele – When We Were Young (Adult Pop Songs)»«Adele – When We Were Young (Hot Adult Contemporary Charts)»«Adele – When We Were Young (Hot Dance Club Songs)»«Adele – When We Were Young (Rock Airplay)»«Adele – When We Were Young (IFPI Finlândia)»«Adele – When We Were Young (Syndicat National de l'Éditon Phonographique)»«Adele – When We Were Young (Magyar Hanglemezkiadók Szövetsége)»«Adele – When We Were Young (Irish Recorded Music Association)»«Adele – When We Were Young (Mexico Airplay)»«Adele – When We Were Young (VG-lista)»«Adele – When We Were Young (NZ Top 40 Singles)»«Adele – When We Were Young (MegaCharts)»«Adele – When We Were Young (Związek Producentów Audio Video)»«Adele – When We Were Young (Portugal Digital Songs)»«Adele – When We Were Young (UK Indie Singles Chart)»«Adele – When We Were Young (UK Singles Chart)»«Adele – When We Were Young (Sverigetopplistan)»«Adele – When We Were Young (Schweizer Hitparade)»«Adele – When We Were Young (Portugal Digital Songs)»«Music Canada – Gold/Platinum – When We Were Young»«NZ Top 40 Singles Chart»«Certified Awards»e