Nicolas Goaziou
bebfd341af
Merge branch 'maint'
2017-10-24 13:56:56 +02:00
Nicolas Goaziou
5c91976b49
ox-texinfo: Remove TABs from output
...
* lisp/ox-texinfo.el (org-texinfo--untabify): New function.
(texinfo): Use new function as a final output filter.
See (info "(texinfo) Conventions").
2017-10-24 13:55:38 +02:00
Nicolas Goaziou
73a15d1bfb
ox-texinfo: Small refactoring
...
* lisp/ox-texinfo.el (org-texinfo--sanitize-title):
(org-texinfo--wrap-float): Use new `org-export-toc-entry-backend'
function.
2017-10-24 10:07:50 +02:00
Nicolas Goaziou
e59199e3a8
ox-texinfo: Fix missing contents in headings out of TOC
...
* lisp/ox-texinfo.el (org-texinfo-section): Include contents even in
headings out of TOC.
2017-10-23 14:55:05 +02:00
Nicolas Goaziou
5b2b8f3175
ox-texinfo: Handle "notoc" value
...
* lisp/ox-texinfo.el (org-texinfo-classes): Introduce @chapheading and
al. in default value.
(org-texinfo--structuring-command): Remove function.
(org-texinfo-headline): Handle unnumbered out of TOC headlines.
(org-texinfo-section): Do not add menu in unnumbered headings.
2017-10-15 16:51:13 +02:00
Nicolas Goaziou
7df5d21f79
Merge branch 'maint'
2017-10-14 12:30:59 +02:00
Nicolas Goaziou
827af59873
Fix links without contents in table of contents' entries
...
* lisp/ox.el (org-export-toc-entry-backend): New function.
* lisp/ox-html.el (org-html--format-toc-headline):
* lisp/ox-md.el (org-md--build-toc):
* lisp/ox-odt.el (org-odt-toc): Use new function.
* lisp/ox-texinfo.el (org-texinfo--sanitize-title):
(org-texinfo--wrap-float): Handle links without contents.
* testing/lisp/test-ox.el (test-org-export/toc-entry-backend): New
test.
Reported-by: ConcreteVitamin <concretevitamin@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00235.html >
2017-10-14 12:29:52 +02:00
Nicolas Goaziou
ad0662bbe7
Revert "Table of contents ignore unnumbered headlines"
...
This reverts commit bd2378161e
.
2017-09-21 21:14:41 +02:00
Kyle Meyer
297acd7517
Merge branch 'maint'
2017-09-17 01:17:10 -04:00
Paul Eggert
ff0dcf52a5
Backport commit bc511a64f from Emacs
...
Prefer HTTPS to FTP and HTTP in documentation
bc511a64f6da9ab51acc7c8865e80c4a4cb655c2
Paul Eggert
Wed Sep 13 15:54:37 2017 -0700
2017-09-17 00:28:38 -04:00
Nicolas Goaziou
9f863a695b
ox-texinfo: Add missing autoload cookies
...
* lisp/ox-texinfo.el (org-texinfo-export-to-texinfo):
(org-texinfo-export-to-info): Add autoload cookie.
2017-09-15 21:11:55 +02:00
Nicolas Goaziou
9c4ee81a8b
ox-texinfo: Add missing autoload cookies
...
* lisp/ox-texinfo.el (org-texinfo-export-to-texinfo):
(org-texinfo-export-to-info): Add autoload cookie.
2017-09-15 21:10:29 +02:00
Nicolas Goaziou
c6e5639b7e
ox-texinfo: Do not add @node for unnumbered headings
...
* lisp/ox-texinfo.el (org-texinfo-headline): Do not add @node for
unnumbered headings.
2017-09-10 19:17:44 +02:00
Nicolas Goaziou
bd2378161e
Table of contents ignore unnumbered headlines
...
* doc/org.texi (Table of contents): Document behavior.
* lisp/ox-texinfo.el (org-texinfo-classes): Use @heading commands and
alike for unnumbered sections.
* lisp/ox.el (org-export-collect-headlines): Ignore unnumbered
headlines.
* testing/lisp/test-ox.el (test-org-export/collect-headlines): Add
test.
2017-09-10 15:53:20 +02:00
Nicolas Goaziou
720b213a35
ox-texinfo: Default process includes "--no-split" option
...
* lisp/ox-texinfo.el (org-texinfo-info-process): Add "--no-split"
option.
Reported-by: Jonas Bernoulli <jonas@bernoul.li>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-07/msg00458.html >
2017-07-27 13:52:12 +02:00
Nicolas Goaziou
ed6849d18d
ox-texinfo: Insert blank line between sectioning command and contents
...
* lisp/ox-texinfo.el (org-texinfo-headline): Insert blank line between
sectioning command and contents.
2017-07-25 20:44:35 +02:00
Nicolas Goaziou
8112629d37
ox-texinfo: Fix code typo
...
* lisp/ox-texinfo.el (org-texinfo--menu-entries): Only collect direct
children.
The regression was introduced in
1b415735ea
.
2017-07-25 19:24:47 +02:00
Nicolas Goaziou
379a22c9c6
Revert "ox-texinfo: Move menu handling from sections to headlines"
...
This reverts commit 988e8802a6
.
2017-06-28 22:51:26 +02:00
Nicolas Goaziou
1b415735ea
ox-texinfo: Small menu refactoring
...
* lisp/ox-texinfo.el (org-texinfo--menu-entries): Use
`org-export-collect-headlines'.
2017-06-22 19:01:28 +02:00
Nicolas Goaziou
988e8802a6
ox-texinfo: Move menu handling from sections to headlines
...
* lisp/ox-texinfo.el (org-texinfo-headline): Move menu handling from
sections to headlines.
2017-06-22 19:01:23 +02:00
Nicolas Goaziou
20795aae27
ox-texinfo: Change Texinfo class definition
...
* lisp/ox-texinfo.el (org-texinfo-classes): Change default value and
structure.
(org-texinfo--structuring-command): New function.
(org-texinfo-headline): Use new function.
The new structure handles properly appendices at sub-levels.
2017-06-22 18:46:44 +02:00
Nicolas Goaziou
03d43ee6c6
Merge branch 'maint'
2017-06-20 09:30:25 +02:00
Nicolas Goaziou
5d6325ffa3
ox-texinfo: Remove spurious "@insertcopying"
...
* lisp/ox-texinfo.el (org-texinfo-template): Remove "@insertcopying"
command outside title page.
See (info "(texinfo) Copyright") for details.
2017-06-20 09:28:40 +02:00
Nicolas Goaziou
5e439d41f8
Merge branch 'maint'
2017-06-20 09:25:05 +02:00
Nicolas Goaziou
fa6b7bf25c
ox-texinfo: Fix location of text before first headline
...
* doc/org.texi (Info directory file): Fix node name.
(Headings and sectioning structure): Document location of text before
first headline.
(A Texinfo example): Update example.
* lisp/ox-texinfo.el (org-texinfo-template): Handle contents of very
first section.
(org-texinfo-section): Ignore very first section.
According to Texinfo specifications, Top node contents should not
appear in printed output. Move it near "@top" command, within
"@ifnottex".
2017-06-20 09:24:34 +02:00
Nicolas Goaziou
1a6bf9c5f9
Merge branch 'maint'
2017-06-18 11:03:43 +02:00
Nicolas Goaziou
8769cfc91c
Revert "ox-texinfo: Escape @ { } in index"
...
* lisp/ox-texinfo.el (org-texinfo-keyword): Index keywords are
specific to Texinfo back-end, so they expect regular Texinfo code.
* doc/org.texi (Indices): Update documentation.
2017-06-18 11:00:56 +02:00
Nicolas Goaziou
4295d1b949
Merge branch 'maint'
2017-06-17 12:07:09 +02:00
Nicolas Goaziou
39351d0d14
ox-texinfo: Add missing entities
...
* lisp/ox-texinfo.el (org-texinfo-entity): Add "@textdegree{}" and
"@registeredsymbol".
2017-06-17 12:04:36 +02:00
Nicolas Goaziou
ad0312cde2
Merge branch 'maint'
2017-06-14 23:07:44 +02:00
Nicolas Goaziou
17382722db
ox-texinfo: Fix last commit
...
* lisp/ox-texinfo.el (org-texinfo-keyword): Fix last commit.
Do not escape raw #+TEXINFO value.
2017-06-14 23:07:04 +02:00
Nicolas Goaziou
e5396c189a
Merge branch 'maint'
2017-06-14 21:27:37 +02:00
Nicolas Goaziou
a621289953
ox-texinfo: Escape @ { } in index
...
* lisp/ox-texinfo.el (org-texinfo-keyword): Escape @ { } in index.
2017-06-14 21:27:02 +02:00
Nicolas Goaziou
be30c8b126
ox-texinfo: Change default table markup
...
* lisp/ox-texinfo.el (org-texinfo-table-default-markup): Rename from
`org-texinfo-def-table-markup'. Set default value to the neutral
"@asis".
(org-texinfo-plain-list): Use new name.
* lisp/org-compat.el (org-texinfo-def-table-markup): Mark as obsolete.
* doc/org.texi (Publishing options): Document change.
2017-06-14 19:11:33 +02:00
Nicolas Goaziou
5e35bc1807
Merge branch 'maint'
2017-06-11 11:39:37 +02:00
Nicolas Goaziou
62dc27dc75
ox-texinfo: Fix spurious "nil" in "special block export
...
* lisp/ox-texinfo.el (org-texinfo-special-block): Remove spurious
"nil" when no option is defined.
2017-06-11 11:38:45 +02:00
Nicolas Goaziou
cf505d2ebb
ox-texinfo: Export example blocks as @example
...
* lisp/ox-texinfo.el (org-texinfo-example-block): Export as @example.
Escape @, {, }, however, so as to get proper verbatim contents.
2017-06-09 22:03:08 +02:00
Nicolas Goaziou
c24c07c810
Merge branch 'maint'
2017-06-08 23:28:03 +02:00
Nicolas Goaziou
9fdc77a3cd
ox-texinfo: Improve entities handling
...
* lisp/ox-texinfo.el (org-texinfo-entity): Use Texinfo specific
commands whenever possible.
2017-06-08 23:26:26 +02:00
Nicolas Goaziou
feb34a1fbf
Merge branch 'maint'
2017-06-08 21:17:09 +02:00
Nicolas Goaziou
a138fedfd2
ox-texinfo: Use UTF-8 instead of LaTeX for entities
...
* lisp/ox-texinfo.el (org-texinfo-entity): Use UTF-8 instead of LaTeX
for entities.
2017-06-08 21:16:43 +02:00
Nicolas Goaziou
ddc80b628a
Merge branch 'maint'
2017-06-08 15:16:20 +02:00
Nicolas Goaziou
f03387ef90
ox-texinfo: Fix special characters in plain text
...
* lisp/ox-texinfo.el (org-texinfo-plain-text): Add missing
discretionary hyphenation point. Tiny refactoring.
2017-06-08 15:14:48 +02:00
Nicolas Goaziou
c5bb67ef60
ox-texinfo: Do not consider :sep value as a regexp
...
* lisp/ox-texinfo.el (org-texinfo-item): Do not consider :sep value as
a regexp.
2017-06-08 09:04:31 +02:00
Nicolas Goaziou
a2c13a31bb
Merge branch 'maint'
2017-06-07 22:39:03 +02:00
Nicolas Goaziou
1c71172c54
ox-texinfo: Tolerate indicating commands without @-sign
...
* lisp/ox-texinfo.el (org-texinfo-def-table-markup): Improve
docstring.
(org-texinfo-plain-list): Tolerate indicating commands without @-sign.
2017-06-07 22:38:02 +02:00
Nicolas Goaziou
8dc31ed680
ox-texinfo: Implement the :sep attribute in plain lists
...
* lisp/ox-texinfo.el (org-texinfo-item):
* doc/org.texi (Plain lists in Texinfo export):
2017-06-07 22:17:08 +02:00
Nicolas Goaziou
16f735f1cb
Merge branch 'maint'
2017-06-07 12:23:56 +02:00
Nicolas Goaziou
8305c9381e
ox-texinfo: Remove spurious blank line in fixed width areas
...
* lisp/ox-texinfo.el (org-texinfo-fixed-width): Remove spurious blank
line.
2017-06-07 12:23:20 +02:00
Nicolas Goaziou
0ff8ba5907
ox-texinfo: Use @code instead of @verb for inline src blocks
...
* lisp/ox-texinfo.el (org-texinfo-inline-src-block): Use @code.
2017-06-07 00:16:35 +02:00