Re: [NTG-context] \starttyping while processing XML causing error

2014-03-28 Thread Xan
> On 3/27/2014 9:46 AM, Xan wrote: > > \starttext > > > > A > > \xmlprocessfile{demo}{./dades.xml}{} > > B > > \stoptext > > \startxmlsetups xml:demo:code >\blank >\start \ttx > \xmlverbatim{#1} >\stop >\blank > \stopxmlsetups First of all, thank you very much, Hans. But why

Re: [NTG-context] \starttyping while processing XML causing error

2014-03-27 Thread Hans Hagen
On 3/27/2014 9:46 AM, Xan wrote: \starttext A \xmlprocessfile{demo}{./dades.xml}{} B \stoptext \startxmlsetups xml:demo:code \blank \start \ttx \xmlverbatim{#1} \stop \blank \stopxmlsetups -- -

[NTG-context] \starttyping while processing XML causing error

2014-03-27 Thread Xan
ontext, all is ok, but when I substitute the \startlines \stoplines with \starttyping \stoptyping context never ends. Is that a bug? I just found [this](http://www.ntg.nl/pipermail/ntg-context/2012/064750.html), but really no solution. Since 2012 I suppose many things are changed so I ask. Why d

Re: [NTG-context] PSTricks with ConTeXT

2014-03-20 Thread Fabrice
Hi, If I compile the following example, the pdf output is empty. \starttyping \usemodule[pstricks] \startPSTRICKS \pspicture(0cm,0cm)(20cm,20cm) \psline(0,0)(20,20) \psline(1,1)(10,10) \endpspicture \stopPSTRICKS \stoptyping Thanks

Re: [NTG-context] suggestion on [option=TEX]

2014-02-06 Thread Wolfgang Schuster
Am 06.02.2014 um 19:29 schrieb Pablo Rodriguez : > On 02/06/2014 12:57 AM, Wolfgang Schuster wrote: >> Am 05.02.2014 um 19:50 schrieb Pablo Rodriguez : >> >>> Hi Hans, >>> >>> I have the following sample: >>> >>> \setuptyping[option=

Re: [NTG-context] suggestion on [option=TEX]

2014-02-06 Thread Pablo Rodriguez
On 02/06/2014 12:57 AM, Wolfgang Schuster wrote: > Am 05.02.2014 um 19:50 schrieb Pablo Rodriguez : > >> Hi Hans, >> >> I have the following sample: >> >> \setuptyping[option=TEX] >> \starttext >> \starttyping >> \input zapf % knuth >>

Re: [NTG-context] suggestion on [option=TEX]

2014-02-05 Thread Wolfgang Schuster
Am 05.02.2014 um 19:50 schrieb Pablo Rodriguez : > Hi Hans, > > I have the following sample: > > \setuptyping[option=TEX] > \starttext > \starttyping > \input zapf % knuth > \stoptyping > \stoptext > > The percent character is in bold font and gray color,

[NTG-context] suggestion on [option=TEX]

2014-02-05 Thread Pablo Rodriguez
Hi Hans, I have the following sample: \setuptyping[option=TEX] \starttext \starttyping \input zapf % knuth \stoptyping \stoptext The percent character is in bold font and gray color, but the rest of the commented text isn’t. My suggestion would be to apply the same color and font of the

Re: [NTG-context] printing visible space in \tex

2014-02-02 Thread Pablo Rodriguez
On 02/02/2014 07:16 PM, Wolfgang Schuster wrote: > Am 02.02.2014 um 19:12 schrieb Pablo Rodriguez : >> I would like to use \tex{visiblespace} which is actually character >> u2420. >> [...] > > \setuptype [space=on] > \setuptyping[space=on] > > \starttext >

Re: [NTG-context] printing visible space in \tex

2014-02-02 Thread Wolfgang Schuster
ould I do it? \setuptype [space=on] \setuptyping[space=on] \starttext \type{x y} \starttyping x y \stoptyping Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! mai

Re: [NTG-context] issue with font in typing environment

2014-02-02 Thread Wolfgang Schuster
hown in the following sample (beta from 2014.02.01 14:22): > > \definefontfamily[mainface][mono][ryt1xtt][bf=ryt1xbtt] > \setupbodyfont[mainface] > \definetyping[TeXcode][option=TEX] > \starttext > \starttyping > \ConTeXt\ is > \stoptyping > \startTeXcode > \ConTeXt\

[NTG-context] issue with font in typing environment

2014-02-02 Thread Pablo Rodriguez
][mono][ryt1xtt][bf=ryt1xbtt] \setupbodyfont[mainface] \definetyping[TeXcode][option=TEX] \starttext \starttyping \ConTeXt\ is \stoptyping \startTeXcode \ConTeXt\ is \stopTeXcode \stoptext If option=TEX is enabled, there is no space after the backslash. I have checked the font and it seems to work

[NTG-context] \setuptyping[lines=yes] bug in beta?

2013-10-22 Thread Pablo Rodriguez
Dear list, the following sample: \showframe \setuppapersize[S6] \setuptyping[option=TEX,lines=yes] \starttext \starttyping \startvariante[MRU]{{\em om} X}En un lugar de la Mancha, de cuyo nombre no quiero acordarme, no ha mucho tiempo que vivía un hidalgo de los de lanza en astillero, adarga

Re: [NTG-context] question about linespace adjustment

2013-09-25 Thread luigi scarso
are user ones. With \type{\setupbodyfont} %D one can set the document bodyfont size, font family, style %D and/or options defined in files, for example: %D %D \starttyping %D \setupbodyfont[modern,12pt,roman] %D \stoptyping %D %D This command affects the document as a whole: text, headers %D and foo

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

2013-09-18 Thread Hans Hagen
] [file:consolasbolditalic] [features=none] \stoptypescript \definetypeface [mainface] [rm] [serif] [modern] [default] \definetypeface [mainface] [tt] [mono] [consolas] [default] %\definetypeface [mainface] [tt] [mono] [modern] [default] \setupbodyfont[mainface] \starttext \starttyping a b cd x y z

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

2013-09-18 Thread Wolfgang Schuster
s=none] >> \definefontsynonym [MonoBoldItalic] [file:consolasbolditalic] >> [features=none] >> \stoptypescript >> >> \definetypeface [mainface] [rm] [serif] [modern] [default] >> \definetypeface [mainface] [tt] [mono] [consolas] [default] >> %\definety

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

2013-09-18 Thread Hans Hagen
] [default] \definetypeface [mainface] [tt] [mono] [consolas] [default] %\definetypeface [mainface] [tt] [mono] [modern] [default] \setupbodyfont[mainface] \starttext \starttyping a b cd x y z \stoptyping \stoptext are we talking about the same font? \starttypescript [mono] [consolas

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

2013-09-17 Thread Wolfgang Schuster
] [consolas] [default] %\definetypeface [mainface] [tt] [mono] [modern] [default] \setupbodyfont[mainface] \starttext \starttyping a b cd x y z \stoptyping \stoptext Wolfgang ___ If your question is of interest to

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

2013-08-31 Thread Mari Voipio
On Sat, Aug 31, 2013 at 7:44 PM, Wolfgang Schuster wrote: > When you want a smaller size for the monospaced font you can use the rscale > key from \definetypeface. *That* was the command that I was grappling to find and that I've used before. > \setuptyping[style=small] If I do this, the fon

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

2013-08-31 Thread Wolfgang Schuster
Am 31.08.2013 um 18:35 schrieb Mari Voipio : > Hello, > > I know I should be able to do it (and think I've done it once upon a > time), but how do I change the font size just for \tt and for > \starttyping \stoptyping environment? > > I have no problems with the font

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

2013-08-31 Thread Mari Voipio
Hello, I know I should be able to do it (and think I've done it once upon a time), but how do I change the font size just for \tt and for \starttyping \stoptyping environment? I have no problems with the font used, I just want my typed text to be a tad smaller (like \tfx for that font).

Re: [NTG-context] unwanted extra interline space in typing environment

2013-08-08 Thread Hans Hagen
typing environment? [...] you shouldn't rely on \\ as it also starts a new line with content \dorecurse{38}{line\par} Hans, I have adapted the sample to: \starttext \dorecurse{41}{line\par} \starttyping \setuplayout[setups=*lessstrict] \startsetups[*lesss

Re: [NTG-context] unwanted extra interline space in typing environment

2013-08-08 Thread Pablo Rodríguez
n the typing environment? > [...] > you shouldn't rely on \\ as it also starts a new line with content > >\dorecurse{38}{line\par} Hans, I have adapted the sample to: \starttext \dorecurse{41}{line\par} \starttyping \setuplayout[setups=*lessst

Re: [NTG-context] unwanted extra interline space in typing environment

2013-08-07 Thread Hans Hagen
\clubpenalty=1 \stopsetups \starttext \dorecurse{38}{line\\} \starttyping \setuplayout[setups=*lessstrict] \startsetups[*lessstrict] \setup[reset] \widowpenalty=1 \clubpenalty=1 \brokenpenalty=1 \stopsetups

Re: [NTG-context] unwanted extra interline space in typing environment

2013-08-07 Thread Pablo Rodríguez
ty=1 \stopsetups \starttext \dorecurse{38}{line\\} \starttyping \setuplayout[setups=*lessstrict] \startsetups[*lessstrict] \setup[reset] \widowpenalty=1 \clubpenalty=1 \brokenpenalty=1 \stopsetups \stoptyping \page

[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] aligning texts and not lines

2013-06-26 Thread Wolfgang Schuster
Am 26.06.2013 um 20:30 schrieb Pablo Rodríguez : > Dear list, > > I have the two following samples: > > \startstandardmakeup[align=middle] > \starttyping[option=TeX] > \mainlanguage[es] > \setuplanguage[es][patterns={es,agr}] > \stoptyping > \stopstandardmakeup &

[NTG-context] aligning texts and not lines

2013-06-26 Thread Pablo Rodríguez
Dear list, I have the two following samples: \startstandardmakeup[align=middle] \starttyping[option=TeX] \mainlanguage[es] \setuplanguage[es][patterns={es,agr}] \stoptyping \stopstandardmakeup \startstandardmakeup[align=middle] Would that in body and spirit Shakespeare came\\ Visible emperor of

Re: [NTG-context] starttyping environment again

2013-04-30 Thread jinki jung
. I have problem with starttyping command. > Somehow, it is not giving me same as I key in. Two examples are give here > to explain my problem. Please see ">>>". Any help will be appreciated > much. > > Jung, Jinki > > > \starttyping

Re: [NTG-context] starttyping environment again

2013-04-29 Thread Wolfgang Schuster
Am 29.04.2013 um 11:20 schrieb jinki jung : > Hi there, > > I am using context 0.6 under W7. I have problem with starttyping command. > Somehow, it is not giving me same as I key in. Two examples are give here > to explain my problem. Please see ">>>&q

[NTG-context] starttyping environment again

2013-04-29 Thread jinki jung
Hi there, I am using context 0.6 under W7. I have problem with starttyping command. Somehow, it is not giving me same as I key in. Two examples are give here to explain my problem. Please see ">>>". Any help will be appreciated much. Jung, Jinki \starttyping

[NTG-context] \feature

2013-03-17 Thread Hans Hagen
Hi, After some experimenting, I settled on the next interface for dynamic features: The is also a generic command \type {\feature} that takes two arguments. Below we show all calls, with long and short variants: \starttyping \addfeature[f:mine] \feature [more][f:mine] \feature

Re: [NTG-context] setups within typescripts: can it be done?

2013-03-12 Thread Hans Hagen
e combinations. This is where the \type {compositions} goodie kicks in: \starttyping local compose = { [0x1E02] = { anchored = "top", }, [0x1E04] = { anchored = "bottom", }, [0x0042] = { -- B anchors = { top = { x = 300, y = 700,

Re: [NTG-context] # sign in footnotes impossible ?

2013-02-16 Thread Marco Patzer
On 2013–02–15 thomas wrote: > how can i put a normal # sign (as part of a \type{} environment) in > a footnote ? Until now i got "" or "\#" or nothing. > > Please look at the attached example and log-output. It works for \type if you use \asciimode

[NTG-context] # sign in footnotes impossible ?

2013-02-15 Thread thomas
Dear list, how can i put a normal # sign (as part of a \type{} environment) in a footnote ? Until now i got "" or "\#" or nothing. Please look at the attached example and log-output. Thanks Thomas \starttext Repo initialisieren \starttyping $ git init \stopty

Re: [NTG-context] setupblock with starttyping doesn't work

2013-02-01 Thread Ingo Hohmann
Thank you for your answers, in my case, start-/stoplines is actually much better. Kind regards, Ingo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

Re: [NTG-context] setupblock with starttyping doesn't work

2013-01-31 Thread Aditya Mahajan
, and some problems are showing up now. So here it goes ... What I want to accomplish: The user writes the address, and he should not have to use \crlf or have to use several distinct commands. Why does the following not work? \defineblock[Address] \setupblock[Address][ before=\starttyping

Re: [NTG-context] setupblock with starttyping doesn't work

2013-01-31 Thread Hans Hagen
. So here it goes ... What I want to accomplish: The user writes the address, and he should not have to use \crlf or have to use several distinct commands. Why does the following not work? \defineblock[Address] \setupblock[Address][ before=\starttyping, after=\stoptyping ] you pick the

[NTG-context] setupblock with starttyping doesn't work

2013-01-31 Thread Ingo Hohmann
accomplish: The user writes the address, and he should not have to use \crlf or have to use several distinct commands. Why does the following not work? \defineblock[Address] \setupblock[Address][ before=\starttyping, after=\stoptyping ] \starttext \beginAddress Peter Pan Somewhere over the

[NTG-context] [co-pagedesign.tex] grid=yes not mentioned

2012-10-18 Thread Philipp Gesang
starts snapping +with the default behavior. If this does not lead to the +desired results, the value \type{strict} will adjust the +grid more rigidly and \type{tolerant} more loosely. + +\startexample +\starttyping +\setuplayout[grid=yes] +\stoptyping +\stopexample + During typesetting on a grid the

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

2012-09-28 Thread Alan BRASLAU
re, I suppose that typesetting Greek characters verbatim > > depends also upon which \tt font is being used. > > \setupbodyfont[dejavu] > > \starttext > > \starttyping > $L_{α+β}$ > \stoptyping >

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

2012-09-28 Thread Hans Hagen
ttext \starttyping $L_{α+β}$ \stoptyping \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875

[NTG-context] Problem with *lettrine* module in Mk-iv

2012-09-10 Thread Francisco Gracia
exactly the first one found in that text: \usemodule[lettrine] \starttext \lettrine {T}{he two} typeset arguments are the dropped capital and the run-in text following it; the \TeX\ source of this paragraph started with \starttyping "\usemodule[lettrine] \starttext \lettrine{

[NTG-context] Left margin of vim module output

2012-08-01 Thread Marco Patzer
defines a memory pool from * which we allocate neighbour entries. */ MEMB(neighbours_memb, struct neighbour, MAX_NEIGHBOURS); \stopC \blank \starttyping /* This MEMB() definition defines a memory pool from * which we allocate neighbour entries. */ MEMB(neighbours_memb, struct neighbour

Re: [NTG-context] atpage || number comparing

2012-05-15 Thread Hans Hagen
rd|/|backward %D reference mechanism is provided by the macro \type{\atpage}: %D %D \starttyping %D ... \somewhere{backward text}{forward text}[someref] ... %D ... \atpage[someref] ... %D \stoptyping %D %D In future versions there will be more sophisticated % 0 = no page reference % 1 = same page % 2

Re: [NTG-context] atpage || number comparing

2012-05-15 Thread Rogers, Michael K
ary|/|experimental forward|/|backward > %D reference mechanism is provided by the macro \type{\atpage}: > %D > %D \starttyping > %D ... \somewhere{backward text}{forward text}[someref] ... > %D ... \atpage[someref] ... > %D \stoptyping > %D > %D In future versions there wil

[NTG-context] atpage || number comparing

2012-05-15 Thread Peter Schorsch
ded by the macro \type{\atpage}: %D %D \starttyping %D ... \somewhere{backward text}{forward text}[someref] ... %D ... \atpage[someref] ... %D \stoptyping %D %D In future versions there will be more sophisticated % 0 = no page reference % 1 = same page % 2 = preceding page % 3 = following page % 4

Re: [NTG-context] \inputif(file)exist(s)

2012-05-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
kes care of non||existing files. This macro has two faces. %D %D \starttyping %D \ReadFile {filename} %D \readfile {filename} {before loading} {not found} %D \stoptyping %D %D Many \TEX\ implementations have laid out some strategy for %D locating files. This can lead to unexpected results, %D especially

Re: [NTG-context] \inputif(file)exist(s)

2012-05-03 Thread Aditya Mahajan
le,ReadFile} %D %D One cannot be sure if a file exists. When no file can be %D found, the \type{\input} primitive gives an error message %D and switches to interactive mode. The macro \type{\readfile} %D takes care of non||existing files. This macro has two faces. %D %D \starttyping %D \ReadFil

Re: [NTG-context] [OT] Average font

2012-04-24 Thread Hans Hagen
date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. %D The fonts can be downloaded from the (nice looking) page: %D %D \starttypin

Re: [NTG-context] Lettrine misbehaving in beta

2012-03-22 Thread Hans Hagen
own in the example you can use the \type {style} and %D more low level \type {font} keys to set up the font where %D the first one wins. If you don't like the behaviour you can always %D roll out your own command. %D %D \starttyping %D \placeinitial \input ward \par \input ward \par \placeinitia

Re: [NTG-context] [beta] anch-pos.lua

2012-02-16 Thread Philipp Gesang
·· > >\definetextbackground[tb] > >\setuptyping[ > > after={\stoptextbackground}, > > before={\starttextbackground[tb]}, > >] > > add [location=paragraph] Thanks, looks good now! Philipp > > >\starttext > > > >foo >

Re: [NTG-context] [beta] anch-pos.lua

2012-02-16 Thread Hans Hagen
kground[tb]}, ] add [location=paragraph] \starttext foo \starttyping bar \stoptyping baz \starttabulate[|r|l|] \NC foo \NC bar \AR \stoptabulate% ^^ missing \NC \stoptext · Regards Philipp \setuptextbackgro

Re: [NTG-context] [beta] anch-pos.lua

2012-02-16 Thread Philipp Gesang
ook at it anyways because the text background looks weird even after. · \definetextbackground[tb] \setuptyping[ after={\stoptextbackground}, before={\starttextbackground[tb]}, ] \starttext foo \starttyping bar \stoptyping baz

Re: [NTG-context] letter module: error with comment

2012-02-05 Thread Wolfgang Schuster
ced start/stop pair. The same message arise also with \starttyping: \starttext \starttyping … %\starttyping … \stoptyping \stoptext Wolfgang ___ If your question is of interest to others as well, please add an ent

Re: [NTG-context] Gnuplot and the dollar sign

2012-01-28 Thread Janne Junnila
> \cdot \sin(0.5x)\right+1) e^{-0.4x}$' > > to get nice result. On the other hand I'm not exactly sure how to > reliably print whatever gets passed to ConTeXt. The only option that > comes to my mind is some modification of >    \sometxt{\starttyping floor($1/0.01) \stoptypin

Re: [NTG-context] Gnuplot and the dollar sign

2012-01-28 Thread Mojca Miklavec
nTeXt. The only option that comes to my mind is some modification of \sometxt{\starttyping floor($1/0.01) \stoptyping} where \starttyping would generate a single line. But one would need a special option for that. (The command \type{...} would not be reliable enough: in MKII it stops working at the seco

Re: [NTG-context] [dev-context] context.starttyping() prints two hash marks iff first printed character is a hash mark

2012-01-22 Thread Hans Hagen
On 22-1-2012 22:41, Sietse Brouwer wrote: After context.starttyping(), a hash mark in the first position gets printed twice. A hash mark in any other position gets printed normally. This bug does not occur after tex.print("\\starttyping"), It's not so much a bug as a side ef

[NTG-context] typesetting verbatim code snippets in xml mkiv

2012-01-19 Thread Michael Guravage
In attempting to use Thomas's xml presentation style he presented at C5M, I would like to add the ability to typeset verbatim code snippets. In the xml:code setup example below, using commands like \startlinenumbering-\stoplinenumbering work fine, but using \starttyping-\stoptyping breaks

Re: [NTG-context] starttyping/stoptyping broken?

2012-01-16 Thread mathew
On Sat, Jan 14, 2012 at 04:37, Hans Hagen wrote: > this related to the buffer bug (still no new beta as i'm redoing some font > code and have not much time today) OK. Is there some convenient way to revert to the last known good version of standalone ConTeXt? I ended up installing the Ubuntu pac

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

Re: [NTG-context] starttyping/stoptyping broken?

2012-01-14 Thread Hans Hagen
On 14-1-2012 00:40, mathew wrote: Just this minute updated via wget http://minimals.contextgarden.net/setup/first-setup.sh and running first-setup.sh, getting errors trying to use \starttyping/\stoptyping. --- example file --- \starttext \startframedtext[width=5.5cm] \starttyping Line 1 Line 2

[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.

[NTG-context] starttyping/stoptyping broken?

2012-01-13 Thread mathew
Just this minute updated via wget http://minimals.contextgarden.net/setup/first-setup.sh and running first-setup.sh, getting errors trying to use \starttyping/\stoptyping. --- example file --- \starttext \startframedtext[width=5.5cm] \starttyping Line 1 Line 2 Line 3 \stoptyping \stopframedtext

Re: [NTG-context] Undefined controle sequence with usemodule[simpleslides]

2012-01-04 Thread Aditya Mahajan
fine\PictureFrameHeight {.830\textheight} \define\PictureFrameWidth {.476\textwidth} %D As we said before, the presentation consists of three kinds of pages: title, %D horizontal, and vertical. Each page can have a different background; we can %D switch to a specific background using %D \starttypin

Re: [NTG-context] new beta

2011-12-22 Thread Hans Hagen
and namespacing). "typing" (\starttyping) seems undefined now. ah, I forgot something when moving to the new inheritance code .. fixed Hans - Hans Hagen |

Re: [NTG-context] new beta

2011-12-22 Thread Henning Hraban Ramm
Am 2011-12-22 um 14:55 schrieb Hans Hagen: This version might also solve some of the reported problems with page imposition (as the page-* modules are being cleaned up buglets cna be introduced .. nothing really changes there apart from speedup and namespacing). "typing" (\s

Re: [NTG-context] Fatal error

2011-11-04 Thread Kip Warner
, I don’t know where you found the code but I’m going to explain > what was wrong, this will help you write something better next time. > > What you defined was the following piece of code: > > \crlf > \setupbackground[..,.=.,..] > \startbackground > \startlines[style=type]

Re: [NTG-context] Fatal error

2011-11-04 Thread Wolfgang Schuster
help you write something better next time. What you defined was the following piece of code: \crlf \setupbackground[..,.=.,..] \startbackground \startlines[style=type] \setupalign[right] \starttyping … \stoptyping \stoplines \stopbackground \crlf 1. You used \crlf to add a empty line at the begin a

[NTG-context] Fatal error

2011-11-02 Thread Kip Warner
fset=0.5cm, bottomoffset=0.5cm] \startbackground \startlines }, after={ \stoplines \stopbackground \crlf }, commands={\setupalign[right]}, style=type] \starttext Hello World \startCodeExample \starttyping H

Re: [NTG-context] Exporting verbatim text

2011-10-15 Thread Aditya Mahajan
ep in mind that people might want to pass the generated code around as arguments in which case catcodes can create a mess Agreed. But this is for syntax highlighting, so I have to mess with catcodes anyways. My code wail fail if it is passed as an argument to some other macro, but so do

Re: [NTG-context] Include section number in reference

2011-10-15 Thread Wolfgang Schuster
alpage \EQ \currentreferencerealpage \NC\NR \stoptabulate \stopsetups \definereferenceformat[referencetable][setups=reference:table] \starttext \section[sec:table]{Values for the reference command} \starttyping \startsection[reference=sec:table,title={Values for the reference command}] \s

[NTG-context] beta

2011-10-12 Thread Hans Hagen
nge in storing positional info in the tuc file. No big deal, just another format. == There has been a fix in otf contextual stuff ... for Idris (so that he can finish the context book sooner). == There are some new commands: \startdocument and \stopdocument. Copied from mag-1101: \s

[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

Re: [NTG-context] Verbatim in framed text

2011-09-22 Thread Wolfgang Schuster
gt;> >>> \starttext >>> \startframedtext[middle][width=.8\textwidth] >>> \startframedtext[left][frame=off, width=.6\textwidth] >>> \starttyping >>> import x >>> from x import y >>> for z in b: >>>print dfdg >>> Som

Re: [NTG-context] Verbatim in framed text

2011-09-22 Thread Felix Ingram
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] >> \startframedte

Re: [NTG-context] Verbatim in framed text

2011-09-21 Thread Wolfgang Schuster
middle][width=.8\textwidth] > \startframedtext[left][frame=off, width=.6\textwidth] > \starttyping > import x > from x import y > for z in b: >print dfdg > Some text > Some text > Some text > Some text > Some really long text Some really long text Some really long text

[NTG-context] Verbatim in framed text

2011-09-20 Thread Felix Ingram
width] \starttyping import x from x import y for z in b: print dfdg Some text Some text Some text Some text Some really long text Some really long text Some really long text Some really long text Some really longtextSomereallylong text Some really long text Some really long text Some really long text Some r

Re: [NTG-context] List of special characters

2011-08-15 Thread Wolfgang Schuster
l=yes,css=yes] >> \stopasciimode >> >> And while searching a little further I also found: >> \type{%\setupbackend[export=yes,xhtml=yes,css=yes]} >> >> This has the added benefit that it displays somewhat better because of the >> increased indentati

Re: [NTG-context] List of special characters

2011-08-15 Thread Cecil Westerhof
rther I also found: > \type{%\setupbackend[export=yes,xhtml=yes,css=yes]} > > This has the added benefit that it displays somewhat better because of the > increased indentation (for which I misuse spaces). > > > \setuptyping[margin=yes] > > \starttext >

Re: [NTG-context] List of special characters

2011-08-15 Thread Wolfgang Schuster
> \type{%\setupbackend[export=yes,xhtml=yes,css=yes]} > > This has the added benefit that it displays somewhat better because of the > increased indentation (for which I misuse spaces). \setuptyping[margin=yes] \star

Re: [NTG-context] A couple of setupcaptions questions

2011-08-05 Thread Jean Magnan de Bornier
evision, (LuaTeX date stamp \luatexdatestamp)}{mkii}, ConTeXt version \contextversion, using the command: \starttyping context TEst \stoptyping \stopcomponent .. .. \startcomponent test2 \chapter{ch 2} \section{un} \startuseMPgraphic{kdj} pi

Re: [NTG-context] A couple of setupcaptions questions

2011-08-04 Thread Jean Magnan de Bornier
typeset on \currentdate{} at \currenttime, with \doifmodeelse{mkiv}{mkiv, LuaTeX revision \luatexrevision, (LuaTeX date stamp \luatexdatestamp)}{mkii}, ConTeXt version \contextversion, using the command: \starttyping context test.tex \stoptyping \stopcomponent

Re: [NTG-context] beta

2011-07-19 Thread Hans Hagen
have: \starttext test (automatic based on spaces before \stop...): \starttyping test test test test test test \stoptyping test (key controlled): \starttyping[strip=yes] test test test test test test \stoptyping test \startbuffer[x] test test

Re: [NTG-context] beta

2011-07-14 Thread Thomas A. Schmitz
like: \startitemize \startitem test \starttyping test \stoptyping \stopitem \stopitemize - Entities in xml mode have a slightly different roundtrip treatment now and hopefully Thomas S as well as Hans vd M files still work ok. - Unicode math variants (supported by xits) are supported: \mathematics { \ut

Re: [NTG-context] [beta] grid & head

2011-07-14 Thread Philipp Gesang
th the number of spaces in front of > \stoptyping so that one can have nicely formatted input like: > > \startitemize > \startitem test > > \starttyping > test > \stoptyping > > \stopitem > \stopitemize > > - Entities in xml mode have a slightly diff

[NTG-context] beta

2011-07-13 Thread Hans Hagen
test \starttyping test \stoptyping \stopitem \stopitemize - Entities in xml mode have a slightly different roundtrip treatment now and hopefully Thomas S as well as Hans vd M files still work ok. - Unicode math variants (supported by xits) are supported: \mathematics { \utfchar{

Re: [NTG-context] \setscript[hanzi] and kana (Wolfgang Schuster)

2011-06-23 Thread Hans Hagen
t some point (but it needs to be properly integrated in the page builder then and we probably should forget about figure placement and display environments (starttyping etc). If one just wants vertical stacking (with quad*quad characters) then columnsets are a nice way in between as then we c

Re: [NTG-context] getmarking and empty chapter number

2011-05-23 Thread Oliver Buerschaper
> %D \macros > %D {doiftextelse, doiftext} > %D > %D When \type {\doifelse} cum suis hopelessly fail, for > %D instance because we pass data, we can fall back on the next > %D macro: > %D > %D \starttyping > %D \doiftextelse {data} {then branch} {else branch} >

Re: [NTG-context] getmarking and empty chapter number

2011-05-23 Thread Aditya Mahajan
ome reason the space ends up in the PDF nevertheless :-( Any ideas? From supp-box.mkiv: %D \macros %D {doiftextelse, doiftext} %D %D When \type {\doifelse} cum suis hopelessly fail, for %D instance because we pass data, we can fall back on the next %D macro: %D %D \starttyping %D \doiftext

Re: [NTG-context] playing colors

2011-03-01 Thread Otared Kavian
s used to show all the defined colors in a colo-xxx.(mkii|mkiv) > file, e.g. > > \starttext > \showcolor[rgb] > \stoptext > > Wolfgang Hi Hans, Indeed as Wolfgang points out, in the file colo-ini.mkii it is said that: %D But let's not forget that we also have

Re: [NTG-context] \setupalign[hz,hanging] breaks verbatim text

2011-02-16 Thread C.
> > > > ! ==> Fatal error occurred, no output PDF file produced! > > mtx-context | fatal error: return code: 1 > > > > Here is the troublemaker: > > \starttyping > > test; > > äüöAR \test \Context > > \stoptyping > > > > Interestingly

Re: [NTG-context] \setupalign[hz,hanging] breaks verbatim text

2011-02-16 Thread Hans Hagen
ofverbat... l.71 \stoptyping ! ==> Fatal error occurred, no output PDF file produced! mtx-context | fatal error: return code: 1 Here is the troublemaker: \starttyping test; äüöAR \test \Context \stoptyping Interestingly I was not able to produce a real minimal example, because when I remov

[NTG-context] \setupalign[hz,hanging] breaks verbatim text

2011-02-16 Thread C.
uot;display", }} \dostoptagged \endofverbat... l.71 \stoptyping ! ==> Fatal error occurred, no output PDF file produced! mtx-context | fatal error: return code: 1 Here is the troublemaker: \starttyping test; äüöAR \test \Context \stoptyping Inte

Re: [NTG-context] Dumb quotes and dashes, globally and in verbatim text

2010-12-21 Thread Philipp A.
2010/12/21 Wolfgang Schuster > Make a example where this occurs, in the following example all dashes are > correct in the typing environment with mkii and mkiv. > > \starttext > > \startlines > - > -- > --- > \stoplines > > \starttyping > - > -- >

Re: [NTG-context] Dumb quotes and dashes, globally and in verbatim text

2010-12-21 Thread Wolfgang Schuster
Am 21.12.2010 um 12:14 schrieb Philipp A.: > so i want to use ' and -- in my code, which is embedded via \starttyping > \stoptyping, but that’s impossible. > context replaces -- with – and ' with ’. that’s wrong. i need to be able to > tell context it shouldn’t do any “s

[NTG-context] Dumb quotes and dashes, globally and in verbatim text

2010-12-21 Thread Philipp A.
so i want to use ' and -- in my code, which is embedded via \starttyping \stoptyping, but that’s impossible. context replaces -- with – and ' with ’. that’s wrong. i need to be able to tell context it shouldn’t do any “smart” stuff, since i’m smart enough to press the ’-key if i want the

Re: [NTG-context] colors for pretty-printing

2010-12-07 Thread Aditya Mahajan
t all boils down hooking in a parser then: \startluacode local function parser(s) local s = somexternalthing(s) -- feedback s end visualizers.register("myparser", { parser = parser }) \stopluacode \starttyping[option=myparser] \stoptyping Thanks for the explanation. But, I am not to

Re: [NTG-context] colors for pretty-printing

2010-12-07 Thread Hans Hagen
then: \startluacode local function parser(s) local s = somexternalthing(s) -- feedback s end visualizers.register("myparser", { parser = parser }) \stopluacode \starttyping[option=myparser] \stoptyping Why are you using a C prefix for all environments? Isn't it better to us

Re: [NTG-context] Formating verbatim text

2010-12-04 Thread Khaled Hosny
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={[[,]]}] > > \starttypi

<    1   2   3   4   5   6   7   >