Re: [NTG-context] Background color of table cells?
On Fri, Jul 29, 2011 at 03:53, Alasdair McAndrew wrote: > I'm setting up a table, for which I'd like the first column to have a > background of a middle gray. According to the wiki, something like this > should work: > > \starttable[|p(4cm)|p(11.75cm)|] > \HL > \BL[1]\AR > \VL\tfa{\bf A bit of text}\VL A lot of text, which will be broken up into > several lines\VL\AR > \HL > \stoptable > > There are two problems here: (1) the background covers only the line of "A > bit of text" and not the entire cell, and (2) the background color is too > light. > > I experimented with this from the wiki: > > \starttabulate[|CR{red}c|CC{yellow}c|CM{green}c|CL{blue}c|] > \NC test \NC test \NC test \NC test \NC \NR > \NC test \NC test \NC test \NC test \NC \NR > \NC test \NC test \NC test \NC test \NC \NR > \NC test \NC test \NC test \NC test \NC \NR > \stoptabulate > > but it produced no colors at all (and yes, I do have colors turned on). > > How can I achieve the effect I'm after? > > Thanks, > Alasdair Not sure how to do it with all the other table interfaces (what is their deprecation status anyway?), but: % set background of first (1) column (c) to gray \setupTABLE[c][1][background=color,backgroundcolor=gray] \bTABLE \bTR \bTD test \eTD \bTD test \eTD \bTD test \eTD \bTD test \eTD \eTR \bTR \bTD test \eTD \bTD test \eTD \bTD test \eTD \bTD test \eTD \eTR \bTR \bTD test \eTD \bTD test \eTD \bTD test \eTD \bTD test \eTD \eTR \bTR \bTD test \eTD \bTD test \eTD \bTD test \eTD \bTD test \eTD \eTR \eTABLE The syntax looks rather familiar if you've ever constructed tables in HTML. You may wish to define your own color (before setupTABLE, and replacing "gray" with "myowngray" there): \definecolor[myowngray][s=0.3] "s=" defines a grayscale color; 0 is black, 1 is white. Of course, you may choose a different name. Cheers, ~~ Ondra ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Background color of table cells?
I'm setting up a table, for which I'd like the first column to have a background of a middle gray. According to the wiki, something like this should work: \starttable[|p(4cm)|p(11.75cm)|] \HL \BL[1]\AR \VL\tfa{\bf A bit of text}\VL A lot of text, which will be broken up into several lines\VL\AR \HL \stoptable There are two problems here: (1) the background covers only the line of "A bit of text" and not the entire cell, and (2) the background color is too light. I experimented with this from the wiki: \starttabulate[|CR{red}c|CC{yellow}c|CM{green}c|CL{blue}c|] \NC test \NC test \NC test \NC test \NC \NR \NC test \NC test \NC test \NC test \NC \NR \NC test \NC test \NC test \NC test \NC \NR \NC test \NC test \NC test \NC test \NC \NR \stoptabulate but it produced no colors at all (and yes, I do have colors turned on). How can I achieve the effect I'm after? Thanks, Alasdair ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Squashing up lines?
Thanks very much! -Alasdair On Fri, Jul 29, 2011 at 11:40 AM, Ondřej Hošek wrote: > On Fri, Jul 29, 2011 at 03:24, Alasdair McAndrew wrote: > > This means: minimal > > space before and after an itemize environment, and between items. > > \startitemize[joinedup,nowhite] > > http://wiki.contextgarden.net/Enumerations#Vertical_spacing > > > And also > > minimum space between lines. I'm using the Arial font, so as to most > > closely approximate the MS Word original. > > Space between lines: \setupinterlinespace[off] > (You may also use an actual dimension such as 1pt as an argument, in > case "off" is a bit too illegible already.) > > Space between paragraphs: \setupwhitespace[none] > > > Thanks, > > Alasdair > > Hope that helps, > ~~ Ondra > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ -- Blog: http://amca01.wordpress.com Web: http://bit.ly/Alasdair Facebook: http://www.facebook.com/alasdair.mcandrew ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Squashing up lines?
On Fri, Jul 29, 2011 at 03:24, Alasdair McAndrew wrote: > This means: minimal > space before and after an itemize environment, and between items. \startitemize[joinedup,nowhite] http://wiki.contextgarden.net/Enumerations#Vertical_spacing > And also > minimum space between lines. I'm using the Arial font, so as to most > closely approximate the MS Word original. Space between lines: \setupinterlinespace[off] (You may also use an actual dimension such as 1pt as an argument, in case "off" is a bit too illegible already.) Space between paragraphs: \setupwhitespace[none] > Thanks, > Alasdair Hope that helps, ~~ Ondra ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Squashing up lines?
I'm preparing a grant application, for which the template is given in MS Word, and for which the instructions are that the final application must be no more than 4 pages. I'm trying to re-create the Word doc in ConTeXt, and to keep within the page limit I'd like the text to be as tight as possible. This means: minimal space before and after an itemize environment, and between items. And also minimum space between lines. I'm using the Arial font, so as to most closely approximate the MS Word original. How can I do this? Thanks, Alasdair ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] BTW: Context Standalone
On 28-7-2011 11:17, luigi scarso wrote: 2011/7/28 Taco Hoekwater: Hi, On 07/12/11 17:27, Taco Hoekwater wrote: On 07/12/2011 05:17 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Is there any progress calling Context Minimals -> "Context Standalone"? I don't have strict overview what everything should be affected (wiki, manuals, setup batches?)... Mostly the wiki pages and neural paths in a few dozen heavy context users. The former are pretty simple to fix, the latter not so much :( So, I just went through and changed a few dozen wiki pages. What is not yet fixed: * the actual URL is of course still http://minimals.contextgarden.net/, and this is also what is used internally. That part is work for Mojca, eventually. * when the actual URL becomes fixed, another half a dozen or so wiki pages will need fixing. * Vyatcheslav's installer may need updating as well. * And we have to re-educate the old-time ConText users. So let's say goodbye minimals and welcome standalone ? Well, 'minimals' will probably serve as synonym for quite a while simply because it's edged in (at least my) mind and I actually have directories called 'minimals'. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] BTW: Context Standalone
On 07/28/11 10:54, Procházka Lukáš Ing. - Pontex s. r. o. wrote: > On Thu, 28 Jul 2011 10:28:30 +0200, Taco Hoekwater > wrote: > >> So, I just went through and changed a few dozen wiki pages. >> >> What is not yet fixed: >> >> * the actual URL is of course still http://minimals.contextgarden.net/, >> and this is also what is used internally. That part is work for Mojca, >> eventually. > > For start, to keep the URL alive, maybe > http://minimals.contextgarden.net should just redirect to e.g. > http://standalone.contextgarden.net (or something) > with a message "URL was moved... Please, update your link... Redirecting > in 2 seconds...". No need for that just yet. But I did add http://standalone.contextgarden.net as an alias of http://minimals.contextgarden.net and updated the header & footer HTML pages there. Also, rsync now knows of the existence of an extra 'standalone' module as well as the 'minimals' module which is still present. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] BTW: Context Standalone
2011/7/28 Taco Hoekwater : > Hi, > > On 07/12/11 17:27, Taco Hoekwater wrote: >> On 07/12/2011 05:17 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: >>> >>> Is there any progress calling Context Minimals -> "Context Standalone"? >>> >>> I don't have strict overview what everything should be affected (wiki, >>> manuals, setup batches?)... >> >> Mostly the wiki pages and neural paths in a few dozen heavy context >> users. The former are pretty simple to fix, the latter not so much :( > > So, I just went through and changed a few dozen wiki pages. > > What is not yet fixed: > > * the actual URL is of course still http://minimals.contextgarden.net/, > and this is also what is used internally. That part is work for Mojca, > eventually. > > * when the actual URL becomes fixed, another half a dozen or so wiki > pages will need fixing. > > * Vyatcheslav's installer may need updating as well. > > * And we have to re-educate the old-time ConText users. So let's say goodbye minimals and welcome standalone ? -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] BTW: Context Standalone
On Thu, 28 Jul 2011 10:28:30 +0200, Taco Hoekwater wrote: So, I just went through and changed a few dozen wiki pages. What is not yet fixed: * the actual URL is of course still http://minimals.contextgarden.net/, and this is also what is used internally. That part is work for Mojca, eventually. For start, to keep the URL alive, maybe http://minimals.contextgarden.net should just redirect to e.g. http://standalone.contextgarden.net (or something) with a message "URL was moved... Please, update your link... Redirecting in 2 seconds...". Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] When is \usetypescript needed?
> You can omit \setupbodyfont when the typescript and the typeface have > the same name which is the case for “Antykwa Poltawskiego” but for > “Antykwa Torunska” both names are different. You of course mean \usetypescript, not \setupbodyfont :-) Arthur ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] BTW: Context Standalone
Hi, On 07/12/11 17:27, Taco Hoekwater wrote: > On 07/12/2011 05:17 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: >> >> Is there any progress calling Context Minimals -> "Context Standalone"? >> >> I don't have strict overview what everything should be affected (wiki, >> manuals, setup batches?)... > > Mostly the wiki pages and neural paths in a few dozen heavy context > users. The former are pretty simple to fix, the latter not so much :( So, I just went through and changed a few dozen wiki pages. What is not yet fixed: * the actual URL is of course still http://minimals.contextgarden.net/, and this is also what is used internally. That part is work for Mojca, eventually. * when the actual URL becomes fixed, another half a dozen or so wiki pages will need fixing. * Vyatcheslav's installer may need updating as well. * And we have to re-educate the old-time ConText users. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Processing markdown (was: Research into Generative Typesetting)
Am 28.07.2011 um 00:21 schrieb Aditya Mahajan: > @Hans: do you think that it is a good idea to include something like > this in the m-markdown module so that a user could say > > context --usemodule=markdown --mode=process file.markdown > > and get a pdf output. It’s already there: context --extra=markdown file.markdown There are limitations in Hans method because you can’t define completely customized styles with it and the basic markdown tags are not enough to produce a document title (should be simple with the multimarkdown extensions). Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] solved-how to make "\getmarking[title]" show using default font size? (Wolfgang Schuster)
Am 28.07.2011 um 02:32 schrieb Jeong Dalyoung: > Dear Wolfgang, > > Thank you for your help. > >> Don?t set the font style with the argument of the \title command, use >> \setuphead. > > I'll keep in mind. > >> \define[2]\Mytitle >> {\framedtext >>[width=broad, >> height=5\bodyfontsize, >> background=color, >> backgroundcolor=lightgray, >> offset=2pt, >> strut=no, >> frame=off, >> align={middle,middle}] >> {#2}} >> >> \setuphead >> [title] >> [command=\Mytitle, >> style=\ssbfb] % \ss\bfb >> > > Why is the number of arguments 2? What is #1 for? #1 : Number (not necessary in your case) #2 : Text Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___