IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 16, 2015, 3:20:36 PM (11 years ago)
Author:
watersc1
Message:

Update render script to better format exponents. Fix typos pointed out in emails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/config/render.pl

    r38867 r38868  
    88
    99
    10 open(RR,">./render.tex");
     10open(RR,">./schema.tex");
    1111
    1212render_pre();
     
    8989
    9090if (1) {
    91     open(RR,">./render_by_name.tex");
     91    open(RR,">./schema_by_name.tex");
    9292    # Sort by not-a-phot-key, then phot-key alphabetica, then table sequential.
    9393    foreach my $ppk (sort (keys (%phot_keys))) {
     
    195195    $name =~ s/^\s+//;
    196196    $name =~ s/_/\\_/g;
    197     $unit =~ s/\^([\d\/-]*)/\$^$1\$/g;
    198     $desc =~ s/\^([\d\/-]*)/\$^$1\$/g;
     197    $unit =~ s/\^([\d\/\-\.]*)/\$^\{$1\}\$/g;
     198    $desc =~ s/\^([\d\/\-\.]*)/\$^\{$1\}\$/g;
    199199    $desc =~ s/_/\\_/g;
    200200    $desc =~ s/\&/\\\&/g;
     
    213213    $name =~ s/^\s+//;
    214214    $name =~ s/_/\\_/g;
    215     $unit =~ s/\^([\d\/-]*)/\$^$1\$/g;
    216     $desc =~ s/\^([\d\/-]*)/\$^$1\$/g;
     215    $unit =~ s/\^([\d\/\-\.]*)/\$^\{$1\}\$/g;
     216    $desc =~ s/\^([\d\/\-\.]*)/\$^\{$1\}\$/g;
    217217    $desc =~ s/_/\\_/g;
    218218    $desc =~ s/\&/\\\&/g;
Note: See TracChangeset for help on using the changeset viewer.