Re: [NTG-context] an issue with line numbers in the verbatim text

2010-08-11 Thread 李延瑞
2010/8/11 Hongwen Qiu qiuhong...@gmail.com:  On 08/11/2010 08:23 PM, Li Yanrui (李延瑞) wrote: Hi all, this is an example. \setuptyping[numbering=line] \setuplinenumbering[location=intext] \showframe \starttext \starttyping This is the first line. Last line after an empty line.

Re: [NTG-context] Verbatim line numbering: location intext/text, empty lines, wrapped lines

2010-08-04 Thread Hans Hagen
On 3-8-2010 2:50, Stefan Müller wrote: Example: \starttext \defineframedtext[framedcode][strut=yes, offset=2mm, width=7cm, align=right] \definetyping[code][numbering=line, before={\startframedcode}, after={\stopframedcode}] \setuplinenumbering[location=text] \startcode This is the first line

[NTG-context] Verbatim line numbering: location intext/text, empty lines, wrapped lines

2010-08-03 Thread Stefan Müller
Hi, I found some issues with verbatim line numbering in MkIV. The appended examples is basically taken from the wiki. http://wiki.contextgarden.net/Verbatim_text#Line_numbering (The wiki uses MkII?) When I want the line numbers to be displayed intext, I have to use \setuplinenumbering[location

Re: [NTG-context] Verbatim line numbering: location intext/text, empty lines, wrapped lines

2010-08-03 Thread Patrick Gundlach
(The wiki uses MkII?) Yes Patrick ___ 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

[NTG-context] Newbie: floats with Context 2009 (Ubuntu). How do I use this workaround?

2010-07-03 Thread Pascale Julia
in page-str.mkiv (which makes sense, as it looks like it does not belong there). Copying those macros verbatim into the test file works, so it is probably just an oversight that they do not appear elsewhere in mkiv. (see attachment) Best wishes, Taco -- next part -- A non

Re: [NTG-context] \setcharacterspacing[frenchpunctuation] in mkiv

2010-06-23 Thread Hans Hagen
be enabled in verbatim i.e. maybe we need something \everyforgettypesetting or so - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53

Re: [NTG-context] floatcombinations, localfloats [mkiv]

2010-06-04 Thread Taco Hoekwater
-str.mkiv (which makes sense, as it looks like it does not belong there). Copying those macros verbatim into the test file works, so it is probably just an oversight that they do not appear elsewhere in mkiv. (see attachment) Best wishes, Taco floats.tex Description: TeX document

Re: [NTG-context] floatcombinations, localfloats [mkiv]

2010-06-04 Thread Marius
is not included in page-str.mkiv (which makes sense, as it looks like it does not belong there). Copying those macros verbatim into the test file works, so it is probably just an oversight that they do not appear elsewhere in mkiv. (see attachment) Best wishes, Taco

Re: [NTG-context] floatcombinations, localfloats [mkiv]

2010-06-04 Thread Hans Hagen
with local floats is not included in page-str.mkiv (which makes sense, as it looks like it does not belong there). Copying those macros verbatim into the test file works, so it is probably just an oversight that they do not appear elsewhere in mkiv. (see attachment) ok, will be fixed in next beta

Re: [NTG-context] floatcombinations, localfloats [mkiv]

2010-06-04 Thread Rogutės Sparnuotos
side by side? Looks like the bit of page-str.mkii that dealt with local floats is not included in page-str.mkiv (which makes sense, as it looks like it does not belong there). Copying those macros verbatim into the test file works, so it is probably just an oversight that they do

Re: [NTG-context] ConTeXt name/branding

2010-04-26 Thread Hans Hagen
). Further, if the name is brought up in conversation and piques the interest of a potential user, they will have a difficult time later searching for it when they type in contekt or conteckt. well, nobody here cares much if you type ConTeXt as CONTEXT (small caps) or context (verbatim or whatever

Re: [NTG-context] hyphens in verbatim text

2010-04-07 Thread Hans Hagen
On 7-4-2010 5:04, Hongwen Qiu wrote: -- in verbatim text displayed as a single -, no matter in \type{} or in typing environment or something like that. looks ok here, so example needed

Re: [NTG-context] hyphens in verbatim text

2010-04-07 Thread Hongwen Qiu
于 2010年04月07日 16:12, Hans Hagen 写道: looks ok here, so example needed I found that the problem can only be produced when using the simplefonts module, while loading the adobesongstd font and some other Chinese fonts. So, the problem maybe something's wrong with the simplefonts module. The

Re: [NTG-context] hyphens in verbatim text

2010-04-07 Thread Wolfgang Schuster
-- --- \stoptyping \type{--} \stoptext Comment the first synonym in the mono typescript and uncomment the second to get correct dashes in verbatim mode. Wolfgang ___ If your question is of interest to others as well

Re: [NTG-context] hyphens in verbatim text

2010-04-07 Thread Hongwen Qiu
于 2010年04月08日 07:14, Wolfgang Schuster 写道: Add '\setmonofont[Latin Modern Mono][features=none]' to your file. Yes, this works. Tanks. ___ If your question is of interest to others as well, please add an entry to the

[NTG-context] hyphens in verbatim text

2010-04-06 Thread Hongwen Qiu
-- in verbatim text displayed as a single -, no matter in \type{} or in typing environment or something like that. current version: 2010.03.30 18:56 $ luatex --version This is LuaTeX, Version beta-0.60.0-2010040422

Re: [NTG-context] Which packages?

2010-03-29 Thread Hans Hagen
comparison of LaTeX/ConTeXt packages/modules would be done? I'm interested how to include a part of a text file and how to insert verbatim? not that hard to support that (you're the first one to ask) next beta will have this (a 10 minute extension) % label:start:one \def\MyMacro {just

Re: [NTG-context] xml TeX expansion?

2010-03-17 Thread Wolfgang Schuster
the CDATA content, at the moment it is printed verbatim. What you can also do is to write TeX content in a tex element and disable xml parsing. A better way is to minimize your markup and inlcude rules etc. in other elements/environments (e.g. headers, descriptions ...) \startbuffer[test] ?xml

Re: [NTG-context] xml TeX expansion?

2010-03-17 Thread Hans van der Meer
to let ConTeXt interpret the CDATA content, at the moment it is printed verbatim. What you can also do is to write TeX content in a tex element and disable xml parsing. A better way is to minimize your markup and inlcude rules etc. in other elements/environments (e.g. headers, descriptions

Re: [NTG-context] What do you miss in ConTeXt?

2010-03-14 Thread Joshua Lee
Hi Guys, The verbatim or listings of MKIV sucks. Here's a little sample: \definetyping[code][numbering=line] \starttext \startcode ... ... \stopcode \startcode[continue] ... ... \stopcode \startcode[start=10] ... ... \stopcode \typefile[numbering=file]{test.tex} \stoptext It can not work

Re: [NTG-context] suggestions for context documentation

2010-03-08 Thread Hans Hagen
bytes (and time) on those licences). \stopitem \startitem Contrary to what users might think, a lot of code in any \TEX\ macro package is written for the sake of documentation: verbatim. Without verbatim much would look simpler (less exceptions due to catcodes for instance). So, writing documentation

[NTG-context] Any syntax highlighter for C++ MKIV?

2010-02-04 Thread seasoul
The verbatim function in MKIV is really powerful, and pretty printing of progamming language is easy. But unfortuantely, I do not know how to modify the php, or lua pretty printing formatter to what I want --- C++ formatter. After laboriously searching, I failed to find any working formatter

Re: [NTG-context] Verbatim Text with Embedded Formatting Commands (MkIV)

2010-01-29 Thread Tad Ashlock
Hans Hagen wrote: On 9-1-2010 0:52, Tad Ashlock wrote: ... you can try the beta with \enabletrackers[buffers.visualize] \starttext \definetyping[C] % [option=C] \setuptyping[C][escape=yes] \startC #include stdio.h int main(){ return 0; /BTEX{\em unreachedCode;}/ETEX }

[NTG-context] How to add line number to verbatim typefile?

2010-01-21 Thread Joshua Lee
Hi all, Here's a little sample named test.tex, \starttext \setuptyping[file][numbering=line] \typefile[start=1,step=1]{test.tex} \stoptext But, it does not shows the line number, any questions about the code snippet, thanks. BR/JL

Re: [NTG-context] Verbatim Text with Embedded Formatting Commands (MkIV)

2010-01-11 Thread Hans Hagen
On 9-1-2010 0:52, Tad Ashlock wrote: ... you can try the beta with \enabletrackers[buffers.visualize] \starttext \definetyping[C] % [option=C] \setuptyping[C][escape=yes] \startC #include stdio.h int main(){ return 0; /BTEX{\em unreachedCode;}/ETEX } \stopC \setuptyping[escape=yes]

Re: [NTG-context] Verbatim Text with Embedded Formatting Commands (MkIV)

2010-01-08 Thread Tad Ashlock
Hans Hagen wrote: On 13-12-2009 12:26, Tad Ashlock wrote: As noted at http://wiki.contextgarden.net/Verbatim_text#Embedded_formatting_commands, the embedded formatting commands in verbatim text don't work in MkIV. Are there any plans to fix this capability soon? I'm planning on working

Re: [NTG-context] Verbatim Text with Embedded Formatting Commands (MkIV)

2009-12-30 Thread Hans Hagen
On 13-12-2009 12:26, Tad Ashlock wrote: As noted at http://wiki.contextgarden.net/Verbatim_text#Embedded_formatting_commands, the embedded formatting commands in verbatim text don't work in MkIV. Are there any plans to fix this capability soon? I'm planning on working on a project on over

[NTG-context] Verbatim Text with Embedded Formatting Commands (MkIV)

2009-12-13 Thread Tad Ashlock
As noted at http://wiki.contextgarden.net/Verbatim_text#Embedded_formatting_commands, the embedded formatting commands in verbatim text don't work in MkIV. Are there any plans to fix this capability soon? I'm planning on working on a project on over the holiday break that will need it. I'm

Re: [NTG-context] Verbatim Text with Embedded Formatting Commands (MkIV)

2009-12-13 Thread Wolfgang Schuster
Am 13.12.2009 um 12:26 schrieb Tad Ashlock: As noted at http://wiki.contextgarden.net/Verbatim_text#Embedded_formatting_commands, the embedded formatting commands in verbatim text don't work in MkIV. Are there any plans to fix this capability soon? I'm planning on working on a project

Re: [NTG-context] Verbatim problem in mkiv

2009-11-29 Thread Taco Hoekwater
Chen Shen wrote: Hi, I'm having problem with verbatim typing with linenumber under mkiv. The following code works fine without location=text turned off, but fails when it's turned on. The text 0279699410 appears at the beginning of every alternate line. Thanks a lot. For Hans: the problem

Re: [NTG-context] Verbatim problem in mkiv

2009-11-29 Thread Hans Hagen
Taco Hoekwater wrote: Chen Shen wrote: Hi, I'm having problem with verbatim typing with linenumber under mkiv. The following code works fine without location=text turned off, but fails when it's turned on. The text 0279699410 appears at the beginning of every alternate line. Thanks a lot

[NTG-context] Verbatim problem in mkiv

2009-11-28 Thread Chen Shen
Hi, I'm having problem with verbatim typing with linenumber under mkiv. The following code works fine without location=text turned off, but fails when it's turned on. The text 0279699410 appears at the beginning of every alternate line. Thanks a lot. regards, shenchen = start

[NTG-context] verbatim, reserved words, Python, MkII

2009-11-19 Thread R. Bastian
Hello, I wish to write Python code with highlighted reserved words, but I dont find any modell in the context-garden: all verb-.tex are 'Unknown' http://source.contextgarden.net/verb-c.tex Unknown file or directory: verb-c.tex Thanks for your tips, -- René Bastian www.pythoneon.org

Re: [NTG-context] verbatim, reserved words, Python, MkII

2009-11-19 Thread luigi scarso
On Thu, Nov 19, 2009 at 11:45 AM, R. Bastian rbast...@free.fr wrote: Hello, I wish to write Python code with highlighted reserved words, but I dont find any modell in the context-garden: all verb-.tex are 'Unknown' http://source.contextgarden.net/verb-c.tex Unknown file or directory:

Re: [NTG-context] Verbatim HTML Code

2009-11-07 Thread Wolfgang Murth
Hello Hans, \typefile{somefile.html} Thanks, that did it. Wolfgang Murth ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] Printing partly bolded verbatim

2009-10-26 Thread Taco Hoekwater
Gerben Wierda wrote: I tried putting /BTEX{\bf IfSQ Fragment selection (minimum length = 60)}/ETEX in a source that is prettyprinted with mkii (took that idea form the wiki) but this does not work (no bold in the pretty printed result). Can this be done? First, if you want to run the

Re: [NTG-context] Printing partly bolded verbatim

2009-10-26 Thread Gerben Wierda
On 26 Oct 2009, at 07:29, Taco Hoekwater wrote: Gerben Wierda wrote: I tried putting /BTEX{\bf IfSQ Fragment selection (minimum length = 60)}/ETEX in a source that is prettyprinted with mkii (took that idea form the wiki) but this does not work (no bold in the pretty printed result). Can

Re: [NTG-context] Printing partly bolded verbatim

2009-10-26 Thread Taco Hoekwater
\typefile as well as not to use \typefile. That confuses me. Depends on what you want most: if you want commands, no \typefile, but inlined verbatim. If you want color, you can use \typefile, but with extra options. Best wishes, Taco

[NTG-context] Printing partly bolded verbatim

2009-10-25 Thread Gerben Wierda
I tried putting /BTEX{\bf IfSQ Fragment selection (minimum length = 60)}/ETEX in a source that is prettyprinted with mkii (took that idea form the wiki) but this does not work (no bold in the pretty printed result). Can this be done? I use:

[NTG-context] How to disable the hypernation in verbatim environment

2009-10-13 Thread Joshua Lee
Hi All, The hypernation in verbatim environment will break the keywords of the input source code, for example, it break the C language statement. I googling the wiki of ConTeXt site and find that http://wiki.contextgarden.net/Verbatim_with_line_breaks#Why_German_is_a_relatively_easy_language

Re: [NTG-context] Using verbatim text with combinations

2009-08-11 Thread Thomas A. Schmitz
On Aug 11, 2009, at 8:46 PM, Črt Gorup wrote: Hi, I am having some problems using two (side by side) frames containing verbatim text. Can anybody suggest the right approach to this problem? As long as indents are at the right position, I can also survive without the frame around

Re: [NTG-context] Using verbatim text with combinations

2009-08-11 Thread Črt Gorup
Exactly. Thank you. Crt On Aug 11, 2009, at 9:12 PM, Thomas A. Schmitz wrote: On Aug 11, 2009, at 8:46 PM, Črt Gorup wrote: Hi, I am having some problems using two (side by side) frames containing verbatim text. Can anybody suggest the right approach to this problem? As long

[NTG-context] type problems

2009-08-06 Thread Wolfgang Werners-Lucchini
Hallo, I have always problems with verbatim text. Sometimes I found a solution, sometimes a workaround. Are there solutions to - print text with a verbatim '%' sign - print text with a verbatim '{' why is in the following example '#' -- '##'? why is there a newline between 'bla' and 'blub

Re: [NTG-context] type problems

2009-08-06 Thread Wolfgang Schuster
Am 06.08.2009 um 11:28 schrieb Wolfgang Werners-Lucchini: Hallo, I have always problems with verbatim text. Sometimes I found a solution, sometimes a workaround. Are there solutions to - print text with a verbatim '%' sign - print text with a verbatim '{' \starttext \mono{\%}\mono

[NTG-context] Problem with \definetextbackground

2009-08-04 Thread Helmut Schwertner
Hello, I have a problem with the following file: test.tex%%% \setupcolors[state=start] \definetextbackground[verbatim] [background=color,backgroundcolor=yellow,backgroundoffset=0cm,offset=0.5cm,frame=on,framecolor=black,location=paragraph,color=black

Re: [NTG-context] t-vim: inline typing?

2009-07-21 Thread Peter Münster
in verbatim and write it to a file. Not really necessary for me. Thanks, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] support for SUBSCRIPT THREE etc. ?

2009-07-21 Thread Khaled Hosny
fonts will align those subscript glyphs to the base line not bellow it, and apparently LM fonts don't have them. I think there is a way to use ConTeXt commands inside verbatim environments, but I don't recall it. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org

Re: [NTG-context] support for SUBSCRIPT THREE etc. ?

2009-07-21 Thread Matthijs Kooijman
Hi Peter Khaled, I think there is a way to use ConTeXt commands inside verbatim environments, but I don't recall it. I think this is the option=commands option for setuptyping friends. AFAIK this means you need to use /TEX /ETEX around your commands or something, but I'm not completely sure

Re: [NTG-context] support for SUBSCRIPT THREE etc. ?

2009-07-21 Thread Peter Münster
, }, So I supposed, that the specials are for faking or simulating the unicode character, for example ² - \superscript{2} or similar. Perhaps, my assumption is just wrong... I think there is a way to use ConTeXt commands inside verbatim environments, but I don't recall it. Yes, BTEX...ETEX

Re: [NTG-context] support for SUBSCRIPT THREE etc. ?

2009-07-21 Thread Hans Hagen
Matthijs Kooijman wrote: Hi Peter Khaled, I think there is a way to use ConTeXt commands inside verbatim environments, but I don't recall it. I think this is the option=commands option for setuptyping friends. AFAIK this means you need to use /TEX /ETEX around your commands or something

Re: [NTG-context] t-vim: inline typing?

2009-07-20 Thread Aditya Mahajan
to also define \typeC{...}, but then I will need to read up how to read code in verbatim and write it to a file. Aditya%M \logo [VIM] {VIM} % Needed for the title %D \module %D [ file=t-vim, %Dversion=2008.07.15, %D title=\VIM\ to \CONTEXT, %D subtitle=Use \VIM

[NTG-context] placefigure[right] draws figures inside framed text

2009-07-08 Thread Jos van Gisbergen
Hello, I'm using framed text to display verbatim sourse code. The frame should use the entire textwidth, so I use width=broad. A problem occurs when I use a figure placed at the right side of the page, before a framed text section: the figure is drawn *inside* the frame. With non-framed text

Re: [NTG-context] placefigure[right] draws figures inside framed text

2009-07-08 Thread Willi Egger
Hi, use \framedtext[width=.5\textwidth]{...}. Framed text breaks over the lines. Do not use a \vbox Willi On Jul 8, 2009, at 1:54 PM, Jos van Gisbergen wrote: Hello, I'm using framed text to display verbatim sourse code. The frame should use the entire textwidth, so I use width=broad

Re: [NTG-context] placefigure[right] draws figures inside framed text (Willi Egger)

2009-07-08 Thread Jos van Gisbergen
...@boede.nl Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hi, use \framedtext[width=.5\textwidth]{...}. Framed text breaks over the lines. Do not use a \vbox Willi On Jul 8, 2009, at 1:54 PM, Jos van Gisbergen wrote: Hello, I'm using framed text to display verbatim

[NTG-context] Verbatim / prettyprinting in mkIV

2009-06-08 Thread Matthijs Kooijman
Hi all, I've been struggling with verbatim printing in MkIV for a while now and found some confusing things. I did finally get things working, but after quite some effort. I'd like to hear if my conclusions are correct, perhaps I can put them on the wiki then. I was trying to set up some custom

Re: [NTG-context] Verbatim / prettyprinting in mkIV

2009-06-08 Thread Hans Hagen
Matthijs Kooijman wrote: Hi all, I've been struggling with verbatim printing in MkIV for a while now and found some confusing things. I did finally get things working, but after quite some effort. I'd like to hear if my conclusions are correct, perhaps I can put them on the wiki then. mkiv

Re: [NTG-context] Verbatim / prettyprinting in mkIV

2009-06-08 Thread Mohamed Bana
the author of the latex 'listing' package showed some interest in porting the code to ConTeXt. Perhaps someone could contact him. Matthijs Kooijman wrote: Hi all, I've been struggling with verbatim printing in MkIV for a while now and found some confusing things. I did finally get things

Re: [NTG-context] \typebuffer with typing style

2009-06-08 Thread Matthijs Kooijman
Hi all, since \startFOO \getbuffer[bar] \stopFOO gives me compile errors. Actually, that turned out to be my own typo. However, this doesn't give me what I want, but just a verbatim \getbuffer[bar]... Gr. Matthijs signature.asc Description: Digital signature

Re: [NTG-context] Printing source code intelligently with ConTeXt (with overlay)

2009-06-06 Thread Gerben Wierda
: Context Support Macros / Pretty SQL Verbatim (/usr/local/texlive/2008/texmf-dist/tex/context/base/verb-pl.tex loading : Context Support Macros / Pretty PERL Verbatim )) Overfull \hbox (23.9878pt too wide) in paragraph at lines 4--4 []|[] [][] [][] []\*12pftt*: dan[] []wordt[] []de[] []form

[NTG-context] Interaction between overlay and typing?

2009-06-06 Thread Gerben Wierda
, numbered output. It does not get me the overlay. Some interaction between verbatim and overlay? I also do not see any coloration. G ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] Interaction between overlay and typing?

2009-06-06 Thread Wolfgang Schuster
\setuppapersize[A4,landscape][a4,landscape] \setupbackgrounds[page][overlay=ifsqoverlay] background=ifsqoverlay \typefile[SQL][]{details.pls} \stoptext Gets me the landscape, A4, numbered output. It does not get me the overlay. Some interaction between verbatim

Re: [NTG-context] Interaction between overlay and typing?

2009-06-06 Thread Gerben Wierda
as a background image) G \typefile[SQL][]{details.pls} \stoptext Gets me the landscape, A4, numbered output. It does not get me the overlay. Some interaction between verbatim and overlay? I also do not see any coloration. Wolfgang

Re: [NTG-context] re-posting example of header at page bottom

2009-05-20 Thread Jos van Gisbergen
] %-- Attributes for verbatim texts % % This is meant for verbatim text and code examples. \setuptyping[margin=3mm, space=off, % Do not show space characters explicitely color=DarkBlue, % Color of verbatim text

Re: [NTG-context] re-posting example of header at page bottom

2009-05-20 Thread Wolfgang Schuster
by the textbackground around the verbatim environment. 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

Re: [NTG-context] header at page bottom example

2009-05-19 Thread Jos van Gisbergen
for footnotes -- \setupfootnotes[rule=off,background=color,backgroundcolor=white] \setupfootnotedefinition[background=color,backgroundcolor=red] %-- Attributes for verbatim texts % % This is meant for verbatim text and code examples

[NTG-context] framed text question

2009-04-21 Thread Jos van Gisbergen
Hi, I have a question regarding framed text. To obtain framed verbatim text that breaks over pages, I use the macro \definetextbackground. I have encountered a slight problem, however: sometimes the upper part of the frame appears on the bottom of the page with no text in it (because there's

Re: [NTG-context] framed text question

2009-04-21 Thread Aditya Mahajan
On Tue, 21 Apr 2009, Jos van Gisbergen wrote: Hi, I have a question regarding framed text. To obtain framed verbatim text that breaks over pages, I use the macro \definetextbackground. I have encountered a slight problem, however: sometimes the upper part of the frame appears on the bottom

Re: [NTG-context] framed text question (Aditya Mahajan)

2009-04-21 Thread Jos van Gisbergen
verbatim text that breaks over pages, I use the macro \definetextbackground. I have encountered a slight problem, however: sometimes the upper part of the frame appears on the bottom of the page with no text in it (because there's not enough room). The strange thing is that if I comment out

[NTG-context] Files for verbatim output of Python source, zc.buildout and Apache config files

2009-04-19 Thread Drazen Baic
of Python source code, Apache http.conf and zc.buildout config files. For the zc.buildout files I used a simple solution and just defined the keywords that appear in a standard Plone buildout.cfg file as I didn't need more. I hope to finish two additional verbatim files for XML and Shell scripts in the next

Re: [NTG-context] Files for verbatim output of Python source, zc.buildout and Apache config files

2009-04-19 Thread Hans Hagen
Drazen Baic wrote: Would it be OK to put the files in a section on the Wiki to start something like a repository for verb-*.lua files where it would be easy to extend and correct them? sure, just go ahead -

Re: [NTG-context] Files for verbatim output of Python source, zc.buildout and Apache config files

2009-04-19 Thread Drazen Baic
On Sun, Apr 19, 2009 at 7:09 PM, Hans Hagen pra...@wxs.nl wrote: Drazen Baic wrote: Would it be OK to put the files in a section on the Wiki to start something like a repository for verb-*.lua files where it would be easy to extend and correct them? sure, just go ahead

[NTG-context] Bugs in latest beta: line numbering in verbatim

2009-04-16 Thread Otared Kavian
Hi Hans, This bug was reported by Wolfgang Schuster a few months ago, but it persists: line numbering in verbatim is broken in mkiv (it works as expected in mkii). Minimal example: \setuptyping[numbering=line] \setupcolors[state=start] \starttext \startframedtext[frame=off,background=color

[NTG-context] Files for verbatim output of Python source, zc.buildout and Apache config files

2009-04-16 Thread Drazen Baic
a simple solution and just defined the keywords that appear in a standard Plone buildout.cfg file. I hope to finish two additional verbatim files for XML and Shell scripts in the next days. As I don't have any experience in writing Lua code I chose to use the tex/context/base/verb-*.lua and the verb

[NTG-context] Typesetting C code

2009-04-02 Thread zikmua1
Can someone help me with typesetting C code. I tried typeset JAVA code with followed command \startJV import java.text.DateFormat; public class MainClass(){ } \stopJV and output was OK. I use predefine typing environment (verbatim) If I use predefine environment for C code, \startC #include

[NTG-context] Is \index command broken?

2009-03-21 Thread Curious Learn
Hi, I tried using the \index command in my document: \starttext \type{\textext()} \index[textext]{\textext} To typeset metapost variable values (not the verbatim text) using \TEX\ markup, use this command. \page \completeindex \stoptext However, no index is created. The log file

Re: [NTG-context] Making necessary OpenType features on by default

2009-02-22 Thread Otared Kavian
most OpenType enable by default (at least the ones I tested). i've been thinking of a features=default option (as there is already features=yes|no) even then it can never be fully automatic as some usage of fonts (think of verbatim) demands devation from defaults now, if we implement

Re: [NTG-context] Making necessary OpenType features on by default

2009-02-22 Thread Otared Kavian
enable by default (at least the ones I tested). i've been thinking of a features=default option (as there is already features=yes|no) even then it can never be fully automatic as some usage of fonts (think of verbatim) demands devation from defaults now, if we implement a default list

Re: [NTG-context] Making necessary OpenType features on by default

2009-02-20 Thread Hans Hagen
(think of verbatim) demands devation from defaults now, if we implement a default list then we first need to make a detailed list of what the supposed defaults are (and i'm not sure if ms is the only resource for that; after all, not all machineries support all features) a related issue

Re: [NTG-context] Making necessary OpenType features on by default

2009-02-20 Thread Khaled Hosny
features=yes|no) even then it can never be fully automatic as some usage of fonts (think of verbatim) demands devation from defaults now, if we implement a default list then we first need to make a detailed list of what the supposed defaults are (and i'm not sure if ms is the only resource

[NTG-context] End of line marker in verbatim texts

2009-02-09 Thread Peter Münster
Hello, The example on http://wiki.contextgarden.net/Goodies does not work with MKIV. What is the new way to do this? Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If your question is of

Re: [NTG-context] End of line marker in verbatim texts

2009-02-09 Thread Hans Hagen
Peter Münster wrote: Hello, The example on http://wiki.contextgarden.net/Goodies does not work with MKIV. What is the new way to do this? for the moment you can try hack \let\endverbatimline\relax into something when i'm in the mood (or have an incentive) i'll extend the verbatim module

[NTG-context] framed typing with linenumbers in mkiv

2009-01-24 Thread Wolfgang Schuster
Hi, I want numbered lines in my verbatim code but it did not work in mkiv. \setuptyping[numbering=line] \starttext \startframedtext \starttyping one two three \stoptyping \stopframedtext \stoptext Wolfgang

Re: [NTG-context] printing tab in lua: print('a\tb') fails

2008-11-27 Thread Mojca Miklavec
code. OK, I will use external files next time. In this quick-and-dirty approach I just added string.format since it was easier than restructuring everything. I thought that \startluacode should be behaving the same way as verbatim environments where commands inside verbatim have no influence

Re: [NTG-context] printing tab in lua: print('a\tb') fails

2008-11-27 Thread luigi scarso
OK, I will use external files next time. In this quick-and-dirty approach I just added string.format since it was easier than restructuring everything. I thought that \startluacode should be behaving the same way as verbatim environments where commands inside verbatim have no influence

Re: [NTG-context] printing tab in lua: print('a\tb') fails

2008-11-27 Thread Wolfgang Schuster
as verbatim environments where commands inside verbatim have no influence, but apparently I was wrong. I also think so. Can be strange, but inside a \startluacode\stopluacode I have no problems to think at -- as comment while I have problems to think to % as comment And put lua code in a separate

Re: [NTG-context] printing tab in lua: print('a\tb') fails

2008-11-27 Thread luigi scarso
restructuring everything. I thought that \startluacode should be behaving the same way as verbatim environments where commands inside verbatim have no influence, but apparently I was wrong. I also think so. Can be strange, but inside a \startluacode\stopluacode I have no problems to think

Re: [NTG-context] printing tab in lua: print('a\tb') fails

2008-11-27 Thread Hans Hagen
Mojca Miklavec wrote: I thought that \startluacode should be behaving the same way as verbatim environments where commands inside verbatim have no influence, but apparently I was wrong. no, more like MPcode where one can mix things if the luacode would not expand macros, then we'd need

Re: [NTG-context] Pb with verb-pas

2008-11-10 Thread Taco Hoekwater
Eric DÉTREZ wrote: Hello A funny problem When I use pascal verbatim I've got a curious feature (?) bug. Here is the fix: --- verb-pas.tex.orig 2004-09-05 02:34:26.0 +0200 +++ verb-pas.tex 2008-11-10 14:27:19.147979056 +0100 @@ -94,7 +94,8 @@ {\handlenextnextpretty

Re: [NTG-context] Pb with verb-pas

2008-11-10 Thread Eric DÉTREZ
Le 10 nov. 08 à 14:31, Taco Hoekwater a écrit : Eric DÉTREZ wrote: Hello A funny problem When I use pascal verbatim I've got a curious feature (?) bug. Here is the fix: --- verb-pas.tex.orig 2004-09-05 02:34:26.0 +0200 +++ verb-pas.tex 2008-11-10 14:27:19.147979056

[NTG-context] Pb with verb-pas

2008-11-09 Thread Eric DÉTREZ
Hello A funny problem When I use pascal verbatim I've got a curious feature (?) Here is a minimal problem \starttext \startPAS i/ 2; nom/ 2; ; \stopPAS \stoptext When I typeset it the i desappear. I only occurs when the / is followed by a space and when the variable before

Re: [NTG-context] apostrophe in a verbatim enviroment

2008-11-07 Thread Taco Hoekwater
Alan Bowen wrote: Thanks, Aditya. This is a good start. The problem is that I need this to work with \starttyping...\stoptyping because there are spacing and line-breaking issues as well. Right now: \starttext \catcode`'=\active \def'{\raise.6em\hbox{\char13}} You can add this

Re: [NTG-context] apostrophe in a verbatim enviroment

2008-11-07 Thread Alan Bowen
Many thanks, Taco, that works perfectly. I have been typesetting this book for my brother and that was the last knot to be untied before sending it off. Very best, Alan PS Your tact in phrasing your hint is also much appreciated! 8-) On Nov 7, 2008, at 10;45,46 , Taco Hoekwater wrote:

Re: [NTG-context] apostrophe in a verbatim enviroment

2008-11-07 Thread Alan Bowen
Thanks, Aditya. This is a good start. The problem is that I need this to work with \starttyping...\stoptyping because there are spacing and line-breaking issues as well. Right now: \starttext \catcode`'=\active \def'{\raise.6em\hbox{\char13}} \starttyping 202'906 202'096 \stoptyping

[NTG-context] apostrophe in a verbatim enviroment

2008-11-06 Thread Alan Bowen
Is it possible to get an apostrophe to typeset as a vertical mark ( ' ) rather than a curved mark ( ’ ) when using \starttyping and MKII? I am trying to get the old “typewriter” look for a brief stretch of text. Alan

Re: [NTG-context] apostrophe in a verbatim enviroment

2008-11-06 Thread Aditya Mahajan
On Thu, 6 Nov 2008, Alan Bowen wrote: Is it possible to get an apostrophe to typeset as a vertical mark ( ' ) rather than a curved mark ( ’ ) when using \starttyping and MKII? I am trying to get the old “typewriter” look for a brief stretch of text. See

Re: [NTG-context] Verbatim Text (esp. XML/XSL + opportunity of a brand new support for the RelaxNG Compact syntax)

2008-10-20 Thread Taco Hoekwater
verbatim support (with lua)? + the bonus question: I want to add some support for the RelaxNG Compact syntax, should I follow the procedure described on the wiki or switch to Mark IV ? The deadline for this technical report: end of october... Mark IV's framework for syntax highlighting

Re: [NTG-context] Verbatim Text (esp. XML/XSL + opportunity of a brand new support for the RelaxNG Compact syntax)

2008-10-20 Thread Renaud Aubin
the initial indentation. The point is now, how to improve verb-xml to support xpath expressions ? I'm working with Mark II... Should I switch to Mark IV if I want to write a new XML verbatim support (with lua)? + the bonus question: I want to add some support for the RelaxNG Compact syntax

[NTG-context] Verbatim Text (esp. XML/XSL + opportunity of a brand new support for the RelaxNG Compact syntax)

2008-10-17 Thread Renaud Aubin
to improve it to support xpath expr. More over, I want to preserve the initial indentation. The point is now, how to improve verb-xml to support xpath expressions ? I'm working with Mark II... Should I switch to Mark IV if I want to write a new XML verbatim support (with lua)? + the bonus

Re: [NTG-context] Verbatim Text (esp. XML/XSL + opportunity of a brand new support for the RelaxNG Compact syntax)

2008-10-17 Thread Aditya Mahajan
verbatim support (with lua)? I would suggest to switch to Mark IV since writing support for verbatim is considerably simpler in Mark IV. Lua is much easier to program than TeX :-) + the bonus question: I want to add some support for the RelaxNG Compact syntax, should I follow the procedure

Re: [NTG-context] Listings (was: Experience on writing a thesis with MKIV)

2008-10-02 Thread Chen Shen
[EMAIL PROTECTED] wrote: Am 30.09.2008 um 18:37 schrieb Chen Shen: Hi Wolfgang, I guess you are referring to mkii features. It seems that formatting in verbatim doesn't work in mkiv yet, or did I miss out something? None of the wiki verbatim examples worked for me. Syntax hyghlighting

<    1   2   3   4   5   6   7   8   >