emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: iemacs@gmail.com
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: bug in latex export [6.34b]
Date: Fri, 15 Jan 2010 18:31:56 +0100	[thread overview]
Message-ID: <AB03FCAC-884E-4AD8-8A2C-F043DDB9A159@gmail.com> (raw)
In-Reply-To: <191f2a111001142205q36d97ab0ke4d00984c833e96a@mail.gmail.com>

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

      reply	other threads:[~2010-01-15 18:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-15  6:05 Bug: bug in latex export [6.34b] iemacs
2010-01-15 17:31 ` Carsten Dominik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AB03FCAC-884E-4AD8-8A2C-F043DDB9A159@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=iemacs@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).