io.pdf

abjad.tools.io.pdf(target=-1)

Call pdf( ) to open PDF output files generated by Abjad.

abjad> t = Note(0, (1, 4))
abjad> show(t)

The input above renders a PDF output file and opens it.

If you close the PDF output file and want to open it again, call pdf( ).

abjad> pdf( )

Use pdf( ) to open the last PDF output file after it has been closed.

  • When target = -1 open the last PDF output file.
  • When target = -2 open the next-to-last PDF output file.
  • When target = -3 open the next-to-next-to-last PDF output file.
  • When target is positive open target.pdf.

Note

By default, Abjad writes LilyPond input files to the ~/.abjad/output directory. You may change this by setting the abjad_output variable in the config.py file.

Previous topic

io.ly

Next topic

io.play

This Page