all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [latex export/babel] pass arguments to \includegraphics from code blocks
@ 2019-04-22 17:46 Jakob Schöttl
  2019-04-22 19:13 ` Nick Dokos
  0 siblings, 1 reply; 3+ messages in thread
From: Jakob Schöttl @ 2019-04-22 17:46 UTC (permalink / raw)
  To: emacs-orgmode

Hi, I want to use code blocks to generate and include images of sheet music:

#+BEGIN_SRC lilypond :file test.png :exports results
\header{tagline=""}
{ a b c }
#+END_SRC

When doing a latex export the result is:

\begin{center}
\includegraphics[width=.9\linewidth]{test.png}
\end{center}

Is there a way to specify the arguments for \includegraphics? For 
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 
arguments for the source block?

Regards, Jakob

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-04-22 20:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-22 17:46 [latex export/babel] pass arguments to \includegraphics from code blocks Jakob Schöttl
2019-04-22 19:13 ` Nick Dokos
2019-04-22 20:33   ` Jakob Schöttl

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.