# -*- mode: org; fill-column: 65 -*-
#+STARTUP: showstars
#+TITLE: Org-mode list of user-visible changes
#+AUTHOR: Carsten Dominik
#+EMAIL: carsten at orgmode dot org
#+OPTIONS: H:3 num:nil toc:nil \n:nil @:t ::t |:t ^:{} *:t TeX:t LaTeX:nil f:nil
#+INFOJS_OPT: view:info toc:1 path:org-info.js tdepth:2 ftoc:t
#+LINK_UP: index.html
#+LINK_HOME: http://orgmode.org
* Version 6.24 (in preparation)
:PROPERTIES:
:VISIBILITY: content
:END:
** Incompatible changes
*** New key for creating tags/property sparse trees
The key to produce a sparse tree matching tags and properties is
now =C-c / m= instead of =C-c a T=. This is also more consistent
with the =C-c a m= key for the corresponding agenda view.
=C-c / T= will still work for now, but it is no longer advertised
in the documentation and may go away at any time in the future.
** Details
*** PDF export of agenda views
Agenda views can now be exported to PDF files by writing them to
a file with extension ".pdf". Internally this works by first
producing the postscript version and then converting that to PDF
using the ghostview utility =ps2pdf=. Make sure that this
utility is installed on your system.
The postscript version will not be removed, it will stay around.
*** Inline some entry text for Agenda View export
When exporting an agenda view to HTML or PDF for printing or
remote access, one of the problems can be that information stored
in entries below the headline is not accessible in that format.
You can now copy some of that information to the agenda view
before exporting it. For this you need set the variable
=org-agenda-add-entry-text-maxlines= to a number greater than 0.
#+begin_src emacs-lisp
(setq org-agenda-add-entry-text-maxlines 20)
#+end_src
Or you can to this with the settings in a special agenda view,
for example
#+begin_src emacs-lisp
("A" "" agenda ""
((org-agenda-ndays 1)
(org-agenda-add-entry-text-maxlines 5))
("agenda-today.pdf"))
#+end_src
*** Exporting of citations to LaTeX and HTML, using BibTeX
Citations can now me made using BibTeX, and will be exported
to LaTeX and HTML. This is implemented in a contributed
package by Taru Karttunen, /org-exp-bibtex.el/. Kudos to
Taru for this really nice addition.
*** Update of org2rem.el
/org2rem.el/ has been updated significantly and now does a more
comprehensive job of exporting Org events to remind.
Thanks to Sharad Pratap for this update.
*** Improved ASCII export of links
ASCII export of links works now much better. If a link has a
link and a description part which are different, then the
description will remain in the text while the link part will be
moved to the end of the current section, before the next heading,
as a footnote-like construct.
Configure the variable =org-export-ascii-links-to-notes= if you
prefer the links to be shown in the text. In this case, Org will
make an attempt to wrap the line which may have become
significantly longer by showing the link.
*** Turning off time-of-day search in headline
Some people like to put a creation time stamp into a headline and
then get confused if the time-of-day found in there shows up as
the time-of-day of the deadline/scheduling entry for this
headline. The reason for this is that Org searches the headline
for a free-format time when trying to sort the entry into the
agenda, and that search accidentally finds the time in the
creation time stamp or something else that happens to look like a
time. If this is more painful than useful for you, configure the
new variable =org-agenda-search-headline-for-time=.
*** Clustering characters for undo
When typing in Org-mode, undo will now remove up to 20 characters
at a time with a single undo command. This is how things work
normally in Emacs, but the special binding of characters in
Org-mode made this impossible until now.
Thanks to Martin Pohlack for a patch which mimicks the behavior
of the Emacs command loop for the Org version of self-insert.
Note that this will not work in headlines and tables because
typing there will do a lot of extra work.
There might be a small typing performance hit resulting from this
change - please report in the mailing list if this is noticeable
and annoying.
*** New reload command, with keyboard access
There is now a special command to reload all Org Lisp files, so
that you can stay in your Emacs session while pulling and
compiling changes to Org. The command to reload the compiled
files (if available) is =C-c C-x r=. If no compiled files are
found, uncompiled ones will be loaded. If you want to force
loading of uncompiled code (great for producing backtraces), use
a prefix arg: =C-u C-c C-x o=. Both commands are available in
the menu as well.
This new command was inspired by one written earlier by Bernt
Hansen.
*** Macro replacement
A string like ={{{ title }}}= will be replaced by the title of
the document, ={{{ email }}}= by the email setting of the author
and similarly for other export settings given in =#+...= lines.
In addition to that, you can define an arbitrary number of
macros, for example:
#+begin_src org
,#+MACRO: myaddress 41 Onestreet, 12345 New York, NY
...
,my address is {{{myaddress}}}, see you there.
#+end_src
Macro replacement is the very first thing that happens during
export, and macros will be replaced even in source code and other
protected regions.
*** Separate settings for special C-a and C-e
The variable `org-special-ctrl-a/e' now allows separate settings
for =C-a= and =C-e=. For example
#+begin_src emacs-lisp
(setq org-special-ctrl-a/e '(reversed . t))
#+end_src
Thanks to Alan Davis for this proposal.
*** orgstruct++-mode improvements
In addition to =orgstruct-mode= which allows to use some Org-mode
structure commands in other major modes, there is now a more
invasive version of this mode: =orgstruct++-mode=. This mode
will import all paragraph and line wrapping variables into the
major mode, so that, for example, during typing the auto-fill
wrapping of items will work just like in Org-mode. This change
is not reversible, so turning off orgstruct++-mode will not
remove these settings again. =orgstruct++-mode= is most useful in
text modes like message-mode or =magit-log-edit-mode=.
Furthermore, =orgstruct++-mode= will recognize plain list context
not only in the first line of an item, but also further down, so
that =M-RET= will correctly insert new items.
Thanks to Austin Frank for requesting some of these changes.
*** Promotion and demotion works for regions now
=M-right= and =M-left= now do demote and promote all headlines in
an active region.
*** The match syntax for tags/properties is now described in a single place
The manual chapters about tags and about properties now only
refer to the section about agenda views, where the general syntax
of tag/property matches is described.
*** New div around the entire page in HTMP export
A new =
= is wrapped around the entire page,
everything that is inside ==.
*** Faces for priority cookies can now be set freely
The new variable =org-priority-faces= can be used to set faces
for each priority.
*** In agenda, only priority cookies get the special face
So far, an entire task would get a special face when
=org-agenda-fontify-priorities= was set. Now, the default value
for this variable is the symbol =cookies=, which means that on
the cookie is fontified. Set it to =t= if you want the entire
task headline to be fontified.
* Version 6.23
** Overview
- Capture state change notes into a drawer
- Clock lines are now captured into the LOGBOOK drawer as well
- Added org-R.el to contrib directory
- Allow individual formatting of each TODO keyword in HTML export
- New hooks for add-ons to tap into context-sensitive commands
- Publishing files irrespective of extension
- New variable index in the manual
- The ORDERED property also influences checkboxes
- The ORDERED property can be tracked with a tag
- You may now specify line breaks in the fast tags interface
- When a TODO is blocked by checkboxes, keep it visible in agenda
- LaTeX can import Org's in-buffer definitions for TITLE, EMAIL etc.
** Incompatible changes
- CLOCK lines will now be captured into the LOGBOOK drawer.
See below for details.
** Details
*** Capture state change notes into a drawer
State change notes can now be captured into a drawer =LOGBOOK=,
to keep the entry tidy. If this is what you want, you will need
this configuration:
#+begin_src emacs-lisp
(setq org-log-into-drawer "LOGBOOK")
#+end_src
Thanks to Wanrong Lin for this proposal.
*** Clock lines are now captured into the LOGBOOK drawer as well
The =CLOCK= drawer will be abandoned, clock lines will now also
end up in a drawer =LOGBOOK=. The reason for this is that it's a
bit useless to have two different drawers for state change notes
and clock lines. If you wish to keep the old way, use
#+begin_src emacs-lisp
(setq org-clock-into-drawer "CLOCK")
#+end_src
*** Added org-R.el to contrib directory
Dan Davison has contributed /org-R.el/ which is now in the
contrib directory. Org-R performs numerical computations and
generates graphics. Data can come from org tables, or from csv
files; numerical output can be stored in the org buffer as org
tables, and links are created to files containing graphical
output. Although, behind the scenes, it uses R, you do not need
to know anything about R. Common operations, such as tabulating
discrete values in a column of an org table, are available "off
the shelf" by specifying options on lines starting with =#+R:=.
However, you can also provide raw R code to be evaluated. The
documentation is currently the worg tutorial at
http://orgmode.org/worg/org-tutorials/org-R/org-R.php
Thanks to Dan for this great contribution.
*** Allow individual formatting of TODO keyword and tags in HTML export
TODO keywords in HTML export have the CSS class =todo= or =done=.
Tags have the CSS class =tag=. In addition to this, each keyword
has now itself as class, so you could do this in your CSS file:
#+begin_src css
.todo { font-weight:bold; }
.done { font-weight:bold; }
.TODO { color:red; }
.WAITING { color:orange; }
.DONE { color:green; }
#+end_src
If any of your keywords causes conflicts with CSS classes used
for different purposes (for example a tag "title" would cause a
conflict with the class used for formatting the document title),
then you can use the variables =org-export-html-tag-class-prefix=
and =org-export-html-todo-kwd-class-prefix= to define prefixes
for the class names for keywords, for example "kwd-".
Thanks to Wanrong Lin for this request, and to Sebastian Rose for
help with the implementation.
*** New hooks for add-ons to tap into context-sensitive commands
Some commands in Org are context-sensitive, they will execute
different functions depending on context. The most important
example is of course =C-c C-c=, but also the =M-cursor= keys fall
into this category.
Org has now a system of hooks that can be used by add-on packages
to install their own functionality into these keys. See the
docstring of =org-ctrl-c-ctrl-c-hook= for details. The other
hooks are named like =org-metaleft-hook= or
=org-shiftmetaright-hook=.
*** Publishing files irrespective of extension
If you set the =:base-extension= property for a publishing
project to the symbol =any=, all files in the directory will be
published, irrespective of extension.
Thanks to Richard Klinda for a patch to this effect.
*** New variable index in the manual
A new index in the manual lists all variables mentioned in the
manual, about 200 variables in total.
*** The ORDERED property also influences checkboxes
When an entry has the ORDERED property set, checkboxes in
the entry must be completed in order. This was already the case
for children TODO items, now it also applies for checkboxes.
Thanks to Rainer Stengele for this proposal.
*** The ORDERED property can be tracked with a tag
The =ORDERED= property is used to flag an entry so that subtasks
(both children TODO items and checkboxes) must be completed in
order. This property is most easily toggled with the command
=C-c C-x o=. A property was chosen for this functionality,
because this should be a behavior local to the current task, not
inherited like tags. However, properties are normally
invisible. If you would like visual feedback on the state of
this property, configure the variable
=org-track-ordered-property-with-tag=. If you then use =C-c C-x
o= to toggle the property, a tag will be toggled as well, for
visual feedback.
Note that the tag itself has no meaning for the behavior of TODO
items and checkboxes, and that changing the tag with the usual
tag commands will not influence the property and therefore the
behavior of TODO and checkbox commands.
*** You may now specify line breaks in the fast tags interface
Up to now, the fast tags interface tried to lump as many tags as
possible into a single line, with the exception that groups would
always be on a line by themselves.
Now, if you use several lines to define your tags, like
#+begin_src org
,#+TAGS: aa(a) bb(b) cc(c)
,#+TAGS: dd(d) ee(e) ff(f)
#+end_src
then there will also be a line break after the "cc" tag in the
fast tag selection interface. You may also write
#+begin_src org
,#+TAGS: aa(a) bb(b) cc(c) \n dd(d) ee(e) ff(f)
#+end_src
to achieve the same effect, and you can use =\n= several times in
order to produce empty lines. In =org-tag-alist=, newlines are
represented as =(:newline)=.
Thanks to Christopher Suckling for a patch to this effect.
*** When a TODO is blocked by checkboxes, keep it visible in agenda
When the variable =org-agenda-dim-blocked-tasks= is set to
=invisible=, tasks that are blocked will not be visible in the
agenda. If the blocking is due to child TODO entries, this does
make sense because the children themselves will show up in the
TODO list.
However, as John Rakestraw has [[http://thread.gmane.org/gmane.emacs.orgmode/10939][pointed out]], if the blocking is
done by checkboxes, no trace of these subtasks is left.
Therefore, when the blocking is done by checkboxes, we now
overrule the =invisible= setting and replace it with mere dimming
of the task.
*** LaTeX can import Org's in-buffer definitions for TITLE, EMAIL etc.
If you configure =org-export-latex-import-inbuffer-stuff=,
in-buffer definitions like #+TITLE will be made available in the
LaTeX file as =\orgTITLE=.
This was a request by Russel Adams.
* Version 6.22
** Details
*** org-choose.el by Tom Breton is now included
Org-choose helps documenting a decision-making process by using
TODO keywords for different degrees of /chosenness/, and by
automatically keeping a set of alternatives in a consistent state.
Documentation for /org-choose.el/ is available [[http://orgmode.org/worg/org-contrib/org-choose.php][here]].
This package inserts itself into Org using hooks, so if other
people would like to do interesting stuff with TODO keywords for
special purposes, looking at Tom's code might be a good way to
start.
Thanks to Tom for this interesting contribution!
*** orgmode.org and Worg css works now better on IE
Thanks to Sebastian Rose for making these changes.
*** When exporting a subtree, headline levels are now relative to parent
This was reported as a bug by William Henney and is fixed now.
*** Inactive dates in tables can be used for sorting.
When sorting table fields or entries by date, Org first tries to
find an active date, and, if none exist, uses a passive date if
present.
This was a request by Hsui-Khuen Tang
*** The default for =org-return-follows-link= is back to =nil=
Setting it to =t= violates Emacs rules to some extent. The
internal implementation of this has been improved, so setting it
to =t= should now be pretty stable.
*** Automatic scheduling of siblings with org-depend.el
The sibling of a DONE task can now automatically be scheduled.
This was a patch by Andrew Hyatt.
*** New skipping conditions
The functions =org-agenda-skip-entry-if= and
=org-agenda-skip-subtree-if= now accept =timestamp= and
=nottimestamp= as additional conditions.
This was in response to a request by Saurabh Agrawal.
* Version 6.21
** Details
*** Changes to some default values of variables:
Here are the new default values:
#+begin_example
(setq org-return-follows-link t)
(setq org-use-fast-todo-selection t)
(setq org-yank-adjusted-subtrees nil)
(setq org-tags-column -77)
(setq org-agenda-sorting-strategy
'((agenda time-up priority-down category-keep)
(todo time-up priority-down category-keep)
(tags time-up priority-down category-keep)
(search category-keep)))
#+end_example
*** Final cleanup for Emacs 21.1 pretest
* Version 6.20
** Details
*** Support for simple TODO dependencies
John Wiegley's code for enforcing simple TODO dependencies has
been integrated into Org-mode. Thanks John!
The structure of Org files (hierarchy and lists) makes it easy to
define TODO dependencies. A parent TODO task should not be
marked DONE until all subtasks (defined as children tasks) are
marked as DONE. And sometimes there is a logical sequence to a
number of (sub)tasks, so that one task cannot be acted upon
before all siblings above it are done. If you customize the
variable =org-enforce-todo-dependencies=, Org will block entries
from changing state while they have children that are not DONE.
Furthermore, if an entry has a property =ORDERED=, each of its
children will be blocked until all earlier siblings are marked
DONE. Here is an example:
#+begin_src org
,* TODO Blocked until (two) is done
,** DONE one
,** TODO two
,* Parent
, :PROPERTIES:
, :ORDERED: t
, :END:
,** TODO a
,** TODO b, needs to wait for (a)
,** TODO c, needs to wait for (a) and (b)
#+end_src
The command =C-c C-x o= toggles the value of the =ORDERED=
property.
The variable =org-agenda-dim-blocked-tasks= controls how blocked
entries should appear in the agenda, where they can be dimmed or
even made invisible.
Furthermore, you can use the variable
=org-enforce-todo-checkbox-dependencies= to block TODO entries
from switching to DONE while any checkboxes are unchecked in the entry.
*** Support for shift-selection in Emacs 23
Customize the variable =org-support-shift-select= to use S-cursor
key for selecting text. Make sure that you carefully read the
docstring of that variable first.
*** Adding and removing checkboxes from many lines
The command =C-c C-x C-b= normally toggles checkbox status in the
current line, or in all lines in the region. With prefix
argument it now either adds or removes the checkbox.
This was a requested by Daniel Clemente.
* Version 6.19
** Overview
- Improved behavior of conversion commands =C-c -= and =C-c *=
- Table formulas may now reference fields in other tables
- A final hline is imagined in each table, for the sake of references
- A tags-todo search can now ignore timestamped items
- =\par= can be used to force a paragraph break, also in footnotes
** Details
*** Improved behavior of conversion commands =C-c -= and =C-c *=
The conversion commands =C-c -= and =C-c *= are now better
behaved and therefore more useful, I hope.
If there is an active region, these commands will act on the
region, otherwise on the current line.
- C-c - :: This command turns headings or normal lines into
items, or items into normal lines. When there is a
region, everything depends on the first line of the
region:
- if it is a item, turn all items in the region into
normal lines.
- if it is a headline, turn all headlines in the region
into items.
- if it is a normal line, turn all lines into items.
- special case: if there is no active region and the
current line is an item, cycle the bullet type of the
current list.
- C-c * :: This command turns items and normal lines into
headings, or headings into normal lines. When there is
a region, everything depends on the first line of the
region:
- if it is a item, turn all items in the region into
headlines.
- if it is a headline, turn all headlines in the region
into normal lines.
- if it is a normal line, turn all lines into headlines.
*** Table formulas may now reference fields in other tables
You may now reference constants, fields and ranges from a
different table, either in the current file or even in a
different file. The syntax is
: remote(NAME-OR-ID,REF)
where /NAME/ can be the name of a table in the current file as
set by a =#+TBLNAME: NAME= line before the table. It can also be
the ID of an entry, even in a different file, and the reference
then refers to the first table in that entry. /REF/ is an
absolute field or range reference, valid in the referenced table.
Note that since there is no "current filed" for the remote table,
all row and column references must be absolute, not relative.
*** A final hline is imagined in each table, for the sake of references
Even if a table does not end with a hline (mine never do because I
think it is not pretty), for the sake of references you can
assume there is one. So in the following table
#+begin_src org
| a | b |
|---+---|
| 1 | 2 |
| 3 | 4 |
#+end_src
a reference like =@I$1..@II$2= will now work.
*** A tags-todo search can now ignore timestamped items
The variables =org-agenda-todo-ignore-with-date=,
=org-agenda-todo-ignore-with-date=, and
=org-agenda-todo-ignore-with-date= make it possible to
exclude TODO entries which have this kind of planning info
associated with them. This is most useful for people who
schedule everything, and who use the TODO list mainly to find
things that are not yet scheduled. Thomas Morgan pointed out
that also the tags-todo search may serve exactly this
purpose, and that it might be good to have a way to make
these variables also apply to the tags-todo search. I can
see that, but could not convince myself to make this the
default. A new variable must be set to make this happen:
=org-agenda-tags-todo-honor-ignore-options=.
*** =\par= can be used to force a paragraph break, also in footnotes
The LaTeX idiom =\par= will insert a paragraph break at that
location. Normally you would simply leave an empty line to get
such a break, but this is useful for footnotes whose
definitions may not contain empty lines.
* Version 6.18
** Incompatible changes
*** Short examples must have a space after the colon
Short literal examples can be created by preceding lines
with a colon. Such lines must now have a space after the
colon. I believe this is already general practice, but now
it must be like this. The only exception are lines that are
empty except for the colon.
** Details
*** Include files can now also process switches
The example and src switches like =-n= can now also be added
to include file statements:
: #+INCLUDE "~/.emacs" src emacs-lisp -n -r
Thanks to Manish for pointing out that this was not yet
supported.
*** Examples can be exported to HTML as text areas
You can now specify a =-t= switch to an example or src block,
to make it export to HTML as a text area. To change the
defaults for height (number of lines in the example) and
width of this area (80), use the =-h= and =-w= switches.
Thanks to Ulf Stegemann for driving this development.
*** LaTeX_CLASS can be given as a property
When exporting a single subtree by selecting it as a region
before export, the LaTeX class for the export will be taken
from the =LaTeX_CLASS= property of the entry if present.
Thanks to Robert Goldman for this request.
*** Better handling of inlined images in different backends
Two new variables govern which kind of files can be inlined
during export. These are
=org-export-html-inline-image-extensions= and
=org-export-latex-inline-image-extensions=. Remember that
links are turned into an inline image if they are a pure link
with no description. HTML files can inline /.png/, /.jpg/,
and /.gif/ files, while LaTeX files, when processed with
/pdflatex/, can inline /.png/, /.jpg/, and /.pdf/ files.
These also represent the default settings for the new
variables. Note that this means that pure links to /.pdf/
files will be inlined - to avoid this for a particular link,
make sure that the link has a description part which is not
equal to the link part.
*** Links by ID now continue to work in HTML exported files
If you make links by ID, these links will now still work in
HTML exported files, provided that you keep the relative path
from link to target file the same.
Thanks to Friedrich Delgado Friedrichs for pushing this over
the line.
*** The relative timer can be paused
The new command `C-c C-x ,' will pause the relative timer.
When the relative timer is running, its value will be shown
in the mode line. To get rid of this display, you need to
really stop the timer with `C-u C-c C-x ,'.
Thanks to Alan Davis for driving this change.
*** The attachment directory may now be chosen by the user
Instead of using the automatic, unique directory related to
the entry ID, you can also use a chosen directory for the
attachments of an entry. This directory is specified by the
ATTACH_DIR property. You can use `C-c C-a s' to set this
property.
Thanks to Jason Jackson for this proposal.
*** You can use a single attachment directory for a subtree
By setting the property ATTACH_DIR_INHERIT, you can now tell
Org that children of the entry should use the same directory
for attachments, unless a child explicitly defines its own
directory with the ATTACH_DIR property. You can use the
command `C-c C-a i' to set this property in an entry.
* Version 6.17
** Overview
- Footnote support
- Line numbers and references in literal examples
- New hooks for export preprocessing
- Capture column view into a different file
** Details
*** Footnote support
Org-mode now directly supports the creation of footnotes. In
contrast to the /footnote.el/ package, Org-mode's footnotes are
designed for work on a larger document, not only for one-off
documents like emails. The basic syntax is similar to the one
used by /footnote.el/, i.e. a footnote is defined in a paragraph
that is started by a footnote marker in square brackets in column
0, no indentation allowed. The footnote reference is simply the
marker in square brackets inside text. For example:
#+begin_src org
The Org homepage[fn:1] now looks a lot better than it used to.
...
[fn:1] The link is: http://orgmode.org
#+end_src
Org-mode extends the number-based syntax to /named/ footnotes and
optional inline definition. Using plain numbers as markers is
supported for backward compatibility, but not encouraged because
of possible conflicts with LaTeX syntax. Here are the valid
references:
- [1] :: A plain numeric footnote marker.
- [fn:name] :: A named footnote reference, where `name' is a
unique label word or, for simplicity of automatic creation,
a number.
- [fn:: This is the inline definition of this footnote] :: A
LaTeX-like anonymous footnote where the definition is given
directly at the reference point.
- [fn:name: a definition] :: An inline definition of a footnote,
which also specifies a name for the note. Since Org allows
multiple references to the same note, you can then use use
`[fn:name]' to create additional references.
Footnote labels can be created automatically, or you create names
yourself. This is handled by the variable
=org-footnote-auto-label= and its corresponding =#+STARTUP=
keywords, see the docstring of that variable for details.
The following command handles footnotes:
- C-c C-x f :: The footnote action command. When the cursor is
on a footnote reference, jump to the definition. When it is
at a definition, jump to the (first) reference. Otherwise,
create a new footnote. Depending on the variable
`org-footnote-define-inline' (with associated =#+STARTUP=
options =fninline= and =nofninline=), the definitions will
be placed right into the text as part of the reference, or
separately into the location determined by the variable
=org-footnote-section=.
When this command is called with a prefix argument, a menu
of additional options is offered:
- s :: Sort the footnote definitions by reference sequence.
During editing, Org makes no effort to sort footnote
definitions into a particular sequence. If you want
them sorted, use this command, which will also move
entries according to =org-footnote-section=.
- n :: Normalize the footnotes by collecting all
definitions (including inline definitions) into a
special section, and then numbering them in
sequence. The references will then also be
numbers. This is meant to be the final step before
finishing a document (e.g. sending off an email).
The exporters do this automatically, and so could
something like `message-send-hook'.
- d :: Delete the footnote at point, and all references to it.
- C-c C-c :: If the cursor is on a footnote reference, jump to
the definition. If it is a the definition, jump back to the
reference. When called with a prefix argument at either
location, offer the same menu as `C-u C-c C-x f'.
- C-c C-o or mouse-1/2 :: Footnote labels are also links to the
corresponding definition/reference, and you can use the
usual commands to follow these links.
Org-mode's footnote support is designed so that it should also
work in buffers that are not in Org-mode, for example in email
messages. Just bind =org-footnote-action= to a global key like
=C-c f=.
The main trigger for this development came from a hook function
written by Paul Rivier, to implement named footnotes and to
convert them to numbered ones before export. Thanks, Paul!
Thanks also to Scot Becker for a thoughtful post bringing this
subject back onto the discussion table, and to Matt Lundin for
the idea of named footnotes and his prompt testing of the new
features.
*** Line numbers and references in literal examples
Literal examples introduced with =#+BEGIN_EXAMPLE= or =#+BEGIN_SRC=
do now allow optional line numbering in the example.
Furthermore, links to specific code lines are supported, greatly
increasing Org-mode's utility for writing tutorials and other
similar documents.
Code references use special labels embedded directly into the
source code. Such labels look like "(ref:name)" and must be
unique within a document. Org-mode links with "(name)" in the
link part will be correctly interpreted, both while working with
an Org file (internal links), and while exporting to the
different backends. Line numbering and code references are
supported for all three major backends, HTML, LaTeX, and ASCII.
In the HTML backend, hovering the mouse over a link to a source
line will remote-highlight the referenced code line.
The options for the BEGIN lines are:
- -n :: Number the lines in the example
- +n :: Like -n, but continue numbering from where the previous
example left off.
- -r :: Remove the coderef cookies from the example, and replace
links to this reference with line numbers. This option
takes only effect if either -n or +n are given as well.
If -r is not given, coderefs simply use the label name.
- -l "fmt" :: Define a local format for coderef labels, see the
variable =org-coderef-label-format= for details. Use this
of the default syntax causes conflicts with the code in the
code snippet you are using.
Here is an example:
#+begin_example -k
#+begin_src emacs-lisp -n -r
(defmacro org-unmodified (&rest body) (ref:def)
"Execute body without changing `buffer-modified-p'."
`(set-buffer-modified-p (ref:back)
(prog1 (buffer-modified-p) ,@body)))
#+end_src
[[(def)][Line (def)]] contains the macro name. Later at line [[(back)]],
backquoting is used.
#+end_example
When exported, this is translated to:
#+begin_src emacs-lisp -n -r
(defmacro org-unmodified (&rest body) (ref:def)
"Execute body without changing `buffer-modified-p'."
`(set-buffer-modified-p (ref:back)
(prog1 (buffer-modified-p) ,@body)))
#+end_src
[[(def)][Line (def)]] contains the macro name. Later at line [[(back)]],
backquoting is used.
Thanks to Ilya Shlyakhter for proposing this feature set. Thanks
to Sebastian Rose for the key Javascript element that made the
remote highlighting possible.
*** New hooks for export preprocessing
The export preprocessor now runs more hooks, to allow
better-timed tweaking by user functions:
- =org-export-preprocess-hook= ::
Pretty much the first thing in the preprocessor. But org-mode
is already active in the preprocessing buffer.
- =org-export-preprocess-after-include-files-hook= ::
This is run after the contents of included files have been inserted.
- =org-export-preprocess-after-tree-selection-hook= ::
This is run after selection of trees to be exported has
happened. This selection includes tags-based selection, as
well as removal of commented and archived trees.
- =org-export-preprocess-before-backend-specifics-hook= ::
Hook run before backend-specific functions are called during preprocessing.
- =org-export-preprocess-final-hook= ::
Hook for preprocessing an export buffer. This is run as the
last thing in the preprocessing buffer, just before returning
the buffer string to the backend.
*** Capture column view into a different file
The :id parameter for the dynamic block capturing column view
can now truly be an ID that will also be found in a
different file. Also, it can be like =file:path/to/file=, to
capture the global column view from a different file.
Thanks to Francois Lagarde for his report that IDs outside
the current file would not work.
* Version 6.16
Cleanup of many small bugs, and one new feature.
** Details
*** References to last table row with special names
Fields in the last row of a table can now be referenced with
$LR1, $LR2, etc. These references can appear both on the
left hand side and right hand side of a formula.
* Version 6.15f
This version reverses the introduction of @0 as a reference to
the last rwo in a table, because of a conflict with the use of
@0 for the current row.
* Version 6.15
** Overview
- All known LaTeX export issues fixed
- Captions and attributes for figures and tables.
- Better implementation for entry IDs
- Spreadsheet references to the last table line.
- Old syntax for link attributes abandoned
** Incompatible changes
*** Old syntax for link attributes abandoned
There used to be a syntax for setting link attributes for
HTML export by enclosing the attributes into double braces
and adding them to the link itself, like
#+begin_example
[[./img/a.jpg{{alt="an image"}}] ]
#+end_example
This syntax is not longer supported, use instead
#+begin_src org
,#+ATTR_HTML: alt="an image"
[[./img/a.jpg] ]
#+end_src
** Details
*** All known LaTeX export issues fixed
All the remaining issues with the LaTeX exporter have hopefully
been addressed in this release. In particular, this covers
quoting of special characters in tables and problems with
exporting files where the headline is in the first line, or with
an active region.
*** Captions and attributes for figures and tables.
Tables, and Hyperlinks that represent inlined images, can now be
equipped with additional information that will be used during
export. The information will be taken from the following special
lines in the buffer and apply to the first following table or
link.
- #+CAPTION: :: The caption of the image or table. This string
should be processed according to the export backend, but
this is not yet done.
- #+LABEL: :: A label to identify the figure/table for cross
references. For HTML export, this string will become the
ID for the ~