Re: space in front of footnotes?

Guenter Milde <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
On 2015-08-17, Matěj Cepl wrote:
> On 2015-08-17, 22:06 GMT, Matěj Cepl wrote:
>> How can I get the footnote without the space in front of it?

> Oh, I got it. I have to add to docutils configuration:

>     [restructuredtext parser]
>     trim_footnote_reference_space=yes

> Why in the world is this not a default?

Probabely because it was introduced later and backwards compatibility was a
priority.

Also, with "bracket footnotes" [1] instead of superscript ones² you may
want to keep the space.

Footnote references are by default "bracket" in HTML and "superscript" in
LaTeX.
http://docutils.sourceforge.net/docs/user/config.html#footnote-references
http://docutils.sourceforge.net/docs/user/config.html#footnote-references-latex2e-writer

However, you are free to set your own defaults in a system-wide or user-
config file.
http://docutils.sourceforge.net/docs/user/config.html#configuration-files

Also, there is the possibilty to escape the required whitespace like 
this.\ [#]_

Günter


[1] this looks like a citation in a scientific article

² this looks like a footnote in a scientific article


------------------------------------------------------------------------------
_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.