From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24741 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: Re: Columns (text alignment) Date: Mon, 26 Dec 2005 18:47:23 +0100 Message-ID: <43B02CAB.90907@gmx.net> References: <43AC1A31.30204@di.univaq.it> <43AC2BB6.50206@gmx.net> <43B00F61.5090104@di.univaq.it> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070807050301040302000304" X-Trace: sea.gmane.org 1135619245 4991 80.91.229.2 (26 Dec 2005 17:47:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Dec 2005 17:47:25 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 26 18:47:23 2005 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EqwRI-0001DO-Bf for gctc-ntg-context-518@m.gmane.org; Mon, 26 Dec 2005 18:47:16 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7D413127A3; Mon, 26 Dec 2005 18:47:15 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29894-02; Mon, 26 Dec 2005 18:47:11 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 881AF1279C; Mon, 26 Dec 2005 18:47:11 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 168CE1279C for ; Mon, 26 Dec 2005 18:47:10 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29667-07 for ; Mon, 26 Dec 2005 18:47:08 +0100 (CET) Original-Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by ronja.ntg.nl (Postfix) with SMTP id C012712799 for ; Mon, 26 Dec 2005 18:47:06 +0100 (CET) Original-Received: (qmail invoked by alias); 26 Dec 2005 17:47:06 -0000 Original-Received: from i577B8D85.versanet.de (EHLO [192.168.1.3]) [87.123.141.133] by mail.gmx.net (mp020) with SMTP; 26 Dec 2005 18:47:06 +0100 X-Authenticated: #24293357 User-Agent: Thunderbird 1.5 (Windows/20051201) Original-To: mailing list for ConTeXt users In-Reply-To: <43B00F61.5090104@di.univaq.it> X-Enigmail-Version: 0.93.0.0 X-Y-GMX-Trusted: 0 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:24741 Archived-At: This is a multi-part message in MIME format. --------------070807050301040302000304 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 > > --------------070807050301040302000304 Content-Type: text/plain; name="style.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="style.tex" \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: --------------070807050301040302000304 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --------------070807050301040302000304--