diff options
author | Karl Berry <karl@freefriends.org> | 2020-08-16 21:36:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-08-16 21:36:48 +0000 |
commit | f2ddeb34c8c5b158be426a21845025267f17dea1 (patch) | |
tree | 61e269bbd614bcd6792c9c97fb760cd1df41064b /Master/texmf-dist/doc/support/tikztosvg/README.md | |
parent | 54319b9ec014682aec96a7b67f2debf26fd0757d (diff) |
tikztosvg (16aug20)
git-svn-id: svn://tug.org/texlive/trunk@56122 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/support/tikztosvg/README.md')
-rw-r--r-- | Master/texmf-dist/doc/support/tikztosvg/README.md | 66 |
1 files changed, 27 insertions, 39 deletions
diff --git a/Master/texmf-dist/doc/support/tikztosvg/README.md b/Master/texmf-dist/doc/support/tikztosvg/README.md index 683461931e1..ac986ae7472 100644 --- a/Master/texmf-dist/doc/support/tikztosvg/README.md +++ b/Master/texmf-dist/doc/support/tikztosvg/README.md @@ -1,79 +1,67 @@ # tikztosvg(1) -Pablo Emílio Escobar Gaviria <pablo-escobar@riseup.net> -The `tikztosvg(1)` command renders TikZ diagrams to SVG, using -[`bash`](https://www.gnu.org/software/bash/), [`xetex`](http://xetex.sourceforge.net/) and -[`pdf2svg`](https://github.com/dawbarton/pdf2svg). +Pablo Emilio Escobar Gaviria <<pablo-escobar@riseup.net>> + +The `tikztosvg(1)` command renders TikZ diagrams to SVG, using [`xetex`](http://xetex.sourceforge.net/) and [`pdf2svg`](https://github.com/dawbarton/pdf2svg). ## Usage -``` -tikztosvg [OPTION]... INPUT_PATH -``` + tikztosvg [OPTION]... INPUT_PATH + +If *INPUT\_PATH* is set to *-* the input will be read from stdin. ### Options -**-o, --output=OUTPUT_PATH** -* Write output to file *OUTPUT_PATH*. - Defaults to the base name of the input file suffixed with the _.svg_ - extension. The file is resolved relative to the working directory. +**-o, --output**=*OUTPUT\_PATH* +Write output to file *OUTPUT\_PATH*. If set to *-* the output will be written to stdout. Defaults to the base name of the input file suffixed with the *.svg* extension. The file is resolved relative to the working directory. -**-p, --package=+PACKAGE** -* Include `\usepackage{PACKAGE}` when rendering the diagram. +**-p, --package**=+*PACKAGE* +Include `\usepackage{PACKAGE}` when rendering the diagram. -**-q, --quiet** -* Silence application log messages and script warnings. +**-q, --quiet** +Silence application log messages and script warnings. -**-h, --help** -* Print a help message. +**-h, --help** +Print a help message. -**-v, --version** -* Print version information. +**-v, --version** +Print version information. ## Example -Let's say you want to convert the file `exemple.tikz` to SVG: +Let’s say you want to convert the file `example.tikz` to SVG: -```tex +``` latex \begin{tikzcd} G \arrow[r, "\varphi"] \arrow[d, "\psi"', two heads] & H \\ - \sfrac{G}{\ker \varphi} \arrow[ru, dotted] & + \sfrac{G}{\ker \varphi} \arrow[ru, dotted] & \end{tikzcd} ``` You could achieve that by running the following command: -``` -tikztosvg -p tikz-cd -p xfrac example.tikz -``` + tikztosvg -p tikz-cd -p xfrac example.tikz The results will be stored in the file `example.svg`: -![example](https://github.com/GarkGarcia/tikztosvg/raw/master/example/example.svg) +![example](examples/example.svg) ## Installation -The `tikztosvg(1)` command and it's man page can be installed in Unix systems by -running: +The `tikztosvg(1)` command and it’s man page can be installed in Unix systems by running: -``` -$ curl -s https://raw.githubusercontent.com/GarkGarcia/tikztosvg/master/install.sh | sudo sh -``` + $ curl -s https://gitlab.com/pablo-escobar/tikztosvg/-/raw/master/install.sh | sudo sh -The executable is installed in `$HOME/.local/bin/` and the man-page is -installed in `$HOME/.local/share/man/man1/`. +The executable is installed in `$HOME/.local/bin/` and the man-page is installed in `$HOME/.local/share/man/man1/`. ## Authors -**TikzToSvg** was written by -[Pablo Emílio Escobar Gavira](mailto:pablo-escobar@riseup.net). +**tikztosvg** was written by [Pablo Emilio Escobar Gaviria](mailto:pablo-escobar@riseup.net). -**pdf2svg** was written by [David Barton](mailto:davebarton@cityinthesky.co.uk) -and [Matthew Flaschen](mailto:matthew.flaschen@gatech.edu). +**pdf2svg** was written by [David Barton](mailto:davebarton@cityinthesky.co.uk) and [Matthew Flaschen](mailto:matthew.flaschen@gatech.edu). ## License -© 2020 Pablo Emílio Escobar Gaviria. +© 2020 Pablo Emilio Escobar Gaviria. Free use of this software is granted under the terms of the GPL-3.0 License. - |