From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oliver Heck Subject: Re: Org-babel-lilypond always renders full pages Date: Mon, 30 Mar 2020 08:55:09 +0200 Message-ID: References: <3891f510-f05e-103b-6deb-a8db8a741a83@posteo.de> <87mu7y7lyb.fsf@autistici.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:50602) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIoKL-0004u8-DW for emacs-orgmode@gnu.org; Mon, 30 Mar 2020 02:55:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIoKK-0004yX-2p for emacs-orgmode@gnu.org; Mon, 30 Mar 2020 02:55:17 -0400 Received: from mout01.posteo.de ([185.67.36.65]:46587) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jIoKJ-0004pz-JD for emacs-orgmode@gnu.org; Mon, 30 Mar 2020 02:55:16 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 36F1D16005C for ; Mon, 30 Mar 2020 08:55:10 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 48rNWK4sWpz6tmQ for ; Mon, 30 Mar 2020 08:55:09 +0200 (CEST) In-Reply-To: <87mu7y7lyb.fsf@autistici.org> Content-Language: en-US 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: emacs-orgmode@gnu.org Actually it is sufficient to have \paper{ oddFooterMarkup=##f } for my needs. But now I get the rendered pictures very large in the LaTeX-PDF export. I added (setq org-latex-image-default-width "") to my .spacemacs file but that does not change anything. I am quite new to emacs so please excuse my beginner questions. Thanks, Oliver On 30.03.20 01:58, Jonathan Gregory wrote: > Hi > > On 29 Mar 2020, Oliver Heck wrote: > >> Hi, >> >> I am trying to use org-babel-lilypond and basically got it running. >> But somehow I always get full lilypond pages back instead of a small >> snippet. >> This is what I have in my org-file: >> >> #+NAME: Lilypond >> #+BEGIN_SRC lilypond :file test.png >> \relative c'' { c d e f } >> #+END_SRC >> >> >> I read through the documentation on >> https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html >> but cannot find a clue. >> >> Any idea what I am doing wrong here? >> >> Cheers, >> Oliver > > The lilypond manual suggests using \paper variables to reduce the white > space around the score. In particular, you should set oddFooterMarkup > and oddHeaderMarkup to false. > > \paper{ > indent=0\mm > line-width=120\mm > oddFooterMarkup=##f > oddHeaderMarkup=##f > bookTitleMarkup = ##f > scoreTitleMarkup = ##f > } > > http://lilypond.org/doc/v2.18/Documentation/usage/lilypond-output-in-other-programs > > -- > Jonathan > -- -- If you are thinking without writing, you only think you are thinking. (Leslie Lamport)