Ir al contenido principal

Ralsina.Me — El sitio web de Roberto Alsina

Publicaciones sobre rst2pdf (publicaciones antiguas, página 12)

New rst2pdf feature: --strip-elements-with-class

First new fea­tu­re in rs­t2­pdf in a long long ti­me, but it was ea­sy to do, and the­re was an ac­tual user nee­ding it.

This ex­po­ses func­tio­na­li­ty rs­t2ht­ml al­ready ha­d, so tha­t's pro­ba­bly why it was ea­sy to do ;-)

In any ca­se, what is it and what is it good fo­r?

If you ma­rk so­me­thing wi­th a cla­ss, you can now omit it from the ou­tpu­t:

.. class:: ignored

This will not be in the output if you use --strip-elements-with-class=ignored

And it's use­fu­l, for exam­ple, so you can keep sli­des and pre­sen­ta­tion no­tes in the sa­me fi­le. You just put your no­tes in a cla­ss you strip when pro­du­cing the sli­des.

Sin­ce so­me cla­s­ses are au­to­ma­ti­ca­lly as­sig­ned for ad­mo­ni­tion­s, this is ex­tra sim­ple:

.. note:: This is a note admonition.

   Note admonitions always have the note class. So you can strip them easily.

And if you do­n't strip the­m, they wi­ll look pre­tty.

Salió rst2pdf 0.91

Re­sul­ta que el so­por­te de sphi­nx en 0.90 es­ta­ba com­ple­ta­men­te he­cho po­ma­da, así que acá tie­nen un 0.91, que es­tá ro­to den­tro de pa­rá­me­tros más nor­ma­le­s.

Contents © 2000-2023 Roberto Alsina