Cross-referencing and Japanese title in @auto-rst

4 views
Skip to first unread message

HYRY

unread,
Sep 5, 2009, 8:08:03 PM9/5/09
to leo-editor
I want to add a reference label before section for cross-referencing
as following:

*******************************************

.. _my-reference-label:

Section to cross-reference
--------------------------

This is the text of the section.

It refers to the section itself, see :ref:`my-reference-label`.

*******************************************

with @auto-rst, ".. _my-reference-label:" will not be contained in
"Section to cross-reference" node,
but before it, so it's difficult to manage section together with it's
reference label.
Are there some methods to handle this easily?

another problem:

@auto-rst will product underline marks just as long as the section
title, when I use Japanese
in the section title, it will product many warnings claiming the the
underlines is not long enough,
because the underline for one Japanese char need two marks.

Edward K. Ream

unread,
Sep 7, 2009, 11:00:46 AM9/7/09
to leo-e...@googlegroups.com
On Sat, Sep 5, 2009 at 7:08 PM, HYRY <ruoy...@gmail.com> wrote:

I want to add a reference label before section for cross-referencing
as following:

*******************************************

.. _my-reference-label:

Section to cross-reference
--------------------------

This is the text of the section.

It refers to the section itself, see :ref:`my-reference-label`.

*******************************************

with @auto-rst,  ".. _my-reference-label:" will not be contained in
"Section to cross-reference" node,
but before it, so it's difficult to manage section together with it's
reference label.

Interesting problem.  I don't have a great solution.
 
@auto-rst will product underline marks just as long as the section
title,  when I use Japanese
 in the section title, it will product many warnings claiming the the
underlines is not long enough,
because the underline for one Japanese char need two marks.

Another interesting problem.  This one should be fixable.  I'll put it on the todo list.

Edward
Reply all
Reply to author
Forward
0 new messages