Links

Content Skeleton

This Page

Previous topic

Try using mathjax via Sphinx

Next topic

QXML

Hepex Document Building

Current GNUMakefile

Current make commands, omit the special sauce that creates a crisper screen (as opposed to printed) pdf:

simon:EndOfYear11 blyth$ make -n
echo Remaking EndOfYear11.dvi
latex EndOfYear11
bibtex EndOfYear11
./fix_bbl < EndOfYear11.bbl > EndOfYear11.bbl.fixed; mv EndOfYear11.bbl{.fixed,}
latex EndOfYear11
latex EndOfYear11
echo Remaking EndOfYear11.ps
dvips -o EndOfYear11.ps EndOfYear11.dvi
simon:EndOfYear11 blyth$

Build ps and create pdf with:

simon:EndOfYear11 blyth$ make
simon:EndOfYear11 blyth$ ps2pdf -sPAPERSIZE=a4 -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 -dSubsetFonts=true -dEmbedAllFonts=true EndOfYear11.ps
simon:EndOfYear11 blyth$ du -hs *.pdf
4.4M    EndOfYear11.pdf

failure with older latex (cms01)

LaTeX Warning: Citation `Buskulic:1995ty' on page 266 undefined on input line 1
67.

[266]

Package longtable Warning: Column widths have changed
(longtable)                in table 175 on input line 169.

! Undefined control sequence.
\HfagTauBrCorr ...th } \begin {center} \captionof
                                                  {table}{Base nodes correla...
                                                  l.181 \HfagTauBrCorr

                                                  ?

quality

  1. ps2pdf .pdf looks blurry on OSX Leopard in Preview.app
    1. horrendous quality without anti-aliasing
    2. OK but a bit blurry with anti-aliasing
    3. pixelation apparent even with moderate zooming (curiously math is using scalable fonts but text is bitmapped)
    4. compare with b2c section alone, that uses scalable fonts for text and math
  2. Decay angle Figure ~63, ~p228 the planes have psychedelic colors (doing gradients is ambitious)

secret sauce

Even with secret sauce still getting blurry pdf.

$(NAME).pdf : $(NAME).ps
        ps2pdf -sPAPERSIZE=a4 -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 -dSubsetFonts=true -dEmbedAllFonts=true $(NAME).ps

$(NAME).ps: $(NAME).dvi
        dvips -z -Ppdf -G0 $(NAME).dvi -o $(NAME).ps
        # suspect that only -Ppdf is important to creating goodquality pdf nowadays
-z     Pass html hyperdvi specials through to the output for eventual distillation into PDF.
       This is not enabled by default to avoid including the header files unnecessarily, and use of temporary files in
       creating the output.

-P printername
        Sets up the output for the appropriate printer.
        This is implemented by reading in config.printername , which can then set the output pipe
        (as in, !lpr -Pprintername as well as the  font  paths  and
        any  other  config.ps  defaults for that printer only.
        Note that config.ps is read before config.printername
        In addition, another file called ~/.dvipsrc is searched for immediately after config.ps;
        this file is intended for user defaults.
        If no -P command is given, the environment variable PRINTER is checked.
        If that variable exists, and a corresponding configuration file exists,
        that  configuration file is read in.

  -G     Causes dvips to shift non-printing characters to higher-numbered positions.  This may be useful sometimes.

simpler approach

Looks just as grotty:

simon:EndOfYear11 blyth$ PRINTER=pdf make pdf    ## 4.4 MB pdf

Add some sauce, hmm but still just as blurry:

simon:EndOfYear11 blyth$ ps2pdf -sPAPERSIZE=a4 -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 -dSubsetFonts=true -dEmbedAllFonts=true EndOfYear11.ps

Back to dvi:

NAME=EndOfYear11

Hmm still blurry.

Suggestion that blurryness is due to bitmap fonts, that can be remedied using scalable fonts

compare preambles between b2c alone and full hepex

Commenting the line, gets to scalable everywhere:

\usepackage[T1]{fontenc}

Alternatives to this involve moving to a newer tex distribution or installing fonts.

migrate teTeX to texlive

simon:00000 blyth$ port info tex-cm-super
Warning: port definitions are more than two weeks old, consider using selfupdate
tex-cm-super @0.3.4, Revision 1 (tex, print)
Replaced by:          texlive-fonts-recommended
Variants:             universal

Description:          The CM-Super package contains Type 1 fonts converted from METAFONT fonts and covers entire EC/TC, EC Concrete, EC Bright and LH fonts
                      (Computer Modern font families). All European and Cyrillic writings are covered.
                      Each Type 1 font program contains ALL glyphs from the following standard LaTeX font encodings: T1, TS1, T2A, T2B, T2C, X2,
                      and also Adobe StandardEncoding (585 glyphs per non-SC font and 468 glyphs per SC font),
                      and could be reencoded to any of these encodings using standard dvips or pdftex facilities (the corresponding support files are also included).

Platforms:            darwin
License:              unknown
Maintainers:          nomaintainer@macports.org

My latex hails from teTeX, that was abandoned in 2006 http://en.wikipedia.org/wiki/TeX_Live

simon:00000 blyth$ port provides /opt/local/bin/latex
/opt/local/bin/latex is provided by: teTeX

simon:00000 blyth$ port info teTeX
Warning: port definitions are more than two weeks old, consider using selfupdate
teTeX @3.0, Revision 7 (print, textproc)
Replaced by:          texlive
Variants:             universal

Description:          teTeX is a TeX distribution for UNIX compatible systems. It contains the latest versions of TeX & friends and nearly everything you need for happy TeX'ing. For more information have a look at the lengthy FEATURES
                      file of the distribution.
Homepage:             http://www.tug.org/teTeX/

Platforms:            darwin
License:              unknown
Maintainers:          nomaintainer@macports.org