[NTG-context] Re: weekend update

2024-06-24 Thread Gerion Entrup
ust" works: > > ``` > > \startbuffer > > This is a test \stacking [1] {and a proof} of \stacking [2] {concept} > > indeed. > > \stopbuffer > > ... > > \setupstacking[criterium={1-}] > > ``` > > > > I also wondered,

[NTG-context] Re: weekend update

2024-06-23 Thread Hans Hagen via ntg-context
his possible somehow? ``` \startluacode for i = 1, 20 do context.definestacking(string.format("l\letterpercent.d", i)) end \stopluacode ``` The next version already will have this: %D For Aditya Mahajan: ranges and such. %D %D \starttyping %D \starttext %D \startstackingsteps[1,

[NTG-context] Re: line numbering respecting original lines

2024-06-17 Thread Hans Hagen via ntg-context
and need breaking. Is that possible? In my example below the 3rd line is too long and gets line numbers 3 and 4. Same problem with source code examples, i.e. \starttyping with numbering. I thought numbering=file (or \setuplinenumbering[method=file]) would address that, but apparently not

[NTG-context] Re: line numbering respecting original lines

2024-06-17 Thread Wolfgang Schuster
that have distinct line breaking, I need line numbering to adhere to that, even if some lines are too long and need breaking. Is that possible? In my example below the 3rd line is too long and gets line numbers 3 and 4. Same problem with source code examples, i.e. \starttyping with numbering. I

[NTG-context] Re: line numbering respecting original lines

2024-06-17 Thread Henning Hraban Ramm
to adhere to that, even if some lines are too long and need breaking. Is that possible? In my example below the 3rd line is too long and gets line numbers 3 and 4. Same problem with source code examples, i.e. \starttyping with numbering. I thought numbering=file (or \setuplinenumbering

[NTG-context] Re: line numbering respecting original lines

2024-06-17 Thread Wolfgang Schuster
long and need breaking. Is that possible? In my example below the 3rd line is too long and gets line numbers 3 and 4. Same problem with source code examples, i.e. \starttyping with numbering. I thought numbering=file (or \setuplinenumbering[method=file]) would address that, but apparently not

[NTG-context] Re: line numbering respecting original lines

2024-06-17 Thread Henning Hraban Ramm
example below the 3rd line is too long and gets line numbers 3 and 4. Same problem with source code examples, i.e. \starttyping with numbering. I thought numbering=file (or \setuplinenumbering[method=file]) would address that, but apparently not. \start \setupparagraphnumbering[state=start

[NTG-context] Re: line numbering respecting original lines

2024-06-17 Thread Wolfgang Schuster
numbers 3 and 4. Same problem with source code examples, i.e. \starttyping with numbering. I thought numbering=file (or \setuplinenumbering[method=file]) would address that, but apparently not. Hraban \mainlanguage[de] \setuppapersize[A7,landscape] \setuplayout[topspace=0mm,bottom=0mm,width

[NTG-context] line numbering respecting original lines

2024-06-17 Thread Henning Hraban Ramm
examples, i.e. \starttyping with numbering. I thought numbering=file (or \setuplinenumbering[method=file]) would address that, but apparently not. Hraban \mainlanguage[de] \setuppapersize[A7,landscape] \setuplayout[topspace=0mm,bottom=0mm,width=90mm,height=70mm] \setuppagenumbering[location=none

[NTG-context] Re: Most recent context doesn't like synctex?

2024-04-15 Thread Jim
x >> on the command line, should that not over-ride the over-ride? Or, put >> another way, would the following not make sense: >> if --synctex is used on the command line >> create synctex file >> else if --nonstop is used on the command line >> do not create the sy

[NTG-context] Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread garulfo
/ startparagraphs Command/ startparallel Command/ startplacefloat Command/ startplacepairedbox Command/ startsection Command/ startsectionblock Command/ startstartstop Command/ startstop Command/ startstyle Command/ starttabulate Command/ starttextbackground Command/ starttyping Command/ startviewerl

[NTG-context] Re: Most recent context doesn't like synctex?

2024-04-13 Thread Mikael Sundqvist
file > else if --nonstop is used on the command line > do not create the synctex file > else if \setupsynctex[...] is used in the source file > create the synctex file > else > do not cr

[NTG-context] Re: incosistent output of --- dash

2024-04-06 Thread Pablo Rodriguez via ntg-context
On 4/6/24 11:43, madiazm.eo...@gmail.com wrote: > Hi everyone, Hi Miguel, > […] > Am I missing something on the use of this ligature? I don’t think so. In some cases you may not get the ligature for a good reason: \starttyping program --option=value file.ext \stoptyping It w

[NTG-context] upload

2024-04-01 Thread Hans Hagen
w engine anyway. In order to get an idea of how we will get rid of the disturbing formulas, you can load the module: \starttyping \usemodule[math-goodriddance] \stoptyping Until becoming the default setting, the command \typ {\goodriddancemath} will bring you into \MLTX\ mode while \typ {\badridd

[NTG-context] Re: issue with typing in footnotes

2024-03-17 Thread Wolfgang Schuster
Pablo Rodriguez via ntg-context schrieb am 17.03.2024 um 17:38: Dear list, I have the following sample (which was on the way of showing another issue): \starttext a \starttyping b \stoptyping c \startfootnote a \starttyping b \stoptyping c \stopfootnote

[NTG-context] issue with typing in footnotes

2024-03-17 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample (which was on the way of showing another issue): \starttext a \starttyping b \stoptyping c \startfootnote a \starttyping b \stoptyping c \stopfootnote \stoptext Current latest (from 2024.03.11 09:34) breaks compilation with both

[NTG-context] \intertext and highlighting with \alignhere/\breakhere

2024-03-12 Thread Max Chernoff
mplefile{knuth}} \NC d \NC= e + f \NR[+] \NC g \NC= h + i \stopalign\stopformula \samplefile{knuth} \section{“I expect to see \tex{noalign} only after the \tex{cr} of an alignment.”} \starttyping \samplefile{knuth} \startformula \text{something} + \text{rea

[NTG-context] Re: MetaPost lines in tables?

2024-02-22 Thread Henning Hraban Ramm
currentdate, %D copyright={Aditya Mahajan}] %D This metapost module is inspired by a TeX.SE question: %D http://tex.stackexchange.com/q/39296/323 %D %D I thought that it would be fun to implement a similar feature in MetaPost. %D %D To use this package in MetaPost: %D %D \starttyping %Dinput

[NTG-context] Re: Question to a formular

2024-01-08 Thread Ursula Hermann
lp me please? > > > \starttyping > 0! := 1 > (n + 1)! := (n + 1) n! > \stoptyping Or: \startformula \startalign[n=1,align={1:left}] \NC 0! := 1\NR \NC (n + 1)! := (n + 1) n!\NR \stopalign \stopformula https://wiki.context

[NTG-context] Re: Question to a formular

2024-01-05 Thread Taco Hoekwater
> On 05/01/2024 14:27, Ursula Hermann wrote: > >> Can someone help me please? > > > \starttyping > 0! := 1 > (n + 1)! := (n + 1) n! > \stoptyping Or: \startformula \startalign[n=1,align={1:left}] \NC 0! := 1\NR \NC (n + 1)! := (n + 1) n!\NR

[NTG-context] Re: Question to a formular

2024-01-05 Thread vm via ntg-context
On 05/01/2024 14:27, Ursula Hermann wrote: This is a formular  with  factorial. 0! := 1 (n + 1)! := (n + 1) n! this looks more like a code example than a math formula Can someone help me please? \starttyping 0! := 1 (n + 1)! := (n + 1) n! \stoptyping

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-22 Thread Hans Hagen via ntg-context
s well) to include symbols for the control characters. In typo-rep there is also %D \starttyping %D \definefontfeature[default][default][mode=node,formatters=strip] %D \stoptyping You included some notes about Khaled, so I guess he faced the same issue. His Amiri font displays the symbols by defau

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-22 Thread Hamid,Idris
characters. In typo-rep there is also %D \starttyping %D \definefontfeature[default][default][mode=node,formatters=strip] %D \stoptyping You included some notes about Khaled, so I guess he faced the same issue. His Amiri font displays the symbols by default, as do other Arabic fonts. (It seem

[NTG-context] Re: breakpoints in verbatim text

2023-08-18 Thread Hans Hagen
on is the use of the \everyinitializeverbatim register because it is used for inline and display verbatim. A better place to add the option is \buff_verbatim_initialize_typing_two for \starttyping and \buff_verbatim_initialize_type

[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Alex Leray
\everyinitializeverbatim and then   \startsetups typing:mine   \setbreakpoints[compound]   \stopsetups with   \starttyping[lines=yes,setups=typing:mine] I need Wolfgang to check it for poss

[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Hans Hagen
parameter \to \everyinitializeverbatim and then \startsetups typing:mine \setbreakpoints[compound] \stopsetups with \starttyping[lines=yes,setups=typing:mine] I need Wolfgang to check it for possible inter

[NTG-context] breakpoints in verbatim text

2023-08-17 Thread Alex Leray
is is the truth: waste-not-want-not \par 2. This is the truth: waste/not/want/not \par 3. This is the truth: waste+not+want+not \par 4. This is the truth: waste(not(want(not)) \par 5. This is the truth: ((waste)not)want)not \starttyping[lines=yes] 1. Thisisthetruth:waste-not-want-not \par 2. Thisi

[NTG-context] Re: new align option

2023-08-16 Thread Hraban Ramm
explain? Hraban Am 15.08.23 um 22:31 schrieb Hans Hagen via ntg-context: Hi, Especially for long verbatim lines we now can do this: \starttext \setupalign[hangright] \starttyping test test test test test test test test test test test test test test test test test test test test test test

[NTG-context] new align option

2023-08-15 Thread Hans Hagen via ntg-context
Hi, Especially for long verbatim lines we now can do this: \starttext \setupalign[hangright] \starttyping test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test

[NTG-context] Re: Using

2023-08-05 Thread Alex Leray
Thanks Hans! Le 4/08/23 à 23:21, Hans Hagen a écrit : On 8/4/2023 7:42 PM, Alex Leray wrote: Hello, I'm trying to figure out why this is not working (whereas \startlines\stoplines works): ``` \definehead[poem][section] \setuphead[poem][beforesection={\starttyping}, afterse

[NTG-context] Re: Using

2023-08-04 Thread Hans Hagen
On 8/4/2023 7:42 PM, Alex Leray wrote: Hello, I'm trying to figure out why this is not working (whereas \startlines\stoplines works): ``` \definehead[poem][section] \setuphead[poem][beforesection={\starttyping}, aftersection={\stoptyping}] \starttext \startpoem[title={Glijden}][]

[NTG-context] Using

2023-08-04 Thread Alex Leray
Hello, I'm trying to figure out why this is not working (whereas \startlines\stoplines works): ``` \definehead[poem][section] \setuphead[poem][beforesection={\starttyping}, aftersection={\stoptyping}] \starttext \startpoem[title={Glijden}][] Lorem ipsum dolor sit amet consectetur. \sto

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

2023-01-28 Thread Kalouguine Andre via ntg-context
y something I had never thought of, using PDF comments, thanks!. It's a really nice approach, though weirdly it doesn't work on Okular (Linux+KDE) for me, even though attachments worked fine. I'll try and see why that is. What I had in mind was rather the following: \starttext

[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] How to display these characters

2022-08-05 Thread Henning Hraban Ramm via ntg-context
Am 05.08.22 um 20:07 schrieb Wolfgang Schuster via ntg-context: juh+ntg-context--- via ntg-context schrieb am 05.08.2022 um 19:04: \starttyping foo └── bar     ├── baz     │   └── index.html     └── index.html \stoptyping The source code is generated with the linux command "tree".

Re: [NTG-context] How to display these characters

2022-08-05 Thread Wolfgang Schuster via ntg-context
juh+ntg-context--- via ntg-context schrieb am 05.08.2022 um 19:04: Dear all, I have this: \starttext \starttyping foo └── bar     ├── baz     │   └── index.html     └── index.html \stoptyping \stoptext The source code is generated with the linux command "tree". The special

[NTG-context] How to display these characters

2022-08-05 Thread juh+ntg-context--- via ntg-context
Dear all, I have this: \starttext \starttyping foo └── bar ├── baz │   └── index.html └── index.html \stoptyping \stoptext The source code is generated with the linux command "tree". The special characters which indicate the folder depth are not displayed. I gu

Re: [NTG-context] \startXML vs \startPARSEDXML

2022-05-12 Thread Denis Maier via ntg-context
lo Rodriguez > Betreff: Re: [NTG-context] \startXML vs \startPARSEDXML > > On 5/11/22 11:47, Denis Maier via ntg-context wrote: > > Hi everyone, > > > > the wikipage on \starttyping > > (https://wiki.contextgarden.net/Command/_starttyping > > <https://wiki

Re: [NTG-context] \startXML vs \startPARSEDXML

2022-05-11 Thread Pablo Rodriguez via ntg-context
On 5/11/22 11:47, Denis Maier via ntg-context wrote: > Hi everyone, > > the wikipage on \starttyping > (https://wiki.contextgarden.net/Command/_starttyping > <https://wiki.contextgarden.net/Command/_starttyping>) says there are > some dedicated commands, e.g. \startXML and

[NTG-context] \startXML vs \startPARSEDXML

2022-05-11 Thread Denis Maier via ntg-context
Hi everyone, the wikipage on \starttyping (https://wiki.contextgarden.net/Command/_starttyping) says there are some dedicated commands, e.g. \startXML and \startPARSEDXML. How do they differ? Best, Denis ___ If

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

2022-01-01 Thread Wolfgang Schuster via ntg-context
Ajith R via ntg-context schrieb am 01.01.2022 um 11:14: For Malayalam, most often we would be expecting ligation to work even within \starttyping \stoptyping. You can anyway make a typescript that matches your needs. Don't know how. Can you point towards a documentation? You ca

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

2022-01-01 Thread Hans Hagen via ntg-context
On 1/1/2022 11:14 AM, Ajith R wrote: Don't know how. Can you point towards a documentation? \type-imp-* Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | Th

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
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 മലയാളലിപികളുടെ

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

2021-12-31 Thread Ajith R via ntg-context
Hi, I am trying to prepare a moderate sized document in Malayalam using Context. Overall I have been successful. However, there are a few rough edges for which I need help. This is the sixth problem I face. If I use Malayalam inside the command pair \starttyping \stoptyping, conjuncts are not

[NTG-context] Blank lines discarded when \typing

2021-12-03 Thread Thangalin via ntg-context
{\typebuffer}: \typebuffer[javacode] \type{\typing}: \starttyping try { final var num = stack.pop(); if( num != null ) { stack.push( blah ); } return true; } \stoptyping \type{\typefile}: \typefile{t.java} \stoptext There appear to be two issues. First, \typefile produces what I&#

Re: [NTG-context] Weird error when using \startformula inside lua

2021-09-12 Thread Sylvain Hubert via ntg-context
The problem also concerns \starttyping: \starttext . \startluacode context([[ \starttyping \stoptyping ]]) \stopluacode \stoptext tex error > runaway error: end of file encountered mtx-context | fatal error: return code: 256 % \starttext . \startluacode cont

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

2021-09-07 Thread Wolfgang Schuster via ntg-context
Sylvain Hubert schrieb am 07.09.2021 um 13:38: Thanks Wolfgang, this solves my problem. But now I'm wondering why \starttyping[before=,after=] cannot do the same job? Works here. \starttext Remove space below \starttyping[before=,after=] some code \stoptyping \stoptext Wol

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

[NTG-context] Remove vertical space around typing

2021-09-07 Thread Sylvain Hubert via ntg-context
Dear List, How should we remove the vertical space above and below the following typing? \starttext Remove space below \starttyping some code \stoptyping \stoptext Thanks! Best, Sylvain ___ If your question is of

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

2021-07-30 Thread Wolfgang Schuster via ntg-context
]},     after={\stoptextbackground\blank}] \starttext \starttyping example \stoptyping \stoptext \definetextbackground   [Code]   [frame=on,    framecolor=black,    corner=round,    radius=10pt,    topoffset=10pt,    leftoffset=5pt,    background=color,    backgroundcolor=gray,    location=paragraph

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
, 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 Styles of Typing

2021-07-29 Thread Hans Hagen via ntg-context
On 7/28/2021 10:12 PM, Wolfgang Schuster wrote: 2. Rather than adding a additional argument to \starttyping etc. provide a \startnamedtyping with a mandatory argument with the name of the instance. ok, but i do need to check the before/after wrt setup To save a few lines of code a flag (e.g

Re: [NTG-context] ligature exceptions

2021-07-28 Thread Hans Hagen via ntg-context
and %D just finished this off in case someone really needs it. \writestatus{loading}{ConTeXt Language Macros / Replacements} \unprotect \registerctxluafile{lang-rep}{autosuffix} \definesystemattribute[replacements][public,global] %D \startluacode %D %D -- todo: other nodes (prelude to more experim

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] Hand Style Sketching in Metapost

2021-05-20 Thread Aditya Mahajan
tdate, %D copyright={Aditya Mahajan}] %D This metapost module is inspired by a TeX.SE question: %D http://tex.stackexchange.com/q/39296/323 %D %D I thought that it would be fun to implement a similar feature in MetaPost. %D %D To use this package in MetaPost: %D %D \starttyping %Dinput mp-s

Re: [NTG-context] Fuzzy lines

2021-05-13 Thread Aditya Mahajan
le is inspired by a TeX.SE question: %D http://tex.stackexchange.com/q/39296/323 %D %D I thought that it would be fun to implement a similar feature in MetaPost. %D %D To use this package in MetaPost: %D %D \starttyping %Dinput mp-sketch; %D %Dbeginfig(1) %D sketchypaths; % Ma

Re: [NTG-context] Fuzzy lines

2021-05-13 Thread Aditya Mahajan
d by a TeX.SE question: %D http://tex.stackexchange.com/q/39296/323 %D %D I thought that it would be fun to implement a similar feature in MetaPost. %D %D To use this package in MetaPost: %D %D \starttyping %Dinput mp-sketch; %D %Dbeginfig(1) %D sketchypaths; % Make draw and fill s

Re: [NTG-context] [formatting verbatim text]

2021-04-26 Thread Hans Hagen
On 4/26/2021 12:23 PM, Floris van Manen wrote: \starttext \starttyping[escape=@]  1   137  26  25 >    1  69  32  2   @btex@bgroup@red@bf 137 @egroup@etex  26  25 >    1  69  32  3   @btex@bgroup@red@bf 137 @egroup@etex  26  25 >    1  69  32  4   137  26  25 >    1  69  32

Re: [NTG-context] [formatting verbatim text]

2021-04-26 Thread Floris van Manen
Aparently all spaces after @etex get reduced to one only. I'd expect that to happen inside @btex and @etex \starttext \starttyping[escape=@] 1 137 26 25 >1 69 32 2 @btex@bgroup@red@bf 137 @egroup@etex 26 25 >1 69 32 3 @btex@bgroup@red@bf 137 @egroup@etex

Re: [NTG-context] [formatting verbatim text]

2021-04-26 Thread Floris van Manen
On 26/04/2021 10:59, Hans Hagen wrote: \starttext \starttyping[escape=/] one two three four /btex/bgroup/red five /egroup/etex six seven eight nine \stoptyping \stoptext That works indeed! Thanks. Are there restriction on what context commands can be given inside the bgroup? e.g. I tried

Re: [NTG-context] [formatting verbatim text]

2021-04-26 Thread Hans Hagen
On 4/26/2021 10:25 AM, Floris van Manen wrote: What is the easiest way, if possible, to highlight some sections of verbatim text? given: \starttyping one two three four five six seven eight nine \stoptyping i'd like to color the word 'five' in red, or italic. \starttext \sta

[NTG-context] [formatting verbatim text]

2021-04-26 Thread Floris van Manen
What is the easiest way, if possible, to highlight some sections of verbatim text? given: \starttyping one two three four five six seven eight nine \stoptyping i'd like to color the word 'five' in red, or it

Re: [NTG-context] Typing within doifmode leads to error

2021-03-21 Thread Christoph Reller
> ... which means that you can use that at the context end as well > > (old feature). > > > Save the following as test.mkix (or add "% macros=mkix" as the > > first line): > > > > > > ``` &g

Re: [NTG-context] Typing within doifmode leads to error

2021-03-20 Thread Aditya Mahajan
ate, which is evaluated on the fly rather than when loading > > > > a > > > > file. > > > > > > define 'evaluated on the fly' > > > > Consider the following example: > > > > \enablemode[A] > > \starttext > &

Re: [NTG-context] Typing within doifmode leads to error

2021-03-20 Thread Hans Hagen
following example: \enablemode[A] \starttext \startluatemplate \starttyping A and not B \stoptyping \starttyping not (A and not B) \stoptyping \stopluatemplate \stoptext What I am thinking is that \startluatemplate ... \stopluatemplate grabs the content (like a buffer

Re: [NTG-context] Typing within doifmode leads to error

2021-03-20 Thread Aditya Mahajan
er the following example: \enablemode[A] \starttext \startluatemplate \starttyping A and not B \stoptyping \starttyping not (A and not B) \stoptyping \stopluatemplate \stoptext What I am thinking is that \startluatemplate ... \stopluatemplate grabs the content (like a buffer) and the

Re: [NTG-context] Typing within doifmode leads to error

2021-03-20 Thread Hans Hagen
(old feature). > Save the following as test.mkix (or add "% macros=mkix" as the first line): > > ``` > \starttext > > \starttyping > A and not B > \stoptyping > > \starttyping > no

Re: [NTG-context] Typing within doifmode leads to error

2021-03-20 Thread Aditya Mahajan
; ... which means that you can use that at the context end as well > > (old feature). > > > Save the following as test.mkix (or add "% macros=mkix" as the > > first line): > > > > > > ``` > > > \starttext >

Re: [NTG-context] Typing within doifmode leads to error

2021-03-20 Thread Hans Hagen
t;% macros=mkix" as the first line): > > ``` > \starttext > > \starttyping > A and not B > \stoptyping > > \starttyping > not (A and not B) > \stoptyping > > \stoptext a neat application! Th

Re: [NTG-context] Typing within doifmode leads to error

2021-03-20 Thread Christoph Reller
n > >> ... > >> end > > > > ... which means that you can use that at the context end as well (old > feature). > > Save the following as test.mkix (or add "% macros=mkix" as the first > line): > > > > ``` > > \starttext > >

Re: [NTG-context] Typing within doifmode leads to error

2021-03-20 Thread Hans Hagen
ing as test.mkix (or add "% macros=mkix" as the first line): ``` \starttext \starttyping A and not B \stoptyping \starttyping not (A and not B) \stoptyping \stoptext a neat application! Hans -

Re: [NTG-context] Typing within doifmode leads to error

2021-03-20 Thread Aditya Mahajan
d "% macros=mkix" as the first line): ``` \starttext \starttyping A and not B \stoptyping \starttyping not (A and not B) \stoptyping \stoptext ``` See the templates manual for more details: https://www.pragma-ade.c

Re: [NTG-context] Bib support broken in lmtx

2021-01-30 Thread Philipp A.
schrieb Philipp A. >: > >> Thank you, but whitespace is ignored in .bib file syntax. To prove that >> whitespace handling isn’t the bug, just try accessing it: >> >> \startluacode >> local current = publications.datasets.default >> tex.print('\\starttypi

Re: [NTG-context] Bib support broken in lmtx

2021-01-03 Thread Philipp A.
he bug, just try accessing it: > > \startluacode > local current = publications.datasets.default > tex.print('\\starttyping') > tex.print(table.serialize(current.luadata)) > -- to show that the key doesn’t contain weird invisible characters, I’ll > type

Re: [NTG-context] Bib support broken in lmtx

2020-12-26 Thread Philipp A.
Thank you, but whitespace is ignored in .bib file syntax. To prove that whitespace handling isn’t the bug, just try accessing it: \startluacode local current = publications.datasets.default tex.print('\\starttyping') tex.print(table.serialize(current.luadata)) -- to show that the k

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

2020-11-26 Thread Johann Birnick
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

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

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

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

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

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

2020-11-26 Thread Aditya Mahajan
; > > Aditya > > > > > For example, take: > > > > > > > > > > \definetextbackground[code][background=color, > > > > > backgroundcolor=lightgray, > > > > > frame=off, location=paragraph] > > > > > >

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

2020-11-26 Thread Johann Birnick
t; > > > a > > > > > > sidebar. No addition spacing / empty lines. > > > > > A MWE will help... > > > > > > > > > > Aditya > > > > For example, take: > > > > > > > > \definetextba

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

2020-11-26 Thread Wolfgang Schuster
? I just want a background to these and a sidebar. No addition spacing / empty lines. A MWE will help... Aditya For example, take: \definetextbackground[code][background=color, backgroundcolor=lightgray, frame=off, location=paragraph] \starttextbackground[code] \starttyping This is some code a

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

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

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

2020-11-26 Thread Wolfgang Schuster
... Aditya For example, take: \definetextbackground[code][background=color, backgroundcolor=lightgray, frame=off, location=paragraph] \starttextbackground[code] \starttyping This is some code a second line \stoptyping \stoptextbackground You missed the W (working) in MWE. \definetextbackground

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

2020-11-26 Thread Aditya Mahajan
> > > sidebar. No addition spacing / empty lines. > > > > A MWE will help... > > > > Aditya > > For example, take: > > \definetextbackground[code][background=color, backgroundcolor=lightgray, > frame=off, location=paragraph] >

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

2020-11-26 Thread Johann Birnick
> > Aditya For example, take: \definetextbackground[code][background=color, backgroundcolor=lightgray, frame=off, location=paragraph] \starttextbackground[code] \starttyping This is some code a second line \st

[NTG-context] extra warning in the lua version

2020-11-09 Thread Sylvain Hubert
text.startxtable() context.startxrow() context.startxcell() context.starttyping() context('1') context.stoptyping() context.stopxcell() context.stopxrow() context.stopxtable() \stopluacode % this does not \startxtable \startxrow \startxc

Re: [NTG-context] another error message in LMTX

2020-11-07 Thread Hans Hagen
\setuptagging[state=start] \starttext \starttyping mtxrunjit --generate \stoptyping \startitemize[n] \startitem a\stopitem \stopitemize \stoptext I have no idea why. because \doverbatimspace is defined in a way that will look ahead \unexpanded\def

Re: [NTG-context] another error message in LMTX

2020-11-07 Thread Pablo Rodriguez
ext \starttyping mtxrunjit --generate \stoptyping \startitemize[n] \startitem a\stopitem \stopitemize \stoptext I have no idea why. Many thanks for your help, Pablo > well, the clue is there: you have > > you have a \hskip or \vskip someplace that is not properly t

Re: [NTG-context] background of \typing fills column

2020-06-01 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 01.06.2020 um 20:22: Hi, I finally wanted to attack CG journal 2019 again and stumble upon this error: If an article contains several \starttyping ... \stoptyping examples with a textbackground, it sometimes fills the whole column (pagecolumns). It doesn’t occur

[NTG-context] background of \typing fills column

2020-06-01 Thread Henning Hraban Ramm
Hi, I finally wanted to attack CG journal 2019 again and stumble upon this error: If an article contains several \starttyping ... \stoptyping examples with a textbackground, it sometimes fills the whole column (pagecolumns). It doesn’t occur if the "typing" is at top or bottom of the

Re: [NTG-context] [pretty printing python]

2020-05-24 Thread Henning Hraban Ramm
> Am 24.05.2020 um 14:04 schrieb Floris van Manen : > > Does anyone know how to activate/use the pretty printing of python code? > > \starttyping[option=python] > > does not work. No, ConTeXt supports only TeX, XML, MetaPost and Lua. Try Aditya’s vim module: https

[NTG-context] [pretty printing python]

2020-05-24 Thread Floris van Manen
Does anyone know how to activate/use the pretty printing of python code? \starttyping[option=python] does not work. .Floris pEpkey.asc Description: application/pgp-keys ___ If your question is of interest to

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

2020-03-15 Thread Yves Cloutier
; > > Specifically the C example, however this does not seem to work. No > > formatting is applied to my keywords. > > Can you provide a minimal example what you have tried. > > > Just wondering if the way to do it has changed or if there are other > > examples I could look at to

Re: [NTG-context] Source Code with Bolded Keywords

2020-03-14 Thread Wolfgang Schuster
doing. \starttext \starttyping[escape=yes] This is /BTEX\bf formatted/ETEX text. \stoptyping \starttyping[escape={<<,>>}] This is <<\bf formatted>> text. \stoptyping \starttyping[escape={}] This is text. \st

  1   2   3   4   5   6   7   >