[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lilypond-auto] Issue 4251 in lilypond: Enhancement: Reduce size of
From: |
lilypond |
Subject: |
Re: [Lilypond-auto] Issue 4251 in lilypond: Enhancement: Reduce size of PDF files when included in *TeX documents |
Date: |
Sun, 11 Jan 2015 16:10:22 +0000 |
Updates:
Labels: -Patch-review Patch-needs_work
Comment #5 on issue 4251 by address@hidden: Enhancement: Reduce size of
PDF files when included in *TeX documents
https://code.google.com/p/lilypond/issues/detail?id=4251
On 09/01/15 11:23, Knut Petersen wrote:> Hi James!
Attached is a small *.tex document that can be translated by xelatex or
lualatex,
one page including four small snippets.
It demonstrates that also small documents with only a few snippets
benefit from
the --bigpdf patch. lualatex must be called with the --shell-escape
parameter to
allow it to execute lilypond and pdfcrop (obviously that needs to be
installed).
Be aware of the fact that translation will also generate (or overwrite
!) some aux
files named tmplilytail.ly, tmplilyhead.ly, tmplilypaper.ly, tmplily.ly,
tmplilyfrag1.pdf,
tmplilyfrag3.pdf, tmplilyfrag2.pdf, tmplilyfrag4.pdf.
Edit line 22 to contain the path to your lilypond test executable (dont
delete the
space after lilypond) and line 23 to either contain nothing or --bigpdf.
Then translate test.tex to pdf with
lualatex --shell-escape test
gs -sDEVICE=pdfwrite -o testtmp.pdf test.pdf
pdfsizeopt.py --use-multivalent=no testtmp.pdf testfinal.pdf
dir test*pdf --sort=time | tac
With line 23 "\def\lilyparms{ }" I get
-rw-r--r-- 1 knut users 173538 9. Jan 11:53 test.pdf
-rw-r--r-- 1 knut users 157303 9. Jan 11:53 testtmp.pdf
-rw-r--r-- 1 knut users 149945 9. Jan 11:53 testfinal.pdf
With line 23 "\def\lilyparms{ --bigpdf }" I get
-rw-r--r-- 1 knut users 879441 9. Jan 11:55 test.pdf
-rw-r--r-- 1 knut users 63359 9. Jan 11:55 testtmp.pdf
-rw-r--r-- 1 knut users 59437 9. Jan 11:55 testfinal.pdf
cu,
Knut
Attachments:
test.tex 6.5 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
- [Lilypond-auto] Issue 4251 in lilypond: Enhancement: Reduce size of PDF files when included in *TeX documents, lilypond, 2015/01/08
- Re: [Lilypond-auto] Issue 4251 in lilypond: Enhancement: Reduce size of PDF files when included in *TeX documents, lilypond, 2015/01/08
- Re: [Lilypond-auto] Issue 4251 in lilypond: Enhancement: Reduce size of PDF files when included in *TeX documents, lilypond, 2015/01/08
- Re: [Lilypond-auto] Issue 4251 in lilypond: Enhancement: Reduce size of PDF files when included in *TeX documents, lilypond, 2015/01/09
- Re: [Lilypond-auto] Issue 4251 in lilypond: Enhancement: Reduce size of PDF files when included in *TeX documents, lilypond, 2015/01/09
- Re: [Lilypond-auto] Issue 4251 in lilypond: Enhancement: Reduce size of PDF files when included in *TeX documents,
lilypond <=
- Re: [Lilypond-auto] Issue 4251 in lilypond: Enhancement: Reduce size of PDF files when included in *TeX documents, lilypond, 2015/01/11
- Re: [Lilypond-auto] Issue 4251 in lilypond: Enhancement: Reduce size of PDF files when included in *TeX documents, lilypond, 2015/01/11
- Re: [Lilypond-auto] Issue 4251 in lilypond: Enhancement: Reduce size of PDF files when included in *TeX documents, lilypond, 2015/01/11
- Re: [Lilypond-auto] Issue 4251 in lilypond: Enhancement: Reduce size of PDF files when included in *TeX documents, lilypond, 2015/01/11
- Re: [Lilypond-auto] Issue 4251 in lilypond: Enhancement: Reduce size of PDF files when included in *TeX documents, lilypond, 2015/01/11
- Re: [Lilypond-auto] Issue 4251 in lilypond: Enhancement: Reduce size of PDF files when included in *TeX documents, lilypond, 2015/01/11
- Re: [Lilypond-auto] Issue 4251 in lilypond: Enhancement: Reduce size of PDF files when included in *TeX documents, lilypond, 2015/01/12
- Re: [Lilypond-auto] Issue 4251 in lilypond: Enhancement: Reduce size of PDF files when included in *TeX documents, lilypond, 2015/01/20
- Re: [Lilypond-auto] Issue 4251 in lilypond: Enhancement: Reduce size of PDF files when included in *TeX documents, lilypond, 2015/01/21
- Re: [Lilypond-auto] Issue 4251 in lilypond: Enhancement: Reduce size of PDF files when included in *TeX documents, lilypond, 2015/01/24