[NTG-context] Math and bold font
Hello all, I'd to explain some effects in the .pdf from the code bellow. It was copied from co-font.pdf, pg. 19-20; just "Abc" was added to try something. --- \enableregime[cp1250] \starttext $Abc\sqrt{625}=5\alpha$ $\bf Abc\sqrt{625}=5\alpha$ $Abc\sqrt{625}=\bf5\alpha$ $\bfmath Abc\sqrt{625}=5\alpha$ \definetypeface[whow][mm][math,boldmath][modern][default]%[encoding=texnansi] [] $Abc\sqrt{625}=5\alpha$ $\bf Abc\sqrt{625}=5\alpha$ $Abc\sqrt{625}=\bf5\alpha$ $\bfmath Abc\sqrt{625}=5\alpha$ \usetypescriptfile[typeface] $Abc\sqrt{625}=5\alpha$ $\bf Abc\sqrt{625}=5\alpha$ $Abc\sqrt{625}=\bf5\alpha$ $\bfmath Abc\sqrt{625}=5\alpha$ \stoptext --- Things I cannot do or understand: - The "alpha" symbol is not printed as soon as it's used in \bf or \bfmath mode (lines 2-4 in each paragraph). Why? How to make it appear? - - The same effect may be observed in the co-fonts.pdf at the pg. 19 at the lowest line - there is bold font working, but "alpha" is missing as well. - - - Unfortunately, there is no fully working example in the document with bold math and "alpha" together. - In my example, normal (thin) "Abc" is shown a bit slanted (as should be in math mode). Once it is used in bold math mode, it's no more slanted but "vertical" as normal text. Is there a way how to keep the "slantedness" even in math bold mode? (This is e.g. often used to mark vectors.) Kind 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 MathBold.mkiv Description: Binary data MathBold.pdf Description: Adobe PDF document ___ 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] Figure and equation numbers only include chapter number
On Friday 03 December 2010 07:37:55 seasoul wrote: > Dear All, > >After my updating context minimal, the equation and figure numbers > became very weird. > > For example, all the figures in chapter 2 labeled as "figure 2." all the > equations in chapter 2 as "(2.). > > I have seen a report in the mailing list also mentioning a similar problem. Yes, there was a fluctuation yesterday that produced funny numbering. It appears to be corrected and correct numbering is now produced. Try updating from the minimals and re-process your files. (In fact, for some reason, it appeared to take two runs on my project to get the numbering back - probably making use of remaining auxiliary files or something of the sort...) Alan ___ 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] Figure and equation numbers only include chapter number
Dear All, After my updating context minimal, the equation and figure numbers became very weird. For example, all the figures in chapter 2 labeled as "figure 2." all the equations in chapter 2 as "(2.). I have seen a report in the mailing list also mentioning a similar problem. ___ 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] showfont.pdf does not show fonts
in okular i see no example in the middle of pages 2-8 on page 9 i can see a formula. Is it my fault or is the file broken? http://www.pragma-ade.com/general/manuals/showfont.pdf kind regards, -- Jonas Stein ___ 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] How to not scale images?
On 3-12-2010 12:24, Khaled Hosny wrote: On Fri, Dec 03, 2010 at 12:15:40AM +0100, Hans Hagen wrote: On 3-12-2010 12:08, Khaled Hosny wrote: What option should I pass to \externalfigure to not scale the image, >from the manuals it seems to be scale=1000 but it does not seem to do anything here. \externalfigure[cow.pdf] should take the natural size; sometimes bitmaps can come out unexpexted but that;s then the consequence of lacking resolution specifications in the file. Indeed it is PNG file, I'll check the file and see if it can be fixed. if needed you can set the resolution (resolution=300 or so) 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] How to not scale images?
On Fri, Dec 03, 2010 at 12:15:40AM +0100, Hans Hagen wrote: > On 3-12-2010 12:08, Khaled Hosny wrote: > >What option should I pass to \externalfigure to not scale the image, > >from the manuals it seems to be scale=1000 but it does not seem to do > >anything here. > > \externalfigure[cow.pdf] > > should take the natural size; sometimes bitmaps can come out > unexpexted but that;s then the consequence of lacking resolution > specifications in the file. Indeed it is PNG file, I'll check the file and see if it can be fixed. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ 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] How to not scale images?
On 3-12-2010 12:08, Khaled Hosny wrote: What option should I pass to \externalfigure to not scale the image, from the manuals it seems to be scale=1000 but it does not seem to do anything here. \externalfigure[cow.pdf] should take the natural size; sometimes bitmaps can come out unexpexted but that;s then the consequence of lacking resolution specifications in the file. - 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 ___
[NTG-context] How to not scale images?
What option should I pass to \externalfigure to not scale the image, from the manuals it seems to be scale=1000 but it does not seem to do anything here. -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ 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] beta
On 2-12-2010 9:06, Vyatcheslav Yatskovsky wrote: Hi, Making format files give this ! LuaTeX error tminimal/texmf-context/tex/context/base/char-ini.lua:604: attempt to call upvalue 'texsetcatcode' (a nil value) stack traceback: ...tminimal/texmf-context/tex/context/base/char-ini.lua:604: in function 'setcodes' :1: in main chunk. l.41 \ctxlua{characters.setcodes()} ? you run an old luatex then as tex.setcatcode has been present for a while - 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] Suppress header and footer inside frontmatter
On Thu, Dec 02, 2010 at 09:28:03PM +0100, Wolfgang Schuster wrote: > > Am 02.12.2010 um 20:40 schrieb Khaled Hosny: > > > How can I suppress header and footer between \{start,stop}frontmatter? > > alternatively, how can I use alphabetic page numbering there? > > (preferably by using some \setup command that I'd use in my environment > > file). > > \startsectionblockenvironment[frontpart] > >\setupheader[state=stop] >\setupfooter[state=stop] > > \stopsectionblockenvironment Thanks Wolfgang! Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ 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] Suppress header and footer inside frontmatter
Am 02.12.2010 um 20:40 schrieb Khaled Hosny: > How can I suppress header and footer between \{start,stop}frontmatter? > alternatively, how can I use alphabetic page numbering there? > (preferably by using some \setup command that I'd use in my environment > file). \startsectionblockenvironment[frontpart] \setupheader[state=stop] \setupfooter[state=stop] \stopsectionblockenvironment 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] beta
Hi, Making format files give this ! LuaTeX error ...tminimal/texmf-context/tex/context/base/char-ini.lua:604: attempt to call upvalue 'texsetcatcode' (a nil value) stack traceback: ...tminimal/texmf-context/tex/context/base/char-ini.lua:604: in function 'setcodes' :1: in main chunk. l.41 \ctxlua{characters.setcodes()} ? Regards, Vyactheslav ___ 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] Suppress header and footer inside frontmatter
How can I suppress header and footer between \{start,stop}frontmatter? alternatively, how can I use alphabetic page numbering there? (preferably by using some \setup command that I'd use in my environment file). A, rather silly, example: \starttext \startfrontmatter \dorecurse{10}{\input knuth } \stopfrontmatter \stoptext Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ 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] figure and table caption numbering
On 2-12-2010 7:19, Alan BRASLAU wrote: Very original: figures and table captions suddenly appear to all be numbered by chapter - meaning ALL figures of Chapter 1 are numbered Figure 1, ALL figures in Chapter 2 are numbered Figure 2, ... figures in Appendix A are numbered Figure A. Does anyone else notice this, or do I have to come up with a minimal example? (I have nothing special, other than \setuplist[figure][partnumber=no]) i'll check it ... i fixed something for mojca but it looks like it has a side effect, strange 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 ___
[NTG-context] figure and table caption numbering
Very original: figures and table captions suddenly appear to all be numbered by chapter - meaning ALL figures of Chapter 1 are numbered Figure 1, ALL figures in Chapter 2 are numbered Figure 2, ... figures in Appendix A are numbered Figure A. Does anyone else notice this, or do I have to come up with a minimal example? (I have nothing special, other than \setuplist[figure][partnumber=no]) Alan ___ 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] beta
On Dec 1, 2010, at 22:25 , Mojca Miklavec wrote: > On Wed, Dec 1, 2010 at 22:06, Leo Razoumov wrote: >> >> With such a fast changing codebase would it be possible to set up a >> SCM repository to track ConTeXt beta development. GIT/HG/SVN would do >> it. With revision control one can at least roll back changes that are >> broken. > > See at least > http://gitorious.org/context/context Great, I didn't know about that! It would be helpful, though, if the git repository included a complete multi-architecture beta with all extras (fonts, modules). Then, we could easily copy this as a portable application on a USB flash drive. Martin, would you be willing to alter your perl script to include executables and extra modules? Maybe it is useful to put the executables in individual git repositories. I use the following bash script to update everything: # TARGET=$HOME/context-beta ARCHS="cygwin freebsd-amd64 freebsd kfreebsd-amd64 kfreebsd-i386 linux-64 linux-ppc linux mswin osx-64 osx-intel osx-ppc osx-universal solaris-intel solaris-sparc" test -d ${TARGET} || mkdir ${TARGET} # sync platform independent files rsync -rpztlv --delete contextgarden.net::"minimals/current/base/*/ minimals/current/fonts/*/ minimals/current/misc/web2c" "${TARGET}/texmf" rsync -rpztlv contextgarden.net::minimals/current/misc/setuptex/ "${TARGET}/" #rsync -rpztlv --delete contextgarden.net::"minimals/current/context/current/ minimals/current/context/img/" "${TARGET}/texmf-context" rsync -rpztlv --delete contextgarden.net::"minimals/current/context/beta/ minimals/current/context/img/ minimals/current/modules/*/" "${TARGET}/texmf-context" # sync manpages rsync -rpztlv --delete contextgarden.net::"minimals/current/bin/man/man" "${TARGET}/texmf-common" # sync precompiled software for each architecture for ARCH in $ARCHS; do rsync -rpztlv --delete contextgarden.net::"minimals/current/bin/*/${ARCH}/" "${TARGET}/texmf-${ARCH}" # copy mtxrun.lua (is this really necessary?!) rsync -tgov --chmod=a+x "${TARGET}/texmf-context/scripts/context/lua/mtxrun.lua" "${TARGET}/texmf-${ARCH}/bin/mtxrun" # create link to common manpages ln -s ../texmf-common/man "${TARGET}/texmf-${ARCH}/man" done # Then all you have to do is to run PATH=${TARGET}/texmf-${PLATFORM}/bin:$PATH mtxrun --tree="${TARGET}" --generate and remake the formats for MKIV, MKII, ... to obtain a complete working context minimals beta. Best wishes, Florian ___ 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] how to write morsecode?
> You need \dontleavehmode, see also: > http://wiki.contextgarden.net/FAQ#Why_is_there_a_line-break_in_the_output_after_some_commands.3F That works fine. Thank you. -- Jonas Stein ___ 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] list of all (even unused) abbreviations
Am 02.12.2010 um 02:52 schrieb Jonas Stein: > It works now. > I think i had a Problem with the line > > \definesynonyms[abbreviation][abbreviations][\infull] > in Description on [1] > > Should i delete the "[\infull]" there? It works fine without it. Provide a example where it doesn’t work, the \infull is to get the full text of the abbreviation in your text, e.g. \infull{VVV}. 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 ___
[NTG-context] another bib bug: missing text after %
Hans, here's another bib-related bug report that I have only noticed today (I don't know how long it has been present). It works fine in MKII. The link is OK, but it displays wrong - everything after percentage sign is missing if I enable interaction. \setuppublicationlayout[image]{% {\sc url}: \inserturl{}{}{}} \startpublication[k=img:sigma_bond_d,t=image] \biburl{http://www.d.umn.edu/%7Epkiprof/ChemWebV2/Overlap/images/sigma-dz2.jpg} \stoppublication % this triggers the bug \setupinteraction[state=start] \starttext \cite[img:sigma_bond_d] \placepublications \stoptext Thanks, Mojca ___ 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] beta
On Wed, Dec 1, 2010 at 22:58, Aditya Mahajan wrote: > On Wed, Dec 1, 2010 at 4:25 PM, Mojca Miklavec > wrote: >> >> On Wed, Dec 1, 2010 at 22:06, Leo Razoumov wrote: >> > >> > With such a fast changing codebase would it be possible to set up a >> > SCM repository to track ConTeXt beta development. GIT/HG/SVN would do >> > it. With revision control one can at least roll back changes that are >> > broken. >> >> See at least >> http://gitorious.org/context/context > > and Patrick's git repo (which I use for the context minimals package > on Arch Linux) > > http://dl.contextgarden.net/distribution/git/ > > Aditya > ___ Mojca, Aditya thanks for your replies. http://dl.contextgarden.net/distribution/git/ is hopelessly out of date. The latest commit is 2010-05-28. But http://gitorious.org/context/context is current (thanks Mojca!) --Leo-- ___ 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] custom colors for verbatim in mkiv
On Dec 2, 2010, at 12:11 PM, Hans Hagen wrote: > there is more granularity now: see v-xml.mkiv Ahh, I see! Yes, that's indeed a very nice way to define colors! Thanks a lot! Thomas ___ 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] bug: colors in TikZ/ConTeXt MKIV
On 2-12-2010 8:19, Alan BRASLAU wrote: The next step would be to allow \color[0.5[red,green]] (or \color[0.5(red,green)]), i.e. such syntax wherever a color can be used. You can use \definecolor[mycolor][.5(red,green)] in the current beta, but I wonder if \color[0.5(red,green)] makes much sense as that would complicate (and definitely slow down) color switching. But, as Aditya pointer out you can use {\colored[0.5(green)]test} already. I don't want to get away too much from the principle of defining colors using names. 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] custom colors for verbatim in mkiv
On 2-12-2010 11:43, Thomas A. Schmitz wrote: Hi all, pardon my ignorance, but how can I define custom colors for pretty printing xml in current mkiv? I tried defining a palet, I tried defining the usual colors prettyone etc., but to no avail. And, on a related note: are the files pret-lua.lua pret-mp.lua pret-tex.lua pret-xml.lua no longer part of mkiv? What has replaced them? I attach an example which works with mkii and with my older installation of mkiv (2010.10.22 16:46) but not with the current beta (2010.12.02 08:51). there is more granularity now: see v-xml.mkiv \setupstartstop[XmlSnippetName][color=magenta,style=\bfa] \starttext \startXML hello world \stopXML \stoptext 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] bug: colors in TikZ/ConTeXt MKIV
On 2-12-2010 12:01, Aditya Mahajan wrote: Indeed. That is what I meant. I did not know that the metapost like syntax worked for \colored. \colored is just a shortcut to \definecolor - 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] bug: colors in TikZ/ConTeXt MKIV
On Thu, 2 Dec 2010, Hans Hagen wrote: On 2-12-2010 5:02, Aditya Mahajan wrote: On Wed, Dec 1, 2010 at 7:58 AM, Hans Hagen wrote: I could probably support \definecolor[xxx][0.5(red,green)] \definecolor[xxx][0.5(red)] which looks better than this ! and is less likely to conflict with names as abc! is a rather value color name. That will be a nice feature to have (especially, if it can also be used with \definedcolor) You mean \colored[0.5(red)] ? That works ok. Indeed. That is what I meant. I did not know that the metapost like syntax worked for \colored. Aditya ___ 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] custom colors for verbatim in mkiv
Hi all, pardon my ignorance, but how can I define custom colors for pretty printing xml in current mkiv? I tried defining a palet, I tried defining the usual colors prettyone etc., but to no avail. And, on a related note: are the files pret-lua.lua pret-mp.lua pret-tex.lua pret-xml.lua no longer part of mkiv? What has replaced them? I attach an example which works with mkii and with my older installation of mkiv (2010.10.22 16:46) but not with the current beta (2010.12.02 08:51). Thomas \setupcolors[state=start] \definecolor[paleblue][r=0.5,g=0.5,b=0.9] \definecolor[palered] [r=0.9,g=0.5,b=0.5] \definecolor[palecyan][r=0.41,g=0.84,b=0.84] \setuptyping[option=color, % palet=colorpretty, bodyfont=10pt, before={\startframedtext[width=\makeupwidth, background=screen, frame=off, backgroundscreen=.9]}, after={\stopframedtext}] \definepalet[MYcolors] [prettyone=paleblue, prettytwo=palecyan, prettythree=palered, prettyfour=darkgreen] \definepalet[XMLcolorpretty][MYcolors] \starttext \startXML hello world \stopXML \stoptext ___ 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] \starttable ... \stoptable part II
On Wednesday 24 November 2010 14:57:36 Hans Hagen wrote: > On 24-11-2010 2:54, Herbert Voss wrote: > > works with mkii, but not with mkiv > > example is from the documentation: > > > > \starttext > > > > \starttable[|l|c|c|] > > \DC\DL[2] \DR > > \NC\VL Mickey \VL Goofy \VL\SR \HL > > \VL Donald \VL $\star$ \VL \VL\SR \HL > > \VL Pluto \VL \VL $\star$ \VL\SR \HL > > \stoptable > > > > \stoptext > > > > > > ! Undefined control sequence. > > \next ->\setTABLEerror > > > > \TABLEspanoverflow \handleTABLEerror > > > > \normalTABLEmultirule #1->&\use {#1} > > > > \normalTABLElongrule& > > > > \complexTableDL ...lTABLEmultirule {#1}}\fi \next > > > >\fi > > > > l.4 \DC\DL[2] > > > > \DR > > ok, i'll fix it Still broken... Alan ___ 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] bug: colors in TikZ/ConTeXt MKIV
On 2-12-2010 5:02, Aditya Mahajan wrote: On Wed, Dec 1, 2010 at 7:58 AM, Hans Hagen wrote: I could probably support \definecolor[xxx][0.5(red,green)] \definecolor[xxx][0.5(red)] which looks better than this ! and is less likely to conflict with names as abc! is a rather value color name. That will be a nice feature to have (especially, if it can also be used with \definedcolor) You mean \colored[0.5(red)] ? That works ok. - 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 ___