You don't say what environment you're on but you can always create a shell or batch file like this:
#!/bin/bash LY_HOME=/path/to/lilypond/lilypond-2.22.1/bin $LY_HOME/lilypond --pdf $@ $LY_HOME/lilypond --svg $@ -- Knute Snortum On Fri, Jun 11, 2021 at 2:44 AM m.tarensk...@kpnmail.nl <m.tarensk...@kpnmail.nl> wrote: > > Is it really so much more work to type two sequential lilypond commands on > the commandline instead of one single commandbwith two different options? > > Verzonden vanaf mijn Huawei mobiele telefoon > > > -------- Oorspronkelijk bericht -------- > Onderwerp: Output to SVG and PDF > Van: Jostle > Aan: lilypond-user@gnu.org > Cc: > > > Is there a way to generate BOTH svg AND pdf format output from one run > of lilypond? > > I have tried putting both --svg and --pdf on the command line, but all I > get is the svg output. > > Is it possible to define the output format in the .ly file in a \book > section? > > > Thanks, > > jostle > > >