Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
latex:tikz [2022/03/27 16:07] โ iwn | latex:tikz [2022/07/20 11:54] โ [How to draw diagrams in LaTeX with TikZ] iwn |
---|
* The examples below and many more are also available on [[https://github.com/IzaakWN/CodeSnippets/tree/master/LaTeX/TikZ|GitHub]] and [[https://ineuteli.web.cern.ch/ineuteli/diagrams/|this gallery page]]. | * The examples below and many more are also available on [[https://github.com/IzaakWN/CodeSnippets/tree/master/LaTeX/TikZ|GitHub]] and [[https://ineuteli.web.cern.ch/ineuteli/diagrams/|this gallery page]]. |
* [[http://pgf.sourceforge.net/pgf_CVS.pdf|Official TikZ & PGF manual]]. | * [[http://pgf.sourceforge.net/pgf_CVS.pdf|Official TikZ & PGF manual]]. |
| * [[http://tug.ctan.org/info/visualtikz/VisualTikZ.pdf|Visual Tikz]]: an extensive cheat sheet with TikZ's many features and commands. |
* For Feynman diagrams, please see [[latex:feynman|this page]]. | * For Feynman diagrams, please see [[latex:feynman|this page]]. |
| |
===== 3D axis with spherical coordinates & CMS coordinate system ===== | ===== 3D axis with spherical coordinates & CMS coordinate system ===== |
| |
This piece of code is based on [[https://tex.stackexchange.com/questions/116206/how-to-draw-and-annotate-a-spherical-coordinate-system|this StackExchange thread]]. It is a simple exercise in making axes and labeling angles in 3D. ''\usepackage{tikz-3dplot}'' needs to be included. The full code can be found [[https://tikz.net/axis3d_cms/|here]]. | This piece of code is based on [[https://tex.stackexchange.com/questions/116206/how-to-draw-and-annotate-a-spherical-coordinate-system|this StackExchange thread]]. It is a simple exercise in making axes and labeling angles in 3D. ''\usepackage{tikz-3dplot}'' needs to be included. The full code can be found [[https://tikz.net/axis3d/|here]]. |
| |
<WRAP group><WRAP half column lo 65%> | <WRAP group><WRAP half column lo 65%> |
| |
| |
An example of rotating the 3D axes with the CMS conventional coordinate system by using the option ''rotate around x=<//angle//>'' and more ([[latex:example_spherical_coordinates|full code]]): | An example of rotating the 3D axes with the CMS conventional coordinate system by using the option ''rotate around x=<//angle//>'' and more ([[https://tikz.net/axis3d_cms|full code]]): |
| |
<WRAP group><WRAP third column 20%> | <WRAP group><WRAP third column 20%> |