Re: [NTG-context] Columns (text alignment)

2005-12-26 Thread Peter Rolf
Fabio Mancinelli wrote:
> Peter Rolf wrote:
> 
>> using \blank[line] (and also the derived halfline) inserts *no* glue
>> (see definition in context manual). use small,medium,big or any
>> fraction/combination of these instead.
>>
> 
> I did several (simpler) tests:
> 
> \starttext
> \startcolumns
> \showmakeup
> \dorecurse{5}{
>   \section{Section}
>   \input text
> }
> \stopcolumns
> \stoptext
> 
> Line alignment is totally wrong. Putting "sections" while having columns
> leads to wrong alinged lines.
> 
> I tried several combinations of the following:
> \setuplayou[grid=yes], \setupcolumns[blank={line,fixed}], various align
> assignments... The result is always the same.
> 
> I have read the manual where it is stated that "When a switch in
> fontsize is desirable you should do so before starting the column
> mechanism." (page 65). I don't see how this statement is applicable to
> \section(s)
> 
> Thanks,
> Fabio
>
Hi Fabio,

sorry, my first advice was bad. In the meantime I have played around
with columns and everything is working as expected. There are several
problems in your source. The first is, that you have to use

\setuplayout[grid=yes]

Read about grid snapping of headers in the details.pdf manual and look
into the columns environment (defined at the beginning of the columns
manual).

You can then adjust the headers (2 lines high) vertically by using the
'grid' parameter.

The problem with the graphic placing results from using \startcolumns
instead of \startcolumnset (see example in columns.pdf).

I attach my working example.

Greetings, Peter

> P.S.: text.tex is a simple text paragraph without any control sequence
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 
> 

\setupoutput[pdftex]

%\usetypescript[adobekb][\defaultencoding]
%\usetypescript[sans]
%\setupbodyfont[sans,10pt]
\loadmapfile [texnansi-bitstrea-zapfhumanist.map]
\usetypescriptfile [type-bitstrea-zapfhumanist]
\usetypescript [ZapfHumanist]
\setupbodyfont [ZapfHumanist,11pt]%



\definefont [SectionHeaderFont] [ZapfHumanist-Bold at 14pt]
\definefont [SubSectionHeaderFont] [ZapfHumanist-Bold at 12pt]
\definefont [SubSubSectionHeaderFont] [ZapfHumanist-Bold at 10pt]


\setuplayout[
  width=middle,
  height=middle,
  grid=yes,
  lines=50,
  topspace=1cm,
  bottomspace=1cm,
  header=1cm,
  footer=1cm,
  backspace=1cm,
]

\setuptolerance[verytolerant,stretch]


\setuphead[section][
  style=\SectionHeaderFont,
  grid={line,4pt},
%  before=,
%  after=,
]

\setuphead[subsection][
  style=\SubSectionHeaderFont,
  grid={line,-4pt},
  before=\blank,
  after=,
]

\def\runin#1#2{#2.}
\setuphead[subsubsection][
  style=\SubSubSectionHeaderFont,
%  before=\blank,
  command=\runin,
  alternative=text,
]


\setupheadertexts[{\sl XNemesis.org Research and Development}][{\sl The vault}]

\setuppagenumbering[location=bottom]


\useexternalfigure[test][ringbearer][frame=true] % resolution 96ppi, 256colors



\definecolumnset[threecolumns][n=3]

\definecolumnsetspan[spantwo][n=2]
\definecolumnsetspan[spanthree][n=3]

\definecolumnsethsize{threecolumns}{1}{1}\One
\definecolumnsethsize{threecolumns}{1}{2}\Two
\definecolumnsethsize{threecolumns}{1}{3}\Three


%%
\starttext

\showstruts
\showgrid
\showgridboxes


%\startcolumns
\startcolumnset[threecolumns]

%
\startcolumnsetspan[spantwo]

\bgroup
\switchtobodyfont[32pt]
{\bf Title}
\switchtobodyfont[20pt]
{\par\noindent\sl Subtitle}
\blank[20pt, flexible]
\egroup

\stopcolumnsetspan
%


\bgroup
\blank
\setupindenting[none]
\switchtobodyfont[9pt]
{\bf Abstract}\par
AbstractHere
\ignorespaces
\egroup

\bgroup
\blank
\setupindenting[none]
\switchtobodyfont[9pt]
{\bf Keywords:}
Keywords here
\ignorespaces
\egroup




\dorecurse{4}{
\section{Section}
\dorecurse{1}{
\input tufte

\startitemize[packed]
\item A
\item B
\item C
\stopitemize
}

\subsection{Subsection}
\dorecurse{1}{\input tufte\relax}

\placefigure[btlr]{Simple figure}{\externalfigure[test][width=\Two]}


\subsubsection{Subsubsection}
\dorecurse{1}{\input tufte}
}

\blank[3*line, flexible]

\bgroup
\switchtobodyfont[9pt]
{\bf Author}\par
Author
\ignorespaces
\egroup

\stopcolumnset


\stoptext
%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End: 
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] float over both text and margin

2005-12-12 Thread Vit Zyka

Hans Hagen wrote:

Vit Zyka wrote:


Hi.

1) I am unsuccessfully solving the problem of making float spanning 
both text and margin. More over, it is inside columnset... Example 
follows. Is there some solution?


2) As a side effect I discover that in the following example the float 
is over the text (so some text is disappeared).


don't use \placefloat.

\definefloat
 [pagefigure]
 [figure]
\setupfloat
 [pagefigure]
 [default={page,none},
  location=inner]


OK, I thought \placefloat[page] is defined like this, but now I see this 
is more flexible.


Thank you for your patch it behaves better but still the float is over 
the text, see page 2 in the example. I also do not see the influence of 
location argument.


Vit

-
\showframe
\setupcolors[state=start]
\setuplayout[margin=0pt,rightmargin=1.5cm,width=13cm]
\setuppagenumbering[alternative=doublesided]

\definefloat
 [pagefigure]
 [figure]
\setupfloat
 [pagefigure]
 [default={page,none},
  location=outer]

\unprotect
\def\dogetfloat{
  \ifsomefloatwaiting
\global\setbox\floatlist\vbox{%
   \unvbox\floatlist
   \global\setbox\globalscratchbox\lastbox
}%
\ifcenterfloatbox
  \ifdim\wd\globalscratchbox<\hsize
\setbox\floatbox\hbox to \hsize{\hss\box\globalscratchbox\hss}%
  \else
\setbox\floatbox\box\globalscratchbox % local !
\wd\floatbox\makeupwidth
  \fi
\else
  \setbox\floatbox\box\globalscratchbox % local !
\fi
\global\advance\savednoffloats \minusone
\ifcase\savednoffloats
  \global\somefloatwaitingfalse
\fi
  \else
\global\savednoffloats\zerocount
[EMAIL PROTECTED]
  \fi}
\protect

\starttext
\startcolumnset
  \dorecurse{2}{\input knuth \endgraf\blank}
  \placepagefigure{none}
{\framed

[width=\dimexpr\makeupwidth+\rightmarginwidth+\rightmargindistance\relax,height=\textheight]
   {Here I would like to be a float over both text and margin. How?}
}
  \dorecurse{10}{\input knuth \endgraf\blank}
\stopcolumnset

\stoptext
-



 \dorecurse{3}{\input knuth \endgraf\blank}
 \placepagefigure
 {}
{...}

etc

maybe the next helps, but i hesitate to include this patch too fast

def\dogetfloat
 {\ifsomefloatwaiting
\global\setbox\floatlist\vbox
  {\unvbox\floatlist
   \global\setbox\globalscratchbox\lastbox}%
\ifcenterfloatbox
  \ifdim\wd\globalscratchbox<\hsize
\setbox\floatbox\hbox to \hsize{\hss\box\globalscratchbox\hss}%
  \else
\setbox\floatbox\box\globalscratchbox % local !
\wd\floatbox\makeupwidth
  \fi
\else
  \setbox\floatbox\box\globalscratchbox % local !
\fi
\global\advance\savednoffloats \minusone
\ifcase\savednoffloats
  \global\somefloatwaitingfalse
\fi
  \else
\global\savednoffloats\zerocount
[EMAIL PROTECTED]
  \fi}

Hans
___
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] float over both text and margin

2005-12-12 Thread Hans Hagen

Vit Zyka wrote:


Hi.

1) I am unsuccessfully solving the problem of making float spanning 
both text and margin. More over, it is inside columnset... Example 
follows. Is there some solution?

-
\showframe
\setupcolors[state=start]
\setuplayout[margin=0pt,rightmargin=1.5cm,width=middle]

\starttext
\startcolumnset
  \dorecurse{2}{\input knuth \endgraf\blank}
  \placefloat[page]{none}
{\framed
 [width=\dimexpr\makeupwidth+\rightmarginwidth+
\rightmargindistance\relax,
  height=\textheight]
 {Here I would like to be a float over both text and margin. How?}
}
  \dorecurse{10}{\input knuth \endgraf\blank}
\stopcolumnset

\stoptext
-

2) As a side effect I discover that in the following example the float 
is over the text (so some text is disappeared).

-
\showframe
\setupcolors[state=start]
\setuplayout[margin=0pt,rightmargin=1.5cm,width=middle]

\starttext
\startcolumnset
  \dorecurse{2}{\input knuth \endgraf}
  \placefloat[page]{none}
{\framed
   [width=\makeupwidth,height=\textheight,background=screen]
   {Here I would like to be a float over both text and margin. How?}
}
  \dorecurse{10}{\input knuth \endgraf}
\stopcolumnset

\stoptext
---


don't use \placefloat.

\definefloat
 [pagefigure]
 [figure]
\setupfloat
 [pagefigure]
 [default={page,none},
  location=inner]

 \dorecurse{3}{\input knuth \endgraf\blank}
 \placepagefigure
 {}
{...}

etc

maybe the next helps, but i hesitate to include this patch too fast

def\dogetfloat
 {\ifsomefloatwaiting
\global\setbox\floatlist\vbox
  {\unvbox\floatlist
   \global\setbox\globalscratchbox\lastbox}%
\ifcenterfloatbox
  \ifdim\wd\globalscratchbox<\hsize
\setbox\floatbox\hbox to \hsize{\hss\box\globalscratchbox\hss}%
  \else
\setbox\floatbox\box\globalscratchbox % local !
\wd\floatbox\makeupwidth
  \fi
\else
  \setbox\floatbox\box\globalscratchbox % local !
\fi
\global\advance\savednoffloats \minusone
\ifcase\savednoffloats
  \global\somefloatwaitingfalse
\fi
  \else
\global\savednoffloats\zerocount
[EMAIL PROTECTED]
  \fi}

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


[NTG-context] float over both text and margin

2005-12-08 Thread Vit Zyka

Hi.

1) I am unsuccessfully solving the problem of making float spanning both 
text and margin. More over, it is inside columnset... Example follows. 
Is there some solution?

-
\showframe
\setupcolors[state=start]
\setuplayout[margin=0pt,rightmargin=1.5cm,width=middle]

\starttext
\startcolumnset
  \dorecurse{2}{\input knuth \endgraf\blank}
  \placefloat[page]{none}
{\framed
 [width=\dimexpr\makeupwidth+\rightmarginwidth+
\rightmargindistance\relax,
  height=\textheight]
 {Here I would like to be a float over both text and margin. How?}
}
  \dorecurse{10}{\input knuth \endgraf\blank}
\stopcolumnset

\stoptext
-

2) As a side effect I discover that in the following example the float 
is over the text (so some text is disappeared).

-
\showframe
\setupcolors[state=start]
\setuplayout[margin=0pt,rightmargin=1.5cm,width=middle]

\starttext
\startcolumnset
  \dorecurse{2}{\input knuth \endgraf}
  \placefloat[page]{none}
{\framed
   [width=\makeupwidth,height=\textheight,background=screen]
   {Here I would like to be a float over both text and margin. How?}
}
  \dorecurse{10}{\input knuth \endgraf}
\stopcolumnset

\stoptext
---

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


Re: [NTG-context] columnset & layers

2005-12-06 Thread Vit Zyka

Hans Hagen wrote:

Vit Zyka wrote:


Hello,

there is some collision between columnset and layer. See following 
example:


-
\newdimen\tgrX \newdimen\tgrY
\tgrX=3cm  \tgrY=2cm

\starttext
\startcolumnset
  \definelayer[tgr-cow][position=no,corner=top]
  \setlayer[tgr-cow][x=.0\tgrX,y=.0\tgrY,location=middle]{O}%
  \framed
[width=fit,height=fit,offset=none,
 background={foreground,tgr-cow},frame=off]
{\externalfigure[cow][width=\tgrX,height=\tgrY]}%
\stopcolumnset
\stoptext
---

I got the error:

! Bad character code (361).
 \@@layerboxtgr-cow

I am a bit puzzled by strange error message. If the columnset is 
commented, the code is proceeded as expected.



define the layer outside the columnset; it's probably a grouping problem

Hans


OK, it works and is sufficient for me since I know a number of needed 
layers.


But generally it is not a clean solution. Can be solved counting number 
of layers in one pass and defining in the second, but... Hans, do you 
think is the grouping problem doable? If yes I will put the note to the 
collector.


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


Re: [NTG-context] columnset & layers

2005-12-06 Thread Hans Hagen

Vit Zyka wrote:


Hello,

there is some collision between columnset and layer. See following 
example:


-
\newdimen\tgrX \newdimen\tgrY
\tgrX=3cm  \tgrY=2cm

\starttext
\startcolumnset
  \definelayer[tgr-cow][position=no,corner=top]
  \setlayer[tgr-cow][x=.0\tgrX,y=.0\tgrY,location=middle]{O}%
  \framed
[width=fit,height=fit,offset=none,
 background={foreground,tgr-cow},frame=off]
{\externalfigure[cow][width=\tgrX,height=\tgrY]}%
\stopcolumnset
\stoptext
---

I got the error:

! Bad character code (361).
 \@@layerboxtgr-cow

I am a bit puzzled by strange error message. If the columnset is 
commented, the code is proceeded as expected.


define the layer outside the columnset; it's probably a grouping problem

Hans

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


[NTG-context] columnset & layers

2005-12-05 Thread Vit Zyka

Hello,

there is some collision between columnset and layer. See following example:

-
\newdimen\tgrX \newdimen\tgrY
\tgrX=3cm  \tgrY=2cm

\starttext
\startcolumnset
  \definelayer[tgr-cow][position=no,corner=top]
  \setlayer[tgr-cow][x=.0\tgrX,y=.0\tgrY,location=middle]{O}%
  \framed
[width=fit,height=fit,offset=none,
 background={foreground,tgr-cow},frame=off]
{\externalfigure[cow][width=\tgrX,height=\tgrY]}%
\stopcolumnset
\stoptext
---

I got the error:

! Bad character code (361).
 \@@layerboxtgr-cow

I am a bit puzzled by strange error message. If the columnset is 
commented, the code is proceeded as expected.


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


[NTG-context] marking in columnset

2005-11-24 Thread Vit Zyka

Dear ConTeXters,

several kind of marking variants (first, last, both, ...) works 
perfectly in standard one-column layout:



\definemarking[M]

\startsetups S
  default=(\getmarking[M])~
  first=(\getmarking[M][first])~
  last=(\getmarking[M][last])~
  previous=(\getmarking[M][previous])~
  both=(\getmarking[M][both])~
  all=(\getmarking[M][all])~
  current=(\getmarking[M][current])
\stopsetups

\setupheadertexts[text]
  [\setups{S}][]
  [\setups{S}][]
\setuppagenumbering[location=footer]

\starttext

\startbuffer
  \section{Knuth}
  \marking[M]{k1}\marking[M]{k2}
  \input knuth
  \section{Zapf}
  \marking[M]{z}
  \input zapf
\stopbuffer

\dorecurse{10}{\getbuffer}

\stoptext
---

If I try the same example in columnset layout, only last variant works 
as expected:

---
\definemarking[M]

\startsetups S
  default=(\getmarking[M])~
  first=(\getmarking[M][first])~
  last=(\getmarking[M][last])~
  previous=(\getmarking[M][previous])~
  both=(\getmarking[M][both])~
  all=(\getmarking[M][all])~
  current=(\getmarking[M][current])
\stopsetups

\setupheadertexts[text]
  [\setups{S}][]
  [\setups{S}][]
\setuppagenumbering[location=none]

\definecolumnset[C][n=3]

\starttext

\startbuffer
  \section{Knuth}
  \marking[M]{k1}\marking[M]{k2}
  \input knuth
  \section{Zapf}
  \marking[M]{z}
  \input zapf
\stopbuffer

\startcolumnset[C]
\dorecurse{10}{\getbuffer}
\stopcolumnset

\stoptext
---

(Focus on page 1 and 4)

Is there any idea how to fix this?
Vit
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] columnset balancing

2005-06-27 Thread Hans Hagen

Vit Zyka wrote:

Hans Hagen wrote:
 > Vit Zyka wrote
 >
 >> - each chapter head spans two columns
 >> (it assumes stop columns, balancing, continuing on the same page
 >> without pagebreak, put chapter head, start columnset on the rest of
 >> the page)
 >
 >
 > you can do that with 'manual balancing'

Thank you, Hans, for your reply.

I know that with such a complex layout manual adjustment is necessary.
I know about manual balancing. But how to avoid page break after 
columnset closing?



It is feasible or I will have to abjured this idea?



the problem with automated balancing in this model is that it's near 
to impossible (never say never with tex, but its definitely messsy 
code) to combine this with the advanced float and area placement 
features; so, your flow will be:


- typeset article
- determine balance requirements
- setup balancing
- retypeset article
- continue on same page



That is the point. How?

% output=pdftex interface=en

\setuplayout[grid=yes] \showgrid \showstruts % gaat nogal fout zonder grid

\setuptolerance[verytolerant]

\definecolumnset [test-1] [n=2]
\definecolumnset [test-2] [n=3]

\starttext

\startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset
\startcolumnset [test-2] \dorecurse {2}{\input ward  \par} \stopcolumnset

\page

\setupcolumnset [test-1] [balance=yes]
\setupcolumnset [test-2] [balance=top]

\setupcolumnsetlines[test-1][1][1] [8]
\setupcolumnsetlines[test-1][1][2][10]

\startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset
\startcolumnset [test-2] \dorecurse {2}{\input ward  \par} \stopcolumnset

\page

\setupcolumnsetlines[test-1][1][1] [8]
\setupcolumnsetlines[test-1][1][2][10]

\setupcolumnsetlines[test-2][1][1][19]
\setupcolumnsetlines[test-2][1][2][18]
\setupcolumnsetlines[test-2][1][3][19]

\startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset
\startcolumnset [test-2] \dorecurse {2}{\input ward  \par} \stopcolumnset

\page

\setupcolumnsetlines[test-1][1][1] [8]
\setupcolumnsetlines[test-1][1][2][10]

\setupcolumnsetlines[test-2][1][1][0]
\setupcolumnsetlines[test-2][1][2][-2]
\setupcolumnsetlines[test-2][1][3][0]

\startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset
\startcolumnset [test-2] \dorecurse {6}{\input ward  \par} \stopcolumnset

\page

\setupcolumnsetlines[test-1][1][1] [8]
\setupcolumnsetlines[test-1][1][2][10]

\setupcolumnsetstart[test-2][1][1][20]
\setupcolumnsetstart[test-2][1][2][20]
\setupcolumnsetstart[test-2][1][3][20]

\startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset
\startcolumnset [test-2] \dorecurse {2}{\input ward  \par} \stopcolumnset

\page

\setupcolumnsetlines[test-1][1][1] [8]
\setupcolumnsetlines[test-1][1][2][10]

\setupcolumnsetlines[test-2][1][1][-20]
\setupcolumnsetlines[test-2][1][2][-20]
\setupcolumnsetlines[test-2][1][3][-20]

\startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset
\startcolumnset [test-2] \dorecurse {2}{\input ward  \par} \stopcolumnset

\stoptext



--

-
  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] columnset balancing

2005-06-26 Thread Vit Zyka

Hello Hans,

appologize my boring again with the same question about columnset 
balancing. But I would like to know what is the current stage of this 
feature. Seeing the code it seems to me some work in this direction was 
done but due to very complex and tricky stuff I am not able to 
recognize, how far from the goal it is.


Actually, what is my goal design?
+ two column layout
+ float spanning one or two columns
(both perfectly fullfilled by columnsets)
- each chapter head spans two columns
(it assumes stop columns, balancing, continuing on the same page without 
pagebreak, put chapter head, start columnset on the rest of the page)


It is feasible or I will have to abjured this idea?

Thank you for your responce in advance.
Vit

 Original Message 
Subject: columnset balancing, footnoterule in columnset, Re: 
[NTG-context] columnset layout distortion

Date: Tue, 21 Jun 2005 11:29:31 +0200
From: Vit Zyka <[EMAIL PROTECTED]>
To: mailing list for ConTeXt users 
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>

Hans Hagen wrote:

Vit Zyka wrote:
margin). I noticed weird behaviour. It is expressed by vertical shift 
of columns, please see the page 2 of

  http://typokvitek.com/tmp/layoutdistort.pdf
  source: http://typokvitek.com/tmp/layoutdistort.tex

It seems that the problem is caused by switch to \ss font family 
continueing to a place of the page break. Any explanation/suggestion?


i made an \restoreinterlinespace mechanism so that you can do the 


Hans it is great! I have two next questions:

1) Am I missing something or columnsets do not provide balancing?

\definecolumnset[two]  [n=2,balance=yes]
\starttext
\startcolumnset[two]
   \dorecurse{6}{\input knuth \endgraf}
\stopcolumnset
\input zapf \endgraf
\stoptext
-

2) Footnotes with settings \setupfootnotes[location=columns,rule=on]
between \columnset do not draw rule. I discover it is due to missing
\vbox. So this solve this problem for me, but it is not elegant and I do
not know if it can caused some side effect:
---
\def\MyBeforeFootnote{\vbox\bgroup\blank}
\def\MyAfterFootnote{\egroup}
\setupfootnotes[
  location=columns,rule=on,rulethickness=.4pt,
  before=\MyBeforeFootnote,after=\MyAfterFootnote,
]
\unprotect
\def\normalnoterule
  {\endgraf %% <--- add
   \ifvmode
 \color
   [\noteparameter\c!rulecolor]
   {\vrule
  \!!width .2\hsize
  \!!height\noteparameter\c!rulethickness
  \!!depth \zeropoint}%
 \kern\strutdepth
   \fi
   \endgraf %% <--- add
}
\protect

\definecolumnset[col][n=2]

\starttext
  \startcolumnset[col]
\input knuth
\footnote{Donald E. Knuth}
  \stopcolumnset
\stoptext


vit

===
Ing. Vít Zýka, Ph.D. TYPOkvítek

database publishing  databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189 www: http://typokvitek.com
===

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


columnset balancing, footnoterule in columnset, Re: [NTG-context] columnset layout distortion

2005-06-21 Thread Vit Zyka

Hans Hagen wrote:

Vit Zyka wrote:
margin). I noticed weird behaviour. It is expressed by vertical shift 
of columns, please see the page 2 of

  http://typokvitek.com/tmp/layoutdistort.pdf
  source: http://typokvitek.com/tmp/layoutdistort.tex

It seems that the problem is caused by switch to \ss font family 
continueing to a place of the page break. Any explanation/suggestion?


i made an \restoreinterlinespace mechanism so that you can do the 


Hans it is great! I have two next questions:

1) Am I missing something or columnsets do not provide balancing?

\definecolumnset[two]  [n=2,balance=yes]
\starttext
\startcolumnset[two]
   \dorecurse{6}{\input knuth \endgraf}
\stopcolumnset
\input zapf \endgraf
\stoptext
-

2) Footnotes with settings \setupfootnotes[location=columns,rule=on]
between \columnset do not draw rule. I discover it is due to missing 
\vbox. So this solve this problem for me, but it is not elegant and I do 
not know if it can caused some side effect:

---
\def\MyBeforeFootnote{\vbox\bgroup\blank}
\def\MyAfterFootnote{\egroup}
\setupfootnotes[
  location=columns,rule=on,rulethickness=.4pt,
  before=\MyBeforeFootnote,after=\MyAfterFootnote,
]
\unprotect
\def\normalnoterule
  {\endgraf %% <--- add
   \ifvmode
 \color
   [\noteparameter\c!rulecolor]
   {\vrule
  \!!width .2\hsize
  \!!height\noteparameter\c!rulethickness
  \!!depth \zeropoint}%
 \kern\strutdepth
   \fi
   \endgraf %% <--- add
}
\protect

\definecolumnset[col][n=2]

\starttext
  \startcolumnset[col]
\input knuth
\footnote{Donald E. Knuth}
  \stopcolumnset
\stoptext


vit

--
===
Ing. Vít Zýka, Ph.D. TYPOkvítek

database publishing  databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189 www: http://typokvitek.com
===

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


Re: [NTG-context] columnset layout distortion

2005-06-20 Thread Hans Hagen

Vit Zyka wrote:

Hallo,

I am working on our 40-anniversary scout group bulletin with a complex 
layout (twocolumn, footnotes, photos, pictures, flowing text in margin). 
I noticed weird behaviour. It is expressed by vertical shift of columns, 
please see the page 2 of

  http://typokvitek.com/tmp/layoutdistort.pdf
  source: http://typokvitek.com/tmp/layoutdistort.tex

It seems that the problem is caused by switch to \ss font family 
continueing to a place of the page break. Any explanation/suggestion?


i made an \restoreinterlinespace mechanism so that you can do the following:

\setuplayout[height=middle,width=middle,grid=yes]

\starttext
  \startcolumnset
\dorecurse{10}
  {\input thuan \endgraf
   \bgroup
   \ss\restoreinterlinespace
   \dorecurse{3}{\input hawking \endgraf}
   \egroup
   \input bryson \endgraf}
  \stopcolumnset
\stoptext

(tricky stuff)

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


[NTG-context] columnset layout distortion

2005-06-20 Thread Vit Zyka

Hallo,

I am working on our 40-anniversary scout group bulletin with a complex 
layout (twocolumn, footnotes, photos, pictures, flowing text in margin). 
I noticed weird behaviour. It is expressed by vertical shift of columns, 
please see the page 2 of

  http://typokvitek.com/tmp/layoutdistort.pdf
  source: http://typokvitek.com/tmp/layoutdistort.tex

It seems that the problem is caused by switch to \ss font family 
continueing to a place of the page break. Any explanation/suggestion?


Thanks
vit

===
\setuplayout[
  height=fit,topspace=10mm,
  width=fit,backspace=20mm,
  margin=0pt,columndistance=5mm,
  lines=40,grid=yes,
]

\showframe

\startbuffer[A]
  \input thuan

%  {\input hawking }%
  {\ss\input hawking }%

  \input bryson
\stopbuffer

\definecolumnset[col][n=2]

\starttext
  \startcolumnset[col]
\dorecurse{10}{\getbuffer[A]}%
  \stopcolumnset
\stoptext
=
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] hyphenation within columnsets with background

2005-04-06 Thread [EMAIL PROTECTED]
Hi, 

I am preparing a rather large text, completely set in 3 columns, which 
has lots of text with grey backgrounds.

During the preparation of this text, some questions came up :

1 - At first I put a grey background to my texts defining the 
following macros (they are used within columnsets): 

=
%start setting the text with a light grey background
\def\startlightgreybox{\setupframedtexts[frame=off, 
background=color, 
backgroundcolor=lightgrey, 
width=broad]
  \startframedtext
  {\bf Some frame title}}

%stop setting the text with a light grey background
\def\stoplightgreybox{\stopframedtext}
=


After a while, and to see what difference there was between both, I 
redefined both macros as : 

===
=
%start setting the text with a light grey background
\def\startlightgreybox{\setupbackground[background=color, 
backgroundcolor=lightgrey]
  \startbackground
  {\bf Some frame title}}

%stop setting the text with a light grey background
\def\stoplightgreybox{\stopbackground}  
===
==


And to my surprise, I saw, that hyphenation works clearly better when 
my backgrounds are defined with the second set of macros, which is of 
course good news, especially when using 3 columns, but : is there an 
explanation for this behaviour ?



2 - Another problem I have with those backgrounds is the following : 
they seem to work well when the text spreads over several 
columns/pages, as long as I don't force a 'next column' in the text.  
The following piece of context causes a 'TeX capacity exceeded' error:


\setupcolors[state=start]
\definecolumnset[driekol][n=3]
\setupbackground[background=color, backgroundcolor=gray]
\starttext
\startcolumnset[driekol]
\startbackground
this is the text I would like to have with a grey background
\column
and with a possibility to split columns ``manually'' when necessary
\stopbackground
\stopcolumnset
\stoptext

In the rare cases where I want to force a jump to the next column, I 
replace the \column command with:

\stopbackground
\column
\startbackground

Is this the only way to force column jumps when using backgrounds ?


Thanks,

Geert


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


Re: [NTG-context] Switching fonts (or font size) in columnsets

2005-04-03 Thread h h extern
Gilles Pérez-Lambert wrote:
Hello,
With the example attached at the end of the mail (and that can be try on http://live.contextgarden.net), the page on which the font change occurs (be it the size or a new font) is moved up and the page is shorter... Is there a way to say that some text (here the items) are not to be aligned on the grid because they are smaller (or bigger)? 

Thanks!
Gilles.
% Example:
\showgrid
\setuplayout[grid=yes]
\setupitemize[before={\switchtobodyfont[small]}]
\definecolumnset[ex][n=2]
\starttext
\startcolumnset[ex]
\dorecurse{4}{\input knuth\relax\placefigure{}{}}
\startitemize[n,packed,intro]
\item Un
\dorecurse{100}{\item Um}
\stopitemize
\stopcolumnset
\stoptext
no body font switching in column sets (yet)
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


[NTG-context] Switching fonts (or font size) in columnsets

2005-04-03 Thread Gilles Pérez-Lambert
Hello,

With the example attached at the end of the mail (and that can be try on 
http://live.contextgarden.net), the page on which the font change occurs (be it 
the size or a new font) is moved up and the page is shorter... Is there a way 
to say that some text (here the items) are not to be aligned on the grid 
because they are smaller (or bigger)? 

Thanks!

Gilles.

% Example:
\showgrid
\setuplayout[grid=yes]
\setupitemize[before={\switchtobodyfont[small]}]
\definecolumnset[ex][n=2]

\starttext
\startcolumnset[ex]
\dorecurse{4}{\input knuth\relax\placefigure{}{}}
\startitemize[n,packed,intro]
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\item Un
\stopitemize
\stopcolumnset
\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Columnsets problems

2005-03-23 Thread Hans Hagen
Gilles Pérez-Lambert wrote:
Hello,
Following Hans's presentation on ConTeXt in EuroTeX 2005, I started to use 
columnsets. I'm really really impressed. Columnsets are easy to set up and 
wonderfully powerful.
Nevertheless, I have some problems with columnsets... On the page:
http://typo.free.fr/context/
you'll find the source file (Bogues.tex) and the output (Bogues.pdf)
or a zip file of them.
Some info on my config:
   texexec : TeXExec 5.2.5 - ConTeXt / PRAGMA ADE 1997-2005
   texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
   tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4)
   context : ver: 2005.03.16
   cont-en : ver: 2005.03.16  fmt: 2005.3.19  mes: english
   cont-nl : ver: 2005.01.31  fmt: 2005.3.19  mes: dutch
Pages
on the
Bogues.pdf  Description
--  
1   When a title (here: \Article{Le titre})
is inside a columnsetspan, header=empty
doesn't work.
you probably means 'high'
well, that's kind of tricky and i need to look into that carefully
below is another way of doing it (OTRSET patch)
6   The right column continues in the footer.
10  Same problem.
17  a line from the left column is reported on
the right column even if there is room for
it on the left column.
dunno, have to look into it (quite tricky to sync things in column sets; 
stretching tex to the limit)

By the way, always in a columnsets context, is there a way to completely forbid floats on certain pages?
no, should be doabla (so remind me later)
I didn't find a way to tell placefigure not to allow figures to be renumbered during the placement. In other words, is there a possibility the follow the order in which I declare the figure, even if a page is less optimal like this...
see patch below
\unprotect
% % % %
\setupfloats
  [\c!numbering=\v!yes]
\def\dofloatreference
  {\doifnot\@@bknumbering\v!nocheck
 {\doglobal\increment\numberedfloat
  \expanded{\writeutilitycommand
{\noexpand\twopassentry
{\s!float}%
{\numberedfloat}%
{\hetnummer}
\def\redofloatorder#1%
  {\doifnot\@@bknumbering\v!nocheck
 {\doglobal\increment\nofplacedfloats\relax
  \gettwopassdata\s!float
  \iftwopassdatafound
\doifnot\hetnummer\twopassdata
  {\edef\oldhetnummer{\hetnummer}%
   \xdef\hetnummer{\twopassdata}%
   \showmessage\m!floatblocks1{\nofplacedfloats,#1 
\oldhetnummer,\hetnummer}}%
  \fi}}

% % % %
\def\OTRSETskipstart
  {\scratchcounter\executeifdefined{\??mc\OTRSETidentifier\c!start}\zerocount
   \ifcase\scratchcounter\else
 \advance\scratchcounter\plusone
 \doOTRSETsetgridcells
   {\copy\placeholderboxe}
   \plusone\plusone\nofcolumns\scratchcounter
   \null}%
   \fi}
\def\OTRSETsetvsize % snap per sectie (gap here?)
  {\ifcollectingcontent \else % can be assigndimen
\OTRSETskipstart
 \OTRSETcheckinsert % added
 \OTRSETsetfreecells\mofcolumns\columnfirstcell
 \ifsomefreecolumncells
   \global\vsize\columnfreecells\lineheight
   \ifinotr % else problems with floats, see extreme
 \global\pagegoal\vsize % niet nodig, tenzij binnen otr
   \fi
   \synchronizeoutput % fails on example
  % \allowbreak % hm
 \fi
 \synchronizenotes
   \fi}
\def\OTRSETdoflushfloats
  {\bgroup
   \def\OTRSETsavebox##1{\!!doneafalse}%
   \doloop
 {\ifsomefloatwaiting
\OTRSETskipstart
\dogetfloat
\ifdim\wd\floatbox>\zeropoint
  \!!doneatrue
  \dp\floatbox\zeropoint
  \OTRSETstoreincolumnslot{TBLR}\floatbox
  \if!!donea
   %\message{[flu]}%
  \else
\OTRSETresavebox\floatbox
\exitloop
  \fi
\else
 %\message{[err]}% happens but why?
\fi
  \else
\exitloop
  \fi}
   \egroup}
\protect
\setuplayout
  [grid=yes,
   header=0pt,
   height=middle,
   width=middle]
\showgrid
\setupfloats[numbering=nocheck]
\definecolumnset [first] [n=2,start=0]
\definecolumnset [next]  [n=2,start=3]
\setuptexttexts[\vbox to \textheight{\topskipcorrection \hsize\makeupwidth left 
\hfill right\vfill}]

\setuphead[chapter][text=empty]
\starttext
\startcolumnset[first,next]
  \placefigure[btrl]{}{}
  \placefigure[tblr]{}{}
  \chapter{thuan} \dorecurse{25}{\recurselevel: \input thuan \endgraf}
\stopcolumnset
\startcolumnset[first,next]
  \chapter{thuan} \dorecurse{25}{\recurselevel: \input thuan \endgraf}
\stopcolumnset
\startcolumnset[first,next]
  \chapter{thuan} \dorecurse{25}{\input thuan \endgraf\placefigure{}{}}
\stopcolumnset
\stoptext
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 6

RE: [NTG-context] PDF bounding box problem?

2005-02-10 Thread Martin Kolařík
Hi all,

I have problem with paragraph background in columnset environment:

\definetextbackground
  [TXBG]
  [frame=no,offset=0.25em,location=paragraph]

\definecolumnset[main][n=2]

\startcolumnset[main]
...
\starttextbackground[TXBG]
  \typebuffer[BUFFER]
\stoptextbackground
...
\stopcolumnset

Using the background in left column (as the text flows) causes shifting
whole column down }(including both text and properly placed background).

Sorry, I have no minimal example now, as the source is XML. But the mapping
macros lead into the code described above.

Are there some problems with backs in columnsets?

Thank you,

Martin

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Hans Hagen
Sent: Thursday, February 10, 2005 10:11 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] PDF bounding box problem?


cormullion wrote:
> Hans Hagen <[EMAIL PROTECTED]> said on 2005-02-09, 18:20 (+0100 GMT):
> 
> 
>>>To my untutored eye it looks like the MediaBox is being
>>>used - at least, the graphic takes up  an area about
>>>Letter size.  Is there  some setting Iâve missed that
>>>lets me get the bounds of the graphics rather than the
>>>file?
>>
>>\externalfigure[whatever.pdf][width=10cm,size=artbox]
> 
> 
> Great! I didnât spot the artbox option...

it's a rather new option, because pdftex only supports it in later versions

Hans

ps. be aware of the fact that sometimes those boxes are wrong; has to do
with 
illustrator defaults and such (there is a technote on that on our site)

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
<>___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: columnsetspan - alternative needed

2005-01-24 Thread Hans Hagen
Steffen Wolfrum wrote:
Thanks for the quick answer - but obviously my example was bad: columnsetareas 
don't do what I need.
Maybe this is a better explanation:
Given you have two articles in a book set in two columns.
The second article doesn't start on a new page - it just begins where the first 
one ends.
But the first article (aaa...) ends with two balanced columns,
then comes the heading (bbb) for the second article,
and then comes begins the second article (ccc...).
That's what I mean by
aaa  aaa
aaa  aaa

ccc  ccc
ccc  ccc
Do you have a trick how to do a page like this with columnsets?
well, it involves some manual tweaking (numbers and such) and is not yet 
100% ok
the next code shows a  bit of balancing and columnstart/height manipulations
\starttext
\showgrid
\definecolumnset [two]   [n=2,balance=top]
\definecolumnset [three] [n=3,balance=top]
\setupcolumnsetlines[two][1][1][15]
\setupcolumnsetlines[two][1][2][15]
\setupcolumnsetstart[three][1][1][15]
\setupcolumnsetstart[three][1][2][18]
\setupcolumnsetstart[three][1][3][20]
\setupcolumnsetlines[three][1][1][40]
\setupcolumnsetlines[three][1][2][40]
\setupcolumnsetlines[three][1][3][40]
\definecolumnsetspan[two]
% \starttext
%   \startcolumnset [two]   \dorecurse {1}{\input tufte \par} \stopcolumnset
%   \startcolumnset [three] \dorecurse {2}{\input tufte \par} \stopcolumnset
% \stoptext
\starttext
  \startcolumnset [two]   \startcolumnsetspan[two] \input ward 
\stopcolumnsetspan \dorecurse {1}{\input tufte \par} \stopcolumnset
  \startcolumnset [three] \startcolumnsetspan[two] \input ward 
\stopcolumnsetspan \dorecurse {2}{\input tufte \par} \stopcolumnset
\stoptext

\stoptext
-
  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] columnsetspan - alternative needed

2005-01-21 Thread Steffen Wolfrum
Hi,

as far as I've seen columnsets work in a magazine like style:


\startcolumnset[twocolumns]
aaa ...
\startcolumnsetspan[heading]
bbb
\stopcolumnsetspan
ccc ...
\stopcolumnset

gives results like this:

aaa  ccc
aaa  ccc

ccc  ccc
ccc  ccc


But how can I structure columnsets so my result will look like this?:

aaa  aaa
aaa  aaa

ccc  ccc
ccc  ccc



Thank you,

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


Re: [NTG-context] columnset BUG - (urgent!)

2004-11-28 Thread Steffen Wolfrum
thanks, that works now. 
but do you also know the answer to the second bug:

When you uncomment the lines (testfile below)
the columnset gets 2 lines shorter!

I experienced this when I added before the literature component
a catalogue component that uses a structure like the commented lines do.
So I had two separate files actually!

Steffen


\starttext

\showframe
\showgrid

% oiuoiuoiuoiuoi \footnote{}
% \startcolumns[balance=yes,rule=off,n=2,distance=1cm]
% text \par
% text
% \stopcolumns
% gfdgfdgfdgfdgfdgfd \footnote{bbb}
% \page

\definecolumnset[litera][n=2,distance=1cm]

\startcolumnset[litera]

\dorecurse{10}{test \input zapf \input ward}


\stopcolumnset
\stoptext




h h extern <[EMAIL PROTECTED]> wrote:

> Steffen Wolfrum wrote:
> > Hi,
> > 
> > please have a look at testfile below:
> > without a footnote everything works fine,
> > but with the footnote the columnset gets crashed!
> 
> this is a tricky situation:
> 
> - the note is built in one column mode
> - but flushed in column mode (dus to postponing)
> - so actually what you see is a mixture
> 
> you may try:
> 
> \starttext
> 
> \chapter{Heading\notesymbol[x]}
> 
> \definecolumnset[litera][n=2,distance=1cm]
> 
> \startcolumnset[litera]
> 
> \footnotetext[x]{xx}\dorecurse{10}{test \input zapf \input ward}
> 
> \stopcolumnset
> \stoptext
> 
> or
> 
> \starttext
> 
> \definecolumnset[litera][n=2,distance=1cm]
> \definecolumnsetspan[litera][n=2]
> 
> \startcolumnset[litera]
> 
> \startcolumnsetspan[litera]
> \chapter{Heading\notesymbol[x]}
> \stopcolumnsetspan
> 
> \footnotetext[x]{xx}\dorecurse{10}{test \input zapf \input ward}
> 
> \stopcolumnset
> \stoptext
> 
> 
> 
> > I noticed this bug in a bigger book project:
> > The columnset is at the end as a seperate document (\component).
> > And the footnote was added 300 pages and 5 component files before !!!
> > 
> > As this footnote was one of the last changes that were done
> > before I wanted to send the book to the printer
> > a fast help would be very much appreciated.
> > 
> > Sorry, but it's really quite urgent -
> > 
> > Steffen
> > 
> > %&context
> > \starttext
> > \chapter{Heading\footnote{x}}
> > 
> > \definecolumnset[litera][n=2,distance=1cm]
> > 
> > \startcolumnset[litera]
> > 
> > \dorecurse{10}{test \input zapf \input ward}
> > 
> > 
> > \stopcolumnset
> > \stoptext
> 
> -
>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
> [EMAIL PROTECTED]
> http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] columnset BUG - (urgent!)

2004-11-27 Thread h h extern
Steffen Wolfrum wrote:
Hi,
please have a look at testfile below:
without a footnote everything works fine,
but with the footnote the columnset gets crashed!
this is a tricky situation:
- the note is built in one column mode
- but flushed in column mode (dus to postponing)
- so actually what you see is a mixture
you may try:
\starttext
\chapter{Heading\notesymbol[x]}
\definecolumnset[litera][n=2,distance=1cm]
\startcolumnset[litera]
\footnotetext[x]{xx}\dorecurse{10}{test \input zapf \input ward}
\stopcolumnset
\stoptext
or
\starttext
\definecolumnset[litera][n=2,distance=1cm]
\definecolumnsetspan[litera][n=2]
\startcolumnset[litera]
\startcolumnsetspan[litera]
\chapter{Heading\notesymbol[x]}
\stopcolumnsetspan
\footnotetext[x]{xx}\dorecurse{10}{test \input zapf \input ward}
\stopcolumnset
\stoptext

I noticed this bug in a bigger book project:
The columnset is at the end as a seperate document (\component).
And the footnote was added 300 pages and 5 component files before !!!
As this footnote was one of the last changes that were done
before I wanted to send the book to the printer
a fast help would be very much appreciated.
Sorry, but it's really quite urgent -
Steffen
%&context
\starttext
\chapter{Heading\footnote{x}}
\definecolumnset[litera][n=2,distance=1cm]
\startcolumnset[litera]
\dorecurse{10}{test \input zapf \input ward}
\stopcolumnset
\stoptext
-
  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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] columnset BUG 2

2004-11-26 Thread Steffen Wolfrum
... even worse is the following:

When you uncomment the lines (testfile below)
the columnset gets 2 lines shorter!

I experienced this when I added before the literature component
a catalogue component that uses a structure like the commented lines do.


Anybody knows this behaviour?
Or even better a fix?


Steffen





\starttext

\showframe
\showgrid



% oiuoiuoiuoiuoi \footnote{}
% \startcolumns[balance=yes,rule=off,n=2,distance=1cm]
% text \par
% text
% \stopcolumns
% gfdgfdgfdgfdgfdgfd \footnote{bbb}
% \page



\definecolumnset[litera][n=2,distance=1cm]

\startcolumnset[litera]

\dorecurse{10}{test \input zapf \input ward}


\stopcolumnset
\stoptext
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] columnset BUG - (urgent!)

2004-11-25 Thread Steffen Wolfrum
Hi,

please have a look at testfile below:
without a footnote everything works fine,
but with the footnote the columnset gets crashed!

I noticed this bug in a bigger book project:
The columnset is at the end as a seperate document (\component).
And the footnote was added 300 pages and 5 component files before !!!

As this footnote was one of the last changes that were done
before I wanted to send the book to the printer
a fast help would be very much appreciated.

Sorry, but it's really quite urgent -

Steffen




%&context
\starttext
\chapter{Heading\footnote{x}}

\definecolumnset[litera][n=2,distance=1cm]

\startcolumnset[litera]

\dorecurse{10}{test \input zapf \input ward}


\stopcolumnset
\stoptext
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] columnset's bodyfont+interlinespace ?

2004-11-23 Thread Hans Hagen
Steffen Wolfrum wrote:
Hi,
when using \startcolumns I could use:
\startcolumns[n=2,rule=off]
\setupindenting[none]
\switchtobodyfont[8.5pt]\setupinterlinespace[line=10pt]
\clubpenalty=0\widowpenalty=1\displaywidowpenalty=1\brokenpenalty=0
...
but when using \definecolumnset[myset][n=2] 
\startcolumnset[myset]
\switchtobodyfont[8.5pt]\setupinterlinespace[line=10pt]
...

doesn't work (actually it ends in halfempty pages).
How to set fontsize+interlinespace with columnsets ?
columnsets are grid based, although it is possible to use sections with 
different line distances, the height and such are determined by the bodyfont 
line height.

I may cook up something more clever in the future
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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] columnset's bodyfont+interlinespace ?

2004-11-22 Thread Steffen Wolfrum
Hi,


when using \startcolumns I could use:

\startcolumns[n=2,rule=off]
\setupindenting[none]
\switchtobodyfont[8.5pt]\setupinterlinespace[line=10pt]
\clubpenalty=0\widowpenalty=1\displaywidowpenalty=1\brokenpenalty=0
...


but when using \definecolumnset[myset][n=2] 
\startcolumnset[myset]
\switchtobodyfont[8.5pt]\setupinterlinespace[line=10pt]
...

doesn't work (actually it ends in halfempty pages).


How to set fontsize+interlinespace with columnsets ?


Steffen
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Float question

2004-09-17 Thread Ulrich Dirr
Hi,

I've defined a new float with
\setupfloats[background=screen,spacebefore=none,spaceafter=none,indentnext=
no]
\definefloat [diagram] [diagrams]

In general they are nicely placed, and grid typesetting is maintained.
Sometimes 'indentnext=no' doesn't work. Why? 

When typesetting with columnsets
\chapter{Versuch über die Krankheiten des Kopfes}
\startcolumnset[two]

[...]

the space above isn't removed but it works when the float is moved to a new
page when there's not enough room left. Do I have to manually put a
negative space here? (I suspect that even the spacebefore and spaceafter
didn't work)

CHAPTER TITLE

xxx
  +-+   xxx
  | |   xxx
  | |   xxx
  | |   xxx
  | |   xxx
  | |   xxx
  +-+   xxx
xxx
xxx xxx
xxx xxx
xxx xxx
xxx xxx
xxx xxx
xxx xxx
xxx xxx
xxx xxx
xxx xxx
xxx xxx
xxx xxx
xxx xxx

Is it possible to to place a 'note' at the point where the float should be
placed but is moved to the next column or page?

page 1
xxx xxx
xxx xxx
xxx xxx
xxx xxx
xxx xxx
xxx xxx
xxx xxx
xxx xxx
xxx xxx
xxx xxx
xxx xxx
xxx xxx
xxx xxx
xxx xxx
xxx xxx
xxx xxx
xxx xxx
xxx see diagram n on page 2 ((or 'see next diagram' in 
xxx xxx   case of column break))
xxx xxx

page 2

xxx xxx
xxx xxx
xxx xxx
xxx xxx
xxx xxx
[...]

Best regards,
Ulrich

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] marks in columnsets (was Re: marks in columns)

2004-09-15 Thread Plamen Tanovski
> \setupfootertexts[{\getmarking[section][first] \getmarking[section][last]}]
> \starttext
> \startcolumns[n=2]   
> \section{first}
> 
> \column
> 
> \section{last}
> \page
> \stopcolumns
> \stoptext

OK, but how to get it work with columnsets? The following code shows
the missing first mark:

\setupfootertexts[{\getmarking[section][all]}]
\definecolumnset[bobo][n=2]
\starttext
\startcolumnset[bobo]
\section{first}

\section{second}
\page

\section{third}

\column

\section{fourth}
\page

\stopcolumnset
\stoptext

Best regards,
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] column balancing question

2004-09-09 Thread Hans Hagen
Michal Kvasnicka wrote:
Good evening.
Many thanks for your help. Your solution works well with the newest 
ConTeXt and one particular document I now typeset. I have to check it 
still with more documents. Do you want to gen a report from these tests?

If you want I can send you many examples, but not `minimal files', 
since I don't know when the problem occures. As I typeset our church 
bulletin, I've got that result pretty often---approximately on one 
third or one fourth of all pages.
just test this on many docs and let me know if it fails
(one source of problems with i'm currently trying to catch is rounding 
errors  in comparisons)

I can't switch to columnset all my documents. Columnsets are 
absolutely great (one of the ConTeXt miracle---I thought it is not 
possible to do it in TeX because of its breaking routines), but 
up-to-now columnsets cannot be ballanced (or can they?), and my church 
bulletin is typset in such a way that each article can start anywhere 
on the page, and the columns must be ballanced before it. I can't 
explain it better because of my English, but its pages look like this:

   x   x
   x   x
   x   x
   x   x
   Title of article
   x   x
   x   x
Therefore I would lobby for the support of the old \startcolumns ... 
\stopcolumns environment. :-)
don't worry, i'm not driopping the old one, actually, in due time i'll provide more specialized ones and interfaces to write your own -) 

balancing in columnsets is a tricky business, the following should work 

(kind of manual balacing, complete control over how long columns on pages are; probably a bit fragile) 

% output=pdftex interface=en
\setuplayout[grid=yes] \showgrid \showstruts % gaat nogal fout zonder grid
\setuptolerance[verytolerant]
\definecolumnset [test-1] [n=2]
\definecolumnset [test-2] [n=3]
\starttext
\startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset
\startcolumnset [test-2] \dorecurse {2}{\input ward  \par} \stopcolumnset
\page
\setupcolumnset [test-1] [balance=yes]
\setupcolumnset [test-2] [balance=yes]
\setupcolumnsetlines[test-1][1][1] [8]
\setupcolumnsetlines[test-1][1][2][10]
\startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset
\startcolumnset [test-2] \dorecurse {2}{\input ward  \par} \stopcolumnset
\page
\setupcolumnsetlines[test-1][1][1] [8]
\setupcolumnsetlines[test-1][1][2][10]
\setupcolumnsetlines[test-2][1][1][19]
\setupcolumnsetlines[test-2][1][2][18]
\setupcolumnsetlines[test-2][1][3][19]
\startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset
\startcolumnset [test-2] \dorecurse {2}{\input ward  \par} \stopcolumnset
\page
\setupcolumnsetlines[test-1][1][1] [8]
\setupcolumnsetlines[test-1][1][2][10]
\setupcolumnsetlines[test-2][1][1][0]
\setupcolumnsetlines[test-2][1][2][-2]
\setupcolumnsetlines[test-2][1][3][0]
\startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset
\startcolumnset [test-2] \dorecurse {6}{\input ward  \par} \stopcolumnset
\page
\setupcolumnsetlines[test-1][1][1] [8]
\setupcolumnsetlines[test-1][1][2][10]
\setupcolumnsetstart[test-2][1][1][20]
\setupcolumnsetstart[test-2][1][2][20]
\setupcolumnsetstart[test-2][1][3][20]
\startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset
\startcolumnset [test-2] \dorecurse {2}{\input ward  \par} \stopcolumnset
\page
\setupcolumnsetlines[test-1][1][1] [8]
\setupcolumnsetlines[test-1][1][2][10]
\setupcolumnsetlines[test-2][1][1][-20]
\setupcolumnsetlines[test-2][1][2][-20]
\setupcolumnsetlines[test-2][1][3][-20]
\startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset
\startcolumnset [test-2] \dorecurse {2}{\input ward  \par} \stopcolumnset
\stoptext
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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Columnset Areas - Background Color ?

2004-08-26 Thread Miguel Queiros
Hi !

I've been trying to use columnsets with columnsetareas
but I haven't been able to define a background color 
for the text in the columnset area. You can see the 
problem in the pdf I've attached (area5.pdf).

I'v created a small example of the problem: area5.tex

As far as I recall I've also tried to use a 
columnset span but the problem was the same.

Can anyone provide me with some hints so that I 
can use some background color in columnsetareas ?


Thanks,
Miguel Queirós

\definecolumnset[example][n=2]

\setupcolors [state=start,conversion=yes, reduction=no, rgb=yes, cmyk=yes]

% Definição de uma das Areas
\definetextbackground[title]
[ backgroundcolor=blue,
 backgroundoffset=.5cm,
 offset=.5cm,
 frame=off,
 location=paragraph,
 color=white]

\definecolumnsetarea[title][right]
[x=2,y=15,nx=1,ny=6,
% backgroundcolor=blue,
align={lohi,right},state=start]
% contrast

\setupcolumnsetareatext[title][right]
[\setups{title}]
\startsetups[title]

\starttextbackground[title]
Isto é uma pequena experiencia para ver se funciona o que estou a experimentar.
Não sei se esta exactamente como quero, mas logo se vera.
\stoptextbackground
\stopsetups
% Fim da definição de uma das Areas

% Definição de uma das Areas
\definecolumnsetarea[cs-areas][right]
[x=1,y=4,nx=2,ny=4,
% background=darkyellow,
align={lohi,right},state=start]

\definetextbackground[cs-areas]
[ backgroundcolor=red,
 backgroundoffset=.5cm,
 offset=.5cm,
 frame=off,
 location=paragraph,
 color=white]

\setupcolumnsetareatext[cs-areas][right]
[\setups{cs-areas}]
\startsetups[cs-areas]

\starttextbackground[cs-areas]
Este texto foi definido utilizando Column Sets e Areas. Este texto foi definido utilizando Column Sets e Areas.
\stoptextbackground

\stopsetups
% Fim da definição de uma das areas

% Definição de uma das Areas
\definecolumnsetarea[area3][right]
[x=1,y=20,nx=1,ny=4,
align={lohi,right},state=start]

\definetextbackground[area3]
[ backgroundcolor=green,
 backgroundoffset=0.5cm,
 offset=0.5cm,
 frame=off,
 location=paragraph,
 color=white]

\setupcolumnsetareatext[area3][right]
[\setups{area3}]
\startsetups[area3]

\starttextbackground[area3]
Mais um exemplo de Areas.
\stoptextbackground

\stopsetups
% Fim da definição de uma das areas

\starttext
\startcolumnset[example]

\dorecurse{38} {abcd h432 hk4 h4k 2h3 jk32h 4k 23h 4kj2 34k j2 hkh 3kjh 42 ks }

\stopcolumnset
\stoptext

area5.pdf
Description: Adobe PDF document
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] small articles in columns?

2004-05-23 Thread Hans Hagen
At 22:01 21/05/2004, you wrote:
Following the suggestions I tried to use the \column command to split
the columns. But my main problem remains. With the \startcolumnset
command I can not achive automatic balancing of columns.
you can do manual balancing (experimental, esp the continue with a next 
columnset part):

\setupcolumnsetlines[whatever][2][1][3]
\setupcolumnsetlines[whatever][2][2][5]
\setupcolumnsetlines[whatever][2][3][10]
[page in sequence] [column] [lines]
Hans
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] small articles in columns?

2004-05-21 Thread Janko Hauser
Hans Hagen wrote:
columns.pdf (column sets)
else, play with
\starttabulate[|p|p|p]
\NC ... \NC ... \NC ... \NC \NR
\stoptabulate
Following the suggestions I tried to use the \column command to split
the columns. But my main problem remains. With the \startcolumnset
command I can not achive automatic balancing of columns.
I looked through the code in context and learned, that there is the
\startcolumns command wich can be given the [balance=yes]
parameter. This works, but then I can not use the other nice features
of the columnset environment. Further search in the code shows that
the balance=yes is also present in the columnset environment, but it
has no effect. Is this right, a missing feature or a malfunction?
I can provide an example, if this should work, and I'm doing
something wrong.
All hints gratefully accepted :-)
__Janko
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Wrapping around footnotes

2004-01-13 Thread William D. Neumann
Well, that's sort of OK if you only have one or two footnotes and can
fiddle with the manual placement of the footnotes.  What I want is for the
columns in the document to flow around the footnotes automatically
througout the entire document.  If you look at the following two
(essentially the same) PDFs:

http://www.cs.unm.edu/~wneumann/files/HORSE-ctx.zip
http://www.cs.unm.edu/~wneumann/files/HORSE-ltx.zip

you can see what I am trying to achieve.  The second file (prepared with
Latex) flows automatically around the footnotes on pages 1 and 3, while
the first file (prepared with Context) does not, subsequently looking
awkward (if not ugly) and wasting valuable space.  does anyone know how to
acheive the flow of the Latex processed paper?

Thanks for the suggestion though, I do appreciate the help.

William D. Neumann

On Thu, 8 Jan 2004, Willi Egger wrote:

> Hi William,
>
> I do not know whether I can make you happy ...
>
> I played with the following setup, which gives a comparable result,
> though it needs some manual actions:
>
> \starttext
> \startcolumnset[n=2]
> \startlocalfootnotes[n=0]
> text with footnotes\footnote{a tip}
> text
> text
> \placelocalfootnotes
> \column
> text
> text
> text
> text
> text
> \stoplocalfootnotes
> \stopcolumnset
> \stoptext
>
> William D. Neumann wrote:
>
> >I'm preparing a paper in two column format, and I'm having issues with
> >footnotes in one column affecting the text in the other column because the
> >text in the other column stops at the same spot as the text in the column
> >with the footnote rather than typsetting down to the bottom of the page.
> >
> >For example, I am currently getting:
> >
> >blah, blah, blah1yammer, yammer, yammer
> >blah, blah, blah yammer, yammer, yammer
> >blah, blah, blah yammer, yammer, yammer
> >blah, blah, blah yammer, yammer, yammer
> >blah, blah, blah yammer, yammer, yammer
> >--
> >1 footnote text
> >here. footnote
> >text here.
> >footnote text here.
> >
> >Instead of this (which I want)
> >
> >blah, blah, blah1yammer, yammer, yammer
> >blah, blah, blah yammer, yammer, yammer
> >blah, blah, blah yammer, yammer, yammer
> >blah, blah, blah yammer, yammer, yammer
> >blah, blah, blah yammer, yammer, yammer
> >--   yammer, yammer, yammer
> >1 footnote text  yammer, yammer, yammer
> >here. footnote   yammer, yammer, yammer
> >text here.   yammer, yammer, yammer
> >footnote text here.  yammer, yammer, yammer
> >
> >How can this be done?  I've tried playing with the various setup commands
> >for columns and footnotes, but nothing seems to work.  Any help is
> >appreciated.

---

"Well I could be a genius, if I just put my mind to it.
And I...I could do anything, if only I could get 'round to it.
Oh we were brought up on the space-race, now they expect you to clean toilets.
When you've seen how big the world is, how can you make do with this?
If you want me, I'll be sleeping in - sleeping in throughout these glory days."

-- Jarvis Cocker
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


RE: [NTG-context] columnset error

2004-01-13 Thread Jan Houwers
Patrick,

If I put a \ before stoptext it works fine here.

(Texlive latest version and no upgrade of context)

Jan

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens
Patrick Gundlach
Verzonden: maandag 12 januari 2004 22:26
Aan: [EMAIL PROTECTED]
Onderwerp: [NTG-context] columnset error

Hi out there,

what is wrong with the following code?

\starttext
\definecolumnset[twocol][n=2]
\startcolumnset[twocol]
\dorecurse{10}{\section{hello} 
  \dorecurse{8}{\input tufte \par}}
\stopcolumnset
stoptext


it gives me:

!: Missing number, treated as zero.

--- TeX said ---
 
   \@@vn-footnote 
\doflushsavednotes ->\ifvoid \currentsaveins 
 \else \insert
\currentnoteins {...

\next1 ...doprocessnotes {\doflushsavednotes }{#1}
  \doprocesscommaitem 
 \relax footnote,
   linenote
\doprocesscommalist ...aitem \gobbleoneargument #1
  ,]\relax \global
\advance ...

\OTRSETflushsavednotes ... \else \flushsavednotes 
  \fi 



ConTeXt  ver: 2004.1.2  fmt: 2004.1.7  int: english  mes: english

Patrick
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] columnset error

2004-01-13 Thread Hans Hagen
At 22:25 12/01/2004, you wrote:
Hi out there,

what is wrong with the following code?

\starttext
\definecolumnset[twocol][n=2]
\startcolumnset[twocol]
\dorecurse{10}{\section{hello}
  \dorecurse{8}{\input tufte \par}}
\stopcolumnset
stoptext
it gives me:

!: Missing number, treated as zero.
ha, a few days ago i ran into that as well, in core-not:

 [EMAIL PROTECTED] % local box
 [EMAIL PROTECTED] % local box
 ^^

add that line in \definefootnote

Hans  

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] columnset error

2004-01-12 Thread Patrick Gundlach
Hi out there,

what is wrong with the following code?

\starttext
\definecolumnset[twocol][n=2]
\startcolumnset[twocol]
\dorecurse{10}{\section{hello} 
  \dorecurse{8}{\input tufte \par}}
\stopcolumnset
stoptext


it gives me:

!: Missing number, treated as zero.

--- TeX said ---
 
   \@@vn-footnote 
\doflushsavednotes ->\ifvoid \currentsaveins 
 \else \insert \currentnoteins {...

\next1 ...doprocessnotes {\doflushsavednotes }{#1}
  \doprocesscommaitem 
 \relax footnote,
   linenote
\doprocesscommalist ...aitem \gobbleoneargument #1
  ,]\relax \global \advance ...

\OTRSETflushsavednotes ... \else \flushsavednotes 
  \fi 



ConTeXt  ver: 2004.1.2  fmt: 2004.1.7  int: english  mes: english

Patrick
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Wrapping around footnotes

2004-01-08 Thread Willi Egger
Hi William,

I do not know whether I can make you happy ...

I played with the following setup, which gives a comparable result, 
though it needs some manual actions:

\starttext
\startcolumnset[n=2]
\startlocalfootnotes[n=0]
   text with footnotes\footnote{a tip}
   text
   text
\placelocalfootnotes
\column
   text
   text
   text
   text
   text
\stoplocalfootnotes
\stopcolumnset
\stoptext
William D. Neumann wrote:

I'm preparing a paper in two column format, and I'm having issues with
footnotes in one column affecting the text in the other column because the
text in the other column stops at the same spot as the text in the column
with the footnote rather than typsetting down to the bottom of the page.
For example, I am currently getting:

blah, blah, blah1yammer, yammer, yammer
blah, blah, blah yammer, yammer, yammer
blah, blah, blah yammer, yammer, yammer
blah, blah, blah yammer, yammer, yammer
blah, blah, blah yammer, yammer, yammer
--
1 footnote text
here. footnote
text here.
footnote text here.
Instead of this (which I want)

blah, blah, blah1yammer, yammer, yammer
blah, blah, blah yammer, yammer, yammer
blah, blah, blah yammer, yammer, yammer
blah, blah, blah yammer, yammer, yammer
blah, blah, blah yammer, yammer, yammer
--   yammer, yammer, yammer
1 footnote text  yammer, yammer, yammer
here. footnote   yammer, yammer, yammer
text here.   yammer, yammer, yammer
footnote text here.  yammer, yammer, yammer
How can this be done?  I've tried playing with the various setup commands
for columns and footnotes, but nothing seems to work.  Any help is
appreciated.
William D. Neumann

---

"Well I could be a genius, if I just put my mind to it.
And I...I could do anything, if only I could get 'round to it.
Oh we were brought up on the space-race, now they expect you to clean toilets.
When you've seen how big the world is, how can you make do with this?
If you want me, I'll be sleeping in - sleeping in throughout these glory days."
	-- Jarvis Cocker
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context
 



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Floats in Columnsets

2003-12-06 Thread Reimer Behrends
It appears as though \placefigure doesn't work very well with columnsets
if the size of the floats isn't an exact multiple of the underlying
grid. More precisely, \placefigure and friends, when used with any of
the *tb and tb* options (tblr, tbrl, lrtb, rltb, fxtb) snap the bottom
of the figure to the grid rather than the top. Of course, that means
that most of the time figures will not be aligned at the top. (See below
for an example.)

Does anybody know of a fix or workaround for this problem?

Reimer Behrends



\showframe
\showgrid
\setuplayout[
   backspace=0.75in,topspace=0.75in,
   width=7.0in,height=9.5in,
   header=0.0in,footer=0.35in]
\setuppapersize[letter][letter]
\definecolumnset[two][n=2,distance=12pt]

\def\myfig#1{\placefigure[tblr]{none}{
\framed[offset=6pt,width=broad,align=right]{
\switchtobodyfont[10pt]
#1

}}}
\setupbodyfont[12pt]
\starttext
\startcolumnset[two]
\myfig{\input knuth}
\dorecurse{3}{\input knuth}\myfig{\input tufte}
\stopcolumnset
\stoptext

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: columns and alignment at the bottom

2003-10-15 Thread Willi Egger
At 19:21 15.10.2003, George N.White wrote:
On Wed, 15 Oct 2003, Ed L Cashin wrote:

> Hans Hagen <[EMAIL PROTECTED]> writes:
>
> > \starttext
> >
> > \startcolumnset
> >
> > \dorecurse{100}
> >{\framed
> >   [width=\hsize,height=fit,align=normal]
> >   {\getrandomnumber\whatever{1}{9}%
> >\dorecurse\whatever{\strut test \recurselevel\endgraf}}
> > \vfilll}
> >
> > \stopcolumnset
> >
> > \stoptext
>
> Oh, I can't wait to see what that example does!  Does it show that I
> am not recalling correctly?  I hope so.
>
> The example, though, doesn't result in a pdf file for me when I put it
> into a file, "test.tex", and run "texexec --pdf test".
The example works for me, using TeX Live 2003 with a newer (beta)
cont-tmf.tex:
$ texexec --pdf context-align.tex
[...]
This is pdfeTeXk, Version 3.141592-1.11a-2.1 (Web2C 7.5.2)
[...]
ConTeXt  ver: 2003.9.26  fmt: 2003.10.14  int: english  mes: english
[...]
systems : begin file context-align at line 69
systems : randomizer starts with 995399654
[1.1{/opt/texLive/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] [2.2]
[3.3] [4.4] [5.5] [6.6] [7.7]
systems : end file context-align at line 82
){/opt/texLive/texmf/dvips/tetex/f7b6d320.enc}
Output written on context-align.pdf (7 pages, 14051 bytes).
Transcript written on context-align.log.
The given example works also here with texlive7 and
ConTeXt  ver: 2003.9.25  fmt: 2003.9.25  int: english  mes: english
Willi 

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: columns and alignment at the bottom

2003-10-15 Thread George N. White III
On Wed, 15 Oct 2003, Ed L Cashin wrote:

> Hans Hagen <[EMAIL PROTECTED]> writes:
>
> > \starttext
> >
> > \startcolumnset
> >
> > \dorecurse{100}
> >{\framed
> >   [width=\hsize,height=fit,align=normal]
> >   {\getrandomnumber\whatever{1}{9}%
> >\dorecurse\whatever{\strut test \recurselevel\endgraf}}
> > \vfilll}
> >
> > \stopcolumnset
> >
> > \stoptext
>
> Oh, I can't wait to see what that example does!  Does it show that I
> am not recalling correctly?  I hope so.
>
> The example, though, doesn't result in a pdf file for me when I put it
> into a file, "test.tex", and run "texexec --pdf test".

The example works for me, using TeX Live 2003 with a newer (beta)
cont-tmf.tex:

$ texexec --pdf context-align.tex
[...]
This is pdfeTeXk, Version 3.141592-1.11a-2.1 (Web2C 7.5.2)
[...]
ConTeXt  ver: 2003.9.26  fmt: 2003.10.14  int: english  mes: english
[...]
systems : begin file context-align at line 69
systems : randomizer starts with 995399654
[1.1{/opt/texLive/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] [2.2]
[3.3] [4.4] [5.5] [6.6] [7.7]
systems : end file context-align at line 82
){/opt/texLive/texmf/dvips/tetex/f7b6d320.enc}
Output written on context-align.pdf (7 pages, 14051 bytes).
Transcript written on context-align.log.

--
George N. White III  <[EMAIL PROTECTED]>
  Head of St. Margarets Bay, Nova Scotia, Canada




___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] columns and alignment at the bottom

2003-10-15 Thread Ed L Cashin
Hans Hagen <[EMAIL PROTECTED]> writes:

> At 22:50 12/10/2003, Ed L Cashin wrote:
...
>>Some months ago another columns implementation came out, but if I
>>recall correctly, when you have columns of vboxes separated by very
>>stretchy glue, the new columns implementation can't bottom-align them
>>either.
>
> got you:
>
> \starttext
>
> \startcolumnset
>
> \dorecurse{100}
>{\framed
>   [width=\hsize,height=fit,align=normal]
>   {\getrandomnumber\whatever{1}{9}%
>\dorecurse\whatever{\strut test \recurselevel\endgraf}}
> \vfilll}
>
> \stopcolumnset
>
> \stoptext

Oh, I can't wait to see what that example does!  Does it show that I
am not recalling correctly?  I hope so.  

The example, though, doesn't result in a pdf file for me when I put it
into a file, "test.tex", and run "texexec --pdf test".

Acrobat Reader 4.0 says, "There was an error opening this document.
Could not repair file."


  [EMAIL PROTECTED] tmp$ PATH=/opt/teTeX-1.0.7/bin:$PATH texexec --pdf test
  
   TeXExec 3.3 - ConTeXt / PRAGMA ADE 1997-2003
  
  executable : pdfetex
  format : cont-en
   inputfile : test
  output : pdftex
   interface : en
current mode : none
 TeX run : 1
  
  This is pdfeTeX, Version 3.14159-13d-2.1 (Web2C 7.3.1)
  entering extended mode
...
  pdftex : needs map file: original-vogel-symbol.map
  systems: begin file test at line 1
  systems: randomizer starts with 903229090
  [1.1[/opt/teTeX-1.0.7/share/texmf/dvips/config/pdftex.map]] [2.2]
 return code : 11
run time : 2 seconds
  
  total run time : 2 seconds
  [EMAIL PROTECTED] tmp$ acroread test.pdf
  [EMAIL PROTECTED] tmp$ 


-- 
--Ed L Cashin|   PGP public key:
  [EMAIL PROTECTED]|   http://noserose.net/e/pgp/

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] columns and alignment at the bottom

2003-10-14 Thread Hans Hagen
At 22:50 12/10/2003, Ed L Cashin wrote:
Alexander Klink <[EMAIL PROTECTED]> writes:

> Hi,
>
> I am trying to typeset a text which should look roughly like that:
>
> |-|  |-| |--|
> |text |  |text | |text  |
> | |  |-| |  |
> |-|  |  |
>  |-| |  |
> |-|  |text | |  |
> |text |  |-| |--|
> | |
> | |  |-| |--|
> | |  |text | |text  |
> |-|  |-| |--|
>
> So I have a frames with some text (actually, addresses - Hans, maybe
> you remember the address booklet I showed you here in Darmstadt) in
> three columns. So I tried something like:
>
> \startcolumns[n=3]
> \framed{first address...}
> \vskip 0.5cm plus 1fill
> \framed{second address...}
> \vskip 0.5cm plus 1fill
> \framed{third address...}
> .
> .
> .
> \stopcolumns
>
> Which (obviously because I use TeX code inside ConTeXt - shame on me)
> fails, the frames are not aligned at the bottom.
This isn't so obvious, IMHO.  I tried to do the same thing back in
1998 or 1999 to create a directory for a college.  I made the glue
between the boxes very stretchable, so that context would be able to
put as much space as necessary between the directory entries in order
to have the columns line up at the bottom.
>From a user standpoint, it should work.  However, it turns out that
columns, from an implementation standpoint, are not easy at all in
tex.  It has to do with subtleties in the page output routine that I
don't really grasp.
> So I'm looking for a way to typeset them with a distance of at least
> 0.5cm and align at the bottom - the remaining space should be spread
> equally...
> I hope the question is understandable and I hope someone has already
> done something like this...
Some months ago another columns implementation came out, but if I
recall correctly, when you have columns of vboxes separated by very
stretchy glue, the new columns implementation can't bottom-align them
either.
got you:

\starttext

\startcolumnset

\dorecurse{100}
  {\framed
 [width=\hsize,height=fit,align=normal]
 {\getrandomnumber\whatever{1}{9}%
  \dorecurse\whatever{\strut test \recurselevel\endgraf}}
   \vfilll}
\stopcolumnset

\stoptext 

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Marginal notes in two-column setup

2003-07-21 Thread Willi Egger

> > After sttudying the sources and a bunch of trial and errors I can come
> > up
> > with the following solution which works for a two solumns set!
>
> Great. This works. Now for something different. While learning ConTeXt,
> I find that often the syntax escapes me. Take for instance:

>
> > \definecolumnset[example][n=2]
> >
> > \define[1]\MargText{%
> > \ifodd\mofcolumns{%
> >   \inleft{#1}}
> > \else
> >   {\inright{#1}}\fi}
> >
> > \starttext
> > \startcolumnset[example]
> >
> > \MargText{Here left of column}
> >
> > \input tufte
> >
> > \column[local]
>
> What does [local] mean here? According the the manual one should say
> \column and I can't find the explanation of what local means or what
> you are doing here.

The example definition of a columnset presented above is copied from the
manual "Columns". - Often commands take optional arguments. Porbably this
would also work without the [local].

Willi


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Marginal notes in two-column setup

2003-07-20 Thread Gerben Wierda
After sttudying the sources and a bunch of trial and errors I can come 
up
with the following solution which works for a two solumns set!
Great. This works. Now for something different. While learning ConTeXt, 
I find that often the syntax escapes me. Take for instance:

\definecolumnset[example][n=2]

\define[1]\MargText{%
\ifodd\mofcolumns{%
  \inleft{#1}}
\else
  {\inright{#1}}\fi}
\starttext
\startcolumnset[example]
\MargText{Here left of column}

\input tufte

\column[local]
What does [local] mean here? According the the manual one should say 
\column and I can't find the explanation of what local means or what 
you are doing here.

\input tufte

\MargText{\ifodd\mofcolumns{Hello!, still left of column}\else {Hello, 
now
right of column}\fi}

\stopcolumnset
\stoptext
I believe that Hans will make a generic solution...


G
--
"To be or not to be, that is the question" -- Parmenides
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Marginal notes in two-column setup

2003-07-20 Thread Willi Egger
Hi Gerben,
>
> Have a two column text with the marginal notes from the left column
> appear on the left and the ones from the right column on the right.
> When I use 2-columns and I use \inmargin, I get them on the right where
> the marginal notes from the left column are on top of the right column
> (not good)
>
> Is there a way to do this? Probably yes with something \if-like?

After sttudying the sources and a bunch of trial and errors I can come up
with the following solution which works for a two solumns set!

\definecolumnset[example][n=2]

\define[1]\MargText{%
\ifodd\mofcolumns{%
  \inleft{#1}}
\else
  {\inright{#1}}\fi}

\starttext
\startcolumnset[example]

\MargText{Here left of column}

\input tufte

\column[local]

\input tufte

\MargText{\ifodd\mofcolumns{Hello!, still left of column}\else {Hello, now
right of column}\fi}

\stopcolumnset
\stoptext

I believe that Hans will make a generic solution...

Kind regards Willi


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


<    1   2   3   4