From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Jakob_Sch=c3=b6ttl?= Subject: [latex export/babel] pass arguments to \includegraphics from code blocks Date: Mon, 22 Apr 2019 19:46:28 +0200 Message-ID: <7c368b05-1572-6e47-8557-2f096cc7b979@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:56001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIdDX-0002Fr-Kq for emacs-orgmode@gnu.org; Mon, 22 Apr 2019 13:59:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hId1U-0002uD-Db for emacs-orgmode@gnu.org; Mon, 22 Apr 2019 13:46:33 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:37932) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hId1U-0002tM-4l for emacs-orgmode@gnu.org; Mon, 22 Apr 2019 13:46:32 -0400 Received: by mail-wr1-x435.google.com with SMTP id f14so16071534wrj.5 for ; Mon, 22 Apr 2019 10:46:31 -0700 (PDT) Received: from ?IPv6:2a02:810d:4140:2090:2afd:17e1:75c7:c0c8? ([2a02:810d:4140:2090:2afd:17e1:75c7:c0c8]) by smtp.googlemail.com with ESMTPSA id w12sm35031630wrg.29.2019.04.22.10.46.29 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 22 Apr 2019 10:46:29 -0700 (PDT) Content-Language: de-DE 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.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hi, I want to use code blocks to generate and include images of sheet mus= ic: #+BEGIN_SRC lilypond :file test.png :exports results \header{tagline=3D""} { a b c } #+END_SRC When doing a latex export the result is: \begin{center} \includegraphics[width=3D.9\linewidth]{test.png} \end{center} Is there a way to specify the arguments for \includegraphics? For=20 example I want to change the display width. Putting these lines above the code block have no effect: #+ATTR_LATEX: :width 4cm #+CAPTION: xxx Maybe this requires a change in ob-lilypond.el to introduce new header=20 arguments for the source block? Regards, Jakob