tikzpicture trivial example does not work












2















I have copied example ASIS here from the page 819
but it gives error:



SOURCE:



====================================



documentclass{article}
usepackage{amsmath,amssymb,tikz-cd}
usetikzlibrary{graphs}

begin{document}

begin{tikzcd}
Darrow[r,tail,harpoon ,dashed] & B
end{tikzcd}

begin{tikzpicture}
draw (1,0) -- (0,1) -- (-1,0) -- (0,-1) -- cycle;
end{tikzpicture}

tikz graph { a -> {b, c} -> d };

begin{tikzpicture}
node {root}
[clockwise from=30,sibling angle=30]
child {node{$30$}}
child {node{$0$}}
child {node{$-30$}}
child {node{$-60$}};
end{tikzpicture}

end{document}


====================================



Command Line: bibtex.exe "ideje5"
Startup Folder:



C:Usershynek0DesktopTH0dipl

> This is BibTeX, Version 0.99d (MiKTeX 2.9 64-bit) The top-level
> auxiliary file: ideje5.aux I found no citation commands---while
> reading file ideje5.aux I found no bibdata command---while reading
> file ideje5.aux I found no bibstyle command---while reading file
> ideje5.aux (There were 3 error messages)


Command Line: pdflatex.exe --interaction=errorstopmode --synctex=-1 "C:Usershynek0DesktopTH0diplideje5.tex"
Startup Folder: C:Usershynek0DesktopTH0dipl




This is pdfTeX, Version 3.14159265-2.6-1.40.15 (MiKTeX 2.9 64-bit)
entering extended mode
(C:/Users/hynek0/Desktop/TH0dipl/ideje5.tex
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 68 languages loaded.
(D:ProgramFilesMikTexExetexlatexbasearticle.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(D:ProgramFilesMikTexExetexlatexbasesize10.clo))
(D:ProgramFilesMikTexExetexlatexamsmathamsmath.sty
For additional information on amsmath, use the `?' option.
(D:ProgramFilesMikTexExetexlatexamsmathamstext.sty
(D:ProgramFilesMikTexExetexlatexamsmathamsgen.sty))
(D:ProgramFilesMikTexExetexlatexamsmathamsbsy.sty)
(D:ProgramFilesMikTexExetexlatexamsmathamsopn.sty))
(D:ProgramFilesMikTexExetexlatexamsfontsamssymb.sty
(D:ProgramFilesMikTexExetexlatexamsfontsamsfonts.sty))
(D:ProgramFilesMikTexExetexlatextikz-cdtikz-cd.sty
(D:ProgramFilesMikTexExetexlatexpgffrontendlayertikz.sty
(D:ProgramFilesMikTexExetexlatexpgfbasiclayerpgf.sty
(D:ProgramFilesMikTexExetexlatexpgfutilitiespgfrcs.sty
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfutil-common.tex
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfutil-common-lists.tex))
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfutil-latex.def
(D:ProgramFilesMikTexExetexlatexmseveryshi.sty))
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfrcs.code.tex))
(D:ProgramFilesMikTexExetexlatexpgfbasiclayerpgfcore.sty
(D:ProgramFilesMikTexExetexlatexgraphicsgraphicx.sty
(D:ProgramFilesMikTexExetexlatexgraphicskeyval.sty)
(D:ProgramFilesMikTexExetexlatexgraphicsgraphics.sty
(D:ProgramFilesMikTexExetexlatexgraphicstrig.sty)
(D:ProgramFilesMikTexExetexlatex0miktexgraphics.cfg)
(D:ProgramFilesMikTexExetexlatexpdftex-defpdftex.def
(D:ProgramFilesMikTexExetexgenericoberdiekinfwarerr.sty)
(D:ProgramFilesMikTexExetexgenericoberdiekltxcmds.sty))))
(D:ProgramFilesMikTexExetexlatexpgfsystemlayerpgfsys.sty
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgfsys.code.tex
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfkeys.code.tex
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfkeysfiltered.code.tex))
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgf.cfg)
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgfsys-pdftex.def
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgfsys-common-pdf.def)))
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgfsyssoftpath.code.tex
)
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgfsysprotocol.code.tex)
) (D:ProgramFilesMikTexExetexlatexxcolorxcolor.sty
(D:ProgramFilesMikTexExetexlatex0miktexcolor.cfg))
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcore.code.tex
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmath.code.tex
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathcalc.code.tex
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathutil.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathparser.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.code.tex
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.basic.code.tex
)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.trigonometric.
code.tex)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.random.code.te
x)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.comparison.cod
e.tex)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.base.code.tex)

(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.round.code.tex
)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.misc.code.tex)

(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.integerarithme
tics.code.tex)))
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfloat.code.tex))
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorepoints.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorepathconstruct.code
.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorepathusage.code.tex
) (D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorescopes.code.tex)

(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoregraphicstate.code.
tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoretransformations.co
de.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorequick.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoreobjects.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorepathprocessing.cod
e.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorearrows.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoreshade.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoreimage.code.tex
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoreexternal.code.tex)
) (D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorelayers.code.tex)

(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoretransparency.code.
tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorepatterns.code.tex)
)) (D:ProgramFilesMikTexExetexgenericpgfmodulespgfmoduleshapes.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfmodulespgfmoduleplot.code.tex)
(D:ProgramFilesMikTexExetexlatexpgfcompatibilitypgfcomp-version-0-65.sty
)
(D:ProgramFilesMikTexExetexlatexpgfcompatibilitypgfcomp-version-1-18.sty
)) (D:ProgramFilesMikTexExetexlatexpgfutilitiespgffor.sty
(D:ProgramFilesMikTexExetexlatexpgfutilitiespgfkeys.sty
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfkeys.code.tex))
(D:ProgramFilesMikTexExetexlatexpgfmathpgfmath.sty
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmath.code.tex))
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgffor.code.tex
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmath.code.tex)))
(D:ProgramFilesMikTexExetexgenericpgffrontendlayertikztikz.code.tex
(D:ProgramFilesMikTexExetexgenericpgflibrariespgflibraryplothandlers.cod
e.tex)
(D:ProgramFilesMikTexExetexgenericpgfmodulespgfmodulematrix.code.tex)
(D:ProgramFilesMikTexExetexgenericpgffrontendlayertikzlibrariestikzlib
rarytopaths.code.tex)))
(D:ProgramFilesMikTexExetexgenerictikz-cdtikzlibrarycd.code.tex
(D:ProgramFilesMikTexExetexgenericpgffrontendlayertikzlibrariestikzlib
rarymatrix.code.tex)
(D:ProgramFilesMikTexExetexgenericpgffrontendlayertikzlibrariestikzlib
raryquotes.code.tex)
(D:ProgramFilesMikTexExetexgenericpgflibrariespgflibraryarrows.meta.code
.tex)))
(D:ProgramFilesMikTexExetexgenericpgffrontendlayertikzlibrariesgraphs
tikzlibrarygraphs.code.tex) (ideje5.aux) ABD: EveryShipout initializing macros
(D:ProgramFilesMikTexExetexcontextbasesupp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (D:ProgramFilesMikTexExetexlatexamsfontsumsa.fd)
(D:ProgramFilesMikTexExetexlatexamsfontsumsb.fd)

! Package pgfkeys Error: I do not know the key '/tikz/clockwise from', to which
you passed '30', and I am going to ignore it. Perhaps you misspelled it.

See the pgfkeys package documentation for explanation.
Type H <return> for immediate help.
...

l.19 [clockwise from=30,sibling angle=30]

?

! Emergency stop.
...

l.19 [clockwise from=30,sibling angle=30]

! ==> Fatal error occurred, no output PDF file produced!
Transcript written on ideje5.log.


Process has been killed ...










share|improve this question




















  • 4





    E.g. usetikzlibrary{graphs,mindmap} works. The greatest challenge when using examples from the manual is to know which libraries are needed to compile a given example.

    – marmot
    4 hours ago













  • Yes, it does...how could I have it found myself without asking?

    – user2925716
    4 hours ago






  • 2





    In this case: scroll up one page and see that page 819 is in a section that describes the features of the trees library, meaning all the examples there assume that you have usetikzlibrary{trees}.

    – Torbjørn T.
    4 hours ago











  • @marmot Your answer has disappeared, why?

    – user2925716
    4 hours ago











  • Because @TorbjørnT. pointed out that my proposal amounts to loading too much. I agree with and appreciate the comment, and deleted my answer. In rare cases loading too much can lead to problems. This means my answer was not optimal. (Note also that sometimes just scrolling up may not be sufficient. E.g. in the lowest example op p. 560 you need to load quotes in addition to angles.)

    – marmot
    4 hours ago


















2















I have copied example ASIS here from the page 819
but it gives error:



SOURCE:



====================================



documentclass{article}
usepackage{amsmath,amssymb,tikz-cd}
usetikzlibrary{graphs}

begin{document}

begin{tikzcd}
Darrow[r,tail,harpoon ,dashed] & B
end{tikzcd}

begin{tikzpicture}
draw (1,0) -- (0,1) -- (-1,0) -- (0,-1) -- cycle;
end{tikzpicture}

tikz graph { a -> {b, c} -> d };

begin{tikzpicture}
node {root}
[clockwise from=30,sibling angle=30]
child {node{$30$}}
child {node{$0$}}
child {node{$-30$}}
child {node{$-60$}};
end{tikzpicture}

end{document}


====================================



Command Line: bibtex.exe "ideje5"
Startup Folder:



C:Usershynek0DesktopTH0dipl

> This is BibTeX, Version 0.99d (MiKTeX 2.9 64-bit) The top-level
> auxiliary file: ideje5.aux I found no citation commands---while
> reading file ideje5.aux I found no bibdata command---while reading
> file ideje5.aux I found no bibstyle command---while reading file
> ideje5.aux (There were 3 error messages)


Command Line: pdflatex.exe --interaction=errorstopmode --synctex=-1 "C:Usershynek0DesktopTH0diplideje5.tex"
Startup Folder: C:Usershynek0DesktopTH0dipl




This is pdfTeX, Version 3.14159265-2.6-1.40.15 (MiKTeX 2.9 64-bit)
entering extended mode
(C:/Users/hynek0/Desktop/TH0dipl/ideje5.tex
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 68 languages loaded.
(D:ProgramFilesMikTexExetexlatexbasearticle.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(D:ProgramFilesMikTexExetexlatexbasesize10.clo))
(D:ProgramFilesMikTexExetexlatexamsmathamsmath.sty
For additional information on amsmath, use the `?' option.
(D:ProgramFilesMikTexExetexlatexamsmathamstext.sty
(D:ProgramFilesMikTexExetexlatexamsmathamsgen.sty))
(D:ProgramFilesMikTexExetexlatexamsmathamsbsy.sty)
(D:ProgramFilesMikTexExetexlatexamsmathamsopn.sty))
(D:ProgramFilesMikTexExetexlatexamsfontsamssymb.sty
(D:ProgramFilesMikTexExetexlatexamsfontsamsfonts.sty))
(D:ProgramFilesMikTexExetexlatextikz-cdtikz-cd.sty
(D:ProgramFilesMikTexExetexlatexpgffrontendlayertikz.sty
(D:ProgramFilesMikTexExetexlatexpgfbasiclayerpgf.sty
(D:ProgramFilesMikTexExetexlatexpgfutilitiespgfrcs.sty
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfutil-common.tex
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfutil-common-lists.tex))
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfutil-latex.def
(D:ProgramFilesMikTexExetexlatexmseveryshi.sty))
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfrcs.code.tex))
(D:ProgramFilesMikTexExetexlatexpgfbasiclayerpgfcore.sty
(D:ProgramFilesMikTexExetexlatexgraphicsgraphicx.sty
(D:ProgramFilesMikTexExetexlatexgraphicskeyval.sty)
(D:ProgramFilesMikTexExetexlatexgraphicsgraphics.sty
(D:ProgramFilesMikTexExetexlatexgraphicstrig.sty)
(D:ProgramFilesMikTexExetexlatex0miktexgraphics.cfg)
(D:ProgramFilesMikTexExetexlatexpdftex-defpdftex.def
(D:ProgramFilesMikTexExetexgenericoberdiekinfwarerr.sty)
(D:ProgramFilesMikTexExetexgenericoberdiekltxcmds.sty))))
(D:ProgramFilesMikTexExetexlatexpgfsystemlayerpgfsys.sty
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgfsys.code.tex
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfkeys.code.tex
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfkeysfiltered.code.tex))
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgf.cfg)
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgfsys-pdftex.def
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgfsys-common-pdf.def)))
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgfsyssoftpath.code.tex
)
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgfsysprotocol.code.tex)
) (D:ProgramFilesMikTexExetexlatexxcolorxcolor.sty
(D:ProgramFilesMikTexExetexlatex0miktexcolor.cfg))
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcore.code.tex
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmath.code.tex
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathcalc.code.tex
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathutil.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathparser.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.code.tex
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.basic.code.tex
)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.trigonometric.
code.tex)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.random.code.te
x)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.comparison.cod
e.tex)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.base.code.tex)

(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.round.code.tex
)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.misc.code.tex)

(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.integerarithme
tics.code.tex)))
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfloat.code.tex))
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorepoints.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorepathconstruct.code
.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorepathusage.code.tex
) (D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorescopes.code.tex)

(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoregraphicstate.code.
tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoretransformations.co
de.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorequick.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoreobjects.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorepathprocessing.cod
e.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorearrows.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoreshade.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoreimage.code.tex
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoreexternal.code.tex)
) (D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorelayers.code.tex)

(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoretransparency.code.
tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorepatterns.code.tex)
)) (D:ProgramFilesMikTexExetexgenericpgfmodulespgfmoduleshapes.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfmodulespgfmoduleplot.code.tex)
(D:ProgramFilesMikTexExetexlatexpgfcompatibilitypgfcomp-version-0-65.sty
)
(D:ProgramFilesMikTexExetexlatexpgfcompatibilitypgfcomp-version-1-18.sty
)) (D:ProgramFilesMikTexExetexlatexpgfutilitiespgffor.sty
(D:ProgramFilesMikTexExetexlatexpgfutilitiespgfkeys.sty
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfkeys.code.tex))
(D:ProgramFilesMikTexExetexlatexpgfmathpgfmath.sty
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmath.code.tex))
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgffor.code.tex
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmath.code.tex)))
(D:ProgramFilesMikTexExetexgenericpgffrontendlayertikztikz.code.tex
(D:ProgramFilesMikTexExetexgenericpgflibrariespgflibraryplothandlers.cod
e.tex)
(D:ProgramFilesMikTexExetexgenericpgfmodulespgfmodulematrix.code.tex)
(D:ProgramFilesMikTexExetexgenericpgffrontendlayertikzlibrariestikzlib
rarytopaths.code.tex)))
(D:ProgramFilesMikTexExetexgenerictikz-cdtikzlibrarycd.code.tex
(D:ProgramFilesMikTexExetexgenericpgffrontendlayertikzlibrariestikzlib
rarymatrix.code.tex)
(D:ProgramFilesMikTexExetexgenericpgffrontendlayertikzlibrariestikzlib
raryquotes.code.tex)
(D:ProgramFilesMikTexExetexgenericpgflibrariespgflibraryarrows.meta.code
.tex)))
(D:ProgramFilesMikTexExetexgenericpgffrontendlayertikzlibrariesgraphs
tikzlibrarygraphs.code.tex) (ideje5.aux) ABD: EveryShipout initializing macros
(D:ProgramFilesMikTexExetexcontextbasesupp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (D:ProgramFilesMikTexExetexlatexamsfontsumsa.fd)
(D:ProgramFilesMikTexExetexlatexamsfontsumsb.fd)

! Package pgfkeys Error: I do not know the key '/tikz/clockwise from', to which
you passed '30', and I am going to ignore it. Perhaps you misspelled it.

See the pgfkeys package documentation for explanation.
Type H <return> for immediate help.
...

l.19 [clockwise from=30,sibling angle=30]

?

! Emergency stop.
...

l.19 [clockwise from=30,sibling angle=30]

! ==> Fatal error occurred, no output PDF file produced!
Transcript written on ideje5.log.


Process has been killed ...










share|improve this question




















  • 4





    E.g. usetikzlibrary{graphs,mindmap} works. The greatest challenge when using examples from the manual is to know which libraries are needed to compile a given example.

    – marmot
    4 hours ago













  • Yes, it does...how could I have it found myself without asking?

    – user2925716
    4 hours ago






  • 2





    In this case: scroll up one page and see that page 819 is in a section that describes the features of the trees library, meaning all the examples there assume that you have usetikzlibrary{trees}.

    – Torbjørn T.
    4 hours ago











  • @marmot Your answer has disappeared, why?

    – user2925716
    4 hours ago











  • Because @TorbjørnT. pointed out that my proposal amounts to loading too much. I agree with and appreciate the comment, and deleted my answer. In rare cases loading too much can lead to problems. This means my answer was not optimal. (Note also that sometimes just scrolling up may not be sufficient. E.g. in the lowest example op p. 560 you need to load quotes in addition to angles.)

    – marmot
    4 hours ago
















2












2








2








I have copied example ASIS here from the page 819
but it gives error:



SOURCE:



====================================



documentclass{article}
usepackage{amsmath,amssymb,tikz-cd}
usetikzlibrary{graphs}

begin{document}

begin{tikzcd}
Darrow[r,tail,harpoon ,dashed] & B
end{tikzcd}

begin{tikzpicture}
draw (1,0) -- (0,1) -- (-1,0) -- (0,-1) -- cycle;
end{tikzpicture}

tikz graph { a -> {b, c} -> d };

begin{tikzpicture}
node {root}
[clockwise from=30,sibling angle=30]
child {node{$30$}}
child {node{$0$}}
child {node{$-30$}}
child {node{$-60$}};
end{tikzpicture}

end{document}


====================================



Command Line: bibtex.exe "ideje5"
Startup Folder:



C:Usershynek0DesktopTH0dipl

> This is BibTeX, Version 0.99d (MiKTeX 2.9 64-bit) The top-level
> auxiliary file: ideje5.aux I found no citation commands---while
> reading file ideje5.aux I found no bibdata command---while reading
> file ideje5.aux I found no bibstyle command---while reading file
> ideje5.aux (There were 3 error messages)


Command Line: pdflatex.exe --interaction=errorstopmode --synctex=-1 "C:Usershynek0DesktopTH0diplideje5.tex"
Startup Folder: C:Usershynek0DesktopTH0dipl




This is pdfTeX, Version 3.14159265-2.6-1.40.15 (MiKTeX 2.9 64-bit)
entering extended mode
(C:/Users/hynek0/Desktop/TH0dipl/ideje5.tex
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 68 languages loaded.
(D:ProgramFilesMikTexExetexlatexbasearticle.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(D:ProgramFilesMikTexExetexlatexbasesize10.clo))
(D:ProgramFilesMikTexExetexlatexamsmathamsmath.sty
For additional information on amsmath, use the `?' option.
(D:ProgramFilesMikTexExetexlatexamsmathamstext.sty
(D:ProgramFilesMikTexExetexlatexamsmathamsgen.sty))
(D:ProgramFilesMikTexExetexlatexamsmathamsbsy.sty)
(D:ProgramFilesMikTexExetexlatexamsmathamsopn.sty))
(D:ProgramFilesMikTexExetexlatexamsfontsamssymb.sty
(D:ProgramFilesMikTexExetexlatexamsfontsamsfonts.sty))
(D:ProgramFilesMikTexExetexlatextikz-cdtikz-cd.sty
(D:ProgramFilesMikTexExetexlatexpgffrontendlayertikz.sty
(D:ProgramFilesMikTexExetexlatexpgfbasiclayerpgf.sty
(D:ProgramFilesMikTexExetexlatexpgfutilitiespgfrcs.sty
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfutil-common.tex
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfutil-common-lists.tex))
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfutil-latex.def
(D:ProgramFilesMikTexExetexlatexmseveryshi.sty))
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfrcs.code.tex))
(D:ProgramFilesMikTexExetexlatexpgfbasiclayerpgfcore.sty
(D:ProgramFilesMikTexExetexlatexgraphicsgraphicx.sty
(D:ProgramFilesMikTexExetexlatexgraphicskeyval.sty)
(D:ProgramFilesMikTexExetexlatexgraphicsgraphics.sty
(D:ProgramFilesMikTexExetexlatexgraphicstrig.sty)
(D:ProgramFilesMikTexExetexlatex0miktexgraphics.cfg)
(D:ProgramFilesMikTexExetexlatexpdftex-defpdftex.def
(D:ProgramFilesMikTexExetexgenericoberdiekinfwarerr.sty)
(D:ProgramFilesMikTexExetexgenericoberdiekltxcmds.sty))))
(D:ProgramFilesMikTexExetexlatexpgfsystemlayerpgfsys.sty
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgfsys.code.tex
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfkeys.code.tex
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfkeysfiltered.code.tex))
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgf.cfg)
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgfsys-pdftex.def
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgfsys-common-pdf.def)))
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgfsyssoftpath.code.tex
)
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgfsysprotocol.code.tex)
) (D:ProgramFilesMikTexExetexlatexxcolorxcolor.sty
(D:ProgramFilesMikTexExetexlatex0miktexcolor.cfg))
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcore.code.tex
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmath.code.tex
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathcalc.code.tex
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathutil.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathparser.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.code.tex
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.basic.code.tex
)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.trigonometric.
code.tex)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.random.code.te
x)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.comparison.cod
e.tex)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.base.code.tex)

(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.round.code.tex
)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.misc.code.tex)

(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.integerarithme
tics.code.tex)))
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfloat.code.tex))
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorepoints.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorepathconstruct.code
.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorepathusage.code.tex
) (D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorescopes.code.tex)

(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoregraphicstate.code.
tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoretransformations.co
de.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorequick.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoreobjects.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorepathprocessing.cod
e.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorearrows.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoreshade.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoreimage.code.tex
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoreexternal.code.tex)
) (D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorelayers.code.tex)

(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoretransparency.code.
tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorepatterns.code.tex)
)) (D:ProgramFilesMikTexExetexgenericpgfmodulespgfmoduleshapes.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfmodulespgfmoduleplot.code.tex)
(D:ProgramFilesMikTexExetexlatexpgfcompatibilitypgfcomp-version-0-65.sty
)
(D:ProgramFilesMikTexExetexlatexpgfcompatibilitypgfcomp-version-1-18.sty
)) (D:ProgramFilesMikTexExetexlatexpgfutilitiespgffor.sty
(D:ProgramFilesMikTexExetexlatexpgfutilitiespgfkeys.sty
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfkeys.code.tex))
(D:ProgramFilesMikTexExetexlatexpgfmathpgfmath.sty
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmath.code.tex))
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgffor.code.tex
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmath.code.tex)))
(D:ProgramFilesMikTexExetexgenericpgffrontendlayertikztikz.code.tex
(D:ProgramFilesMikTexExetexgenericpgflibrariespgflibraryplothandlers.cod
e.tex)
(D:ProgramFilesMikTexExetexgenericpgfmodulespgfmodulematrix.code.tex)
(D:ProgramFilesMikTexExetexgenericpgffrontendlayertikzlibrariestikzlib
rarytopaths.code.tex)))
(D:ProgramFilesMikTexExetexgenerictikz-cdtikzlibrarycd.code.tex
(D:ProgramFilesMikTexExetexgenericpgffrontendlayertikzlibrariestikzlib
rarymatrix.code.tex)
(D:ProgramFilesMikTexExetexgenericpgffrontendlayertikzlibrariestikzlib
raryquotes.code.tex)
(D:ProgramFilesMikTexExetexgenericpgflibrariespgflibraryarrows.meta.code
.tex)))
(D:ProgramFilesMikTexExetexgenericpgffrontendlayertikzlibrariesgraphs
tikzlibrarygraphs.code.tex) (ideje5.aux) ABD: EveryShipout initializing macros
(D:ProgramFilesMikTexExetexcontextbasesupp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (D:ProgramFilesMikTexExetexlatexamsfontsumsa.fd)
(D:ProgramFilesMikTexExetexlatexamsfontsumsb.fd)

! Package pgfkeys Error: I do not know the key '/tikz/clockwise from', to which
you passed '30', and I am going to ignore it. Perhaps you misspelled it.

See the pgfkeys package documentation for explanation.
Type H <return> for immediate help.
...

l.19 [clockwise from=30,sibling angle=30]

?

! Emergency stop.
...

l.19 [clockwise from=30,sibling angle=30]

! ==> Fatal error occurred, no output PDF file produced!
Transcript written on ideje5.log.


Process has been killed ...










share|improve this question
















I have copied example ASIS here from the page 819
but it gives error:



SOURCE:



====================================



documentclass{article}
usepackage{amsmath,amssymb,tikz-cd}
usetikzlibrary{graphs}

begin{document}

begin{tikzcd}
Darrow[r,tail,harpoon ,dashed] & B
end{tikzcd}

begin{tikzpicture}
draw (1,0) -- (0,1) -- (-1,0) -- (0,-1) -- cycle;
end{tikzpicture}

tikz graph { a -> {b, c} -> d };

begin{tikzpicture}
node {root}
[clockwise from=30,sibling angle=30]
child {node{$30$}}
child {node{$0$}}
child {node{$-30$}}
child {node{$-60$}};
end{tikzpicture}

end{document}


====================================



Command Line: bibtex.exe "ideje5"
Startup Folder:



C:Usershynek0DesktopTH0dipl

> This is BibTeX, Version 0.99d (MiKTeX 2.9 64-bit) The top-level
> auxiliary file: ideje5.aux I found no citation commands---while
> reading file ideje5.aux I found no bibdata command---while reading
> file ideje5.aux I found no bibstyle command---while reading file
> ideje5.aux (There were 3 error messages)


Command Line: pdflatex.exe --interaction=errorstopmode --synctex=-1 "C:Usershynek0DesktopTH0diplideje5.tex"
Startup Folder: C:Usershynek0DesktopTH0dipl




This is pdfTeX, Version 3.14159265-2.6-1.40.15 (MiKTeX 2.9 64-bit)
entering extended mode
(C:/Users/hynek0/Desktop/TH0dipl/ideje5.tex
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 68 languages loaded.
(D:ProgramFilesMikTexExetexlatexbasearticle.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(D:ProgramFilesMikTexExetexlatexbasesize10.clo))
(D:ProgramFilesMikTexExetexlatexamsmathamsmath.sty
For additional information on amsmath, use the `?' option.
(D:ProgramFilesMikTexExetexlatexamsmathamstext.sty
(D:ProgramFilesMikTexExetexlatexamsmathamsgen.sty))
(D:ProgramFilesMikTexExetexlatexamsmathamsbsy.sty)
(D:ProgramFilesMikTexExetexlatexamsmathamsopn.sty))
(D:ProgramFilesMikTexExetexlatexamsfontsamssymb.sty
(D:ProgramFilesMikTexExetexlatexamsfontsamsfonts.sty))
(D:ProgramFilesMikTexExetexlatextikz-cdtikz-cd.sty
(D:ProgramFilesMikTexExetexlatexpgffrontendlayertikz.sty
(D:ProgramFilesMikTexExetexlatexpgfbasiclayerpgf.sty
(D:ProgramFilesMikTexExetexlatexpgfutilitiespgfrcs.sty
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfutil-common.tex
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfutil-common-lists.tex))
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfutil-latex.def
(D:ProgramFilesMikTexExetexlatexmseveryshi.sty))
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfrcs.code.tex))
(D:ProgramFilesMikTexExetexlatexpgfbasiclayerpgfcore.sty
(D:ProgramFilesMikTexExetexlatexgraphicsgraphicx.sty
(D:ProgramFilesMikTexExetexlatexgraphicskeyval.sty)
(D:ProgramFilesMikTexExetexlatexgraphicsgraphics.sty
(D:ProgramFilesMikTexExetexlatexgraphicstrig.sty)
(D:ProgramFilesMikTexExetexlatex0miktexgraphics.cfg)
(D:ProgramFilesMikTexExetexlatexpdftex-defpdftex.def
(D:ProgramFilesMikTexExetexgenericoberdiekinfwarerr.sty)
(D:ProgramFilesMikTexExetexgenericoberdiekltxcmds.sty))))
(D:ProgramFilesMikTexExetexlatexpgfsystemlayerpgfsys.sty
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgfsys.code.tex
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfkeys.code.tex
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfkeysfiltered.code.tex))
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgf.cfg)
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgfsys-pdftex.def
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgfsys-common-pdf.def)))
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgfsyssoftpath.code.tex
)
(D:ProgramFilesMikTexExetexgenericpgfsystemlayerpgfsysprotocol.code.tex)
) (D:ProgramFilesMikTexExetexlatexxcolorxcolor.sty
(D:ProgramFilesMikTexExetexlatex0miktexcolor.cfg))
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcore.code.tex
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmath.code.tex
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathcalc.code.tex
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathutil.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathparser.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.code.tex
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.basic.code.tex
)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.trigonometric.
code.tex)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.random.code.te
x)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.comparison.cod
e.tex)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.base.code.tex)

(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.round.code.tex
)
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.misc.code.tex)

(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfunctions.integerarithme
tics.code.tex)))
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmathfloat.code.tex))
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorepoints.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorepathconstruct.code
.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorepathusage.code.tex
) (D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorescopes.code.tex)

(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoregraphicstate.code.
tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoretransformations.co
de.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorequick.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoreobjects.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorepathprocessing.cod
e.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorearrows.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoreshade.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoreimage.code.tex
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoreexternal.code.tex)
) (D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorelayers.code.tex)

(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcoretransparency.code.
tex)
(D:ProgramFilesMikTexExetexgenericpgfbasiclayerpgfcorepatterns.code.tex)
)) (D:ProgramFilesMikTexExetexgenericpgfmodulespgfmoduleshapes.code.tex)
(D:ProgramFilesMikTexExetexgenericpgfmodulespgfmoduleplot.code.tex)
(D:ProgramFilesMikTexExetexlatexpgfcompatibilitypgfcomp-version-0-65.sty
)
(D:ProgramFilesMikTexExetexlatexpgfcompatibilitypgfcomp-version-1-18.sty
)) (D:ProgramFilesMikTexExetexlatexpgfutilitiespgffor.sty
(D:ProgramFilesMikTexExetexlatexpgfutilitiespgfkeys.sty
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgfkeys.code.tex))
(D:ProgramFilesMikTexExetexlatexpgfmathpgfmath.sty
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmath.code.tex))
(D:ProgramFilesMikTexExetexgenericpgfutilitiespgffor.code.tex
(D:ProgramFilesMikTexExetexgenericpgfmathpgfmath.code.tex)))
(D:ProgramFilesMikTexExetexgenericpgffrontendlayertikztikz.code.tex
(D:ProgramFilesMikTexExetexgenericpgflibrariespgflibraryplothandlers.cod
e.tex)
(D:ProgramFilesMikTexExetexgenericpgfmodulespgfmodulematrix.code.tex)
(D:ProgramFilesMikTexExetexgenericpgffrontendlayertikzlibrariestikzlib
rarytopaths.code.tex)))
(D:ProgramFilesMikTexExetexgenerictikz-cdtikzlibrarycd.code.tex
(D:ProgramFilesMikTexExetexgenericpgffrontendlayertikzlibrariestikzlib
rarymatrix.code.tex)
(D:ProgramFilesMikTexExetexgenericpgffrontendlayertikzlibrariestikzlib
raryquotes.code.tex)
(D:ProgramFilesMikTexExetexgenericpgflibrariespgflibraryarrows.meta.code
.tex)))
(D:ProgramFilesMikTexExetexgenericpgffrontendlayertikzlibrariesgraphs
tikzlibrarygraphs.code.tex) (ideje5.aux) ABD: EveryShipout initializing macros
(D:ProgramFilesMikTexExetexcontextbasesupp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (D:ProgramFilesMikTexExetexlatexamsfontsumsa.fd)
(D:ProgramFilesMikTexExetexlatexamsfontsumsb.fd)

! Package pgfkeys Error: I do not know the key '/tikz/clockwise from', to which
you passed '30', and I am going to ignore it. Perhaps you misspelled it.

See the pgfkeys package documentation for explanation.
Type H <return> for immediate help.
...

l.19 [clockwise from=30,sibling angle=30]

?

! Emergency stop.
...

l.19 [clockwise from=30,sibling angle=30]

! ==> Fatal error occurred, no output PDF file produced!
Transcript written on ideje5.log.


Process has been killed ...







tikz-pgf






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 4 hours ago









Torbjørn T.

156k13250437




156k13250437










asked 4 hours ago









user2925716user2925716

1162




1162








  • 4





    E.g. usetikzlibrary{graphs,mindmap} works. The greatest challenge when using examples from the manual is to know which libraries are needed to compile a given example.

    – marmot
    4 hours ago













  • Yes, it does...how could I have it found myself without asking?

    – user2925716
    4 hours ago






  • 2





    In this case: scroll up one page and see that page 819 is in a section that describes the features of the trees library, meaning all the examples there assume that you have usetikzlibrary{trees}.

    – Torbjørn T.
    4 hours ago











  • @marmot Your answer has disappeared, why?

    – user2925716
    4 hours ago











  • Because @TorbjørnT. pointed out that my proposal amounts to loading too much. I agree with and appreciate the comment, and deleted my answer. In rare cases loading too much can lead to problems. This means my answer was not optimal. (Note also that sometimes just scrolling up may not be sufficient. E.g. in the lowest example op p. 560 you need to load quotes in addition to angles.)

    – marmot
    4 hours ago
















  • 4





    E.g. usetikzlibrary{graphs,mindmap} works. The greatest challenge when using examples from the manual is to know which libraries are needed to compile a given example.

    – marmot
    4 hours ago













  • Yes, it does...how could I have it found myself without asking?

    – user2925716
    4 hours ago






  • 2





    In this case: scroll up one page and see that page 819 is in a section that describes the features of the trees library, meaning all the examples there assume that you have usetikzlibrary{trees}.

    – Torbjørn T.
    4 hours ago











  • @marmot Your answer has disappeared, why?

    – user2925716
    4 hours ago











  • Because @TorbjørnT. pointed out that my proposal amounts to loading too much. I agree with and appreciate the comment, and deleted my answer. In rare cases loading too much can lead to problems. This means my answer was not optimal. (Note also that sometimes just scrolling up may not be sufficient. E.g. in the lowest example op p. 560 you need to load quotes in addition to angles.)

    – marmot
    4 hours ago










4




4





E.g. usetikzlibrary{graphs,mindmap} works. The greatest challenge when using examples from the manual is to know which libraries are needed to compile a given example.

– marmot
4 hours ago







E.g. usetikzlibrary{graphs,mindmap} works. The greatest challenge when using examples from the manual is to know which libraries are needed to compile a given example.

– marmot
4 hours ago















Yes, it does...how could I have it found myself without asking?

– user2925716
4 hours ago





Yes, it does...how could I have it found myself without asking?

– user2925716
4 hours ago




2




2





In this case: scroll up one page and see that page 819 is in a section that describes the features of the trees library, meaning all the examples there assume that you have usetikzlibrary{trees}.

– Torbjørn T.
4 hours ago





In this case: scroll up one page and see that page 819 is in a section that describes the features of the trees library, meaning all the examples there assume that you have usetikzlibrary{trees}.

– Torbjørn T.
4 hours ago













@marmot Your answer has disappeared, why?

– user2925716
4 hours ago





@marmot Your answer has disappeared, why?

– user2925716
4 hours ago













Because @TorbjørnT. pointed out that my proposal amounts to loading too much. I agree with and appreciate the comment, and deleted my answer. In rare cases loading too much can lead to problems. This means my answer was not optimal. (Note also that sometimes just scrolling up may not be sufficient. E.g. in the lowest example op p. 560 you need to load quotes in addition to angles.)

– marmot
4 hours ago







Because @TorbjørnT. pointed out that my proposal amounts to loading too much. I agree with and appreciate the comment, and deleted my answer. In rare cases loading too much can lead to problems. This means my answer was not optimal. (Note also that sometimes just scrolling up may not be sufficient. E.g. in the lowest example op p. 560 you need to load quotes in addition to angles.)

– marmot
4 hours ago












2 Answers
2






active

oldest

votes


















3














In this case, you can see that the example you have copied is from the page where the clockwise from key is described, which is the key causing the error. If you scroll up from page 819 you'll quickly find that clockwise from is in a section of the manual discussing the features of the trees library, so all examples assume usetikzlibrary{trees} (I would think).



marmot suggested in his deleted answer to search the manual for clockwise from. He first found it on page 707, in a section describing the mindmap library. Because mindmap loads the trees library, usetikzlibrary{mindmap} would also make clockwise from available.



However, here you could make use of a useful feature of the manual: most key names in examples and text are hyperlinks to the place where that key is described. So when you find clockwise from on page 707, you can click on it in the example code, and you'll find yourself on page 819, where clockwise from is described. A quick scroll up will identify the library.



(Not all such hyperlinks are correct, and I think there are a things that are not hyperlinked, but still a nice thing to keep in mind.)






share|improve this answer































    0














    I view this as a question on how to identify and solve problems of this kind. Undeleted upon request. This answer describes a way that works in many cases. As pointed out in this nice answer by Torjørn T., in this case this method actually loads effectively a bit more libraries as absolutely needed.



    1. Identifying the problem



    Your terminal reports



    ! Package pgfkeys Error: I do not know the key '/tikz/clockwise from', to which
    you passed '30', and I am going to ignore it. Perhaps you misspelled it.

    See the pgfkeys package documentation for explanation.
    Type H <return> for immediate help.
    ...

    l.19 [clockwise from=30,sibling angle=30]


    so you know that there must be some library (or package) that defines clockwise from.



    2. Identifying the missing library



    a. Search the manual



    Most pdf viewers allow you to search for strings separated by spaces by wrapping them in " signs. With preview on Mac OS the first hit is on p. 707. If I then scroll back to the start of the section, I find



     usetikzlibrary{mindmap}


    which is the ingredient that turns your code in a compilable document.



    b. Google



    When I do a Google search for



     site:tex.stackexchange.com "clockwise from"


    I get dragged to this post. There I find usetikzlibrary{mindmap,trees}. As Torbjørn points out, this is actually an overkill since trees would have been sufficient. (This, BTW, is one of the reasons why users here often get asked to abandon packages that are not needed. Otherwise it is hard for others to see what's going on. Ironically, I had the last two sentences in my original answer, and precisely fell in the same trap I was trying to avoid.)



    In either case, one arrives at the conclusion that the mindmap library is needed to make your code compile.



    documentclass{article}
    usepackage{amsmath,amssymb,tikz-cd}
    usetikzlibrary{graphs,mindmap}

    begin{document}

    begin{tikzcd}
    Darrow[r,tail,harpoon ,dashed] & B
    end{tikzcd}

    begin{tikzpicture}
    draw (1,0) -- (0,1) -- (-1,0) -- (0,-1) -- cycle;
    end{tikzpicture}

    tikz graph { a -> {b, c} -> d };

    begin{tikzpicture}
    node {root}
    [clockwise from=30,sibling angle=30]
    child {node{$30$}}
    child {node{$0$}}
    child {node{$-30$}}
    child {node{$-60$}};
    end{tikzpicture}

    end{document}


    enter image description here



    Remark



    Finally, I'd like to mention that there are cases in which the method does not always work. E.g. in the lowest example op p. 560 of the pgfmanual v 3.1 you need to load quotes in addition to angles. Again, you can find out that quotes is needed by making use of Google. Yet it would IMHO opinion not hurt if the manual was self-contained in that regard, i.e. explicitly tell you which other libraries are needed in addition to those mentioned at the beginning of the section. As TikZ is actively being developed, it is conceivable that a future version of the manual will have this feature.






    share|improve this answer





















    • 1





      You don't need mindmap. The clockwise from key is described in the section of the manual concerning the trees library, so that is the library you actually need. (mindmap loads trees)

      – Torbjørn T.
      4 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%2f471042%2ftikzpicture-trivial-example-does-not-work%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    In this case, you can see that the example you have copied is from the page where the clockwise from key is described, which is the key causing the error. If you scroll up from page 819 you'll quickly find that clockwise from is in a section of the manual discussing the features of the trees library, so all examples assume usetikzlibrary{trees} (I would think).



    marmot suggested in his deleted answer to search the manual for clockwise from. He first found it on page 707, in a section describing the mindmap library. Because mindmap loads the trees library, usetikzlibrary{mindmap} would also make clockwise from available.



    However, here you could make use of a useful feature of the manual: most key names in examples and text are hyperlinks to the place where that key is described. So when you find clockwise from on page 707, you can click on it in the example code, and you'll find yourself on page 819, where clockwise from is described. A quick scroll up will identify the library.



    (Not all such hyperlinks are correct, and I think there are a things that are not hyperlinked, but still a nice thing to keep in mind.)






    share|improve this answer




























      3














      In this case, you can see that the example you have copied is from the page where the clockwise from key is described, which is the key causing the error. If you scroll up from page 819 you'll quickly find that clockwise from is in a section of the manual discussing the features of the trees library, so all examples assume usetikzlibrary{trees} (I would think).



      marmot suggested in his deleted answer to search the manual for clockwise from. He first found it on page 707, in a section describing the mindmap library. Because mindmap loads the trees library, usetikzlibrary{mindmap} would also make clockwise from available.



      However, here you could make use of a useful feature of the manual: most key names in examples and text are hyperlinks to the place where that key is described. So when you find clockwise from on page 707, you can click on it in the example code, and you'll find yourself on page 819, where clockwise from is described. A quick scroll up will identify the library.



      (Not all such hyperlinks are correct, and I think there are a things that are not hyperlinked, but still a nice thing to keep in mind.)






      share|improve this answer


























        3












        3








        3







        In this case, you can see that the example you have copied is from the page where the clockwise from key is described, which is the key causing the error. If you scroll up from page 819 you'll quickly find that clockwise from is in a section of the manual discussing the features of the trees library, so all examples assume usetikzlibrary{trees} (I would think).



        marmot suggested in his deleted answer to search the manual for clockwise from. He first found it on page 707, in a section describing the mindmap library. Because mindmap loads the trees library, usetikzlibrary{mindmap} would also make clockwise from available.



        However, here you could make use of a useful feature of the manual: most key names in examples and text are hyperlinks to the place where that key is described. So when you find clockwise from on page 707, you can click on it in the example code, and you'll find yourself on page 819, where clockwise from is described. A quick scroll up will identify the library.



        (Not all such hyperlinks are correct, and I think there are a things that are not hyperlinked, but still a nice thing to keep in mind.)






        share|improve this answer













        In this case, you can see that the example you have copied is from the page where the clockwise from key is described, which is the key causing the error. If you scroll up from page 819 you'll quickly find that clockwise from is in a section of the manual discussing the features of the trees library, so all examples assume usetikzlibrary{trees} (I would think).



        marmot suggested in his deleted answer to search the manual for clockwise from. He first found it on page 707, in a section describing the mindmap library. Because mindmap loads the trees library, usetikzlibrary{mindmap} would also make clockwise from available.



        However, here you could make use of a useful feature of the manual: most key names in examples and text are hyperlinks to the place where that key is described. So when you find clockwise from on page 707, you can click on it in the example code, and you'll find yourself on page 819, where clockwise from is described. A quick scroll up will identify the library.



        (Not all such hyperlinks are correct, and I think there are a things that are not hyperlinked, but still a nice thing to keep in mind.)







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 3 hours ago









        Torbjørn T.Torbjørn T.

        156k13250437




        156k13250437























            0














            I view this as a question on how to identify and solve problems of this kind. Undeleted upon request. This answer describes a way that works in many cases. As pointed out in this nice answer by Torjørn T., in this case this method actually loads effectively a bit more libraries as absolutely needed.



            1. Identifying the problem



            Your terminal reports



            ! Package pgfkeys Error: I do not know the key '/tikz/clockwise from', to which
            you passed '30', and I am going to ignore it. Perhaps you misspelled it.

            See the pgfkeys package documentation for explanation.
            Type H <return> for immediate help.
            ...

            l.19 [clockwise from=30,sibling angle=30]


            so you know that there must be some library (or package) that defines clockwise from.



            2. Identifying the missing library



            a. Search the manual



            Most pdf viewers allow you to search for strings separated by spaces by wrapping them in " signs. With preview on Mac OS the first hit is on p. 707. If I then scroll back to the start of the section, I find



             usetikzlibrary{mindmap}


            which is the ingredient that turns your code in a compilable document.



            b. Google



            When I do a Google search for



             site:tex.stackexchange.com "clockwise from"


            I get dragged to this post. There I find usetikzlibrary{mindmap,trees}. As Torbjørn points out, this is actually an overkill since trees would have been sufficient. (This, BTW, is one of the reasons why users here often get asked to abandon packages that are not needed. Otherwise it is hard for others to see what's going on. Ironically, I had the last two sentences in my original answer, and precisely fell in the same trap I was trying to avoid.)



            In either case, one arrives at the conclusion that the mindmap library is needed to make your code compile.



            documentclass{article}
            usepackage{amsmath,amssymb,tikz-cd}
            usetikzlibrary{graphs,mindmap}

            begin{document}

            begin{tikzcd}
            Darrow[r,tail,harpoon ,dashed] & B
            end{tikzcd}

            begin{tikzpicture}
            draw (1,0) -- (0,1) -- (-1,0) -- (0,-1) -- cycle;
            end{tikzpicture}

            tikz graph { a -> {b, c} -> d };

            begin{tikzpicture}
            node {root}
            [clockwise from=30,sibling angle=30]
            child {node{$30$}}
            child {node{$0$}}
            child {node{$-30$}}
            child {node{$-60$}};
            end{tikzpicture}

            end{document}


            enter image description here



            Remark



            Finally, I'd like to mention that there are cases in which the method does not always work. E.g. in the lowest example op p. 560 of the pgfmanual v 3.1 you need to load quotes in addition to angles. Again, you can find out that quotes is needed by making use of Google. Yet it would IMHO opinion not hurt if the manual was self-contained in that regard, i.e. explicitly tell you which other libraries are needed in addition to those mentioned at the beginning of the section. As TikZ is actively being developed, it is conceivable that a future version of the manual will have this feature.






            share|improve this answer





















            • 1





              You don't need mindmap. The clockwise from key is described in the section of the manual concerning the trees library, so that is the library you actually need. (mindmap loads trees)

              – Torbjørn T.
              4 hours ago
















            0














            I view this as a question on how to identify and solve problems of this kind. Undeleted upon request. This answer describes a way that works in many cases. As pointed out in this nice answer by Torjørn T., in this case this method actually loads effectively a bit more libraries as absolutely needed.



            1. Identifying the problem



            Your terminal reports



            ! Package pgfkeys Error: I do not know the key '/tikz/clockwise from', to which
            you passed '30', and I am going to ignore it. Perhaps you misspelled it.

            See the pgfkeys package documentation for explanation.
            Type H <return> for immediate help.
            ...

            l.19 [clockwise from=30,sibling angle=30]


            so you know that there must be some library (or package) that defines clockwise from.



            2. Identifying the missing library



            a. Search the manual



            Most pdf viewers allow you to search for strings separated by spaces by wrapping them in " signs. With preview on Mac OS the first hit is on p. 707. If I then scroll back to the start of the section, I find



             usetikzlibrary{mindmap}


            which is the ingredient that turns your code in a compilable document.



            b. Google



            When I do a Google search for



             site:tex.stackexchange.com "clockwise from"


            I get dragged to this post. There I find usetikzlibrary{mindmap,trees}. As Torbjørn points out, this is actually an overkill since trees would have been sufficient. (This, BTW, is one of the reasons why users here often get asked to abandon packages that are not needed. Otherwise it is hard for others to see what's going on. Ironically, I had the last two sentences in my original answer, and precisely fell in the same trap I was trying to avoid.)



            In either case, one arrives at the conclusion that the mindmap library is needed to make your code compile.



            documentclass{article}
            usepackage{amsmath,amssymb,tikz-cd}
            usetikzlibrary{graphs,mindmap}

            begin{document}

            begin{tikzcd}
            Darrow[r,tail,harpoon ,dashed] & B
            end{tikzcd}

            begin{tikzpicture}
            draw (1,0) -- (0,1) -- (-1,0) -- (0,-1) -- cycle;
            end{tikzpicture}

            tikz graph { a -> {b, c} -> d };

            begin{tikzpicture}
            node {root}
            [clockwise from=30,sibling angle=30]
            child {node{$30$}}
            child {node{$0$}}
            child {node{$-30$}}
            child {node{$-60$}};
            end{tikzpicture}

            end{document}


            enter image description here



            Remark



            Finally, I'd like to mention that there are cases in which the method does not always work. E.g. in the lowest example op p. 560 of the pgfmanual v 3.1 you need to load quotes in addition to angles. Again, you can find out that quotes is needed by making use of Google. Yet it would IMHO opinion not hurt if the manual was self-contained in that regard, i.e. explicitly tell you which other libraries are needed in addition to those mentioned at the beginning of the section. As TikZ is actively being developed, it is conceivable that a future version of the manual will have this feature.






            share|improve this answer





















            • 1





              You don't need mindmap. The clockwise from key is described in the section of the manual concerning the trees library, so that is the library you actually need. (mindmap loads trees)

              – Torbjørn T.
              4 hours ago














            0












            0








            0







            I view this as a question on how to identify and solve problems of this kind. Undeleted upon request. This answer describes a way that works in many cases. As pointed out in this nice answer by Torjørn T., in this case this method actually loads effectively a bit more libraries as absolutely needed.



            1. Identifying the problem



            Your terminal reports



            ! Package pgfkeys Error: I do not know the key '/tikz/clockwise from', to which
            you passed '30', and I am going to ignore it. Perhaps you misspelled it.

            See the pgfkeys package documentation for explanation.
            Type H <return> for immediate help.
            ...

            l.19 [clockwise from=30,sibling angle=30]


            so you know that there must be some library (or package) that defines clockwise from.



            2. Identifying the missing library



            a. Search the manual



            Most pdf viewers allow you to search for strings separated by spaces by wrapping them in " signs. With preview on Mac OS the first hit is on p. 707. If I then scroll back to the start of the section, I find



             usetikzlibrary{mindmap}


            which is the ingredient that turns your code in a compilable document.



            b. Google



            When I do a Google search for



             site:tex.stackexchange.com "clockwise from"


            I get dragged to this post. There I find usetikzlibrary{mindmap,trees}. As Torbjørn points out, this is actually an overkill since trees would have been sufficient. (This, BTW, is one of the reasons why users here often get asked to abandon packages that are not needed. Otherwise it is hard for others to see what's going on. Ironically, I had the last two sentences in my original answer, and precisely fell in the same trap I was trying to avoid.)



            In either case, one arrives at the conclusion that the mindmap library is needed to make your code compile.



            documentclass{article}
            usepackage{amsmath,amssymb,tikz-cd}
            usetikzlibrary{graphs,mindmap}

            begin{document}

            begin{tikzcd}
            Darrow[r,tail,harpoon ,dashed] & B
            end{tikzcd}

            begin{tikzpicture}
            draw (1,0) -- (0,1) -- (-1,0) -- (0,-1) -- cycle;
            end{tikzpicture}

            tikz graph { a -> {b, c} -> d };

            begin{tikzpicture}
            node {root}
            [clockwise from=30,sibling angle=30]
            child {node{$30$}}
            child {node{$0$}}
            child {node{$-30$}}
            child {node{$-60$}};
            end{tikzpicture}

            end{document}


            enter image description here



            Remark



            Finally, I'd like to mention that there are cases in which the method does not always work. E.g. in the lowest example op p. 560 of the pgfmanual v 3.1 you need to load quotes in addition to angles. Again, you can find out that quotes is needed by making use of Google. Yet it would IMHO opinion not hurt if the manual was self-contained in that regard, i.e. explicitly tell you which other libraries are needed in addition to those mentioned at the beginning of the section. As TikZ is actively being developed, it is conceivable that a future version of the manual will have this feature.






            share|improve this answer















            I view this as a question on how to identify and solve problems of this kind. Undeleted upon request. This answer describes a way that works in many cases. As pointed out in this nice answer by Torjørn T., in this case this method actually loads effectively a bit more libraries as absolutely needed.



            1. Identifying the problem



            Your terminal reports



            ! Package pgfkeys Error: I do not know the key '/tikz/clockwise from', to which
            you passed '30', and I am going to ignore it. Perhaps you misspelled it.

            See the pgfkeys package documentation for explanation.
            Type H <return> for immediate help.
            ...

            l.19 [clockwise from=30,sibling angle=30]


            so you know that there must be some library (or package) that defines clockwise from.



            2. Identifying the missing library



            a. Search the manual



            Most pdf viewers allow you to search for strings separated by spaces by wrapping them in " signs. With preview on Mac OS the first hit is on p. 707. If I then scroll back to the start of the section, I find



             usetikzlibrary{mindmap}


            which is the ingredient that turns your code in a compilable document.



            b. Google



            When I do a Google search for



             site:tex.stackexchange.com "clockwise from"


            I get dragged to this post. There I find usetikzlibrary{mindmap,trees}. As Torbjørn points out, this is actually an overkill since trees would have been sufficient. (This, BTW, is one of the reasons why users here often get asked to abandon packages that are not needed. Otherwise it is hard for others to see what's going on. Ironically, I had the last two sentences in my original answer, and precisely fell in the same trap I was trying to avoid.)



            In either case, one arrives at the conclusion that the mindmap library is needed to make your code compile.



            documentclass{article}
            usepackage{amsmath,amssymb,tikz-cd}
            usetikzlibrary{graphs,mindmap}

            begin{document}

            begin{tikzcd}
            Darrow[r,tail,harpoon ,dashed] & B
            end{tikzcd}

            begin{tikzpicture}
            draw (1,0) -- (0,1) -- (-1,0) -- (0,-1) -- cycle;
            end{tikzpicture}

            tikz graph { a -> {b, c} -> d };

            begin{tikzpicture}
            node {root}
            [clockwise from=30,sibling angle=30]
            child {node{$30$}}
            child {node{$0$}}
            child {node{$-30$}}
            child {node{$-60$}};
            end{tikzpicture}

            end{document}


            enter image description here



            Remark



            Finally, I'd like to mention that there are cases in which the method does not always work. E.g. in the lowest example op p. 560 of the pgfmanual v 3.1 you need to load quotes in addition to angles. Again, you can find out that quotes is needed by making use of Google. Yet it would IMHO opinion not hurt if the manual was self-contained in that regard, i.e. explicitly tell you which other libraries are needed in addition to those mentioned at the beginning of the section. As TikZ is actively being developed, it is conceivable that a future version of the manual will have this feature.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 1 hour ago

























            answered 4 hours ago









            marmotmarmot

            93k4109204




            93k4109204








            • 1





              You don't need mindmap. The clockwise from key is described in the section of the manual concerning the trees library, so that is the library you actually need. (mindmap loads trees)

              – Torbjørn T.
              4 hours ago














            • 1





              You don't need mindmap. The clockwise from key is described in the section of the manual concerning the trees library, so that is the library you actually need. (mindmap loads trees)

              – Torbjørn T.
              4 hours ago








            1




            1





            You don't need mindmap. The clockwise from key is described in the section of the manual concerning the trees library, so that is the library you actually need. (mindmap loads trees)

            – Torbjørn T.
            4 hours ago





            You don't need mindmap. The clockwise from key is described in the section of the manual concerning the trees library, so that is the library you actually need. (mindmap loads trees)

            – Torbjørn T.
            4 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%2f471042%2ftikzpicture-trivial-example-does-not-work%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

            How to label and detect the document text images

            Vallis Paradisi

            Tabula Rosettana