Re: space in front of footnotes?

Guenter Milde <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
On 2015-08-18, Gour wrote:
> Guenter Milde <[email protected]> writes:

>> Use the `Config File Syntax`__ in the config file?

> Ahh, thank you. I did mis it. :-(

>>   [html4css1 writer]
>>   footnote-references: superscript

BTW, it is also possible to use the "=" like ::

  [writers]
  footnote-references=superscript

However, quoting the value leads to errors.

>> and using the html4css writer (rst2html.py), it works here.

> Here I get superscript in the running text, but the footnote reference
> is still in brackets, iow.

> [1]	this text belongs to the footnote..

> Is it normal?

It is the "state of the art". Currently, only the reference is set as
superscript.


OTOH, leading style guides say that the label should match in footnote
reference and footnote itself:

  example [1] text
  
  ----  
  [1] example note

or
  example² text
  
  ----
  ² example note
  
For superscript labels, there is also the recommendation to set the label in
normal size and position before the footnote:

  example³ text
  
  ----
  3 example note
  

I would like to implement this in the new "html_plain" writer.

Question for the developers: should this be "hard-coded" or as a class value
for styling with CSS?

hard-coded:  put [ and ] into the text

   +1 safe, works also without CSS

CSS-rules: use ``:before:`` and ``:after:`` pseudo-classes for [ and ]

   +1 customizable (can be changed by local style-sheet)
   
The implementation via CSS rules would also allow to open up the set of
allowed values (currently "brackets" or "superscript"): any value could be
used (and added as class argument to the label), for "brackets" and
"superscript" we would provide default rules in the "required" style-sheet
``minimal.css``.

Günter




------------------------------------------------------------------------------
_______________________________________________
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.