{"id":267,"date":"2016-01-12T19:09:06","date_gmt":"2016-01-12T18:09:06","guid":{"rendered":"https:\/\/blogs.fu-berlin.de\/gruenstaeudl\/?p=267"},"modified":"2016-01-12T19:31:49","modified_gmt":"2016-01-12T18:31:49","slug":"an-example-of-commutative-diagrams-in-latex","status":"publish","type":"post","link":"https:\/\/blogs.fu-berlin.de\/gruenstaeudl\/2016\/01\/12\/an-example-of-commutative-diagrams-in-latex\/","title":{"rendered":"An example of commutative diagrams in LaTeX"},"content":{"rendered":"<p><strong>Tricky at first, but immensely helpful.<\/strong><\/p>\n<p>As I become more familiar with Latex, I realize how efficient this markup language is for generating publication-quality diagrams and figures. For a commutative diagram displaying the transition rates of plant leaf shapes, the following Latex code suffices to generate a clear and succinct graph.<\/p>\n<div style=\"background-color: #ffebdb\">\n<p style=\"padding-left: 30px\"><code>\\documentclass[]{standalone}<br \/>\n\\usepackage{tikz-cd}<br \/>\n\\begin{document}<br \/>\n\\tikzcdset{every label\/.append style = {font = \\tiny}}<br \/>\n\\begin{tikzcd}[row sep=50, column sep=50]<br \/>\nfoo \\arrow[r, shift left, \"q_{foobar}\"]<br \/>\n\\arrow[r, &lt;-, shift right, swap, \"q_{barfoo}\"]<br \/>\n\\arrow[dr, shift right=2]<br \/>\n&amp; bar \\arrow[d, shift left,\"q_{barqux}\"] \\\\<br \/>\n&amp; qux \\arrow[u, shift left, \"q_{quxbar}\"]<br \/>\n\\arrow[ul, shift left=4, \"q_{quxfoo}\"]<br \/>\n\\end{tikzcd}<br \/>\n\\end{document}<br \/>\n<\/code><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_274\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/blogs.fu-berlin.de\/gruenstaeudl\/files\/2016\/01\/communitative_diagram.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-274\" class=\"wp-image-274 size-medium\" src=\"https:\/\/blogs.fu-berlin.de\/gruenstaeudl\/files\/2016\/01\/communitative_diagram-300x203.png\" alt=\"\" width=\"300\" height=\"203\" srcset=\"https:\/\/blogs.fu-berlin.de\/gruenstaeudl\/files\/2016\/01\/communitative_diagram-300x203.png 300w, https:\/\/blogs.fu-berlin.de\/gruenstaeudl\/files\/2016\/01\/communitative_diagram.png 1021w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-274\" class=\"wp-caption-text\">Example of a communitative diagram in LaTeX<\/p><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tricky at first, but immensely helpful. As I become more familiar with Latex, I realize how efficient this markup language is for generating publication-quality diagrams and figures. For a commutative diagram displaying the transition rates of plant leaf shapes, the following Latex code suffices to generate a clear and succinct graph. \\documentclass[]{standalone} \\usepackage{tikz-cd} \\begin{document} \\tikzcdset{every [&hellip;]<\/p>\n","protected":false},"author":2306,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57598],"tags":[],"class_list":["post-267","post","type-post","status-publish","format-standard","hentry","category-bioinformatics"],"_links":{"self":[{"href":"https:\/\/blogs.fu-berlin.de\/gruenstaeudl\/wp-json\/wp\/v2\/posts\/267","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.fu-berlin.de\/gruenstaeudl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.fu-berlin.de\/gruenstaeudl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.fu-berlin.de\/gruenstaeudl\/wp-json\/wp\/v2\/users\/2306"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.fu-berlin.de\/gruenstaeudl\/wp-json\/wp\/v2\/comments?post=267"}],"version-history":[{"count":5,"href":"https:\/\/blogs.fu-berlin.de\/gruenstaeudl\/wp-json\/wp\/v2\/posts\/267\/revisions"}],"predecessor-version":[{"id":276,"href":"https:\/\/blogs.fu-berlin.de\/gruenstaeudl\/wp-json\/wp\/v2\/posts\/267\/revisions\/276"}],"wp:attachment":[{"href":"https:\/\/blogs.fu-berlin.de\/gruenstaeudl\/wp-json\/wp\/v2\/media?parent=267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.fu-berlin.de\/gruenstaeudl\/wp-json\/wp\/v2\/categories?post=267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.fu-berlin.de\/gruenstaeudl\/wp-json\/wp\/v2\/tags?post=267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}