Hi, this used to work:
"""
\usemodule[scite]
% the setup doesn’t change the behavior, I think it used to.
\setuptyping[TEX][
option=tex, % scite sets "cld"
]
\starttext
\startTEX[escape=yes]
\definemeasure[PageWidth][165mm] /BTEX\hfill{\ss Dimensions}/ETEX
\define
}}
\setuptyping[TEX][
option=tex,% scite sets cld
escape=yes,
]
\starttext
\startTEX
\starttext/BTEX\SAY{Text starts here}/ETEX
\input tufte
\stoptext/BTEX\SAY{Text ends here}/ETEX
\stopTEX
\stoptext
I tried to load the module only in the section where I need it, that
lead to strange errors in
Hi,
I’m trying to use escaping in a typing environment. It works until I
load the scite module. I need that only for btx highlighting, but I
can’t limit it to that.
What should I do?
\usemodule[scite]
\define[1]\SAY{\hfill{\rm #1}}
\setuptyping[TEX][
option=tex,% scite sets cld
escape
Dear list,
the issue I’m experiencing comes from XML sources typeset with ConTeXt.
I have tried, but I found no way to get a minimal sample.
For code fragments in the XML source, I use:
\bgroup\xmlprettyprinttext{#1}{none}\egroup
To which I apply:
\setuptyping
[style={\tt\wider
=mpos:par:myexample,
location=paragraph,
topoffset=0.4em,
leftoffset=0em,
rulethickness=0.7pt]
\definetyping[Listing]
[option=commands]
\setuptyping
[Listing]
[bodyfont=10pt,
margin=1em,
before=%
{\blank[3*medium]
\setupinterlinespace[line=2.4ex]
\starttextbackground
]
Change the alignment value for your Listing's.
\setuptyping
[Listing]
[bodyfont=10pt,
margin=1em,
align={flushleft,verytolerant},
before=%
{\blank[3*medium]
\setupinterlinespace[line=2.4ex]
\starttextbackground[listingbackground]},
after=%
{\stoptextbackground
\
scaled \MPvar{linewidth};
endfor;
\stopuseMPgraphic
\definetextbackground
[listingbackground]
[state=start,
mp=mpos:par:myexample,
location=paragraph,
topoffset=0.4em,
leftoffset=0em,
rulethickness=0.7pt]
\definetyping[Listing]
[option=commands]
\setuptyping
[Listing
red
side effects but Hans suggestion to provide a hook which can be used to
re-enable the feature, e.g.
\startsetups [typing:mine]
\setbreakpoints[compound]
\stopsetups
\setuptyping [CUSTOM] [setups=typing:mine]
The only flaw I can see in the suggesti
without
line breaking?
\setuptyping[align=hangright]
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl
Hello,
is there a way to preserve empty lines in typing env?
By default it is removing them.
Thanks
* * *
\definetyping[custom]
\setuptyping[custom][
space=normal,
lines=yes,
tab=4,
]
\starttext
\startcustom
Foo
Bar
Baz
\stopcustom
\stoptext
here, i'd use s smaller font
\setuptyping[CUSTOM][escape={[[,]]},style=\small\small\tt]
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
persize[page, portrait][page, portrait]
\definehead[poem][section]
\setuphead[poem][]
\definetyping[CUSTOM]
\setuptyping[CUSTOM][escape={[[,]]}]
\starttext
\showgrid
\startpoem[title={My title}][]
\startCUSTOM[]
\stopCUSTOM
\st
I
use \setuptyping for the general style with a background box. But that
conflicts with the setups for special cases like code and result side by
side.
I guess I’ll also include this in the CGJ setup.
... attached an extension that supports inheritance (via category),
still honors 'b
renttyping[#3]%
\orelse\ifempty{#3}\else
\cdef\currenttyping{#3}
\fi
\buff_verbatim_type_buffer_indeed{\currenttyping}{#2}%
\useindentnextparameter\typingparameter
\endgroup
\dorechecknextindentation}
\popoverloadmode \protect
\usemodule[visual]
\definetyping[MyCode]
\s
""
> \usemodule[visual]
>
> \definetyping[MyCode]
>
> \setuptyping[MyCode][
> option=tex,
> numbering=file,
> ]
>
> \definebuffer[MyBuffer]
>
> \startMyBuffer
> \fakewords{10}{20}
> \stopMyBuffer
>
> \starttext
>
> \startMyCode
&g
Hi,
I’d like to use a custom buffer ("MyBuffer") to use a custom typing
style ("MyCode"). How does that work?
"""
\usemodule[visual]
\definetyping[MyCode]
\setuptyping[MyCode][
option=tex,
numbering=file,
]
\definebuffer[MyBuffer]
\startMyBuff
at). Right you are, it works with
> your method, thanks!
> I think the students have Evince so perhaps it's the best solution in the
> absence
there are some provisions for spaces in text but for verbatim it is a
bit more tricky
\setuptyping[space=on]
you now see visual spaces show u
best solution in
the absence
there are some provisions for spaces in text but for verbatim it is a
bit more tricky
\setuptyping[space=on]
you now see visual spaces show up that can be copied
now, say that we add real spaces, which you can do after and this (in
cont-new.mkxl):
\unpr
On 9/24/22 19:56, Pablo Rodriguez via ntg-context wrote:
> [...]
> Which \setuplinenumbering is applied to typing fragments?
>
> Just in case my question isn’t clear: how can I get "step=3" in the
> sample above?
Hi there,
I reply this question myself: "s
Dear list,
I have the following sample:
\setuplinenumbering[typing]
[step=3]
\starttext
\starttyping[numbering=line]
Line
Line
Line
\stoptyping
\stoptext
Which \setuplinenumbering is applied to typing fragments?
Just in case my question isn’t clear: how can I get "
On 7/7/2022 6:19 PM, Pablo Rodriguez via ntg-context wrote:
Hi Hans,
many thanks for the new release.
I experience two issues with scite buffers:
\usemodule[scite]
\setuptyping[margin=yes]
\starttext
\startbuffer[b]b\stopbuffer
\startTEXpage[offset=1em]
no margin
a
Hi Hans,
many thanks for the new release.
I experience two issues with scite buffers:
\usemodule[scite]
\setuptyping[margin=yes]
\starttext
\startbuffer[b]b\stopbuffer
\startTEXpage[offset=1em]
no margin
a \sciteinlinebuffer[none][b] a
a \typeinlinebuffer[b][option] a
Dear list,
I have the following sample:
\showframe
\setuppapersize[A8]
\setuptyping
[align={right,broad},
strip=yes,
lines=yes,
blank=halfline]
\starttext
\startXML
content content content content
content content
content content
:
>
> \usemodule[scite]
> \setuptyping[margin=yes]
> \starttext
> \startbuffer[b]b\stopbuffer
> \startTEXpage[offset=1em]
> a \sciteinlinebuffer[none][b] a\par
> a \typeinlinebuffer[b][option] a
> \stopTEXpage
> \stoptext
>
> I’m on Linux64 and using curre
Dear list,
I have my third sample with scite:
\usemodule[scite]
\setuptyping[margin=yes]
\starttext
\startbuffer[b]b\stopbuffer
\startTEXpage[offset=1em]
a \sciteinlinebuffer[none][b] a\par
a \typeinlinebuffer[b][option] a
\stopTEXpage
\stoptext
I’m on Linux64 and using
On Sat, 1 Jan 2022 11:04:03 +0100
Hans Hagen wrote:
> quick and dirty
>
> \setuptyping[style={\definedfont[Mono*malayalam-two]}]
>
> \starttyping
> മലയാളലിപികളുടെ ആവൃത്തി നിർണ്ണയം
> \stoptyping
That was a quick fix. Yes, it is working.
> If the need for features i
command pair \starttyping \stoptyping,
conjuncts are not formed as outside the command pair. Is it possible to
enforce [features=malayalam-two] even inside \starttyping \stoptyping
command pair?
quick and dirty
\setuptyping[style={\definedfont[Mono*malayalam-two]}]
\starttyping
മലയാളലിപികളുടെ
[mainface][mono][courier]
\definefontfamily [mainface][math][stix]
\setupbodyfont[mainface,10pt]
\setmathfontalternate{upright}
\setupmathematics[integral=nolimits, lcgreek=normal, default=normal]
\setupformulae[location=left, indentnext=auto]
\setuptyping[indentnext=auto]
% Might use
ce][serif][stix]
\definefontfamily [mainface][mono][courier]
\definefontfamily [mainface][math][stix]
\setupbodyfont[mainface,10pt]
\setmathfontalternate{upright}
\setupmathematics[integral=nolimits, lcgreek=normal, default=normal]
\setupformulae[location=left, indentnext=au
Note the presence of double-spaced blank lines in the following document
and in the attached source file:
\setuptyping[numbering=line]
\starttext
\startbuffer[javacode]
try {
final var num = stack.pop();
if( num != null ) {
stack.push( blah );
}
return true;
}
\stopbuffer
\type
Sylvain Hubert via ntg-context schrieb am 07.09.2021 um 11:49:
Dear List,
How should we remove the vertical space above and below the following typing?
\starttext
Remove space below
\starttyping
some
code
\stoptyping
\stoptext
\setuptyping [before=,after=]
Wolfgang
in on the new page.
>> It doesn’t happen with \start/stoplinenumbering.
>> MWE:
>> \setuptyping[
>> numbering=file,
>> ]
>
> \setuptyping[numbering=line]
Ah, thank you! (Wolfgang too!)
I can’t remember why I chose "file", and looking at the source als
Henning Hraban Ramm via ntg-context schrieb am 01.09.2021 um 18:01:
Hi again,
if a "typing" environment with line numbering goes over a page break, the line
numbers start at 1 again on the new page.
It doesn’t happen with \start/stoplinenumbering.
MWE:
\setuptyping[
numb
On 9/1/2021 6:01 PM, Henning Hraban Ramm via ntg-context wrote:
Hi again,
if a "typing" environment with line numbering goes over a page break, the line
numbers start at 1 again on the new page.
It doesn’t happen with \start/stoplinenumbering.
MWE:
\setuptyping[
numb
Hi again,
if a "typing" environment with line numbering goes over a page break, the line
numbers start at 1 again on the new page.
It doesn’t happen with \start/stoplinenumbering.
MWE:
\setuptyping[
numbering=file,
]
\setuppaper[A5]
\setupbodyfont[18pt]
\starttext
\startbuffer
tion]
[page={yes}]
\usetypescript[pagella]
\setupbodyfont[pagella,18pt]
\setupbodyfontenvironment[
28pt][ % For body
d=36pt, % For title
a=12pt, % For author & date
]
\setuptype[style=medium]
\setuptyping[typing][bodyfont=16pt]
\setupwhitespace[medium]
\setbreakpoints[compound]
\se
dium]
\setuptyping[typing][bodyfont=16pt]
\setupwhitespace[medium]
\setbreakpoints[compound]
\setuphead[chapter][style=\bfd]
\setuphead[section][style=\bfc]
\setuphead[subsection][style=\bfb]
\setuphead[subsubsection][style=\bf]
\setupitemize[autointro] % prevent orphan list intro
\setupitemize[indentnex
seem to work
\setupcolors[state=start]
\setupcolor[xwi]
\definetextbackground
[Code]
[frame=on,
framecolor=black,
%corner=0,
%offset=10pt,
background=color,
backgroundcolor=gray,
location=paragraph]
\setuptyping
[before={\blank\starttextbackground[Code
]
\definetextbackground
[Code]
[frame=on,
framecolor=black,
%corner=0,
%offset=10pt,
background=color,
backgroundcolor=gray,
location=paragraph]
\setuptyping
[before={\blank\starttextbackground[Code]},
after={\stoptextbackground\blank}]
\starttext
\starttyping
,
framecolor=black,
%corner=0,
%offset=10pt,
background=color,
backgroundcolor=gray,
location=paragraph]
\setuptyping
[before={\blank\starttextbackground[Code]},
after={\stoptextbackground\blank}]
\starttext
\starttyping
example
\stoptyping
\stoptext
> On 28 Jul 2021, at 13:13, Jeroen via ntg-context wrote:
>
> Is there a way to have two different styles of typing. I tried the following,
> but it does not seem to work.
>
> \setuptyping[abc][style=\ttx]
> \setuptyping[def][style=\ttxx]
>
> \starttext
>
> Am 28.07.2021 um 14:14 schrieb Jeroen via ntg-context :
>
> Is there a way to have two different types of typing. I tried the following,
> but it does not seem to work.
>
> \setuptyping[abc][style=\ttx]
> \setuptyping[def][style=\ttxx]
>
> \starttext
>
>
On 7/28/2021 2:14 PM, Jeroen via ntg-context wrote:
Is there a way to have two different types of typing. I tried the
following, but it does not seem to work.
\setuptyping[abc][style=\ttx]
\setuptyping[def][style=\ttxx]
\starttext
\starttyping[abc]
text
text
\stoptyping
\starttyping[def
Is there a way to have two different types of typing. I tried the
following, but it does not seem to work.
\setuptyping[abc][style=\ttx]
\setuptyping[def][style=\ttxx]
\starttext
\starttyping[abc]
text
text
\stoptyping
\starttyping[def]
text
text
\stoptyping
\stoptext
Is there a way to have two different styles of typing. I tried the
following, but it does not seem to work.
\setuptyping[abc][style=\ttx]
\setuptyping[def][style=\ttxx]
\starttext
\starttyping[abc]
example
example
\stoptyping
\starttyping[def]
example
example
\stoptyping
\stoptext
Thanks
ackground=color,
> > backgroundcolor=lightgray,
> > location=paragraph,
> > before=\blank,
> > after=\blank]
> >
> > \setuptyping
> > [CPP]
> > [before=\startCodeBackground,
> > after=\stopCodeB
0.11.26 15:41).
>
> \usemodule[scite]
>
> \definetextbackground
> [CodeBackground]
> [ frame=off,
> background=color,
> backgroundcolor=lightgray,
> location=paragraph,
> before=\blank,
> after=\blank]
>
> \set
ation=paragraph,
before=\blank,
after=\blank]
\setuptyping
[CPP]
[before=\startCodeBackground,
after=\stopCodeBackground]
\starttext
\samplefile{ward}
\startCPP
#include
int main(void)
{
printf("hello, world\n");
}
\stopCPP
\samplefile{weisman}
\sto
gt; >
> > Why do pass a option for the typing environment to \starttext?
> >
> > > \definetextbackground[code][background=color, backgroundcolor=lightgray,
> > > frame=off, location=paragraph]
> > >
> > > \setuptyping[before={\startbackground[c
t;
> > \definetextbackground[code][background=color, backgroundcolor=lightgray,
> > frame=off, location=paragraph]
> >
> > \setuptyping[before={\startbackground[code]}, after={\stopbackground}]
> >
> > \starttext[option=XML]
> > \starttyping
> > This
ation=paragraph]
\setuptyping[before={\startbackground[code]}, after={\stopbackground}]
\starttext[option=XML]
\starttyping
This is some code
a second line
\stoptyping
\stoptext
When I use \definetyping[Mytyping][option=XML] and then use \startMytyping ...
\stopMytyping nothing ch
; > > > > \starttextbackground[code]
> > > > > \starttyping
> > > > > This is some code
> > > > > a second line
> > > > > \stoptyping
> > > > > \stoptextbackground
> > > > You missed the W (working) in MWE.
>
ckground[code][background=color, backgroundcolor=lightgray,
> > > > frame=off, location=paragraph]
> > > >
> > > > \starttextbackground[code]
> > > > \starttyping
> > > > This is some code
> > > > a second line
> > > > \stoptyping
second line
\stoptyping
\stoptextbackground
You missed the W (working) in MWE.
\definetextbackground
[Code]
[ frame=off,
background=color,
backgroundcolor=lightgray,
location=paragraph]
\setuptyping
[before={\blank\starttextbackground[Code
optextbackground
>
> You missed the W (working) in MWE.
>
> \definetextbackground
> [Code]
> [ frame=off,
> background=color,
> backgroundcolor=lightgray,
> location=paragraph]
>
> \setuptyping
> [before={\blank\starttextbackground[Cod
[Code]
[ frame=off,
background=color,
backgroundcolor=lightgray,
location=paragraph]
\setuptyping
[before={\blank\starttextbackground[Code]},
after={\stoptextbackground\blank}]
\starttext
\starttyping
This is some code
a second line
\stoptyping
\stoptext
> \starttextbackground[code]
> \starttyping
> This is some code
> a second line
> \stoptyping
> \stoptextbackground
\definetextbackground[code][background=color, backgroundcolor=lightgray,
frame=off, location=paragraph]
\setuptyping[before={\startbackground[code]},
> whatever
> >
> > LMTX output:
> > whatever
> >
> > Is there a way to get the old MKIV behavior back?
>
> \setuptyping[LUA][strip=yes]
Thank you, Wolfgang!
___
If your question is of inte
processing the verbatim text:
MKIV output:
whatever
LMTX output:
whatever
Is there a way to get the old MKIV behavior back?
\setuptyping[LUA][strip=yes]
Wolfgang
___
If your question is of interest to othe
t; > example file below should have worked:
> >
> > \setupindenting[yes,medium]
> >
> > \setuptyping[buffer][
> > indentnext=no,
> > ]
> >
> > \starttext
> >
> > \startbuffer
> > \startformula
> > \int_a^b f'(x)\,dx
>
On 6/30/2020 9:50 PM, Mikael Sundqvist wrote:
Hi,
I want to avoid indentation after \typebuffer (or set indentnext to auto
perhaps). I am probably missing something simple, but I thought that the
example file below should have worked:
\setupindenting[yes,medium]
\setuptyping[buffer
Hi,
I want to avoid indentation after \typebuffer (or set indentnext to auto
perhaps). I am probably missing something simple, but I thought that the
example file below should have worked:
\setupindenting[yes,medium]
\setuptyping[buffer][
indentnext=no,
]
\starttext
\startbuffer
\startformula
wever following the example you provided this works perfectly! Many
thanks.
When your goal is to format C or C++ code you can load the scite module
which provides support for additional languages.
The \setuptyping line is necessary because the module selects the wrong
formatter for C++ but this shou
?
Best wishes,
Tomáš
\setupstartstop[DefaultSnippet][before=,after=,style=]
\defineframedtext[MPtyping][background=color,backgroundcolor=gray,width=\makeupwidth,offset=2dd,loffset=6dd,roffset=6dd,frame=on,]
\setuptyping[MP][before=\startMPtyping,after=\stopMPtyping,indentnext=auto,]
search for
[DefaultSnippet][before=,after=,style=]
\defineframedtext[MPtyping][background=color,backgroundcolor=gray,width=\makeupwidth,offset=2dd,loffset=6dd,roffset=6dd,frame=on,]
\setuptyping[MP][before=\startMPtyping,after=\stopMPtyping,indentnext=auto
h,frame=on,offset=1cc,]
# >\setuptyping[MP][before={\startMPT},after={\stopMPT},]
# >\startMP bla \stopMP
# >\stoptext
# >
# >Now I tried it with ConTeXt from TL2019 (TL2018 produces the same result as
TL2019)
# >and I have got _two_ boxes -- the outer one is correct and frames the typing
wframe\defineframedtext[MPT][background="" class="">\setuptyping[MP][before={\startMPT},after={\stopMPT},]\startMP bla \stopMP\stoptextNow I tried it with ConTeXt from TL2019 (TL2018 produces the same result as TL2019)and I have got _two_ boxes -- the outer one is correct and frames th
,frame=on,offset=1cc,]
\setuptyping[MP][before={\startMPT},after={\stopMPT},]
\startMP bla \stopMP
\stoptext
Now I tried it with ConTeXt from TL2019 (TL2018 produces the same result as
TL2019)
and I have got _two_ boxes -- the outer one is correct and frames the typing
environment
as in the past
Hi all,
if I compile the following (minimised) code with ConTeXt from TL2017,
I receive expected result -- one framed gray box with correct width.
\starttext\showframe
\defineframedtext[MPT][background=color,backgroundcolor=gray,width=\makeupwidth,frame=on,offset=1cc,]
\setuptyping[MP][before
eight=263mm,
bottomheight=1mm,
footerdistance=10mm]
\usetypescript[pagella]
\setupbodyfont[pagella,12pt]
\setupcolors[state=start]
\setuptype[style={\switchtobodyfont[11pt,tt]}]
\setuptyping[style={\switchtobodyfont[11pt,tt]}]
\setupfootertexts[section][]
\setupfooter[altern
Wolfgang will cook up a patch ...
The best solution is to remove the values from all three keys because
for now each of them is applies twice (even the style).
\setuptyping
[before=\hairline,
after=\hairline,
style=\tt\em]
\starttext
\starttyping[option=tex]
\donothing
\stoptyping
On 4/28/2019 5:56 PM, Aditya Mahajan wrote:
On Sun, 28 Apr 2019, Wolfgang Schuster wrote:
The problem are these settings in buff-imp-default.mkiv:
\setupstartstop
[DefaultSnippet]
[\c!before={\typingparameter\c!before},
\c!after={\typingparameter\c!after},
\c!style={\typingparameter\
On Sun, 28 Apr 2019, Wolfgang Schuster wrote:
The problem are these settings in buff-imp-default.mkiv:
\setupstartstop
[DefaultSnippet]
[\c!before={\typingparameter\c!before},
\c!after={\typingparameter\c!after},
\c!style={\typingparameter\c!style}]
In buff-imp-tex.mkiv these values
[TexSnippet]
[DefaultSnippet]
Wolfgang
Aditya Mahajan schrieb am 28.04.2019 um 17:00:
Hi,
The following minimal example:
\definetextbackground
[EXAMPLE]
[
location=paragraph,
rulethickness=1pt,
leftoffset=5em,
rightoffset=0mm,
]
\setuptyping[option=tex
Hi,
The following minimal example:
\definetextbackground
[EXAMPLE]
[
location=paragraph,
rulethickness=1pt,
leftoffset=5em,
rightoffset=0mm,
]
\setuptyping[option=tex, before=\startEXAMPLE, after=\stopEXAMPLE]
\starttext
\starttyping
A = B + C
> On 11 Jan 2019, at 00:13, Wolfgang Schuster
> wrote:
>
> Hans Åberg schrieb am 10.01.19 um 22:52:
>>> On 10 Jan 2019, at 22:14, Wolfgang Schuster
>>> wrote:
>>>
>>> Hans Åberg schrieb am 10.01.19 um 22:04:
>>>> There seems to
Hans Åberg schrieb am 10.01.19 um 22:52:
On 10 Jan 2019, at 22:14, Wolfgang Schuster
wrote:
Hans Åberg schrieb am 10.01.19 um 22:04:
There seems to be no option for \setuptyping[indentnext=...] following the TeX
convention to indent new paragraphs, as followed by a blank row, but not
> On 10 Jan 2019, at 22:14, Wolfgang Schuster
> wrote:
>
> Hans Åberg schrieb am 10.01.19 um 22:04:
>> There seems to be no option for \setuptyping[indentnext=...] following the
>> TeX convention to indent new paragraphs, as followed by a blank row, but not
&g
Hans Åberg schrieb am 10.01.19 um 22:04:
There seems to be no option for \setuptyping[indentnext=...] following the TeX
convention to indent new paragraphs, as followed by a blank row, but not
otherwise.
Are you looking for the auto option of the indentnext key?
\setupindenting[yes,medium
There seems to be no option for \setuptyping[indentnext=...] following the TeX
convention to indent new paragraphs, as followed by a blank row, but not
otherwise.
___
If your question is of interest to others as
me what I may be missing?
>
> Load the scite module (\usemodule[scite]) or add spaces between the
> arguments (\setuptyping [...] [...]).
Many thanks for your reply, Wolfgang.
I totally overlooked that spaces were missing in the code, so the lines
couldn’t be split.
Man
Pablo Rodriguez schrieb am 13.11.18 um 19:58:
Dear list,
I have the following sample:
\showframe
\setuppapersize[A6]
\setuptyping[TEX][align={right, broad}]
\starttext
\startTEX
\showframe
\setuppapersize[A5]
\setuptyping[TEX][align={right
Dear list,
I have the following sample:
\showframe
\setuppapersize[A6]
\setuptyping[TEX][align={right, broad}]
\starttext
\startTEX
\showframe
\setuppapersize[A5]
\setuptyping[TEX][align={right,broad}]
\starttext
\startTEX
To limit the smaller font to \starttyping it should be
\setuptyping [typing] [style=\ttxx]
or
\setuptyping [typing] [style=smalltype]
because \starttyping is a generated command like \startXML.
Wolfgang
Taco Hoekwater schrieb am 10.09.18 um 11:32:
Hi Hans,
Replace y
To limit the smaller font to \starttyping it should be
\setuptyping [typing] [style=\ttxx]
or
\setuptyping [typing] [style=smalltype]
because \starttyping is a generated command like \startXML.
Wolfgang
Taco Hoekwater schrieb am 10.09.18 um 11:32:
Hi Hans,
Replace your two
Hi Hans,
Replace your two setuptyping lines with:
\setuptyping[style=\ttxx]
\definetyping[XML]
\setuptyping[XML][option=XML,style=italic]
nothing else needs to change
Best wishes,
Taco
> On 10 Sep 2018, at 11:22, Hans van der Meer wrote:
>
>
Taco Hoekwater
Elv
I want to differentiate the typing of XML-code with \startXML and other text with \starttyping.That doesn’t work as I expect or I misinterpret something.The minimal example shows that in the following code there is no difference between using \startXML or \starttyping
typingsetup.pdf
Description:
section, subject][style=\ssa]
%
\setupindenting[first,always,2em]
\setupinterlinespace[line=1.5em]
\setupheads[indentnext=yes]
\setupwhitespace[big]
\setupfootnotes[bodyfont=9pt]
%
\setuplinenumbering[style=small,location=text,color=darkgreen]
\setuptype[style=\ttx]
%\setuptype[space=o
n partial XML is highlighted correctly.
> Dear Christoph,
>
> many thanks for your reply.
>
> Your module is really great fine. It supports both \setuptype and
> \setuptyping options.
>
> It is really a pity that it lacks TeX, since I’m focused on ConTeXt yet
> (after a
On Thu, 21 Dec 2017, Pablo Rodriguez wrote:
On 12/21/2017 08:05 PM, Aditya Mahajan wrote:
On Thu, 21 Dec 2017, Pablo Rodriguez wrote:
[...]
I don’t remember which were the options in t-vim, but I need the
options from \setuptyping and \setuptype.
Currently vim does not support these
On 12/21/2017 08:05 PM, Aditya Mahajan wrote:
> On Thu, 21 Dec 2017, Pablo Rodriguez wrote:
>> [...]
>> I don’t remember which were the options in t-vim, but I need the
>> options from \setuptyping and \setuptype.
>
> Currently vim does not support these primarily beca
ks for your reply.
Your module is really great fine. It supports both \setuptype and
\setuptyping options.
It is really a pity that it lacks TeX, since I’m focused on ConTeXt yet
(after all, it would be a Spanish introduction to ConTeXt ;-)). XML will
come later.
I’m afraid that XML comments
ind these that i don't want
> to break
Then I will have to wait for that implementation. Sorry for not being
able to provide the patch myself.
scite is great for coloring, but it lacks the options from \setuptype
and \setuptyping. I don’t need escapes, but many of the other options.
I
which were the options in t-vim, but I need the
options from \setuptyping and \setuptype.
Currently vim does not support these primarily because I don't use XML so
I never thought of this.
Could you send me a minimal example showing how \xmlprettyprinttext is
used and I can check h
r which were the options in t-vim, but I need the
options from \setuptyping and \setuptype.
Many thanks for your help again,
Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well,
yntax=context]
\definevimtyping[lua][syntax=lua]
instead of the \setuptyping commands. If you have a lot of code snippets,
create an subdirectory called output and also set
\setupvimtyping[directory=output]
Let me know if there are any errors and I can look into it (except if the
error is relat
]\relax \global \advance
\...
\ignorecrlf \setups {texta}
{}{}{}
\secondoftwoarguments #1#2->#2
\page_layouts_process_element_single_indeed ...#4}
\fi \endgroup
...
l.39 \completecon
I thought including some code examples via \typefile (with a bit of text in
either Cyrillic, Chinese, Japanese or Korean)
could be achieved with a simple local font switch, or setting a regime or
via \setuptyping but not on a global level
with \definefontsynonym, definefontfallback etc.
My fix is to
, Hans Hagen wrote:
> On 12/5/2017 11:10 PM, Wim Neimeijer wrote:
>
>> I wish it is that simple, but alas, I need to
>> to inform \typefile of the font as well,
>> possibly via setuptyping ?
>>
> if you mix scripts you need to either use font that has the glyphs or you
On 12/5/2017 11:10 PM, Wim Neimeijer wrote:
I wish it is that simple, but alas, I need to
to inform \typefile of the font as well,
possibly via setuptyping ?
if you mix scripts you need to either use font that has the glyphs or
you have to create a bodyfint with a combination of fonts ... i
1 - 100 of 471 matches
Mail list logo