From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Bug: bug in latex export [6.34b] Date: Fri, 15 Jan 2010 18:31:56 +0100 Message-ID: References: <191f2a111001142205q36d97ab0ke4d00984c833e96a@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NVqmG-0003B6-D0 for emacs-orgmode@gnu.org; Fri, 15 Jan 2010 13:20:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NVqmC-000381-1j for emacs-orgmode@gnu.org; Fri, 15 Jan 2010 13:20:08 -0500 Received: from [199.232.76.173] (port=49129 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVqmB-00037l-AV for emacs-orgmode@gnu.org; Fri, 15 Jan 2010 13:20:03 -0500 Received: from mail-ew0-f209.google.com ([209.85.219.209]:57775) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NVqmA-0007Cb-QA for emacs-orgmode@gnu.org; Fri, 15 Jan 2010 13:20:03 -0500 Received: by mail-ew0-f209.google.com with SMTP id 1so12404ewy.8 for ; Fri, 15 Jan 2010 10:20:02 -0800 (PST) In-Reply-To: <191f2a111001142205q36d97ab0ke4d00984c833e96a@mail.gmail.com> 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: iemacs@gmail.com Cc: emacs-orgmode@gnu.org Hi, this is not a bug. Org-mode treats laTeX environments as implicitly literal. As we have discussed a few days ago here, you can work around it using #+LaTeX: {}\begin{multicol}[2] - Carsten P.S. this is becoming another subject for a FAQ which should cover both org-special-blocks.el and the workaround I show above. Would anyone like to volunteer writing it? Thanks. On Jan 15, 2010, at 7:05 AM, iemacs@gmail.com wrote: > 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. > ------------------------------------------------------------------------ > > I exported the following example test.org to latex, the content > between > \begin{multicols}{2} and \end{multicols} hadn't been replaced with > latex code. > > -------------------------------------test.org > #-*- mode: org; coding: utf-8 -*- > #+LATEX_HEADER: \usepackage{multicol} > > * title > > \begin{multicols}{2} > > ** subtitle > > 1. first > 2. second > > \end{multicols} > -------------------------------------end of test.org > > I got the following result > > -------------------------------------test.tex > % Created 2010-01-15 Fri 13:51 > \documentclass[11pt]{article} > \usepackage[utf8]{inputenc} > \usepackage[T1]{fontenc} > \usepackage{graphicx} > \usepackage{longtable} > \usepackage{float} > \usepackage{wrapfig} > \usepackage{soul} > \usepackage{amssymb} > \usepackage{hyperref} > \usepackage{multicol} > > \title{test} > \author{} > \date{15 January 2010} > > \begin{document} > > \maketitle > > \setcounter{tocdepth}{3} > \tableofcontents > \vspace*{1cm} > > \section{title} > \label{sec-1} > > > \begin{multicols}{2} > > ** subtitle > > 1. first > 2. second > > \end{multicols} > > \end{document} > -------------------------------------end of test.tex > > Emacs : GNU Emacs 23.1.90.1 (i386-mingw-nt5.1.2600) > of 2009-12-16 on BREPNB > Package: Org-mode version 6.34b > > current state: > ============== > (setq > org-log-done t > org-agenda-skip-scheduled-if-deadline-is-shown t > org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- > vars) > org-special-ctrl-a/e t > org-agenda-files '("~/org/todo.org" "~/org/refile.org") > org-startup-truncated nil > org-agenda-skip-timestamp-if-done t > org-after-todo-state-change-hook '(org-clock-out-if-current) > org-agenda-text-search-extra-files '(agenda-archives) > org-special-ctrl-k t > org-export-latex-format-toc-function 'org-export-latex-format-toc- > default > org-agenda-skip-scheduled-if-done t > org-latex-to-pdf-process '("xelatex -interaction nonstopmode %s" > "xelatex -interaction nonstopmode %s") > org-export-preprocess-hook '(org-export-blocks-preprocess > org-export-bibtex-preprocess) > org-agenda-diary-file "~/org/todo.org" > 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-clock-sound "d:/sound/Ringtone.mp3" > org-todo-keywords '((sequence "TODO(t)" "WAIT(w@/!)" "FUTURE(f)" "|" > "DONE(d!/!)" "NOTE(n@)" "CANCELED(c@/!)")) > org-agenda-before-write-hook '(org-agenda-add-entry-text) > org-default-notes-file "refile.org" > org-directory "~/org/" > 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-use-speed-commands t > org-mode-hook '(turn-on-org-cdlatex > (lambda nil (org-add-hook (quote > change-major-mode-hook) (quote org-show-block-all) (quote append) > (quote local))) > (lambda nil (visual-line-mode 1) (auto-complete-mode > 1) (auto-complete-mode-maybe))) > org-agenda-ndays 1 > org-refile-targets '((org-agenda-files :level . 1) (nil :level . 1)) > org-confirm-elisp-link-function 'yes-or-no-p > org-fast-tag-selection-single-key 'expert > org-agenda-skip-deadline-if-done t > org-deadline-string "DUE:" > org-occur-hook '(org-first-headline-recenter) > org-from-is-user-regexp nil > org-export-preprocess-before-selecting-backend-code-hook > '(org-beamer-select-beamer-code) > org-remember-templates '(("todo" 116 "* TODO %?\n%U\n%a" nil bottom > nil) > ("note" 110 "* NOTE %?\n%U\n%a" > "~/org/todo.archive" "Notes" nil) > ("diary" 100 "* %t %?" "~/org/todo.org" date- > tree) > ("appointment" 97 "* %^T %^{Event} - > %^{Place}\n%?\n%U" nil bottom nil)) > 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) > ) > > > -- > Kind regards, > > Tian Qiu > > > _______________________________________________ > 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