[NTG-context] \page inside a block

2006-03-15 Thread frantisek holop
hi there,

the following is a minimal example of the layout i am working on.


---%<-
% output=pdftex

\enableregime[latin2]

\setuppapersize
  [A5][A5]

\defineparagraphs
  [poem][n=2]
\setupparagraphs
  [poem][1][width=.35\textwidth]
\setupparagraphs
  [poem][2][rule=on]

\starttext

\startpoem
\section{poem}
\poem\startlines
line 1
line 2
\page
line 3
line 4
\stoplines\stoppoem
\stoptext
---%<-


when the poem gets long, i need to start a new page obviously.
but page is not working.  what am i missing here?

also, using \page is one thing, good for me, so i could tell,
flush the page right here, but i thought i'll get an automatic
pagebreak when the text gets to the bottom

sorry if this is a very silly question, just getting my feet wet
with context  thanks

-f
-- 
bungee diving - living it up when you're going down!
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] mixed colors in TABLE

2006-03-15 Thread olivier Turlier
On Tue, 14 Mar 2006 10:14:50 +0100, Taco Hoekwater wrote:

> 
> Hi,
> 
> olivier wrote:
>> Hi Everybody,
>> 
>> I'm in front of a unresolvable pb (for the moment !) : compilation aborts
>> with following file, apparently for a color problem.
> 
> Luckily, this is easy to fix.
> 
>> \setupTABLE[c][1][style=\bfb,color=\SubTitleColor]
>> \setupTABLE[c][2][style=\bfa,color=\TextColor]
> 
> Just delete the backslashes in front of the color names.
> 
> The second column of the table is off the page on the right,
> because the table is too large, but I assume you knew that.
> 
> Cheers, taco

Thanks a lot Taco, it's working allright now.

For placing image \& text, i've switched to layer placement, because of my
ignoreance of Tex commands (placing boxes hori \& verticaly).

In the way of finding correct width for columns, i've noticed that i was
obliged to clean aux. files for seeing a graphical change.

-- 

Olivier Turlier

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Fonts: Margin kerning: quotes not hanging?

2006-03-15 Thread David Wooten
Greetings ConTeXters,

I've noticed recently that quotation marks (single + double), as well  
as parens, and perhaps others are not undergoing the expected margin  
kerning adjustments. Expected being those that are assigned to them  
in hand-def.tex. Punctuation like . , ; - -- --- all kern as expected.

Is hand-def.tex just an example file?

While I expect I'll have to make fine tuning adjustments in my font's  
own typescript file, where should I make overall adjustments? (e.g. I  
pretty much always want quotes to hang.)

I'm using Adobe Minion Pro in this case, if this makes a difference.

Thanks very much,
David
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] typing and linenumbering

2006-03-15 Thread nico
Hello,

I would like to print some listings, with their line numbers. To achieve  
this I use the following combination on framedtext, typing and  
linenumbering stuff.

The output is pretty as I wish, but unfortunately the line numbers are  
*not* the numbers of the listing lines, but the numbers of the lines once  
wrapped in the frame. In the example below the first line is very long  
(the "blah blah" line), but in the output it is shown as 4 lines (with 4  
line numbers).

Is there a way to achieve this in a more integrated way with the typing  
environment? The other side effect of the method used is that it changes  
the linenumbering behaviour outside the typing environment. I tried the  
"reset" option, but it doesn't change the intext location. Is there a  
possibility to come back to default settings?

Last but not least, is it possible to customize the wrapping behaviour so  
that an arbitrary command can be called before the cut, and another  
command after the cut? What I would like to have is {\space\wrapsign}  
before the cut and an indentation after the cut to show that the line is  
wrapped.

Thanks for any hints.


% listing frame
\defineframedtext
   [framelisting]
   [background=screen,
frame=off,
strut=yes,
offset=2mm,
width=broad,
framecolor=black,
align=right]

\definetyping[prog]

\setuptyping[prog]
 [bodyfont=small,
  
before={\setuplinenumbering[style=small,step=2,start=3,location=intext]
  \startframelisting\startlinenumbering},
  after={\stoplinenumbering\stopframelisting}]
% after={\stoplinenumbering\setuplinenumbering[reset]}]

\startprog
first line: blah blah blah blah blah blah blah blah blah blah blah blah  
blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah  
blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah  
blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah  
blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah  
blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah  
blah
second line
third line
last line
\stopprog


Regards,
BG
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] pretty typesetting for matlab files

2006-03-15 Thread Aditya Mahajan


On Wed, 15 Mar 2006, Taco Hoekwater wrote:

>
>
> Aditya Mahajan wrote:
>> Hi,
>>
>>  I was trying to define a pretty printing environment for matlab files.
>> The basic requirements that I have are
>>
>> The syntax is similar to both perl and MP. I had a look at the
>> verb-*.tex files and tried to write verb-matlab. My attempt is attached.
>
> If you have to change any of the actual syntax rules (like for comments
> etc.), then you have to be brave and create a fully new definition.

The syntax is quite similar to MP. I will see if I can make the 
corresponding changes for things to work.

> That may sound like a very daunting task, but it is not as hard as you
> may think, just something to be done meticulously. The verb-
> definitions are rather straightforward state engines that use character
> codes as command tokens.

Is this documented somewhere? Even the source files (verb-*.tex) did not 
have too many hints on what is going on. Should I also look into some 
other files?

Thanks,
Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Struggling with Old Style numerals!

2006-03-15 Thread G.C.H.M. Verhaag
Adam Lindsay wrote:

>..
>
>Do you have a recent ConTeXt? Do you have an up-to-date latin modern 
>install?
>(Most advice/ConTeXt stuff depends on at least those two things, here.)
>
>adam
>  
>
Hoi Adam,

What do you call recent? I was using TeXLive 2004, and the ConTeXt 
version available from this CD. Maybe that's already ancient, but good 
enough for me!

I've removed that one and installed TeXLive 2005! I was afraid of other 
problems, and indeed that's exactly what happened.

I assume that ConTeXt is setup properly after the TeXLive installation! 
After setting my PATH correctly I issued the command texexec from the 
command line.

The Perl script texexec doesn't launch!! I get the following Perl error 
message:

Can't locate Digest/MD5.pm in @INC (@INC contains: 
/usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 
/usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 
/usr/local/lib/site_perl .) at 
/usr/local/texlive/2005/texmf-dist/scripts/context/perl/texexec.pl line 54.
BEGIN failed--compilation aborted at 
/usr/local/texlive/2005/texmf-dist/scripts/context/perl/texexec.pl line 54.

This missing MD5.pm is present in the directory: 
/usr/local/texlive/2005/xemtex/perl/lib

So what should be my next move?

Regards,
Gerard

-- 
Gerard C.H.M. Verhaag
St. Jorisstraat 29
5954 AN Beesel
NETHERLANDS

Tel.: +31-(0)774742493, E-mail: [EMAIL PROTECTED]



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] question about figures and labels

2006-03-15 Thread WN
Hi,

I am trying to reference the 2 subfigures in my text , something like

Some text 

\placefigure[][figuur7]{Centrifugale kracht $\vec{F}_{F}$ en centripetale 
kracht $\vec{F}_{c}$}
{
\startcombination[2*1]
{\externalfigure[Drawings/figuur7a]}  {}
{\externalfigure[Drawings/figuur7b]}  {} 
\stopcombination
}

In \in{figure}[figuur7a] and \in{figure}[figuur7b] one can see .
..

But I don't know how to setup the labels figuur7a, figuur7b ?
I cannot find anything related on Wiki or in this newsgroup, I think it 
should
be possible with Context ?

Kind regards

Wim Neimeijer
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] figure placement

2006-03-15 Thread Taco Hoekwater


M.guravage wrote:

> This scheme works when the previous section ends on an odd page, but when
> the section ends on an even page, \page[left] correctly inserts two blank

I often have a set of macros that does a soemthing like this:

   \def\leftpage
 {\page \ifodd\pagenumber \noheaderandfooter~\page \fi}
   \def\rightpage
 {\page \ifodd\pagenumber \else \noheaderandfooter~\page \fi}

does that help?

> The second place figures appear is within sections. I use the same set of
> commands, which places the figures where I wish, but each figure must be
> placed precisely at the bottom of an odd page. This looks OK if the bottom
> of the page coincides with the end of a paragraph, but otherwise the last
> line is not flush right. I am looking for a solution that says, 'place
> this figure on the next blank even page disturbing the text flow as little
> as possible.' I have tried postponing, but without success.

Have you tried putting the figure in a footnote yet?

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] pretty typesetting for matlab files

2006-03-15 Thread Taco Hoekwater


Aditya Mahajan wrote:
> Hi,
> 
>  I was trying to define a pretty printing environment for matlab files. 
> The basic requirements that I have are
>  
> The syntax is similar to both perl and MP. I had a look at the 
> verb-*.tex files and tried to write verb-matlab. My attempt is attached.

If you have to change any of the actual syntax rules (like for comments
etc.), then you have to be brave and create a fully new definition.

That may sound like a very daunting task, but it is not as hard as you
may think, just something to be done meticulously. The verb-
definitions are rather straightforward state engines that use character
codes as command tokens.

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context