RstDocument inline Image?

68 views
Skip to first unread message

Mark Anthony Pequeras

unread,
Nov 2, 2014, 5:16:46 AM11/2/14
to kivy-...@googlegroups.com
Hello Guys.
I am trying to devel something with the widget RstDocument and would like to add an image directive which will be align with the text,
I have used the syntax for image directive such as:

.. |logo| image:: ../images/wiki_logo_openalea.png
:width: 20pt
:height: 20pt

+---------+---------+-----------+
| |logo| | |logo| | |longtext||
+---------+---------+-----------+

- from rst wiki

And the problem is the image on output is always at the top center of the rstdocument widget preview? any solutions?


Thank you and regards.

ZenCODE

unread,
Nov 4, 2014, 2:56:03 PM11/4/14
to kivy-...@googlegroups.com
Have you tried the align option?

.. image:: picture.jpeg
   :height: 20pt
   :width: 20pt
   :align: right

Not sure exactly what you mean my "align with the text"?

Cheers

Mark Anthony Pequeras

unread,
Nov 5, 2014, 3:45:22 AM11/5/14
to kivy-...@googlegroups.com
thanks for the response Zencode, like they call it Substitution is RST, Id like to implement an emoticon feature on my chat app, like the image will align (or inline image) with text

** ive tried alot of things and even followed docutils documentation for this but seems not working.

ZenCODE

unread,
Nov 5, 2014, 3:49:34 AM11/5/14
to kivy-...@googlegroups.com
Yeah, Unfortunately, RST is pretty limited in it's layout ability when compared to other formats. It's not really designed for layout, but quickly creating processable text structures...i.e. I don't think it's possible without hacking :-(

Mark Anthony Pequeras

unread,
Nov 5, 2014, 7:17:11 PM11/5/14
to kivy-...@googlegroups.com
That would be my last option XD and thank you very much Zen!
Reply all
Reply to author
Forward
0 new messages