From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: There is no line to end here at LaTeX org-ref export
Date: Thu, 01 Sep 2016 02:02:35 -0400 [thread overview]
Message-ID: <877faw88ec.fsf@gmail.com> (raw)
In-Reply-To: 3972cc9c-6ee5-25eb-a460-50e52eeaa490@xgm.de
Florian Lindner <mailinglists@xgm.de> 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
next prev parent reply other threads:[~2016-09-01 9:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-30 8:22 There is no line to end here at LaTeX org-ref export Florian Lindner
2016-08-31 7:45 ` Florian Lindner
2016-09-01 6:02 ` Nick Dokos [this message]
2016-09-02 13:04 ` Florian Lindner
[not found] ` <97bdf173ef3049a9871038d52cd55df7@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-09-02 13:12 ` Eric S Fraga
2016-09-02 16:01 ` Nick Dokos
2016-09-05 20:55 ` Florian Lindner
2016-09-05 21:34 ` John Kitchin
[not found] ` <f07593c389194c028f4a2ca0a5933e13@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-09-06 6:41 ` Eric S Fraga
2016-08-31 7:48 ` Florian Lindner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877faw88ec.fsf@gmail.com \
--to=ndokos@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).