From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24709 Path: news.gmane.org!not-for-mail From: Fabio Mancinelli Newsgroups: gmane.comp.tex.context Subject: Columns (text alignment) Date: Fri, 23 Dec 2005 16:39:29 +0100 Message-ID: <43AC1A31.30204@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="------------080008040506030502010306" X-Trace: sea.gmane.org 1135352278 29518 80.91.229.2 (23 Dec 2005 15:37:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Dec 2005 15:37:58 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 23 16:37:55 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 1EpozK-0001dP-Fa for gctc-ntg-context-518@m.gmane.org; Fri, 23 Dec 2005 16:37:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3063F128E4; Fri, 23 Dec 2005 16:37:46 +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 03670-05; Fri, 23 Dec 2005 16:37:40 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8B97F128D3; Fri, 23 Dec 2005 16:37:40 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B2E9D128D3 for ; Fri, 23 Dec 2005 16:37:38 +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 03642-02 for ; Fri, 23 Dec 2005 16:37:37 +0100 (CET) Original-Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by ronja.ntg.nl (Postfix) with ESMTP id 8834A128D0 for ; Fri, 23 Dec 2005 16:37:37 +0100 (CET) Original-Received: from hydrogene.pps.jussieu.fr (hydrogene.pps.jussieu.fr [134.157.168.1]) by shiva.jussieu.fr (8.13.5/jtpda-5.4) with ESMTP id jBNFbX9x084364 for ; Fri, 23 Dec 2005 16:37:37 +0100 (CET) X-Ids: 165 Original-Received: from [134.157.168.99] (einsteinium.pps.jussieu.fr [134.157.168.99]) by hydrogene.pps.jussieu.fr (8.13.4/jtpda-5.4) with ESMTP id jBNFbVoa031129 for ; Fri, 23 Dec 2005 16:37:31 +0100 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050930) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.7.2 (shiva.jussieu.fr [134.157.0.165]); Fri, 23 Dec 2005 16:37:37 +0100 (CET) X-Antivirus: scanned by sophie at shiva.jussieu.fr X-j-chkmail-Score: MSGID : 43AC19BD.000 on shiva.jussieu.fr : j-chkmail score : X : 5/50 0 X-Miltered: at shiva.jussieu.fr with ID 43AC19BD.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! 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:24709 Archived-At: This is a multi-part message in MIME format. --------------080008040506030502010306 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi everybody. I am experimenting with ConTeXt and columns. I am creating a simple style and I setup 3 columns and redefined some heading (section, subsection, subsubsections). Now the problem is that the text at the end of the columns is not aligned (i.e., the columns end at different heights). I thought that this was due to the \blank commands that I specified as before and after parameters in the heading definitions, but even by using the flexible modifier doesn't change that behavior. I don't know where the problem is. The tex file is attached. Thank you, Fabio P.S.: By using the attached file, I cannot specify the position parameter for \placefigure. If I write \placefigure{Name}{\externalfigure[...} it works. \placefigure[btlr]{name}{\externalfigure[...} does not. Weird. P.P.S.: I was reading the columns.pdf "tutorial". I saw that a \definecolumnsethsize command is used but I haven't found any documentation about that command anywhere. I use width=2\textwidth which seems to produce the same effects (2 columns span). --------------080008040506030502010306 Content-Type: text/x-tex; name="style.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="style.tex" \usetypescript[adobekb][\defaultencoding] \usetypescript[sans] \setupbodyfont[sans,10pt] \setuphead[section][% style={\setupbodyfont[sans,14pt]\bf}, before={\blank[3*halfline, flexible]}, after={\blank[small, flexible]}% ] \setuphead[subsection][% style={\setupbodyfont[sans,12pt]\bf}, before={\blank[2*halfline, flexible]}, after={\blank[small, flexible]}% ] \def\runin#1#2{#2.} \setuphead[subsubsection][% style={\setupbodyfont[sans,10pt]\bf}, before={\blank[halfline, flexible]}, command=\runin, alternative=text% ] \setuppapersize[a4][a4] \setuplayout[% width=middle, height=middle, topspace=1cm, bottomspace=1cm, header=1cm, footer=1cm, backspace=1cm% ] \setupcolumns[% n=3, distance=14pt, balance=no, rule=off% ] \setupheadertexts[{\sl XNemesis.org Research and Development}][{\sl The vault}] \setuppagenumbering[location=bottom] \starttext \startcolumns \startcolumnspan[% n=2% ] \bgroup \switchtobodyfont[32pt] {\bf Title} \switchtobodyfont[20pt] {\par\noindent\sl Subtitle} \blank[20pt, flexible] \egroup \stopcolumnspan \bgroup \blank[line,flexible] \setupindenting[none] \switchtobodyfont[9pt] {\bf Abstract}\par AbstractHere \ignorespaces \egroup \bgroup \blank[line,flexible] \setupindenting[none] \switchtobodyfont[9pt] {\bf Keywords:} Keywords here \ignorespaces \egroup \dorecurse{4}{ \section{Section} \dorecurse{1}{ \input abstract \startitemize \item A \item B \item C \stopitemize } \subsection{Subsection} \dorecurse{1}{\input abstract} \placefigure[btlr]{Simple figure}{\externalfigure[buttons][width=2\textwidth]} \subsubsection{Subsubsection} \dorecurse{1}{\input abstract} } \blank[3*line, flexible] \bgroup \switchtobodyfont[9pt] {\bf Author}\par Author \ignorespaces \egroup \stopcolumns \stoptext %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% End: --------------080008040506030502010306 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 --------------080008040506030502010306--