Re: [NTG-context] natural tables - first row not gray
2007/4/5, MASON Peter J <[EMAIL PROTECTED]>: G'day, firstly thanks for your contextgarden.net website and the "live-context" facility. I checked my results against it. Could I seek help on this please. I'm expecting rows 2-4 of the table resulting from the segment below to have odd columns in rows 2-4 with white-on-black but all columns are coming out as black-on-white. I also tried completely specifying it by supplying \setupTABLE[even][2-4] ... as well. Something obvious I expect, but I'm missing it. Thanks. \setupcolors[state=start] \starttext \bTABLE \setupTABLE[first][first][align=middle, background=color,backgroundcolor=gray,foregroundcolor=black] \setupTABLE[odd][2,3,4][align=left,background=color,backgroundcolor=black,foregroundcolor=white] Hi Peter, can you try the follwing setups: \setupTABLE[c][odd][align=left,background=color,backgroundcolor=black,foregroundcolor=white] \setupTABLE[r][first][align=middle,background=color,backgroundcolor=gray,foregroundcolor=black] Wolfgang \bTR \bTD [nc=6] Prime Unit \eTD \eTR \bTR \bTD Plate: \eTD \bTD x \eTD \bTD State: \eTD \bTD s \eTD \bTD Type: \eTD \bTD t \eTD \eTR \bTR \bTD Make: \eTD \bTD \eTD \bTD GCM: \eTD \bTD [nc=3] \eTD \eTR \bTR \bTD Chassis: \eTD \bTD \eTD \bTD GVM: \eTD \bTD [nc=3] vvv \eTD \eTR \eTABLE \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] spreading natural tables across the page
2007/4/5, MASON Peter J <[EMAIL PROTECTED]>: I'm trying to have my tables extend across the full (\textwidth) of the page. In LaTeX I was using tabular*, specifying a \textwidth for width, and with approp use of @{\extracolsep\fill}} bu am not having any success. Basically, in ConteXT I want odd columns to act as labels and be tight fitting but even cols to be the values an NOT be tight-fitting, within a page-wide table, ie some tight, some not. As well, I' d like not to be explicitly specifying column width. I saw examples using option=stretch somewhere but am not able to get my use of same happening. As well, I' d like not to be explicitly specifying column width. Could a kind person please point me to an example of this usage. Thanks. Hi Peter, \starttext \bTABLE[option=stretch] \bTR \bTD Left \eTD \bTD Right \eTD \eTR \eTABLE \stoptext Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] spreading natural tables across the page
I'm trying to have my tables extend across the full (\textwidth) of the page. In LaTeX I was using tabular*, specifying a \textwidth for width, and with approp use of @{\extracolsep\fill}} bu am not having any success. Basically, in ConteXT I want odd columns to act as labels and be tight fitting but even cols to be the values an NOT be tight-fitting, within a page-wide table, ie some tight, some not. As well, I' d like not to be explicitly specifying column width. I saw examples using option=stretch somewhere but am not able to get my use of same happening. As well, I' d like not to be explicitly specifying column width. Could a kind person please point me to an example of this usage. Thanks. IMPORTANT NOTICE: This e-mail and any attachment to it are intended only to be read or used by the named addressee. It is confidential and may contain legally privileged information. No confidentiality or privilege is waived or lost by any mistaken transmission to you. The RTA is not responsible for any unauthorised alterations to this e-mail or attachment to it. Views expressed in this message are those of the individual sender, and are not necessarily the views of the RTA. If you receive this e-mail in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] natural tables - first row not gray
G'day, firstly thanks for your contextgarden.net website and the "live-context" facility. I checked my results against it. Could I seek help on this please. I'm expecting rows 2-4 of the table resulting from the segment below to have odd columns in rows 2-4 with white-on-black but all columns are coming out as black-on-white. I also tried completely specifying it by supplying \setupTABLE[even][2-4] ... as well. Something obvious I expect, but I'm missing it. Thanks. \setupcolors[state=start] \starttext \bTABLE \setupTABLE[first][first][align=middle, background=color,backgroundcolor=gray,foregroundcolor=black] \setupTABLE[odd][2,3,4][align=left,background=color,backgroundcolor=black,foregroundcolor=white] \bTR \bTD [nc=6] Prime Unit \eTD \eTR \bTR \bTD Plate: \eTD \bTD x \eTD \bTD State: \eTD \bTD s \eTD \bTD Type: \eTD \bTD t \eTD \eTR \bTR \bTD Make: \eTD \bTD \eTD \bTD GCM: \eTD \bTD [nc=3] \eTD \eTR \bTR \bTD Chassis: \eTD \bTD \eTD \bTD GVM: \eTD \bTD [nc=3] vvv \eTD \eTR \eTABLE \stoptext IMPORTANT NOTICE: This e-mail and any attachment to it are intended only to be read or used by the named addressee. It is confidential and may contain legally privileged information. No confidentiality or privilege is waived or lost by any mistaken transmission to you. The RTA is not responsible for any unauthorised alterations to this e-mail or attachment to it. Views expressed in this message are those of the individual sender, and are not necessarily the views of the RTA. If you receive this e-mail in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] OpenType in Windows
On 4/4/07, Vyatcheslav Yatskovsky <[EMAIL PROTECTED]> wrote: > Hello, > > I heard that Mac users can typeset in ConTeXt with OpenType fonts. Is > it possible on Windows platform? (either in MiKTeX or TeXLive?) This uses xetex. It works for sure if you count running the linux version of TeX Live 2007 in a virtual machine, and very likely will work in native Win32, but I haven't tried it. Note that maths still uses the conventional math fonts (e.g., Type 1). -- George N. White III <[EMAIL PROTECTED]> Head of St. Margarets Bay, Nova Scotia ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] OpenType in Windows
Hello, I heard that Mac users can typeset in ConTeXt with OpenType fonts. Is it possible on Windows platform? (either in MiKTeX or TeXLive?) Vyatcheslav Yatskovsky ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Makeindex and Context
John R. Culleton wrote: > I like the extended feature set of makeindex so I creatred my own > little routine to use it with Context on a recent project. Here is > the code: > > \newwrite\ind > \immediate\openout\ind=book.idx > \def\sidx#1{\write\ind{\\indexentry{#1}{\the\pageno}}} > > It works fine from the indexing point of view. But if the \sidx{} tag > is embedded in a paragraph then some extra space is left where the > tag existed in the paragraph. I had to move all such tags to either > the beginning or the end of the paragraph. > > What did I fail to do? The one thing missing from your example is the thing that is causing the spaces: the actual input file. The definitions above look fine, and are certainly not the cause. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Vertical text alignment in nested natural tables
On Thu, 29 Mar 2007 23:16:43 -0400 "Brian R. Landy" <[EMAIL PROTECTED]> wrote: > I had played around with strut=yes, but had not realized I also > needed to set autostrut=no. That approach ended up working best; my > initial solution broke aligncharacter, and I like the table > environment to reset. It is a bit odd that it resets to something > different than the default. > > As an aside, what books are good for learning TeX programming for > ConTeXt? Anything besides the TeXBook (and I saw TeX by Topic > mentioned on the list the other day). > > > Thanks again, > Brian Hi Brian, the best method to control nested tables is by integrating a setup command for nested tables. \unprotect \def\setupresetTABLE {\dodoubleargument\getparameters[\@@tbl\@@tbl\@@tbl]} \def\resetallTABLEparameters% moet genest wel werken {\ifnum\TBLlevel>\plusone % in ieder geval \ifconditional\resetTABLEmode \presetlocalframed % breedte hoogte diepte offset [\@@tbl\@@tbl]%% achtergrond, achtergrondraster, achtergrondkleur \copyparameters [\@@tbl\@@tbl][\@@tbl\@@tbl\@@tbl] [\c!frameoffset,\c!backgroundoffset,\c!framecolor,\c!color, \c!strut,\c!autostrut,\c!aligncharacter,\c!alignmentcharacter, \c!style,\c!option,\c!maxwidth,\c!textwidth,\c!left,\c!right] \else \setupTABLE [\c!width=\v!fit, \c!height=\v!fit]% \fi \fi} \setupresetTABLE [\c!frameoffset=.5\linewidth, \c!backgroundoffset=\v!frame, \c!framecolor=\s!black, \c!color=, \c!style=, \c!strut=\v!yes, \c!autostrut=\v!no, \c!aligncharacter=\v!no, \c!alignmentcharacter={,}, \c!option=, \c!maxwidth=8em, \c!textwidth=\hsize, \c!left=, \c!right=] \protect \starttext \bTABLE \bTR \bTD {\bTABLE \bTR \bTD \eTD \bTD Swap \eTD \eTR \eTABLE} \eTD \eTR \eTABLE \stoptext Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Makeindex and Context
I like the extended feature set of makeindex so I creatred my own little routine to use it with Context on a recent project. Here is the code: \newwrite\ind \immediate\openout\ind=book.idx \def\sidx#1{\write\ind{\\indexentry{#1}{\the\pageno}}} It works fine from the indexing point of view. But if the \sidx{} tag is embedded in a paragraph then some extra space is left where the tag existed in the paragraph. I had to move all such tags to either the beginning or the end of the paragraph. What did I fail to do? -- John Culleton Able Indexing and Typesetting Precision typesetting (tm) at reasonable cost. Satisfaction guaranteed. http://wexfordpress.com ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] math: \usemathcollection and \enablemathcollection
I'm quite lost with \usemathcollection and \enablemathcollection -- I checked the manual, the wiki, and the source browser, but without success for my problems. I just don't get how math font switching works for e.g. Lucida fonts, and why it does not for my fonts in my setup. So: What is the correct use of \usemathcollection and \enablemathcollection i.e. where should these appear (and where not)? Do I need \enablemathcollection at all? In my current setup (see below), I have two problems: Major problem: I would like to switch my math fonts globally. Currently I have to apply \enablemathcollection e.g. after every \startcolumns (and after other environments as well), otherwise my math fonts are used, but not in the desired encoding, which results in wrong symbols shown. Minor problem: I would like make sure that all math symbols do come from my math fonts and aren't taken from CM or other fonts. Is this possible? E.g. could I get an error message (or some special black box or the like in my pdf file) for each math control sequence which is not (yet) defined in my current mathcollection? My current setup: -- an environment file "env-signa.tex" with (among many other definitions) \usetypescriptfile[type-opticals] \usetypescriptfile[type-minionpro] \usetypescriptfile[type-tymnmath] \usetypescript[MinionPro][ec] \setupbodyfont[MinionPro] \switchtobodyfont[MinionPro,9.6pt] -- a "type-minionpro.tex" file with \starttypescript [serif] [MinionProSizes] [ec] % (followed by many \definefontsynonym) \stoptypescript \starttypescript[MinionPro][ec] \usetypescript[serif][Opticals][size] \usetypescript[serif][MinionProSizes][ec] \usetypescript[newmath][MinionMath] %[size] \definebodyfontenvironment [9.6pt] [\s!text=9.6pt,\s!script=6.8pt,\s!scriptscript=4.9pt, \c!x=8.4pt,\c!xx=5.8pt,\c!big=11pt,\c!small=7.6pt] % further \definebodyfontenvironment entries \enablemathcollection[newmath] \usemathcollection[newmath] \quittypescriptscanning \stoptypescript -- a "math-newmath.tex" file with math font synonyms, definitions and some blocks like \startmathcollection[newmath] % (many \definemathsymbol entries) \stopmathcollection This is a general file for math fonts following "TeX NewMath" encodings (this should develop in a real ConTeXt module for general use) -- a "type-tymnmath.tex" file, setting up my math fonts, with \starttypescript[newmath][MinionMath] % (with % \definefontsynonym % and % \definebodyfont [9.6pt] [mm] % [ ... ] % entries) \stoptypescript -- and of courese a main file with \startproject project_signa \environment env_signa and components (chapter files) with \startcomponent kap_01 \project project_signa Thanks for any help! Johannes -- Johannes Kuester typoma mailto:[EMAIL PROTECTED] http://www.typoma.com ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] itemize in blocks
2007/4/4, Wolfgang Werners-Lucchini <[EMAIL PROTECTED]>: Hallo, what I am doing wrong with the following snipped? The \par in the \item does not work. --- \defineenumeration[question][location=top,text=Aufgabe] \defineblock[question] \starttext \chapter{Aufgaben} \beginquestion \question \startitemize[a] \item Zick \par % This \par does not work! Mehr Zick \stopitemize \endquestion \stoptext --- Wolfgang Hi, don't know why there is a problem but \endgraf instead of \par works for me. Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context