emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* LaTeX export problem
@ 2012-09-12 16:47 Gary Oberbrunner
  2012-09-19  7:57 ` Bastien
  0 siblings, 1 reply; 29+ messages in thread
From: Gary Oberbrunner @ 2012-09-12 16:47 UTC (permalink / raw)
  To: Orgmode Mailing List

Using a recent git checkout of org-mode (f51c405), the following small
org-mode file produces invalid LaTeX.  I'm pretty sure it used to
work.  The \alpha and \beta seem to be what confuses it.

-------------------snip
* Scorecards
** Product Releases
| *Product* | *\alpha* | *\beta* | *Release* | *Status* |
|-----------+----------+---------+-----------+----------|
| test      | a        | b       | c         | d        |
-------------------snip

Open this with emacs -Q (emacs 24), load org-mode, and C-c C-e C-d to
export as LaTeX, you get the following error:

! Missing $ inserted.
<inserted text>
                $
l.44  \textbf{Product}  &  \textbf{\alpha}
                                            &  \textbf{\beta}  &  \textbf{Re...


I'm no LaTeX guru, but here's the generated file:

% Created 2012-09-12 Wed 12:37
\documentclass[11pt]{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\providecommand{\alert}[1]{\textbf{#1}}

\title{foo}
\author{}
\date{\today}
\hypersetup{
  pdfkeywords={},
  pdfsubject={},
  pdfcreator={Emacs Org-mode version 7.9.1}}

\begin{document}

\maketitle

\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}
\section{Scorecards}
\label{sec-1}
\subsection{Product Releases}
\label{sec-1-1}


\begin{center}
\begin{tabular}{lllll}
 \textbf{Product}  &  \textbf{\alpha}  &  \textbf{\beta}  &
\textbf{Release}  &  \textbf{Status}  \\
\hline
 test              &  a                &  b               &  c
        &  d                \\
\end{tabular}
\end{center}

\end{document}


-- 
Gary

^ permalink raw reply	[flat|nested] 29+ messages in thread
* LaTeX export problem
@ 2014-07-13 21:25 Thomas S. Dye
  2014-07-16 14:36 ` Nicolas Goaziou
  0 siblings, 1 reply; 29+ messages in thread
From: Thomas S. Dye @ 2014-07-13 21:25 UTC (permalink / raw)
  To: Org-mode

Aloha all,

With a recent Org from git and this source:

  #+attr_latex: :width 0.8\textwidth :placement [htb]
  #+name: fig:harris-errors
  #+caption[Structural effects of false transitives]: Structural effects of false transitives with the stratigraphic section in Figure [[fig:fig12-open]]:
  #+caption: /left/, a Harris Matrix of contexts adjacent to Context 1 with false transitives for Contexts 5 and 6;
  #+caption: /right/, a directed graph of contexts adjacent to Context 1 that excludes false transitives.
  #+caption: The observed stratigraphic relationships for the two diagrams are shown on Table [[tab:harris-errors]].
  [[file:~/Public/projects/936-harris-matrix/figure/fig-12-harris-td-adj-1-tred-edited.pdf]]

I get this incorrect LaTeX output:

  \begin{figure}[htb]
  \centering
  \includegraphics[width=0.8\textwidth]{/Users/dk/Public/projects/936-harris-matrix/figure/fig-12-harris-td-adj-1-tred-edited.pdf}
  \caption[Structural effects of false transitives]: Structural effects of false transitives with the stratigraphic section in Figure~[[fig:fig12-open]]{\label{fig:harris-errors}\emph{left}, a Harris Matrix of contexts adjacent to Context 1 with false transitives for Contexts 5 and 6; \emph{right}, a directed graph of contexts adjacent to Context 1 that excludes false transitives. The observed stratigraphic relationships for the two diagrams are shown on Table~\ref{tab:harris-errors}.}
  \end{figure}

If I place a space between the final colon and the link on the
first #+caption: line, then I get the output I'm expecting (although
there is the extraneous space):

 \begin{figure}[htb]
 \centering
 \includegraphics[width=0.8\textwidth]{/Users/dk/Public/projects/936-harris-matrix/figure/fig-12-harris-td-adj-1-tred-edited.pdf}
 \caption[Structural effects of false transitives]{\label{fig:harris-errors}Structural effects of false transitives with the stratigraphic section in Figure~\ref{fig:fig12-open} : \emph{left}, a Harris Matrix of contexts adjacent to Context 1 with false transitives for Contexts 5 and 6; \emph{right}, a directed graph of contexts adjacent to Context 1 that excludes false transitives. The observed stratigraphic relationships for the two diagrams are shown on Table~\ref{tab:harris-errors}.}
 \end{figure}

Is there a work-around?

All the best,
Tom

-- 
T.S. Dye & Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com

^ permalink raw reply	[flat|nested] 29+ messages in thread
* LaTeX export problem
@ 2012-01-09 15:45 Piotr Kaźmierczak
  2012-01-10  0:13 ` Nick Dokos
  0 siblings, 1 reply; 29+ messages in thread
From: Piotr Kaźmierczak @ 2012-01-09 15:45 UTC (permalink / raw)
  To: emacs-orgmode

Hi,   

I have a very strange problem: I can no longer process an org file with all my notes to LaTeX. I've been using org-mode this way for some time now, and I was always able to get a nice tex file I could later process to PDF. Now all I get is a TeX file with absolutely no new-line symbols (a huge one-line file), and pdflatex obviously can't process that. I haven't updated org for a while, and it doesn't seem to matter which Emacs version I try (GNU 23, GNU 24, Aquamacs 2.4), I still can't get the correct output. The only difference from the last time I managed to get a correct tex output is that I added some more notes to the org file.  

I'm using Org 7.8.

Any ideas?

regards,
Piotr Kaźmierczak

^ permalink raw reply	[flat|nested] 29+ messages in thread
* latex export problem
@ 2010-09-30 14:55 Jörg Hagmann
       [not found] ` <4CA4C29B.1060404@christianmoe.com>
  2010-10-01  7:32 ` Noorul Islam K M
  0 siblings, 2 replies; 29+ messages in thread
From: Jörg Hagmann @ 2010-09-30 14:55 UTC (permalink / raw)
  To: Emacs-orgmode

  Dear list,

I have an org file named "test.org" structured as follows (minimal example):

------minimal example------------
* Head
   text

* Second head
   :PROPERTIES:
   :EXPORT_OPTIONS: H:5 num:nil toc:t \n:nil @:t ::t |:t ^:{} -:t f:t 
*:t skip:nil d:nil tags:nil
   :EXPORT_TITLE: My Title
   :EXPORT_FILE_NAME: scripts/filename
   :END:


#+begin_src latex
\input gentium-ge
#+end_src

** section
    text
------end of minimal example-----------

I export the second head to a filename.tex file in a subdirectory (and 
convert it later to ConTeXt code, but that shouldn't matter here). I 
swear that this worked -- I have everything pertaining to my lectures in 
this file.
However, it stopped working recently (without updating org-mode). All I 
get when I export "Second Head" to latex is:
"No such file: /Users/me/test.org"
The cause is the #+begin_src ... #+end_src block

Did I inadvertently change some parameter? Or is it a bug (less likely)?

Thanks for your suggestions, Jörg

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

end of thread, other threads:[~2014-07-16 16:35 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-12 16:47 LaTeX export problem Gary Oberbrunner
2012-09-19  7:57 ` Bastien
2012-09-20 14:59   ` Alexander Vorobiev
2012-09-21  8:48     ` Bastien
2012-09-21 19:47       ` Alexander Vorobiev
2012-09-21 21:21         ` Thomas S. Dye
2012-09-22  8:01           ` Nicolas Goaziou
2012-09-22  8:07         ` Nicolas Goaziou
2012-09-24 16:40           ` Alexander Vorobiev
2012-09-24 21:15             ` Nicolas Goaziou
2012-09-24 21:32               ` Alexander Vorobiev
2012-09-26 18:48                 ` Nicolas Goaziou
  -- strict thread matches above, loose matches on Subject: below --
2014-07-13 21:25 Thomas S. Dye
2014-07-16 14:36 ` Nicolas Goaziou
2014-07-16 16:35   ` Thomas S. Dye
2012-01-09 15:45 Piotr Kaźmierczak
2012-01-10  0:13 ` Nick Dokos
2012-01-17 13:35   ` Piotr Kaźmierczak
2012-01-17 17:00     ` Nick Dokos
2012-01-17 19:00       ` Piotr Kaźmierczak
2012-01-17 20:45     ` Eric S Fraga
2010-09-30 14:55 latex " Jörg Hagmann
     [not found] ` <4CA4C29B.1060404@christianmoe.com>
2010-10-01  7:30   ` Jörg Hagmann
2010-10-01  7:32 ` Noorul Islam K M
2010-10-01  7:40   ` Jörg Hagmann
2010-10-01  9:03     ` Noorul Islam K M
2010-10-01  9:17       ` Noorul Islam
2010-10-01 11:38         ` Jörg Hagmann
2010-10-01 12:05           ` Jörg Hagmann

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).