From fb68069517cf879b8833b225cc552894c7634fb0 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Mon, 16 May 2011 15:15:04 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@198 ed2142bd-67ad-457f-ba7c-d818d4011675 --- vmodels/latex2svg.sh | 22 ++++++++++++++++++++++ vmodels/lin1d.hpp | 4 +--- 2 files changed, 23 insertions(+), 3 deletions(-) create mode 100755 vmodels/latex2svg.sh diff --git a/vmodels/latex2svg.sh b/vmodels/latex2svg.sh new file mode 100755 index 0000000..60061dc --- /dev/null +++ b/vmodels/latex2svg.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# you need gs-common, pstoedit and skencil to +# get this script working +export BASENAME="`basename $1 .tex`"; +echo $BASENAME + +latex ${BASENAME}.tex + +dvips ${BASENAME}.dvi +# Outline fonts +eps2eps -dNOCACHE ${BASENAME}.ps ${BASENAME}2.ps + +# Fix bounding box +ps2epsi ${BASENAME}2.ps ${BASENAME}.ps +rm ${BASENAME}2.ps + +# Convert to Sketch +pstoedit -f sk ${BASENAME}.ps ${BASENAME}.sk + +# Convert to SVG +skconvert ${BASENAME}.sk ${BASENAME}.svg diff --git a/vmodels/lin1d.hpp b/vmodels/lin1d.hpp index a16ce03..7f150d3 100644 --- a/vmodels/lin1d.hpp +++ b/vmodels/lin1d.hpp @@ -54,9 +54,7 @@ namespace opt_utilities private: std::string do_get_information()const { - return " f(x;k,b)=k x+b \ - \ -"; +#include "lin1d.info" } }; } -- cgit v1.2.2