Nicolas Goaziou
4542ef8799
ox-html: Fix typo
...
* lisp/ox-html.el (org-html-paragraph): Fix typo introduced in
da571868a5
.
2015-04-24 21:24:57 +02:00
Nicolas Goaziou
da571868a5
ox-html: Fix paragraph class in footnote definitions
...
* lisp/ox-html.el (org-html-footnote-section):
(org-html-paragraph): Add "footpara" class for footnote definitions.
Reported-by: Rasmus <rasmus@gmx.us>
<http://permalink.gmane.org/gmane.emacs.orgmode/97157 >
2015-04-24 21:21:22 +02:00
Nicolas Goaziou
e0567c9cac
Export back-ends: Use `org-export-file-uri'
...
* contrib/lisp/ox-groff.el (org-groff-link):
* lisp/ox-html.el (org-html-link):
* lisp/ox-latex.el (org-latex-link):
* lisp/ox-man.el (org-man-link):
* lisp/ox-md.el (org-md-link):
* lisp/ox-odt.el (org-odt-link):
* lisp/ox-texinfo.el (org-texinfo-link): Use `org-export-file-uri'.
2015-04-20 12:37:13 +02:00
Nicolas Goaziou
0449b785b4
ox-html: Fix CUSTOM_ID handling
...
* lisp/ox-html.el (org-html-headline): Prefer raw CUSTOM_ID over
internal reference.
This is required for custom CSS and to link generated page from
outside Org. However, the user is responsible for not using forbidden
characters in its value.
2015-04-19 00:30:58 +02:00
Nicolas Goaziou
cd7cbdcda8
ox-publish: Extend published external links
...
* lisp/ox-publish.el (org-publish-collect-numbering):
(org-publish-resolve-external-fuzzy-link): Remove functions.
(org-publish--collect-references, org-publish-resolve-external-link):
New functions.
(org-publish-org-to): Use new functions.
* lisp/ox-html.el (org-html-link): Reflect changes above.
This patch extends `org-publish-resolve-external-fuzzy-link', now
known as `org-publish-resolve-external-link' to custom-id links and
dedicated targets.
2015-04-13 15:37:27 +02:00
Nicolas Goaziou
4590332652
Export back-ends: Use `org-export-get-reference'
...
* lisp/ox-beamer.el (org-beamer-link):
(org-beamer-plain-list):
(org-beamer-target):
(org-beamer-radio-target):
* lisp/ox-html.el (org-html--wrap-image):
(org-html--format-toc-headline):
(org-html-list-of-listings):
(org-html-list-of-tables):
(org-html-headline):
(org-html-inline-src-block):
(org-html-link):
(org-html-paragraph):
(org-html-section):
(org-html-radio-target):
(org-html-src-block):
(org-html-table):
(org-html-target):
* lisp/ox-latex.el (org-latex--caption/label-string):
(org-latex--wrap-label):
(org-latex-center-block):
(org-latex-drawer):
(org-latex-dynamic-block):
(org-latex-example-block):
(org-latex-fixed-width):
(org-latex-headline):
(org-latex-horizontal-rule):
(org-latex-latex-environment):
(org-latex-link):
(org-latex-plain-list):
(org-latex-quote-block):
(org-latex-radio-target):
(org-latex-target):
(org-latex-verse-block):
* lisp/ox-man.el (org-man-target):
* lisp/ox-md.el (org-md-headline):
* lisp/ox-odt.el (org-odt-format-headline--wrap):
(org-odt-headline):
(org-odt-format-label):
(org-odt-link--infer-description):
(org-odt-link):
(org-odt-radio-target):
(org-odt-target):
* lisp/ox-texinfo.el (org-texinfo--get-node):
(org-texinfo-radio-target):
(org-texinfo-target):
* contrib/lisp/ox-groff.el (org-groff-link):
(org-groff-radio-target):
(org-groff-target):
* contrib/lisp/ox-rss.el (org-rss-headline): Use
`org-export-get-reference'.
2015-04-13 15:21:22 +02:00
Rasmus
a780080fcf
ox: Add #+SUBTITLE property in some backends
...
* ox-texinfo.el (texinfo, org-texinfo-template): Parse subtitle.
* ox-s5.el (org-s5-title-slide-template):
* ox-deck.el (org-deck-title-slide-template):
* ox-odt.el (odt, org-odt-template):
* ox-latex.el (latex, org-latex-template):
* ox-html.el (html, org-html-format-spec, org-html-template):
* ox-ascii.el (ascii, org-ascii-template--document-title):
* ox-beamer.el (beamer, org-beamer-template): Support #+SUBTITLE.
* ox-html.el (org-html-postamble-format)
(org-html-preamble-format):
* ox-latex.el (org-latex-title-command)
(org-latex-hyperref-template): Update docstring.
* ox-html.el (org-html-style-default): New .subtitle css property.
* ox-beamer.el (org-beamer-subtitle-format):
* ox-latex.el (org-latex-subtitle-format)
(org-latex-subtitle-separate): New variable.
* org.texi (ASCII/Latin-1/UTF-8 export)
(Beamer specific export settings)
(HTML Specific export settings)
(@LaTeX{} specific export settings, CSS support)
(ODT specific export settings)
(Texinfo specific export settings, Document preamble)
(Publishing options, Publishing options): Document #+SUBTITLE.
The patch adds a #+SUBTITLE keyword to ox-ascii, ox-latex, ox-html and
ox-odt.
2015-04-08 23:23:13 +02:00
Nicolas Goaziou
bf4edb6d16
ox-html: Silence byte-compiler
...
* lisp/ox-html.el (org-html--build-meta-info): Silence byte-compiler.
2015-04-08 13:32:31 +02:00
Nicolas Goaziou
b6ccee763f
ox-html: Silence byte-compiler
...
* lisp/ox-html.el (org-html--build-meta-info): Use `org-remove-if-not'
instead of `remove-if-not'.
2015-04-08 13:23:35 +02:00
Rasmus
a7becba686
ox-html: Use viewport
...
* ox-html.el (org-html--build-meta-info): Insert viewport.
(org-html-viewport): New custom variable.
* ORG-NEWS: Mention viewport.
* org.texi: Mention org-html-viewport.
Viewport makes org-generated html work well with small screens.
2015-04-08 12:06:09 +02:00
Rasmus
baf0d3e0fa
ox-html: Small fix
...
* ox-html.el (org-html-mathjax-options): Add new package-version.
2015-04-01 23:10:05 +02:00
Rasmus
c677c206fd
ox-html: Tiny fix
...
* ox-html.el (html): Remove duplicated line.
2015-04-01 13:35:37 +02:00
Rasmus
79c0aa21ca
ox: Remove #+KEYWORD and #+DESCRIPTION
...
* ox.el: Remove #+KEYWORD: and #+DESCRIPTION:.
* ox-deck.el, ox-rss.el, ox-html, ox-latex, ox-odt, ox-org: Add
#+KEYWORD and #+DESCRIPTION.
* org.texi (Export settings): Explicit state which backends
support #+DESCRIPTION and #+KEYWORDS.
2015-03-29 14:08:13 +02:00
Rasmus
c3838377da
ox-html: Tiny fix
...
* ox-html.el: Remove second :html-html5-fancy.
2015-03-27 14:52:50 +01:00
Rasmus
a95e9da223
ox-html: Handle missing title better
...
* ox-html.el (org-html-template): Only insert title when nonnil.
Empty headings trigger a W3 Validator warning.
2015-03-14 01:34:33 +01:00
Rasmus
8c54b254b1
ox-html: Use upstream MathJax CDN
...
* ox-html.el (org-html-mathjax-options): Add multlinewidth,
autonumber, tagindent, font, linebreaks and tagside. Remove MathML.
Change default indent to correspond to upstream default. Change
default MathJax path to point to upstream CDN.
(org-html--build-mathjax-config): Remove MathML-related parts.
(org-html-mathjax-template): Simplifiy template.
* org.texi (@LaTeX{} fragments), (Math formatting in HTML export):
Reflect change in default CDN.
* ORG-NEWS: Document changes.
2015-02-27 13:57:58 +01:00
Nicolas Goaziou
c76f254e8b
ox: Fix custom link handling in anonymous back-end
...
* lisp/ox.el (org-export-custom-protocol-maybe): Change signature.
* contrib/lisp/ox-groff.el (org-groff-link):
* lisp/ox-ascii.el (org-ascii-link):
* lisp/ox-beamer.el (org-beamer-link):
* lisp/ox-html.el (org-html-link):
* lisp/ox-latex.el (org-latex-link):
* lisp/ox-man.el (org-man-link):
* lisp/ox-md.el (org-md-link):
* lisp/ox-odt.el (org-odt-link):
* lisp/ox-org.el (org-org-link):
* lisp/ox-texinfo.el (org-texinfo-link): Apply signature change.
* testing/lisp/test-ox.el (test-org-export/custom-protocol-maybe):
Update test.
Provide explicitly back-end used instead of guessing it from INFO
channel as an anonymous back-end could be used, masquerading the real
one.
Reported-by: Christian Moe <mail@christianmoe.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/95402 >
2015-02-24 15:54:01 +01:00
Nicolas Goaziou
014de0a532
ox: Change `org-export-collect-footnote-definitions' signature
...
* lisp/ox.el (org-export-collect-footnote-definitions): Refactor
code. Change signature.
* testing/lisp/test-ox.el (test-org-export/collect-footnote-definitions):
New test.
(test-org-export/footnotes): Update test.
* lisp/ox-ascii.el (org-ascii-inner-template):
* lisp/ox-html.el (org-html-footnote-section): Apply signature change.
* etc/ORG-NEWS: Document signature change.
This change makes `org-export-collect-footnote-definitions' compatible
with `org-export-get-footnote-number' and
`org-export-footnote-first-reference-p'.
2015-02-20 18:06:23 +01:00
Nicolas Goaziou
0d24086657
Update some copyright years
2015-02-16 01:40:07 +01:00
Rasmus
e6fcc853c5
ox: Optional export of title
...
* ox.el (org-export-with-title): New variable.
* ox (org-export-options-alist),
ox-ascii.el (org-ascii-template--document-title),
ox-beamer.el (org-beamer-template), ox-html.el (org-html-template),
ox-latex.el (org-latex-template), ox-man.el (org-man-template),
ox-odt.el (org-odt-template), ox-org.el (org-org-template),
ox-publish.el (org-publish-project-alist),
ox-texinfo.el (org-texinfo-template),
ox-groff.el (org-groff--mt-head): Use new variable.
* ox-koma-letter.el (org-koma-letter-use-title): Mark obsolete.
* test-ox.el (test-org-export/parse-option-keyword): Add :with-title.
* ORG-NEWS, org.texi: Mention org-export-with-title.
This is useful in e.g. ox-html where title can be set via
`org-html-preamble-template' or when using the {{{title}}}-macro.
2015-02-12 01:45:39 +01:00
Nicolas Goaziou
528b909fe1
ox-html: Properly escape ampersands in links
...
* lisp/ox-html.el (org-html-link): Properly escape ampersands in
links.
(org-html-encode-plain-text): Small refactoring.
Reported-by: Karl Voit <devnull@Karl-Voit.at>
<http://permalink.gmane.org/gmane.emacs.orgmode/94640 >
2015-02-05 12:56:23 +01:00
Nicolas Goaziou
5ae0749e63
ox-html: Do not output "nil" for empty sections
...
* lisp/ox-html.el (org-html-section): Do not output "nil" when section
has no contents.
Reported-by: T.F. Torrey <tftorrey@tftorrey.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/94464 >
2015-01-30 00:31:33 +01:00
Rasmus
a297692b1c
ox-html: Remove extra HTML_HEAD, HTML_HEAD_EXTRA
...
* ox-html.el (html): Fix typo.
2015-01-27 03:30:43 +01:00
Rasmus
86588d6501
ox-html.el: Fix bug introduced in 077a24b
...
* ox-html.el (org-html-format-list-item): Check that contents in
non-nil.
2015-01-12 12:00:49 +01:00
Nicolas Goaziou
b07e2f6ff1
ox: Implement local table of contents
...
* lisp/ox.el (org-export-collect-headlines): Allow to collect
headlines locally.
* testing/lisp/test-ox.el (test-org-export/collect-headlines): Add
tests.
* lisp/ox-ascii.el (org-ascii--build-toc):
(org-ascii-keyword):
* lisp/ox-html.el (org-html-toc):
(org-html-keyword):
* lisp/ox-odt.el (org-odt-toc): Allow local table of contents.
(org-odt--format-toc): New function.
(org-odt-begin-toc, org-odt-end-toc): Remove functions.
* lisp/ox-latex.el (org-latex-logfiles-extensions): Optionally remove
"ptc" files.
(org-latex-headline, org-latex-keyword): Implement partial table of
contents assuming "titletoc" package is loaded.
* etc/ORG-NEWS:
* doc/org.texi (Table of contents): Document new parameter.
2015-01-11 22:47:02 +01:00
Zane D. Purvis
7e6436e2c8
ox-html.el: Add exporting of priority
...
* list/ox-html.el (org-html--priority): New function.
(org-html-format-headline-default-function): Call `org-html--priority'.
(org-html-style-default): Add `.priority'.
HTML export previously did not support exporting of priority simply by setting
`org-export-with-priority' to `t'.
TINYCHANGE
2015-01-10 10:27:32 +01:00
Zane D. Purvis
f9ba99bbc9
ox-html.el: DONE is monospace for consistency
...
* lisp/ox-html.el (org-html-style-default): `.done' gets `font-family:
monospace;'
Other items on the headline that aren't the text itself are monospaced,
including non-DONE todo's.
TINYCHANGE
2015-01-09 09:22:03 +01:00
Nicolas Goaziou
3900155788
Implement `org-export-custom-protocol-maybe' and use it
...
* lisp/ox.el (org-export-custom-protocol-maybe): New function.
* contrib/lisp/ox-groff.el (org-groff-link):
* lisp/ox-ascii.el (org-ascii-link):
* lisp/ox-beamer.el (org-beamer-link):
* lisp/ox-html.el (org-html-link):
* lisp/ox-latex.el (org-latex-link):
* lisp/ox-man.el (org-man-link):
* lisp/ox-md.el (org-md-link):
* lisp/ox-odt.el (org-odt-link):
* lisp/ox-texinfo.el (org-texinfo-link): Use new function.
* testing/lisp/test-ox.el (test-org-export/custom-protocol-maybe): New
test.
2015-01-04 22:16:36 +01:00
Rasmus
077a24b8d0
ox-html.el: Trim list items
...
* ox-html.el (org-html-format-list-item): Trim contents to avoid
spurious space.
2014-12-20 23:32:44 +01:00
Nicolas Goaziou
fb906e15d7
ox-html: Fix docstring
...
* lisp/ox-html.el (org-html-protect-char-alist): Fix docstring.
Reported-by: Marcin Borkowski <mbork@wmi.amu.edu.pl>
2014-12-06 22:28:19 +01:00
Nicolas Goaziou
e1adb17ba5
Fix custom timestamps during export
...
* lisp/org.el (org-translate-time): Remove function.
(org-timestamp-translate): Rewrite function so it doesn't use the one
above.
* lisp/ox-ascii.el (org-ascii-clock, org-ascii-planning):
* lisp/ox-html.el (org-html-clock, org-html-planning, org-html-timestamp):
* lisp/ox-latex.el (org-latex-clock, org-latex-planning):
* lisp/ox-texinfo.el (org-texinfo-clock, org-texinfo-planning): Use
`org-timestamp-translate' instead of `org-translate-time'.
* etc/ORG-NEWS: Document function removal.
Reported-by: Ian Barton <lists@wilkesley.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/93127 >
2014-12-03 17:18:16 +01:00
Nicolas Goaziou
8daf4a89f1
Fix preview latex
...
* lisp/org.el (org-toggle-latex-fragment): Fix previewing nested
environments.
(org-format-latex): Change signature. Rewrite using Elements.
* lisp/ox-html (org-html-format-latex):
* lisp/ox-odt (org-odt--translate-latex-fragments): Apply signature
change.
Reported-by: Andreas Leha <andreas.leha@med.uni-goettingen.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/92142 >
2014-10-28 23:55:01 +01:00
Rasmus
58bb3a21f8
ox-html: Fix bug in c9ca0b6d
.
...
* ox-html.el (org-html-inlinetask): Fix bug.
2014-10-26 02:50:14 +02:00
Nicolas Goaziou
7f97406542
Bump Emacs version
...
* lisp/ob-core.el (org-babel-examplize-region):
* lisp/ob-exp.el (org-babel-exp-inline-code-template):
* lisp/org-table.el (org-table-copy-increment):
(org-table-formula-create-columns):
* lisp/org.el (org-agenda-ignore-drawer-properties):
(org-agenda-ignore-properties):
* lisp/ox-ascii.el (org-ascii-list-margin):
* lisp/ox-html.el (org-html-format-headline-function):
(org-html-format-inlinetask-function):
* lisp/ox-latex.el (org-latex-hyperref-template):
(org-latex-custom-id-as-label):
(org-latex-format-inlinetask-function):
(org-latex-known-warnings):
* lisp/ox-odt.el (org-odt-format-headline-function):
(org-odt-format-inlinetask-function):
* lisp/ox-texinfo.el (org-texinfo-format-headline-function): Bump
Emacs version.
2014-10-24 11:56:09 +02:00
Nicolas Goaziou
a526ee3b82
Fix 464cd96
...
* lisp/ox-html.el (org-html-link):
* lisp/ox-md.el (org-md-link): Fix errors introduced in
464cd965cb
.
2014-10-03 22:23:25 +02:00
Rasmus
464cd965cb
ox: Support unnumbered headlines via property
...
* ox.el (org-export--collect-headline-numbering): Ignore unnumbered headline.
(org-export-get-headline-id,
org-export--collect-unnumbered-headline-id): New functions.
(org-export-numbered-headline-p): Further tests for unnumbered headline.
* ox-odt.el (org-odt-headline, org-odt-link,
org-odt-link--infer-description)
ox-md.el (org-md-headline, org-md-link),
ox-latex.el (org-latex-headline, org.latex-link),
ox-html.el (org-html-headline, org-html-link),
ox-ascii.el (org-ascii-link): Support unnumbered headlines.
* test-ox.el (test-org-export/org-export-get-headline-id): New test.
* OrgOdtStyles.xml: Add styles for unnumbered headings.
2014-10-03 22:06:34 +02:00
Nicolas Goaziou
80e493a1f7
Merge branch 'maint'
...
Conflicts:
lisp/ox-html.el
2014-09-18 22:08:30 +02:00
Nicolas Goaziou
873fe49811
ox-html: Fix linking to deep level headlines
...
* lisp/ox-html.el (org-html-headline): Make sure even listified
headlines have proper anchors so internal links can refer to them.
Small refactoring.
Thanks to Bruce Gilstrap for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90835
2014-09-18 21:37:07 +02:00
Nicolas Goaziou
3432681fbe
Parsing and exporting special blocks preserve case
...
* lisp/org-element.el (org-element-special-block-parser):
* lisp/ox-latex.el (org-latex-special-block):
* lisp/ox-html.el (org-html-special-block):
* lisp/ox-man.el (org-man-special-block):
* lisp/ox-odt.el (org-odt-special-block):
* lisp/ox-texinfo.el (org-texinfo-special-block):
* contrib/lisp/ox-groff.el (org-groff-special-block): Preserve case.
* testing/lisp/test-org-element.el (test-org-element/special-block-parser):
Add test.
2014-09-17 20:52:54 +02:00
Nicolas Goaziou
e3369c07f0
Revert "Merge export and special blocks within back-ends"
...
This reverts commit fbc7097ffa
.
Conflicts:
lisp/ox-texinfo.el
2014-09-08 11:57:27 +02:00
Nicolas Goaziou
1a7c9d7d79
ox-html: Fix 9a34a1
...
* lisp/ox-html.el (org-html-paragraph): Only apply special rule in
list items.
Thanks to Richard Lawrence for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90532
2014-09-06 19:03:18 +02:00
Nicolas Goaziou
5da35ee0ca
Merge branch 'maint'
2014-08-28 01:04:01 +02:00
Nicolas Goaziou
ae457e7dce
Fix exporting radio link with missing radio target
...
* contrib/lisp/ox-groff.el (org-groff-link):
* lisp/ox-beamer.el (org-beamer-link):
* lisp/ox-html.el (org-html-link):
* lisp/ox-latex.el (org-latex-link):
* lisp/ox-odt.el (org-odt-link): When radio link has no valid
target (e.g., this is a subtree export and the radio target is not
in the exported subtree), simply return contents.
Thanks to Daniel Clement for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90218
2014-08-28 00:48:17 +02:00
Nicolas Goaziou
9a34a13c07
ox-html: Better criterion for first paragraphs in lists
...
* lisp/ox-html.el (org-html-paragraph): Do not wrap first paragraph in
an item within <p> tags in the most simple cases.
Thanks to Daniel Clemente for suggesting it.
http://permalink.gmane.org/gmane.emacs.orgmode/89413
2014-08-26 09:55:54 +02:00
Nicolas Berthier
2ea7bf4042
ox-html: Support for exporting inline source code to HTML
...
* lisp/ox-html.el (org-html-inline-src-block): support for exporting
inline source code to HTML.
2014-08-22 14:39:39 +02:00
Rick Frankel
6fa58b3cc2
Fix html checkbox output.
...
* lisp/ox-html.el (html): Add missing `:html-checkbox-type' option.
2014-08-06 10:24:27 -04:00
Nicolas Goaziou
6ba05e3200
ox-html: Fix missing <span> block around section number
...
* lisp/ox-html.el (org-html-headline): Add <span> element around
section number.
http://permalink.gmane.org/gmane.emacs.orgmode/89369
2014-08-02 15:36:42 +02:00
Nicolas Goaziou
cc7d757571
ox-html: Fix missing section number in ids
...
* lisp/ox-html.el (org-html-headline): Fix missing section number in
div ids.
Thanks to Matt Lundin for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/89291
2014-07-31 10:59:58 +02:00
Matt Lundin
282d8c86e7
Fix broken links in html publishing
...
* lisp/ox-html.el: Fix incorrect property name in :options-alist of
html backend definition.
2014-07-30 09:57:18 +02:00
Nicolas Goaziou
c9ca0b6df8
ox-html: Use options instead of hard-coded variables
...
* contrib/lisp/ox-s5.el (org-s5--format-toc-headline): Apply signature
change.
* lisp/ox-md.el (org-md-headline): Apply signature change.
* lisp/ox-html.el (org-html-format-drawer-function,
org-html-publish-to-html): Small reformatting.
(org-html-infojs-install-script, org-html--build-meta-info,
org-html--build-mathjax-config, org-html-format-spec,
org-html--build-pre/postamble, org-html-template, org-html-toc,
org-html--format-toc-headline, org-html-list-of-listings,
org-html-list-of-tables, org-html-bold, org-html-drawer,
org-html-headline, org-html-inlinetask, org-html-italic,
org-html-checkbox, org-html-inline-image-p, org-html-link,
org-html-section, org-html-strike-through, org-html-table-cell,
org-html-table-row, org-html-underline, org-html-verbatim,
org-html-final-function, org-html-export-to-html): Do not use
hard-coded variable names.
(org-html-format-headline-function,
org-html-format-inlinetask-function): Change default value. Require
an additional argument.
(org-html-format-footnote-reference,
org-html-format-footnotes-section,
org-html-format-footnote-definition, org-html-format-headline,
org-html-format-headline--wrap, org-html-format-section): Remove
functions.
(org-html-footnote-section, org-html-footnote-reference): Apply
function removal. Do not use hard-coded variable names.
(org-html--anchor, org-html--todo, org-html--tags): Change signature.
Do not use hard-coded variable names.
(org-html-radio-target, org-html-target): Apply signature change.
(org-html-format-headline-default-function,
org-html-format-inlinetask-default-function): New functions.
2014-07-29 15:45:18 +02:00