<< xs2tikz xs2tikz Gather Graphic Attributes >>

xs2tikz >> xs2tikz > xs2tikz

xs2tikz

Convert scilab graphic to tikz

Syntax

xs2tikz(filename)
xs2tikz(filename, doctype)
xs2tikz(filename, doctype, license)

Parameters

filename:

path to output LaTeX file

doctype:

either "standalone" or "embeddable"

license:

either "license" or "no_license"

Description

This is the main function. It takes a filename string and optionally two strings:

Optional argument doctype can either be "standalone" for creating a single, buidlable LaTeX file or "embeddable" for an insertable file. Default value is "standalone".

The following preamble in your main document is needed for "embeddable" to work:

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{pgfplots}
\usepackage{grffile}
\pgfplotsset{compat=newest}
\usetikzlibrary{plotmarks}
\usetikzlibrary{arrows.meta}
\usepgfplotslibrary{patchplots}
\usepackage{amsmath}

Optional argument license can either be "license" for showing the toolbox' license information or "no_license". Default value is "no_license"

Examples

//As standalone file
choose_plot_example("simple")
xs2tikz("full_document.tex", "standalone");

//As embeddable file
choose_plot_example("simple")
xs2tikz("only_graph.tex", "embeddable");

//Also show the license
choose_plot_example("simple")
xs2tikz("more.tex", "standalone", "license")

Authors


Report an issue
<< xs2tikz xs2tikz Gather Graphic Attributes >>