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

[NTG-context] bad argument #1 to 'gsub'

2011-06-23 Thread Kip Warner
r... \setupnumbering [way=bychapter] \setuppagenumbering [\c!location=] \setuptolerance [\v!verytolerant,\v!stretch] \setupblank [\v!medium] \setupwhitespace [\v!medium] \setuptyping [\c!blank=\v!medium] \setupheadertexts [\v!margin] [][\hfill\pagenumber\hfill] \setupfootertexts [\v!marg

Re: [NTG-context] Problem with chem module

2011-06-18 Thread Kip Warner
pwhitespace [\v!medium] \setuptyping [\c!blank=\v!medium] \setupheadertexts [\v!margin] [][\hfill\pagenumber\hfill] \setupfootertexts [\v!margin] [][{\hfill\doifnotmode{*\v!frontpart}{\getmarking[\v!chapter\v! number]}\hfill}] \setupheadertexts [\v!text] [][{\hfill\getmarking[\v!chapter]\hf

Re: [NTG-context] Curly quotes was TTF fonts and MKIV

2011-01-30 Thread John Culleton
e[bok][width=7.0in,height=10.0in] > > %\setuppapersize[bok][letter] > > \setuppapersize[bok][bok] > > \setuplayout[location=middle,marking=on]% > > \setupwhitespace[line] > > \setuptyping[style=small] > > \stopenvironment > > > Anyone else have this probl

Re: [NTG-context] Curly quotes was TTF fonts and MKIV

2011-01-30 Thread Wolfgang Schuster
gt; \stoptext > > and macros.tex looks like this: \startenvironment macros > \setupoutput[pdftex] > \definepapersize[bok][width=7.0in,height=10.0in] > %\setuppapersize[bok][letter] > \setuppapersize[bok][bok] > \setuplayout[location=middle,marking=on]% > \setupwhitespac

Re: [NTG-context] Curly quotes was TTF fonts and MKIV

2011-01-30 Thread John Culleton
rterbt). So this defect is not limited to one font. My main file is as follows: \input macros.tex \usemodule [simplefonts] \setmainfont [calibri] \starttext \input body.tex \stoptext and macros.tex looks like this: \setupoutput[pdftex] \definepapersize[bok][width=7.0in,height=10.0in] %\setuppape

Re: [NTG-context] escape in verbatim text eats line breaks

2011-01-21 Thread Stefan Müller
Because of the new beta I tried it again with a current Mk IV version (2011.01.18 19:34). The examples I provided (from the wiki, now abbreviated, with numbering) have correct line breaks but the second line does not get a number. \setuptyping[TEX][escape=yes, numbering=line] \startTEX /BTEX

Re: [NTG-context] Problem typing file with diacritics by \typefile

2011-01-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, sorry, my silly fault. The main problem was to use \setuptyping instead of \definetyping. When I was trying to create an as-small-as-possible example, I forgot to insert \enableregime[1250] to the header, so I encountered additional error messages. Sorry again for wasting your (and

Re: [NTG-context] Problem with \setuptyping-ed \typefile

2011-01-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks, it works now. (I've been using \setuptyping before and it used to work.) Lukas On Thu, 13 Jan 2011 11:58:28 +0100, Wolfgang Schuster wrote: Am 13.01.2011 um 11:35 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: You need \definetyping[Model][...]. Wolfgang -- Ing.

Re: [NTG-context] Problem with \setuptyping-ed \typefile

2011-01-13 Thread Wolfgang Schuster
Am 13.01.2011 um 11:35 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: > Hello, > > I encountered another problem with \typefile. This code crashes: > > --- > \setuptyping[Model][bodyfont=6pt,style=\tt\setupinterlinespace] You need \definetyping[Mode

[NTG-context] Problem with \setuptyping-ed \typefile

2011-01-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I encountered another problem with \typefile. This code crashes: --- \setuptyping[Model][bodyfont=6pt,style=\tt\setupinterlinespace] \starttext \typefile[Model]{t2.txt} %{t.u8} %\startluacode context.typefile({"Model"}, "t.u8")\stopluacode \stoptext --- Although

Re: [NTG-context] escape in verbatim text eats line breaks

2011-01-10 Thread Stefan Müller
On 10.01.2011 15:38, Hans Hagen wrote: Is this a bug or am I missing something here? I get newlines here. I'm using minimals: ConTeXt version 2011.01.06 17:08 Just to clarify: My first line in the PDF result is "sometexsometex \after" Also "\setuptyping[TEX][escape=/

Re: [NTG-context] escape in verbatim text eats line breaks

2011-01-10 Thread Hans Hagen
line break): \starttext \setuptyping[TEX][escape=yes] \startTEX /BTEX\em sometex/ETEX /BTEX\em sometex/ETEX \after \before /BTEX\em sometex/ETEX \before /BTEX\em sometex/ETEX \after \before /BTEX\em sometex/ETEX \inbetween /BTEX\em sometex/ETEX \after \before \after \stopTEX \setuptyping[T

[NTG-context] escape in verbatim text eats line breaks

2011-01-10 Thread Stefan Müller
Hi list, there seems to be something wrong with the "escape" mechanism in verbatim. Line breaks before escaped code are ignored. Consider the following example from the wiki [1] (e.g. the second line is printed right behind the first with no line break): \starttext \setuptyping[T

[NTG-context] Problem with PDF generating module documentation in Ctx minimals

2010-12-22 Thread Jaroslav Hajtmar
\doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... \...@setuptyping ...processcommalist [#1]\docommand \else \let \currenttyping ...

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

Re: [NTG-context] \setuptyping and \type{}

2010-12-04 Thread Khaled Hosny
On Fri, Dec 03, 2010 at 03:36:14PM +0100, Wolfgang Schuster wrote: > > Am 03.12.2010 um 10:32 schrieb Khaled Hosny: > > > Is there a way to setup insertion of some stuff before/after \type{}, > > tried \setuptyping but only works for \start/stoptyping. > > >

Re: [NTG-context] \setuptyping and \type{}

2010-12-04 Thread Khaled Hosny
On Sat, Dec 04, 2010 at 06:41:37PM +0100, Hans Hagen wrote: > On 3-12-2010 10:32, Khaled Hosny wrote: > >Is there a way to setup insertion of some stuff before/after \type{}, > >tried \setuptyping but only works for \start/stoptyping. > > > >\setuptyping[before=\framed]

Re: [NTG-context] \setuptyping and \type{}

2010-12-04 Thread Hans Hagen
On 3-12-2010 10:32, Khaled Hosny wrote: Is there a way to setup insertion of some stuff before/after \type{}, tried \setuptyping but only works for \start/stoptyping. \setuptyping[before=\framed] \starttext \type{aa} \starttyping aa \stoptyping \stoptext the next beta will have: \starttext

Re: [NTG-context] bug report/mkiv: verbatim text bug with tab parameter

2010-12-04 Thread Hans Hagen
On 3-12-2010 1:49, Peter Schorsch wrote: Hi, today I recognized that the tab parameter is not working in setuptyping anymore (actual beta). As soon the tab paramter is set and a tabulator is used in the text, ConTeXt breaks with following error message: ! LuaTeX error ...text/tex/texmf

Re: [NTG-context] \setuptyping and \type{}

2010-12-03 Thread Hans Hagen
On 3-12-2010 10:32, Khaled Hosny wrote: Is there a way to setup insertion of some stuff before/after \type{}, tried \setuptyping but only works for \start/stoptyping. \setuptyping[before=\framed] \starttext \type{aa} \starttyping aa \stoptyping \stoptext that would be 'left'

Re: [NTG-context] \setuptyping and \type{}

2010-12-03 Thread Wolfgang Schuster
Am 03.12.2010 um 10:32 schrieb Khaled Hosny: > Is there a way to setup insertion of some stuff before/after \type{}, > tried \setuptyping but only works for \start/stoptyping. > > \setuptyping[before=\framed] You can try to convince Hans to add a command key to \setuptype, untill

Re: [NTG-context] Formating verbatim text

2010-12-03 Thread Wolfgang Schuster
Am 03.12.2010 um 10:40 schrieb Khaled Hosny: > The following is listed on the wiki but does not work in MkIV, the > commands are just typeset verbatim as well. The mechanism has changed in MkIV, you can now write \setuptyping[escape=yes] \starttyping normal /BTEX\em emphasized/ETEX

[NTG-context] bug report/mkiv: verbatim text bug with tab parameter

2010-12-03 Thread Peter Schorsch
Hi, today I recognized that the tab parameter is not working in setuptyping anymore (actual beta). As soon the tab paramter is set and a tabulator is used in the text, ConTeXt breaks with following error message: ! LuaTeX error ...text/tex/texmf-context/tex/context/base/util

[NTG-context] Formating verbatim text

2010-12-03 Thread Khaled Hosny
The following is listed on the wiki but does not work in MkIV, the commands are just typeset verbatim as well. \setuptyping[option=commands] \starttext \starttyping /BTEX{\em aa}/ETEX \stoptyping \stoptext -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer

[NTG-context] \setuptyping and \type{}

2010-12-03 Thread Khaled Hosny
Is there a way to setup insertion of some stuff before/after \type{}, tried \setuptyping but only works for \start/stoptyping. \setuptyping[before=\framed] \starttext \type{aa} \starttyping aa \stoptyping \stoptext Regards, Khaled -- Khaled Hosny Arabic localiser and member of

[NTG-context] custom colors for verbatim in mkiv

2010-12-02 Thread Thomas A. Schmitz
=0.9,g=0.5,b=0.5] \definecolor[palecyan][r=0.41,g=0.84,b=0.84] \setuptyping[option=color, % palet=colorpretty, bodyfont=10pt, before={\startframedtext[width=\makeupwidth, background=screen, frame=off

Re: [NTG-context] \setuptyping: font size

2010-12-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Much better, thanks! Lukas On Wed, 01 Dec 2010 17:00:59 +0100, Wolfgang Schuster wrote: \definetyping[default][bodyfont=8pt] -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244

Re: [NTG-context] \setuptyping: font size

2010-12-01 Thread Wolfgang Schuster
Am 01.12.2010 um 16:53 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: > ... Still the same error with the latest beta. Replace your \setuptyping with: \definetyping[default][bodyfont=8pt] Wolfgang ___ If y

Re: [NTG-context] \setuptyping: font size

2010-12-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Still the same error with the latest beta. Lukas On Wed, 01 Dec 2010 15:47:31 +0100, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello Hans - On Wed, 01 Dec 2010 15:32:05 +0100, Hans Hagen wrote: I'm trying to \setuptyping to use a 8pt font size [of a tt typeface]. \setupt

Re: [NTG-context] \setuptyping: font size

2010-12-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Hans - On Wed, 01 Dec 2010 15:32:05 +0100, Hans Hagen wrote: I'm trying to \setuptyping to use a 8pt font size [of a tt typeface]. \setuptyping ... bodyfont=8pt - Did you test it? --- t2.mkiv \enableregime[cp1250] \setuptyping[default][bodyfont=8pt] % As you advised \star

Re: [NTG-context] \setuptyping: font size

2010-12-01 Thread Hans Hagen
On 1-12-2010 10:50, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I'm trying to \setuptyping to use a 8pt font size [of a tt typeface]. \setuptyping ... bodyfont=8pt - Hans

[NTG-context] \setuptyping: font size

2010-12-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm trying to \setuptyping to use a 8pt font size [of a tt typeface]. Here are my trials - in several cases I get the wanted result but with error messages: --- t.mkiv \enableregime[cp1250] %\setuptyping[default][style=\ttxx\setupinterlinespace] % This works somehow but with e

[NTG-context] \typefile without breaking long lines

2010-11-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is it possible to \setuptyping in the manner that long lines won't be broken? So to get: <-\textwidth -> a instead of: aAA AA Thank you in advance. Regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.c

Re: [NTG-context] Referencing line numbers inside a typing

2010-10-27 Thread Stefan Müller
The texts „line“ and „lines“ are set with \setuplabeltext but you can see > alternative texts with \inline{...}[]. > > \setuptyping[numbering=line,escape=yes] > > \starttext > > See \inline[line:single] and also \inline[line:range]. > > See \inline{typeline}

Re: [NTG-context] Referencing line numbers inside a typing

2010-10-26 Thread Wolfgang Schuster
rnative texts with \inline{...}[]. \setuptyping[numbering=line,escape=yes] \starttext See \inline[line:single] and also \inline[line:range]. See \inline{typeline}[line:single] and also \inline{typelines}[line:range]. See line~\inlinerange[line:single] and also lines~\inlinerange[line:range]. \star

Re: [NTG-context] Referencing line numbers inside a typing

2010-10-26 Thread Stefan Müller
On 26.10.2010 15:31, Wolfgang Schuster wrote: Am 26.10.2010 um 10:30 schrieb Stefan Müller: Hi list, is there a (preferably easy) way to reference line numbers inside a typing? Minimal (not working) example: \setuptyping[numbering=line] \starttext In the following typing, \in{line

Re: [NTG-context] Referencing line numbers inside a typing

2010-10-26 Thread Wolfgang Schuster
Am 26.10.2010 um 10:30 schrieb Stefan Müller: > Hi list, > > is there a (preferably easy) way to reference line numbers inside a typing? > Minimal (not working) example: > > \setuptyping[numbering=line] > \starttext > In the following typing, \in{line}{}[line:intypin

[NTG-context] Referencing line numbers inside a typing

2010-10-26 Thread Stefan Müller
Hi list, is there a (preferably easy) way to reference line numbers inside a typing? Minimal (not working) example: \setuptyping[numbering=line] \starttext In the following typing, \in{line}{}[line:intyping] is really interesting. \starttyping This line is so interesting. \stoptyping

Re: [NTG-context] Thoughts about counters

2010-10-20 Thread Wolfgang Schuster
9/counters.pdf) > > \definetyping[cmds] > \setuptyping[cmds][option=commands] > \starttext > \startcmds > \def\MySectionCounter{P\currentcounter[part].C\currentcounter[chapter]-\currentcounter[section]} >/stopcmds > \stoptext > > which has inserted spaces before the open

Re: [NTG-context] Thoughts about counters

2010-10-20 Thread Bela Mulder
Wolfgang: thanks for the tips, I'll try them out. Hans: Here is the example, which produced the output in my Thoughts document (http://dl.dropbox.com/u/5718469/counters.pdf) \definetyping[cmds] \setuptyping[cmds][option=commands] \starttext \startcmds \def\MySectionCounter{P\currentco

Re: [NTG-context] \typefile from n-th line

2010-10-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, it doesn't seem to work. Let's have "t-TypeF2.mkiv" with the following content: --- \setuptyping[default][bodyfont=small,style={\ttx\setupinterlinespace}] % 1 % 2 \starttext % 3 \typefile[default][start=4]{t-TypeF2.mkiv} % = This file; 4 \typefile[default][start

Re: [NTG-context] Temporary landscape

2010-10-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Thank you both for the suggestions. My final code looks like this: --- \def\PushPaperSize{\edef\PopPaperSize{\setuppapersize[\papersize][\printpapersize]}} \definehead[subjectLand][subject] \setuphead[subjectLand][before={\PushPaperSize\page},style=bold] \setuptyping[Dim][bodyfont=small,style

[NTG-context] Problem typing file with diacritics by \typefile

2010-10-11 Thread Procházka Lukáš Ing . - Pontex s . r . o .
do I make ctx accept also Czech letters with diacritics like "ŽŠČ"? - I also looked to wiki to \setuptyping, but it doesn't seem to there would be a command which could change this. Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [

Re: [NTG-context] Verbatim typing with numbers inside float

2010-10-06 Thread Stefan Müller
][alg:myalgorithm]{Very neat algorithm.}{ \starttyping some source code \stoptyping } then the numbering I set up with \setuptyping[numbering=line] \setuplinenumbering[location=text] is gone. Is there a way to get around this? I try to not use itemize for this (although it seems to work with itemize

Re: [NTG-context] Verbatim typing with numbers inside float

2010-10-06 Thread Hans Hagen
.}{ \starttyping some source code \stoptyping } then the numbering I set up with \setuptyping[numbering=line] \setuplinenumbering[location=text] is gone. Is there a way to get around this? I try to not use itemize for this (although it seems to work with itemize), because I'd rather use the

Re: [NTG-context] Verbatim typing with numbers inside float

2010-10-06 Thread Hans Hagen
.}{ \starttyping some source code \stoptyping } then the numbering I set up with \setuptyping[numbering=line] \setuplinenumbering[location=text] is gone. Is there a way to get around this? I try to not use itemize for this (although it seems to work with itemize), because I'd rather use the

[NTG-context] Verbatim typing with numbers inside float

2010-10-06 Thread Stefan Müller
\stoptyping } then the numbering I set up with \setuptyping[numbering=line] \setuplinenumbering[location=text] is gone. Is there a way to get around this? I try to not use itemize for this (although it seems to work with itemize), because I'd rather use the more semantically correct app

Re: [NTG-context] footnotes when using RtL (Arabic)

2010-10-05 Thread Talal Al-Azem
e several bidi models available; maybe Idris can send you the draft on bidi) > > anyhow, here's some more: in addition to align options we also will have > locations reflecting the direction: > > \definefont[MyMono][file:dejavusansmono sa 1] > > \setuptyping

Re: [NTG-context] footnotes when using RtL (Arabic)

2010-10-05 Thread Hans Hagen
reflecting the direction: \definefont[MyMono][file:dejavusansmono sa 1] \setuptyping [style=\MyMono,numbering=line,start=1,step=1] \definetyping [RLtyping] [align=r2l] \definetyping [LRtyping] [align=l2r] \starttext \startbuffer[sample] \startLRtyping At the left! أهلا \st

Re: [NTG-context] Verbatim text loaded from a file? (reduced attachments)

2010-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
But I still don't get everything I'd need. There's a sample attached. --- \definetyping[xFn] \setuptyping[xFn][style={\tfxx\tt},space=off,blank=halfline,numbering=line] % Trials - what each parameter actually does \starttext AAA \bgroup \setuplinenumbering[style

Re: [NTG-context] Verbatim text loaded from a file?

2010-10-01 Thread Henning Hraban Ramm
Am 2010-10-01 um 11:06 schrieb Henning Hraban Ramm: Moreover, I'd need to have the following options: - To alter the font used for numbering lines, so that it would be smaller than the normal text. \definetyping[MyStyle] \setuptyping[MyStyle][style={\tfx\tt}] see

Re: [NTG-context] Verbatim text loaded from a file?

2010-10-01 Thread Henning Hraban Ramm
tarttyping) Moreover, I'd need to have the following options: - To alter the font used for numbering lines, so that it would be smaller than the normal text. \definetyping[MyStyle] \setuptyping[MyStyle][style={\tfx\tt}] see http://wiki.contextgarden.net/Reference/en/setuptyping Doesn't

Re: [NTG-context] lightgray text for background

2010-09-30 Thread Wolfgang Schuster
Am 30.09.2010 um 15:29 schrieb R. Bastian: > Hello, > > for a title page I would use a page of code as background. > How can I get the text > > \starttyping > > code > > \stoptyping > > in gray or lightgray ? \startstandardmakeup \setuptyping[color

Re: [NTG-context] Custom lua script (updating and debugging)

2010-09-29 Thread Stefan Müller
" is typeset as if pret-pas.lua wouldn't exist. If I change "option=PAS" to "option=LUA" it works as intended ("end" is green). What is going on here? Any help is appreciated. \installprettytype[PAS][PAS] \setupcolors[state=start] \setuptyping[option=colo

Re: [NTG-context] Custom lua script (updating and debugging)

2010-09-28 Thread Stefan Müller
". My testfile is added below. The "end" is typeset as if pret-pas.lua wouldn't exist. If I change "option=PAS" to "option=LUA" it works as intended ("end" is green). What is going on here? Any help is appreciated. \installprettytype[PAS][PAS] \s

Re: [NTG-context] problem with \setuptyping[option=LUA, escape=//]

2010-08-26 Thread Peter Münster
On Wed, Aug 25 2010, Hans Hagen wrote: > \definetyping[LUA] > \setuptyping[LUA][option=LUA,escape={/btex,/etex}] > > Hopefully you wikify this Hello Hans, I don't know what to wikify, because I don't understand what is supposed to work and what is not. Here anothe

Re: [NTG-context] [***SPAM***] problem with \setuptyping[option=LUA, escape=//]

2010-08-25 Thread Hans Hagen
On 25-8-2010 3:04, Peter Münster wrote: The "escape=//" option is ignored here: \setuptyping[option=LUA, escape=//] \starttext \starttyping bla // \em sometex \stoptyping \stoptext What could be done, to make it work? \definetyping[LUA] \setuptyping[LUA][option=LUA,escape={/

[NTG-context] [***SPAM***] problem with \setuptyping[option=LUA, escape=//]

2010-08-25 Thread Peter Münster
Hello, The "escape=//" option is ignored here: \setuptyping[option=LUA, escape=//] \starttext \starttyping bla // \em sometex \stoptyping \stoptext What could be done, to make it work? TIA for any help! Peter -- Contact information: http://pmrb.free.

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

2010-08-11 Thread 李延瑞
2010/8/11 Hongwen Qiu : >  On 08/11/2010 08:23 PM, Li Yanrui (李延瑞) wrote: >> >> Hi all, >> >> this is an example. >> >> \setuptyping[numbering=line] >> \setuplinenumbering[location=intext] >> \showframe >> \starttext >> \starttyp

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

2010-08-11 Thread Hongwen Qiu
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. \stoptyping \stoptext the linenumbering setup of "loc

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

2010-08-11 Thread 李延瑞
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. \stoptyping \stoptext the linenumbering setup of "location=intext" can not work. the line number

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

2010-06-23 Thread Hans Hagen
most of my environments: \setuptype[style={\setcharacterspacing[reset]\tt}] \setuptyping[style={\setcharacterspacing[reset]\tt}] \setupinteraction[style={\setcharacterspacing[reset]\tt}] \appendtoks \setcharacterspacing[reset]% \to \everyinitializeverbatim but maybe all such features shou

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

2010-06-22 Thread Otared Kavian
Hi Peter, Many thanks for your hint: indeed you had the solution! Best regards: OK On 22 juin 2010, at 19:18, Peter Münster wrote: > > Hello, > > I don't know, but I have these line in most of my environments: > > \setuptype[style={\setcharacterspacing[reset]\tt

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

2010-06-22 Thread Peter Münster
ents: \setuptype[style={\setcharacterspacing[reset]\tt}] \setuptyping[style={\setcharacterspacing[reset]\tt}] \setupinteraction[style={\setcharacterspacing[reset]\tt}] Cheers, Peter -- Contact information: http://pmr

[NTG-context] typefile behaviour

2010-06-22 Thread Gery Debongnie
Dear ConTeXt list, I encountered a weird behaviour while using typefile. Here is a minimal example, to illustrate what I am saying. We have two files, test.txt and test.tex, respectively (between the -). - 1 2 3 4 5 --- \setuptyping [before

Re: [NTG-context] Line Numbering (blank lines)

2010-06-18 Thread Wolfgang Schuster
leavehmode \strut \the\everyline \par} \starttext \setuptyping[numbering=line] \starttyping one two four five \stoptyping \stoptext Wolfgang ___ If your question is of interest to others as well, please add an en

Re: [NTG-context] \setuptyping[tab=...]

2010-05-10 Thread Hans Hagen
On 10-5-2010 12:04, Peter Münster wrote: Hello, The length of the tab is always 7: % one tab before each "bla": \setuptyping[tab=2] \starttext \starttyping 12345678901234567890 bla bla \stoptyping \setuptyping[tab=4] \starttyping 12345678901234567890 bla bla \

[NTG-context] \setuptyping[tab=...]

2010-05-10 Thread Peter Münster
Hello, The length of the tab is always 7: % one tab before each "bla": \setuptyping[tab=2] \starttext \starttyping 12345678901234567890 bla bla \stoptyping \setuptyping[tab=4] \starttyping 12345678901234567890 bla bla \stoptyping \stoptext Cheers, Peter -

[NTG-context] \setuptyping[numbering=line] don't emit line numbers

2010-04-21 Thread Hongwen Qiu
$ context --version MTXrun | current version: 2010.04.16 21:08 $ luatex --version This is LuaTeX, Version beta-0.60.0-2010040422 I found that \setuptyping[numbering=line] no longer produces line numbers any more. So are there something changed, or just it's ought to

Re: [NTG-context] Which packages?

2010-03-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
kages do. You'll usually get a faster response by describing the desired functionality rather than option name from LaTeX. It would seem like the option you need is there, but it doesn't seem to work. There are some examples is ConTeXt source: \setuptyping[file][numbering=file] \st

Re: [NTG-context] Which packages?

2010-03-29 Thread Mojca Miklavec
ther than option name from LaTeX. It would seem like the option you need is there, but it doesn't seem to work. There are some examples is ConTeXt source: \setuptyping[file][numbering=file] \starttext \typefile[start=2,nlines=3]{zapf} \typefile[start=3,step=2]{zapf} \stoptext But they neit

Re: [NTG-context] Importing program text.

2010-03-27 Thread Peter Münster
On Fri, Mar 26 2010, John Culleton wrote: > > I want to import the text of several programs in my latest book. > My requirements are: > 1. Monospaced font. \setuptyping[style=\tt] > 2. Courier or similar typeface I don't know. > 3. Smaller than normal typefa

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 > int

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

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 int main(){ return 0; /BTEX{\em unreachedCode;}/ETEX } \stopC \setuptyping[escape=

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

2010-01-08 Thread Tad Ashlock
rking on a project on over the holiday break that will need it. the beta has: \starttext \setuptyping[TEX][escape=yes] \startTEX /BTEX\em sometex/ETEX /BTEX\em sometex/ETEX \after \before /BTEX\em sometex/ETEX \before /BTEX\em sometex/ETEX \after \before /BTEX\em sometex/ETEX \inbetween /BTEX\

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

2009-12-30 Thread Hans Hagen
n over the holiday break that will need it. the beta has: \starttext \setuptyping[TEX][escape=yes] \startTEX /BTEX\em sometex/ETEX /BTEX\em sometex/ETEX \after \before /BTEX\em sometex/ETEX \before /BTEX\em sometex/ETEX \after \before /BTEX\em sometex/ETEX \inbetween /BTEX\em sometex/ETEX \aft

Re: [NTG-context] Pretty Printing Python code

2009-12-29 Thread luigi scarso
wo, prettythree=colorprettythree, prettyfour=colorprettyfour, prettyfive=colorprettyfive] % Python listings \definepalet [PYcolorpretty] [colorpretty] \setuptyping [PYTHON][bodyfont=10pt,option=color] \installprettytype[PYTHON] [PY] \definetyp

Re: [NTG-context] Allow indentation of typing environments

2009-11-05 Thread Peter Münster
test \stoptyping \item bla \starttyping test test test \stoptyping \stopitemize test \title{Test with margin} Works also very good! \setuptyping[margin=3em] \starttyping test test test \stoptyping test \starttyping test test test \stoptyping test \startitemize \item bla \item

[NTG-context] Printing partly bolded verbatim

2009-10-25 Thread Gerben Wierda
=line,bodyfont=9pt] \setuppapersize[A4,landscape][a4,landscape] \setuptyping[IfSQ][palet=colorpretty] \setuplayout [leftmargin=20mm, leftmargindistance=5mm, footer=0mm, header=0mm, rightmargin=0mm] \definelayer[header][width=\paperwidth,height=\paperheight] \defineoverlay[ifsqoverlay

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

2009-10-13 Thread Joshua Lee
ers \BREAKsethandlers \BREAKsetspecials} \installprettytype [BREAK] [BREAK] \starttext \framed [width=8cm, align=flushleft, strut=no]{% \setuptyping[option=BREAK] \starttyping Hottentottenstottertrottelmutterlattengitterkotterbeutelratenattentater \stoptyping } \stoptext sample.

Re: [NTG-context] The simpleslides can not output '--'

2009-09-08 Thread Aditya Mahajan
On Tue, 8 Sep 2009, joshua lee wrote: Hi All, Attached is the simple test file for the simpleslides which can not output '--', any idea? Thanks. There is a bug somewhere (see later). As a workaround, you can use \setuptyping[style={\definedfont[LMTypewriter10-Regular]}] Here is

[NTG-context] Why are pretty printer names uppercased?

2009-08-26 Thread Matthijs Kooijman
Hi all, according to the wiki, and the current code, the arguments to \installprettytype should be uppercased. E.g.: \installprettytype [PHP][PHP] Referring to them should be uppercased as well: \definetyping[PHP] [option=PHP] \setuptyping[option=PHP] However, the filename

Re: [NTG-context] setuptyping in MKIV

2009-08-21 Thread Aditya Mahajan
On Sat, 22 Aug 2009, Hans Hagen wrote: Aditya Mahajan wrote: Hi, If I set option to empty in setuptyping, the output of \starttyping stoptyping is colored. \setuptyping[option=] \starttext \starttyping % This is a test \stoptyping \stoptext This works fine in MKII, but in MKIV the % is

Re: [NTG-context] setuptyping in MKIV

2009-08-21 Thread Hans Hagen
Aditya Mahajan wrote: Hi, If I set option to empty in setuptyping, the output of \starttyping stoptyping is colored. \setuptyping[option=] \starttext \starttyping % This is a test \stoptyping \stoptext This works fine in MKII, but in MKIV the % is colored. The color goes away if I set

[NTG-context] setuptyping in MKIV

2009-08-21 Thread Aditya Mahajan
Hi, If I set option to empty in setuptyping, the output of \starttyping stoptyping is colored. \setuptyping[option=] \starttext \starttyping % This is a test \stoptyping \stoptext This works fine in MKII, but in MKIV the % is colored. The color goes away if I set option=none. I think this

[NTG-context] Problem with metapost textbackgrounds on Windows

2009-08-04 Thread Kevin D. Robbins
ph, leftoffset=0em, rulethickness=1pt] \definetyping [C] [option=commands] \setuptyping [C] [bodyfont=8pt, margin=1em, before=% {\blank[big] \setupinterlinespace[line=1.6ex] \starttextbackground[listingbackground]}, after=% {\stoptextbackground \blank

[NTG-context] Problem with \definetextbackground

2009-08-04 Thread Helmut Schwertner
] \setuptyping[typing][margin=1cm,bodyfont=8.0pt,before={\starttextbackground[verbatim]},after={\stoptextbackground}] \starttext \starttyping This is the first line. This is the second line. \stoptyping \stoptext test.tex%%% I use contextminimals

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 you

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 some

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

2009-07-20 Thread Aditya Mahajan
dern-base][texnansi] \setupbodyfont[modern] %M \setuptyping[option=color] %M \setupcolors[state=start] %D \section {User Manual} %D %D \CONTEXT\ has an excellent pretty printing capabilities for many languages. %D The code for pretty printing is written in \TEX, and due to catcode %D jugglery verb

[NTG-context] Solution. Only one problem left ($ in file name)

2009-06-28 Thread Gerben Wierda
I get [fileLibrary-procedures/hlx\$requery.pls does not exist] G Solution so far: \def\IfSQprojectname{Foo} \definetyping[SQL][option=color,numbering=line,bodyfont=9pt] \setuppapersize[A4,landscape][a4,landscape] \setuptyping[SQL][palet=colorpretty] \setuplayout [leftmargin=20mm, leftmargindistanc

Re: [NTG-context] Hod do I get the page number in the left margin (not in the footer)?

2009-06-26 Thread Gerben Wierda
ptext Thanks. Almost there. I now have: \definetyping[SQL][option=color,numbering=line,bodyfont=9pt] \defineoverlay[ifsqoverlay][\overlayfigure{IfSQ-overlay.pdf}] \setuppapersize[A4,landscape][a4,landscape] \setupbackgrounds[page][background=ifsqoverlay] \setuptyping[SQL][palet=colorpretty]

Re: [NTG-context] Why no page numbering here?

2009-06-26 Thread Carlos Breton Besnier
> \setuppapersize[A4,landscape][a4,landscape] >> \setupbackgrounds[page][background=ifsqoverlay] >> \setuptyping[SQL][palet=colorpretty] >> \setuppagenumbering[location=inleft] >> \def\typeSQLfile{\typefile[SQL]} >> \starttext >> >> w

[NTG-context] Hod do I get the page number in the left margin (not in the footer)?

2009-06-26 Thread Gerben Wierda
etuplayout[leftmargin=10mm,rightmargin=0mm,footer=0mm,header=5mm] \setuppapersize[A4,landscape][a4,landscape] \setupbackgrounds[page][background=ifsqoverlay] \setuptyping[SQL][palet=colorpretty] \setuppagenumbering[location=inleft] \def\typeSQLfile{\typefile[SQL]} \starttext why do I not see page nu

Re: [NTG-context] Why no page numbering here?

2009-06-25 Thread Gerben Wierda
t=9pt] \defineoverlay[ifsqoverlay][\overlayfigure{IfSQ-overlay.pdf}] \setuplayout[leftmargin=10mm,rightmargin=0mm,footer=0mm,header=5mm] \setuppapersize[A4,landscape][a4,landscape] \setupbackgrounds[page][background=ifsqoverlay] \setuptyping[SQL][palet=colorpretty] \setuppagenumbering[location=inleft]

Re: [NTG-context] Why no page numbering here?

2009-06-25 Thread Carlos Breton Besnier
ter=0mm,header=5mm] > \setuppapersize[A4,landscape][a4,landscape] > \setupbackgrounds[page][background=ifsqoverlay] > \setuptyping[SQL][palet=colorpretty] > \setuppagenumbering[location=inleft] > \def\typeSQLfile{\typefile[SQL]} > \starttext > > why do I not see page numbers? Has this to d

[NTG-context] Why no page numbering here?

2009-06-24 Thread Gerben Wierda
] \setuptyping[SQL][palet=colorpretty] \setuppagenumbering[location=inleft] \def\typeSQLfile{\typefile[SQL]} \starttext why do I not see page numbers? Has this to do with my margins (I need to use as much space on the page as possible)? Thanks, G

<    1   2   3   4   5   >