From cf6f10a04b97cd6249a839e2ae7e8c133785f6d6 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sun, 5 Feb 2017 23:24:07 -0500 Subject: [PATCH] Don't export stupid latex output --- src/export_as/latex.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/export_as/latex.js b/src/export_as/latex.js index 0850f2e..eb525ef 100644 --- a/src/export_as/latex.js +++ b/src/export_as/latex.js @@ -5,19 +5,10 @@ function ExportAsLaTeX() { this._scale = 0.1; // to convert pixels to document space (TikZ breaks if the numbers get too big, above 500?) this.toLaTeX = function() { - return '\\documentclass[12pt]{article}\n' + - '\\usepackage{tikz}\n' + - '\n' + - '\\begin{document}\n' + - '\n' + - '\\begin{center}\n' + - '\\begin{tikzpicture}[scale=0.2]\n' + + return '\\begin{tikzpicture}[scale=0.2]\n' + '\\tikzstyle{every node}+=[inner sep=0pt]\n' + this._texData + - '\\end{tikzpicture}\n' + - '\\end{center}\n' + - '\n' + - '\\end{document}\n'; + '\\end{tikzpicture}'; }; this.beginPath = function() {