[NTG-context] Difference in whitespace around section head from mkII to mkIV

2010-06-01 Thread Adam Fuller

hi all,
i'm experiencing some unwanted whitespace related to a section head.  the 
whitespace is present when using lua (texexec --lua funk.tex) and absent when 
using mkII (texexec funk.tex).  i've confirmed the correct mkII behaviour on 
the garden's live tool, and my own minimals installation:
This is LuaTeX, Version beta-0.60.1-2010050621 (rev 3678)
 \write18 enabled.
(funk.tex

ConTeXt  ver: 2010.05.13 12:15 MKIV  fmt: 2010.5.21  int: english/english

if you run the document below on mkII, you'll see that the first text on each slide is 
right up against the top of the text area.  this is good.  if you use my version of 
luatex, a line is skipped.  why the difference?  i'm not actually using anything lua 
(i've just started using Context in the past weeks, and i've got a conference 
presentation due in 3 days, so i've got weird habits.  i'm just now getting my head 
around the copious amounts of documentation for the system, and all the differences 
between context, luatex, pdftex, mkII, mkIV, and all the other new terms), so i'll 
probably just texexec funk.tex as a workaround.  /however/, when i get some 
free time, i'll be playing with lua, and i'd like it to work right.  i've been a latex 
user since my undergrad a couple of years ago, and i just found metapost maybe one month 
ago.  what an eye opener!  i love programming and i love making dorky little vector 
images... it's the perfect marriage!

maybe somebody bright can shed some light on this?

thanks everybody,
adam


% author: adam fuller
% date: 24/5/2010
% description: why does placehead=no,page=yes in \definehead push
% the first line of a slide down by one?  when a slide is too long
% and breaks to another page, that page starts right up at the top,
% without the annoying extra whitespace.  trying to unravel it.

\setupheadertexts[myslide][]
\setupheader[state=start]
\setuppagenumbering[state=stop]

\definehead[myslide][subsubsection]
\setuphead[myslide][style=slanted,placehead=no,page=yes]
\definestartstop[slide][
before={\page\startalignment[right,nothyphenated,hanging]\tf},
after={\stopalignment}]

\starttext
\showframe[text]%
\showframe[header]%
\myslide{}%
\midaligned\framed[location=middle,align=center,offset=none,frame=off]{
%\blank[2*big,force]
{\bfa Adam Fuller}
\blank[1*big,force]
{\em from}
\blank[1*big,force]
{\bfa U. Canterbury}
\blank[1*big,force]
{\em talks about}
\blank[1*big,force]
{\bfa Adapting simplified propeller turbines to higher specific
speeds: CFD studies}
\blank[1*big,force]
{\em at}
\blank[1*big,force]
{\bfa Hidroenergia 2010}
}
\page%
\myslide{Where I start from}%
My Ph.D. research has been to increase the specific speed ($N_S$),
starting with an existing range, while maintaining a turbine
efficiency of 70\%.

By \em{adapting}, I mean taking an existing design \em{philosophy} to a
new design \em{point}.

This \em{philosophy} is just a list of rules that reflect the
turbines' intended use:
\startitemize
\item no guide vanes
\item run at 1500~rev/min only
\item use flat blades
\stopitemize


\myslide{New design point, new challenges}
The paper discusses how increasing the specific speed may impact on
the design of such a turbine's three main components.

The adapted version of each component brings its own challenges.

At higher $N_S$
\startitemize
\item draft tube performance is increasingly
important.  How sensitive is its performance to the inputs in this
particular case?
\item velocity triangles at the runner's leading and trailing
edge become less forgiving to uncertainty (dimensional and fluid
dynamical)
\item the volute's priority changes from \quote{provide swirl
$x$} to \quote{provide uniform axial flow at mimimum loss}.  How
must the design change?
\stopitemize

\myslide{For this presentation}
To illuminate these three points, I worked up a CFD study related
to each component.  To summarize the studies:
\startitemize
\item Draft tube: $C_p = f({\rm swirl}, \theta)$.  What is $f$?
I'll try to put my result in the context of the literature.
\item Runner: from the desktop-design stage, the ratios
\startformula
\omega r:V_a:\Delta V_t\approx 8:4:1,
\stopformula
are expected to cause problems with sensitivity of output and
efficiency to speed.  I'll talk about how my CFD results suprised
me.
\item Volute: Trying to reconcile the need for predictable axial
runner inlet flow, low loss, and no flow-spanning vanes or struts
has led to an adaptation of previous Giddens volutes.  I'll talk
about the changes that were made, and show that the new volute
looks to meet the requirements.
\stopitemize
\stoptext
attachment: adam_fuller.vcf___
If your question is of interest to others as 

Re: [NTG-context] Strange expansion behavior in XML/luatex

2010-06-01 Thread Martin Kolařík

I see,

and for the single case it works. Also saving is fine, I am using it. 
Unfortunately, my example was too reduced :-). In fact, I have a problem 
with more complex documents, for example, think about:


section
captionSome inline what=something caption/caption
textpText./p/text
/section

Now, if I want not to only typeset a caption, but also to store it and 
reuse it later (typeset it twice, e.g. in the marging or elsewhere in 
the page, ...), it fails (on \processaction, \doif, ...).


So, if I understand, there is a way to modify my XML template to be safe 
during expanding -- I would use self unexpandable macros). Another way 
is problematic, as \edef inside \edef causes problems? Is it true or 
there is some other way?


Thank you,

Martin

Dne 1.6.2010 0:10, Hans Hagen napsal(a):

On 29-5-2010 12:01, Martin Kolařík wrote:


I do not know, if it is a bug or a feature :-); but notwithstanding the
fact, similar code I used in MkII worked very well.


effectively you as for:

\starttext
\edef\content{\processaction[x][something=A thing, nothing=Hic 
sunt leones]}

\stoptext

and that will not work; ok, we could make processaction unexpandable 
but i'm sure that you want something different


you can save the content this way:

\edef\content{#1}

and do this later on:

\xmlflush{\content}

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
___


Re: [NTG-context] Strange expansion behavior in XML/luatex

2010-06-01 Thread Hans Hagen

On 1-6-2010 9:03, Martin Kolařík wrote:

I see,

and for the single case it works. Also saving is fine, I am using it.
Unfortunately, my example was too reduced :-). In fact, I have a problem
with more complex documents, for example, think about:

section
captionSome inline what=something caption/caption
textpText./p/text
/section

Now, if I want not to only typeset a caption, but also to store it and
reuse it later (typeset it twice, e.g. in the marging or elsewhere in
the page, ...), it fails (on \processaction, \doif, ...).


can't you just filter the caption then? in principle you can access each 
element everywhere


-
  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] Title page layout

2010-06-01 Thread Alan BRASLAU
On Tuesday 01 June 2010 00:31:11 Scott Steele wrote:
 I'm trying to anchor a table or box containing my title and subtitle to the
 bottom right corner of the textblock (on a title page). The following comes
 very close to doing what I want, but there is still some vertical space
 between the bottom of the text of the subtitle and the last major
 horizontal gridline. How can I have the subtitle text be (above and) flush
 with the last major horizontal gridline in the same way that it is flush
 with the rightmost vertical gridline? NOTE: Small adjustments to the
 example I provide might not be helpful for me since, in actuality, I'm
 using Adobe Jenson, which makes both the metrics and the expression of the
 problem slightly different.

You might want to look into collectors:
http://wiki.contextgarden.net/Collectors

Alan
___
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] Strange expansion behavior in XML/luatex

2010-06-01 Thread Martin Kolařík
I the case probably yes. Now I have new info how to continue with my 
MkII--MkIV conversion, so I will do. I prefer to keep the XML schema 
and the style as clean and simple as possible, but this does not 
necessarily mean that the typesetting code itself will be clean and 
simple too :-),


Thanks for now; I will ask you, if I do not succeed :-),

Martin

Dne 1.6.2010 9:51, Hans Hagen napsal(a):

On 1-6-2010 9:03, Martin Kolařík wrote:

I see,

and for the single case it works. Also saving is fine, I am using it.
Unfortunately, my example was too reduced :-). In fact, I have a problem
with more complex documents, for example, think about:

section
captionSome inline what=something caption/caption
textpText./p/text
/section

Now, if I want not to only typeset a caption, but also to store it and
reuse it later (typeset it twice, e.g. in the marging or elsewhere in
the page, ...), it fails (on \processaction, \doif, ...).


can't you just filter the caption then? in principle you can access 
each element everywhere


-
  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] Strange expansion behavior in XML/luatex

2010-06-01 Thread Hans Hagen

On 1-6-2010 10:17, Martin Kolařík wrote:

I the case probably yes. Now I have new info how to continue with my
MkII--MkIV conversion, so I will do. I prefer to keep the XML schema
and the style as clean and simple as possible, but this does not
necessarily mean that the typesetting code itself will be clean and
simple too :-),


indeed, as the problems themselves don't change there is no guarantee 
that the outcome looks clean; this is also why using external tools 
(like xslt) is not making things easier and cleaner


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] floatcombinations, localfloats [mkiv]

2010-06-01 Thread Thomas Floeren
 
Hello,

I can't get floatcombinations to work in mkiv:

\starttext
\placefigure [none]{}
{\startfloatcombination [2*1]
\placefigure {.}%
{\externalfigure [.]}
\placefigure {.}%
{\externalfigure [.]}
\stopfloatcombination}
\stoptext

(some definitions are missing: forcelocalfloats, resetlocalfloats, 
noflocalfloats)

Best wishes
Thomas



This is LuaTeX, Version beta-0.60.1-2010052906 (Web2C 2010/pretest) (rev 3685) 
ConTeXt  ver: 2010.06.01 00:18 MKIV  fmt: 2010.6.1  int: english/english

___
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] first-setup.sh

2010-06-01 Thread Thomas A. Schmitz

Hi all, esp. Mojca,

I don't know if anything changed recently, but first-setup.sh doesn't  
fetch the latest beta for me anymore, even when I feed it the -- 
context=beta switch. At first, I thought it was a glitch, but I have  
now tried on 3 different computers, and after running first-setup.sh,  
I always get


MTXrun | main context file: /Users/tas/context/tex/texmf-context/tex/ 
context/base/context.tex

MTXrun | current version: 2010.05.24 13:05

even though the beta version 2010.05.27 has been available for a  
while. Am I missing something, or has something changed?


All best

Thomas
___
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] first-setup.sh

2010-06-01 Thread luigi scarso
On Tue, Jun 1, 2010 at 12:49 PM, Thomas A. Schmitz
thomas.schm...@uni-bonn.de wrote:
 Hi all, esp. Mojca,

 I don't know if anything changed recently, but first-setup.sh doesn't fetch
 the latest beta for me anymore, even when I feed it the --context=beta
 switch. At first, I thought it was a glitch, but I have now tried on 3
 different computers, and after running first-setup.sh, I always get

 MTXrun | main context file:
 /Users/tas/context/tex/texmf-context/tex/context/base/context.tex
 MTXrun | current version: 2010.05.24 13:05

confirmed in my linux 32bit box

-- 
luigi
___
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] first-setup.sh

2010-06-01 Thread Mojca Miklavec
On Tue, Jun 1, 2010 at 12:49, Thomas A. Schmitz wrote:
 Hi all, esp. Mojca,

 I don't know if anything changed recently, but first-setup.sh doesn't fetch
 the latest beta for me anymore, even when I feed it the --context=beta
 switch. At first, I thought it was a glitch, but I have now tried on 3
 different computers, and after running first-setup.sh, I always get

 MTXrun | main context file:
 /Users/tas/context/tex/texmf-context/tex/context/base/context.tex
 MTXrun | current version: 2010.05.24 13:05

You can always check if something is wrong on your computer or on
server by taking a look at
http://minimals.contextgarden.net/current/context/beta/tex/context/base/
and checking the version there. It seems that this version is exactly
the same as on server, so it's a problem on our server.

 even though the beta version 2010.05.27 has been available for a while. Am I
 missing something, or has something changed?

Interesting. Hans has changed configuration of his rsync server. I
have noticed that while fetching docs, but didn't think about the fact
that this has influenced fetching of the latest context as well.

Hans has sent me another address for rsync, but that one is empty.
Hans, I need the name of rsync server now (may be sent off-list) ...

Mojca
___
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] BibLaTeX

2010-06-01 Thread Peter Park Nelson
I frequently use LaTeX with BibLaTeX and the BibLaTeX-Chicago Style package
to typeset scholarly material. For me, BibLaTeX is a great tool. However, I
am attracted to ConTeXt because, coming from a desktop-publishing
background, ConTeXt gives me more/easier control over document layout and
structure. Thus I began to dream of a chocolate + peanut butter
combination of the two.

I would like to know if anyone has thoughts on the possibility of using
BibLaTeX  Biber with ConTeXt -- perhaps through a wrapper module of some
kind? I don't understand the internals of LaTeX or ConTeXt well enough to
know if this is a ridiculous question. I respect the ConTeXt Bib module, but
BibLaTeX-Chicago offers exactly what I'm looking for.

Both BibLaTeX and ConTeXt use e-TeX, and the internals of BibLaTeX appear
not to be LaTeX-specific. So, would it be possible to write a ConTeXt module
that bypasses Bib and provides an interface between ConTeXt bibliography
commands and BibLaTeX/Biber?

Thanks,
PPN
___
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] BibLaTeX

2010-06-01 Thread taco

Peter Park Nelson wrote:

Both BibLaTeX and ConTeXt use e-TeX, and the internals of BibLaTeX 
appear not to be LaTeX-specific. So, would it be possible to write a 
ConTeXt module that bypasses Bib and provides an interface between 
ConTeXt bibliography commands and BibLaTeX/Biber?


It should be possible, but I do not have time.

Best wishes,
Taco
___
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] Slides: uncover things piecewise

2010-06-01 Thread Marco
Hi,

I use the »simpleslides« module for a presentation and I wonder if it is
possible to uncover things piecewise. Take the following example:

\usemodule [simpleslides]
\starttext
\SlideTitle {My Topic}
\startitemize
  \item First  % Visible by default
  \item Second % Gray by default
  \item Third  % Gray by default
\stopitemize
\stoptext

I want to achieve the following: The first item should be visible by
default. The second and third items are not visible or grayed out. The by
jumping to the (physically) next slide (for the audience it's still the
same page) the second item will be displayed and so on...

I've found some old pieces of code in the mail archive but didn't get it to
work.

Kind regards
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] Multiple pleas for help (long)

2010-06-01 Thread Wolfgang Schuster

Am 01.06.10 00:29, schrieb Scott Steele:
If anyone has any insight on how to keep the footnotes from having 
their numbers in the margin and from having line-breaks after each 
one, that is the only issue from the original email that is still 
unsolved, I think.


———

In Latex, \fancybreak was part of a package called, I believe, 
fancyheader or fancypage. It produced a break frequently seen in 
published prose (I'm currently reading {\em Bluebeard} where Kurt 
Vonnegut uses it liberally) with significant vertical space between 
two paragraphs and, centered both in that vertical space as well as 
horizontally, a number of well-spaced marks. There are usually 3 
marks, and they are frequently asterisks or traditional 
dingbats/fleurons. This sort of break is generally used when the 
author wishes to indicate a break more significant than a change in 
paragraph but short of an outright new chapter.


\def\FancyBreak{\par\blank\hfill* * *\hfill\hfill\par\blank}


\define\FancyBreak
  {\blank
   \midaligned{* * *}
   \blank}

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
___


[NTG-context] Indents, enumerations, and modes (mk2+mk4)

2010-06-01 Thread Matthias Weber

Dear all,

I have two questions regarding using spacing in enumerations.  
Depending on a mode being enabled, I would like to add a command at  
the beginning of
an enumeration (I want to place something in the margin, but it  
doesn't actually matter what I do, only when).
 As shown in the minimal example below, invoking the macro that does  
something, a little extra space is added.
I don't know why, it is probably something very TeX-basic I am  
ignorant of. So: How do I get rid of the extra space?
The problem occurs both in mk2 and mk4, I would prefer a solution that  
also works in mk2.


Thanks!


Matthias



\def\mma{
\startmode  [mma]
{}
\stopmode
}



\def\enwidth{5em}


\defineenumeration  [example]
[text=Example,
way=bysubsection,
location=hanging,
width=\enwidth,
letter=rm]


\starttext


\enablemode[mma]
\startexample
\mma
\input tufte
\stopexample

%%

\disablemode[mma]
\startexample
\mma
\input tufte
\stopexample

%%

\startexample
\input tufte
\stopexample



\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
___


Re: [NTG-context] Indents, enumerations, and modes (mk2+mk4)

2010-06-01 Thread Wolfgang Schuster

Am 02.06.10 00:14, schrieb Matthias Weber:

Dear all,

I have two questions regarding using spacing in enumerations. 
Depending on a mode being enabled, I would like to add a command at 
the beginning of
an enumeration (I want to place something in the margin, but it 
doesn't actually matter what I do, only when).
 As shown in the minimal example below, invoking the macro that does 
something, a little extra space is added.
I don't know why, it is probably something very TeX-basic I am 
ignorant of. So: How do I get rid of the extra space?
The problem occurs both in mk2 and mk4, I would prefer a solution that 
also works in mk2.


Thanks!


Matthias



\def\mma{
\startmode[mma]
{}
\stopmode
}


\def\mma
  {\startmode[mma]% not sure here
   ...%
   \stopmode}

or use setups

\startsetups[mma]
\startmode[mma]
...
\stopmode
\stopsetups

\startexample
\setups[mma]
\stopexample

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
___