summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2013-04-11 17:28:48 +0200
committerBastien Guerry <bzg@altern.org>2013-04-11 17:28:48 +0200
commit90dfd3a74931c18e95d5b7bda499882f96828900 (patch)
tree6f6f7bf29bcb084370fd9d25948420ba01f9c017
parent5d1025f5ec1ec81fc20e554bd693b34ca052d845 (diff)
downloadorg-mode-90dfd3a74931c18e95d5b7bda499882f96828900.tar.gz
doc/org.texi: Fix syntax within #+ATTR_* and document `org-html-table-row-tags'
* doc/org.texi (Links in HTML export, Images in HTML export) (post): Fix syntax within #+ATTR_*. (Tables in HTML export): Document `org-html-table-row-tags' and use `org-html-table-default-attributes' instead of `org-html-table-tag'.
-rw-r--r--doc/org.texi27
1 files changed, 16 insertions, 11 deletions
diff --git a/doc/org.texi b/doc/org.texi
index b4a9d8f..6d0a921 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -10640,27 +10640,32 @@ and @code{style} attributes for a link:
@cindex #+ATTR_HTML
@example
-#+ATTR_HTML: title="The Org mode homepage" style="color:red;"
+#+ATTR_HTML: :title "The Org mode homepage" :style "color:red;"
[[http://orgmode.org]]
@end example
@node Tables in HTML export, Images in HTML export, Links in HTML export, HTML export
@subsection Tables
@cindex tables, in HTML
-@vindex org-html-table-tag
+@vindex org-html-table-default-attributes
-Org mode tables are exported to HTML using the table tag defined in
-@code{org-html-table-tag}. The default setting makes tables without
-cell borders and frame. If you would like to change this for individual
-tables, place something like the following before the table:
+Org mode tables are exported to HTML using the table attributes defined in
+@code{org-html-table-default-attributes}. The default setting makes tables
+without cell borders and frame. If you would like to change this for
+individual tables, place something like the following before the table:
@cindex #+CAPTION
@cindex #+ATTR_HTML
@example
#+CAPTION: This is a table with lines around and between cells
-#+ATTR_HTML: border="2" rules="all" frame="border"
+#+ATTR_HTML: :border "2" :rules "all" :frame "border"
@end example
+@vindex org-html-table-row-tags
+You can also modify the default tags used for each row by setting
+@var{org-html-table-row-tags}. See the docstring for an example on
+how to use this option.
+
@node Images in HTML export, Math formatting in HTML export, Tables in HTML export, HTML export
@subsection Images in HTML export
@@ -10691,7 +10696,7 @@ support text viewers and accessibility, and align it to the right.
@cindex #+ATTR_HTML
@example
#+CAPTION: A black cat stalking a spider
-#+ATTR_HTML: alt="cat/spider image" title="Action!" align="right"
+#+ATTR_HTML: :alt "cat/spider image" :title "Action!" :align "right"
[[./img/a.jpg]]
@end example
@@ -12479,7 +12484,7 @@ string for the respective variable for details.
@vindex org-html-extension
@vindex org-html-preamble
@vindex org-html-postamble
-@vindex org-html-table-tag
+@vindex org-html-table-default-attributes
@vindex org-html-style-include-default
@vindex org-html-style-include-scripts
@multitable @columnfractions 0.32 0.68
@@ -14315,7 +14320,7 @@ argument.
@example
#+name: attr_wrap
#+begin_src sh :var data="" :var width="\\textwidth" :results output
- echo "#+ATTR_LATEX width=$width"
+ echo "#+ATTR_LATEX :width $width"
echo "$data"
#+end_src
@@ -14330,7 +14335,7 @@ argument.
#+RESULTS:
:RESULTS:
-#+ATTR_LATEX width=5cm
+#+ATTR_LATEX :width 5cm
[[file:/tmp/it.png]]
:END:
@end example