Issues: framedtext and tables inside itemized list
I have some issues with different things but both inside itemized lists: 1. Framed text width is calculated not as I expect. The sample below makes framedtext box appear partially on right margin \setupcolors[state=start] \setuplayout[width=9cm] \showframe \starttext \startitemize[n,packed] \item A normal item paragraph, which normaly gets wrapped ok.\par \startframedtext[background=screen,frame=off,width=\textwidth] Some listing as framedtext whose width seems calculated incorrectly. \stopframedtext \stopitemize \stoptext In my docs I represent programlistings using these framedtexts and need them all to be the same width (\textwidth). Is there a way to make those framedtexts that appear inside itemization remain in boundaries? The same concerns tables (natural). 2. Another question with natural tables inside itemized list..If I set [split=repeat] or [split=yes] for table it is not correctly aligned inside itemized list. The below example shows this. \setuplayout[width=9cm] \showframe \starttext \startitemize[n,packed] \noindent \bTABLE \bTR \bTH Operation\eTH \bTH[align=middle] Result\eTH \eTR \bTR \bTD The "Librarian" application starts with the {\tt{}Index} page.\eTD \bTD[align=middle] OK \eTD \eTR \bTR \bTD When clicking the links on the {\tt{}Index} page, the empty {\tt{}List\-All} and {\tt{}Add\-Book} pages open.\eTD \bTD[align=middle] OK \eTD \eTR \eTABLE \noindent \stopitemize \stoptext I'm currently obliged to have non-splittable tables in lists. tIs there a way to make it render better? Thank you in advance! -- Regards. Eugene Toporov
Eugene Toporov wrote:
1. Framed text width is calculated not as I expect. The sample below makes framedtext box appear partially on right margin
\setupcolors[state=start] \setuplayout[width=9cm] \showframe \starttext \startitemize[n,packed] \item A normal item paragraph, which normaly gets wrapped ok.\par
\startframedtext[background=screen,frame=off,width=\textwidth] Some listing as framedtext whose width seems calculated incorrectly. \stopframedtext \stopitemize \stoptext
In LaTeX you have a \linewidth command (compare the difference with \textwidth, which doesn't change): \documentclass{article} \begin{document} linewidth: \the\linewidth, textwidth: \the\textwidth \begin{itemize} \item linewidth: \the\linewidth, textwidth: \the\textwidth \end{itemize} \end{document} However, in ConTeXt the linewidth is reserved for "rule thickness" or something similar. Which is the ConTeXt alternative to LaTeX's \linewidth? Mojca
Mojca Miklavec wrote:
However, in ConTeXt the linewidth is reserved for "rule thickness" or something similar. Which is the ConTeXt alternative to LaTeX's \linewidth?
There is no such thing, I believe. There is \columnwidth when in colums, but outside that I normally do something like \the\dimexpr \hsize-\leftskip-\rightskip\relax Greetings, Taco
Wow, that's really something! And it works!
Do you think such "thing" telling the real text width could be useful in
ConTeXt?
A big thank you once again!
On 8/26/05, Taco Hoekwater
Mojca Miklavec wrote:
However, in ConTeXt the linewidth is reserved for "rule thickness" or something similar. Which is the ConTeXt alternative to LaTeX's \linewidth?
There is no such thing, I believe. There is \columnwidth when in colums, but outside that I normally do something like
\the\dimexpr \hsize-\leftskip-\rightskip\relax
Greetings, Taco
-- Regards. Eugene Toporov
Taco Hoekwater wrote:
Yes, I think so. Something like \localtextwidth maybe.
Mojca Miklavec wrote: there is already \setlocalhsize and \localhsize 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 -----------------------------------------------------------------
Thanks, Hans!
To make it work I had to use your suggestion given in this lest earlier
\startlinecorrection
\setlocalhsize \hsize\localhsize
\startframedtext
...
\stopframedtext
\stoplinecorrection
However, is there any chance to get an answer to my second question about
splitting natural tables placed inside itemized list? it is in the original
message for the thread.
Any ideas?
Thanks in advance.
On 8/29/05, Hans Hagen
Mojca Miklavec wrote:
Taco Hoekwater wrote:
Yes, I think so. Something like \localtextwidth maybe.
there is already \setlocalhsize and \localhsize
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.comhttp://www.pragma-ade.com | www.pragma-pod.nl http://www.pragma-pod.nl -----------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- Regards. Eugene Toporov
Mojca Miklavec wrote:
However, in ConTeXt the linewidth is reserved for "rule thickness" or something similar. Which is the ConTeXt alternative to LaTeX's \linewidth?
\setlocalhsize \the\localhsize 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 -----------------------------------------------------------------
participants (5)
-
Eugene Toporov
-
Hans Hagen
-
Hans Hagen Outside
-
Mojca Miklavec
-
Taco Hoekwater