[NTG-context] Re: typing with scite module and escape

2024-02-24 Thread Henning Hraban Ramm
}} \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

[NTG-context] typing with scite module and escape

2024-02-24 Thread Henning Hraban Ramm
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

[NTG-context] issue with \setuptyping (and XML sources)

2024-01-14 Thread Pablo Rodriguez via ntg-context
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

[NTG-context] Verbatim Textbox with Reference NUmbering

2023-09-09 Thread Jeroen
=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

[NTG-context] Re: Text runs out of Verbatim Frame

2023-09-08 Thread Wolfgang Schuster
] 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       \blank

[NTG-context] Text runs out of Verbatim Frame

2023-09-08 Thread Jeroen
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

[NTG-context] Re: breakpoints in verbatim text

2023-08-18 Thread Hans Hagen
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 suggestion is the use

[NTG-context] Re: new align option

2023-08-16 Thread Hans Hagen via ntg-context
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

[NTG-context] Vebatim text: Preserve empty lines

2023-08-16 Thread Alex Leray
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

[NTG-context] Re: Typing with text wrapping

2023-08-07 Thread Hans Hagen via ntg-context
ont \setuptyping[CUSTOM][escape={[[,]]},style=\small\small\tt] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pra

[NTG-context] Typing with text wrapping

2023-08-05 Thread Alex Leray
age, portrait] \definehead[poem][section] \setuphead[poem][] \definetyping[CUSTOM] \setuptyping[CUSTOM][escape={[[,]]}] \starttext \showgrid \startpoem[title={My title}][] \startCUSTOM[] \stopCUSTOM \stoppoem \stoptext ``` Tha

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-30 Thread Henning Hraban Ramm
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 'buffer

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-29 Thread Hans Hagen
[#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] \setuptyping

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-29 Thread Bruce Horrocks
"" > \usemodule[visual] > > \definetyping[MyCode] > > \setuptyping[MyCode][ > option=tex, > numbering=file, > ] > > \definebuffer[MyBuffer] > > \startMyBuffer > \fakewords{10}{20} > \stopMyBuffer > > \starttext > > \startMyCode &g

[NTG-context] combining \definetyping and \definebuffer

2023-07-29 Thread Henning Hraban Ramm
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

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-29 Thread Kalouguine Andre via ntg-context
Acrobat). 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 up tha

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-28 Thread Hans Hagen via ntg-context
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): \unprotect

Re: [NTG-context] line numbering for \setuptyping

2022-09-25 Thread Pablo Rodriguez via ntg-context
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

[NTG-context] line numbering for \setuptyping

2022-09-24 Thread Pablo Rodriguez via ntg-context
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

Re: [NTG-context] two issues with \sciteinlinebuffer

2022-07-07 Thread Hans Hagen via ntg-context
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

[NTG-context] two issues with \sciteinlinebuffer

2022-07-07 Thread Pablo Rodriguez via ntg-context
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

[NTG-context] indent in \setuptyping

2022-06-29 Thread Pablo Rodriguez via ntg-context
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

Re: [NTG-context] \sciteinlinebuffer inherits margin properties

2022-06-04 Thread Otared Kavian via ntg-context
: > > \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

[NTG-context] \sciteinlinebuffer inherits margin properties

2022-06-04 Thread Pablo Rodriguez via ntg-context
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

Re: [NTG-context] enforcing formation of conjuncts inside \starttyping \stoptyping

2022-01-01 Thread Ajith R via ntg-context
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

Re: [NTG-context] enforcing formation of conjuncts inside \starttyping \stoptyping

2022-01-01 Thread Hans Hagen via ntg-context
the 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 മലയാളലിപികളുടെ

Re: [NTG-context] Unicode superscript and subscript parentheses as operators

2021-12-28 Thread Hans Hagen via ntg-context
[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

Re: [NTG-context] Unicode superscript and subscript parentheses as operators

2021-12-28 Thread Hans Åberg via ntg-context
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

[NTG-context] Blank lines discarded when \typing

2021-12-03 Thread Thangalin via ntg-context
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

Re: [NTG-context] Remove vertical space around typing

2021-09-07 Thread Wolfgang Schuster via ntg-context
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

Re: [NTG-context] line numbering restarts every page

2021-09-01 Thread Henning Hraban Ramm via ntg-context
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

Re: [NTG-context] line numbering restarts every page

2021-09-01 Thread Wolfgang Schuster via ntg-context
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

Re: [NTG-context] line numbering restarts every page

2021-09-01 Thread Hans Hagen via ntg-context
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

[NTG-context] line numbering restarts every page

2021-09-01 Thread Henning Hraban Ramm via ntg-context
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

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-08-06 Thread Jeroen via ntg-context
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

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-07-31 Thread Jeroen via ntg-context
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[indent

Re: [NTG-context] Verbatim text in a frame

2021-07-31 Thread Wolfgang Schuster via ntg-context
not 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

Re: [NTG-context] Verbatim text in a frame

2021-07-30 Thread Hans Hagen via ntg-context
] \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

[NTG-context] Verbatim text in a frame

2021-07-30 Thread Jeroen via ntg-context
=on, 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

Re: [NTG-context] Different Typing Styles

2021-07-28 Thread Bruce Horrocks via ntg-context
> 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 >

Re: [NTG-context] Different Styles of Typing

2021-07-28 Thread Henning Hraban Ramm via ntg-context
> 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 > >

Re: [NTG-context] Different Styles of Typing

2021-07-28 Thread Hans Hagen via ntg-context
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

[NTG-context] Different Styles of Typing

2021-07-28 Thread 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 \starttyping[abc] text text \stoptyping \starttyping[def] text text \stoptyping \stoptext

[NTG-context] Different Typing Styles

2021-07-28 Thread Jeroen via ntg-context
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

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
ound=color, > >     backgroundcolor=lightgray, > >    location=paragraph, > > before=\blank, > >   after=\blank] > > > > \setuptyping > >    [CPP] > >    [before=\startCodeBackground, > > after=\stopCodeBackgr

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
26 15:41). > > \usemodule[scite] > > \definetextbackground >    [CodeBackground] >    [  frame=off, > background=color, >     backgroundcolor=lightgray, >    location=paragraph, > before=\blank, >   after=\blank] > > \setuptyp

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Wolfgang Schuster
=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} \stoptext

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
t; > > > Why do pass a option for the typing environment to \starttext? > > > > > \definetextbackground[code][background=color, backgroundcolor=lightgray, > > > frame=off, location=paragraph] > > > > > > \setuptyping[before={\startbackground[code]}

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
gt; > \definetextbackground[code][background=color, backgroundcolor=lightgray, > > frame=off, location=paragraph] > > > > \setuptyping[before={\startbackground[code]}, after={\stopbackground}] > > > > \starttext[option=XML] > > \starttyping > > This is s

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Wolfgang Schuster
=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 changes

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Aditya Mahajan
; > > > > \starttextbackground[code] > > > > > \starttyping > > > > > This is some code > > > > > a second line > > > > > \stoptyping > > > > > \stoptextbackground > > > > You missed the W (working) in

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
ckground[code][background=color, backgroundcolor=lightgray, > > > > frame=off, location=paragraph] > > > > > > > > \starttextbackground[code] > > > > \starttyping > > > > This is some code > > > > a second line > > > > \stoptyping

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Wolfgang Schuster
a 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

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
optextbackground > > You missed the W (working) in MWE. > > \definetextbackground >    [Code] >    [  frame=off, > background=color, >     backgroundcolor=lightgray, >    location=paragraph] > > \setuptyping >    [before={\blank\starttextbackground[Cod

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Wolfgang Schuster
[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

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Aditya Mahajan
> \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]},

Re: [NTG-context] MKIV - LMTX difference: stripping of leading white space in verbatim text

2020-09-03 Thread Christoph Reller
> 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

Re: [NTG-context] MKIV - LMTX difference: stripping of leading white space in verbatim text

2020-09-02 Thread Wolfgang Schuster
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

Re: [NTG-context] Avoid indentation after \typebuffer

2020-07-01 Thread Mikael Sundqvist
t; > example file below should have worked: > > > > \setupindenting[yes,medium] > > > > \setuptyping[buffer][ > > indentnext=no, > > ] > > > > \starttext > > > > \startbuffer > > \startformula > > \int_a^b f'(x)\,dx > >

Re: [NTG-context] Avoid indentation after \typebuffer

2020-07-01 Thread Hans Hagen
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

[NTG-context] Avoid indentation after \typebuffer

2020-06-30 Thread Mikael Sundqvist
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

Re: [NTG-context] ntg-context Digest, Vol 189, Issue 28

2020-03-15 Thread Wolfgang Schuster
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 should

Re: [NTG-context] multipage typing

2020-01-19 Thread Hans Hagen
it? 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

[NTG-context] multipage typing

2020-01-19 Thread Tomas Hala
[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

Re: [NTG-context] typing+framedtext: different behaviour between TL2017 and 2019

2020-01-17 Thread Tomas Hala
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

Re: [NTG-context] typing+framedtext: different behaviour between TL2017 and 2019

2020-01-17 Thread Otared Kavian
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 fr

Re: [NTG-context] typing+framedtext: different behaviour between TL2017 and 2019

2020-01-17 Thread Wolfgang Schuster
,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

[NTG-context] typing+framedtext: different behaviour between TL2017 and 2019

2020-01-17 Thread Tomas Hala
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

[NTG-context] Custom Footertext

2019-09-29 Thread Jeroen
=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[alternative

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Wolfgang Schuster
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

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Hans Hagen
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},   

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Aditya Mahajan
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

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Wolfgang Schuster
    [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

[NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Aditya Mahajan
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

Re: [NTG-context] Setup typing indent next

2019-01-10 Thread Hans Åberg
> 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 seem

Re: [NTG-context] Setup typing indent next

2019-01-10 Thread Wolfgang Schuster
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

Re: [NTG-context] Setup typing indent next

2019-01-10 Thread Hans Åberg
> 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

Re: [NTG-context] Setup typing indent next

2019-01-10 Thread Wolfgang Schuster
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

[NTG-context] Setup typing indent next

2019-01-10 Thread Hans Åberg
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

Re: [NTG-context] align=broad not working in typing

2018-11-13 Thread Pablo Rodriguez
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

Re: [NTG-context] align=broad not working in typing

2018-11-13 Thread Wolfgang Schuster
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

[NTG-context] align=broad not working in typing

2018-11-13 Thread Pablo Rodriguez
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

Re: [NTG-context] setuptyping

2018-09-11 Thread Wolfgang Schuster
e: 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, Repl

Re: [NTG-context] setuptyping

2018-09-10 Thread Wolfgang Schuster
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

Re: [NTG-context] setuptyping

2018-09-10 Thread Taco Hoekwater
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

[NTG-context] setuptyping

2018-09-10 Thread Hans van der Meer
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

[NTG-context] tex error Argument of \titlecmd has an extra }

2018-03-06 Thread ????????
on, 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=on] \s

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-26 Thread SteamedFish
...] >> Note that even 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 Co

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-21 Thread Aditya Mahajan
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

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-21 Thread Pablo Rodriguez
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

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-21 Thread Pablo Rodriguez
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

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-21 Thread Pablo Rodriguez
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 need

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-21 Thread Aditya Mahajan
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 how

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-21 Thread Pablo Rodriguez
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,

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-19 Thread Aditya Mahajan
=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 related

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wim Neimeijer
cern with all these beta releases, > ConText is great and for the most part easy to use, I am more worried that > my existing ConText environment (setup) becomes broken, and/or resulting > in complete different PDF output. > I have no way of knowing, apart from visually inspecting a lot

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wim Neimeijer
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 change

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-05 Thread Wim Neimeijer
, Hans Hagen <pra...@wxs.nl> 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

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-05 Thread Hans Hagen
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'm

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-05 Thread Wim Neimeijer
I wish it is that simple, but alas, I need to to inform \typefile of the font as well, possibly via setuptyping ? The following works with texlive 2017 (pdflatex), meaning I have the fonts installed. I also ran $ mtxrun --script font --reload \documentclass{article} \usepackage[T1]{fontenc

  1   2   3   4   5   >