[Rivet-svn] rivet: Grandfather in an old experimental change to make-plots, ...

Rivet Mercurial rivet at projects.hepforge.org
Sat Feb 18 14:00:02 GMT 2017


details:   https://rivet.hepforge.org/hg/rivet/rev/c48b98cb563e
branches:  fastplot
changeset: 5691:c48b98cb563e
user:      Andy Buckley <andy at insectnation.org>
date:      Mon Feb 13 23:53:02 2017 +0000
description:
Grandfather in an old experimental change to make-plots, to use pdflatex, standalone/preview, batch compilation, etc.

diffs (truncated from 523 to 50 lines):

--- a/bin/make-plots	Wed Oct 12 17:13:55 2016 +0100
+++ b/bin/make-plots	Mon Feb 13 23:53:02 2017 +0000
@@ -576,80 +576,21 @@
 
 
     def write_header(self,inputdata):
-        if inputdata.description.has_key('LeftMargin') and inputdata.description['LeftMargin']!='':
-            inputdata.description['LeftMargin'] = float(inputdata.description['LeftMargin'])
-        else:
-            inputdata.description['LeftMargin'] = 1.4
-        if inputdata.description.has_key('RightMargin') and inputdata.description['RightMargin']!='':
-            inputdata.description['RightMargin'] = float(inputdata.description['RightMargin'])
-        else:
-            inputdata.description['RightMargin'] = 0.35
-        if inputdata.description.has_key('TopMargin') and inputdata.description['TopMargin']!='':
-            inputdata.description['TopMargin'] = float(inputdata.description['TopMargin'])
-        else:
-            inputdata.description['TopMargin'] = 0.65
-        if inputdata.description.has_key('BottomMargin') and inputdata.description['BottomMargin']!='':
-            inputdata.description['BottomMargin'] = float(inputdata.description['BottomMargin'])
-        else:
-            inputdata.description['BottomMargin'] = 0.95
+        out = '\\begin{multipage}\n'
+        out += '\\begin{pspicture}(0,0)(0,0)\n'
+        out += '\\psset{xunit=%scm}\n' %(inputdata.description['PlotSizeX'])
         if inputdata.description['is2dim']:
-            inputdata.description['RightMargin'] += 1.7
-        papersizex = inputdata.description['PlotSizeX'] + 0.1 + \
-                     inputdata.description['LeftMargin'] + inputdata.description['RightMargin']
-        papersizey = inputdata.description['PlotSizeY'] + inputdata.description['RatioPlotSizeY'] + 0.1 + \
-                     inputdata.description['TopMargin'] + inputdata.description['BottomMargin']
-        #
-        out = ""
-        out += '\\documentclass{article}\n'
-        if opts.OUTPUT_FONT == "MINION":
-            out += ('\\usepackage{minion}\n')
-        elif opts.OUTPUT_FONT == "PALATINO_OSF":
-            out += ('\\usepackage[osf,sc]{mathpazo}\n')
-        elif opts.OUTPUT_FONT == "PALATINO":
-            out += ('\\usepackage{mathpazo}\n')
-        elif opts.OUTPUT_FONT == "TIMES":
-            out += ('\\usepackage{mathptmx}\n')
-        elif opts.OUTPUT_FONT == "HELVETICA":
-            out += ('\\renewcommand{\\familydefault}{\\sfdefault}\n')
-            out += ('\\usepackage{sfmath}\n')
-            out += ('\\usepackage{helvet}\n')
-            out += ('\\usepackage[symbolgreek]{mathastext}\n')
-        for pkg in opts.LATEXPKGS:
-            out += ('\\usepackage{%s}\n' % pkg)
-        out += ('\\usepackage{pst-all}\n')


More information about the Rivet-svn mailing list