emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [bug, ox-latex] Parsed keywords and export with subscript
@ 2017-03-14 10:05 Rasmus
  2017-03-14 17:15 ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: Rasmus @ 2017-03-14 10:05 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

It would seem that parse doesn't behave correctly when
org-export-with-sub-superscripts is turned off via #+options.

Example:

    #+options: ^:nil
    #+date: a_b
    * test
    a_b

Exported result with ox-latex:

    %% ...
    \date{a\(\_b\)}
    %% ...
    \section{test}
    a\_b
    %% ...

Expected result 

    %% ...
    \date{a\_b}
    %% ...
    \section{test}
    a\_b
    %% ...

Perhaps I'm misunderstanding how a parsed keyword is supposed to do...

Thanks,
Rasmus

-- 
And I faced endless streams of vendor-approved Ikea furniture. . .

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [bug, ox-latex] Parsed keywords and export with subscript
  2017-03-14 10:05 [bug, ox-latex] Parsed keywords and export with subscript Rasmus
@ 2017-03-14 17:15 ` Nicolas Goaziou
  2017-03-23 15:23   ` Rasmus
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2017-03-14 17:15 UTC (permalink / raw)
  To: Rasmus; +Cc: emacs-orgmode

Hello,

Rasmus <rasmus@gmx.us> writes:

> It would seem that parse doesn't behave correctly when
> org-export-with-sub-superscripts is turned off via #+options.
>
> Example:
>
>     #+options: ^:nil
>     #+date: a_b
>
>     * test
>     a_b
>
> Exported result with ox-latex:
>
>     %% ...
>     \date{a\(\_b\)}
>     %% ...
>     \section{test}
>     a\_b
>     %% ...
>
> Expected result 
>
>     %% ...
>     \date{a\_b}
>     %% ...
>     \section{test}
>     a\_b
>     %% ...

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [bug, ox-latex] Parsed keywords and export with subscript
  2017-03-14 17:15 ` Nicolas Goaziou
@ 2017-03-23 15:23   ` Rasmus
  2017-03-23 15:47     ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: Rasmus @ 2017-03-23 15:23 UTC (permalink / raw)
  To: mail; +Cc: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> Rasmus <rasmus@gmx.us> writes:
>
>> It would seem that parse doesn't behave correctly when
>> org-export-with-sub-superscripts is turned off via #+options.
>>
>> Example:
>>
>>     #+options: ^:nil
>>     #+date: a_b
>>
>>     * test
>>     a_b
>>
>> Exported result with ox-latex:
>>
>>     %% ...
>>     \date{a\(\_b\)}
>>     %% ...
>>     \section{test}
>>     a\_b
>>     %% ...
>>
>> Expected result 
>>
>>     %% ...
>>     \date{a\_b}
>>     %% ...
>>     \section{test}
>>     a\_b
>>     %% ...
>
> Fixed. Thank you.

Backend-specific keywords are still an issue.  E.g. try this example with
ox-latex or ox-koma-letter.

    #+options: ^:nil
    #+author: 2017_03_23
    #+subject: 2017_03_23
    #+title: 2017_03_23
    #+subtitle: 2017_03_23

In patch 6cd42b08f9347a8d6084ec23548b754f9e02b2a1 you used

    (dolist (entry org-export-options-alist)

in ‘org-export-as’ Would it be possible to use this list instead?

    (append (org-export-get-all-options backend) org-export-options-alist)

Thanks,
Rasmus

-- 
Enough with the blah blah!

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [bug, ox-latex] Parsed keywords and export with subscript
  2017-03-23 15:23   ` Rasmus
@ 2017-03-23 15:47     ` Nicolas Goaziou
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2017-03-23 15:47 UTC (permalink / raw)
  To: Rasmus; +Cc: emacs-orgmode

Hello,

Rasmus <rasmus@gmx.us> writes:

> Backend-specific keywords are still an issue.  E.g. try this example with
> ox-latex or ox-koma-letter.
>
>     #+options: ^:nil
>     #+author: 2017_03_23
>
>     #+subject: 2017_03_23
>     #+title: 2017_03_23
>
>     #+subtitle: 2017_03_23
>
> In patch 6cd42b08f9347a8d6084ec23548b754f9e02b2a1 you used
>
>     (dolist (entry org-export-options-alist)
>
> in ‘org-export-as’ Would it be possible to use this list instead?
>
>     (append (org-export-get-all-options backend)
>     org-export-options-alist)

Of course. Done.

Thank you.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-23 15:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-14 10:05 [bug, ox-latex] Parsed keywords and export with subscript Rasmus
2017-03-14 17:15 ` Nicolas Goaziou
2017-03-23 15:23   ` Rasmus
2017-03-23 15:47     ` 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).