David Kastrup <d...@gnu.org> writes:

> Peter Van Kranenburg <peter.van.kranenb...@meertens.knaw.nl> writes:
>
>> Dear all,
>>
>> I have to provide a bitmapped image to a publisher:
>> 1200dpi, width: 11cm. It only contains one system.
>>
>> This implies a width of (11.0/2.54)*1200.0 = 5196 pixels.
>>
>> I followed the directions from the 'usage' manual, and I put this on
>> top of my source file.
>>
>> \paper{
>>   indent=0\mm
>>   line-width=110\mm
>>   oddFooterMarkup=##f
>>   oddHeaderMarkup=##f
>>   bookTitleMarkup = ##f
>>   scoreTitleMarkup = ##f
>>   ragged-right = ##f
>>   ragged-last = ##f
>> }
>>
>> However. The resulting pdf has a width of 11.19 cm, and the png a
>> width of 5283 pixels, which is too large.
>>
>> I tried to add:
>>
>>   left-margin=0\mm
>>   right-margin=0\mm
>>   paper-width=110\mm
>>   check-consistency=##t
>>
>> Then I get a width of 11.15 cm.
>>
>> How can I set the with of resulting pdf at exactly 11.0 cm?
>
> Try setting the paper-width variable.

Sorry, I should better read to the end before replying.  However,
writing
\paper { paper-width=110\mm }
\score { { c4 c4 c4 c4 } }
and using
lilypond -dresolution=1200 --png
I get an image with 5197 pixels width, which is to a pixel exactly what
was demanded.  So perhaps you need to check what throws a spanner in
your works, starting from a simple paper definition.

-- 
David Kastrup


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to