From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Allow more export options to be controlled per-subtree Date: Thu, 28 Sep 2017 17:28:08 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c076876fc4a70055a433be0" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxcbl-0005yr-Sp for emacs-orgmode@gnu.org; Thu, 28 Sep 2017 13:28:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxcbk-0004Di-Jg for emacs-orgmode@gnu.org; Thu, 28 Sep 2017 13:28:21 -0400 Received: from mail-yw0-x229.google.com ([2607:f8b0:4002:c05::229]:45362) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dxcbk-0004DB-Ep for emacs-orgmode@gnu.org; Thu, 28 Sep 2017 13:28:20 -0400 Received: by mail-yw0-x229.google.com with SMTP id q80so1518636ywg.2 for ; Thu, 28 Sep 2017 10:28:20 -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" To: emacs-org list --94eb2c076876fc4a70055a433be0 Content-Type: text/plain; charset="UTF-8" Hello, I see that many export options like org-export-with-emphasize, org-export-with-sub-superscripts cannot be set on per-subtree basis using properties. In ox.el, I see: (defconst org-export-options-alist '((:title "TITLE" nil nil parse) (:date "DATE" nil nil parse) (:author "AUTHOR" nil user-full-name parse) (:email "EMAIL" nil user-mail-address t) (:language "LANGUAGE" nil org-export-default-language t) (:select-tags "SELECT_TAGS" nil org-export-select-tags split) (:exclude-tags "EXCLUDE_TAGS" nil org-export-exclude-tags split) (:creator "CREATOR" nil org-export-creator-string) (:headline-levels nil "H" org-export-headline-levels) (:preserve-breaks nil "\\n" org-export-preserve-breaks) (:section-numbers nil "num" org-export-with-section-numbers) (:time-stamp-file nil "timestamp" org-export-time-stamp-file) (:with-archived-trees nil "arch" org-export-with-archived-trees) (:with-author nil "author" org-export-with-author) (:with-broken-links nil "broken-links" org-export-with-broken-links) (:with-clocks nil "c" org-export-with-clocks) (:with-creator nil "creator" org-export-with-creator) (:with-date nil "date" org-export-with-date) (:with-drawers nil "d" org-export-with-drawers) (:with-email nil "email" org-export-with-email) (:with-emphasize nil "*" org-export-with-emphasize) (:with-entities nil "e" org-export-with-entities) (:with-fixed-width nil ":" org-export-with-fixed-width) (:with-footnotes nil "f" org-export-with-footnotes) (:with-inlinetasks nil "inline" org-export-with-inlinetasks) (:with-latex nil "tex" org-export-with-latex) (:with-planning nil "p" org-export-with-planning) (:with-priority nil "pri" org-export-with-priority) (:with-properties nil "prop" org-export-with-properties) (:with-smart-quotes nil "'" org-export-with-smart-quotes) (:with-special-strings nil "-" org-export-with-special-strings) (:with-statistics-cookies nil "stat" org-export-with-statistics-cookies) (:with-sub-superscript nil "^" org-export-with-sub-superscripts) (:with-toc nil "toc" org-export-with-toc) (:with-tables nil "|" org-export-with-tables) (:with-tags nil "tags" org-export-with-tags) (:with-tasks nil "tasks" org-export-with-tasks) (:with-timestamps nil "<" org-export-with-timestamps) (:with-title nil "title" org-export-with-title) (:with-todo-keywords nil "todo" org-export-with-todo-keywords)) I believe that can be fixed by doing: (:with-emphasize "WITH_EMPHASIZE" "*" org-export-with-emphasize) .. and so on, and then one can have :EXPORT_WITH_EMPHASIZE: t or :EXPORT_WITH_EMPHASIZE: in the subtree property. Is there a reason why this support wasn't added in the first place? (Or does a method already exist to allow me to do the above?) I can work on a patch if it's OK to enable this functionality. -- Kaushal Modi --94eb2c076876fc4a70055a433be0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I see that many export options l= ike org-export-with-emphasize, org-export-with-sub-superscripts cannot be s= et on per-subtree basis using properties.

In ox.el= , I see:

(defconst org-export-options-alist
=C2=A0 '((:title "TITLE" nil nil parse)
= =C2=A0 =C2=A0 (:date "DATE" nil nil parse)
=C2=A0 =C2= =A0 (:author "AUTHOR" nil user-full-name parse)
=C2=A0 = =C2=A0 (:email "EMAIL" nil user-mail-address t)
=C2=A0 = =C2=A0 (:language "LANGUAGE" nil org-export-default-language t)
=C2=A0 =C2=A0 (:select-tags "SELECT_TAGS" nil org-export= -select-tags split)
=C2=A0 =C2=A0 (:exclude-tags "EXCLUDE_TA= GS" nil org-export-exclude-tags split)
=C2=A0 =C2=A0 (:creat= or "CREATOR" nil org-export-creator-string)
=C2=A0 =C2= =A0 (:headline-levels nil "H" org-export-headline-levels)
=C2=A0 =C2=A0 (:preserve-breaks nil "\\n" org-export-preserve-= breaks)
=C2=A0 =C2=A0 (:section-numbers nil "num" org-e= xport-with-section-numbers)
=C2=A0 =C2=A0 (:time-stamp-file nil &= quot;timestamp" org-export-time-stamp-file)
=C2=A0 =C2=A0 (:= with-archived-trees nil "arch" org-export-with-archived-trees)
=C2=A0 =C2=A0 (:with-author nil "author" org-export-with-= author)
=C2=A0 =C2=A0 (:with-broken-links nil "broken-links&= quot; org-export-with-broken-links)
=C2=A0 =C2=A0 (:with-clocks n= il "c" org-export-with-clocks)
=C2=A0 =C2=A0 (:with-cre= ator nil "creator" org-export-with-creator)
=C2=A0 =C2= =A0 (:with-date nil "date" org-export-with-date)
=C2=A0= =C2=A0 (:with-drawers nil "d" org-export-with-drawers)
=C2=A0 =C2=A0 (:with-email nil "email" org-export-with-email)
=C2=A0 =C2=A0 (:with-emphasize nil "*" org-export-with-em= phasize)
=C2=A0 =C2=A0 (:with-entities nil "e" org-expo= rt-with-entities)
=C2=A0 =C2=A0 (:with-fixed-width nil ":&qu= ot; org-export-with-fixed-width)
=C2=A0 =C2=A0 (:with-footnotes n= il "f" org-export-with-footnotes)
=C2=A0 =C2=A0 (:with-= inlinetasks nil "inline" org-export-with-inlinetasks)
= =C2=A0 =C2=A0 (:with-latex nil "tex" org-export-with-latex)
=
=C2=A0 =C2=A0 (:with-planning nil "p" org-export-with-planni= ng)
=C2=A0 =C2=A0 (:with-priority nil "pri" org-export-= with-priority)
=C2=A0 =C2=A0 (:with-properties nil "prop&quo= t; org-export-with-properties)
=C2=A0 =C2=A0 (:with-smart-quotes = nil "'" org-export-with-smart-quotes)
=C2=A0 =C2=A0= (:with-special-strings nil "-" org-export-with-special-strings)<= /div>
=C2=A0 =C2=A0 (:with-statistics-cookies nil "stat" org-= export-with-statistics-cookies)
=C2=A0 =C2=A0 (:with-sub-superscr= ipt nil "^" org-export-with-sub-superscripts)
=C2=A0 = =C2=A0 (:with-toc nil "toc" org-export-with-toc)
=C2=A0= =C2=A0 (:with-tables nil "|" org-export-with-tables)
= =C2=A0 =C2=A0 (:with-tags nil "tags" org-export-with-tags)
<= div>=C2=A0 =C2=A0 (:with-tasks nil "tasks" org-export-with-tasks)=
=C2=A0 =C2=A0 (:with-timestamps nil "<" org-export-= with-timestamps)
=C2=A0 =C2=A0 (:with-title nil "title"= org-export-with-title)
=C2=A0 =C2=A0 (:with-todo-keywords nil &q= uot;todo" org-export-with-todo-keywords))


I believe that can be fixed by doing:

=C2=A0 =C2=A0 (:with-emphasize "WITH_EMPHASIZE" "*&quo= t; org-export-with-emphasize)

.. and so on, an= d then one can have

:EXPORT_WITH_EMPHASIZE: t

or

:EXPORT_WITH_EMPHASIZE:

in the subtree property.

Is= there a reason why this support wasn't added in the first place?=C2=A0=
(Or does a method already exist to allow me to do the above?)

I can work on a patch if it's OK to enable this = functionality.=C2=A0
--

Kau= shal Modi

--94eb2c076876fc4a70055a433be0--