[NTG-context] report of strange(?) output depending on the location of \StartSteps ... \StopSteps

2012-07-21 Thread dalyoung
Dear all,

This is a small thing which is OK to be ignored.
Please pardon me if it is a noise for you.

I used to use \usemodule[pre60] for step by step output for presentation.
Some time ago, I faced a strange pdf output.

For example, I want two steps inside the second item. So, I use the following:

\usemodule[pre60]
...
...

Test of \tex{StartSteps}.
\blank
\startitemize
\item first item
\item second item
\StartSteps
\startitemize
\item flush 1 \FlushStep
\item flush 2 \FlushStep
\stopitemize
\StopSteps
\item third item
\stopitemize

\page
\starttable[|c|c|c|c|c|c|]
\HL
\VL \VL A \VL B \VL C \VL D \VL E \VL\FR
\HL
\VL \VL 2\VL 1\VL 3\VL 2\VL 2\VL\SR
\HL
\stoptable
...

I got correct steps flush1 and flush 2, but the table after the steps was 
disappeared.(just white page)
If I change the order of table and items, both are displayed and worked well. I 
have tested in many ways to know why the table disappeared after \StartStep. I 
found that it is neither the order of the code nor the some other settings.

It is the level of the location of \StartSteps.
If I put \StartSteps in the first level of itemization, there is no problem. Of 
course, I have to put more \FlushStep like

Test of \tex{StartSteps}.
\blank
\StartSteps
\startitemize
\item first item
\item second item \FlushStep
\StartSteps
\startitemize
\item flush 1 \FlushStep
\item flush 2 \FlushStep
\stopitemize
\StopSteps
\item third item \FlushStep
\stopitemize

\page
\starttable[|c|c|c|c|c|c|]
\HL
\VL \VL A \VL B \VL C \VL D \VL E \VL\FR
\HL
\VL \VL 2\VL 1\VL 3\VL 2\VL 2\VL\SR
\HL
\stoptable

I report this just for information which may be already known to Hans, 
Wolfgang, et al.  

One appreciation is that \StartSteps ... \StopSteps works well with 
Simpleslides module nicely!

Thanks and have a nice weekend.

Best regards,

Dalyoung

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] error for float in margin

2012-07-21 Thread Meer, H. van der
ConTeXt  ver: 2012.07.20 00:58 MKIV  fmt: 2012.7.21  int: english/english

This (yesterday's) version still gives an error when placing figures in the 
margin. Any idea when this will work again?

It is called with:
\startfiguretext[right][fig:hagdetail]{}{\externalfigure[hagelindetail][frame=on]}

\strc_floats_caption_set_align ...s_caption_align 
  ]}
argument ...box {\strc_floats_caption_set_align 
  \hsize \floatcaptionparame...
\secondoftwoarguments #1#2-#2
  
\strc_floats_prepare_side_caption ...e_caption }}}
  \dostoptagged 
\strc_floats_set_paragraph_variant ...ide_caption 
  \setbox \b_strc_floats_cap...
\strc_floats_set_box ...ats_set_paragraph_variant 
  \else \strc_floats_set_pag...
...
l.62 ...{\externalfigure[hagelindetail][frame=on]}

Hans van der Meer



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] error for float in margin

2012-07-21 Thread Hans Hagen

On 21-7-2012 11:41, Meer, H. van der wrote:

ConTeXt  ver: 2012.07.20 00:58 MKIV  fmt: 2012.7.21  int: english/english

This (yesterday's) version still gives an error when placing figures in the 
margin. Any idea when this will work again?

It is called with:
\startfiguretext[right][fig:hagdetail]{}{\externalfigure[hagelindetail][frame=on]}


hm, this works here


\starttext


\startfiguretext[right][fig:hagdetail]{}{\externalfigure[cow][width=1cm,frame=on]}test\stopfiguretext

\stoptext

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] report of strange(?) output depending on the location of \StartSteps ... \StopSteps

2012-07-21 Thread Hans Hagen

On 21-7-2012 10:15, dalyoung wrote:

Dear all,

This is a small thing which is OK to be ignored.
Please pardon me if it is a noise for you.

I used to use \usemodule[pre60] for step by step output for presentation.
Some time ago, I faced a strange pdf output.

For example, I want two steps inside the second item. So, I use the following:


You're not suppodes to nest the start/stop commands .. I've adapted the 
module to ignore nesting.


(Some day I'll redo the code and make it a bit more clever.)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] italic corrrection?

2012-07-21 Thread Meer, H. van der
I cannot see the italic correction. Neither in the default not, nor in lucidaot.

An explicit \/ (plain TeX material!) makes no difference.
Addition of \setupitaliccorrection[always] also did not make a difference.

What am I doing wrong?

Hans van der Meer


% italic correction
\setuppapersize[A6][A6]
%\setupbodyfont[lucidaot]
\starttext
{\it n}:{\it n}\crlf
{\it n\/}:{\it n}\crlf
\stoptext



italcor.pdf
Description: italcor.pdf
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] italic corrrection?

2012-07-21 Thread Wolfgang Schuster

Am 21.07.2012 um 14:49 schrieb Meer, H. van der:

 I cannot see the italic correction. Neither in the default not, nor in 
 lucidaot.
 
 An explicit \/ (plain TeX material!) makes no difference.
 Addition of \setupitaliccorrection[always] also did not make a difference.
 
 What am I doing wrong?

Add \definefontfeature[default][default][itlc=yes] before \setupbodyfont.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] italic corrrection?

2012-07-21 Thread Meer, H. van der
 Add \definefontfeature[default][default][itlc=yes] before \setupbodyfont.
Thanks but allthough this has an effect on the default modern, it does not made 
a difference for lucidaot.
Is the TUG delivered lucidaot deficient with respect to the italic correction?
It is hard to believe!
I have two examples added, both modern and lucidaot to show the (tiny) 
difference.

I looked it up in the sources and found it in typo-itc.mkiv.
From there I deduced when should have something akin to:
\definefontfeature[default][default][itlc=yes,notextitalics=yes] what are 
notextitalics?
\setupitaliccorrection[global] (and other values)
Quite involved for a font layman, like me.

Hans van der Meer

Example was
% italic correction
\setuppapersize[A6][A6]
\definefontfeature[default][default][itlc=yes,notextitalics=yes]
\setupitaliccorrection[global]
\setupbodyfont[modern,24pt] % or with lucidaot
\starttext
{\it n}:{\it n}\crlf
{\it n\/}:{\it n}\crlf
\stoptext


On 21 jul. 2012, at 14:55, Wolfgang Schuster wrote:


 Am 21.07.2012 um 14:49 schrieb Meer, H. van der:

 I cannot see the italic correction. Neither in the default not, nor in 
 lucidaot.

 An explicit \/ (plain TeX material!) makes no difference.
 Addition of \setupitaliccorrection[always] also did not make a difference.

 What am I doing wrong?

 Add \definefontfeature[default][default][itlc=yes] before \setupbodyfont.

 Wolfgang



italcor.pdf
Description: italcor.pdf


italcor.pdf
Description: italcor.pdf
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] report of strange(?) output depending on the location of \StartSteps ... \StopSteps

2012-07-21 Thread dalyoung
Dear Hans,

 
 You're not suppodes to nest the start/stop commands .. I've adapted the 
 module to ignore nesting.
 
I didn't nest the \StartSteps ...\StopSteps, but I used it in a nested 
\startitemize.
Now, I understand why such a strange output was produced.
Thank you for a clear explanation.

 (Some day I'll redo the code and make it a bit more clever.)
 

It is good enough to use \StartSteps in current beta. 

Best regards,

Dalyoung

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] italic corrrection?

2012-07-21 Thread Wolfgang Schuster

Am 21.07.2012 um 15:43 schrieb Meer, H. van der:

  Add \definefontfeature[default][default][itlc=yes] before \setupbodyfont.
 Thanks but allthough this has an effect on the default modern, it does not 
 made a difference for lucidaot.
 Is the TUG delivered lucidaot deficient with respect to the italic 
 correction? 
 It is hard to believe!

I goes there is no correction for the “n” but try this example with/without the 
“itlc” feature and you can see a difference.

\setuppapersize[A6][A6]
\definefontfeature[default][default][itlc=yes]
\setupbodyfont[lucidaot]
\starttext
fl f\/l {\it fl f\/l}
\stoptext

Wolfgang___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] italic corrrection?

2012-07-21 Thread Meer, H. van der
Thanks,
I see the difference appearing in lucidaot with your example.
A pity italic correction isn't available for the n (and some others, I fear). 
It makes {\it n}x{\it n} for n multiplied by n harder in the text, as I find 
$n\times n$ within running text to alien looking. That makes {\it n}\,x{\it n} 
perhaps the best solution.

Hans van der Meer



On 21 jul. 2012, at 15:51, Wolfgang Schuster wrote:


Am 21.07.2012 um 15:43 schrieb Meer, H. van der:

 Add \definefontfeature[default][default][itlc=yes] before \setupbodyfont.
Thanks but allthough this has an effect on the default modern, it does not made 
a difference for lucidaot.
Is the TUG delivered lucidaot deficient with respect to the italic correction?
It is hard to believe!

I goes there is no correction for the “n” but try this example with/without the 
“itlc” feature and you can see a difference.

\setuppapersize[A6][A6]
\definefontfeature[default][default][itlc=yes]
\setupbodyfont[lucidaot]
\starttext
fl f\/l {\it fl f\/l}
\stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nlmailto:ntg-context@ntg.nl / 
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] simpleslides help needed

2012-07-21 Thread Aditya Mahajan

Hi Pavneet,

I am CCing the list as others might find this useful as well.

On Thu, 19 Jul 2012, Pavneet Arora wrote:

One more question, though:  if one wanted to design the slides with 
*different* title and body fonts, as I do, how would one do that?  This is 
why I tried \setupbodyfont and ran into my initial difficulties.


Use

\setupSlideTitle
   [style={ any font command }]

The default value of style is \switchtobodyfont[\SlideTitleSize]. The 
easiest way to switch fonts is to use \definefont or, if you are using the 
simplefonts module, \definesimplefont. For example:


\usemodule[simpleslides]
\usemodule[simplefonts][size=\NormalSize]

\definesimplefont[SlideTitleFont][Dejavu Sans][size=\SlideTitleSize]

\setupSlideTitle[style=\SlideTitleFont]

\starttext

\SlideTitle{Knuth}

\input knuth

\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] two questions for the simplest slides

2012-07-21 Thread Pablo Rodríguez
Hi there,

I would like to create the simplest slides ever. I have done in LaTeX
before, but I'm not sure how to do it with ConTeXt.

All I want is to be able to center both vertically and horizontally
whatever each slide contains and to change background and text colors in
an easy manner (something like from now on background is red and text is
white).

Looking to http://tug.org/pracjourn/2006-2/schmitz/ and
http://wiki.contextgarden.net/Presentations, I still have two questions.

How can I get every single slide, no matter there is text or images,
vertically centered?

How can I change background and text colors after a \page? I mean
something like:

\setuppapersize[S6][S6]
\setupcolors[state=start]
\setuppagenumber[state=stop]
\setupbackgrounds[page][background=color,backgroundcolor=red]
\startcolor[white]
\starttext
Page is red and text is white.
\page
Page is blue and text is yellow.
\page
Page is green and text is white.
\page
Page is white and text is black.
\page
Page is red and text is white (again).
\stoptext

I mean, I know how to start, but I don't know how to change after the
start. And it would be extremely helpful to change text colors with a
switch (if that were possible), not within an environment (mainly
because most slides will only contain one of two words).

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] two questions for the simplest slides

2012-07-21 Thread Marco
Hi Pablo,

for each defined colour there is a command that can be called to
switch. \centerbox centres the text vertically. It is not the most
elegant solution, but the following does what you asked for.

\setuppapersize
  [S6] [S6]

\setuppagenumber
  [state=stop]

\setupbackgrounds
  [page] [background=color]

\define[1]\setpagecolor
  {\setupbackgrounds[page][backgroundcolor=#1]}

\setupalign
  [middle]

\starttext

\setpagecolor{blue}
\yellow
\centerbox{Page is blue and text is yellow.}

\stoptext


Marco


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] two questions for the simplest slides

2012-07-21 Thread Peter Münster
On Sat, Jul 21 2012, Pablo Rodríguez wrote:

 Page is red and text is white.
 \page
 Page is blue and text is yellow.

Quick hack:

\definecolor[MyColor][white]
\setupbackgrounds[page][background=color, backgroundcolor=MyColor]
\def\Slide#1#2#3{% #1: background, #2: foreground, #3: words
  \definecolor[MyColor][#1]
  \startstandardmakeup
\setupalign[middle]%
\setupcolors[textcolor=#2]%
#3
  \stopstandardmakeup
}
\starttext
\Slide{red}{white}{Page is red and text is white.}
\Slide{blue}{yellow}{Page is blue and text is yellow.}
\stoptext

Be patient, others (Wolfgang?!) will probably post cleaner solutions.

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] two questions for the simplest slides

2012-07-21 Thread Pablo Rodríguez
On 21/07/12 21:21, Marco wrote:
 Hi Pablo,
 
 for each defined colour there is a command that can be called to
 switch. \centerbox centres the text vertically. It is not the most
 elegant solution, but the following does what you asked for.
 [...]

Thank you, Marco, for your reply.

Your color information and switches are what I was looking for.

\centerbox does the work, but I forgot to mention that sometimes a word
per line (something line digital\\privacy). But Peter's approach solves
this.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] two questions for the simplest slides

2012-07-21 Thread Pablo Rodríguez
On 21/07/12 21:25, Peter Münster wrote:
 On Sat, Jul 21 2012, Pablo Rodríguez wrote:
 
 Page is red and text is white.
 \page
 Page is blue and text is yellow.
 
 Quick hack:
 
   \startstandardmakeup
 \setupalign[middle]%
 \setupcolors[textcolor=#2]%
 #3
   \stopstandardmakeup

Thanks for your reply, Peter.

I have realized that your hack centered multiline slides and that I have
implemented it through a \starsld...\stopsld environment (since I don't
need to setup colors for every single slide).

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] two questions for the simplest slides

2012-07-21 Thread Peter Münster
On Sat, Jul 21 2012, Pablo Rodríguez wrote:

 Page is red and text is white.
 \page
 Page is blue and text is yellow.

All you need, can be done with \framed:

\setuppapersize[S6]
\setuplayout[page]
\def\Slide#1#2#3{% #1: background, #2: foreground, #3: words
  \framed[offset=overlay, width=\textwidth, height=\textheight,
background=color, backgroundcolor=#1, foregroundcolor=#2,
align={middle, lohi}, frame=off]{#3}}
\starttext
\Slide{red}{white}{Page is red and text is white.\\Newline}
\Slide{blue}{yellow}{Page is blue and text is yellow.}
\stoptext

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] two questions for the simplest slides

2012-07-21 Thread Pablo Rodríguez
On 21/07/12 23:10, Peter Münster wrote:
 On Sat, Jul 21 2012, Pablo Rodríguez wrote:
 
 Page is red and text is white.
 \page
 Page is blue and text is yellow.
 
 All you need, can be done with \framed:
 
 \setuppapersize[S6]
 \setuplayout[page]
 \def\Slide#1#2#3{% #1: background, #2: foreground, #3: words
 [...]

Sorry, Peter, I haven't expressed myself accurately.

\def\Slide#1#2#3 has a problem, namely, that I have to enter both
background and foreground colors for each single slide.

\definestartstop[sld][before={\page\startstandardmakeup\setupalign[middle]},after=\stopstandardmakeup]

makes easier to change colors only when I really need it.

Many thanks again,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___