Re: [NTG-context] XML Processing with Verbatim (VIM-Typing)

2015-02-13 Thread Andreas Schneider
Am 12.02.2015 15:44, schrieb Hans Hagen: so then you have to wikify it (or add it to the t-vim module docu) You are right ofcourse :-) Done: http://wiki.contextgarden.net/Verbatim_XML ___ If your question is of

Re: [NTG-context] XML Processing with Verbatim (VIM-Typing)

2015-02-12 Thread Aditya Mahajan
On Thu, 12 Feb 2015, Hans Hagen wrote: On 2/11/2015 12:15 PM, Andreas Schneider wrote: Am 10.02.2015 22:45, schrieb Hans Hagen: \startluacode function xml.functions.processJSON(t) buffers.assign(foo,\\startJSON\n .. tostring(xml.text(t)) .. \n\\stopJSON) context.getbuffer

Re: [NTG-context] XML Processing with Verbatim (VIM-Typing)

2015-02-12 Thread Hans Hagen
On 2/11/2015 12:15 PM, Andreas Schneider wrote: Am 10.02.2015 22:45, schrieb Hans Hagen: \startluacode function xml.functions.processJSON(t) buffers.assign(foo,\\startJSON\n .. tostring(xml.text(t)) .. \n\\stopJSON) context.getbuffer { foo } end \stopluacode

Re: [NTG-context] XML Processing with Verbatim (VIM-Typing)

2015-02-11 Thread Andreas Schneider
Am 10.02.2015 22:45, schrieb Hans Hagen: \startluacode function xml.functions.processJSON(t) buffers.assign(foo,\\startJSON\n .. tostring(xml.text(t)) .. \n\\stopJSON) context.getbuffer { foo } end \stopluacode \startxmlsetups xml:json \pushcatcodetable

[NTG-context] XML Processing with Verbatim (VIM-Typing)

2015-02-10 Thread Andreas Schneider
Hello, as a few other topics on this Mailing List already discussed, it's not (easily?) possible to use \starttyping\stoptyping within XML setups. If it was simple verbatim, there would be a few workarounds. However, I want to provide formatted verbatim (i.e. \startJSON \stopJSON, after

Re: [NTG-context] XML Processing with Verbatim (VIM-Typing)

2015-02-10 Thread Hans Hagen
On 2/10/2015 5:59 PM, Andreas Schneider wrote: Hello, as a few other topics on this Mailing List already discussed, it's not (easily?) possible to use \starttyping\stoptyping within XML setups. If it was simple verbatim, there would be a few workarounds. However, I want to provide formatted

Re: [NTG-context] ConTeXt gobble my mind

2014-11-07 Thread Pierre-François Bonnefoi
Hello Hans, thank you for contributing to solve my problem. I've tried your proposition : how can I get the content of the buffer afterward ? I've tried \getbuffer[Slide] with no success on MKIV beta that I've just updated. Does a buffer work only for verbatim content ? best regards, Pierre

Re: [NTG-context] ConTeXt gobble my mind

2014-11-07 Thread Hans Hagen
\definebuffer[Slide] foo \startSlide bla bla bla \starttyping language C code \stoptyping bla bla bla \stopSlide bar \getbuffer[\thedefinedbuffer{Slide}] \getSlide \stoptext Does a buffer work only for verbatim content ? no, for everything best regards, Pierre-François. On 07 Nov 2014

Re: [NTG-context] ConTeXt gobble my mind

2014-11-07 Thread Pierre-François Bonnefoi
\starttyping language C code \stoptyping bla bla bla \stopSlide bar \getbuffer[\thedefinedbuffer{Slide}] \getSlide \stoptext Does a buffer work only for verbatim content ? no, for everything best regards, Pierre-François. On 07 Nov 2014, at 12:38, Hans Hagen pra...@wxs.nl

[NTG-context] ANNOUNCEMENT: Arabic-Latin Modern Fixed

2014-08-14 Thread Idris Samawi Hamid ادريس سماوي حامد
for U+00A0 (no-break space), as well as U+25CC (dotted circle). 9. Arabic-Latin Modern Mono will be a boon to scholars, academics, coder editors, and anyone who wants to manage the entry of the wide array of Unicode Arabic text for editing, verbatim, or other purposes

[NTG-context] Typesetting file names with ~

2014-07-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, which is the best way to typeset text (aka file names) containing tilde so that the tilde be visible? I guess there is a something like (inline) verbatim mode which makes ~ (and maybe % $ etc.) visible... I need to typeset e.g. d:/Lukas/~/abc.def and I'd like avoid translating

Re: [NTG-context] Typesetting file names with ~

2014-07-30 Thread Tomas Hala
be visible? # # I guess there is a something like (inline) verbatim mode which makes ~ (and maybe % $ etc.) visible... # # I need to typeset e.g. # # d:/Lukas/~/abc.def # # and I'd like avoid translating ~ into e.g. \textasciitilde. # # Best regards, # # Lukas # # # -- # Ing. Lukáš Procházka

Re: [NTG-context] bug in \setuptagging?

2014-05-31 Thread Pablo Rodriguez
in verbatim is defined differently because otherwise it can get lost in the export; you can experiment with: \appendtoks \unexpanded\def\obeyedspace{\hskip\zeropoint\char32\hskip\zeropoint}% \to \everyenableelements Many thanks for your reply, Hans. I’m afraid I cannot make it work even

Re: [NTG-context] bug in \setuptagging?

2014-05-31 Thread Wolfgang Schuster
I doing something wrong or have I hit a bug? The space in verbatim is defined differently because otherwise it can get lost in the export; you can experiment with: \appendtoks \unexpanded\def\obeyedspace{\hskip\zeropoint\char32\hskip\zeropoint}% \to \everyenableelements Many thanks

Re: [NTG-context] unwanted extra space in type definition

2014-05-26 Thread Wolfgang Schuster
is wrong defined in \arg that inserts an extra space after \em? You can’t do this form a definition for a verbatim command because TeX has its own rules for such a situation (search for a description about catcodes), when you want a copy of \TeXcode add \definetype[arg][TeXcode] to your

Re: [NTG-context] unwanted extra space in type definition

2014-05-26 Thread Pablo Rodriguez
On 05/26/2014 06:08 PM, Wolfgang Schuster wrote: Am 26.05.2014 um 18:00 schrieb Pablo Rodriguez: \def\arg#1{\TeXcode{{#1}}} [...] I don’t know what is wrong defined in \arg that inserts an extra space after \em? You can’t do this form a definition for a verbatim command because TeX has

[NTG-context] How to place a verbatim environment in the text such that the following paragraph is not indented?

2014-05-07 Thread Thomas Möbius
Dear list, how do I place a verbatim environment in the text such that the following paragraph is not indented? I expect the environment to behave the same as the formula-environment. How can I achieve this? --- minimal example --- \starttext \setupindenting[1.3em] \setupindenting[yes

Re: [NTG-context] How to place a verbatim environment in the text such that the following paragraph is not indented?

2014-05-07 Thread Wolfgang Schuster
Am 07.05.2014 um 12:46 schrieb Thomas Möbius kont...@thomasmoebius.de: Dear list, how do I place a verbatim environment in the text such that the following paragraph is not indented? I expect the environment to behave the same as the formula-environment. How can I achieve this? Add

Re: [NTG-context] How can I use Aditya filter module within XML?

2014-03-28 Thread Aditya Mahajan
or not. If either the verbatim or the buffer mechanisms work, then the filter module should work. If not, it might be possible to create something like \xmlflushfilter[...options...]{...body...} but I will need to look into the xml mechnaism in detail to see how to code that. Aditya

Re: [NTG-context] confusion about expansion

2014-03-12 Thread Wolfgang Schuster
Am 12.03.2014 um 15:51 schrieb Lars Huttar lars_hut...@sil.org: This gets rid of the error, but it seems to prevent any expansion of the content of \CurrentUser, because the page head now literally looks like this: You can try to print the string in verbatim mode: \def\CurrentUser

Re: [NTG-context] confusion about expansion

2014-03-12 Thread Lars Huttar
this: You can try to print the string in verbatim mode: \def\CurrentUser{\cldcommand{sprint(tex.vrbcatcodes,os.resultofwhoami)}} \def\Markname{Compiled \date by \CurrentUser\ \LUATEX +\ConTeXt\ \contextversion.} That did it. Thank you! Lars

Re: [NTG-context] Macro expansion inside \type

2014-01-09 Thread Aditya Mahajan
before it is typeset. Type is for verbatim material. If you want monospaced fonts, use \mono{\author}. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg

Re: [NTG-context] Wrong spaces in verbatim mode with Consolas

2013-09-18 Thread Hans Hagen
On 9/17/2013 6:33 PM, Wolfgang Schuster wrote: Hi, the Consolas font produces proportional spaces even with “features=none”. \starttypescript [mono] [consolas] \setups[font:fallback:mono] \definefontsynonym [Mono] [file:consolas] [features=none]

Re: [NTG-context] Wrong spaces in verbatim mode with Consolas

2013-09-18 Thread Wolfgang Schuster
Am 18.09.2013 um 09:50 schrieb Hans Hagen pra...@wxs.nl: On 9/17/2013 6:33 PM, Wolfgang Schuster wrote: Hi, the Consolas font produces proportional spaces even with “features=none”. \starttypescript [mono] [consolas] \setups[font:fallback:mono] \definefontsynonym [Mono]

Re: [NTG-context] Wrong spaces in verbatim mode with Consolas

2013-09-18 Thread Hans Hagen
On 9/18/2013 4:11 PM, Wolfgang Schuster wrote: Am 18.09.2013 um 09:50 schrieb Hans Hagen pra...@wxs.nl: On 9/17/2013 6:33 PM, Wolfgang Schuster wrote: Hi, the Consolas font produces proportional spaces even with “features=none”. \starttypescript [mono] [consolas]

[NTG-context] Wrong spaces in verbatim mode with Consolas

2013-09-17 Thread Wolfgang Schuster
Hi, the Consolas font produces proportional spaces even with “features=none”. \starttypescript [mono] [consolas] \setups[font:fallback:mono] \definefontsynonym [Mono] [file:consolas] [features=none] \definefontsynonym [MonoBold] [file:consolasbold]

Re: [NTG-context] EPUB XHTML Format

2013-09-05 Thread Aditya Mahajan
On Thu, 5 Sep 2013, Hans Hagen wrote: On 9/4/2013 11:20 AM, Hans Hagen wrote: you get a representation in xml indeed, but not verbatim, but as close as possible to the genaric (parent) structure elements in context probably the most straightforward xhtml export is file with only div class

Re: [NTG-context] EPUB XHTML Format

2013-09-05 Thread Hans Hagen
On 9/4/2013 11:20 AM, Hans Hagen wrote: you get a representation in xml indeed, but not verbatim, but as close as possible to the genaric (parent) structure elements in context probably the most straightforward xhtml export is file with only div class=section ... div class

Re: [NTG-context] EPUB XHTML Format

2013-09-05 Thread Hans Hagen
On 9/5/2013 7:22 PM, Aditya Mahajan wrote: On Thu, 5 Sep 2013, Hans Hagen wrote: On 9/4/2013 11:20 AM, Hans Hagen wrote: you get a representation in xml indeed, but not verbatim, but as close as possible to the genaric (parent) structure elements in context probably the most

Re: [NTG-context] EPUB XHTML Format

2013-09-04 Thread Hans Hagen
* http://en.wikipedia.org/wiki/DTBook * http://www.idpf.org/epub/20/spec/OPS_2.0.1_draft.htm * http://www.w3.org/TR/xhtml11/doctype.html * http://www.w3.org/TR/html5/sections.html It seems that the macros in t.tex are being written out as XML elements, verbatim. It is my understanding

[NTG-context] EPUB XHTML Format

2013-09-03 Thread Thangalin
.org/TR/xhtml11/doctype.html - http://www.w3.org/TR/html5/sections.html It seems that the macros in t.tex are being written out as XML elements, verbatim. It is my understanding that these XML elements, however, do not conform to the minimal content models associated with XHTML 1.1. What needs

Re: [NTG-context] Making font smaller in \starttyping environment?

2013-08-31 Thread Wolfgang Schuster
[mainface] [tt] [mono] [modern] [default] [rscale=0.95] \starttext Serif text and {\tt monospaced text.} \stoptext The font (and also the font size) for the verbatim block could be changed with the \setuptyping command, e.g. \setuptyping[bodyfont=11pt] or \setuptyping[style=small

Re: [NTG-context] Inserting verbatim text in a figure and framed.

2013-07-31 Thread john Culleton
On Tue, 30 Jul 2013 23:03:32 +0200 Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 30.07.2013 um 21:30 schrieb Peter Münster pmli...@free.fr: On Tue, Jul 30 2013, john Culleton wrote: Here is my code so far. I want to show a file in verbatim form. It compiles but here

Re: [NTG-context] Inserting verbatim text in a figure and framed.

2013-07-31 Thread Wolfgang Schuster
the content to the given width. You can get the same effect with the \scale command, another way is to change the font size for the verbatim block with \typefile[bodyfont=small]{filename} or \typefile[bodyfont=8pt]{filename}. Wolfgang

[NTG-context] Inserting verbatim text in a figure and framed.

2013-07-30 Thread john Culleton
Here is my code so far. I want to show a file in verbatim form. It compiles but here is no frame around the text and there is no caption. \startbuffer[ex1] \typefile[]{example1.tex} \stopbuffer \placefigure[here][fig:ex1] {Example 1} {\externalfigure[ex1.buffer][width

Re: [NTG-context] Inserting verbatim text in a figure and framed.

2013-07-30 Thread Peter Münster
On Tue, Jul 30 2013, john Culleton wrote: Here is my code so far. I want to show a file in verbatim form. It compiles but here is no frame around the text and there is no caption. Hi, this works here: --8---cut here---start-8--- \starttext \startbuffer[ex1

Re: [NTG-context] Inserting verbatim text in a figure and framed.

2013-07-30 Thread Wolfgang Schuster
Am 30.07.2013 um 21:30 schrieb Peter Münster pmli...@free.fr: On Tue, Jul 30 2013, john Culleton wrote: Here is my code so far. I want to show a file in verbatim form. It compiles but here is no frame around the text and there is no caption. Hi, this works here: --8

Re: [NTG-context] Inserting verbatim text in a figure and framed.

2013-07-30 Thread Peter Münster
On Tue, Jul 30 2013, Wolfgang Schuster wrote: Am 30.07.2013 um 21:30 schrieb Peter Münster pmli...@free.fr: \startbuffer[ex1] \typefile[]{test.tex} \stopbuffer Why do you use a buffer? Copy + paste ... ;) (brain was somewhere else... ;) -- Peter

[NTG-context] bug in \type?

2013-07-27 Thread Pablo Rodríguez
Dear list, using the latest beta (it also happens with ConTeXt from TL 2013), I don’t get the space in \type{\em #1}. Here you have a minimal sample that shows the difference with other verbatim commands: \starttext \type{\em #1} \arg{\em #1} \starttyping\em #1\stoptyping

Re: [NTG-context] Indentation in floats

2013-06-03 Thread Wolfgang Schuster
objects like verbatim text indentation has to be part of the object and in your case you should use a environment which has a option for this. Wolfgang ___ If your question is of interest to others as well, please add

Re: [NTG-context] Indentation in floats

2013-06-03 Thread Marco Patzer
verbatim text indentation has to be part of the object and in your case you should use a environment which has a option for this. I use the algorithmic environment. Using \setupalgorithmic [before=\noindenting] works. Maybe you can consider adding this as default, since I don't think it ever

[NTG-context] Window with scroll function

2013-05-30 Thread seasoul
Dear All, For presenting codes, verbatim environment is suitable. But different with documents, it is better to present the code in one slide when making presentation.Is it possible to make a scroll window like in many websites? Thanks

Re: [NTG-context] python parse/formatter example on the wiki

2013-05-11 Thread Wolfgang Schuster
Am 11.05.2013 um 16:22 schrieb seasoul bioseas...@gmail.com: I was trying the example of writing a parse/formatter under Verbatim text. The python formatter runs successfully. But when I compile the text file with all the definitions included, an error occurs. inserted text

Re: [NTG-context] python parse/formatter example on the wiki

2013-05-11 Thread seasoul
Yes, it is solved. On Sun, May 12, 2013 at 12:48 AM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 11.05.2013 um 16:22 schrieb seasoul bioseas...@gmail.com: I was trying the example of writing a parse/formatter under Verbatim text. The python formatter runs successfully

[NTG-context] Apparent error in wiki example

2013-02-26 Thread john Culleton
I copied verbatim the example found here: http://wiki.contextgarden.net/Simple_Typescript_Example This line caused an error: \setupencoding[default=uc] When I commented it out the doc ran fine. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net

Re: [NTG-context] Apparent error in wiki example

2013-02-26 Thread Philipp Gesang
Hi John! ···date: 2013-02-26, Tuesday···from: john Culleton··· I copied verbatim the example found here: http://wiki.contextgarden.net/Simple_Typescript_Example This line caused an error: \setupencoding[default=uc] These are instructions for MkII (and PostScript Type 1 fonts). You

Re: [NTG-context] Apparent error in wiki example

2013-02-26 Thread john Culleton
On Tue, 26 Feb 2013 19:33:03 +0100 Philipp Gesang philipp.ges...@alumni.uni-heidelberg.de wrote: Hi John! ···date: 2013-02-26, Tuesday···from: john Culleton··· I copied verbatim the example found here: http://wiki.contextgarden.net/Simple_Typescript_Example This line caused

Re: [NTG-context] Simple question: how do I get the filename in the footer

2013-01-22 Thread Gerben Wierda
whitespace etc. Isn;t there a true verbatim that I can use on a macro like \currentcomponent? Something along the lines of \verbatimexpand{\currentcomponent}? Untested: \filename{\currentcomponent} Works. When outside a component (e.g. index) it defaults to the string 'text'. Thanks, G

Re: [NTG-context] Simple question: how do I get the filename in the footer

2013-01-20 Thread Gerben Wierda
. Is that limited to a {}-scope? And more importantly, that catches ^ and _, but what about whitespace etc. Isn;t there a true verbatim that I can use on a macro like \currentcomponent? Something along the lines of \verbatimexpand{\currentcomponent}? G Wolfgang

Re: [NTG-context] Simple question: how do I get the filename in the footer

2013-01-20 Thread Aditya Mahajan
On Sun, 20 Jan 2013, Gerben Wierda wrote: You can add the \nonknuthmode to your document which makes _ and ^ normal characters for text mode. Is that limited to a {}-scope? And more importantly, that catches ^ and _, but what about whitespace etc. Isn;t there a true verbatim that I can use

Re: [NTG-context] verbatim boxes

2012-11-26 Thread Wolfgang Schuster
Am 26.11.2012 um 21:42 schrieb Erik Margraf erik.marg...@gmail.com: Dear List, is there a Context function/macro which enables me to set a box with verbatim file input. I.e. something similar to : \setbox\scratchbox\hbox{\verbatimfileinput{FileName}} You have to use a \vbox because

Re: [NTG-context] verbatim boxes

2012-11-26 Thread Wolfgang Schuster
Am 26.11.2012 um 23:06 schrieb Erik Margraf erik.marg...@gmail.com: I thought a box would be the best to use it in connection with the FunnyFrame of the Metafun manual page 137. In particular I wanted to set the the Frametitle with the contents of a file. (The actual contents of the file

[NTG-context] typefile with absolute path to file

2012-11-20 Thread Erik Margraf
Dear List, a question about \typefile{}. I tried to use \typefile{ /with/an/absolute/path/to/some_file } and failed Message in the log: Verbatim some_file not found. Also tried with no path at all, assuming it will take the file from the current directory. Same result. Do I miss something

Re: [NTG-context] typefile with absolute path to file

2012-11-20 Thread Aditya Mahajan
Dear List, a question about \typefile{}. I tried to use \typefile{ /with/an/absolute/path/to/some_file } and failed Message in the log: Verbatim some_file not found. Also tried with no path at all, assuming it will take the file from the current directory. Same result. Do I miss something

Re: [NTG-context] typefile with absolute path to file

2012-11-20 Thread Erik Margraf
in the log: Verbatim some_file not found. Also tried with no path at all, assuming it will take the file from the current directory. Same result. Do I miss something? Should this work? Or, if not, how can I achieve this effect (typefile with absolute path to a file. btw. on a Linux system

Re: [NTG-context] New module: crossref

2012-11-04 Thread Wolfgang Schuster
with %) are printed as normal verbatim code. When you want examples and text to explain it just add “%D” at the begin of each line. When you need a module (even the module you’re documenting) or other definitions add “%M” at the begin of the line. For comments and other texts (e.g. the license text) which

Re: [NTG-context] verbatim text: \type, \tex and co.

2012-09-28 Thread Hans Hagen
On 27-9-2012 22:49, Alan Braslau wrote: Hello, Can someone indicate how to typeset $L_{α+β}$ as verbatim text? (\arg{} doesn't help here...) Furthermore, I suppose that typesetting Greek characters verbatim depends also upon which \tt font is being used. \setupbodyfont[dejavu] \starttext

Re: [NTG-context] verbatim text: \type, \tex and co.

2012-09-28 Thread Alan BRASLAU
On Fri, 28 Sep 2012 10:43:48 +0200 Hans Hagen pra...@wxs.nl wrote: On 27-9-2012 22:49, Alan Braslau wrote: Hello, Can someone indicate how to typeset $L_{α+β}$ as verbatim text? (\arg{} doesn't help here...) Furthermore, I suppose that typesetting Greek characters verbatim

[NTG-context] verbatim text: \type, \tex and co.

2012-09-27 Thread Alan Braslau
Hello, Can someone indicate how to typeset $L_{α+β}$ as verbatim text? (\arg{} doesn't help here...) Furthermore, I suppose that typesetting Greek characters verbatim depends also upon which \tt font is being used. Alan

Re: [NTG-context] verbatim text: \type, \tex and co.

2012-09-27 Thread Aditya Mahajan
Can someone indicate how to typeset $L_{α+β}$ as verbatim text? (\arg{} doesn't help here...) Untested: \type{...} should work. (Definitely did work a couple of months ago). Furthermore, I suppose that typesetting Greek characters verbatim depends also upon which \tt font is being used. CM

[NTG-context] Wiki example compilation failure

2012-09-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
And an answer came directed in a manner unexpected, and I think the same was written with a thumbnail dipped in tar; 't was his shearing-mate who wrote it, and verbatim I will quote it: \quotation{Clancy's gone to Queensland droving, and we don't know where he are.} \stopmydt \stoptext

Re: [NTG-context] how to write two or three single hyphens?

2012-05-31 Thread Wolfgang Schuster
{}-{}-{}-{}-{}-{}- which works in latex, but in context I'm still getting the long dashes. How can I prevent this conversion, please? \definehighlight[filepermission][style=\setff{none}] \starttext Verbatim: \type{rwx--} Highlight: \filepermission{rwx--} \stoptext Wolfgang

[NTG-context] \definetype and ligatures

2012-05-31 Thread Wolfgang Schuster
Hi, are ligatures etc. supposed to be active in verbatim commands? In the default \type command they are only disabled because \tt has “features=none” in the typescripts but since this isn’t the case for serif and sans you get ligatures. \definetype[test][style=\rm] \starttext \type{fi

Re: [NTG-context] \definetype and ligatures

2012-05-31 Thread Hans Hagen
On 31-5-2012 11:41, Wolfgang Schuster wrote: Hi, are ligatures etc. supposed to be active in verbatim commands? In the default \type command they are only disabled because \tt has “features=none” in the typescripts but since this isn’t the case for serif and sans you get ligatures

Re: [NTG-context] \definetype and ligatures

2012-05-31 Thread Wolfgang Schuster
Am 31.05.2012 um 12:38 schrieb Hans Hagen: On 31-5-2012 11:41, Wolfgang Schuster wrote: Hi, are ligatures etc. supposed to be active in verbatim commands? In the default \type command they are only disabled because \tt has “features=none” in the typescripts but since this isn’t the case

[NTG-context] \xmlcontext inoperative?

2012-05-09 Thread Meer, H. van der
is that the \xmlflush typesets verbatim the contents of the node called up: math version=2.0 xmlns=http://www.w3c.org/mathml; apply eq/ ci f(x) /ci apply plus/ ci 1 /ci apply power/ ci x /ci ci 4 /ci /apply apply power/ ci x /ci ci 7 /ci /apply /apply /apply /math but, to my surprise the \xmlcontext{#1

Re: [NTG-context] \xmlcontext inoperative?

2012-05-09 Thread Meer, H. van der
contents through a setup: \startxmlsetups xam:define:get % The definition is the one with content. \xmldoiftext{#1}{.}{ \foundtrue \xmlflush{#1} \xmlcontext{#1}{.} } \stopxmlsetups The strange thing is that the \xmlflush typesets verbatim the contents of the node called up: math version

Re: [NTG-context] \xmlcontext inoperative?

2012-05-09 Thread Hans Hagen
}{.} } \stopxmlsetups The strange thing is that the \xmlflush typesets verbatim the contents of the node called up: math version=2.0 xmlns=http://www.w3c.org/mathml; apply eq/ ci f(x)/ci apply plus/ ci 1/ci apply power/ ci x/ci ci 4/ci /apply apply power/ ci x/ci ci 7/ci /apply

Re: [NTG-context] Buffers vs. \def

2012-04-18 Thread Hans Hagen
On 18-4-2012 11:48, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, a question - I'm just curious: What is advantage (or maybe intension) of using buffers over \def? better test with \startlines test test \stoplines also, bufferes can be flushed verbatim, as tex, as ... while macros

Re: [NTG-context] Rotating externalfigure

2012-03-29 Thread Malte Stien
Wolfgang, Interesting. I was able to reproduce the problem with your verbatim minimal example: \starttext \input knuth \placefigure[left]{Cow}{\externalfigure[cow][frame=on, scale=500, orientation=90]} \input knuth \input knuth \stoptext I have uploaded the result here: http

Re: [NTG-context] Rotating externalfigure

2012-03-29 Thread Hans Hagen
On 29-3-2012 12:31, Malte Stien wrote: Wolfgang, Interesting. I was able to reproduce the problem with your verbatim minimal example: \starttext \input knuth \placefigure[left]{Cow}{\externalfigure[cow][frame=on, scale=500, orientation=90]} \input knuth \input knuth \stoptext

[NTG-context] xml--verbatim in error?

2012-03-21 Thread Meer, H. van der
I found something that might be an error in the current xml-processing. In the following minimal example een Undefined control sequence error occurs for the \xmldisplayverbatim and \xmlinlineverbatims. The \xmlverbatim doesn't. \startxmldisplayverbatim ...\doinitializeverbatim

[NTG-context] [beta] background behaviour

2012-02-09 Thread Philipp Gesang
: · \definetextbackground[verbatim] [ background=color, backgroundcolor=green, location=paragraph, ] \starttext \placefigure[2*hang,left]{}{test} %%% comment me \input knuth \starttextbackground[verbatim] foo bar \stoptextbackground \placefigure[here]{}{test} %%% comment me \stoptext

Re: [NTG-context] Syntax highlighting for C-code

2012-01-15 Thread Wolfgang Schuster
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

[NTG-context] Syntax highlighting for C-code

2012-01-14 Thread 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. 2) t

Re: [NTG-context] processing style inside verbatim in XML

2011-10-24 Thread Hans Hagen
On 21-10-2011 22:18, Mojca Miklavec wrote: Hello, Is there any simple way to typeset the following example properly in ConTeXt? I have an example of text that has to obey lines and spaces, but I would like to apply some color to make it more readable. The attachment contains an example of HTML

[NTG-context] processing style inside verbatim in XML

2011-10-21 Thread Mojca Miklavec
Hello, Is there any simple way to typeset the following example properly in ConTeXt? I have an example of text that has to obey lines and spaces, but I would like to apply some color to make it more readable. The attachment contains an example of HTML which displays fine in my browser, and it

Re: [NTG-context] Exporting verbatim text

2011-10-15 Thread Hans Hagen
On 15-10-2011 05:29, Aditya Mahajan wrote: Hi, In the vim module, I use vim to generate TeX code that looks roughly as ~~~ \SYN[Type]{public} \SYN[Type]{static} \SYN[Type]{void} main\SYN[javaParen]{(}String args\SYN[javaParen]{)} \{ System.out.println\SYN[javaParen]{(}\SYN[Constant]{Hello

Re: [NTG-context] Exporting verbatim text

2011-10-15 Thread Aditya Mahajan
On Sat, 15 Oct 2011, Hans Hagen wrote: On 15-10-2011 05:29, Aditya Mahajan wrote: Hi, In the vim module, I use vim to generate TeX code that looks roughly as ~~~ \SYN[Type]{public} \SYN[Type]{static} \SYN[Type]{void} main\SYN[javaParen]{(}String args\SYN[javaParen]{)} \{

[NTG-context] Exporting verbatim text

2011-10-14 Thread Aditya Mahajan
Hi, In the vim module, I use vim to generate TeX code that looks roughly as ~~~ \SYN[Type]{public} \SYN[Type]{static} \SYN[Type]{void} main\SYN[javaParen]{(}String args\SYN[javaParen]{)} \{ System.out.println\SYN[javaParen]{(}\SYN[Constant]{Hello World}\SYN[javaParen]{)} ; \} ~~~

[NTG-context] Blank lines inside verbatim environment

2011-09-28 Thread Jaroslav Hajtmar
Hello ConTEXist. I know that this probably is no reason, but can be in an environment \starttyping ... \stoptyping turn on, which will each blank line in the statement reflect? I want put in the presentation in this environment, a direct numbers of blank lines. The larger number of empty

[NTG-context] colon in lucida math

2011-09-25 Thread Meer, H. van der
in general or my own setup in particular. In both cases I will be pleased with a remedy. Hans van der Meer \setuppapersize [A6][A6] \starttext \start \setupbodyfont[lmodern] Using: \verbatim{\setupbodyfont[lmodern]}\par $K\colon\quad A\cdots Z$\par \stop \start \setupbodyfont[lucida] Using: \verbatim

Re: [NTG-context] Verbatim in framed text

2011-09-22 Thread Felix Ingram
-- Forwarded message -- From: Wolfgang Schuster schuster.wolfg...@googlemail.com To: mailing list for ConTeXt users ntg-context@ntg.nl Date: Wed, 21 Sep 2011 13:09:42 +0200 Subject: Re: [NTG-context] Verbatim in framed text Am 20.09.2011 um 17:50 schrieb Felix Ingram: Some

Re: [NTG-context] Verbatim in framed text

2011-09-22 Thread Wolfgang Schuster
Am 22.09.2011 um 12:54 schrieb Felix Ingram: -- Forwarded message -- From: Wolfgang Schuster schuster.wolfg...@googlemail.com To: mailing list for ConTeXt users ntg-context@ntg.nl Date: Wed, 21 Sep 2011 13:09:42 +0200 Subject: Re: [NTG-context] Verbatim in framed text Am

Re: [NTG-context] Verbatim in framed text

2011-09-21 Thread Wolfgang Schuster
Am 20.09.2011 um 17:50 schrieb Felix Ingram: Some of my verbatim lines are overflowing the framed text box I'm putting them in. I see that I could define a pretty printer to handle this but I came up with the following: \starttext \startframedtext[middle][width=.8\textwidth

[NTG-context] Verbatim in framed text

2011-09-20 Thread Felix Ingram
Some of my verbatim lines are overflowing the framed text box I'm putting them in. I see that I could define a pretty printer to handle this but I came up with the following: \starttext \startframedtext[middle][width=.8\textwidth] \startframedtext[left][frame=off, width=.6\textwidth

[NTG-context] Typesetting in verbatim

2011-09-08 Thread Thomas Friedrich
Hi, I am having problems typing when typesetting code within a \definetyping environment. I hope someone might be able to give me a hint. My code looks as follows: \definetyping [Haskell] [ option=commands, before={\startframedtext[width=\makeupwidth,

Re: [NTG-context] Typesetting in verbatim

2011-09-08 Thread Aditya Mahajan
On Wed, 7 Sep 2011, Thomas Friedrich wrote: Hi, I am having problems typing when typesetting code within a \definetyping environment. I hope someone might be able to give me a hint. My code looks as follows: \definetyping [Haskell] [ option=commands,

Re: [NTG-context] Typesetting in verbatim

2011-09-08 Thread Wolfgang Schuster
Am 08.09.2011 um 09:55 schrieb Aditya Mahajan: On Wed, 7 Sep 2011, Thomas Friedrich wrote: Hi, I am having problems typing when typesetting code within a \definetyping environment. I hope someone might be able to give me a hint. My code looks as follows: \definetyping

Re: [NTG-context] Typesetting in verbatim

2011-09-08 Thread Thomas Friedrich
Am Donnerstag, den 08.09.2011, 09:59 +0200 schrieb Wolfgang Schuster: Am 08.09.2011 um 09:55 schrieb Aditya Mahajan: On Wed, 7 Sep 2011, Thomas Friedrich wrote: Hi, I am having problems typing when typesetting code within a \definetyping environment. I hope someone might be

Re: [NTG-context] Typesetting in verbatim

2011-09-08 Thread luigi scarso
On Thu, Sep 8, 2011 at 10:39 AM, Thomas Friedrich i...@suud.de wrote: Question: Is there a way to replace the and strings in the typesetting environment by something else?  Or another work around? maybe \startHaskell foo = bar =/BTEX/ETEX print foo = bar =/BTEX$$/ETEX print \stopHaskell --

Re: [NTG-context] Typesetting in verbatim

2011-09-08 Thread Thomas Friedrich
Am Donnerstag, den 08.09.2011, 10:57 +0200 schrieb luigi scarso: On Thu, Sep 8, 2011 at 10:39 AM, Thomas Friedrich i...@suud.de wrote: Question: Is there a way to replace the and strings in the typesetting environment by something else? Or another work around? maybe \startHaskell

Re: [NTG-context] Typesetting in verbatim

2011-09-08 Thread Hans Hagen
On 8-9-2011 10:39, Thomas Friedrich wrote: won't even compile. It doesn't like . Question: Is there a way to replace the and strings in the typesetting environment by something else? Or another work around? this is because is considered grouping just use mkiv Hans

Re: [NTG-context] \type{} in bold mode

2011-08-31 Thread Wolfgang Schuster
Am 30.08.2011 um 16:29 schrieb Peter Münster: Hello, When the current font-switch is bold, I would like the verbatim text inside \type{} to respect the bold mode. What is the right way to teach \type{} to automatically use bold or not? \setuptype[style=mono] % default: “style=\tt\tf

[NTG-context] \type{} in bold mode

2011-08-30 Thread Peter Münster
Hello, When the current font-switch is bold, I would like the verbatim text inside \type{} to respect the bold mode. What is the right way to teach \type{} to automatically use bold or not? Example: \starttext \section{Problem:} {not bold, \type{not bold, ok} // \bf bold, \type{should be bold

[NTG-context] arbitrary tex-code in xml?

2011-08-22 Thread Thomas A. Schmitz
] ... \getbuffer[mybuffer], but the result is that the TeX code is typeset verbatim, not processed (problem of catcodes?). Any takers before I pull myself together and try to come up with an example? Thanks! Thomas

[NTG-context] Line length limitation of typing block?

2011-08-16 Thread Vladimir Lomov
Hi. Please consider the following two examples: file name=exa-feat1.tex \setupbackend[export=yes] \definetyping[EXAMPLE][escape=yes] \starttext This is an example with \quotation{long} verbatim text. Why context fails to compile the file? Is there a method to process this file? \startEXAMPLE

[NTG-context] How to prevent line split in typing block when using custom command?

2011-08-16 Thread Vladimir Lomov
Hi. Consider the following two example files: - 8 file name=exa-feat1.tex \setupbackend[export=yes] \definetyping[EXAMPLE][escape=yes] \starttext This is an example with \quotation{long} verbatim text. Why context complians

Re: [NTG-context] How to prevent line split in typing block when using custom command?

2011-08-16 Thread Wolfgang Schuster
Am 16.08.2011 um 14:05 schrieb Vladimir Lomov: Hi. Consider the following two example files: […] \definetyping[EXAMPLE][escape=yes] \definestartstop[important][style=bold] \starttext This is an example with \quotation{long} verbatim text. Why context fail to compile

[NTG-context] markdown

2011-07-26 Thread Hans Hagen
Hi, As it happened that I needed to print a readme.markdown file, the new beta now has a new extra: context --extra=markdown readme.markdown For some options see: context --extra=markdown --help It will never look real good, but it's better than printing verbatim. Hans

<    1   2   3   4   5   6   7   8   >