[NTG-context] pret-c.lua - v-c.lua
Hello, Do I have to learn lpeg now, in order to port pret-c.lua to v-c.lua, or is there a simpler way? Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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] showfont.pdf does not show fonts
On Fri, Dec 3, 2010 at 02:51, Jonas Stein wrote: 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 None of that. The document is simply designed that way. On the bottom of page there's source code that is needed to get that particular font working and on top it's some text typeset with that font. 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] How to not scale images?
On Fri, Dec 03, 2010 at 12:34:47AM +0100, Hans Hagen wrote: 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) Thanks, that would be helpful too. 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] pret-c.lua - v-c.lua
Hi Peters, I can either help or port if needed… Cheers, Renaud Peter Münster pmli...@free.fr a écrit : Hello, Do I have to learn lpeg now, in order to port pret-c.lua to v-c.lua, or is there a simpler way? Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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 ___ -- Envoyé de mon téléphone Android avec K-9 Mail. Excusez la bièveté. ___ 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] \setuptyping and \type{}
Is there a way to setup insertion of some stuff before/after \type{}, tried \setuptyping but only works for \start/stoptyping. \setuptyping[before=\framed] \starttext \type{aa} \starttyping aa \stoptyping \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 ___
[NTG-context] Formating verbatim text
The following is listed on the wiki but does not work in MkIV, the commands are just typeset verbatim as well. \setuptyping[option=commands] \starttext \starttyping /BTEX{\em aa}/ETEX \stoptyping \stoptext -- 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] space in \longrightarrow in lucida (mkiv)
On Tue, Nov 30, 2010 at 19:16, Hans Hagen wrote: On 30-11-2010 6:23, Herbert Voss wrote: in mkii \joinrel is \mkern-4mu in mkiv only \mkern-3mu \setupbodyfont[lucida] \def\longrightarrow{\relbar\mkern-4mu\rightarrow} \starttext $\longrightarrow$ \stoptext ok, will be fixed Hans, this issues is not fixed. I assume that jointwo(...) function is used to create the longrightarrow and maybe that one doesn't get the spacing right. 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] space in \longrightarrow in lucida (mkiv)
On Fri, Dec 3, 2010 at 11:42, Mojca Miklavec wrote: Hans, this issues is not fixed. I assume that jointwo(...) function is used to create the longrightarrow and maybe that one doesn't get the spacing right. This fixes the problem indeed: jointwo (main,characters,id,size,0x27F6,0x0002D,4,0x02192) (line 332 in math-vfu.lua). It seems that joinrel is hardcoded to the value 3 in many places apart from this particular one. Maybe you need to introduce a new lua variable somewhere inside function vfmath.alas(main,id,size)? 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 ___
[NTG-context] bug report/mkiv: verbatim text bug with tab parameter
Hi, today I recognized that the tab parameter is not working in setuptyping anymore (actual beta). As soon the tab paramter is set and a tabulator is used in the text, ConTeXt breaks with following error message: ! LuaTeX error ...text/tex/texmf-context/tex/context/base/util- str.lua:56: attempt to call global 'rep' (a nil value) stack traceback: ...text/tex/texmf-context/tex/context/base/util- str.lua:56: in function 'tabtospace' ...text/tex/texmf-context/tex/context/base/buff- ini.lua:174: in function 'flush' ...text/tex/texmf-context/tex/context/base/buff- ini.lua:216: in function 'typebuffer' main ctx instance:1: in main chunk. \dodotypeblockverbatim ...ter \c!escape \!!es , }} \dostoptagged\endofverbat... l.7 \stopcode To reconsturct the error use following example: \definetyping[code][tab=3] \starttext \startcode IrgendeinQuelltext / IrgendeinQuelltext / /IrgendeinQuelltext \stopcode \stoptext If this is just a mistake by myself please excuse. ___ 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] space in \longrightarrow in lucida (mkiv)
Am 03.12.2010 12:21, schrieb Mojca Miklavec: IIRC, the original definitions are from plain.tex and amstex.tex. plain.tex says: \def\joinrel{\mathrel{\mkern-3mu}} So I guess that \joinrel indeed needs to be defined on per-font basis instead of being hardcoded into definitions. the macro \loadfontgoodies in font-gds.mkiv should be extended to something like \def\loadfontgoodies[#1]% {\ctxlua{fonts.goodies.get(#1)}% \InputIfExists #1.tex% } which already load a lucida-math.ldf (lua code) and then an optional lucida-math.tex (tex code) don't know how ConTeXt can handle the \InputIfExists The file lucida-math.tex in /context/fonts/ gets all font specific redefinitions, in this case \def\joinrel{\mkern-4mu} \def\longrightarrow{\relbar\joinrel\rightarrow} \def\longleftarrow{\leftarrow\joinrel\relbar} ... sich files are then possible for all other fonts Herbert ___ 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 TikZ problem with !
Hi! Color is not the only place where TikZ treats ! in a special way. For example, in TikZ/LaTeX you can say: \coordinate (A) at (0, 0); \coordinate (B) at (1, 0); \coordinate (C) at ($ (A)!.3!(B) $); % z.C = .3[z.A, z.B] in MetaPost \coordinate (D) at (2, 1); \coordinate (E) at ($ (A)!(B)!(D) $); % projection of (B) to (A)--(D). This code fails in ConTeXt because ! is made a normal character. ___ 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] 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 None of that. The document is simply designed that way. On the bottom of page there's source code that is needed to get that particular font working and on top it's some text typeset with that font. Oh of course... now i see that too. Thanks. -- Jonas Stein n...@jonasstein.de ___ 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] Formating verbatim text
Am 03.12.2010 um 10:40 schrieb Khaled Hosny: The following is listed on the wiki but does not work in MkIV, the commands are just typeset verbatim as well. The mechanism has changed in MkIV, you can now write \setuptyping[escape=yes] \starttyping normal /BTEX\em emphasized/ETEX normal normal /BTEX\bf bold/ETEX normal \stoptyping or you set your own delimiters with \setuptyping[escape={[[,]]}] \starttyping normal [[\em emphasized]] normal normal [[\bf bold]] normal \stoptyping 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] Another indenting problem
Am 03.12.2010 um 13:03 schrieb Andreas Harder: Hi all, it took me a while to track this down. It seems that if one uses \in[…] and \footnote{…} in the same paragraph the following \noindentation-command is ignored. Here is an example: You’re wrong, the indentation for the blockquote comes from the leftmargin setting which indents the whole paragraph at the left and the right margin, you can change this and the real indentation with \setupdelimitedtext[blockquote][indenting=no,leftmargin=no] 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] \setuptyping and \type{}
Am 03.12.2010 um 10:32 schrieb Khaled Hosny: Is there a way to setup insertion of some stuff before/after \type{}, tried \setuptyping but only works for \start/stoptyping. \setuptyping[before=\framed] You can try to convince Hans to add a command key to \setuptype, untill then you can use this: \unexpanded\def\mytype{\groupedcommand{\setgroupedtype\inframed}{\relax}} \starttext one \mytype{\two} three \stoptext „before“ and „after“ keys are used only for environments to change the spacing (e.g. before=\blank) at the begin and end of a environment or to frame it (e.g. before=\startframedtext). 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] Another indenting problem
Am 03.12.2010 um 15:45 schrieb Wolfgang Schuster: Am 03.12.2010 um 13:03 schrieb Andreas Harder: Hi all, it took me a while to track this down. It seems that if one uses \in[…] and \footnote{…} in the same paragraph the following \noindentation-command is ignored. Here is an example: You’re wrong, the indentation for the blockquote comes from the leftmargin setting which indents the whole paragraph at the left and the right margin, you can change this and the real indentation with \setupdelimitedtext[blockquote][indenting=no,leftmargin=no] Hello Wolfgang, thanks for replying. That's not what I want; I've made a new example. The problem occurs only in the first case (with \in[] and \footnote{} in the paragraph) \setupindenting[big,yes] \setupdelimitedtext[blockquote][indenting={yes,next},style=red] % \setupdelimitedtext[blockquote][before=\noindentation,style=red] \starttext \showframe[text][text] \startbuffer \startblockquote \dorecurse{3}{Is this paragraph indented? It should not!}\par \dorecurse{3}{Is this paragraph indented? It should! } \stopblockquote \stopbuffer Test \in[someref] test\footnote{footnote}. \getbuffer % not OK! Test test\footnote{footnote}. \getbuffer % OK Test \in[someref] test. \getbuffer % OK \stoptext Greeting Andreas___ 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] Math and bold font
Hi. ** Procházka Lukáš Ing. - Pontex s. r. o. [2010-12-03 08:51:41 +0100]: 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.) IMHO (I'm not expert in context) this depends on used fonts. See for example follwoing: example file=ex1.tex \setupbodyfont[cambria] \starttext This is a test. $a=\alpha$ $\bf a=\alpha$ $\bi a=\alpha$ \stoptext /example BTW, I not sure if I use correct way to switch fonts in math mode (in LaTeX commands to switch fonts are different in text and math mode, and I have big LaTex background, so for me this way is unusual :). P.S. My example works with mkiv but not with mkii. The last uses default fonts that don't have bold variant for greek letters (I could be wrong here, for LaTeX I have to redefine commands for greek letters because there is appropriate font but greek letters are defined in a way so nobody could use bold variant by default). --- WBR, Vladimir Lomov -- Avoid reality at all costs. ___ 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] Math and bold font
Hello, thanks for the example. I can see that: - In another font(s) (at least in cambria in your example) bold Greek chars are OK. - \bf in math mode causes chars to become vertical, i.e. when I want to get slanted chars, I have to call \it or \sl or \bi explicitly. OK, I thought that the slantedness is kept by default when switching to bold in math mode, but no problem to switch to slanted/italics font manually. - But I still have no idea how to restore Greek chars when using the *default* bold math font (i.e. when not using \setupbodyfont[another-font]. Or do I have to \setup???font[???] explicitly when I want to use Greek bold chars as well? IMHO (I'm not expert in context) this depends on used fonts. See for example follwoing: example file=ex1.tex \setupbodyfont[cambria] \starttext This is a test. $a=\alpha$ $\bf a=\alpha$ $\bi a=\alpha$ \stoptext /example BTW, I not sure if I use correct way to switch fonts in math mode (in LaTeX commands to switch fonts are different in text and math mode, and I have big LaTex background, so for me this way is unusual :). NB: I used to work with LaTeX as well - I'm still time-to-time solving basic things (like that above) in ConTeXt. Best regards, Lukas P.S. My example works with mkiv but not with mkii. The last uses default fonts that don't have bold variant for greek letters (I could be wrong here, for LaTeX I have to redefine commands for greek letters because there is appropriate font but greek letters are defined in a way so nobody could use bold variant by default). --- WBR, Vladimir Lomov -- 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] next space (problematic example!)
Am 29.11.2010 um 14:39 schrieb Wolfgang Schuster: Am 29.11.2010 um 10:29 schrieb Steffen Wolfrum: Hi, please have a look at this: \definestartstop[redimportant][before={\startcolor[red]\bf\penalty1\hskip\zeropoint},after={\/\stopcolor}] \definestartstop [redimportant] [style=bold, color=red, after=\autoinsertnextspace] \setupnote [footnote] [next=\autoinsertnextspace] Wolfgang But how about this (see below)? Is there a chance to get a space after footnote even before an italic? Steffen --- \definestartstop[Textit][style=\em, % color=red, after=\autoinsertnextspace] \setupnote [footnote] [next=\autoinsertnextspace] \starttext Test text. \startfootnote Note. \stopfootnote \startTextit Test\stopTextit text Test text. \startfootnote Note. \stopfootnote Test text \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 ___
[NTG-context] \comment broken
Hi, the compilation of \starttext test \comment{test} \stoptext stops (at least for me) with: ! LuaTeX error ...text/tex/texmf-context/tex/context/base/lpdf-wid.lua:124: attempt to call field 'collect' (a nil value) I'm using the latest beta. Greeting Andreas ___ 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] One more (?) bib problem
Hi all, A small variation on the bib test file from the wiki: \setupbibtex[database=/home/jean/bibmkiv/bib.bib] \starttext \section{section one} \cite[authoryear][hh2010,hh2010b] \section{section two} \cite[authoryear][Eijkhout1991] \placepublications[criterium=cite] \stoptext Unfortunately, placepublications only takes into account the refs of the section where it is located, it seems weird to me. Sorry if this has been already reported. regards, test.pdf Description: biblio test -- Jean ___ 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] Float caption separator in MKIV
Dear list, it has probably been mentioned somewhere, but I cannot find it. What is the MKIV equivalent of either of the following two commands (which do the same)? \let\floatcaptionsuffix=: \setupcaptions[separator=:] I want to have Figure 1: caption instead of just Figure 1 caption Thanks a lot, 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 ___
[NTG-context] howto make hyperrefs? (url/mail)
i saw it once in the documentation but i dont find it again now. How can i make a mailaddress clickable in the pdf file? Kind regards, -- Jonas Stein n...@jonasstein.de ___ 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] howto make hyperrefs? (url/mail)
Hi Jonas, in context the hyperlink stuff is called “interaction”. On 2010-12-03 19:56:50, Jonas Stein wrote: i saw it once in the documentation but i dont find it again now. * http://wiki.contextgarden.net/url * http://wiki.contextgarden.net/Interaction How can i make a mailaddress clickable in the pdf file? The following should call a gui mua from your pdf reader but as I am not using one i couldn’t test if things like setting the subject c. will work as well. ···8 \setupinteraction[state=start] \useurl [mymail] [mailto:chair...@example.com] [] [beloved boss] \starttext Send your spam to the \from[mymail]! \stoptext ···8 Hope this helps, Philipp Kind regards, -- Jonas Stein n...@jonasstein.de ___ 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 ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpX6MJ8n7jNk.pgp Description: PGP signature ___ 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] howto make hyperrefs? (url/mail)
Hello Jonas, here are any link examples: \def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]} \def\ahref#1{\color[linkcolor]{\ttx \href{#1}{#1}}} \def\fullahref#1{\color[linkcolor]{\ttx \href{#1}{http://#1}}} \def\mailto#1{\useURL[#1][mailto:#1][][#1]\from[{#1}]} \def\MailTo#1#2{\useURL[#1][mailto:#1][][#2]\from[{#1}]} \def\ctm{\href{http://meeting.contextgarden.net/2010/programme.shtml}{4CM}} \def\te{\href{http://pavel.striz.cz/texperience/}{3TE}} Jaroslav Dne 3.12.2010 19:56, Jonas Stein napsal(a): i saw it once in the documentation but i dont find it again now. How can i make a mailaddress clickable in the pdf file? Kind regards, ___ 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] howto make hyperrefs? (url/mail)
\setupinteraction[state=3Dstart] \useurl [mymail] [mailto:chair...@example.com] [] [beloved boss] \starttext Send your spam to the \from[mymail]! \stoptext Hope this helps, Philipp Yes, it works fine. I added it into the wiki with some words that can be found if one uses the search engine. http://wiki.contextgarden.net/url#E-Mail_mailto kind regards, -- Jonas Stein n...@jonasstein.de ___ 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] \setuptyping and \type{}
On 3-12-2010 10:32, Khaled Hosny wrote: Is there a way to setup insertion of some stuff before/after \type{}, tried \setuptyping but only works for \start/stoptyping. \setuptyping[before=\framed] \starttext \type{aa} \starttyping aa \stoptyping \stoptext that would be 'left' and 'right' then (but it's not yet there) - 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] pret-c.lua - v-c.lua
On Fri, Dec 03 2010, Renaud AUBIN wrote: I can either help or port if needed… Yes, that would be really great!! Thank you! In the meantime, I'll work with an older version. (no time to learn lpeg now...) Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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] pret-c.lua - v-c.lua
On 3-12-2010 10:31, Peter Münster wrote: On Fri, Dec 03 2010, Renaud AUBIN wrote: I can either help or port if needed… Yes, that would be really great!! Thank you! In the meantime, I'll work with an older version. (no time to learn lpeg now...) fyi: the name should be more explicit, like v-c-variant-xxx or so as the can be multiple solutions; the shorter v-*.lua and v-parsed-*.lua names are reserved for core lexers (on my agenda is to do some c lexing as part of cweb lexing) . 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] Another TikZ problem with !
On 3-12-2010 3:19, Yury G. Kudryashov wrote: Hi! Color is not the only place where TikZ treats ! in a special way. For example, in TikZ/LaTeX you can say: \coordinate (A) at (0, 0); \coordinate (B) at (1, 0); \coordinate (C) at ($ (A)!.3!(B) $); % z.C = .3[z.A, z.B] in MetaPost \coordinate (D) at (2, 1); \coordinate (E) at ($ (A)!(B)!(D) $); % projection of (B) to (A)--(D). This code fails in ConTeXt because ! is made a normal character. if tokens have a special meaning, then it's up to tikz to deal with it - 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] Typescript Bodoni Old Fashion
Hi all, [1] I just bought the Bodoni Old Fashion fonts from URW and made a typescript. It is attached to this mail (plus a test file for whoever needs it). Maybe it could be included in the minimals as third-party typescript. [2] Can we get the strings \definesystemconstant{SerifSemiBold} \definesystemconstant{SerifSemiBoldItalic} added to mult-sys.mkiv? This would allow the use of “\s!SerifSemiBold” in typescripts. Thanks, Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments %D \module %D [ file=type-bodoniof, %Dversion=2010-12-03 23:47:43+0100, %D title=\CONTEXT\ Typescript Macros, %D subtitle=Font Definitions for URW++ Bodoni Old Fashion, %D author=Philipp Gesang, %D date=\currentdate, %D copyright=Philipp Gesang] %C %C This file may be distributed under 2-clause BSD license. %%% Typescript for the Bodoni Old Fashion font by URW++. %%% http://www.urwpp.de/cgi-bin1/dalcgi/source/fontliste0.htd?sprache=englishauswahl=-1fontnummer=b054013tm4pb-id=wd16d94b94f7f2e2cf9987dbeae12bccd5a861fbdec \starttypescriptcollection [bodoni-of] \starttypescript [\s!serif] [bodoni-of] \definefontsynonym [Bodoni-OF-Regular][name:BodoniOldFasURW-Reg] [\s!features=\s!default] \definefontsynonym [Bodoni-OF-Italic] [name:BodoniOldFasURW-RegIta] [\s!features=\s!default] \definefontsynonym [Bodoni-OF-Bold] [name:BodoniOldFasURW-Bol] [\s!features=\s!default] \definefontsynonym [Bodoni-OF-BoldItalic] [name:BodoniOldFasURW-BolIta] [\s!features=\s!default] \definefontsynonym [Bodoni-OF-SemiBold] [name:BodoniOldFasURW-Med] [\s!features=\s!default] \definefontsynonym [Bodoni-OF-SemiBoldItalic] [name:BodoniOldFasURW-MedIta] [\s!features=\s!default] \definefontsynonym [Bodoni-OF-Smallcaps] [name:BodoniOldFasURWSC-Reg] [\s!features=\s!default] \stoptypescript \starttypescript [\s!serif] [bodoni-of] \setups[\s!font:\s!fallback:\s!serif] \definefontsynonym [\s!Serif] [Bodoni-OF-Regular] [\s!features=\s!default] \definefontsynonym [\s!SerifItalic] [Bodoni-OF-Italic] [\s!features=\s!default] \definefontsynonym [\s!SerifBold] [Bodoni-OF-Bold] [\s!features=\s!default] \definefontsynonym [\s!SerifBoldItalic] [Bodoni-OF-BoldItalic] [\s!features=\s!default] \definefontsynonym [\s!SerifSemiBold] [Bodoni-OF-SemiBold] [\s!features=\s!default] \definefontsynonym [\s!SerifSemiBoldItalic] [Bodoni-OF-SemiBoldItalic] [\s!features=\s!default] \definefontsynonym [\s!SerifCaps] [Bodoni-OF-Smallcaps] [\s!features=\s!default] \stoptypescript \starttypescript [bodoni-of] \definetypeface [bodoni-of] [rm] [\s!serif] [bodoni-of] [\s!default] \quittypescriptscanning \stoptypescript \stoptypescriptcollection \definesystemconstant{SerifSemiBold} \definesystemconstant{SerifSemiBoldItalic} \definefontalternative[sbo] \definefontalternative[sbi] \definebodyfont [default] [rm] [tf=Serif sa 1, bf=SerifBold sa 1, it=SerifItalic sa 1, sl=SerifSlanted sa 1, bi=SerifBoldItalic sa 1, bs=SerifBoldSlanted sa 1, sbo=SerifSemiBold sa 1, sbi=SerifSemiBoldItalic sa 1, sc=SerifCaps sa 1] \definefontfeature[default] [default] [mode=node,script=latn,kern=yes,liga=yes] %\definefontfeature[smallcaps] [default] [smcp=yes,kern=yes,liga=yes] %% not supported \definefontfeature[allalts] [default] [aalt=yes] % provides superscript 1 2 3 \definefontfeature[denoms][default] [dnom=yes] % denominators \definefontfeature[numerator] [default] [numr=yes] % numerators \definefontfeature[superscrp] [default] [sups=yes] % superscript \definefontfeature[diphthong] [default] [dpng=yes] % deprecated since otf v.1.4, seems to work for ‘ae’ - ‘æ’ and ‘oe’ - ‘œ’ \usetypescriptfile[type-bodoniof] \usetypescript[bodoni-of] \setupbodyfont[bodoni-of,12pt] \def\testing[#1]{% \bgroup#1% abcdefghijklmnopqrstuvwxyz\par \centerline{\hfill ff ffi ffl fi fl ft ct Th\hfill}\par \hfill ABCDEFGHIJKLMNOPQRSTUVWXYZ\par %% Numbers -- sadly no text figures except in the SC variant‽ 0123456789\hfill {\addff{superscrp} 0123456789}\hfill %% Diacritics ěščřžýáíéóůúňďť\hfill ąśæåżźćóęł\par Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz Ąą Ęę Łł Ćć Śś Żż Źź Ńń Ěě Šš Čč Řř Žž Áá Éé Íí Óó Úú Ůů Ďď Ľľ Ňň Ťť Ææ Åå Øø Āā Ēē Īī Ōō Ūū Ėė Įį Ǫǫ Ųų %% As expected, there’s no ‘ǫ’ {\addff{diphthong} Ae ae AE Oe OE oe} \par %% Non-Alphabetical - -- --- „“ “” „” ‚‘ ‘’ ‚’ «» . ! ? ‽ , ; · … : ° + - = \lettertilde\space \letterpercent\ § \letterbackslash\ / \letterat\space \letterampersand\ \letterbar\ \letterunderscore\space ¶ * † ‡ ™ © € \$ \# ( ) [ ] \{ \} \par \egroup \hairline% \blank[line] } \def\lem{%
Re: [NTG-context] One more (?) bib problem
\placepublications[criterium=all] this will place all the references. If only cited publications are in need, use \setuppublications[criterium=cite] I also experimented on this for a long time, then i found this solution from one of Aditya's posts. It works to me now. Hans is in the process to develop a new bib module, I am waiting the new powerful version :). On Sat, Dec 4, 2010 at 1:44 AM, Jean Magnan de Bornier jm.born...@free.frwrote: Hi all, A small variation on the bib test file from the wiki: \setupbibtex[database=/home/jean/bibmkiv/bib.bib] \starttext \section{section one} \cite[authoryear][hh2010,hh2010b] \section{section two} \cite[authoryear][Eijkhout1991] \placepublications[criterium=cite] \stoptext Unfortunately, placepublications only takes into account the refs of the section where it is located, it seems weird to me. Sorry if this has been already reported. regards, -- Jean ___ 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 ___ -- Yours Sincerely Ba Te ___ 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] abbreviation with Umlaut fails
\definesynonyms[abbreviation][abbreviations] \setupsynonyms[abbreviation][criterium=all] \abbreviation{KüFuSt}{Küstenfunkstelle} fails. Is it a bug? The rest of the Text works fine with Umlauts Kind regards, -- Jonas Stein n...@jonasstein.de ___ 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] problem in resume module
Hi Wolfgang, In new beta also has problem. log: structure : section @ level 3 : 0.0.0 - Education ! Missing number, treated as zero. to be read again ) \currenttableformat -s0|s0rp(.15\textwidth ) |s0w(.025\textwidth )|s0p(\dime... argument ...egintableformat \currenttableformat \doendtableformat \firstofoneargument #1-#1 \dorestarttable ...restarttable {#1}\restarttable \doinserttablehead \ifspli... \docvline ...h})|s0p(\measure {maincolumnwidth})|] \NC \doifelsenothing {#2}... l.1 ...{Institution}{City}{\it Grade}{Description} \cventry {year--year}{Deg... ? -- Best regards, Ze Huang 2010/11/22 Wolfgang Schuster schuster.wolfg...@googlemail.com: Am 22.11.2010 um 04:01 schrieb views63: Hi Wolfgang, I find a problem in resume module with latest beta It’s a bug in the table environment, see my other mail on the list. 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 ___ ___ 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] some issue in the OpenType MATH
\starttext \startformula \int_a^b f(x)=I \stopformula Hi all, There are some issue in the OpenType MATH example: \startformula \left|\matrix{1 1 1 1\cr 0 2 3 1\cr 0 0 3 1\cr 0 0 0 2}\right| = 12. \stopformula \setupbodyfont[cambria] $\int_a^bf(x)=I$ \startformula% The symbol of \int is looks the same inline equation, displaystyle switched Invalid. \int_a^b f(x)=I \stopformula \startformula% the | too short \left|\matrix{1 1 1 1\cr 0 2 3 1\cr 0 0 3 1\cr 0 0 0 2}\right| = 12. \stopformula \setupbodyfont[euler] \startformula % the | too short \left|\matrix{1 1 1 1\cr 0 2 3 1\cr 0 0 3 1\cr 0 0 0 2}\right| = 12. \stopformula \stoptext -- Best regards, Ze Huang ___ 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] One more (?) bib problem
Le 04 décembre à 04:23:14 seasoul bioseas...@gmail.com écrit notamment: | \placepublications[criterium=all] | this will place all the references. If only cited publications are in need, | use | \setuppublications[criterium=cite] | I also experimented on this for a long time, then i found this solution from | one of Aditya's posts. | It works to me now. Hans is in the process to develop a new bib module, I am | waiting the new powerful version :). Hi, I've tried that solution of course, but then *all* bibtex entries appear in the reference list, not only the ones cited! thx anyway, | On Sat, Dec 4, 2010 at 1:44 AM, Jean Magnan de Bornier | jm.born...@free.frwrote: | Hi all, | | A small variation on the bib test file from the wiki: | | | \setupbibtex[database=/home/jean/bibmkiv/bib.bib] | \starttext | \section{section one} | \cite[authoryear][hh2010,hh2010b] | \section{section two} | \cite[authoryear][Eijkhout1991] | \placepublications[criterium=cite] | \stoptext | | | Unfortunately, placepublications only takes into account the refs of the | section where it is located, it seems weird to me. Sorry if this has been | already reported. | | regards, | | | -- | Jean | | | ___ | 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 | | ___ | | -- Jean ___ 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 ___