* Bug: Smart quotes for LaTeX export broken in tables [8.3.4 (8.3.4-9-gfda14f-elpa @ elpa/org-20160307/)]
@ 2016-03-08 15:54 Philipp Middendorf
2016-03-10 9:12 ` Nicolas Goaziou
0 siblings, 1 reply; 6+ messages in thread
From: Philipp Middendorf @ 2016-03-08 15:54 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 noticed that when exporting to LaTeX using smart quotes, the smart
quotes will be inserted in normal paragraphs but not inside tables. A
minimal example is as follows:
#+LANGUAGE: de
#+OPTIONS: ':t
#+LATEX_HEADER: \usepackage[german]{babel}
foo "bar"
| foo | bar |
| bar | foo "qux" bar |
This will be exported as follows (relevant snippet):
foo "`bar"'
\begin{center}
\begin{tabular}{ll}
foo & bar\\
bar & foo "qux" bar\\
\end{tabular}
If this is intentional, what's the purpose?
Regards
Philipp Middendorf
Emacs : GNU Emacs 24.5.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
of 2015-10-15 on pmi-ThinkCentre-M92p
Package: Org-mode version 8.3.4 (8.3.4-9-gfda14f-elpa @ /home/pmi/.emacs.d/elpa/org-20160307/)
current state:
==============
(setq
org-export-backends '(ascii beamer html icalendar latex)
org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
org-latex-classes '(("haconarticle" "\\documentclass[11pt,a4paper]{haconarticle}"
("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
("beamer" "\\documentclass[presentation]{beamer}" ("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
("article" "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}")
("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\part*{%s}")
("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
)
org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook)
org-ellipsis "⤵"
org-occur-hook '(org-first-headline-recenter)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-icalendar-include-todo t
org-agenda-start-on-weekday nil
org-html-format-drawer-function '(lambda (name contents) contents)
org-log-done 'time
org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function
org-confirm-shell-link-function 'yes-or-no-p
org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
org-latex-format-headline-function 'org-latex-format-headline-default-function
org-todo-keyword-faces '(("WAIT" . "yellow"))
org-clock-heading-function '(lambda nil
(let ((str (nth 4 (org-heading-components))) (lenlimit 20))
(if (> (length str) lenlimit)
(substring (replace-regexp-in-string "\\[\\[.*?\\]\\[\\(.*?\\)\\]\\]" "\\1" str) 0
lenlimit)
)
)
)
org-icalendar-use-scheduled '(event-if-not-todo event-if-todo todo-start)
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-latex-format-drawer-function '(lambda (name contents) contents)
org-from-is-user-regexp "\\<pmi\\>"
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-babel-pre-tangle-hook '(save-buffer)
org-mode-hook '((lambda nil (org-bullets-mode 1)) org-clock-load (lambda nil (org-indent-mode 1))
#[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)
org-extend-today-until 3
org-archive-hook '(org-attach-archive-delete-maybe)
org-ascii-format-drawer-function '(lambda (name contents width) contents)
org-clock-persist 'history
org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
org-icalendar-include-bbdb-anniversaries t
org-agenda-use-time-grid nil
org-lowest-priority 90
org-modules '(org-bbdb org-habit org-drill)
org-agenda-span 14
org-confirm-elisp-link-function 'yes-or-no-p
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-html-format-headline-function 'org-html-format-headline-default-function
org-completion-use-ido t
org-babel-load-languages '((sh . t) (emacs-lisp . t) (plantuml . t))
org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug: Smart quotes for LaTeX export broken in tables [8.3.4 (8.3.4-9-gfda14f-elpa @ elpa/org-20160307/)]
2016-03-08 15:54 Bug: Smart quotes for LaTeX export broken in tables [8.3.4 (8.3.4-9-gfda14f-elpa @ elpa/org-20160307/)] Philipp Middendorf
@ 2016-03-10 9:12 ` Nicolas Goaziou
2016-03-13 19:28 ` Achim Gratz
0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2016-03-10 9:12 UTC (permalink / raw)
To: Philipp Middendorf; +Cc: emacs-orgmode
Hello,
Philipp Middendorf <pmi@hacon.de> writes:
> I noticed that when exporting to LaTeX using smart quotes, the smart
> quotes will be inserted in normal paragraphs but not inside tables. A
> minimal example is as follows:
>
> #+LANGUAGE: de
> #+OPTIONS: ':t
> #+LATEX_HEADER: \usepackage[german]{babel}
>
> foo "bar"
>
> | foo | bar |
> | bar | foo "qux" bar |
>
> This will be exported as follows (relevant snippet):
>
> foo "`bar"'
>
> \begin{center}
> \begin{tabular}{ll}
> foo & bar\\
> bar & foo "qux" bar\\
> \end{tabular}
Fixed. Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug: Smart quotes for LaTeX export broken in tables [8.3.4 (8.3.4-9-gfda14f-elpa @ elpa/org-20160307/)]
2016-03-10 9:12 ` Nicolas Goaziou
@ 2016-03-13 19:28 ` Achim Gratz
2016-03-13 19:47 ` Nicolas Goaziou
0 siblings, 1 reply; 6+ messages in thread
From: Achim Gratz @ 2016-03-13 19:28 UTC (permalink / raw)
To: emacs-orgmode
Nicolas Goaziou writes:
> Fixed. Thank you.
This might have fixed the functionality, but the test you introduced
fails on Emacs 24.4 on Raspbian/Jessie:
--8<---------------cut here---------------start------------->8---
Test test-org-export/activate-smart-quotes backtrace:
(if (unwind-protect (setq value-99840 (apply fn-99838 args-99839)) (
(let (form-description-99842) (if (unwind-protect (setq value-99840
(let ((value-99840 (quote ert-form-evaluation-aborted-99841))) (let
(let ((fn-99838 (function equal)) (args-99839 (list (quote ("“
(lambda nil (let ((fn-99763 (function equal)) (args-99764 (list (quo
#[0 "\306\307!r\211q\210\310\311\312\313\314\315!\316\"\317\320%DC
funcall(#[0 "\306\307!r\211q\210\310\311\312\313\314\315!\316\"\31
ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
#[0 "r\304 q\210\305 )\306\307\310\311\312\313!\314\"\315\316%DC\2
funcall(#[0 "r\304 q\210\305 )\306\307\310\311\312\313!\314\"\315\
ert-run-test([cl-struct-ert-test test-org-export/activate-smart-quot
ert-run-or-rerun-test([cl-struct-ert--stats "\\(org\\|ob\\)" [[cl-st
ert-run-tests("\\(org\\|ob\\)" #[385 "\306\307\"\203D\211\211G\310
ert-run-tests-batch("\\(org\\|ob\\)")
ert-run-tests-batch-and-exit("\\(org\\|ob\\)")
(let ((org-id-track-globally t) (org-test-selector (if org-test-sele
org-test-run-batch-tests("\\(org\\|ob\\)")
eval((org-test-run-batch-tests org-test-select-re))
command-line-1(("--eval" "(setq vc-handled-backends nil org-startup-
command-line()
normal-top-level()
Test test-org-export/activate-smart-quotes condition:
(ert-test-failed
((should
(equal '...
(let ... ...)))
:form
(equal
("“foo”")
(#("*“foo”*" 0 1 ... 8 11 ... 18 19 ...)))
:value nil :explanation
(list-elt 0
(arrays-of-different-length 17 19 "“foo”"
#("*“foo”*" 0 1 ... 8 11 ... 18 19 ...)
first-mismatch-at 0))))
--8<---------------cut here---------------end--------------->8---
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug: Smart quotes for LaTeX export broken in tables [8.3.4 (8.3.4-9-gfda14f-elpa @ elpa/org-20160307/)]
2016-03-13 19:28 ` Achim Gratz
@ 2016-03-13 19:47 ` Nicolas Goaziou
2016-03-13 20:10 ` Achim Gratz
0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2016-03-13 19:47 UTC (permalink / raw)
To: Achim Gratz; +Cc: emacs-orgmode
Hello,
Achim Gratz <Stromeko@nexgo.de> writes:
> This might have fixed the functionality, but the test you introduced
> fails on Emacs 24.4 on Raspbian/Jessie:
Unfortunately, I cannot reproduce the failure. Neither can our buildbot.
Could you investigate a bit more about it? For example, how is the
document below exported to ASCII?
#+options: ':t
#+language: en
*"test"*
Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug: Smart quotes for LaTeX export broken in tables [8.3.4 (8.3.4-9-gfda14f-elpa @ elpa/org-20160307/)]
2016-03-13 19:47 ` Nicolas Goaziou
@ 2016-03-13 20:10 ` Achim Gratz
2016-03-13 22:35 ` Nicolas Goaziou
0 siblings, 1 reply; 6+ messages in thread
From: Achim Gratz @ 2016-03-13 20:10 UTC (permalink / raw)
To: emacs-orgmode
Nicolas Goaziou writes:
> Unfortunately, I cannot reproduce the failure. Neither can our buildbot.
> Could you investigate a bit more about it? For example, how is the
> document below exported to ASCII?
>
> #+options: ':t
> #+language: en
>
> *"test"*
--8<---------------cut here---------------start------------->8---
Table of Contents
_________________
*"test"*
Org-mode version 8.3.4 (release_8.3.4-15-gdd9be3 @
/usr/share/emacs/site-lisp/org/)
--8<---------------cut here---------------end--------------->8---
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-03-13 22:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-08 15:54 Bug: Smart quotes for LaTeX export broken in tables [8.3.4 (8.3.4-9-gfda14f-elpa @ elpa/org-20160307/)] Philipp Middendorf
2016-03-10 9:12 ` Nicolas Goaziou
2016-03-13 19:28 ` Achim Gratz
2016-03-13 19:47 ` Nicolas Goaziou
2016-03-13 20:10 ` Achim Gratz
2016-03-13 22:35 ` Nicolas Goaziou
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).