[NTG-context] Controlling figure placement?

2006-05-24 Thread Ehrt, Michael
Hi everyone,

Is there a way that gives more control over figure placement within a
columnset area? What I'd like to do is:

- have a columnset area that covers a whole page
- if possible, leave out headers and footers on that page (don't know
how)
- place an external figure on that page which is the same size as the
whole page, 210 by 297mm.

What I tried so far is:

\definecolumnset[test][n=3,distance=15pt]
\definecolumnsetspan[intro][n=2]
\definecolumnsetarea[one][fixed][x=1,y=1,nx=3,ny=46,page=3,state=start]
\definecolumnsetarea[two][fixed][x=1,y=1,nx=3,ny=46,page=5,state=start]
\setupcolumnsetareatext[one][\setups{mypdf}]
\setupcolumnsetareatext[two][\setups{myjpg}]
\startsetups[mypdf]\externalfigure[01-x3.pdf]\stopsetups
\startsetups[myjpg]\externalfigure[01.jpg]\stopsetups

The pdf is placed on page 3, left aligned at the text body, top aligned
at the text body. Both is not what I want in this case.

The jpg is placed on page 5, vertically centered which is ok, left
aligned at the text body which is also not what I want.

Headers and footers are not a problem this time, since the figure
obscures them. But in the past I've had images slightly smaller than the
text body, in which case I'd like to wipe out headers and footers on
that particular page...

Any ideas anyone?

Cheers

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


[NTG-context] Framedtext left/right offset?

2006-05-24 Thread Ehrt, Michael
Hi,

Is there a way to have 

\startcolumnsetspan[intro]
\startframedtext[frame=off,bottomframe=on,topframe=on,offset=1ex]
\it Some introduction text here
\stopframedtext
\stopcolumnsetspan

without the offset to the left and right? There's no frame drawn to the
left and right so I don't want the offset there. Since I couldn't find a
way to get rid of the offset I'm currently using

\startcolumnsetspan[intro]
\hrule\vskip1ex
\it \input knuth
\vskip1ex\hrule\crlf
\stopcolumnsetspan

I know that the use of \vskip is not recommended (according to the
manual), but this is the only way I found...

Cheers

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


Re: [NTG-context] XeTeX hangs

2006-05-24 Thread Otared Kavian
Hi Mojca,

Trying your minimal file on my Mac OS X, with XeConTeXt or with plain  
XeTeX, I observe the same hanging...

However, the following, taken out of an example sent to you by  
Jonathan K., works fine with both (indeed commenting out \starttext  
and \stoptext in plain XeTeX):

\starttext
\font\lmec = ec-lmr10 at 36 pt

\lmec
Testing... ð

Testing... ^^F0

\catcode`č=\active \defč{^^a3}
\catcode`š=\active \defš{^^b2}
\catcode`ž=\active \defž{^^ba}

Testing... čšž

\stoptext

while the following results in a PDF file with Testing... ° 0

\starttext
\catcode`ð=\active \defð{^^F0}

Testing... ð

\stoptext

Needless to tell you that all this seems extremely obscure to me...

Best regards: OK


On 23 mai 2006, at 10:24, Mojca Miklavec wrote:

 If I try to compile the folllowing code with XeTeX, it hangs (as if
 it was waiting for further input):

 \catcode`ð=\active \defð{^^f0} % only hangs for F0, other  
 numbers are OK
 \starttext
 ð
 \stoptext

 I didn't manage to test the same example with plain XeTeX (tetex is
 a bit misconfigured since the standalone ConTeXt is installed), but
 Jonathan says that it runs OK on his computer. Is my system broken
 again or are some other black forces working anywhere?

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


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


[NTG-context] Making posters with ConTeXT

2006-05-24 Thread Jorge Manuel de Almeida Magalhães
Hi

I am trying to making a scientifique poster in Context. I need some 
suggestions,
foreground an example, to start. Somebody has a nice example to share?
What is the correct scales for the fonts?

Have a nice day/night

Thanks to all

Jorge

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


[NTG-context] Making exams in Context

2006-05-24 Thread Jorge Manuel de Almeida Magalhães
I need to prepare an exam. My choice is obviously ContexT, but
I have some difficulty in generating multiple choice questions in 
random order.
  Each student will have one different exam.
In Latex I use MUCH (http://fourier.math.uoc.gr/~mk/much/). Did you can 
tell me if it has a similar
solution in ConTexT?

Thanks

Jorge

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


[NTG-context] Installation Problem

2006-05-24 Thread Neal Lester
I am trying to verify my installation.

When I try to run texexec against the test file given in the
installation instructions I don't get a dvi or pdf file.  The output is:

TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

fixing texformat path : 
.:{!!/home/neal/.texmf-config,!!/home/neal/.texmf-var,/home/neal/texmf,!!/usr/local/teTeX/share/texmf-config,!!/usr/local/teTeX/share/texmf-var,!!/usr/local/teTeX/share/texmf,!!/usr/local/teTeX/share/texmf-local,!!/usr/local/teTeX/share/texmf-dist}/web2c/{$engine,}
fixing engine variable : pdfetex
total run time : 0 seconds
warning : use 'texmfstart texexec' instead

I have set the value for TeXFormatPath in texexec.ini but still get the fixing 
texformat path message.

The contents of cont-en.log are:

This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) (format=pdfetex 
2006.5.23)  23 MAY 2006 15:35
entering extended mode
**cont-en --proxname=context temp
(/usr/local/teTeX/share/texmf/tex/context/base/cont-en.tex
(/usr/local/teTeX/share/texmf/tex/context/base/context.tex
(/usr/local/teTeX/share/texmf/tex/context/base/syst-pln.tex
\maxdimen=\dimen10
\hideskip=\skip10
\centering=\skip11
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
\interdisplaylinepenalty=\count23
\interfootnotelinepenalty=\count24
\bigskipamount=\skip13
\medskipamount=\skip14
\smallskipamount=\skip15
\normalbaselineskip=\skip16
\normallineskip=\skip17
\normallineskiplimit=\dimen13
\jot=\dimen14
\mscount=\count25
\tabs=\box11
\tabsyet=\box12
\tabsdone=\box13

Runaway definition?
-\ifx \next
! Forbidden control sequence found while scanning definition of [EMAIL 
PROTECTED]
inserted text
}
to be read again
   \+
l.515   {\ifx\next\+
%
? \end
Type return to proceed, S to scroll future error messages,
R to run without stopping, Q to run quietly,
I to insert something, E to edit your file,
H for help, X to quit.
?
! Extra \else.
l.517\else

?
! Extra \fi.
l.519\fi

?
! Argument of \nxt has an extra }.
inserted text
\par
to be read again
   }
l.521\nxt}

?
Runaway argument?
! Paragraph ended before \nxt was complete.
to be read again
   \par
to be read again
   }
l.521\nxt}

?
) (/usr/local/teTeX/share/texmf/tex/context/base/syst-prm.tex)
(/usr/local/teTeX/share/texmf/tex/context/base/syst-etx.tex)
(/usr/local/teTeX/share/texmf/tex/context/base/syst-omg.tex)
(/usr/local/teTeX/share/texmf/tex/context/base/syst-xtx.tex)
(/usr/local/teTeX/share/texmf/tex/context/base/syst-gen.tex unprotect 254
loading : Context System Macros / General
) (/usr/local/teTeX/share/texmf/tex/context/base/syst-ext.tex
loading : Context System Macro's / Extras
unprotect 255) (/usr/local/teTeX/share/texmf/tex/context/base/syst-new.tex
unprotect 256) (/usr/local/teTeX/share/texmf/tex/context/base/syst-con.tex
loading : Context System Macro's / Conversions
unprotect 257) (/usr/local/teTeX/share/texmf/tex/context/base/syst-var.tex
loading : Context System Macro's / Variables
) (/usr/local/teTeX/share/texmf/tex/context/base/math-pln.tex unprotect 258)
(/usr/local/teTeX/share/texmf/tex/context/base/supp-ini.tex
loading : Context Support Macros / Initializations
unprotect 259) (/usr/local/teTeX/share/texmf/tex/context/base/supp-fil.tex
loading : Context Support Macros / Files
unprotect 260) (/usr/local/teTeX/share/texmf/tex/context/base/supp-dir.tex
unprotect 261) (/usr/local/teTeX/share/texmf/tex/context/base/mult-ini.tex
loading : Context Multilingual Macros / Initialization
unprotect 262) (/usr/local/teTeX/share/texmf/tex/context/base/mult-sys.tex
loading : Context Multilingual Macros / System
unprotect 263
interface   : defining english interface

interface   : using english messages

) (/usr/local/teTeX/share/texmf/tex/context/base/mult-con.tex
loading : Context Multilingual Macros / Constants
) (/usr/local/teTeX/share/texmf/tex/context/base/mult-com.tex
loading : Context Multilingual Macros / Commands
) (/usr/local/teTeX/share/texmf/tex/context/base/thrd-ran.tex unprotect 264)
(/usr/local/teTeX/share/texmf/tex/context/base/thrd-trg.tex unprotect 265)
(/usr/local/teTeX/share/texmf/tex/context/base/supp-box.tex
loading : Context Support Macros / Boxes
unprotect 266) (/usr/local/teTeX/share/texmf/tex/context/base/supp-mrk.tex
loading : Context Support Macros / Marks
unprotect 267) (/usr/local/teTeX/share/texmf/tex/context/base/supp-vis.tex
loading : Context Support Macros / Visualization
unprotect 268) (/usr/local/teTeX/share/texmf/tex/context/base/supp-fun.tex
unprotect 269
loading : Context Support Macros / Fun Stuff
) (/usr/local/teTeX/share/texmf/tex/context/base/supp-eps.tex
loading : Context Support Macros / EPS
unprotect 270) (/usr/local/teTeX/share/texmf/tex/context/base/supp-pdf.tex
loading : Context Support Macros / PDF 

Re: [NTG-context] t-bib and explicitly italizising title parts

2006-05-24 Thread Taco Hoekwater
Johannes Graumann wrote:
 Hello,
 
 Is there any way using '\it' in the title of a bib-entry, so that
 ConTeXt/t-bib will hand it though into the bibliography listing?

Sure, just use \it ;-)

Seriously: does that not work for you? I tried

   @ARTICLE{article-minimal,
author = {L[eslie] A. Aamport},
title = {The {\it Gnats\/} and Gnus Document Preparation System},
journal = {\mbox{G-Animal's} Journal},
year = 1986,
   }

and it ran without any trouble.

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


Re: [NTG-context] t-bib (extra special experimental version), XML and nocite

2006-05-24 Thread Taco Hoekwater


Johannes Graumann wrote:
 I'm not sure whether this is related to the fact that I'm using an
 experimental t-bib version which Taco provided to enable correct chapter

It probably is, I assume your version's \nocite definition
lags behind (because it works for me). The \nocite definition
should look like this:

\def\nocite[#1]%
   {\processcommalist[#1]\addthisref
\processcommalist[#1]\docitation}

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


Re: [NTG-context] Installation Problem

2006-05-24 Thread Taco Hoekwater


Neal Lester wrote:
 I am trying to verify my installation.
 
 When I try to run texexec against the test file given in the
 installation instructions I don't get a dvi or pdf file.  The output is:

What instructions did you follow, precisely? I see some problems in
your output, but it will be easier to explain using those instructions.

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


Re: [NTG-context] Controlling figure placement?

2006-05-24 Thread Ehrt, Michael
Hi again, 

 Is there a way that gives more control over figure placement within a
 columnset area? What I'd like to do is:
 
 - have a columnset area that covers a whole page
 - if possible, leave out headers and footers on that page (don't know
 how)
 - place an external figure on that page which is the same size as the
 whole page, 210 by 297mm.
 
 What I tried so far is:
 
 \definecolumnset[test][n=3,distance=15pt]
 \definecolumnsetspan[intro][n=2]
 \definecolumnsetarea[one][fixed][x=1,y=1,nx=3,ny=46,page=3,sta
 te=start]
 \definecolumnsetarea[two][fixed][x=1,y=1,nx=3,ny=46,page=5,sta
 te=start]
 \setupcolumnsetareatext[one][\setups{mypdf}]
 \setupcolumnsetareatext[two][\setups{myjpg}]
 \startsetups[mypdf]\externalfigure[01-x3.pdf]\stopsetups
 \startsetups[myjpg]\externalfigure[01.jpg]\stopsetups


I managed to clear headers and footers by using

\setupcolumnsetareatext[one][{\page[no,blank]\setups{mypdf}}]
\setupcolumnsetareatext[two][{\page[no,blank]\setups{myjpg}}]

But this has the problem that it clears ALL headers and footers on
subsequent pages. Trying to clear them using
\setupheader[text][state=empty] here didn't work. What I actually looked
for was something like

\adaptlayout[3,5][command={\setupheader[text][state=empty]\setupfooter[t
ext][state=empty]}]

But this doesn't exist. Also, changing the layout width is not possible
with adaptlayout, which might fix the left-right-positioning...

Does anyone know how to do it?

Cheers

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


Re: [NTG-context] Making posters with ConTeXT

2006-05-24 Thread Johan Sandblom
This is an early version of a poster I have used. It is quite
non-standard but shows some options for placing things and fonts.

Regards, Johan
\setuppapersize[A0][A0]
\setuplayout[backspace=2cm,
topspace=2cm,
leftedge=2cm, leftedgedistance=0cm,
rightedge=0cm, rightedgedistance=0cm,
leftmargin=2cm, leftmargindistance=0cm,
rightmargin=2cm, rightmargindistance=0cm,
footer=0cm, header=0cm,
location=singlesided,
width=fit,
height=fit]

\startbuffer[Intro]
\BoxTitle{Introduction}

Experiments investigating the difference between finding something
vaguely famililar and actually recollected may be performed using the
``remember/know'' paradigm.  Subjects are required to specify whether
correctly recognized items were explicitly ``remembered'' or merely
familiar, ``known''.  In spite of experimental design difficulties, a
number of imaging studies have also been performed (Eldridge, Henson).
One difficulty in designing these imaging experiments is that one
would ideally like the subject to answer to questions at once in the
recognition situation: first, whether they recognize the item and if
they do, second, whether they ``remembered'' it or ``knew'' it.  In
the imaging context this is problematic and has been the generator of
some creativity in experimental design.  Instead of having the
subjects making two responses to the same stimulus in the same session
(like Eldridge et al) or having them choose between ``remember'',
``know'' or ``neither'' in the recognition situation (like Henson et
al), we collected the hits and fed them back to the subjects in a new
imaging session asking the subjects to state whether the previous
recognition event was one of recollecting or finding familiar, or that
they cannot recall. \par \stopbuffer

\startbuffer[Methods]
\BoxTitle{Methods}

Paradigm illustrated**
Twenty young and healthy volunteers were scanned while recognizing 80
words (encoded during an anatomical scan) out of 160. One subject was
discarded because of bizarre task-related movement. Three others were
discarded because they had less than five ``know'' events. The words
were presented for two seconds and the gap between them was four
seconds.  There were three sessions of 88 scans with a TR of 4.2
seconds.  After these three sessions, the subjects' hits were
extracted and two debriefing sessions were constructed containing the
hits, randomly ordered, with 30 percent null events.  We sorted hit
events in the recognition sessions according to whether they were
subsequently ``remembered'', ``known'' or ``guessed''.\par \stopbuffer

\startbuffer[DataAnal]
\BoxTitle{Data Analysis}

\kap{EPI} images were realigned, normalized and smoothed to 12mm
\kap{FWHM}. No slice timing correction was performed. For each person,
$t$-contrasts of the \kap{HRF}, as well as its temporal and dispersion
derivatives were estimated. These were used in a second-level
\kap{ANOVA} to estimate the difference between remember and know. \par
\stopbuffer

\startbuffer[Results]
\BoxTitle{Results}

Subjects performed very well on the task.  Hits minus false alarms
averaged 0.53.  65 percent of hits were 'remembered', 26 percent were
'known' and nine percent were 'guessed'.  The contrast between
'remembered' and 'known' hits at recognition shows in the
lingual/fusiform gyrus on the right and the precuneus on the left.
The contrast between 'remembered' and 'known' hits at debriefing
sessions shows activations also in the precuneus bilaterally and the
middle frontal gyrus on the right.
\par \stopbuffer

\startbuffer[Table]
%\placetable[right]{Proportions}
{\bTABLE[frame=on, offset=1mm, framecolor=twhite]
\setupTABLE[row][first][backgroundcolor=tgrey]
\setupTABLE[row][last][backgroundcolor=tgrey]
\bTR\bTD[align=left] $n$\eTD\bTD 19 \eTD\bTD 16 \eTD\eTR
\bTR\bTD Remember   \eTD\bTD\eTD\bTD\eTD\eTR
\bTR\bTD Know   \eTD\bTD\eTD\bTD\eTD\eTR
\bTR\bTD Guess  \eTD\bTD\eTD\bTD\eTD\eTR
\bTR\bTD False alarms   \eTD\bTD\eTD\bTD\eTD\eTR
\bTR\bTD Correct rejections \eTD\bTD\eTD\bTD\eTD\eTR
\bTR\bTD Misses \eTD\bTD\eTD\bTD\eTD\eTR
\eTABLE}
\stopbuffer
\startbuffer[Discussion]
\BoxTitle{Discussion}

.  The 'remembered $$ known' contrast in the
recognition session
Eldridge et al whereas the corresponding contrast in the debriefing
session appears more similar to the increases to R judgments reported
by Henson et al.\par
\stopbuffer

\startbuffer[References]
\BoxTitle{References}

\tfxx Eldridge, Knowlton, Furmanski, Bookheimer, Engel: Remembering
episodes: a selective role for the hippocampus during
retrieval.  2000.  Nat Neurosci 11:1149\par

Henson, Rugg, Shallice, Josephs, Dolan: Recollection and familiarity
in recognition memory: an eventrelated functional magnetic resonance
imaging study.  1999.  J Neurosci 19:3962\par
\stopbuffer


Re: [NTG-context] XeTeX hangs

2006-05-24 Thread Hans Hagen
Otared Kavian wrote:
 Hi Mojca,

 Trying your minimal file on my Mac OS X, with XeConTeXt or with plain  
 XeTeX, I observe the same hanging...

 However, the following, taken out of an example sent to you by  
 Jonathan K., works fine with both (indeed commenting out \starttext  
 and \stoptext in plain XeTeX):

 \starttext
 \font\lmec = ec-lmr10 at 36 pt

 \lmec
 Testing... ð

 Testing... ^^F0

 \catcode`č=\active \defč{^^a3}
 \catcode`š=\active \defš{^^b2}
 \catcode`ž=\active \defž{^^ba}

 Testing... čšž

 \stoptext

 while the following results in a PDF file with Testing... ° 0

 \starttext
 \catcode`ð=\active \defð{^^F0}

 Testing... ð

 \stoptext

 Needless to tell you that all this seems extremely obscure to me...
   
what do you get when you run that with \tracingall 

\tracingall 

Testing... ð

and what does 

\show ð

return? and what 

Testing... ðaaa

Hans 




-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] Installation Problem

2006-05-24 Thread Hans Hagen
Neal Lester wrote:
 I am trying to verify my installation.

 When I try to run texexec against the test file given in the
 installation instructions I don't get a dvi or pdf file.  The output is:

 TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
   
first download the latest version and try to get the new texexec running 

(otherwise, try the minimal context linux distribution) 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] tabulation spacing

2006-05-24 Thread andrea valle
Ah! now I remember.
Thanks as usual


 btw \unknown is a shortcut for $\ldots$

good to know, I use it a lot: is there a place in the docs where to 
find these kinds of info?

Best

-a-









 -- 

 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -

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


Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
[EMAIL PROTECTED]

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


Re: [NTG-context] Making exams in Context

2006-05-24 Thread Hans Hagen
� wrote:
 I need to prepare an exam. My choice is obviously ContexT, but
 I have some difficulty in generating multiple choice questions in 
 random order.
   Each student will have one different exam.
 In Latex I use MUCH (http://fourier.math.uoc.gr/~mk/much/). Did you can 
 tell me if it has a similar
 solution in ConTexT?
   
attached is something i made in 2000

i just tested it and it should work ok in the latest context / acrobat

texexec examn.tex

or if you like

texexec examn.xml

(which assumes a recent texexec otherwise you need to say --env=ex-tex)

the code that deals with the randomixaiton is in m-examn.tex

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] Controlling figure placement?

2006-05-24 Thread Ehrt, Michael
Hi there,

this is the only thing I could come up with, using manual page breaks and not 
using an area at all:

Before \starttext, do

\setupbackgrounds[page][background=pagegraphics]
\definelayer[pagegraphics][x=0cm,y=0cm,width=\paperwidth,height=\paperheight]
\useexternalfigure[pdf01][01-x3.pdf][scale=1000]


Within the columnset, at the appropriate place do

\page
%if necessary, manual spacing adjustment on the last line of the prev. Page
\setupheader[state=empty]
\setupfooter[state=empty]
\setlayer[pagegraphics][x=0mm, y=0mm]{\externalfigure[pdf01]}
~\page


This is more or less ugly, since I  have to break pages manually and maybe need 
to adjust spacing on the page before the image. But I'm used to it, that's the 
way I did it in LaTeX when I used the multicols package. I just thought there 
must be a more elegant solution within Context.
I did try to place the background in the columnsetarea (which worked), but in 
there never got rid of the headers.

Does anyone know if it's possible? Hans maybe?

Because that would be the one thing I need. If it's not possible I'll just keep 
doing the LaTeX thing in Context, and have the advantage of column spans for 
introduction text as a bonus...


Michael



 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] Im Auftrag von Ehrt, Michael
 Gesendet: Mittwoch, 24. Mai 2006 09:54
 An: mailing list for ConTeXt users
 Betreff: Re: [NTG-context] Controlling figure placement?
 
 Hi again, 
 
  Is there a way that gives more control over figure 
 placement within a
  columnset area? What I'd like to do is:
  
  - have a columnset area that covers a whole page
  - if possible, leave out headers and footers on that page 
 (don't know
  how)
  - place an external figure on that page which is the same 
 size as the
  whole page, 210 by 297mm.
  
  What I tried so far is:
  
  \definecolumnset[test][n=3,distance=15pt]
  \definecolumnsetspan[intro][n=2]
  \definecolumnsetarea[one][fixed][x=1,y=1,nx=3,ny=46,page=3,sta
  te=start]
  \definecolumnsetarea[two][fixed][x=1,y=1,nx=3,ny=46,page=5,sta
  te=start]
  \setupcolumnsetareatext[one][\setups{mypdf}]
  \setupcolumnsetareatext[two][\setups{myjpg}]
  \startsetups[mypdf]\externalfigure[01-x3.pdf]\stopsetups
  \startsetups[myjpg]\externalfigure[01.jpg]\stopsetups
 
 
 I managed to clear headers and footers by using
 
 \setupcolumnsetareatext[one][{\page[no,blank]\setups{mypdf}}]
 \setupcolumnsetareatext[two][{\page[no,blank]\setups{myjpg}}]
 
 But this has the problem that it clears ALL headers and footers on
 subsequent pages. Trying to clear them using
 \setupheader[text][state=empty] here didn't work. What I 
 actually looked
 for was something like
 
 \adaptlayout[3,5][command={\setupheader[text][state=empty]\set
 upfooter[t
 ext][state=empty]}]
 
 But this doesn't exist. Also, changing the layout width is 
 not possible
 with adaptlayout, which might fix the left-right-positioning...
 
 Does anyone know how to do it?
 
 Cheers
 
 Michael
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] tabulation spacing

2006-05-24 Thread Hans Hagen
andrea valle wrote:
 Ah! now I remember.
 Thanks as usual


   
 btw \unknown is a shortcut for $\ldots$
 

 good to know, I use it a lot: is there a place in the docs where to 
 find these kinds of info?
   
not this one probably, but it's used a lot 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] Index sorting for other languages that English

2006-05-24 Thread Richard Gabriel




Thanks Hans, it works with my test file, unless I set up:\setupregister[index][expansion=xml]which i need for correct processing of the XML files.If I simply add this command into the testing TeX file (no XML), the Czech sorting stops to work and all accented characters are placed under "A".Regarding the sorting itself (sort-lan.tex): I found the definiton of the sorting quite strange, let's say, incomplete. It makes no sense to separate ccaron while all other accented letters are placed under the unaccented ones.I'll update the definitions, test it and send it to you.-RichardFrom: Hans Hagen [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Tue, 23 May 2006 17:02:53 +0200Subject: Re: [NTG-context] Index sorting for other languages that EnglishRichard Gabriel wrote:
 Hello Hans,

 after an upgrade I noticed thar the index sorting works even worse 
 than before (tested on Czech, Chinese and Japanese, but probably 
 related to non-ASCII characters in common).

 With TeXExec 5.4.3, all words beginning with national (accented) 
 characters were put into a separate ("symbols") group and placed 
 before "A". This was not good but more or less acceptable.
 With TeXExec 6.2.0, words beginning with accented characters are 
 placed under certain unaccented letter. My colleague found out that 
 these words are sorted according the first unaccented letter. This is 
 unacceptable and unusable.

 We do a "work-around" so we try to avoid indexing words beginning with 
 accented charaters. But it's impossible in many cases.
 I'd like to ask you to improve the index sorting. Could I help or 
 contribute in some way?

 Attached is a testing file, which creates 2 indexes from various Czech 
 words (covering the Czech alphabet). The index should be sorted 
 exactly that way as the terms are written in the file.

actually the nex texexec implementation does czech sorting but it's not enables yet in context itself (was experimental until now) 

- download the latest version (i uploaded a version that enables it) 
- don't forget \mainlanguage[cz] at the top of your document 
- in sort-lan.tex you can see how czech sorting is defined 

(context adds a lot of into to the tui file in order to get sorting done) 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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

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


Re: [NTG-context] Making posters with ConTeXT

2006-05-24 Thread Hans Hagen
Johan Sandblom wrote:
 This is an early version of a poster I have used. It is quite
 non-standard but shows some options for placing things and fonts.
   
take a look at m-streams.tex

when you use streams, you can build your poster from snippets that are actually 
pages, i'e. you can then do most of the tricks that you normally do in the mvl 
(page stream) 

Hans 


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] Making posters with ConTeXT

2006-05-24 Thread Johan Sandblom
No doubt I am being dense, but trying the examples in m-streams.tex
after inserting
\usemodule[streams] invariably yield this error


systems : system commands are enabled
system  : module streams loaded
(./m-streams.tex
system  : module streams (line 314) already loaded
color   : system rgb is global activated
! Undefined control sequence.
l.317 \definestreamlayer
[block]
?


Johan

2006/5/24, Hans Hagen [EMAIL PROTECTED]:
 Johan Sandblom wrote:
  This is an early version of a poster I have used. It is quite
  non-standard but shows some options for placing things and fonts.
 
 take a look at m-streams.tex

 when you use streams, you can build your poster from snippets that are 
 actually pages, i'e. you can then do most of the tricks that you normally do 
 in the mvl (page stream)

 Hans


 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -

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



-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
What is wanted is not the will to believe, but the
will to find out, which is the exact opposite
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Installation Problem

2006-05-24 Thread Neal Lester
At 12:49 AM 5/24/2006, you wrote:


Neal Lester wrote:
  I am trying to verify my installation.
 
  When I try to run texexec against the test file given in the
  installation instructions I don't get a dvi or pdf file.  The output is:

What instructions did you follow, precisely? I see some problems in
your output, but it will be easier to explain using those instructions.

I followed the instructions at:

http://www.pragma-ade.nl/general/manuals/minstall.pdf

First I used the TeX that came with my Linux distribution (RedHat 
Enterprise Linux v4) but that didn't work (perhaps it was too 
old).  Then I installed teTeX ( http://www.tug.org/tetex/ ) which 
came with an old version of context that got in the way.  I removed 
that old version and installed the version from here ( 
http://www.pragma-ade.nl/context/current/cont-tmf.zip ).

Thomas Esser has (apparently just) announced that he will no longer 
be maintaining teTeX.  Which version of TeX do you recommend I install?

Thanks, Neal


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


Re: [NTG-context] Making posters with ConTeXT

2006-05-24 Thread Aditya Mahajan
On Wed, 24 May 2006, Johan Sandblom wrote:

 No doubt I am being dense, but trying the examples in m-streams.tex
 after inserting
 \usemodule[streams] invariably yield this error


 systems : system commands are enabled
 system  : module streams loaded
 (./m-streams.tex
 system  : module streams (line 314) already loaded
 color   : system rgb is global activated
 ! Undefined control sequence.
 l.317 \definestreamlayer
[block]
 ?


 Johan


The following example works fine on my computer (using ConTeXt ver: 
2006.05.17 10:08)

\usemodule[streams]
\starttext
  \definestreamlayer[whatever][width=12cm]

  \startstreamlayer[whatever]
\startitemize[columns,two][after=]
  \item one
  \item two
  \item three
  \item four
\stopitemize
  \stopstreamlayer

  \framed[strut=no,align=normal]{\placestreamlayer[whatever]\obeydepth}

  \starttextstreamlayer[whatever]
\startitemize[columns,two]
  \item one
  \item two
  \item three
  \item four
\stopitemize
  \stoptextstreamlayer

  \framed[strut=no]{\placetextstreamlayer[whatever]}
\stoptext






Aditya

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] t-bib (extra special experimental version), XML and nocite

2006-05-24 Thread Johannes Graumann
Taco Hoekwater wrote:

 \def\nocite[#1]%
{\processcommalist[#1]\addthisref
 \processcommalist[#1]\docitation}
Changing the 'nocite' definition to this did it.

Thanks!

Joh

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


Re: [NTG-context] t-bib and explicitly italizising title parts

2006-05-24 Thread Johannes Graumann
Taco Hoekwater wrote:

@ARTICLE{article-minimal,
 author = {L[eslie] A. Aamport},
 title = {The {\it Gnats\/} and Gnus Document Preparation System},
 journal = {\mbox{G-Animal's} Journal},
 year = 1986,
}
This works indeed - I was missing the '\/' bit. However, now I have trouble
to keep explicit capitalization inside the italisized strech ... Something
like

title = {{\it {S}accharomyces cerevisiae\/}}

now lacks the required upper case for the 'S' - is there any TeX command
analogous to '\it' forcing capitalization?

Thanks, Joh


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


Re: [NTG-context] Installation Problem

2006-05-24 Thread gnwiii
On 5/24/06, Neal Lester [EMAIL PROTECTED] wrote:
 At 12:49 AM 5/24/2006, you wrote:


 Neal Lester wrote:
   I am trying to verify my installation.
  
   When I try to run texexec against the test file given in the
   installation instructions I don't get a dvi or pdf file.  The output is:
 
 What instructions did you follow, precisely? I see some problems in
 your output, but it will be easier to explain using those instructions.

 I followed the instructions at:

 http://www.pragma-ade.nl/general/manuals/minstall.pdf

 First I used the TeX that came with my Linux distribution (RedHat
 Enterprise Linux v4) but that didn't work (perhaps it was too
 old).  Then I installed teTeX ( http://www.tug.org/tetex/ ) which
 came with an old version of context that got in the way.  I removed
 that old version and installed the version from here (
 http://www.pragma-ade.nl/context/current/cont-tmf.zip ).

The cont-tmf.zip archive doesn't (directly) update programs
(texmfstart, texexec, etc.)
Tetex's texexec is a script that runs perl on the result of 'kpsewhich
-format=texmfscripts texexec.pl'.  You need to make sure kpsewhich
finds the new texexec.pl.  You can also try the version I posted
recently that looks for the ruby scripts.

I like to keep context in a separate tree, texmf-cont, so it is easy
to see what files comes from cont-tmf in logs, etc.

 Thomas Esser has (apparently just) announced that he will no longer
 be maintaining teTeX.  Which version of TeX do you recommend I install?

Hans mentioned the minimal context linux distribution.

Red Hat will have to make a decision about TeX.  In the interim, you
may have to do a bit of extra work to stay current.  The nice thing
about teTeX and TeX Live is that they have been designed so they can
be self-contained, with texmf trees and binaries under one top-level
directory so you can add and remove them without the need for a
package manager to keep things sorted.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] problem with \setupitemize

2006-05-24 Thread Peter Münster
Hello,

\setupitemize[packed][margin=3em]
does not work, but
\setupitemize[packed]
\setupitemize[margin=3em]
works.
Is this normal or a bug?`

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Textbackground overlapping

2006-05-24 Thread nico
On Wed, 24 May 2006 01:50:41 +0200, nico [EMAIL PROTECTED]  
wrote:

 On Tue, 23 May 2006 17:15:28 +0200, Hans Hagen [EMAIL PROTECTED] wrote:


 not yet interfaced but public anyway

 \chardef\kindofpagetextareas\plusone

 But I've seen a side effect of this setting. It appears rarely, and I had
 difficulties to reproduce it. So, please find attached the cut-and-pasted
 buggy page to have exactly the same placements.

Here is a simple test case able to reproduce the problem (same behaviour  
with context live). Seems related to some vertical stretching stuff in a  
page.

\chardef\kindofpagetextareas\plusone
\setupcolors[state=start]
\setupwhitespace[medium]

% needed to activate the buggy stuff...
\definetextbackground[listing][background=color]

\starttext

\input tufte\footnote{A footnote}

blah

blah

blah

blah

blah

\section{Section}
\input tufte

blah

blah

\startitemize
\item a
\item a
\item a
\item a
\item a
\item a
\stopitemize

\stoptext

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


Re: [NTG-context] problem with \setupitemize

2006-05-24 Thread nico
On Wed, 24 May 2006 17:53:54 +0200 (CEST), Peter Münster [EMAIL PROTECTED]  
wrote:

 Hello,

 \setupitemize[packed][margin=3em]
 does not work, but
 \setupitemize[packed]
 \setupitemize[margin=3em]
 works.
 Is this normal or a bug?`

I guess it's because that with more than one option group, the first is  
for the kind of item (1, n, etc.), at least as shown in the manual. The  
following works:

\setupitemize[1][packed][margin=3em]

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


Re: [NTG-context] \pagefigure does not increment page number

2006-05-24 Thread Aditya Mahajan
On Tue, 23 May 2006, Berend de Boer wrote:
 Hello All (probably Hans :-) ),

 \pagefigure does increment the page number. It doesn't place a page
 number, I can understand that. But why does it not increment the page
 number? Is that by design?

 I'm using the context release of 27 April 2006. Or should I upgrade?

I do not know anything about pagefigure. However, looking at its code
the following should increment pagenumbers.

\unprotect
\def\startnumpagefigure
   {\dodoubleempty\dostartnumpagefigure}

\def\dostartnumpagefigure[#1][#2]%
   {\bgroup
\getparameters[\??ex][\c!offset=\v!overlay,#2]%
\startTEXpage[\c!offset=\@@exoffset]%
  \incrementnumber[page] % Added
  \externalfigure[#1][#2]\ignorespaces} % so we can put some text 
below the graphic

\def\stopnumpagefigure
   {\stopTEXpage
\egroup}

\def\numpagefigure
   {\dodoubleempty\donumpagefigure}

\def\donumpagefigure[#1][#2]%
   {\dostartnumpagefigure[#1][#2]\stopnumpagefigure}

\protect

\starttext
  \input knuth
  \input knuth
  \input knuth
  \startnumpagefigure[dummy][offset=1cm]
\blank
This is a dummy figure
  \stopnumpagefigure
  \input knuth
\stoptext


HTH,
Aditya

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] 'Dot' after Float label Howto?

2006-05-24 Thread Johannes Graumann
Hello,

My proofreader wants the float labels (Figure 2.5) to end with a dot as
well (as in Figure 2.5.).
Can somebody please point me at how to achieve that?

Thanks, Joh

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


Re: [NTG-context] 'Dot' after Float label Howto?

2006-05-24 Thread nico
On Wed, 24 May 2006 13:26:51 -0700, Johannes Graumann  
[EMAIL PROTECTED] wrote:

 Hello,

 My proofreader wants the float labels (Figure 2.5) to end with a dot as
 well (as in Figure 2.5.).
 Can somebody please point me at how to achieve that?

I thought that stopper would do it, but either I misuse it, or there's a  
bug in there: the dot appears twice!

\setupcaption[figure][stopper=.]

\starttext

\chapter{joke}

\placefigure{What}
{\framed[width=5cm]{Hi}}

\stoptext

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


Re: [NTG-context] Installation Problem

2006-05-24 Thread Neal Lester
At 09:07 AM 5/24/2006, you wrote:
Hans mentioned the minimal context linux distribution.

OK, I deleted everything I did yesterday and started over.  This time 
I (think) I tried the minimal contex distribution.  Things still 
aren't working.  I am on Redhat Enterprise Linux v4.  Thanks again 
for the help.

- Neal

Here is what I did today:

download http://www.pragma-ade.nl/context/install/justtex.zip
download http://www.pragma-ade.nl/context/install/linuxtex.zip
move both files to /usr/local
cd /usr/local
unzip -a justtex.zip
unzip -a linuxtex.zip
Set up environment:

export TEXROOT=/usr/local/tex
export TMP=/var/tmp
export TEXMFMAIN=$TEXROOT/texmf
export TEXMFLOCAL=$TEXROOT/texmf-local
export TEXMFFONTS=$TEXROOT/texmf-fonts
export TEXMFEXTRA=$TEXROOT/texmf-extra
export TEXMFPROJECT=$TEXROOT/texmf-project
export TEXMFOS=$TEXROOT/texmf-linux
export VARTEXMF=$TMP/texmf-var
export TEXARCH=i686 # the results of uname -m
export TEXUNIX=Linux # the results of uname -s
export PATH=$TEXMFOS/bin:$PATH
export HOMETEXMF=$HOME/Library/texmf
export TEXMFCNF=$TEXROOT/texmf/web2c
export TEXMF=$TEXMFMAIN
export TEXMFDBS=$TEXMF
export TEXFORMATS=$TEXMFOS/web2c
export MPMEMS=$TEXFORMATS
export TEXPOOL=$TEXFORMATS
export MPPOOL=$TEXPOOL
export RUBYLIB=$TEXMFLOCAL/scripts/context/ruby:$RUBYLIB
export CTXMINIMAL=yes

create the directory specified by $VARTEXMF
cd $TEXMFOS/bin
chmod +x *
chmod -x xpdfsuite.zip
download http://www.pragma-ade.nl/context/current/cont-tmf.zip
mv cont-tmp.zip to $TEXROOT/texmf
cd $TEXROOT/texmf
unzip -ao cont-tmf.zip
copy texmf/context/config/texexec.rme texexec.ini

texexec --verbose

Output:

TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD

TeXExec | --checkcheck versions
TeXExec | --figures  generate overview of figures
TeXExec | --listing  list of file content
TeXExec | --make make formats
TeXExec | --modules  generate module documentation
TeXExec | --mptexprocess mp file
TeXExec | --mpxtex   process mpx file
TeXExec | --pdfarrange   impose pages (booklets)
TeXExec | --pdfcombine   combine multiple pages
TeXExec | --pdfcopy  copy pages from file(s)
TeXExec | --pdfselectselect pages from file(s)
TeXExec | --pdftrim  trim pages from file(s)
TeXExec | --process  process file
TeXExec |
TeXExec | --help --all   shows all switches

texexec --make en de nl

Output:

TeXExec | using search method 'kpsefast'
TeXExec | updating file database
sed: -e expression #1, char 3: unterminated `s' command
sed: -e expression #1, char 3: unterminated `s' command
mktexlsr: /usr/local/tex/texmf/ls-R lacks magic string. Skipping...
mktexlsr: Done.
TeXExec | using tex engine pdfetex
TeXExec | using tex format path /usr/local/tex/texmf-linux/web2c/pdfetex
TeXExec | generating tex format cont-en
This is pdfeTeXk, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) (INITEX)
  %-line parsing enabled.
  (/usr/local/tex/texmf/web2c/natural.tcx)
entering extended mode
! I can't find file `cont-en'.
* *cont-en

Please type another input file name:

I'm stuck because I can't find a file 'cont-en' either. 


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


[NTG-context] making posters with ContexT

2006-05-24 Thread batela
Hi

I am trying to making a scientifique poster in Context. I need some 
suggestions,
foreground an example, to start. Somebody has a nice example to share?
What is the correct scales for the fonts?

Have a nice day/night

Thanks to all

Jorge

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


Re: [NTG-context] making posters with ContexT

2006-05-24 Thread David Antos
On Wed, May 24, 2006 at 10:55:58PM +0100, batela wrote:
 I am trying to making a scientifique poster in Context. I need some 
 suggestions,
 foreground an example, to start. Somebody has a nice example to share?
 What is the correct scales for the fonts?

Hi,

I always start tasks like that by setting the paper size and switching
\showframe ;). About the font size: the poster should be readable from 1.5
meter distance. It's good to start from at least 24 pt. You surely realise
that you have to be extremely concise in your texts, so you may end up at
something like 21 pt (which is suboptimal but acceptable).

Attached you find an example (figures not included). Feel free to modify
it, share and enjoy.

 Jorge

BTW, we'd appreciate if you used your real name in the From: header.

Have a nice towel day,
D.A.

-- 
Science is what happens when preconception meets verification.
% vim: set ft=context syn=tex:
% This is FPL 2003 poster
% $Id: fpl2003-poster.tex,v 1.6 2003/08/26 11:36:49 antos Exp $

% General setup

\setupoutput[pdftex]
\setuppapersize[A1][A1]
\mainlanguage[en]
\setupcolors[state=start]
\setuppagenumbering[location=]

% Layout, backgrounds, graphical elements
\setuplayout
  [grid=yes,
   backspace=4cm,
   width=middle,
   topspace=4cm,
   header=0cm,
   footer=1cm,
   footerdistance=23mm,
   bottom=0pt,
   bottomdistance=0pt,
   height=0.94\paperheight]

\setupbackgrounds
  [text]
  [frame=on,
   rulethickness=2mm,
   frameoffset=2cm,
   framecorner=round,
   frameradius=2cm,
   framecolor=darkblue]

\setupthinrules
  [rulethickness=2mm,
   color=darkblue]

% Other style settings
\setupwhitespace[big]

\setupbodyfont[sans,21pt]

\setupitemize
  [each]
  [packed,joinedup]

\setuphead
  [chapter]
  [number=no,
   style=\tfa\bf,
   page=no,
   after=,
   color=darkblue]

\widowpenalty=1
\clubpenalty=1

\setupfootertexts[\hfill\x Typeset with \ConTeXt\quad\quad
Designed by David Anto\v s, 2003]

%\showframe
%\showgrid

%

\starttext

\startalignment[middle]
\startlinecorrection
{\tfd\bf Project of IPv6 Router with FPGA Hardware Accelerator}
\stoplinecorrection

\startcolumns[n=3]

{\bf Ji\v r\'{\i} Novotn\'y}\crlf
Institute of Computer Science\crlf
Masaryk University Brno\crlf
Botanick\'a~68a, Brno 602\thinspace00\crlf
Czech Republic\crlf
[EMAIL PROTECTED]
\column

{\bf Otto Fu\v c\'{\i}k}\crlf
Faculty of Information Technology\crlf
Brno University of Technology\crlf
Bo\v{z}et\v{e}chova~2, Brno 612\thinspace66\crlf
Czech Republic\crlf
[EMAIL PROTECTED]
\column

{\bf David Anto\v{s}}\crlf
Faculty of Informatics\crlf
Masaryk University Brno\crlf
Botanick\'a~68a, Brno 602\thinspace00\crlf
Czech Republic\crlf 
[EMAIL PROTECTED]

\stopcolumns

\stopalignment

% Logos and rule

\noindent
\thinrule
\kern0.03\textwidth
\lower0.039\textwidth\hbox{\externalfigure[cesnet-logo][width=0.16\textwidth]}
\kern0.03\textwidth
\thinrule
\kern0.03\textwidth
\lower0.01\textwidth\hbox{\externalfigure[liberouter][width=0.2\textwidth]}
\kern0.03\textwidth
\thinrule

% Text itself starts here

\startcolumns[n=2]

\chapter{Introduction}

Personal Computer (PC) as a router is
\startitemize
\item Reliable and highly functional
\item Comparable to middle-class routers (e.g., CISCO~7500)
\stopitemize
But\dots
\startitemize
\item Configurable with difficulties (via \type{/etc} files)
\item Limited mainly by PCI system bus (up to 2~Gbps with 64bit/66MHz bus)
\stopitemize

The goal of the \externalfigure[liberouter][height=0.5\baselineskip]{}
project: IPv6 router solving
those limitations. How?
\startitemize
\item Hardware accelerator {\em Combo6}
\item XML based configuration system {\em Netopeer}
\stopitemize

\chapter{Router Architecture}

Combo6 is a PCI card containing FPGA, memories (SSRAMs and DRAM), expansion
connectors, and supporting logic. Network interfaces are mounted on an
expansion daughter card for interfaces to be changed easily.

\startlinecorrection
\midaligned{\externalfigure[combo6][height=12\baselineskip]}
\stoplinecorrection

Design rules (just pure instance of {\em hardware/software codesign}
principles):
\startitemize
\item Packet switching and filtering will be performed by Combo6
\item PC can do the rest; routing path calculations, configuration,
statistics computation
\item Communication through PCI is limited to configuration, routing table
updates, statistics collection, and exception handling
\item Usual Operating System tools can be used, like \type{ifconfig} and
routing daemons
\stopitemize

\chapter{Packet Processing in Hardware}

Key idea: Packet processing in FPGA is done by a chain of dedicated
processors with simple, specialized instruction sets designed for their
particular purposes. We call them {\em nanoprocessors}---they are
interpreted by FPGA's microcode. Instruction sets are \quotation{between
FSMs and RISC processors.}

\startitemize
\item Changing nanoprograms in runtime is possible (with no need of VHDL