* Bug: bug in latex export [6.34b]
@ 2010-01-15 6:05 iemacs
2010-01-15 17:31 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: iemacs @ 2010-01-15 6:05 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bug: bug in latex export [6.34b]
2010-01-15 6:05 Bug: bug in latex export [6.34b] iemacs
@ 2010-01-15 17:31 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2010-01-15 17:31 UTC (permalink / raw)
To: iemacs; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-15 18:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-15 6:05 Bug: bug in latex export [6.34b] iemacs
2010-01-15 17:31 ` Carsten Dominik
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).