emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug in LaTeX export?
@ 2019-06-13 20:38 Thomas S. Dye
  0 siblings, 0 replies; 9+ messages in thread
From: Thomas S. Dye @ 2019-06-13 20:38 UTC (permalink / raw)
  To: emacs-org list

Aloha all,

I have this in my Org mode file:

#+name: tab:hanamiai-oxcal-files
#+attr_latex: :font \footnotesize :environment longtable :booktabs
#+caption: =OxCal= input files for the Hanamiai models

And this in the exported LaTeX file:

{\footnotesize
\begin{longtable}{lll}
\caption{\label{tab:orgf695a5d}
\texttt{OxCal} input files for the Hanamiai models}
\\

The linebreak at the end of the \caption line introduces a space 
before the caption in the list of tables.  I can get rid of the 
space like this:

{\footnotesize
\begin{longtable}{lll}
\caption{\label{tab:orgf695a5d}%
\texttt{OxCal} input files for the Hanamiai models}
\\

Note the % at the end of the \caption line.

A bug, or something in my setup?

All the best,
Tom
--
Thomas S. Dye
http://tsdye.online/tsdye

^ permalink raw reply	[flat|nested] 9+ messages in thread
* bug in latex export?
@ 2013-04-27 10:05 renato
  2013-04-27 11:13 ` Suvayu Ali
  2013-04-28  7:42 ` Nicolas Goaziou
  0 siblings, 2 replies; 9+ messages in thread
From: renato @ 2013-04-27 10:05 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 976 bytes --]

Hi, don't know if this has allready been reported, but I just upgraded
to 8.0 and I stumped into this...

this in the .org file

\begin{theoremwithname}[hei]
theorem
\begin{align*}
2+2
\end{align*}
\end{theoremwithname}

gets latex-exported to this (note that after \endtheoremwithname
everything is replicated with escape characters):

\begin{theoremwithname}[hei]
theorem
\begin{align*}
2+2
\end{align*}
\end{theoremwithname}$\backslash$begin\{align*\}
2+2
$\backslash$end\{align*\}
$\backslash$end\{theoremwithname\}
\begin{align*}
2+2
\end{align*}
\end{theoremwithname}


which obviously brings to uncompilable latex code. BTW in the preamble
I have this that defines the environment theoremwithname:

#+LATEX_HEADER: \newtheoremstyle{withname}{}{}{\itshape}{}{\bfseries}{.}{.5em}{\thmname{#3} \thmnumber{#2}} 
#+LATEX_HEADER: \theoremstyle{withname}
#+LATEX_HEADER: \newtheorem{theoremwithname}[equation]{Teorema}


cheers,
renato

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Bug(?) in LaTeX export?
@ 2013-01-29 14:44 Thorsten Jolitz
  2013-01-29 17:22 ` Thomas S. Dye
  0 siblings, 1 reply; 9+ messages in thread
From: Thorsten Jolitz @ 2013-01-29 14:44 UTC (permalink / raw)
  To: emacs-orgmode


Hi List, 

when I export an Org file with Source blocks to LaTeX (:exports code),
the blocks are converted into environments of package 'listings':

,----------------------
| \lstset{language=...}
| \begin{lstlisting}
| (def  ... )
| \end{lstlisting}
`----------------------

but:

1. the package is not loaded in the preamble (there is no
\usepackage{listings}). 

2. the language name in {language=XXX} is simply copied from
   '#+begin_src XXX' and might not be defined in the listings package. 

Both points cause LaTeX errors. 

-- 
cheers,
Thorsten

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

end of thread, other threads:[~2019-06-13 20:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-13 20:38 Bug in LaTeX export? Thomas S. Dye
  -- strict thread matches above, loose matches on Subject: below --
2013-04-27 10:05 bug in latex export? renato
2013-04-27 11:13 ` Suvayu Ali
2013-04-28  7:42 ` Nicolas Goaziou
2013-01-29 14:44 Bug(?) in LaTeX export? Thorsten Jolitz
2013-01-29 17:22 ` Thomas S. Dye
2013-01-29 18:08   ` Thorsten Jolitz
2013-01-29 18:42     ` Thomas S. Dye
2013-01-30 12:24       ` Thorsten Jolitz

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