|
[Rivet-svn] r4091 - branches/2012-06-aidarivet/bin trunk/binblackhole at projects.hepforge.org blackhole at projects.hepforge.orgTue Dec 18 08:46:00 GMT 2012
Author: fsiegert Date: Tue Dec 18 08:46:00 2012 New Revision: 4091 Log: make-plots: add Helvetica as output font option. Modified: branches/2012-06-aidarivet/bin/make-plots trunk/bin/make-plots Modified: branches/2012-06-aidarivet/bin/make-plots ============================================================================== --- branches/2012-06-aidarivet/bin/make-plots Mon Dec 17 17:45:07 2012 (r4090) +++ branches/2012-06-aidarivet/bin/make-plots Tue Dec 18 08:46:00 2012 (r4091) @@ -414,6 +414,10 @@ 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') for pkg in opts.LATEXPKGS: out += ('\\usepackage{%s}\n' % pkg) out += ('\\usepackage{pst-all}\n') @@ -2267,6 +2271,8 @@ help="Use Times as font.") parser.add_option("--minion", dest="OUTPUT_FONT", action="store_const", const="MINION", default="PALATINO", help="Use Adobe Minion Pro as font. Note: You need to set TEXMFHOME first.") + parser.add_option("--helvetica", dest="OUTPUT_FONT", action="store_const", const="HELVETICA", default="PALATINO", + help="Use Helvetica as font.") parser.add_option("--ps", dest="OUTPUT_FORMAT", action="store_const", const="PS", default="PDF", help="Create PostScript output (default).") parser.add_option("--pdf", dest="OUTPUT_FORMAT", action="store_const", const="PDF", default="PDF", Modified: trunk/bin/make-plots ============================================================================== --- trunk/bin/make-plots Mon Dec 17 17:45:07 2012 (r4090) +++ trunk/bin/make-plots Tue Dec 18 08:46:00 2012 (r4091) @@ -414,6 +414,10 @@ 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') for pkg in opts.LATEXPKGS: out += ('\\usepackage{%s}\n' % pkg) out += ('\\usepackage{pst-all}\n') @@ -2267,6 +2271,8 @@ help="Use Times as font.") parser.add_option("--minion", dest="OUTPUT_FONT", action="store_const", const="MINION", default="PALATINO", help="Use Adobe Minion Pro as font. Note: You need to set TEXMFHOME first.") + parser.add_option("--helvetica", dest="OUTPUT_FONT", action="store_const", const="HELVETICA", default="PALATINO", + help="Use Helvetica as font.") parser.add_option("--ps", dest="OUTPUT_FORMAT", action="store_const", const="PS", default="PDF", help="Create PostScript output (default).") parser.add_option("--pdf", dest="OUTPUT_FORMAT", action="store_const", const="PDF", default="PDF",
More information about the Rivet-svn mailing list |