[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] There is no line to end here at LaTeX org-ref export
From: |
Nick Dokos |
Subject: |
Re: [O] There is no line to end here at LaTeX org-ref export |
Date: |
Thu, 01 Sep 2016 02:02:35 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Florian Lindner <address@hidden> writes:
> Am 30.08.2016 um 10:22 schrieb Florian Lindner:
>
>> In https://github.com/jkitchin/org-ref/issues/279 the author says it
>> probably not related to org-ref, however I was
>> unable to reproduce it without it.
>
> An example without org-ref that produces this error:
>
> #+BEGIN_SRC python :exports results :results file
> import matplotlib.pyplot as plt, numpy as np
> x = np.linspace(-2, 2, 1000)
> plt.plot(x, np.exp(-np.power(4*x, 2)), label="shape-parameter=4")
> plt.savefig('rbf-gaussian-4.pdf')
> return "rbf-gaussian-4.pdf"
> #+END_SRC
>
> #+NAME: fig:org_fig
> #+CAPTION: Org Fig
>
> #+RESULTS: fig:org_fig
> [[file:rbf-gaussian-4.pdf]]
>
> Some text
>
>
> Gives, when compiled to latex gives also: There is no line here to end:
>
> ERROR: LaTeX Error: There's no line here to end.
>
> --- TeX said ---
>
> See the LaTeX manual or LaTeX Companion for explanation.
> Type H <return> for immediate help.
> ...
>
> l.40 S
> ome text \\
> --- HELP ---
> A \newline or \\ command appears between paragraphs, where it makes no
> sense. If you're trying to ``leave a blank line'', use a \vspace
> command.
>
>
> Thanks,
> Florian
>
>
Try this:
--8<---------------cut here---------------start------------->8---
An example without org-ref that produces this error:
#+NAME: fig:org_fig
#+BEGIN_SRC python :exports results :results file
import matplotlib.pyplot as plt, numpy as np
x = np.linspace(-2, 2, 1000)
plt.plot(x, np.exp(-np.power(4*x, 2)), label="shape-parameter=4")
plt.savefig('rbf-gaussian-4.pdf')
return "rbf-gaussian-4.pdf"
#+END_SRC
#+CAPTION: Org Fig
#+RESULTS: fig:org_fig
[[file:rbf-gaussian-4.pdf]]
Some text
--8<---------------cut here---------------end--------------->8---
--
Nick