From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konstantin Kliakhandler Subject: Bug: \uline produced inside \section in latex export [8.2.5h (8.2.5h-30-gdd810b-elpa @ /home/user/.emacs.d/elpa/org-20140303/)] Date: Fri, 21 Mar 2014 18:30:05 +0200 Message-ID: <87ior7qzua.fsf@slumpy.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WR2Kr-0003fB-Hf for emacs-orgmode@gnu.org; Fri, 21 Mar 2014 12:30:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WR2Kh-00028p-Bm for emacs-orgmode@gnu.org; Fri, 21 Mar 2014 12:30:21 -0400 Received: from mail-ee0-f43.google.com ([74.125.83.43]:51553) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WR2Kh-00028M-3B for emacs-orgmode@gnu.org; Fri, 21 Mar 2014 12:30:11 -0400 Received: by mail-ee0-f43.google.com with SMTP id e53so1990116eek.16 for ; Fri, 21 Mar 2014 09:30:09 -0700 (PDT) Received: from Alice.slumpy.org (bzq-84-110-216-102.red.bezeqint.net. [84.110.216.102]) by mx.google.com with ESMTPSA id j41sm12605477eeg.10.2014.03.21.09.30.07 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 21 Mar 2014 09:30:08 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello, It appears that org-mode produces invalid latex code. An example follows. Best, Kosta Insert the following example text into an org buffer: === * _Example Text_ === Then export as latex. The following is produced: === % Created 2014-03-21 Fri 17:45 \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fixltx2e} \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{wrapfig} \usepackage{rotating} \usepackage[normalem]{ulem} \usepackage{amsmath} \usepackage{textcomp} \usepackage{marvosym} \usepackage{wasysym} \usepackage{amssymb} \usepackage{hyperref} \tolerance=1000 \author{Author Name} \date{\today} \title{org-bug.org} \hypersetup{ pdfkeywords={}, pdfsubject={}, pdfcreator={Emacs 24.3.50.1 (Org mode 8.2.5h)}} \begin{document} \maketitle \tableofcontents \section{\uline{Example Text}} \label{sec-1} % Emacs 24.3.50.1 (Org mode 8.2.5h) \end{document} === It appears that \uline inside \section is invalid. pdflatex output follows: === Running `LaTeX' on `org-test' with ``pdflatex --synctex=1 -interaction=nonstopmode "\input" org-test.tex'' This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian) restricted \write18 enabled. entering extended mode LaTeX2e <2011/06/27> Babel and hyphenation patterns for english, dumylang, nohyphenation, loaded. (./org-test.tex (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2007/10/19 v1.4h Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo)) (/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty (/usr/share/texlive/texmf-dist/tex/latex/base/utf8.def (/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.dfu) (/usr/share/texlive/texmf-dist/tex/latex/base/ot1enc.dfu) (/usr/share/texlive/texmf-dist/tex/latex/base/omsenc.dfu))) (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty (/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def)) (/usr/share/texlive/texmf-dist/tex/latex/base/fixltx2e.sty) (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty) (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg) (/usr/share/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)))) (/usr/share/texlive/texmf-dist/tex/latex/tools/longtable.sty) (/usr/share/texlive/texmf-dist/tex/latex/float/float.sty) (/usr/share/texlive/texmf-dist/tex/latex/wrapfig/wrapfig.sty) (/usr/share/texlive/texmf-dist/tex/latex/rotating/rotating.sty (/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty)) (/usr/share/texlive/texmf-dist/tex/generic/ulem/ulem.sty) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty For additional information on amsmath, use the `?' option. (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty)) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty)) (/usr/share/texlive/texmf-dist/tex/latex/base/textcomp.sty (/usr/share/texlive/texmf-dist/tex/latex/base/ts1enc.def (/usr/share/texlive/texmf-dist/tex/latex/base/ts1enc.dfu))) (/usr/share/texlive/texmf-dist/tex/latex/marvosym/marvosym.sty) (/usr/share/texlive/texmf-dist/tex/latex/wasysym/wasysym.sty) (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty)) (/usr/share/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty)) (/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty) (/usr/share/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def) (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg) (/usr/share/texlive/texmf-dist/tex/latex/url/url.sty)) Package hyperref Message: Driver (autodetected): hpdftex. (/usr/share/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty)) (./org-test.aux) (/usr/share/texlive/texmf-dist/tex/latex/base/ts1cmr.fd) (/usr/share/texlive/texmf-dist/tex/context/base/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] ) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty) (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg)) (/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty)) (./org-test.out) (./org-test.out) (/usr/share/texlive/texmf-dist/tex/latex/wasysym/uwasy.fd) (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd) (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd) (./org-test.toc) ! Argument of \UL@word has an extra }. \par l.31 \section{\uline{Example Text}} Runaway argument? \@empty ! Paragraph ended before \UL@word was complete. \par l.31 \section{\uline{Example Text}} Runaway argument? \global \UL@skip \-command \\\unskip \global \UL@pe \lastpenalty \ETC. ! Paragraph ended before \HyPsd@@ProtectSpacesFi was complete. \par l.31 \section{\uline{Example Text}} ! Use of \HyPsd@RemoveMask doesn't match its definition. \Hy@tempa ->\par | l.31 \section{\uline{Example Text}} ! Undefined control sequence. \HyPsd@ProtectSpaces ...d@RemoveMask #1\HyPsd@End #1 l.31 \section{\uline{Example Text}} Runaway argument? { ! Paragraph ended before \HyPsd@RemoveBraces was complete. \par l.31 \section{\uline{Example Text}} ! Extra }, or forgotten \endgroup. \pdfstringdef ...d@RemoveBraces \expandafter {#1|} \global \let #1\HyPsd@Stri... l.31 \section{\uline{Example Text}} ! Argument of \HyPsd@CheckCatcodes has an extra }. \par l.31 \section{\uline{Example Text}} Runaway argument? \global \let \Hy@tempa \HyPsd@String ! Paragraph ended before \HyPsd@CheckCatcodes was complete. \par l.31 \section{\uline{Example Text}} ) Runaway argument? \@empty \HyPsd@End \Hy@tempa \expandafter \HyPsd@Subst \expandafter {\ETC. ! File ended while scanning use of \HyPsd@RemoveMask. \par <*> \input org-test.tex ! Emergency stop. <*> \input org-test.tex ! ==> Fatal error occurred, no output PDF file produced! Transcript written on org-test.log. LaTeX exited abnormally with code 1 at Fri Mar 21 17:53:55 === ------------------------------------------------------------------------ Emacs : GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of 2014-01-01 on gkar, modified by Debian Package: Org-mode version 8.2.5h (8.2.5h-30-gdd810b-elpa @ /home/user/.emacs.d/elpa/org-20140303/) current state: ============== (setq org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-html-format-drawer-function '(lambda (name contents) contents) org-log-done 'time org-format-latex-options '(:foreground default :background default :scale 3.0 :html-foreground "Black" :html-background "Transparent" :html-scale 1.0 :matchers ("begin" "$1" "$" "$$" "\\(" "\\[")) org-latex-format-inlinetask-function 'ignore org-confirm-shell-link-function 'yes-or-no-p org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-pretty-entities t org-agenda-custom-commands '(("w" todo "TODO") ("h" agenda "" ((org-agenda-show-all-dates nil))) ("W" agenda "" ((org-agenda-ndays 21) (org-agenda-show-all-dates nil)) ) ("A" agenda "" ((org-agenda-ndays 1) (org-agenda-overriding-header "Today")) ) ) org-latex-format-headline-function 'org-latex-format-headline-default-function org-default-notes-file "~/Dropbox/Documents/Org/notes.org" org-after-todo-state-change-hook '(org-clock-out-if-current) org-latex-format-drawer-function '(lambda (name contents) contents) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-pretty-entities-include-sub-superscripts nil org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes setup-org-mode) org-use-speed-commands t org-ascii-format-drawer-function '(lambda (name contents width) contents) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-directory "~/Dropbox/Documents/Org/" org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-todo-keywords '((type "TODO(t!)" "STARTED(s)" "WAITING(w@/!)" "|" "CANCELLED(c)" "FUTURE(f)" "DONE(d!)") (type "Note(n)") (type "Event(e)") (sequence "PROJECT(p)" "|" "COMPLETE(c@)")) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-html-format-headline-function 'ignore org-html-format-inlinetask-function 'ignore org-agenda-files '("~/Dropbox/Documents/Org/") org-clock-out-hook '(org-clock-remove-empty-clock-drawer) )