[NTG-context] indentnext question
Hi, Am I missing something, or \setupitemize[indentnext=no] not working (anymore?) Greetings, Taco % demo file \setupindenting[big,yes] \setupitemize[indentnext=no] \starttext \startitemize \item one \stopitemize Not indented paragraph (hopefully). Indented paragraph. \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] font problems again
I used to work with the TeX i-Package install. But every once in a while tex has to be updated. Then I was confronted with fairly hefty downloads for my humble isdn-telephone connection (not everyone has adsl). That's the reason I switched over to installing teTeX and ConTeXy directly. Not much of a pain with an installer shell script and a fast machine. But thanks for your interest anyway. On Nov 14, 2005, at 8:51, Gerben Wierda wrote: With the last release of context the problem of not getting cm fonts is over. These are now found. However, other font selections bring new difficulties. I tried various combinations but did not succeed. The simple program (using TeXShop): Since you are using Mac OS X, if you install the TeX i-Package, you get the texmf tree of teTeX 3.0 as well, but with a replacement of old Latin Modern with new. A newer ConTeXt assumes the newer Latin Modern afaik. The ConTeXt updater i-Package will get you the latest ConTeXt in texmf.local. If such an install still does not get you a working ConTeXt, I'd be interested to find out why (and we can help each other) because it is my goal that you have a working ConTeXt after such an install). G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context met vriendelijke groet, Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Index
Hans, many thanks for the recent fixes on index sorting in the new ruby scripts. Can I offer another test file in which some errors still show up, in the hope that these too can be ironed out? The following shows two problems, culled from a much bigger project. It should be clear from the output what the problems are, but basically 1. there are three separate spans (\startregister...\stopregister pairs) with the same term content (these three separate spans coalesce) which get coalesced into one strange a-b-c-d span, despite having been given different sort keys (I added numbers to the end of the sort keys to differentiate them). 2. there are three refs and a span all with the same term content (these mixed refs and spans are in the wrong order), and they get sorted into the wrong order in the output (the span comes before the refs, despite coming after in page order). So in my output, my index page at the back has the following content: these mixed refs and spans are in the wrong order 1/12–1/13, 1/2, 1/10, 1/14 these three separate spans coalesce 1/1–1/2–1/5–1/7 whereas what I'd hope to see is: these mixed refs and spans are in the wrong order 1/2, 1/10, 1/12–1/13, 1/14 these three separate spans coalesce 1/1–1/2, 1/3–1/5, 1/6–1/7 Really hope you can hammer out these two bugs, it would really help me! Thanks, Duncan \defineregister[Index][Indices] \setupregister[Index][2,balance=no,distance=1em,partnumber=no,chapternumber=yes,pagestyle=,separator=/,indicator=no] \starttext \startbodymatter \setuppagenumbering[state=start,alternative={singlesided,doublesided}, location=bottom,way=bychapter,partnumber=no, chapternumber=yes,numberseparator={/}] \chapter{Economic Concepts, Issues and Tools} \input knuth\par {\bf ttssc span 1 starts} \startregister[Index][these three separate spans coalesce1]{these three separate spans coalesce}% \dorecurse{4}{\input knuth\par} {\bf ttssc span 1 stops} \stopregister[Index][these three separate spans coalesce1]% \input knuth {\bf tmrasaitwo ref 1} \Index[these mixed refs and spans are in the wrong order1]{these mixed refs and spans are in the wrong order}% \dorecurse{4}{\input knuth\par} {\bf ttssc span 2 starts} \startregister[Index][these three separate spans coalesce2]{these three separate spans coalesce}% \dorecurse{8}{\input knuth\par} {\bf ttssc span 2 stops} \stopregister[Index][these three separate spans coalesce2]% \dorecurse{4}{\input knuth\par} {\bf ttssc span 3 starts} \startregister[Index][these three separate spans coalesce3]{these three separate spans coalesce}% \dorecurse{5}{\input knuth\par} {\bf ttssc span 3 stops} \stopregister[Index][these three separate spans coalesce3]% \dorecurse{8}{\input knuth\par} \input knuth {\bf tmrasaitwo ref 2} \Index[these mixed refs and spans are in the wrong order2]{these mixed refs and spans are in the wrong order}% \dorecurse{8}{\input knuth\par} {\bf tmrasaitwo span 1 starts} \startregister[Index][these mixed refs and spans are in the wrong order3]{these mixed refs and spans are in the wrong order}% \dorecurse{4}{\input knuth\par} {\bf tmrasaitwo span 1 stops} \stopregister[Index][these mixed refs and spans are in the wrong order3]% \dorecurse{4}{\input knuth\par} \input knuth {\bf tmrasaitwo ref 3} \Index[these mixed refs and spans are in the wrong order4]{these mixed refs and spans are in the wrong order}% \dorecurse{3}{\input knuth\par} \stopbodymatter \startbackmatter \chapter{Index} \setuppagenumbering[numberseparator=/]\placeIndex\page[yes] \stopbackmatter \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] indentnext question
Hans Hagen wrote: Taco Hoekwater wrote: Hi, Am I missing something, or \setupitemize[indentnext=no] not working (anymore?) not 'anymore', more 'not as you expected' -) this feature is not supported at the specific item group level, only for all itemgroups (took me a while to see that one, after entering panic-bug mode); Sorry I scared you. :-) Thanks for the patch Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Literate programming ConTeXt
Hi, Taco Thank you for your interest. What I meant is: If you are working with CWEB, is it possible to typeset with ConTeXt the weaved files of a program? Marcus Vinicius __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Index
Duncan Hothersall wrote: Hans, many thanks for the recent fixes on index sorting in the new ruby scripts. Can I offer another test file in which some errors still show up, in the hope that these too can be ironed out? The following shows two problems, culled from a much bigger project. It should be clear from the output what the problems are, but basically i'll send you a patch (your example code is part of the problem -) Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] indentnext question
Monday, November 14, 2005 Hans Hagen wrote: not 'anymore', more 'not as you expected' -) this feature is not supported at the specific item group level, only for all itemgroups (took me a while to see that one, after entering panic-bug mode); BTW, could you please consider adding the indentnext=auto option to all places that support indentnext? This is a very simple patch I already offered in the list, see for example http://www.mail-archive.com/ntg-context@ref.ntg.nl/msg01739.html http://www.mail-archive.com/ntg-context@ref.ntg.nl/msg01744.html Of course it needs to be updated to new code. It's an important for those of us that (like me) have displayed material that terminates the paragraph, and displayed material that doesn't (displayed material = itemgroups, formulas, quotations etc). In this case, the blank lines/\pars after the displayed material are significant, since they tell if the subsequent text is still part of the previous paragraph or not. Can you please consider it for inclusion in the main tree? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Not resetting chapter number on new part
Friday, November 11, 2005 Taco Hoekwater wrote: Giuseppe Bilotta wrote: I would like the latter to be numbered 2, not 1. I can of course do this by hacking \part, but I would like to know if there is a way to prevent number reset (something like resetchapter=no). It looks like \setuphead[part][resetnumber=no] maybe does what you want? *SMACK* Oh yes of course thanks :) -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] The whole (sub)section on a single page
Taco Hoekwater wrote: Mojca Miklavec wrote: It doesn't need to automatically determine the subsection boundaries automatically (although this would be great), so I can write something like this: \startmaterialforonepage \subsection{split only if too long for one page} \dorecurse{10}{whatever comes here \dots } \stopmaterialforonepage Do you want something like this? \long\def\startmaterialforonepage#1\stopmaterialforonepage% {\setbox0\vbox{#1}\ifdim\ht0\textheight \page\fi #1} Thak you, Taco. Yes, this is almost exactly what I wanted to do, except that I would substitute \ifdim\ht0\textheight with \ifdim\ht0\theremainingpageheight How/where can I get \theremainingpageheight? I saw some strange keywords like \pagegoal, \pagetotal spread through the source, ... but I have no clue what they are for and if they have anyting to do with what I'm looking for. Thans a lot, Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] indentnext question
Taco Hoekwater wrote: Hi, Am I missing something, or \setupitemize[indentnext=no] not working (anymore?) Greetings, Taco % demo file \setupindenting[big,yes] \setupitemize[indentnext=no] \starttext \startitemize \item one \stopitemize Not indented paragraph (hopefully). Indented paragraph. \stoptext not 'anymore', more 'not as you expected' -) this feature is not supported at the specific item group level, only for all itemgroups (took me a while to see that one, after entering panic-bug mode); here is a patch that makes it work for individual itemgroups; i'll patch add this feature. \unprotect \def\doinitializeitemgrouplevel#1% {\copyparameters [\??op\currentitemgroup#1][\??oo] [\c!width,\c!factor,\c!distance,\c!align,\c!option, \c!style,\c!marstyle,\c!symstyle,\c!headstyle, \c!color,\c!marcolor,\c!symcolor,\c!headcolor, \c!beforehead,\c!afterhead,\c!before,\c!inbetween,\c!after, \c!stopper,\c!placestopper,\c!indenting, % indentnext added \c!n,\c!inner,\c!symbol,\c!margin,\c!items, \c!leftmargin,\c!rightmargin,\c!indentnext, \c!start,\c!lefttext,\c!righttext]} \def\stopitemgroup {\iftextitems \removeunwantedspaces\space\ignorespaces \else \par \fi \ifnum\itemcolumndepth=\zerocount \dolistreference \fi % beware ! \iffirstlist \else \endgroup \fi % toegevoegd, eerste \som opent groep \ifnum\itemcolumndepth=\itemlevel\relax \stopcolumns \doglobal\newcounter\itemcolumndepth \getitemparameter\itemlevel\c!after \else \ifnum\itemlevel=\plusone \doitembreak\allowbreak \getitemparameter1\c!after %\dochecknextindentation\??oo % old call \dochecknextindentation{\??op\currentitemgroup\itemlevel}% new call \else % nieuw, not yet nobreak handling \ifcase\autoitemgroupspacing \getitemparameter\itemlevel\c!after \or \getitemparameter\itemlevel\c!after \fi \fi \fi \endgroup \doglobal\decrement(\itemlevel,\itemincrement)% \egroup \iftextitems\else\par\fi} \setupindenting[medium,yes] \setupitemize[indentnext=no] \starttext \input tufte \par \startitemize \item \input tufte \par \input tufte \stopitemize \input tufte \par \input tufte \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] alignment in cells without alignmentcharacter
Peter Münster wrote: On Mon, 14 Nov 2005, Taco Hoekwater wrote: I am not sure what you want achieve here. Can you create a fake table that shows what you have in mind? Here is a fake table (alignment on the left side of the decimal point): 1,23% 12,3% 123% Ok, I understand you now (now I have to figure out how to get the desired result ...) Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] alignment in cells without alignmentcharacter
On 11/13/05, Taco Hoekwater [EMAIL PROTECTED] wrote: Mojca Miklavec wrote: Is there an elegant way which would align those numbers as if they had an additional slash on the right? I was thinking about placing a Browsing through the source I've found two approaches: 1. A currently undocumented, but nice clean solution: \chardef\characteralignmentmode=2 Thank you! Found in supp-ali.tex under %D Yet undocumented. :) Than was exactly the answer I was looking for. (with) 2. A not at all elegant solution, that doesn't depend on a hidden feature: \unexpanded\def\hide#1{\hphantom{/}} \setupTABLE[c][1][ as before ...] \bTABLE \bTR\bTD 01/1 \eTD\eTR \bTR\bTD 02/13 \eTD\eTR \bTR\bTD 03\hide/\eTD\eTR \bTR\bTD 314/2 \eTD\eTR \bTR\bTD 315\hide/\eTD\eTR \eTABLE Interesting ;) I was thinking about making a \hphantom, but didn't come to the idea of having blind arguments. I didn't know how the mechanism of finding an alignment character works. For Peter: are you looking for the code below or for an automated solution to do it? \def\mypercent#1{\hbox to 0pt{\%\hss}} \chardef\characteralignmentmode=2 \setupTABLE[c][1][aligncharacter=yes,alignmentcharacter={,}] \bTABLE \bTR\bTD 1,23\% \eTD\eTR \bTR\bTD 12,3\% \eTD\eTR \bTR\bTD 123\mypercent, \eTD\eTR \eTABLE Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] alignment in cells without alignmentcharacter
Btw: How do I prevent different cell widths in the following two tables? \starttext \def\mypercent#1{\hbox to 0pt{\%\hss}} \chardef\characteralignmentmode=2 \setupTABLE[c][1][aligncharacter=yes,alignmentcharacter={,}] \bTABLE \bTR\bTD 1,23\% \eTD\eTR \bTR\bTD 12,3\% \eTD\eTR \bTR\bTD 123, \eTD\eTR \eTABLE \bTABLE \bTR\bTD 1,23\% \eTD\eTR \bTR\bTD 12,3\% \eTD\eTR \bTR\bTD 123\mypercent, \eTD\eTR \eTABLE \stoptext Mojca (And sorry for a couple of strange typos/unfinished sentences in my last mail.) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] The whole (sub)section on a single page
Mojca Miklavec wrote: Taco Hoekwater wrote: Mojca Miklavec wrote: It doesn't need to automatically determine the subsection boundaries automatically (although this would be great), so I can write something like this: \startmaterialforonepage \subsection{split only if too long for one page} \dorecurse{10}{whatever comes here \dots } \stopmaterialforonepage Do you want something like this? \long\def\startmaterialforonepage#1\stopmaterialforonepage% {\setbox0\vbox{#1}\ifdim\ht0\textheight \page\fi #1} Thak you, Taco. Yes, this is almost exactly what I wanted to do, except that I would substitute \ifdim\ht0\textheight with \ifdim\ht0\theremainingpageheight How/where can I get \theremainingpageheight? I saw some strange keywords like \pagegoal, \pagetotal spread through the source, ... but I have no clue what they are for and if they have anyting to do with what I'm looking for. that's always tricky, because it's not really possible to determine the rest of the available space without entering the output routing, which then spoils spacing (there is \testpage[n] with n being a minimal number of lines, so, \testpage[10] will move to the next page if there are less than 10 lines) Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Context 2005.11.14 Released
Hello all, I am pleased to announce that the new ConTeXt release from Hans Hagen can be downloaded as of now from the Pragma ADE website or one of its mirrors. http://www.pragma-ade.com/context/current/cont-tmf.zip http://www.pragma-ade.com/context/current/cont-tmf.zip http://mirror.contextgarden.net/context/current/cont-tmf.zip If you have not updated your Latin Modern fonts in the past month, then you will need to fetch the latest redistribution of the LM fonts as well: http://www.pragma-ade.com/context/current/cont-lmt.zip http://www.pragma-ade.com/context/current/cont-lmt.zip http://mirror.contextgarden.net/context/current/cont-lmt.zip New features compared to the 2005.11.11 version: * New key: align= now allows the keys from \setupalign, e.g.: \framed[align={normal,stretch,verytolerant}]{...} * The macro \uncompresslist is now in the core (from wiki) * US English hyphenation files are added to the distribution Bugs fixed since the 2005.11.11 * Use newer names for the CM/LM font reencoding files * A bug in conversion sets that became apparent when footnotes where numbered by page * Doubling the use of \setupindenting will no longer enable the indentation. FYI.: The correct way to enable indentation of paragraphs is: \setupindenting[medium,yes] The current release has version 2005.11.14. As usual, there is a page with more detailed release notes available on the Wiki, see: http://wiki.contextgarden.net/Context_2005.11.14 Happy TeXing, Taco Hoekwater ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
RE: [NTG-context] Context 2005.11.14 Released
:-) fix for dvipdfmx map files? :-) Best Idris Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] indentnext question
Giuseppe Bilotta wrote: BTW, could you please consider adding the indentnext=auto option to all places that support indentnext? This is a very simple patch I already offered in the list, see for example http://www.mail-archive.com/ntg-context@ref.ntg.nl/msg01739.html http://www.mail-archive.com/ntg-context@ref.ntg.nl/msg01744.html interesting link ... watch the latex advertisements on the right -) Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context