Fix LaTeX package checks for tikz an mathpazo by adding .sty to the searched-for package names. Version 1.3.1 pyslha-1.3.1

Sat, 03 Mar 2012 01:15:00 +0100

author
Andy Buckley <andy@insectnation.org>
date
Sat, 03 Mar 2012 01:15:00 +0100
changeset 164
fa5d5692a68b
parent 163
e154d26765ab
child 165
e0e065418fbb

Fix LaTeX package checks for tikz an mathpazo by adding .sty to the searched-for package names. Version 1.3.1

ChangeLog file | annotate | diff | comparison | revisions
pyslha.py file | annotate | diff | comparison | revisions
slhaplot file | annotate | diff | comparison | revisions
     1.1 --- a/ChangeLog	Sat Mar 03 00:28:59 2012 +0100
     1.2 +++ b/ChangeLog	Sat Mar 03 01:15:00 2012 +0100
     1.3 @@ -1,5 +1,10 @@
     1.4  2012-03-03  Andy Buckley  <andy.buckley@cern.ch>
     1.5  
     1.6 +	* Version 1.3.1
     1.7 +
     1.8 +	* Fix LaTeX package checks for tikz an mathpazo by adding .sty to
     1.9 +	the searched-for package names.
    1.10 +
    1.11  	* Version 1.3.0
    1.12  
    1.13  	* Test for presence of the mathpazo package before including it in
     2.1 --- a/pyslha.py	Sat Mar 03 00:28:59 2012 +0100
     2.2 +++ b/pyslha.py	Sat Mar 03 01:15:00 2012 +0100
     2.3 @@ -24,7 +24,7 @@
     2.4  """
     2.5  
     2.6  __author__ = "Andy Buckley <andy.buckley@cern.ch"
     2.7 -__version__ = "1.3.0"
     2.8 +__version__ = "1.3.1"
     2.9  
    2.10  
    2.11  def _autotype(var):
     3.1 --- a/slhaplot	Sat Mar 03 00:28:59 2012 +0100
     3.2 +++ b/slhaplot	Sat Mar 03 01:15:00 2012 +0100
     3.3 @@ -222,7 +222,7 @@
     3.4  ## Test for external packages
     3.5  import tex2pix
     3.6  if opts.FORMAT.needs_compilation():
     3.7 -    if not tex2pix.check_latex_pkg("tikz"):
     3.8 +    if not tex2pix.check_latex_pkg("tikz.sty"):
     3.9          logging.error("LaTeX tikz.sty could not be found: graphical format modes cannot work")
    3.10          sys.exit(1)
    3.11  
    3.12 @@ -464,7 +464,7 @@
    3.13                  out += c + "\\input{%s}\n" % opts.PREAMBLE.replace(".tex", "")
    3.14          else:
    3.15              out += c + "%% Default preamble\n"
    3.16 -            if tex2pix.check_latex_pkg("mathpazo"):
    3.17 +            if tex2pix.check_latex_pkg("mathpazo.sty"):
    3.18                  out += c + "\\usepackage[osf]{mathpazo}\n"
    3.19          #
    3.20          out += c + "\n"

mercurial