Drawing graphs in Latex using documentclass “memoir” The Next CEO of Stack OverflowRotate a node but not its content: the case of the ellipse decorationDrawing graphs in LaTeXHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?TikZ/ERD: node (=Entity) label on the insideTechnical Drawing Using LaTeXDrawing undirected graphs in LaTeXDrawing Piecewise Graphs in LaTeXDrawing bar graphs using foreachDrawing xy-graphs
Fastest way to shutdown Ubuntu Mate 18.10
What do "high sea" and "carry" mean in this sentence?
How to be diplomatic in refusing to write code that breaches the privacy of our users
Need some help with wall behind rangetop
How should I support this large drywall patch?
What makes a siege story/plot interesting?
Implement the Thanos sorting algorithm
Science fiction (dystopian) short story set after WWIII
Why didn't Khan get resurrected in the Genesis Explosion?
Is HostGator storing my password in plaintext?
Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?
India just shot down a satellite from the ground. At what altitude range is the resulting debris field?
Why were Madagascar and New Zealand discovered so late?
Can I equip Skullclamp on a creature I am sacrificing?
How do I go from 300 unfinished/half written blog posts, to published posts?
Horror movie/show or scene where a horse creature opens its mouth really wide and devours a man in a stables
Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis
When airplanes disconnect from a tanker during air to air refueling, why do they bank so sharply to the right?
How to get regions to plot as graphics
Trouble understanding the speech of overseas colleagues
What does "Its cash flow is deeply negative" mean?
How do I get the green key off the shelf in the Dobby level of Lego Harry Potter 2?
How do spells that require an ability check vs. the caster's spell save DC work?
How long to clear the 'suck zone' of a turbofan after start is initiated?
Drawing graphs in Latex using documentclass “memoir”
The Next CEO of Stack OverflowRotate a node but not its content: the case of the ellipse decorationDrawing graphs in LaTeXHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?TikZ/ERD: node (=Entity) label on the insideTechnical Drawing Using LaTeXDrawing undirected graphs in LaTeXDrawing Piecewise Graphs in LaTeXDrawing bar graphs using foreachDrawing xy-graphs
I am using "memoir" in Latex to draw graphs. I am getting errors. Can anyone tell me what I am doing wrong in the following?
documentclass[a4paper,twoside,oldfontcommands,12pt]memoir
%%% INCLUDE THE PACKAGES
usepackage[utf8x]inputenc
usepackagea4wide
usepackagegraphicx
usepackageamssymb,amsmath,amsthm
usepackageamssymb, hyperref
usepackageepsfig,graphicx
usepackagetikz
usepackagetikz-cd
tikzsetnode distance=2cm, auto
usepackagehyperref
usetikzlibrarygraphs
usetikzlibrarybackgrounds
usepackagemulticol
usetikzlibraryarrows,decorations.markings
usepackagecalc,graphicx,soul
begindocument
begintikzpicture[scale=4, every loop/.style=]
vertex[fill] (1) at (.2, 0) [label=below:1] ;
vertex [fill](2) at (0,.2) [label=left:2] ;
vertex[fill] (3) at (.2,.4) [label=above:3] ;
vertex[fill] (4) at (.4,.4) [label=above:4] ;
vertex[fill] (5) at (.4, 0) [label=below:5] ;
vertex [fill](6) at (.6,.2) [label=right:6] ;
vertex[fill] (7) at (1.2, 0) [label=below:1] ;
vertex [fill](8) at (1,.2) [label=left:2] ;
vertex[fill] (9) at (1.2,.4) [label=above:3] ;
vertex[fill] (10) at (1.4,.4) [label=above:4] ;
vertex[fill] (11) at (1.6, .2) [label=right:6] ;
vertex [fill](12) at (1.4,0) [label=below:5] ;
vertex[fill] (13) at (2.2, 0) [label=below:1] ;
vertex [fill](14) at (2,.2) [label=left:2] ;
vertex[fill] (15) at (2.2,.4) [label=above:3];
vertex[fill] (16) at (2.4,.4) [label=above:4] ;
vertex[fill] (17) at (2.6,.2) [label=right: 6] ;
vertex [fill](18) at (2.4,0) [label=below:5] ;
path
(1) edge (2)
(1) edge (3)
(2) edge (3)
(4) edge (5)
(4) edge (6)
(5) edge (6)
(7) edge (8)
(8) edge (9)
(9) edge (10)
(7) edge (12)
(10) edge (11)
(11) edge (12)
(13) edge (14)
(14) edge (15)
(15) edge (18)
(13) edge (16)
(16) edge (17)
(17) edge (18)
;
endtikzpicture
enddocument
tikz-pgf diagrams
New contributor
add a comment |
I am using "memoir" in Latex to draw graphs. I am getting errors. Can anyone tell me what I am doing wrong in the following?
documentclass[a4paper,twoside,oldfontcommands,12pt]memoir
%%% INCLUDE THE PACKAGES
usepackage[utf8x]inputenc
usepackagea4wide
usepackagegraphicx
usepackageamssymb,amsmath,amsthm
usepackageamssymb, hyperref
usepackageepsfig,graphicx
usepackagetikz
usepackagetikz-cd
tikzsetnode distance=2cm, auto
usepackagehyperref
usetikzlibrarygraphs
usetikzlibrarybackgrounds
usepackagemulticol
usetikzlibraryarrows,decorations.markings
usepackagecalc,graphicx,soul
begindocument
begintikzpicture[scale=4, every loop/.style=]
vertex[fill] (1) at (.2, 0) [label=below:1] ;
vertex [fill](2) at (0,.2) [label=left:2] ;
vertex[fill] (3) at (.2,.4) [label=above:3] ;
vertex[fill] (4) at (.4,.4) [label=above:4] ;
vertex[fill] (5) at (.4, 0) [label=below:5] ;
vertex [fill](6) at (.6,.2) [label=right:6] ;
vertex[fill] (7) at (1.2, 0) [label=below:1] ;
vertex [fill](8) at (1,.2) [label=left:2] ;
vertex[fill] (9) at (1.2,.4) [label=above:3] ;
vertex[fill] (10) at (1.4,.4) [label=above:4] ;
vertex[fill] (11) at (1.6, .2) [label=right:6] ;
vertex [fill](12) at (1.4,0) [label=below:5] ;
vertex[fill] (13) at (2.2, 0) [label=below:1] ;
vertex [fill](14) at (2,.2) [label=left:2] ;
vertex[fill] (15) at (2.2,.4) [label=above:3];
vertex[fill] (16) at (2.4,.4) [label=above:4] ;
vertex[fill] (17) at (2.6,.2) [label=right: 6] ;
vertex [fill](18) at (2.4,0) [label=below:5] ;
path
(1) edge (2)
(1) edge (3)
(2) edge (3)
(4) edge (5)
(4) edge (6)
(5) edge (6)
(7) edge (8)
(8) edge (9)
(9) edge (10)
(7) edge (12)
(10) edge (11)
(11) edge (12)
(13) edge (14)
(14) edge (15)
(15) edge (18)
(13) edge (16)
(16) edge (17)
(17) edge (18)
;
endtikzpicture
enddocument
tikz-pgf diagrams
New contributor
This is not really related to memoir at all
– daleif
11 hours ago
add a comment |
I am using "memoir" in Latex to draw graphs. I am getting errors. Can anyone tell me what I am doing wrong in the following?
documentclass[a4paper,twoside,oldfontcommands,12pt]memoir
%%% INCLUDE THE PACKAGES
usepackage[utf8x]inputenc
usepackagea4wide
usepackagegraphicx
usepackageamssymb,amsmath,amsthm
usepackageamssymb, hyperref
usepackageepsfig,graphicx
usepackagetikz
usepackagetikz-cd
tikzsetnode distance=2cm, auto
usepackagehyperref
usetikzlibrarygraphs
usetikzlibrarybackgrounds
usepackagemulticol
usetikzlibraryarrows,decorations.markings
usepackagecalc,graphicx,soul
begindocument
begintikzpicture[scale=4, every loop/.style=]
vertex[fill] (1) at (.2, 0) [label=below:1] ;
vertex [fill](2) at (0,.2) [label=left:2] ;
vertex[fill] (3) at (.2,.4) [label=above:3] ;
vertex[fill] (4) at (.4,.4) [label=above:4] ;
vertex[fill] (5) at (.4, 0) [label=below:5] ;
vertex [fill](6) at (.6,.2) [label=right:6] ;
vertex[fill] (7) at (1.2, 0) [label=below:1] ;
vertex [fill](8) at (1,.2) [label=left:2] ;
vertex[fill] (9) at (1.2,.4) [label=above:3] ;
vertex[fill] (10) at (1.4,.4) [label=above:4] ;
vertex[fill] (11) at (1.6, .2) [label=right:6] ;
vertex [fill](12) at (1.4,0) [label=below:5] ;
vertex[fill] (13) at (2.2, 0) [label=below:1] ;
vertex [fill](14) at (2,.2) [label=left:2] ;
vertex[fill] (15) at (2.2,.4) [label=above:3];
vertex[fill] (16) at (2.4,.4) [label=above:4] ;
vertex[fill] (17) at (2.6,.2) [label=right: 6] ;
vertex [fill](18) at (2.4,0) [label=below:5] ;
path
(1) edge (2)
(1) edge (3)
(2) edge (3)
(4) edge (5)
(4) edge (6)
(5) edge (6)
(7) edge (8)
(8) edge (9)
(9) edge (10)
(7) edge (12)
(10) edge (11)
(11) edge (12)
(13) edge (14)
(14) edge (15)
(15) edge (18)
(13) edge (16)
(16) edge (17)
(17) edge (18)
;
endtikzpicture
enddocument
tikz-pgf diagrams
New contributor
I am using "memoir" in Latex to draw graphs. I am getting errors. Can anyone tell me what I am doing wrong in the following?
documentclass[a4paper,twoside,oldfontcommands,12pt]memoir
%%% INCLUDE THE PACKAGES
usepackage[utf8x]inputenc
usepackagea4wide
usepackagegraphicx
usepackageamssymb,amsmath,amsthm
usepackageamssymb, hyperref
usepackageepsfig,graphicx
usepackagetikz
usepackagetikz-cd
tikzsetnode distance=2cm, auto
usepackagehyperref
usetikzlibrarygraphs
usetikzlibrarybackgrounds
usepackagemulticol
usetikzlibraryarrows,decorations.markings
usepackagecalc,graphicx,soul
begindocument
begintikzpicture[scale=4, every loop/.style=]
vertex[fill] (1) at (.2, 0) [label=below:1] ;
vertex [fill](2) at (0,.2) [label=left:2] ;
vertex[fill] (3) at (.2,.4) [label=above:3] ;
vertex[fill] (4) at (.4,.4) [label=above:4] ;
vertex[fill] (5) at (.4, 0) [label=below:5] ;
vertex [fill](6) at (.6,.2) [label=right:6] ;
vertex[fill] (7) at (1.2, 0) [label=below:1] ;
vertex [fill](8) at (1,.2) [label=left:2] ;
vertex[fill] (9) at (1.2,.4) [label=above:3] ;
vertex[fill] (10) at (1.4,.4) [label=above:4] ;
vertex[fill] (11) at (1.6, .2) [label=right:6] ;
vertex [fill](12) at (1.4,0) [label=below:5] ;
vertex[fill] (13) at (2.2, 0) [label=below:1] ;
vertex [fill](14) at (2,.2) [label=left:2] ;
vertex[fill] (15) at (2.2,.4) [label=above:3];
vertex[fill] (16) at (2.4,.4) [label=above:4] ;
vertex[fill] (17) at (2.6,.2) [label=right: 6] ;
vertex [fill](18) at (2.4,0) [label=below:5] ;
path
(1) edge (2)
(1) edge (3)
(2) edge (3)
(4) edge (5)
(4) edge (6)
(5) edge (6)
(7) edge (8)
(8) edge (9)
(9) edge (10)
(7) edge (12)
(10) edge (11)
(11) edge (12)
(13) edge (14)
(14) edge (15)
(15) edge (18)
(13) edge (16)
(16) edge (17)
(17) edge (18)
;
endtikzpicture
enddocument
tikz-pgf diagrams
tikz-pgf diagrams
New contributor
New contributor
edited 12 hours ago
JouleV
8,65222155
8,65222155
New contributor
asked 12 hours ago
a.nayeka.nayek
1
1
New contributor
New contributor
This is not really related to memoir at all
– daleif
11 hours ago
add a comment |
This is not really related to memoir at all
– daleif
11 hours ago
This is not really related to memoir at all
– daleif
11 hours ago
This is not really related to memoir at all
– daleif
11 hours ago
add a comment |
1 Answer
1
active
oldest
votes
vertex
is undefined. I think you are looking for coordinate
.
documentclass[a4paper,twoside,oldfontcommands,12pt]memoir
%%% INCLUDE THE PACKAGES
usepackage[utf8x]inputenc
usepackagea4wide
usepackagegraphicx
usepackageamssymb,amsmath,amsthm
usepackageamssymb, hyperref
usepackageepsfig,graphicx
usepackagetikz
usepackagetikz-cd
tikzsetnode distance=2cm, auto
usepackagehyperref
usetikzlibrarygraphs
usetikzlibrarybackgrounds
usepackagemulticol
usetikzlibraryarrows,decorations.markings
usepackagecalc,graphicx,soul
begindocument
begintikzpicture[scale=4, every loop/.style=]
coordinate[fill] (1) at (.2, 0) [label=below:1] ;
coordinate [fill](2) at (0,.2) [label=left:2] ;
coordinate[fill] (3) at (.2,.4) [label=above:3] ;
coordinate[fill] (4) at (.4,.4) [label=above:4] ;
coordinate[fill] (5) at (.4, 0) [label=below:5] ;
coordinate [fill](6) at (.6,.2) [label=right:6] ;
coordinate[fill] (7) at (1.2, 0) [label=below:1] ;
coordinate [fill](8) at (1,.2) [label=left:2] ;
coordinate[fill] (9) at (1.2,.4) [label=above:3] ;
coordinate[fill] (10) at (1.4,.4) [label=above:4] ;
coordinate[fill] (11) at (1.6, .2) [label=right:6] ;
coordinate [fill](12) at (1.4,0) [label=below:5] ;
coordinate[fill] (13) at (2.2, 0) [label=below:1] ;
coordinate [fill](14) at (2,.2) [label=left:2] ;
coordinate[fill] (15) at (2.2,.4) [label=above:3];
coordinate[fill] (16) at (2.4,.4) [label=above:4] ;
coordinate[fill] (17) at (2.6,.2) [label=right: 6] ;
coordinate [fill](18) at (2.4,0) [label=below:5] ;
path
(1) edge (2)
(1) edge (3)
(2) edge (3)
(4) edge (5)
(4) edge (6)
(5) edge (6)
(7) edge (8)
(8) edge (9)
(9) edge (10)
(7) edge (12)
(10) edge (11)
(11) edge (12)
(13) edge (14)
(14) edge (15)
(15) edge (18)
(13) edge (16)
(16) edge (17)
(17) edge (18)
;
endtikzpicture
enddocument
Thank you. I think I have to add tikzstylevertex=[circle, draw, inner sep=0pt, minimum size=6pt] newcommandvertexnode[vertex]
– a.nayek
12 hours ago
2
@a.nayek Yes, it works. However, consider usingtikzset
, astikzstyle
is not commonly used anymore.
– JouleV
12 hours ago
@a.nayek Have you solved the problem?
– JouleV
11 hours ago
I agree. This was a comment mainly addressed to the OP.
– marmot
11 hours ago
@a.nayek I wouldn't usevertex
because it is already used intikz-feynman
.
– marmot
11 hours ago
add a comment |
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
);
);
a.nayek is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f481939%2fdrawing-graphs-in-latex-using-documentclass-memoir%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
vertex
is undefined. I think you are looking for coordinate
.
documentclass[a4paper,twoside,oldfontcommands,12pt]memoir
%%% INCLUDE THE PACKAGES
usepackage[utf8x]inputenc
usepackagea4wide
usepackagegraphicx
usepackageamssymb,amsmath,amsthm
usepackageamssymb, hyperref
usepackageepsfig,graphicx
usepackagetikz
usepackagetikz-cd
tikzsetnode distance=2cm, auto
usepackagehyperref
usetikzlibrarygraphs
usetikzlibrarybackgrounds
usepackagemulticol
usetikzlibraryarrows,decorations.markings
usepackagecalc,graphicx,soul
begindocument
begintikzpicture[scale=4, every loop/.style=]
coordinate[fill] (1) at (.2, 0) [label=below:1] ;
coordinate [fill](2) at (0,.2) [label=left:2] ;
coordinate[fill] (3) at (.2,.4) [label=above:3] ;
coordinate[fill] (4) at (.4,.4) [label=above:4] ;
coordinate[fill] (5) at (.4, 0) [label=below:5] ;
coordinate [fill](6) at (.6,.2) [label=right:6] ;
coordinate[fill] (7) at (1.2, 0) [label=below:1] ;
coordinate [fill](8) at (1,.2) [label=left:2] ;
coordinate[fill] (9) at (1.2,.4) [label=above:3] ;
coordinate[fill] (10) at (1.4,.4) [label=above:4] ;
coordinate[fill] (11) at (1.6, .2) [label=right:6] ;
coordinate [fill](12) at (1.4,0) [label=below:5] ;
coordinate[fill] (13) at (2.2, 0) [label=below:1] ;
coordinate [fill](14) at (2,.2) [label=left:2] ;
coordinate[fill] (15) at (2.2,.4) [label=above:3];
coordinate[fill] (16) at (2.4,.4) [label=above:4] ;
coordinate[fill] (17) at (2.6,.2) [label=right: 6] ;
coordinate [fill](18) at (2.4,0) [label=below:5] ;
path
(1) edge (2)
(1) edge (3)
(2) edge (3)
(4) edge (5)
(4) edge (6)
(5) edge (6)
(7) edge (8)
(8) edge (9)
(9) edge (10)
(7) edge (12)
(10) edge (11)
(11) edge (12)
(13) edge (14)
(14) edge (15)
(15) edge (18)
(13) edge (16)
(16) edge (17)
(17) edge (18)
;
endtikzpicture
enddocument
Thank you. I think I have to add tikzstylevertex=[circle, draw, inner sep=0pt, minimum size=6pt] newcommandvertexnode[vertex]
– a.nayek
12 hours ago
2
@a.nayek Yes, it works. However, consider usingtikzset
, astikzstyle
is not commonly used anymore.
– JouleV
12 hours ago
@a.nayek Have you solved the problem?
– JouleV
11 hours ago
I agree. This was a comment mainly addressed to the OP.
– marmot
11 hours ago
@a.nayek I wouldn't usevertex
because it is already used intikz-feynman
.
– marmot
11 hours ago
add a comment |
vertex
is undefined. I think you are looking for coordinate
.
documentclass[a4paper,twoside,oldfontcommands,12pt]memoir
%%% INCLUDE THE PACKAGES
usepackage[utf8x]inputenc
usepackagea4wide
usepackagegraphicx
usepackageamssymb,amsmath,amsthm
usepackageamssymb, hyperref
usepackageepsfig,graphicx
usepackagetikz
usepackagetikz-cd
tikzsetnode distance=2cm, auto
usepackagehyperref
usetikzlibrarygraphs
usetikzlibrarybackgrounds
usepackagemulticol
usetikzlibraryarrows,decorations.markings
usepackagecalc,graphicx,soul
begindocument
begintikzpicture[scale=4, every loop/.style=]
coordinate[fill] (1) at (.2, 0) [label=below:1] ;
coordinate [fill](2) at (0,.2) [label=left:2] ;
coordinate[fill] (3) at (.2,.4) [label=above:3] ;
coordinate[fill] (4) at (.4,.4) [label=above:4] ;
coordinate[fill] (5) at (.4, 0) [label=below:5] ;
coordinate [fill](6) at (.6,.2) [label=right:6] ;
coordinate[fill] (7) at (1.2, 0) [label=below:1] ;
coordinate [fill](8) at (1,.2) [label=left:2] ;
coordinate[fill] (9) at (1.2,.4) [label=above:3] ;
coordinate[fill] (10) at (1.4,.4) [label=above:4] ;
coordinate[fill] (11) at (1.6, .2) [label=right:6] ;
coordinate [fill](12) at (1.4,0) [label=below:5] ;
coordinate[fill] (13) at (2.2, 0) [label=below:1] ;
coordinate [fill](14) at (2,.2) [label=left:2] ;
coordinate[fill] (15) at (2.2,.4) [label=above:3];
coordinate[fill] (16) at (2.4,.4) [label=above:4] ;
coordinate[fill] (17) at (2.6,.2) [label=right: 6] ;
coordinate [fill](18) at (2.4,0) [label=below:5] ;
path
(1) edge (2)
(1) edge (3)
(2) edge (3)
(4) edge (5)
(4) edge (6)
(5) edge (6)
(7) edge (8)
(8) edge (9)
(9) edge (10)
(7) edge (12)
(10) edge (11)
(11) edge (12)
(13) edge (14)
(14) edge (15)
(15) edge (18)
(13) edge (16)
(16) edge (17)
(17) edge (18)
;
endtikzpicture
enddocument
Thank you. I think I have to add tikzstylevertex=[circle, draw, inner sep=0pt, minimum size=6pt] newcommandvertexnode[vertex]
– a.nayek
12 hours ago
2
@a.nayek Yes, it works. However, consider usingtikzset
, astikzstyle
is not commonly used anymore.
– JouleV
12 hours ago
@a.nayek Have you solved the problem?
– JouleV
11 hours ago
I agree. This was a comment mainly addressed to the OP.
– marmot
11 hours ago
@a.nayek I wouldn't usevertex
because it is already used intikz-feynman
.
– marmot
11 hours ago
add a comment |
vertex
is undefined. I think you are looking for coordinate
.
documentclass[a4paper,twoside,oldfontcommands,12pt]memoir
%%% INCLUDE THE PACKAGES
usepackage[utf8x]inputenc
usepackagea4wide
usepackagegraphicx
usepackageamssymb,amsmath,amsthm
usepackageamssymb, hyperref
usepackageepsfig,graphicx
usepackagetikz
usepackagetikz-cd
tikzsetnode distance=2cm, auto
usepackagehyperref
usetikzlibrarygraphs
usetikzlibrarybackgrounds
usepackagemulticol
usetikzlibraryarrows,decorations.markings
usepackagecalc,graphicx,soul
begindocument
begintikzpicture[scale=4, every loop/.style=]
coordinate[fill] (1) at (.2, 0) [label=below:1] ;
coordinate [fill](2) at (0,.2) [label=left:2] ;
coordinate[fill] (3) at (.2,.4) [label=above:3] ;
coordinate[fill] (4) at (.4,.4) [label=above:4] ;
coordinate[fill] (5) at (.4, 0) [label=below:5] ;
coordinate [fill](6) at (.6,.2) [label=right:6] ;
coordinate[fill] (7) at (1.2, 0) [label=below:1] ;
coordinate [fill](8) at (1,.2) [label=left:2] ;
coordinate[fill] (9) at (1.2,.4) [label=above:3] ;
coordinate[fill] (10) at (1.4,.4) [label=above:4] ;
coordinate[fill] (11) at (1.6, .2) [label=right:6] ;
coordinate [fill](12) at (1.4,0) [label=below:5] ;
coordinate[fill] (13) at (2.2, 0) [label=below:1] ;
coordinate [fill](14) at (2,.2) [label=left:2] ;
coordinate[fill] (15) at (2.2,.4) [label=above:3];
coordinate[fill] (16) at (2.4,.4) [label=above:4] ;
coordinate[fill] (17) at (2.6,.2) [label=right: 6] ;
coordinate [fill](18) at (2.4,0) [label=below:5] ;
path
(1) edge (2)
(1) edge (3)
(2) edge (3)
(4) edge (5)
(4) edge (6)
(5) edge (6)
(7) edge (8)
(8) edge (9)
(9) edge (10)
(7) edge (12)
(10) edge (11)
(11) edge (12)
(13) edge (14)
(14) edge (15)
(15) edge (18)
(13) edge (16)
(16) edge (17)
(17) edge (18)
;
endtikzpicture
enddocument
vertex
is undefined. I think you are looking for coordinate
.
documentclass[a4paper,twoside,oldfontcommands,12pt]memoir
%%% INCLUDE THE PACKAGES
usepackage[utf8x]inputenc
usepackagea4wide
usepackagegraphicx
usepackageamssymb,amsmath,amsthm
usepackageamssymb, hyperref
usepackageepsfig,graphicx
usepackagetikz
usepackagetikz-cd
tikzsetnode distance=2cm, auto
usepackagehyperref
usetikzlibrarygraphs
usetikzlibrarybackgrounds
usepackagemulticol
usetikzlibraryarrows,decorations.markings
usepackagecalc,graphicx,soul
begindocument
begintikzpicture[scale=4, every loop/.style=]
coordinate[fill] (1) at (.2, 0) [label=below:1] ;
coordinate [fill](2) at (0,.2) [label=left:2] ;
coordinate[fill] (3) at (.2,.4) [label=above:3] ;
coordinate[fill] (4) at (.4,.4) [label=above:4] ;
coordinate[fill] (5) at (.4, 0) [label=below:5] ;
coordinate [fill](6) at (.6,.2) [label=right:6] ;
coordinate[fill] (7) at (1.2, 0) [label=below:1] ;
coordinate [fill](8) at (1,.2) [label=left:2] ;
coordinate[fill] (9) at (1.2,.4) [label=above:3] ;
coordinate[fill] (10) at (1.4,.4) [label=above:4] ;
coordinate[fill] (11) at (1.6, .2) [label=right:6] ;
coordinate [fill](12) at (1.4,0) [label=below:5] ;
coordinate[fill] (13) at (2.2, 0) [label=below:1] ;
coordinate [fill](14) at (2,.2) [label=left:2] ;
coordinate[fill] (15) at (2.2,.4) [label=above:3];
coordinate[fill] (16) at (2.4,.4) [label=above:4] ;
coordinate[fill] (17) at (2.6,.2) [label=right: 6] ;
coordinate [fill](18) at (2.4,0) [label=below:5] ;
path
(1) edge (2)
(1) edge (3)
(2) edge (3)
(4) edge (5)
(4) edge (6)
(5) edge (6)
(7) edge (8)
(8) edge (9)
(9) edge (10)
(7) edge (12)
(10) edge (11)
(11) edge (12)
(13) edge (14)
(14) edge (15)
(15) edge (18)
(13) edge (16)
(16) edge (17)
(17) edge (18)
;
endtikzpicture
enddocument
answered 12 hours ago
JouleVJouleV
8,65222155
8,65222155
Thank you. I think I have to add tikzstylevertex=[circle, draw, inner sep=0pt, minimum size=6pt] newcommandvertexnode[vertex]
– a.nayek
12 hours ago
2
@a.nayek Yes, it works. However, consider usingtikzset
, astikzstyle
is not commonly used anymore.
– JouleV
12 hours ago
@a.nayek Have you solved the problem?
– JouleV
11 hours ago
I agree. This was a comment mainly addressed to the OP.
– marmot
11 hours ago
@a.nayek I wouldn't usevertex
because it is already used intikz-feynman
.
– marmot
11 hours ago
add a comment |
Thank you. I think I have to add tikzstylevertex=[circle, draw, inner sep=0pt, minimum size=6pt] newcommandvertexnode[vertex]
– a.nayek
12 hours ago
2
@a.nayek Yes, it works. However, consider usingtikzset
, astikzstyle
is not commonly used anymore.
– JouleV
12 hours ago
@a.nayek Have you solved the problem?
– JouleV
11 hours ago
I agree. This was a comment mainly addressed to the OP.
– marmot
11 hours ago
@a.nayek I wouldn't usevertex
because it is already used intikz-feynman
.
– marmot
11 hours ago
Thank you. I think I have to add tikzstylevertex=[circle, draw, inner sep=0pt, minimum size=6pt] newcommandvertexnode[vertex]
– a.nayek
12 hours ago
Thank you. I think I have to add tikzstylevertex=[circle, draw, inner sep=0pt, minimum size=6pt] newcommandvertexnode[vertex]
– a.nayek
12 hours ago
2
2
@a.nayek Yes, it works. However, consider using
tikzset
, as tikzstyle
is not commonly used anymore.– JouleV
12 hours ago
@a.nayek Yes, it works. However, consider using
tikzset
, as tikzstyle
is not commonly used anymore.– JouleV
12 hours ago
@a.nayek Have you solved the problem?
– JouleV
11 hours ago
@a.nayek Have you solved the problem?
– JouleV
11 hours ago
I agree. This was a comment mainly addressed to the OP.
– marmot
11 hours ago
I agree. This was a comment mainly addressed to the OP.
– marmot
11 hours ago
@a.nayek I wouldn't use
vertex
because it is already used in tikz-feynman
.– marmot
11 hours ago
@a.nayek I wouldn't use
vertex
because it is already used in tikz-feynman
.– marmot
11 hours ago
add a comment |
a.nayek is a new contributor. Be nice, and check out our Code of Conduct.
a.nayek is a new contributor. Be nice, and check out our Code of Conduct.
a.nayek is a new contributor. Be nice, and check out our Code of Conduct.
a.nayek is a new contributor. Be nice, and check out our Code of Conduct.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f481939%2fdrawing-graphs-in-latex-using-documentclass-memoir%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
This is not really related to memoir at all
– daleif
11 hours ago