From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id AGCsNPb3v2SAugAASxT56A (envelope-from ) for ; Tue, 25 Jul 2023 18:27:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cL+gNPb3v2Q0lQAA9RJhRA (envelope-from ) for ; Tue, 25 Jul 2023 18:27:34 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5E7F463DBB for ; Tue, 25 Jul 2023 18:27:34 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=WjUe6Dwt; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690302454; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=FZ8lm/63x1uZaaypoL5WGoenfurpGZxcmZSbAhFMfUM=; b=upC2+d4cPLrOuyZF65bJk8XxdN46PpoEIJJ1dxbyf9PDObKXKVfKhB1ZU0/wLWEeXmJAFo xJtJXM/6Ol9TBGbWwsO4jt/TqP6wKx5Dei/Pj4aQl0ULcjUp/Mn0Yhhv/WDNZvyR5lFJtp IXrrGpdFFicgvGnlIEt4ssnVA7LETGs+MWVSoldY7g82ZiecfO7x7pi5CsTgBvA0RslCk6 +NtT1kU9QkUGSrOXxbYFoyWDsdC8cnM756Qd9yqXLwAqN11l0AflstIsg6cdPuiexRxfQF 4g841ZoxJisvHGfbO1EZnlbt6ykTE9aj8f4FoK9sHkjU8xpX89pqmpLXKeYi6Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=WjUe6Dwt; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690302454; a=rsa-sha256; cv=none; b=CtlPihbfdJw4cgYOxCddCtBODw4n4NjvYn/Js8BmWudhDjIRaLRWpg9NnK/ft9tmsy5oKA /5rVAfx8UmqEfwWtz2SmIoHJ7OblqBNpPAN17vLQyAk0yYCuzaQUp2W5kTY3Dw99oMG7oc xhR4b21hfWeRCzaLnKHNYPpipsDDVS+mXuG4HIzoUF1k6FsdsAvve5B42KdQo1PfF3ZWEx 49DsuW8hL4oZpv1UXplRDRpIb5ihAJ+996kh/z9IZnXBTZ26MXK933IFzP6QKFcpWZMQj0 Ka0rV2WCWIT+t8aHR5e7JdoQM4Q+4ECXCEGyT/pPynGF7RQK/ndqksxpzw0OVw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOKs7-0007FJ-D9; Tue, 25 Jul 2023 12:26:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOKs6-0007Ew-90 for emacs-orgmode@gnu.org; Tue, 25 Jul 2023 12:26:50 -0400 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qOKs4-0004Ss-IS for emacs-orgmode@gnu.org; Tue, 25 Jul 2023 12:26:50 -0400 Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-263121cd04eso2863204a91.2 for ; Tue, 25 Jul 2023 09:26:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690302407; x=1690907207; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FZ8lm/63x1uZaaypoL5WGoenfurpGZxcmZSbAhFMfUM=; b=WjUe6DwtUKZ4+xVTtgC2H0yxNfxnMtyUOryL8kDrX+g1HFXiZsa4uY018B2qL4kR6g vZ9dQiLOgu4OEvu6xaKyHnWfrlPoxspaQGXIXOc5tXGWbGJm90Vf1U7DEf2qrC8lHCPA rd0QGF6bqQGTuiSdOd+XEK4310RoGcqP08jv8F7rOBZgby8UsLs1yYxfhPMZG8ega2I+ sv6tA4W2snlqGrLJ3ojPSDyFqyg3MZqTqlkxHPAQFIiVcB/fGnV9ithaXpRgxWCGKB/a usn/PLpfrJWyVti2HdWy1XU7e1oOGvCY6JcUVqcuaQFpAmEy2OCd0mpxJhU/2JeesViK dT6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690302407; x=1690907207; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FZ8lm/63x1uZaaypoL5WGoenfurpGZxcmZSbAhFMfUM=; b=QOQ5kIo2tMOqbr/gYWV/8aglycILv+1SeQRbt1z079OWn0XdVWndP2+pVb5bOR5hY6 FiDdfziBEtG/91tv83IIHFvAAORhsq9uVaTF+95x0gCj96yPbIa6Z+kBKDQLL90nnqS6 mxMh1VQT98gjb2AmVWdauBewzlvVvE7WmiA1PwTqoBJd5FWYsCjdAjAaAct8auRnsJTS nhKWLw0TdQWzwX/ShISN0Eq//0oy9mp9uIP/Ft7a30XWTa+RbY8f4ubNFZYZsIXuAboM nGWbbFEfxl5wJUOWGzlvTwpZu8Xq323SxhA+2irfABm6lcjwyxyxkQxqWfOOcuUmt4b9 QyvQ== X-Gm-Message-State: ABy/qLYE90vykLBcaoIQdinoOmL2Wm3Df0UmkKmCaMOyqlCRcwK12WcT IGriL/eFHgF6GpBR4PIUdZUmiNtnDnEfEmJdmbc= X-Google-Smtp-Source: APBJJlFyLJCSWP6JnkA088Qqn0+wtpVfyXTU/VAGcXZJsWyYt28iqFjN56jq9iYnEA5HpwFK/cgdaimpIJsQTRNwnU4= X-Received: by 2002:a17:90b:4a08:b0:262:b6aa:8ab5 with SMTP id kk8-20020a17090b4a0800b00262b6aa8ab5mr10638929pjb.41.1690302407027; Tue, 25 Jul 2023 09:26:47 -0700 (PDT) MIME-Version: 1.0 References: <87bl9rq29m.fsf@gnu.org> <875yzzilq0.fsf@cnrs.fr> <871ram4x83.fsf@web.de> <87a5w15jur.fsf@localhost> <87fs5svjqb.fsf@autistici.org> <87a5w0yvhf.fsf@localhost> <87ilam3bv1.fsf@autistici.org> <877cr2id09.fsf@localhost> <87zg3uxyba.fsf@autistici.org> <87sf9lv9ta.fsf@localhost> <878rbchyt9.fsf@autistici.org> <87edl3xdhe.fsf@localhost> <87tttyjw6b.fsf@autistici.org> <878rb990n5.fsf@localhost> <87r0p1pk2y.fsf@autistici.org> <87jzus8ive.fsf@localhost> In-Reply-To: From: Henrik Frisk Date: Tue, 25 Jul 2023 18:26:35 +0200 Message-ID: Subject: Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?) To: Ihor Radchenko Cc: Jonathan Gregory , "Dr. Arne Babenhauserheide" , "Victor A. Stoichita" , emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="00000000000088af7a060152323d" Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=frisk.h@gmail.com; helo=mail-pj1-x102d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -9.52 X-Migadu-Queue-Id: 5E7F463DBB X-Migadu-Spam-Score: -9.52 X-Migadu-Scanner: mx0.migadu.com X-TUID: 2KX39QGa2ait --00000000000088af7a060152323d Content-Type: text/plain; charset="UTF-8" Den tis 25 juli 2023 kl 18:16 skrev Henrik Frisk : > Hi, > > I have been struggling with the same issues to but have completely missed > this thread. I haven't tried the patch of ob-lilypond but testing the file > https://git.sr.ht/~bzg/worg/tree/6f69d212f41bc372426dc9b4df286638fe8f2a92/item/org-contrib/babel/examples/lilypond.org > I'm getting cropped output with pdf, but not png (generates full page). > Also, omitting the paper stuff I still get the same cropped output wit pdf: > > #+begin_src lilypond :file ionian.png > \version "2.24.1" > \relative c' { > c d e f > g a b c > b a g f > e d c d > e f g a > b c b a > g f e d > c1 > } > #+end_src > > Adding #(ly:set-option 'crop #t) to the file gives a cropped output in > the file 'ionian.cropped.png' but the ionian.png is still fullpage. I was > looking in ob-lilypond to change the outputfile name but the easy solution > is to just give the cropped name as the :file argument: > > :file ionian.cropped.png > > Then the file is shown inline in the #+RESULT: block. This works for other > file formats two, like pdf and eps. > > Here's a short version: > > #+begin_src lilypond :file ionian.cropped.png > \Version "2.24.1" > #(ly:set-option 'crop #t) > \relative c' { > c d e f > } > #+end_src > > My bad, putting :file ionian.cropped.png only results in ionian.cropped.cropped.png (as expected). Unclear why it worked the first couple of times. /Henrik --00000000000088af7a060152323d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
Den tis 25 juli 2023 kl 18:16 skrev H= enrik Frisk <frisk.h@gmail.com&= gt;:
Hi,

I have been struggling with the sam= e issues to but have completely missed this thread. I haven't tried the= patch of ob-lilypond but testing the file https://git.sr.ht/~bzg/worg/tree/= 6f69d212f41bc372426dc9b4df286638fe8f2a92/item/org-contrib/babel/examples/li= lypond.org I'm getting cropped output with pdf, but not png (genera= tes full page). Also, omitting the paper stuff I still get the same cropped= output wit pdf:

#+begin_src lilypond :file ionian= .png
=C2=A0\version "2.24.1"
=C2=A0 =C2=A0 \relative= c' {
=C2=A0 =C2=A0 =C2=A0 c d e f
=C2=A0 =C2=A0 =C2=A0 g a b c=C2=A0 =C2=A0 =C2=A0 b a g f
=C2=A0 =C2=A0 =C2=A0 e d c d
=C2=A0 = =C2=A0 =C2=A0 e f g a
=C2=A0 =C2=A0 =C2=A0 b c b a
=C2=A0 =C2=A0 =C2= =A0 g f e d
=C2=A0 =C2=A0 =C2=A0 c1
=C2=A0 =C2=A0 }
#+end_s= rc

Adding=C2=A0 #(ly:set-option 'crop #t) to t= he file gives a cropped output in the file 'ionian.cropped.png' but= the ionian.png is still fullpage. I was looking in ob-lilypond to change t= he outputfile name but the easy solution is to just give the cropped name a= s the :file argument:

:file ionian.cropped.png

Then the file is shown inline in the #+RESULT: block.= This works for other file formats two, like pdf and eps.

Here's a short version:

#+begin_src li= lypond :file ionian.cropped.png
=C2=A0 \Version "2.24.1"
= =C2=A0 =C2=A0 #(ly:set-option 'crop #t)
=C2=A0 =C2=A0 \relative c= 9; {
=C2=A0 =C2=A0 =C2=A0 c d e f
=C2=A0 =C2=A0 }
#+end_src
<= div>
My bad, putting :file ionian.cropped.= png only results in ionian.cropped.cropped.png (as expected). Unclear why = it worked the first couple of times.

/Henrik
--00000000000088af7a060152323d--