Quality Diagrams with Pycirkuit

Total Page:16

File Type:pdf, Size:1020Kb

Quality Diagrams with Pycirkuit , FOSDEM 20 Quality diagrams with PyCirkuit Orestes Mas ([email protected]) Polytechnic University of Catalonia 2nd February 2020 , FOSDEM 20 Quality diagrams with PyCirkuit Orestes Mas ([email protected]) Polytechnic University of Catalonia 2nd February 2020 The problem I need to draw circuits and diagrams! , FOSDEM 20 Orestes Mas ([email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 The problem I need to draw circuits and diagrams! , FOSDEM 20 Orestes Mas ([email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 The problem I need to draw circuits and diagrams! , FOSDEM 20 Orestes Mas ([email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 The problem I need to draw circuits and diagrams! , FOSDEM 20 Orestes Mas ([email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 Why PyCirkuit? Requirements we have ▶ Beautiful (publishing quality) ▶ Large library of predefined 푅 푅 symbols 푏 푐 푖푏 푖1 푖2 ▶ Uniform style (don’t mix libraries) + + 푣 + 훾 − 푣푥 훽푖푏 푉푐푐 − ▶ Parametrizable symbols ▶ Consistent typography: 푅푒 푅푏, 푣훾, 푖2, 훽푖푏 ▶ Free formats, tools and systems , FOSDEM 20 Orestes Mas ([email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 Why PyCirkuit? Requirements we have ▶ Beautiful (publishing quality) ▶ Large library of predefined 푅 푅 symbols 푏 푐 푖푏 푖1 푖2 ▶ Uniform style (don’t mix libraries) + + 푣 + 훾 푣푥 훽푖 푉푐푐 − − 푏 ▶ Parametrizable symbols ▶ Consistent typography: 푅푒 푅푏, 푣훾, 푖2, 훽푖푏 ▶ Free formats, tools and systems , FOSDEM 20 Orestes Mas ([email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 Chosen solution Insert graphic commands into a LATEX document \begin{tikzpicture} \draw[step=0.25,color=blue!20,very thin] LAT X+ TikZ! (-1.8,-1.6) grid (1.8,1.6); E \foreach \ang in {0,30,...,330}{ \draw[color=red] (0,0) to[R, -*] (\ang:1.1); \node at (\ang:1.35) {\tiny$e^{j\ang^\circ}$}; � Perfect text/graphics integration. } \end{tikzpicture} � Programmability & flexibility 푗90∘ � Mathematical formulae pose no ∘ 푒 ∘ 푒푗120 푒푗60 problems ∘ ∘ 푒푗150 푒푗30 ∘ ∘ � Good circuit library (circuitikz) 푒푗180 푒푗0 ∘ ∘ 푒푗210 푒푗330 � Vector graphics 푗240∘ 푗300∘ 푒 ∘ 푒 푒푗270 , FOSDEM 20 Orestes Mas ([email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 The end of the tunnel? Not yet... CircuiTikZ seemed the right tool, but... ▶ Too much use of absolute coordinates to position elements ▶ Aesthetical issues Circuit Macros! , FOSDEM 20 Orestes Mas ([email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 What is PyCirkuit? In short: ▶ A program to help drawing those circuits ▶ Written in Python 3 + PyQt5 ▶ 2 modes of operation: ▶ GUI ▶ CLI / Batch mode , FOSDEM 20 Orestes Mas ([email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 PyCirkuit - How it works Phase 1: The «Circuit Macros» Circuit macros source .pic m4 file file , FOSDEM 20 Orestes Mas ([email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 PyCirkuit - How it works Phase 2: The Dpic PGF-TikZ PSTricks PostScript+psfrag MetaPost LATEX mfpic .pic dpic eepicemu file LATEX «picture» xfig SVG Generic PostScript PDF , FOSDEM 20 Orestes Mas ([email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 The PyCirkuit Phase 3: Visualisation Circuit Template Macros .pic .pdf source A .png file m4 dpic .tikz pdfLTEX pdftoppm , FOSDEM 20 Orestes Mas ([email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 The PyCirkuit Phase 4: Exporting and Extra bonus Circuit Macros Template .svg .pic source .png file m4 dpic .pdf .tikz pdfLATEX pdftoppm .jpg , FOSDEM 20 Orestes Mas ([email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 PyCirkuit Installation ▶ On Debian Testing (Bullseye) is straightforward: apt-get install pycirkuit ▶ From PyPI (recommended for MacOs/Windows) pip install pycirkuit ▶ From GitHub pip install git+https://github.com/orestesmas/pycirkuit.git Outside Debian you must install some PyCirkuit dependencies by hand. See README file on GitHub project page. , FOSDEM 20 Orestes Mas ([email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 Demonstrations Demo Graphical User Interface , FOSDEM 20 Orestes Mas ([email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 Demo Command-Line Interface , FOSDEM 20 Orestes Mas ([email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 Future work What’s planned? Primary goals ▶ Documentation and code cleaning ▶ Supporting/improving other input and output formats ▶ Improve the editor Secondary goals ▶ Allow simultaneous drawings on GUI ▶ Configurable workflows. Plugin-based architecture? ▶ Become a KDE project? (KDE - Python bindings!) , FOSDEM 20 Orestes Mas ([email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 Relevant links Main ▶ GitHub repo: https://github.com/orestesmas/pycirkuit ▶ PyPI repo: https://pypi.org/project/pycirkuit/ Other ▶ PIC language: http://plan9.bell-labs.com/10thEdMan/pic.pdf ▶ PIC tutorial: http://floppsie.comp.glam.ac.uk/Glamorgan/gaius/web/pic.html ▶ Dpic site: https://ece.uwaterloo.ca/~aplevich/dpic/ ▶ Circuit Macros: https://ece.uwaterloo.ca/~aplevich/Circuit_macros/ , FOSDEM 20 Orestes Mas ([email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 Acknowledgements ▶ Donald Knuth & Leslie Lamport: For giving us TEX and LATEX ▶ Till Tantau: Author of TikZ (and Beamer too) ▶ Dwight Aplevich: Circuit Macros and Dpic author ▶ Matteo Agostinelli: “cirkuit” application ▶ Aniol Marti & Àlex Muntada: Debian packages for dpic, circuit-macros and pycirkuit ▶ ...and the free software community for the contributions to these projects! , FOSDEM 20 Orestes Mas ([email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 Thank you!.
Recommended publications
  • A Practical Guide to LATEX Tips and Tricks
    Luca Merciadri A Practical Guide to LATEX Tips and Tricks October 7, 2011 This page intentionally left blank. To all LATEX lovers who gave me the opportunity to learn a new way of not only writing things, but thinking them ...Claudio Beccari, Karl Berry, David Carlisle, Robin Fairbairns, Enrico Gregorio, Stefan Kottwitz, Frank Mittelbach, Martin M¨unch, Heiko Oberdiek, Chris Rowley, Marc van Dongen, Joseph Wright, . This page intentionally left blank. Contents Part I Standard Documents 1 Major Tricks .............................................. 7 1.1 Allowing ............................................... 10 1.1.1 Linebreaks After Comma in Math Mode.............. 10 1.2 Avoiding ............................................... 11 1.2.1 Erroneous Logic Formulae .......................... 11 1.2.2 Erroneous References for Floats ..................... 12 1.3 Counting ............................................... 14 1.3.1 Introduction ...................................... 14 1.3.2 Equations For an Appendix ......................... 16 1.3.3 Examples ........................................ 16 1.3.4 Rows In Tables ................................... 16 1.4 Creating ............................................... 17 1.4.1 Counters ......................................... 17 1.4.2 Enumerate Lists With a Star ....................... 17 1.4.3 Math Math Operators ............................. 18 1.4.4 Math Operators ................................... 19 1.4.5 New Abstract Environments ........................ 20 1.4.6 Quotation Marks Using
    [Show full text]
  • Latex Guide – Installed Style Files for EM/PM
    LaTeX Guide – Installed Style files for EM/PM (Updated May 2021) Aries Systems Corporation 50 High Street, Suite 21 • North Andover, MA 01845 PH +1 978.975.7570 CONFIDENTIAL AND PROPRIETARY Copyright © 2021, Aries Systems Corporation This document is the confidential and proprietary information of Aries Systems Corporation, and may not be disseminated or copied without the express written permission of Aries Systems Corporation. The information contained in this document is tentative, and is provided solely for planning purposes of the recipient. The features described for this software release are likely to change before the release design and content are finalized. Aries Systems Corporation assumes no liability or responsibility for decisions made by third parties based upon the contents of this document, and shall in no way be bound to performance therefore. LaTeX style files (TeX Live 2020) installed Style files on Editorial Manager's TeX Live PDF Builder: 10_5.sty add2-shipunov.sty 12many.sty addfont.sty 2in1.sty addliga.sty 2sidedoc.sty addlines.sty 2up.sty addrset.sty 3parttable.sty adfarrows.sty a0size.sty adfbullets.sty a35.sty adforn.sty a4.sty adigraph.sty a4c.sty adjcalc.sty a4mod.sty adjmulticol.sty a4wide.sty adjustbox.sty a5comb.sty adtrees.sty abbrevs.sty advdate.sty abc.sty ae.sty abidir.sty aecompl.sty abjad.sty aedpatch.sty abnt.sty aeguill.sty abntex2abrev.sty aer.sty abntex2cite.sty aertt.sty aboxes.sty afonts.sty abraces.sty afonts0.sty abstract.sty afonts1.sty academicons.sty afonts2.sty accanthis.sty afoot.sty
    [Show full text]
  • Latex (A.H. Gitter)
    Ecce etiam ego adducam aquas super terram! H+ H+ 106◦ O2– LATEX ( opus imperfectum ) Alfred H. Gitter Version vom 1. Januar 2021 Inhaltsverzeichnis 1 Grundlagen 3 1.1 Einführung ................................ 3 1.2 Befehle................................... 8 1.3 Dokumentklassen und Pakete, Beispiel ................. 10 1.4 Gliederung (Titel, Textabschnitte und Absätze) ............ 15 2 Besondere Teilbereiche 19 2.1 Verzeichnisse (Inhalt, Abk., Abb., Literatur).............. 19 2.2 Fuß- und Randnoten, Querverweise, Hyperlinks ............ 21 2.3 Bilder, Tabellen, Balkendiagramme, Kommentare ........... 22 2.4 Aufzählungen und Theorem-Umgebungen................ 31 2.5 Programm-Code, Zeichnungen, Zähler.................. 33 3 Seite, Absatz und Wort 39 3.1 Seitengestaltung, mehrere Spalten.................... 39 3.2 Rahmen und Minipages.......................... 41 3.3 Ausrichtung, Einrückung, Trennungen, Abstände ........... 44 3.4 Typographische Regeln.......................... 47 4 Zeichenformatierung 50 4.1 Schrift (Stil, Größe, hoch/tief, Farbe).................. 50 4.2 Leer- und Sonderzeichen......................... 56 4.3 Physikalische Einheiten.......................... 62 5 Mathematik 67 5.1 Mathematik im Fließtext......................... 67 5.2 Sonderzeichen in einer math-Umgebung................. 72 5.3 Gleichungen................................ 76 6 Grafiken mit TikZ 79 6.1 Strichzeichnungen und Füllungen .................... 79 6.2 Knoten................................... 84 6.3 Graphen und Funktionen........................
    [Show full text]
  • LATEXML the Manual ALATEX to XML/HTML/MATHML Converter; Version 0.8.5
    LATEXML The Manual ALATEX to XML/HTML/MATHML Converter; Version 0.8.5 Bruce R. Miller November 17, 2020 ii Contents Contents iii List of Figures vii 1 Introduction1 2 Using LATEXML 5 2.1 Conversion...............................6 2.2 Postprocessing.............................7 2.3 Splitting................................. 11 2.4 Sites................................... 11 2.5 Individual Formula........................... 13 3 Architecture 15 3.1 latexml architecture........................... 15 3.2 latexmlpost architecture......................... 18 4 Customization 19 4.1 LaTeXML Customization........................ 20 4.1.1 Expansion............................ 20 4.1.2 Digestion............................ 22 4.1.3 Construction.......................... 24 4.1.4 Document Model........................ 27 4.1.5 Rewriting............................ 28 4.1.6 Packages and Options..................... 28 4.1.7 Miscellaneous......................... 29 4.2 latexmlpost Customization....................... 29 4.2.1 XSLT.............................. 30 4.2.2 CSS............................... 30 5 Mathematics 33 5.1 Math Details............................... 34 5.1.1 Internal Math Representation.................. 34 5.1.2 Grammatical Roles....................... 36 iii iv CONTENTS 6 Localization 39 6.1 Numbering............................... 39 6.2 Input Encodings............................. 40 6.3 Output Encodings............................ 40 6.4 Babel.................................. 40 7 Alignments 41 7.1 TEX Alignments............................
    [Show full text]
  • TUGBOAT Volume 30, Number 2 / 2009 TUG 2009 Conference
    TUGBOAT Volume 30, Number 2 / 2009 TUG 2009 Conference Proceedings TUG 2009 154 Conference program, delegates, and sponsors 159 Profile of Eitan Gurari (1947–2009) LATEX 163 Boris Veytsman / LATEX class writing for wizard apprentices 169 Arthur Reutenauer / LuaTEX for the LATEX user: An introduction Accessibility 170 Ross Moore / Ongoing efforts to generate “tagged PDF” using pdfTEX Education 176 Frank Quinn / The EduTEX TUG working group Software & Tools 177 Jim Hefferon / Becoming a CTAN mirror 179 Karl Berry / TEX Live 2009 news 180 Tim Arnold / Getting started with plasTEX 183 Hans Hagen / LuaTEX: Halfway to version 1 187 Hans Hagen / LuaTEX and ConTEXt: Where we stand 191 Bob Neveln and Bob Alps / ProofCheck: Writing and checking complete proofs in LATEX Publishing 196 Karl Berry and David Walden / TEX People: The TUG interviews project and book 203 David Walden / Self-publishing: Experiences and opinions Graphics 209 Klaus H¨oppner / Introduction to METAPOST 214 Andrew Mertz and William Slough / A TikZ tutorial: Generating graphics in the spirit of TEX 227 Boris Veytsman and Leila Akhmadeeva / Medical pedigrees: Typography and interfaces Fonts 236 Jim Hefferon / A first look at the TEX Gyre fonts 241 Hans Hagen / Plain TEX and OpenType 243 Aditya Mahajan / Integrating Unicode and OpenType math in ConTEXt Macros 247 Aditya Mahajan / LuaTEX: A user’s perspective Bibliographies 252 Nelson Beebe / BIBTEX meets relational databases Electronic Documents 272 Kaveh Bazargan / TEX as an eBook reader 274 Christian Rossi / From distribution to
    [Show full text]
  • TUGBOAT Volume 30, Number 1 / 2009
    TUGBOAT Volume 30, Number 1 / 2009 General Delivery 3 From the president / Karl Berry 4 Editorial comments / Barbara Beeton Helmut Kopka, 1932–2009; Eitan Gurari, 1947–2009; A short history of type 4 Helmut Kopka, 1932–2009 / Patrick Daly Software & Tools 6 DVI specials for PDF generation / Jin-Hwan Cho 12 Ancient TEX: Using X TE EX to support classical and medieval studies / David Perry 18 TEXonWeb / Jan Pˇrichystal Typography 20 Typographers’ Inn / Peter Flynn Fonts 22 OpenType math illuminated / Ulrik Vieth 32 A closer look at TrueType fonts and pdfTEX / H`an Thế Th`anh 35 The Open Font Library / Dave Crossland Bibliographies 36 Managing bibliographies with LATEX / Lapo Mori 49 Managing languages within MlBibTEX / Jean-Michel Hufflen Graphics 58 Asymptote: Lifting TEX to three dimensions / John Bowman and Orest Shardt 64 Supporting layout routines in MetaPost / Wentao Zheng 69 Glisterings: Reprise; MetaPost and pdfLATEX; Spidrons / Peter Wilson 74 MetaPost macros for drawing Chinese and Japanese abaci / Denis Roegel 80 Spheres, great circles and parallels / Denis Roegel 88 An introduction to nomography: Garrigues’ nomogram for the computation of Easter / Denis Roegel A L TEX 105 LATEX3 news, issues 1–2 / LATEX Project Team 107 LATEX3 programming: External perspectives / Joseph Wright Macros 110 Implementing key–value input: An introduction / Joseph Wright and Christian Feuers¨anger 123 Current typesetting position in pdfTEX / V´ıt Z´yka Letters 125 In response to “mathematical formulæ” / Kaihsu Tai 126 In response to Kaihsu Tai / Massimo
    [Show full text]
  • Die TEX Nische K Omödie
    DANTE Deutschsprachige Anwendervereinigung TEX e.V. 21. Jahrgang Heft 3/2009 August 2009 Xnische Komödie E Die T 3/2009 Impressum »Die TEXnische Komödie« ist die Mitgliedszeitschrift von DANTE e.V. Der Bezugs- preis ist im Mitgliedsbeitrag enthalten. Namentlich gekennzeichnete Beiträge geben die Meinung der Schreibenden wieder. Reproduktion oder Nutzung der erschienenen Beiträge durch konventionelle, elektronische oder beliebige andere Verfahren ist nur im nicht-kommerziellen Rahmen gestattet. Verwendungen in größerem Umfang bitte zur Information bei DANTE e.V. melden. Beiträge sollten in Standard-LATEX-Quellcode unter Verwendung der Dokumenten- klasse dtk erstellt und per E-Mail oder Datenträger (CD) an untenstehende Adresse der Redaktion geschickt werden. Sind spezielle Makros, LATEX-Pakete oder Schriften dafür nötig, so müssen auch diese komplett mitgeliefert werden. Außerdem müssen sie auf Anfrage Interessierten zugänglich gemacht werden. Diese Ausgabe wurde mit pdfTeX 3.1415926-1.40.10-2.2 erstellt. Als Standard- Schriften kamen die Type-1-Fonts Latin-Modern und LuxiMono zum Einsatz. Erscheinungsweise: vierteljährlich Erscheinungsort: Heidelberg Auflage: 2700 Herausgeber: DANTE, Deutschsprachige Anwendervereinigung TEX e.V. Postfach 10 18 40 69008 Heidelberg E-Mail: [email protected] [email protected] (Redaktion) Druck: Konrad Triltsch Print und digitale Medien GmbH Johannes-Gutenberg-Str. 1–3, 97199 Ochsenfurt-Hohestadt Redaktion: Herbert Voß (verantwortlicher Redakteur) Mitarbeit : Rudolf Herrmann Gert Ingold Rolf Niepraschk Bernd Raichle Christine Römer Volker RW Schaa Redaktionsschluss für Heft 4/2009: 15. Oktober 2009 ISSN 1434-5897 Die TEXnische Komödie 3/2009 Editorial Liebe Leserinnen und Leser, wie das eben manchmal so passiert und man hinterher nicht genau weiß, warum eigentlich, wurde in der letzten Ausgabe die Liste der neuen Pakete so abgedruckt, wie sie schon in der vorletzten Ausgabe zu finden war.
    [Show full text]
  • Thapl—A Theatrical Programming Language
    Thapl—A Theatrical Programming Language Matan I. Peled Technion - Computer Science Department - M.Sc. Thesis MSC-2020-12 - 2020 Technion - Computer Science Department - M.Sc. Thesis MSC-2020-12 - 2020 Thapl—A Theatrical Programming Language Research Thesis Submitted in partial fulfillment of the requirements for the degree of Master of Science in Computer Science Matan I. Peled Submitted to the Senate of the Technion — Israel Institute of Technology Heshvan 5780 Haifa November 2019 Technion - Computer Science Department - M.Sc. Thesis MSC-2020-12 - 2020 Technion - Computer Science Department - M.Sc. Thesis MSC-2020-12 - 2020 This work was carried out under the joint supervision of Prof. Yossi Gil and Prof. David H. Lorenz, in the Faculty of Computer Science. Some results in this thesis have been published as articles or talks by the author and research collaborators in conferences and journals during the course of the author’s magisteral research period, the most up-to-date versions of which being: Matan I. Peled, Joseph (Yossi) Gil, and David H. Lorentz. Thapl—a theaterical program- ming language. In 5th Workshop on Domain-Specific Language Design and Implementation (DSLDI), 2017. Acknowledgements To my parents Dafna and Michael, I am grateful for your endless love and support throughout the years, I literally wouldn’t have been here without you. I am indebted to my advisors, Prof. Yossi Gil and Prof. David H. Lorentz, for pa- tiently guiding me through tight deadlines, and for teaching me what research actually is. A most heartful thanks goes to my friends for keeping me sane, to Nitzan for making sure I go swimming at least once a week no matter what, and to all those who helped me during my research; especially Shiri and Hila who helped improve this document.
    [Show full text]
  • Typesetting with LATEX: the Basics
    1 Typesetting with LATEX: The Basics Paul Bergeron Department of Physics and Astronomy, University of Utah, Salt Lake City January 26, 2016 1These slides will be available at http://www.physics.utah.edu/~bergeron/ Further Reading Some documentation I keep on hand: I (general and simple): A Simplified Introduction to LATEX I (general and technical): A Not So Short Introduction to LATEX I (math cheat sheet): A Short Math Guide to LATEX I A Beamer Quick Start manual I TikZ & PGF manual I CircuitTikZ manual I Word processor that gives you near complete control I Smart, e.g no sections at the bottom of a page I Good for papers, homework, notes, posters, talks (like this one!), and more I Open source { a swiss army knife who anyone can add to I Available for any platform { Apple, Windows, or Linux I Easy to learn with intuitive commands I Excels at equations, figures, reference, structure, and more... Why LATEX I Designed in the 1980s by mathematicians tired of their equations being messed up I Smart, e.g no sections at the bottom of a page I Good for papers, homework, notes, posters, talks (like this one!), and more I Open source { a swiss army knife who anyone can add to I Available for any platform { Apple, Windows, or Linux I Easy to learn with intuitive commands I Excels at equations, figures, reference, structure, and more... Why LATEX I Designed in the 1980s by mathematicians tired of their equations being messed up I Word processor that gives you near complete control I Good for papers, homework, notes, posters, talks (like this one!), and more I Open source { a swiss army knife who anyone can add to I Available for any platform { Apple, Windows, or Linux I Easy to learn with intuitive commands I Excels at equations, figures, reference, structure, and more..
    [Show full text]
  • The Unknown Picture Environment
    The unknown picture environment Claudio Beccari Abstract handbook announces the extensions and discusses the eliminated drawbacks; these extensions were The old picture environment, introduced by Leslie eventually realized only in 2003 by Gäßlein and Lamport into the LAT X kernel almost 20 years ago, E Niepraschk, (Gäßlein et al., 2009). In 2004 the appears to be neglected in favor of more modern same authors released a stable version. In 2009, and powerful LAT X packages that eliminate all E with the contribution of the third author Tkadlec, drawbacks of the original environment. Neverthe- they released an enhanced versions that added less it is still being used behind the scenes by a quite a few new commands that substantially ex- number of other packages. Lamport announced tend the picture environment functionality. But, an extension in 1994 that should have removed except the latest additions of the year 2009, every- all the limitations of the original environment; in thing else was already documented by Lamport in 2003 appeared the first version of this extension, in his handbook second edition. 2004 it was released the first stable version; in 2009 Not longer than a few days ago a forum partici- it was actually expanded to new functionalities. pant asked how he could draw a square wave and Nowadays the picture environment can perform a saw tooth wave of suitable size for setting them as most simple drawing programs do, but it has in line with his text: and . special features that make it invaluable. The whole thing required to produce two sim- ple commands by resorting to the recent pict2e Sommario extension package new commands: L’ambiente picture, introdotto da Leslie Lamport \newcommand*\sqwave[1][0.125ex]{{% nel nucleo di LATEX quasi 20 anni fa, sembra essere \unitlength=#1\relax trascurato a favore di pacchetti LATEX più moderni \picture(20,10) e più potenti che eliminano tutti gli inconvenien- \polyline(0,0)(6.5,0)(6.5,15)(13,15)% ti della versione originale.
    [Show full text]
  • 214 Tugboat, Volume 30 (2009), No. 2 a Tikz Tutorial
    214 TUGboat, Volume 30 (2009), No. 2 \documentclass{article} A TikZ tutorial: Generating graphics in the ... spirit of TEX \usepackage{tikz} Andrew Mertz & William Slough % Optional libraries: \usetikzlibrary{arrows, automata} Abstract ... TikZ is a system which can be used to specify graphics \begin{document} ... of very high quality. For example, accurate place- \begin{tikzpicture} ment of picture elements, use of TEX fonts, ability to ... incorporate mathematical typesetting, and the possi- \end{tikzpicture} bility of introducing macros can be viewed as positive ... factors of this system. The syntax uses an amal- \end{document} gamation of ideas from METAFONT, METAPOST, Listing 1: Layout of a document which uses TikZ. PSTricks, and SVG, allowing its users to \program" their desired graphics. The latest revision to TikZ introduces many new features to an already feature- 2 Some TikZ fundamentals packed system, as evidenced by its 560-page user k manual. Here, we present a tutorial overview of this Ti Z provides support for various input formats, in- A system, suitable for both beginning and intermediate cluding plain TEX, LTEX, and ConTEXt. The re- users of TikZ. quirements for each of these are fairly similar, so we focus on just one of these, LATEX, for simplicity. Listing 1 illustrates the layout for a LATEX docu- 1 Introduction ment containing a number of TikZ-generated graph- PGF, an acronym for \portable graphics format", is ics. In the preamble, the tikz package is specified, a TEX macro package intended for the creation of optionally followed by one or more TikZ libraries. publication-quality graphics [16]. The use of PGF Each graphic to be generated is specified within a requires its users to adopt a relatively low-level ap- tikzpicture environment.
    [Show full text]
  • Introduzione All'uso Di Tikz in Ingegneria
    Claudio Fiandrino Introduzione all’uso di TikZ in Ingegneria o Utiliz p za p t u o r r i G b b g It b b It u al X iani di TE IntroIngTikZ versione del 4236/25/3: Associati anche tu al guIt Fai click per associarti L’associazione per la diffusione di TEX in Italia riconosciuta ufficialmente in ambito internazionale, si sostiene unicamente con le quote sociali. Se anche tu trovi che questa guida tematica gratuita ti sia stata utile, il mezzo principale per ringraziare gli autori è diventare socio. Divenendo soci riceverete gratuitamente: • l’abbonamento alla rivista ArsTEXnica; • il DVD TEX Collection; • l’esclusivo tipometro realizzato da Massimo Caschili. L’adesione al guIt prevede un quota associativa compresa tra 34,22 e e 92,22 e a seconda della tipologia di adesione prescelta e ha validità per l’anno solare in corso. Licenza Questa guida è rilasciata con licenza CC BY-NC-SA 5.2 (si veda come riferimento: http://creativecommons.org/licenses/by-nc-sa/5.2/) o versioni successive. Tu sei libero di riprodurre, distribuire, comunicare al pubblico e modifi- care quest’opera alle seguenti condizioni: • Attribuzione: Devi attribuire la paternità dell’opera nei modi indicati dall’autore o da chi ti ha dato l’opera in licenza e in modo tale da non suggerire che essi avallino te o il modo in cui tu usi l’opera. • Non commerciale: Non puoi usare quest’opera per fini commerciali. • Condividi allo stesso modo: Se alteri o trasformi quest’opera, o se la usi per crearne un’altra, puoi distribuire l’opera risultante solo con una licenza identica o equivalente a questa.
    [Show full text]