pillar question

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

pillar question

Clément Béra
Is this the right place to ask questions about pillar ?

I am trying to write documentation using pillar. I am now stuck at conditional printing and on the contrary to my previous issues I didn't find examples in other documentation written in pillar. 

In latex, I would do conditional printing this way:

\newif \ifsol
\sol true
\ifsol paragraph display if sol is true \fi

and depending if I put true or false in the variable sol, the paragraph is displayed or not.

Then I can print two version of my document with different texts at specific parts depending on this variable.

I tried multiple ways in pillar, but I can't achieve the same result. What is the right way to do conditional printing in pillar ?

Thanks !

Clement
Reply | Threaded
Open this post in threaded view
|

Re: pillar question

Damien Cassou-2
On December 29, 2015 5:56:02 PM GMT+01:00, "Clément Bera" <[hidden email]> wrote:

>Is this the right place to ask questions about pillar ?
>
>I am trying to write documentation using pillar. I am now stuck at
>conditional printing and on the contrary to my previous issues I didn't
>find examples in other documentation written in pillar.
>
>In latex, I would do conditional printing this way:
>
>\newif \ifsol
>\sol true
>\ifsol paragraph display if sol is true \fi
>
>and depending if I put true or false in the variable sol, the paragraph
>is
>displayed or not.
>
>Then I can print two version of my document with different texts at
>specific parts depending on this variable.
>
>I tried multiple ways in pillar, but I can't achieve the same result.
>What
>is the right way to do conditional printing in pillar ?

We don't have this. But, you can use annotated paragraphs to do the same:

@@hidden blabla

In LaTeX, this generates a blabla environment and in HTML a div with a blabla class. You can then use latex/css tricks to show or hide these blocks

--
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill