* Bug: (REVISED) trouble with updated latex export [6.35 (release_6.35a.26.g78cc)]
@ 2010-04-07 5:17 Austin Frank
2010-04-07 6:17 ` Austin Frank
0 siblings, 1 reply; 9+ messages in thread
From: Austin Frank @ 2010-04-07 5:17 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 6407 bytes --]
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? See
http://orgmode.org/manual/Feedback.html#Feedback
Your bug report will be posted to the Org-mode mailing list.
------------------------------------------------------------------------
(Apologies, I made some copy-paste errors in my first report. The
reported behavior hasn't changed, but the exact latex output now matches
what I'm seeing on my end. Thanks.)
Hello!
I'm having trouble getting the new latex export set up correctly. Below
I start with a a bare-bones config file, as follows:
1. start with emacs -Q, then do
2. (add-to-list 'load-path (expand-file-name "path/to/org.git/lisp"))
3. (require 'org-install)
I then document some unexpected behavior when exporting to latex.
Options specified with #+LATEX_HEADER are not exported, and if
`org-export-latex-packages-alist' is customized then only those packages
are exported.
Thanks for any help,
/au
With the following test file and no emacs customizations, I get the
following latex export:
#v+
#+TITLE: test.org
#+AUTHOR: Austin Frank
#+DATE: 2010-04-07 Wed
#+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
This will produce \LaTeX output.
#v-
#v+
% Created 2010-04-07 Wed 01:31
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{t1enc}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\providecommand{\alert}[1]{\textbf{#1}}
\title{test.org}
\author{Austin Frank}
\date{2010-04-07 Wed}
\begin{document}
\maketitle
\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}
This will produce \LaTeX output.
\end{document}
#v-
When I include extra options via #+LATEX_HEADERS, as follows, I get the
following output. Note that the options specified in #+LATEX_HEADERS are
not exported at all.
#v+
#+TITLE: test.org
#+AUTHOR: Austin Frank
#+DATE: 2010-04-07 Wed
#+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+LATEX_HEADER: \usepackage{tipa}
#+LATEX_HEADER: \usepackage{fullpage}
#+LATEX_HEADER: \usepackage[backend=biber,style=footnote-dw]{biblatex}
#+LATEX_HEADER: \bibliography{statement}
This will produce \LaTeX output.
#v-
#v+
% Created 2010-04-07 Wed 01:33
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{t1enc}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\providecommand{\alert}[1]{\textbf{#1}}
\title{test.org}
\author{Austin Frank}
\date{2010-04-07 Wed}
\begin{document}
\maketitle
\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}
This will produce \LaTeX output.
\end{document}
#v-
If I evaluate the following elisp code, then run export on the following
org file, I get the final tex output. Note that only the packages
described in `org-export-latex-packages-alist' are exported.
#v+
(mapc #'(lambda (spec)
(add-to-list 'org-export-latex-packages-alist spec))
'(("" "listings")
("" "xcolor")
("" "tikz")
("" "amsmath")
("" "microtype")
("" "fixltx2e")))
#v-
#v+
#+TITLE: test.org
#+AUTHOR: Austin Frank
#+DATE: 2010-04-07 Wed
#+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+LATEX_HEADER: \usepackage{tipa}
#+LATEX_HEADER: \usepackage{fullpage}
#+LATEX_HEADER: \usepackage[backend=biber,style=footnote-dw]{biblatex}
#+LATEX_HEADER: \bibliography{statement}
This will produce \LaTeX output.
#v-
#v+
% Created 2010-04-07 Wed 01:34
\documentclass[11pt]{article}
\usepackage{fixltx2e}
\usepackage{microtype}
\usepackage{amsmath}
\usepackage{tikz}
\usepackage{xcolor}
\usepackage{listings}
\providecommand{\alert}[1]{\textbf{#1}}
\title{test.org}
\author{Austin Frank}
\date{2010-04-07 Wed}
\begin{document}
\maketitle
\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}
This will produce \LaTeX output.
\end{document}
#v-
At the end of the experiment, this was the org setup:
#v+
current state:
==============
(setq
org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-export-latex-format-toc-function 'org-export-latex-format-toc-default
org-export-preprocess-hook '(org-export-blocks-preprocess)
org-tab-first-hook '(org-hide-block-toggle-maybe)
org-src-mode-hook '(org-src-mode-configure-edit-buffer)
org-confirm-shell-link-function 'yes-or-no-p
org-export-first-hook '(org-beamer-initialize-open-trackers)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-export-latex-packages-alist '(("" "fixltx2e") ("" "microtype")
("" "amsmath") ("" "tikz") ("" "xcolor")
("" "listings"))
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers)
org-mode-hook '(#[nil "\300\301\302\303\304$\207"
[org-add-hook change-major-mode-hook org-show-block-all
append local]
5]
)
org-confirm-elisp-link-function 'yes-or-no-p
org-occur-hook '(org-first-headline-recenter)
org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code)
org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
org-beamer-auto-fragile-frames
org-beamer-place-default-actions-for-lists)
)
#v-
--
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc
[-- Attachment #1.2: Type: application/pgp-signature, Size: 194 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: Bug: (REVISED) trouble with updated latex export [6.35 (release_6.35a.26.g78cc)]
2010-04-07 6:17 ` Austin Frank
@ 2010-04-07 5:40 ` Robert Klein
2010-04-07 6:43 ` Austin Frank
2010-04-07 6:35 ` Carsten Dominik
1 sibling, 1 reply; 9+ messages in thread
From: Robert Klein @ 2010-04-07 5:40 UTC (permalink / raw)
To: emacs-orgmode
Am 07.04.2010, 09:17 Uhr, schrieb Austin Frank <austin.frank@gmail.com>:
> On Wed, Apr 07 2010, Austin Frank wrote:
>
>> I then document some unexpected behavior when exporting to latex.
>> Options specified with #+LATEX_HEADER are not exported, and if
>> `org-export-latex-packages-alist' is customized then only those packages
>> are exported.
>
> Upgrading to Org-mode version 6.35b (release_6.35b.27.g35f5) allows my
> packages from `org-export-latex-packages-alist' packages to be exported
> correctly, but following the steps in my previous mail still does not
> result in the inclusion of packages specified in #+LATEX_HEADER lines.
I can confirm this for 6.35b: #+LaTeX_HEADER lines are getting ignored.
Also, when I put
(add-to-list 'org-export-latex-packages-alist '("" "listings"))
into my .emacs-file it is put twice into the resulting tex file.
Best regards
Robert
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: Bug: (REVISED) trouble with updated latex export [6.35 (release_6.35a.26.g78cc)]
2010-04-07 6:43 ` Austin Frank
@ 2010-04-07 5:46 ` Robert Klein
0 siblings, 0 replies; 9+ messages in thread
From: Robert Klein @ 2010-04-07 5:46 UTC (permalink / raw)
To: emacs-orgmode
Am 07.04.2010, 09:43 Uhr, schrieb Austin Frank <austin.frank@gmail.com>:
> On Wed, Apr 07 2010, Robert Klein wrote:
>
>> Also, when I put
>>
>> (add-to-list 'org-export-latex-packages-alist '("" "listings"))
>
> What's the value of `org-export-latex-listings'? Carsten, how should
> listings be addressed in the new setup?
>
It happens (-ed) with both t and nil.
However Carstens newest fix seems to have fixed this, too.
Best regards
Robert
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: Bug: (REVISED) trouble with updated latex export [6.35 (release_6.35a.26.g78cc)]
2010-04-07 6:35 ` Carsten Dominik
@ 2010-04-07 5:51 ` Robert Klein
2010-04-07 7:01 ` Austin Frank
1 sibling, 0 replies; 9+ messages in thread
From: Robert Klein @ 2010-04-07 5:51 UTC (permalink / raw)
To: emacs-orgmode
Am 07.04.2010, 09:35 Uhr, schrieb Carsten Dominik
<carsten.dominik@gmail.com>:
> Looks I am having a bad day.
>
> Can you please pull and try again? As soon as possible?
>
> - Carsten
It works for me now.
Also, the double inclusion of packages as described in my other mail
doesn't
happen anymore.
PS: I've currently got two \usepackage{textcomp}, this is from lisp/org.el
Thanks a lot
Robert
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Bug: (REVISED) trouble with updated latex export [6.35 (release_6.35a.26.g78cc)]
2010-04-07 5:17 Bug: (REVISED) trouble with updated latex export [6.35 (release_6.35a.26.g78cc)] Austin Frank
@ 2010-04-07 6:17 ` Austin Frank
2010-04-07 5:40 ` Robert Klein
2010-04-07 6:35 ` Carsten Dominik
0 siblings, 2 replies; 9+ messages in thread
From: Austin Frank @ 2010-04-07 6:17 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 679 bytes --]
On Wed, Apr 07 2010, Austin Frank wrote:
> I then document some unexpected behavior when exporting to latex.
> Options specified with #+LATEX_HEADER are not exported, and if
> `org-export-latex-packages-alist' is customized then only those packages
> are exported.
Upgrading to Org-mode version 6.35b (release_6.35b.27.g35f5) allows my
packages from `org-export-latex-packages-alist' packages to be exported
correctly, but following the steps in my previous mail still does not
result in the inclusion of packages specified in #+LATEX_HEADER lines.
Thanks,
/au
--
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc
[-- Attachment #1.2: Type: application/pgp-signature, Size: 194 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: Bug: (REVISED) trouble with updated latex export [6.35 (release_6.35a.26.g78cc)]
2010-04-07 6:17 ` Austin Frank
2010-04-07 5:40 ` Robert Klein
@ 2010-04-07 6:35 ` Carsten Dominik
2010-04-07 5:51 ` Robert Klein
2010-04-07 7:01 ` Austin Frank
1 sibling, 2 replies; 9+ messages in thread
From: Carsten Dominik @ 2010-04-07 6:35 UTC (permalink / raw)
To: Austin Frank; +Cc: emacs-orgmode
On Apr 7, 2010, at 8:17 AM, Austin Frank wrote:
> On Wed, Apr 07 2010, Austin Frank wrote:
>
>> I then document some unexpected behavior when exporting to latex.
>> Options specified with #+LATEX_HEADER are not exported, and if
>> `org-export-latex-packages-alist' is customized then only those
>> packages
>> are exported.
>
> Upgrading to Org-mode version 6.35b (release_6.35b.27.g35f5) allows my
> packages from `org-export-latex-packages-alist' packages to be
> exported
> correctly, but following the steps in my previous mail still does not
> result in the inclusion of packages specified in #+LATEX_HEADER lines.
Looks I am having a bad day.
Can you please pull and try again? As soon as possible?
- Carsten
>
> Thanks,
> /au
>
> --
> Austin Frank
> http://aufrank.net
> GPG Public Key (D7398C2F): http://aufrank.net/personal.asc
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
- Carsten
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Bug: (REVISED) trouble with updated latex export [6.35 (release_6.35a.26.g78cc)]
2010-04-07 5:40 ` Robert Klein
@ 2010-04-07 6:43 ` Austin Frank
2010-04-07 5:46 ` Robert Klein
0 siblings, 1 reply; 9+ messages in thread
From: Austin Frank @ 2010-04-07 6:43 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 365 bytes --]
On Wed, Apr 07 2010, Robert Klein wrote:
> Also, when I put
>
> (add-to-list 'org-export-latex-packages-alist '("" "listings"))
What's the value of `org-export-latex-listings'? Carsten, how should
listings be addressed in the new setup?
Thanks,
/au
--
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc
[-- Attachment #1.2: Type: application/pgp-signature, Size: 194 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Bug: (REVISED) trouble with updated latex export [6.35 (release_6.35a.26.g78cc)]
2010-04-07 6:35 ` Carsten Dominik
2010-04-07 5:51 ` Robert Klein
@ 2010-04-07 7:01 ` Austin Frank
2010-04-07 7:21 ` Carsten Dominik
1 sibling, 1 reply; 9+ messages in thread
From: Austin Frank @ 2010-04-07 7:01 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 648 bytes --]
On Wed, Apr 07 2010, Carsten Dominik wrote:
> Looks I am having a bad day.
>
> Can you please pull and try again? As soon as possible?
This works correctly for my test file on Org-mode version 6.35b
(release_6.35b.30.g9115). It also works for a more complex document
with my full configuration loaded.
In case it matters, the \tolerance{1000} line doesn't show up with an
org-reload. I had to restart emacs before that aspect of the default
header was incorporated. But I could be imagining things on that one.
Thanks,
/au
--
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc
[-- Attachment #1.2: Type: application/pgp-signature, Size: 194 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: Bug: (REVISED) trouble with updated latex export [6.35 (release_6.35a.26.g78cc)]
2010-04-07 7:01 ` Austin Frank
@ 2010-04-07 7:21 ` Carsten Dominik
0 siblings, 0 replies; 9+ messages in thread
From: Carsten Dominik @ 2010-04-07 7:21 UTC (permalink / raw)
To: Austin Frank; +Cc: emacs-orgmode
On Apr 7, 2010, at 9:01 AM, Austin Frank wrote:
> On Wed, Apr 07 2010, Carsten Dominik wrote:
>
>> Looks I am having a bad day.
>>
>> Can you please pull and try again? As soon as possible?
>
> This works correctly for my test file on Org-mode version 6.35b
> (release_6.35b.30.g9115). It also works for a more complex document
> with my full configuration loaded.
>
> In case it matters, the \tolerance{1000} line doesn't show up with an
> org-reload. I had to restart emacs before that aspect of the default
> header was incorporated. But I could be imagining things on that one.
You are right, Emacs restart is required for that.
- Carsten
>
> Thanks,
> /au
>
> --
> Austin Frank
> http://aufrank.net
> GPG Public Key (D7398C2F): http://aufrank.net/personal.asc
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
- Carsten
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-04-07 7:21 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-07 5:17 Bug: (REVISED) trouble with updated latex export [6.35 (release_6.35a.26.g78cc)] Austin Frank
2010-04-07 6:17 ` Austin Frank
2010-04-07 5:40 ` Robert Klein
2010-04-07 6:43 ` Austin Frank
2010-04-07 5:46 ` Robert Klein
2010-04-07 6:35 ` Carsten Dominik
2010-04-07 5:51 ` Robert Klein
2010-04-07 7:01 ` Austin Frank
2010-04-07 7:21 ` Carsten Dominik
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.