From: Fabio Mancinelli <mancinel@di.univaq.it>
Subject: Columns (text alignment)
Date: Fri, 23 Dec 2005 16:39:29 +0100 [thread overview]
Message-ID: <43AC1A31.30204@di.univaq.it> (raw)
[-- Attachment #1: Type: text/plain, Size: 1055 bytes --]
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).
[-- Attachment #2: style.tex --]
[-- Type: text/x-tex, Size: 1864 bytes --]
\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:
[-- Attachment #3: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
next reply other threads:[~2005-12-23 15:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-23 15:39 Fabio Mancinelli [this message]
2005-12-23 15:44 ` Hans Hagen
2005-12-23 16:54 ` Peter Rolf
2005-12-26 15:42 ` Fabio Mancinelli
2005-12-26 17:47 ` Peter Rolf
2005-12-27 8:50 ` Fabio Mancinelli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43AC1A31.30204@di.univaq.it \
--to=mancinel@di.univaq.it \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).