Hello Gunter

I tried:

.. _doc:

.. role:: underlined(raw)
   :format: html
   :style: text-decoration: underline;

######
 Test
######

:underlined:`test` test text.

and this:

.. _doc:

.. role:: underlined(style="text-decoration: underline;")
   :format: html


######
 Test
######

:underlined:`test` test text.

but none works (both give errors). What do I do wrong?

Boris.


On Friday, August 24, 2012 12:01:42 AM UTC+4, Guenter Milde wrote:
>
> On 2012-08-20, Boris Kheyfets wrote: 
>
> > [-- Type: text/plain, Encoding:  --] 
>
> > Is it somehow possible to have an underline inline markup? I know I can 
> use 
> >:title: -- but it's somehow crooked way of getting things underlined. 
>
> Use a custom role and style it with CSS and/or in the LaTeX preamble. 
>
> See 
> http://docutils.sourceforge.net/docs/ref/rst/directives.html#custom-interpreted-text-roles
>  
>
> Günter 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sphinx-dev/-/iC2kvEu4_VUJ.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to