Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LaTeX Error: There's no line here to end. #279

Closed
floli opened this issue Aug 29, 2016 · 3 comments
Closed

LaTeX Error: There's no line here to end. #279

floli opened this issue Aug 29, 2016 · 3 comments

Comments

@floli
Copy link

floli commented Aug 29, 2016

I have this org document:

label:Testlabel Some citations cite:Bungartz2015 and cite:Torres2009 and a reference to a label ref:Testlabel

bibliographystyle:unsrt [[bibliography:/home/florian/Mendeley/library.bib]]

when exporting to a LaTeX file and run pdflatex -interaction nonstopmode test.tex I get

! LaTeX Error: There's no line here to end.

The latex file looks like that:

% Created 2016-08-29 Mo 10:03
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\author{Florian Lindner}
\date{\today}
\title{test}
\hypersetup{
  pdfkeywords={},
  pdfsubject={},
  pdfcreator={Emacs 24.5.1 (Org mode 8.2.10)}}
\begin{document}

\maketitle
\tableofcontents

\label{Testlabel} Some citations \cite{Bungartz2015} and \cite{Torres2009} and a reference to a label \ref{Testlabel} \\

\bibliographystyle{unsrt} \bibliography{../../Mendeley/library} \\
% Emacs 24.5.1 (Org mode 8.2.10)
\end{document}

When I remove the \\ after the \bibliography it works.

@jkitchin
Copy link
Owner

I don't think this is an org-ref issue. It doesn't put \ in the exports for anything. I notice you have one at the end of the line starting with \label too. Have you configured something with paragraphs in org-mode?

@floli
Copy link
Author

floli commented Aug 30, 2016

Nothing, all I configured when it comes to org / latex is:

                  org-latex-packages-alist '(("" "listings") ("" "color"))
                  org-latex-pdf-process '("latexmk -f -pdf %f")
                  org-latex-table-caption-above nil)

However, I was doing the compile manually, so pdf-prcoess is irrelevant here. I will try to reproduce it without org-ref, ask the org-mode list and report back....

@floli
Copy link
Author

floli commented Sep 6, 2016

The settting org-export-preserve-breaks t causes the faulty export. Indeed not org-ref is to blame.

@floli floli closed this as completed Sep 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants