ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Conditional text
@ 2002-03-07 18:49 Giuseppe Bilotta
  2002-03-07 22:54 ` Hans Hagen
  0 siblings, 1 reply; 13+ messages in thread
From: Giuseppe Bilotta @ 2002-03-07 18:49 UTC (permalink / raw)


Hello,

I'd like to separate two blocks of text with some stuff which
depending on wether the two blocks are on the same page or not.

Example one: two paragraph are separate by a \blank of space, but
if there is a page change, then three starts are inserted on top
of the next page.

Example two: sections start without creating a new page, but if
they stay on the same page, then a line is drawn before them.

The nicest thing would be a command (to be used after a \blank)
like \ifstillonsamepageelse{do something}{do something else}.

Do I have to go through the referencing mechanism or is there
something built-in already?

--
Giuseppe "Oblomov" Bilotta


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Conditional Text
@ 2003-01-19  0:06 Lazycode
  2003-01-19  0:12 ` Patrick Gundlach
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Lazycode @ 2003-01-19  0:06 UTC (permalink / raw)


Greetings!

  Is it possible to have parts of the ConTeXt file
processed conditionally? I'm hoping to be able to do
something like:

(in ConTeXt file)

Question: What is the derivative of $e^{sqrt{x}}$\\
\some-command-start
Answer: $\frac{d}{dx} e^{sqrt{x}} ... $
\some-command-end

So that, in the command line, if I run 

"texexec --pdf quiz01.tex"  then it will NOT include
the answer section, but if I run
"texexec --pdf quiz01.tex -some-other-command"
it WILL also include the answer section.

I'm confident this can be done through an if or if-defined
construct. However, I could not find such commands/macros
in the ConTeXt manuals (both the beginners and the detailed
manual).


Thanks in advance,
--tk

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2003-01-24 22:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-07 18:49 Conditional text Giuseppe Bilotta
2002-03-07 22:54 ` Hans Hagen
2002-03-08 11:15   ` Re[2]: " Giuseppe Bilotta
2002-03-08 13:23     ` Re[3]: " Giuseppe Bilotta
2002-03-08 15:35       ` Hans Hagen
2002-03-08 16:46         ` Re[4]: " Giuseppe Bilotta
2002-03-11  0:21   ` Daniel Pittman
2003-01-19  0:06 Conditional Text Lazycode
2003-01-19  0:12 ` Patrick Gundlach
2003-01-19 22:11 ` John Culleton
2003-01-20  9:07 ` Hans Hagen
2003-01-24 22:24   ` Johannes Hüsing
2003-01-24 22:24     ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).