Re: [NTG-context] Why doesn't his URL work?
Am 14.01.2012 um 15:16 schrieb Gerben Wierda: This code below gets me a working URL, but instead of the word kudos in blue I get the entire URL in my text. Why is that? \setupcolors[state=start] \setupurl [color=blue] \setupinteraction [state=start,color=blue] \useURL[kudos][http://nl.wikipedia.org/wiki/Kudos_(computerterm)][][kudos] \setuppapersize[A4,portrait][A4,portrait] \starttext \url[kudos] \stoptext You need \from[kudos] to get the description (fourth argument) in the 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 ___
Re: [NTG-context] Syntax highlighting for C-code
Am 13.01.2012 um 12:00 schrieb Richard Weickelt: Hi, I've tried to include some C-code into my document, but failed to enable syntax highlighting. Tested on: linux-64, context-2011.05.18 (same with the beta) stand-alone mkIV 1) \starttyping[option=C] just prints verbatim text. There seems to be no formatter for C out of the box. There is no formatter for C code in MkIV but when you write one send the file to Hans and he can include it in the distribution. 2) t-vim did not work. It failed somewhere (unknown command sequence \installspacehandler) on loading (\usemodule[vim]) 3) http://wiki.contextgarden.net/Verbatim_text I tried to download pret-c and put it into the modules folder, but writing \installprettytype[C][C] failed, because it's not known (in mkIV). MkII and MkIV have different implementation to format source code. 4) mkII does not complain to exec \installprettytype[C][C], but this does not change anything either. \starttyping[option=C] seems to call a (maybe builtin?) formatter, but I could not get colors to work. The following is MkII only. There are two ways to have formatted C code, the first is to define a C environment with \definetype[C][option=C] and then you can put the code between \startC and \stopC, the second is to use the normal typing environment and pass “option=C” as argument. To get colors in your code you have to enable them first with \setupcolors[state=start]. % engine=pdftex \setupcolors[state=start] \definetyping[C][option=C] \starttext \startC #includestdio.h int main() { printf(Hello World\n); return 0; } \stopC \blank[2*line] \starttyping[option=C] #includestdio.h int main() { printf(Hello World\n); return 0; } \stoptyping \stoptext 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] buffer mechanism changed
Am 13.01.2012 um 11:16 schrieb Steffen Wolfrum: Hi, isn't it possible to use the short way? \definebuffer[MottoSieben] \startbuffer[MottoSieben] \stopbuffer[MottoSieben] % but shouldn't it also work like this: %\startMottoSieben %\stopMottoSieben % ??? No because \startMottoSieben ≠ \startbuffer[MottoSieben]. 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] Why doesn't his URL work?
Hi Gerben, you mixed the commands: just use \from[kudos] instead of \url[kudos]. Best regards, Steffen Am 14.01.2012 um 15:16 schrieb Gerben Wierda: This code below gets me a working URL, but instead of the word kudos in blue I get the entire URL in my text. Why is that? \setupcolors[state=start] \setupurl [color=blue] \setupinteraction [state=start,color=blue] \useURL[kudos][http://nl.wikipedia.org/wiki/Kudos_(computerterm)][][kudos] \setuppapersize[A4,portrait][A4,portrait] \starttext \url[kudos] \stoptext G ___ 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] Bug in symb-ini.mkiv?
Hi Hans, With the latest beta (ConTeXt ver: 2012.01.12 11:03 MKIV), typesetting a document which used to be typeset without problems I encounter an error which points to some commands defined in symb-ini.mkiv. However I can switch back to ConTeXt ver: 2011.11.29 18:47 MKIV in order to teypeset my document. Since the document is long and the macros I use are soemwhat complex (and maybe not very well written…), I cannot send you a minimal example which shows the problem. In any case, I wanted to let you know about the issue. The error message says: inserted text } to be read again \endgroup \symb_place_retry ...name \symb_place_indeed {:#1} \else #1\fi \symb_place_normal_c ...lace_retry \currentsymbol \fi \symb_place_normal_b ...else \symb_place_normal_c \fi to be read again \else and stops when an \item is encountered. Best regards: OK ___ 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 in symb-ini.mkiv?
Am 15.01.2012 um 16:39 schrieb Otared Kavian: Hi Hans, With the latest beta (ConTeXt ver: 2012.01.12 11:03 MKIV), typesetting a document which used to be typeset without problems I encounter an error which points to some commands defined in symb-ini.mkiv. However I can switch back to ConTeXt ver: 2011.11.29 18:47 MKIV in order to teypeset my document. Since the document is long and the macros I use are soemwhat complex (and maybe not very well written…), I cannot send you a minimal example which shows the problem. In any case, I wanted to let you know about the issue. The error message says: inserted text } to be read again \endgroup \symb_place_retry ...name \symb_place_indeed {:#1} \else #1\fi \symb_place_normal_c ...lace_retry \currentsymbol \fi \symb_place_normal_b ...else \symb_place_normal_c \fi to be read again \else and stops when an \item is encountered. Send at least your log file and add “\tracingmacros1” before and “tracingmacros0” after the part where context fails (look at the line number from the error message). 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] Bug in symb-ini.mkiv?
Hi Wolfgang, Thanks for your response: right now I am not with my computer at home (writing you from another place). I'll do what you suggest this evening. Best regards: OK On 15 janv. 2012, at 16:48, Wolfgang Schuster wrote: Am 15.01.2012 um 16:39 schrieb Otared Kavian: Hi Hans, With the latest beta (ConTeXt ver: 2012.01.12 11:03 MKIV), typesetting a document which used to be typeset without problems I encounter an error which points to some commands defined in symb-ini.mkiv. However I can switch back to ConTeXt ver: 2011.11.29 18:47 MKIV in order to teypeset my document. Since the document is long and the macros I use are soemwhat complex (and maybe not very well written…), I cannot send you a minimal example which shows the problem. In any case, I wanted to let you know about the issue. The error message says: inserted text } to be read again \endgroup \symb_place_retry ...name \symb_place_indeed {:#1} \else #1\fi \symb_place_normal_c ...lace_retry \currentsymbol \fi \symb_place_normal_b ...else \symb_place_normal_c \fi to be read again \else and stops when an \item is encountered. Send at least your log file and add “\tracingmacros1” before and “tracingmacros0” after the part where context fails (look at the line number from the error message). 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 ___
Re: [NTG-context] Bug in symb-ini.mkiv?
Hi Wolfgang, Combing through various setups and definitions of my document, finally I could find the culprit: the error message was due to the change in the way \color should be used now. Changing all over \color[darkred] (for instance) with \startcolor[darkred]…\stopcolor, fixed the error messages. Since this may happen with other users who have \color somewhere in their file, I give below the minimal example I could find to show the problem. Thank for your help: OK %%% begin item-color.tex \definefontsynonym[Wingdings][Wingdings.ttf] %\definesymbol[Boite][{\color[darkgray]\getglyph{Wingdings}{\char113}}] %% this creates problems…. %\definesymbol[Boite][{\color[darkgray]{\getglyph{Wingdings}{\char113}}}] %% this is fine \definesymbol[Boite][{\startcolor[darkgray]\getglyph{Wingdings}{\char113}\stopcolor}] %% this is fine %\tracingmacros1 \setupitemize[Boite] %\tracingmacros0 \starttext \startitemize \item Item 1 \item Item 2 \stopitemize \stoptext %%% end item-color.tex On 15 janv. 2012, at 16:48, Wolfgang Schuster wrote: Am 15.01.2012 um 16:39 schrieb Otared Kavian: Hi Hans, With the latest beta (ConTeXt ver: 2012.01.12 11:03 MKIV), typesetting a document which used to be typeset without problems I encounter an error which points to some commands defined in symb-ini.mkiv. However I can switch back to ConTeXt ver: 2011.11.29 18:47 MKIV in order to teypeset my document. Since the document is long and the macros I use are soemwhat complex (and maybe not very well written…), I cannot send you a minimal example which shows the problem. In any case, I wanted to let you know about the issue. The error message says: inserted text } to be read again \endgroup \symb_place_retry ...name \symb_place_indeed {:#1} \else #1\fi \symb_place_normal_c ...lace_retry \currentsymbol \fi \symb_place_normal_b ...else \symb_place_normal_c \fi to be read again \else and stops when an \item is encountered. Send at least your log file and add “\tracingmacros1” before and “tracingmacros0” after the part where context fails (look at the line number from the error message). 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] Unicode character for \,?
Hello, What Unicode character can replace \,? NARROW NO-BREAK SPACE is too small: \starttext \|\,\| \type{\,}\par \| \| THIN SPACE (U+2009) (why smaller than \type{\,}?)\par \| \| NARROW NO-BREAK SPACE (U+202F) (why almost nothing?)\par \|\| nothing\par \|~\| \type{~}\par \| \| NO-BREAK SPACE (U+00A0) (seems ok to me) \stoptext TIA for any hints! -- Peter ___ 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] Unicode character for \,?
Am 15.01.2012 um 22:19 schrieb Peter Münster: Hello, What Unicode character can replace \,? NARROW NO-BREAK SPACE is too small: \starttext \|\,\| \type{\,}\par \| \| THIN SPACE (U+2009) (why smaller than \type{\,}?)\par \| \| NARROW NO-BREAK SPACE (U+202F) (why almost nothing?)\par \|\| nothing\par \|~\| \type{~}\par \| \| NO-BREAK SPACE (U+00A0) (seems ok to me) \stoptext \starttext \startlines \|\| \|\,\| \|\sixperemspace\| \stoplines \stoptext 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] Unicode character for \,?
On Sun, Jan 15 2012, Wolfgang Schuster wrote: \|\sixperemspace\| No, there is a line break: \starttext \hsize1pt bla\sixperemspace bla \stoptext -- Peter ___ 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] Broken Rotation in Nightly
On Fri, 2012-01-13 at 21:12 -0500, Aditya Mahajan wrote: \color is no longer a switch; it must be used as \color[red]{...}. Thanks. It compiles now. Or should I say typeset? What is the proper term anyways? -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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] font-otn.lua:1809: attempt to index local 'chainlookup' (a nil value)
Hi, I am just trying to quickly report this without joining mailing list, hopefully it works. I am getting strange error reports with hebrew words and ConTeXt IV. Error is following: error: /usr/share/texmf/tex/context/base/font-otn.lua:1809: attempt to index local 'chainlookup' (a nil value). My suspicion is that this could be some regression bug introduced to ConTeXt IV. This is because I could not think anything I have done wrong and my testing file is very simple. I also have earlier standalone ConTeXt IV that does not give this error. Exact details can be found from tex/stackexhange where I initially started to ask around. I post this thing here only to make sure that this catches the attention of the right people. Question in tex/stackexchange: http://tex.stackexchange.com/questions/41052/hebrew-words-causes-strange-errors-with-context-iv-luatex Thank you, Simo Ojala ___ 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 ___