[Fwd: Re: [NTG-context] \placelist disturbs grid?]
Hello, I was perhaps little descriptive in my last question. Let me discribe my real problem: I'd like to typeset a table of content as follows: -- Part 1 Chapter 1 Section 1Section 2Section3 Section with longer name 4Section 5 Section 6 Chapter 2 Section 1 Section 2... --- Everything has to be on the grid. Problem is that 'Part 1' and 'Chapter 1' are typeset with bigger font (\bfa and \tfa respectively). And grid is too tight to fit \bfa/\tfa struts. But the character size is optically OK even preserving grid due to blank lines around bigger font. I do not want to use \placetogrid in this case since AFAIK it adds one blank line more. Solution: not to add struts to list items and set \lineskiplimit=-\maxdimen. I discovered that there is alternative 'none' that does not place struts. The only problem is that 'none' create one long line like --- Section 1Section 2Section3 Section with longer name 4Section 5Section6 --- oversized \textwidth. So the question is: How to typeset list items to paragraph without struts? Minimal test code is bellow. Thank you for replay Vit Hans Hagen wrote: Vit Zyka wrote: Hello Hans, Taco, and the next gurus, sorry for bother with another thing I can not understand. Very high glyphs like \v S disturb grid in the \placelist. The same glyph in the common paragraph with the same (intentionally) interline setting preserves grid: --- \setupbodyfont[10pt,rm] \setupinterlinespace[line=12pt] \setuplayout[grid=yes,width=8cm] \showgrid \writetolist[section]{}{See the next line:} \writetolist[section]{}{\v Sejba} \writetolist[section]{}{Another list line} \starttext \v Sejba\par Here grid is OK, but in \type{placelist}: \placelist[section] no! \stoptext -- I was looking in definitions for some font-size dependent line setting, I also tried to \setuplist[section]{style=\baselineskip=12pt\lineskiplimit=-10pt} but without success to lounging on the grid. this is the default ratio: \setupinterlinespace [height=.72, depth=.28] Thank you Hans; after some experimenting I understood: - height and depth in \setupinterlinespace are baseline-ratio/size of struts (add description to tex-show) - some my chars (/,\v S, \tfa, ...) oversized \strut size of any ratio - list items are typeset with struts (perhaps all alternative) - only alternative without strut is 'none' with command=\Mycommand def So I do know how to preserve grid. But I do not know HOW TO TYPESET \Mycommand TO FIT THE PARAGRAPH WIDTH. It seem it is not in the restricted horizontal mode and continue on one long line. And another question/request: can the list distance param (alternative d,...) be glue instead of skip? For better line fitting. example: -- \setupbodyfont[10pt,rm] \setupinterlinespace[line=12pt,height=.77,depth=.23] \setuplayout[grid=yes,width=8cm] \showgrid \setuplist[section] [style=\tfd,alternative=none,command=\MyListItem] \def\MyListItem#1#2#3{{\tfb (#1-#2-#3) }} \starttext \writetolist[section]{}{See the next line} \writetolist[section]{}{\v Sejba} \writetolist[section]{}{Another list line} \writetolist[section]{}{And the last one} \lineskiplimit=-10pt Line\par Anothet line of \v Sejba\par \placelist[section] \strut %% should be! why? After list line. \stoptext -- Vit -- === Ing. Vít Zýka, Ph.D. TYPOkvítek database publishing databazove publikovani data maintaining and typesetting in typographic quality priprava dat a jejich sazba v typograficke kvalite tel.: (+420) 777 198 189 www: http://typokvitek.com === ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Verbatim with linebreaks sillyness
Taco, Just tried this and it is really cool! But how can I make spaces without the special space character? ThanksOn 7/29/05, Taco Hoekwater [EMAIL PROTECTED] wrote: Hi,I saw this on the wiki: http://contextgarden.net/Verbatim_with_line_breaksand it seemed like a fun idea to play with for a bit. How's this?Cheers, Taco%% BREAK is a special pretty handler that auto-wraps lines% to fit the current hsize.\gdef\BREAKsetspecials% {\dorecurse{256}{\setpretty\numexpr \recurselevel-1\relax=10 }} \gdef\BREAKsethandlers% {\installprettyhandler 10 \BREAKtypeone}\newcount\BREAKcharcounter\newcount\BREAKmaxcharcount\def\BREAKtypeone#1% {\advance\BREAKcharcounter 1\ifnum\BREAKcharcounter \BREAKmaxcharcount \hfil\break \BREAKcharcounter=1\fi\getpretty{#1}}\def\BREAKsetcounters% {\setbox\scratchbox=\hbox{0}%\BREAKmaxcharcount=\hsize\divide\BREAKmaxcharcount \wd\scratchbox \def\flushrestofverbatimline{\BREAKcharcounter=0 }%\BREAKcharcounter=0 }\gdef\setupprettyBREAKtype% {\def\prettyidentifier{BREAK}%\BREAKsetcounters\BREAKsethandlers\BREAKsetspecials} \installprettytype [BREAK] [BREAK]\starttext\framed[width=8cm, align=flushleft]{%\setuptyping[option=BREAK]\starttypinghööah:aloh/aa?lha llol!loh%lloh#allhal\lohhll;ohohal~loll ohalölo \stoptyping}\stoptext___ntg-context mailing listntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context-- Regards.Eugene Toporov ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] style in registers
Good evening, I have opened another topic. Why both Hans's page numbers are bold? -- \defineregister[Name][Names] \setupregister[Name][pagestyle=\it] \setupregister[Name][bf][pagestyle=\bf] \starttext Names: \Name[bf::]{Hans} \Name{Taco} \page[yes] \Name{Hans} \placeregister[Name] \stoptext -- vit ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Verbatim with linebreaks sillyness
Eugene Toporov wrote: Taco, Just tried this and it is really cool! But how can I make spaces without the special space character? Like so: \def\BREAKtypeone#1% {\advance\BREAKcharcounter 1 \ifnum\BREAKcharcounter \BREAKmaxcharcount \hfil\break \BREAKcharcounter=1 \fi \ifnum#1=32 % the character number for a space \setbox\scratchbox=\hbox{0}% \kern \wd\scratchbox \else \getpretty{#1}% \fi} Cheers again, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Presentation
Thank you all, Yes, I opened the file with jedit and saw the small square. Strange, I copied and pasted form the tex file into the new tex file. All with TeXShop. Now, I have (luckily) the announced problem with fonts. I'm not on my machine and I cannot try the changes you all proposed. As soon as I can (monday), I will test all. Thanks again (it's a great community) -a- On 6 Aug 2005, at 15:53, piskala upendran wrote: hello valle, I did test your example. It complained as you said. however, it works ok under miktex + winedt with the following changes. a. remove the small square in front of the \usemodule[pre-08]. b. \input reich changed to knuth because \citaat of reich is not decoded. I do not know the reason. Any contexpert can only tell.otherwise it compiled smoothly. you can try. regards upendran __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context Andrea Valle Laboratorio multimediale G. Quazza Facoltà di Scienze della Formazione Università degli Studi di Torino [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context