[NTG-context] modules.pdf
Fix partial contents; see http://contextgarden.net/User:Luigi.scarso/modules.pdf luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] contextgarden.net move
Hello all ConTeXt users, I'll move the website contextgarden.net to another (bigger, faster) machine tomorrow. Expect some downtime and inconveniences, although I try to make the transition smooth. I might disable wiki editing on the old machine to avoid data loss. Please report any errors you'll spot. Thanks for your patience, Patrick -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] blocks in itemize
Rob Ermers wrote: Hi, If I make sure there is enough space, i.e. more than one space, between the \begin... and the text, it works! However in the pdf the item drops a line down, like this: See \def\dodefineblock in core-buf.tex. Does \setupblock[Nederlandsblok][before=,after=] \setupblock[Engelsblok][before=,after=] solve your problem? Besides that, I would prefer to define something like \def\NlEn#1#2{% \beginNederlandsblok% {#1}% \endNederlandsblok% \beginEngelsblok% {#2}% \endEngelsblok} in your case, but you should ask someone else why this doesn't work (I guess it's some strange expansion problem again - I never understood that topic). Another extremely lightweight TeX solution: \newif\ifenglish \englishtrue % \englishfalse \def\NlEn#1#2{\ifenglish{#2}\else{#1}\fi} \starttext \NlEn{Dutch}{English} \stoptext However, if you want to have more complex stuff in it, you probably have to use a more complex definition (send an exaple that fails). Mojca \defineblock[Nederlandsblok, Engelsblok] \starttext \startitemize \item\beginNederlandsblok Ik vraag me af of ze ook appels verkopen \endNederlandsblok \beginEngelsblok I really wonder if they do sell apples \endEngelsblok \item \beginNederlandsblok Ik vraag me af of ze ook appels verkopen \endNederlandsblok \beginEngelsblok I really wonder if they do sell apples \endEngelsblok \stopitemize \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] blocks in itemize
Hi everybody, The solution below works. Thanks a lot! Using Mojca's solution plus a newline after the command apparently does the trick. After that, I didn't try the other solution, which resembles Olivier's. Kind regards, Robert \defineblock[Nederlandsblok] \defineblock[Engelsblok] \setupblock[Nederlandsblok][before=,after=] \setupblock[Engelsblok][before=,after=] \hideblocks[Nederlandsblok] %\hideblocks[Engelsblok] \starttext there \beginNederlandsblok Ik vraag me af of ze ook appels verkopen 1 \endNederlandsblok \beginEngelsblok I really wonder if they do sell apples 1 \endEngelsblok there there \startitemize \item \beginNederlandsblok% Ik vraag me af of ze ook appels verkopen 2 \endNederlandsblok \beginEngelsblok I really wonder if they do sell apples 2 \endEngelsblok \item \beginNederlandsblok Ik vraag me af of ze ook appels verkopen 3 \endNederlandsblok \beginEngelsblok I really wonder if they do sell apples 3 \endEngelsblok \stopitemize \stoptext Mojca Miklavec wrote: Rob Ermers wrote: Hi, If I make sure there is enough space, i.e. more than one space, between the \begin... and the text, it works! However in the pdf the item drops a line down, like this: See \def\dodefineblock in core-buf.tex. Does \setupblock[Nederlandsblok][before=,after=] \setupblock[Engelsblok][before=,after=] solve your problem? Besides that, I would prefer to define something like \def\NlEn#1#2{% \beginNederlandsblok% {#1}% \endNederlandsblok% \beginEngelsblok% {#2}% \endEngelsblok} in your case, but you should ask someone else why this doesn't work (I guess it's some strange expansion problem again - I never understood that topic). Another extremely lightweight TeX solution: \newif\ifenglish \englishtrue % \englishfalse \def\NlEn#1#2{\ifenglish{#2}\else{#1}\fi} \starttext \NlEn{Dutch}{English} \stoptext However, if you want to have more complex stuff in it, you probably have to use a more complex definition (send an exaple that fails). Mojca \defineblock[Nederlandsblok, Engelsblok] \starttext \startitemize \item\beginNederlandsblok Ik vraag me af of ze ook appels verkopen \endNederlandsblok \beginEngelsblok I really wonder if they do sell apples \endEngelsblok \item \beginNederlandsblok Ik vraag me af of ze ook appels verkopen \endNederlandsblok \beginEngelsblok I really wonder if they do sell apples \endEngelsblok \stopitemize \stoptext ___ 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] 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=""> 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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context