Hello,
On 09/05/2013 04:15 PM, Nicolas Goaziou wrote:
#+LATEX_HEADER: \usepackage[right=2in,left=0.5in]{geometry}
#+LATEX_HEADER: \usepackage{parskip}
* Setup
:noexport:
#+BEGIN_SRC emacs-lisp :exports both
(defun marg
Hello,
I have this at the top of an org file in order to put graphics in the
margin:
#+LATEX_HEADER: \usepackage[right=2in,left=0.5in]{geometry}
\usepackage{parskip}
#+BEGIN_SRC emacs-lisp
(defun margin-graphics (contents backend info)
(when (eq backend 'latex)
(replace-regexp-in-stri
Roger Mason writes:
> Unfortunately, :exports both does not make any difference. Looking at
> the generated LaTeX file I see that it contains:
>
> \begin{verbatim}
> (defun margin-graphics (contents backend info)
> (when (eq backend 'latex)
> (replace-regexp-in-string "\\`includegraphi
Hello,
On 09/05/2013 04:39 PM, Nicolas Goaziou wrote:
In this case, you need to remove "\\`" from your regexp. Regards,
That fixed it.
Many thanks.
Roger
This electronic communication is governed by the terms and conditions at
http://www.mun.ca/cc/policies/electronic_communications_disclaime
Roger Mason writes:
> On 09/05/2013 04:15 PM, Nicolas Goaziou wrote:
>> #+LATEX_HEADER: \usepackage[right=2in,left=0.5in]{geometry}
>>#+LATEX_HEADER: \usepackage{parskip}
>>
>>* Setup
>> :noexport:
>>#+BEGIN_SRC emacs-li
Hello again,
On 09/05/2013 01:48 PM, Nicolas Goaziou wrote:
Hello,
Roger Mason writes:
I have this at the top of an org file in order to put graphics in the
margin:
#+LATEX_HEADER: \usepackage[right=2in,left=0.5in]{geometry}
\usepackage{parskip}
#+BEGIN_SRC emacs-lisp
(defun margin-graphic
Hello,
Roger Mason writes:
> I have this at the top of an org file in order to put graphics in the
> margin:
>
> #+LATEX_HEADER: \usepackage[right=2in,left=0.5in]{geometry}
> \usepackage{parskip}
>
> #+BEGIN_SRC emacs-lisp
> (defun margin-graphics (contents backend info)
>(when (eq backend