From mboxrd@z Thu Jan 1 00:00:00 1970 From: Austin Frank Subject: Bug: (REVISED) trouble with updated latex export [6.35 (release_6.35a.26.g78cc)] Date: Wed, 07 Apr 2010 01:17:17 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1513683601==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NzNyG-0006SE-Ud for emacs-orgmode@gnu.org; Wed, 07 Apr 2010 01:38:37 -0400 Received: from [140.186.70.92] (port=46464 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzNyE-0006Rj-PR for emacs-orgmode@gnu.org; Wed, 07 Apr 2010 01:38:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NzNyD-0001ok-06 for emacs-orgmode@gnu.org; Wed, 07 Apr 2010 01:38:34 -0400 Received: from mail-qy0-f194.google.com ([209.85.221.194]:39573) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzNyC-0001oV-Rl for emacs-orgmode@gnu.org; Wed, 07 Apr 2010 01:38:32 -0400 Received: by qyk32 with SMTP id 32so720829qyk.12 for ; Tue, 06 Apr 2010 22:38:32 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============1513683601== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable 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. =2D----------------------------------------------------------------------- (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) =20=20=20=20 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=3Dbiber,style=3Dfootnote-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=3Dbiber,style=3Dfootnote-dw]{biblatex} #+LATEX_HEADER: \bibliography{statement} This will produce \LaTeX output. #v- =20=20=20=20=20=20=20=20 #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: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (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-sele= ct-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- =2D-=20 Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) iEYEARECAAYFAku8GlkACgkQlHMl2/XbR4GrxgCfV7byhMB4EePf5QJWxK223m7a RzkAoMvHQ9NQq5q77ybK10zasbFm5EQK =y7Hk -----END PGP SIGNATURE----- --=-=-=-- --===============1513683601== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1513683601==--