Skip to main content

Posts

Showing posts with the label arrows in latex

Latex Tutorial: How to Create Images, Diagrams, and Flow Charts Using Latex

This tutorial is an extension of previous video tutorial on how to use tikz for image creation in Latex . In this video I explain how to set up your document for flow chat design. This equally applies to any other image that uses similar structure. Specifically, in this video I talk about following things: How to create a flow chart How to setup styles for reusable components of an image How to draw arrows from one component to other How to change the styles of components How to change the arrowhead for Latex arrows How to align components left, right, top, and below of each other The code use:d in the video is here: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,shadows,arrows} \begin{document} \tikzstyle{decision} = [diamond, draw, fill=blue!50] \tikzstyle{line} = [draw, -stealth, thick] \tikzstyle{elli}=[draw, ellipse, fill=red!50,minimum height=8mm, text width=5em, text centered] \tikzstyle{block} = [draw, rectangle, fill=blue!50, text width...

Latex Tutorial: How to use Tikz to create images in Latex

Tikz is one of the most widely used packages for image creation in Latex. It has so much that there is absolutely nothing that you can't draw with latex and can with some other tool. In this tutorial we explain the basics of Tikz. We go over the basic shapes, how to draw them, how to understand the co-ordinates, and positioning of the components of an image.  Specifically, this tutorial demonstrates: How to draw a rectangle in Latex using TikZ How to draw a ellipse in Latex using TikZ How to draw a circle in Latex using TikZ How to draw an arc in Latex using TikZ How to fill the shapes with colors How to change the line styles - solid, dashed etc. The code for this experiment is here: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes, arrows, shadows} \begin{document} \begin{tikzpicture} \draw[fill=blue] (2,3) ellipse (2 and 3); \draw[fill=red, style=dashed] (2,3) circle (2); \draw (0,0) rectangle (4,4); \draw[fill=red!50] (1,2)...