From 21615fe6ba7075f4bd19e3a78f559ba9df86d262 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 26 Aug 2017 16:10:55 +0200 Subject: [PATCH] Add proper author info and license header to the inkscape.xtemplate related files --- lib/scripts/svg2pdftex.py | 15 ++++++++------- lib/scripts/svg2pstex.py | 9 ++++++++- lib/xtemplates/inkscape.xtemplate | 1 + 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/lib/scripts/svg2pdftex.py b/lib/scripts/svg2pdftex.py index cd9a4840bd..6cbd531d5f 100644 --- a/lib/scripts/svg2pdftex.py +++ b/lib/scripts/svg2pdftex.py @@ -2,7 +2,14 @@ # -*- coding: utf-8 -*- # file svg2pdftex.py -# +# This file is part of LyX, the document processor. +# Licence details can be found in the file COPYING. + +# author Daniel Gloger +# author Martin Vermeer + +# Full author contact details are available in file CREDITS + # This script converts an SVG image to something that pdflatex can process # into high quality PDF. @@ -19,11 +26,8 @@ # the real pdf file will be overwritten by a tex file named file.pdf. # - - import os, sys, re - def runCommand(cmd): ''' Utility function: run a command, quit if fails @@ -32,7 +36,6 @@ def runCommand(cmd): print "Command '%s' fails." % cmd sys.exit(1) - # We expect two args, the names of the input and output files. if len(sys.argv) != 3: sys.exit(1) @@ -46,8 +49,6 @@ if not os.path.isfile(input): # Strip the extension from ${output} outbase = os.path.splitext(output)[0] - - # Inkscape 0.48 can output the image as a PDF file ${base}.pdf and place the text # in a LaTeX file ${base}.pdf_tex, which is renamed to ${output}, for typesetting # by pdflatex itself. diff --git a/lib/scripts/svg2pstex.py b/lib/scripts/svg2pstex.py index 72d30740d8..601d2b9330 100644 --- a/lib/scripts/svg2pstex.py +++ b/lib/scripts/svg2pstex.py @@ -2,10 +2,17 @@ # -*- coding: utf-8 -*- # file svg2pstex.py -# +# This file is part of LyX, the document processor. +# Licence details can be found in the file COPYING. + +# author Daniel Gloger +# author Martin Vermeer + # This script converts an SVG image to something that latex can process # into high quality PostScript. +# Full author contact details are available in file CREDITS + # Usage: # python svg2pstex.py ${base}.fig ${base}.pstex # This command generates diff --git a/lib/xtemplates/inkscape.xtemplate b/lib/xtemplates/inkscape.xtemplate index e1214704bc..867800f407 100644 --- a/lib/xtemplates/inkscape.xtemplate +++ b/lib/xtemplates/inkscape.xtemplate @@ -4,6 +4,7 @@ # This file is part of LyX, the document processor. # Licence details can be found in the file COPYING. # +# author Daniel Gloger # author Martin Vermeer # # based on external templates by: -- 2.39.5