From mboxrd@z Thu Jan 1 00:00:00 1970 From: adam Subject: Re: Org-babel-lilypond always renders full pages Date: Thu, 02 Apr 2020 12:23:34 +1300 Message-ID: <4b4d8c35b580aa4f6f17de84aaf17e2cf13e662b.camel@orcon.net.nz> References: <3891f510-f05e-103b-6deb-a8db8a741a83@posteo.de> <87mu7y7lyb.fsf@autistici.org> <914ed623-88fc-7d93-6df6-408297c3086d@posteo.de> <871rpaievd.fsf@gmail.com> <87y2rigz8y.fsf@gmail.com> <87h7y463eu.fsf@autistici.org> <1c038b27c9f8a7eab9041e2c573f6c08ea835dee.camel@orcon.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:34479) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJmhz-0008DL-Mp for emacs-orgmode@gnu.org; Wed, 01 Apr 2020 19:23:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJmhx-0002gW-Vg for emacs-orgmode@gnu.org; Wed, 01 Apr 2020 19:23:43 -0400 Received: from smtp-3.orcon.net.nz ([60.234.4.44]:59151) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jJmhx-0002Xs-J4 for emacs-orgmode@gnu.org; Wed, 01 Apr 2020 19:23:41 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Oliver Heck , emacs-orgmode@gnu.org On Wed, 2020-04-01 at 11:02 +0200, Oliver Heck wrote: > > Off-topic: Oliver is exporting/engraving to a fixed-resolution png. An alternative > > is to export scalable vector graphics of the score to PDF. > > PDF does scale better, but it does not help because I need the original > size embedded. > > Logically it works fine when full staves are rendered (at least they all > have an identical scaling factor then), but I often have very small > snippets like single bars or fretboard diagrams. > > Oliver > Understood, Oliver. And I'm sorry for crashing in. FYI, I have had the most success in using the pdf-example.org of this page, https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html as that exports EPS to PDF, not what you're after. I've cut pdf-example.org down and include an import from midi2ly as shown here. This helps, as the imported ly file has its \layout { .. } block which is informative and allows further editing along with the imported score. * Importing from MIDI Lorem ipsum dolor sit amet, consectetur ... etc #+LaTeX: \linebreak #+ATTR_LaTeX: width=17cm #+begin_src lilypond :file patterns-1.eps :noweb yes \include "patterns1-midi.ly" #+end_src #+RESULTS: [[file:patterns-1.eps]]