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
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 "
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
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
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:
s standard tags.
Using the scite module removes the three issues (XML comment chars are
in a different color, both from comment content and from any other
element). But the scite module doesn’t allow the options \setuptyping has.
Would it be possible that whole comments may be formatted in the same
On 08/30/2017 02:50 AM, Aditya Mahajan wrote:
> On Tue, 29 Aug 2017, Hans Hagen wrote:
>> On 8/29/2017 9:02 PM, Pablo Rodriguez wrote:
>>> [...]
>>> In that case, what enables [lines=yes] in \setuptyping?
>> linebreaks
>
> There is only a subtle differenc
On 08/29/2017 11:28 PM, Hans Hagen wrote:
> On 8/29/2017 9:02 PM, Pablo Rodriguez wrote:
>> [...]
>> In that case, what enables [lines=yes] in \setuptyping?
> linebreaks
Many thanks for your reply, Hans.
I’m afraid this isn’t what I get in the following sample:
lines in the sample above?
empty lines are always collapsed
Many thanks for your reply, Hans.
In that case, what enables [lines=yes] in \setuptyping?
linebreaks
There is only a subtle difference between the two:
\setuppapersize[A6]
\showframe
\starttext
\starttyping[lines=no]
Here is some text
always collapsed
Many thanks for your reply, Hans.
In that case, what enables [lines=yes] in \setuptyping?
linebreaks
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH
es are always collapsed
Many thanks for your reply, Hans.
In that case, what enables [lines=yes] in \setuptyping?
I need this to provide a sample in a ConTeXt introduction of empty lines
collapse in ConTeXt.
Many thanks for your
On 8/29/2017 4:43 PM, Pablo Rodriguez wrote:
Dear list,
I have the following sample:
\setuptyping[TEX][lines=yes]
\starttext
\startTEX
code
one line before
two lines before
three lines before
\stopTEX
\stoptext
I thought the lines key should
Dear list,
I have the following sample:
\setuptyping[TEX][lines=yes]
\starttext
\startTEX
code
one line before
two lines before
three lines before
\stopTEX
\stoptext
I thought the lines key should display multiple lines when they are in
the code.
How
Dear list,
I have the following sample:
\setuptyping[TEX][lines=no]
\definetyping[TEXlines][lines=yes, option=TEX]
\starttext
\startxtable[frame=off,option=stretch]\startxrow
\startxcell\startTEX
\starttext
Esto
es un
único párrafo.
Y aquí está el
On 10/23/2013 12:28 PM, Wolfgang Schuster wrote:
> Am 22.10.2013 um 19:47 schrieb Pablo Rodriguez :
>
>> Dear list,
>>
>> the following sample:
>>
>> \showframe
>> \setuppapersize[S6]
>> \setuptyping[option=TEX,lines=yes]
>
> You can use t
Am 22.10.2013 um 19:47 schrieb Pablo Rodriguez :
> Dear list,
>
> the following sample:
>
> \showframe
> \setuppapersize[S6]
> \setuptyping[option=TEX,lines=yes]
You can use this setup for the moment:
\setuptyping[option=TEX,align={ri
Dear list,
the following sample:
\showframe
\setuppapersize[S6]
\setuptyping[option=TEX,lines=yes]
\starttext
\starttyping
\startvariante[MRU]{{\em om} X}En un lugar de la Mancha, de cuyo nombre
no quiero acordarme, no ha mucho tiempo que vivía un hidalgo de los de
lanza en astillero, adarga
... Thanks, it works now. (I've been using \setuptyping before and it used to
work.)
Lukas
On Thu, 13 Jan 2011 11:58:28 +0100, Wolfgang Schuster
wrote:
Am 13.01.2011 um 11:35 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
You need \definetyping[Model][...].
Wolfgang
--
Ing.
Am 13.01.2011 um 11:35 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
> Hello,
>
> I encountered another problem with \typefile. This code crashes:
>
> ---
> \setuptyping[Model][bodyfont=6pt,style=\tt\setupinterlinespace]
You need \definetyping[Mode
Hello,
I encountered another problem with \typefile. This code crashes:
---
\setuptyping[Model][bodyfont=6pt,style=\tt\setupinterlinespace]
\starttext
\typefile[Model]{t2.txt} %{t.u8}
%\startluacode context.typefile({"Model"}, "t.u8")\stopluacode
\stoptext
---
Although
On Fri, Dec 03, 2010 at 03:36:14PM +0100, Wolfgang Schuster wrote:
>
> Am 03.12.2010 um 10:32 schrieb Khaled Hosny:
>
> > Is there a way to setup insertion of some stuff before/after \type{},
> > tried \setuptyping but only works for \start/stoptyping.
> >
>
On Sat, Dec 04, 2010 at 06:41:37PM +0100, Hans Hagen wrote:
> On 3-12-2010 10:32, Khaled Hosny wrote:
> >Is there a way to setup insertion of some stuff before/after \type{},
> >tried \setuptyping but only works for \start/stoptyping.
> >
> >\setuptyping[before=\framed]
On 3-12-2010 10:32, Khaled Hosny wrote:
Is there a way to setup insertion of some stuff before/after \type{},
tried \setuptyping but only works for \start/stoptyping.
\setuptyping[before=\framed]
\starttext
\type{aa}
\starttyping
aa
\stoptyping
\stoptext
the next beta will have:
\starttext
On 3-12-2010 10:32, Khaled Hosny wrote:
Is there a way to setup insertion of some stuff before/after \type{},
tried \setuptyping but only works for \start/stoptyping.
\setuptyping[before=\framed]
\starttext
\type{aa}
\starttyping
aa
\stoptyping
\stoptext
that would be 'left'
Am 03.12.2010 um 10:32 schrieb Khaled Hosny:
> Is there a way to setup insertion of some stuff before/after \type{},
> tried \setuptyping but only works for \start/stoptyping.
>
> \setuptyping[before=\framed]
You can try to convince Hans to add a command key to \setuptype, untill
Is there a way to setup insertion of some stuff before/after \type{},
tried \setuptyping but only works for \start/stoptyping.
\setuptyping[before=\framed]
\starttext
\type{aa}
\starttyping
aa
\stoptyping
\stoptext
Regards,
Khaled
--
Khaled Hosny
Arabic localiser and member of
... Much better, thanks!
Lukas
On Wed, 01 Dec 2010 17:00:59 +0100, Wolfgang Schuster
wrote:
\definetyping[default][bodyfont=8pt]
--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4
Tel: +420 244
Am 01.12.2010 um 16:53 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
> ... Still the same error with the latest beta.
Replace your \setuptyping with:
\definetyping[default][bodyfont=8pt]
Wolfgang
___
If y
... Still the same error with the latest beta.
Lukas
On Wed, 01 Dec 2010 15:47:31 +0100, Procházka Lukáš Ing. - Pontex s. r. o.
wrote:
Hello Hans -
On Wed, 01 Dec 2010 15:32:05 +0100, Hans Hagen wrote:
I'm trying to \setuptyping to use a 8pt font size [of a tt typeface].
\setupt
Hello Hans -
On Wed, 01 Dec 2010 15:32:05 +0100, Hans Hagen wrote:
I'm trying to \setuptyping to use a 8pt font size [of a tt typeface].
\setuptyping ... bodyfont=8pt
- Did you test it?
--- t2.mkiv
\enableregime[cp1250]
\setuptyping[default][bodyfont=8pt] % As you advised
\star
On 1-12-2010 10:50, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
Hello,
I'm trying to \setuptyping to use a 8pt font size [of a tt typeface].
\setuptyping ... bodyfont=8pt
-
Hans
Hello,
I'm trying to \setuptyping to use a 8pt font size [of a tt typeface].
Here are my trials - in several cases I get the wanted result but with error
messages:
--- t.mkiv
\enableregime[cp1250]
%\setuptyping[default][style=\ttxx\setupinterlinespace] % This works somehow
but with e
On Wed, Aug 25 2010, Hans Hagen wrote:
> \definetyping[LUA]
> \setuptyping[LUA][option=LUA,escape={/btex,/etex}]
>
> Hopefully you wikify this
Hello Hans,
I don't know what to wikify, because I don't understand what is supposed to
work and what is not. Here anothe
On 25-8-2010 3:04, Peter Münster wrote:
The "escape=//" option is ignored here:
\setuptyping[option=LUA, escape=//]
\starttext
\starttyping
bla // \em sometex
\stoptyping
\stoptext
What could be done, to make it work?
\definetyping[LUA]
\setuptyping[LUA][option=LUA,escape={/
Hello,
The "escape=//" option is ignored here:
\setuptyping[option=LUA, escape=//]
\starttext
\starttyping
bla // \em sometex
\stoptyping
\stoptext
What could be done, to make it work?
TIA for any help!
Peter
--
Contact information: http://pmrb.free.
On 10-5-2010 12:04, Peter Münster wrote:
Hello,
The length of the tab is always 7:
% one tab before each "bla":
\setuptyping[tab=2]
\starttext
\starttyping
12345678901234567890
bla bla
\stoptyping
\setuptyping[tab=4]
\starttyping
12345678901234567890
bla bla
\
Hello,
The length of the tab is always 7:
% one tab before each "bla":
\setuptyping[tab=2]
\starttext
\starttyping
12345678901234567890
bla bla
\stoptyping
\setuptyping[tab=4]
\starttyping
12345678901234567890
bla bla
\stoptyping
\stoptext
Cheers, Peter
-
$ context --version
MTXrun | current version: 2010.04.16 21:08
$ luatex --version
This is LuaTeX, Version beta-0.60.0-2010040422
I found that \setuptyping[numbering=line] no longer produces line
numbers any more. So are there something changed, or just it's ought to
On Sat, 22 Aug 2009, Hans Hagen wrote:
Aditya Mahajan wrote:
Hi,
If I set option to empty in setuptyping, the output of \starttyping
stoptyping is colored.
\setuptyping[option=]
\starttext
\starttyping
% This is a test
\stoptyping
\stoptext
This works fine in MKII, but in MKIV the % is
Aditya Mahajan wrote:
Hi,
If I set option to empty in setuptyping, the output of \starttyping
stoptyping is colored.
\setuptyping[option=]
\starttext
\starttyping
% This is a test
\stoptyping
\stoptext
This works fine in MKII, but in MKIV the % is colored. The color goes
away if I set
Hi,
If I set option to empty in setuptyping, the output of \starttyping
stoptyping is colored.
\setuptyping[option=]
\starttext
\starttyping
% This is a test
\stoptyping
\stoptext
This works fine in MKII, but in MKIV the % is colored. The color goes away
if I set option=none. I think this
Hello,
Something like \setuptyping[ignorefirstspace=yes] would be nice, to be able
to format the source text with indentation but let the typing environment
ignore this indentation.
Example:
\setupcolors[state=start]
\setuptyping[margin=3em, ignorefirstspace=yes]
\starttext
This:
\starttyping
not used palets before, so I do not know if something has
> broken or not. With your code, I do not get any colors. However, if I
> change
>
>
>>\setuptyping
>> [TEX]
>> [palet=MYcolorpretty]
>
> with
>
> \definepalet[TEXcolorpretty][MYcolorpretty]
>
&
ith your code, I do not get any colors. However, if I
change
> \setuptyping
> [TEX]
> [palet=MYcolorpretty]
with
\definepalet[TEXcolorpretty][MYcolorpretty]
it works.
Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
tytwo=colorprettytwo,
prettythree=colorprettythree,
prettyfour=colorprettyfour]
\setuptyping
[TEX]
[palet=MYcolorpretty]
\starttext
\startTEX
\this \is \a \test
\stopTEX
\stoptext
- --
As you will see, there are no colors anymore.
Aditya Mahajan wrote:
> core-ver.tex to suggest such a behaviour. Is this a bug or a feature?
Feature, I think. Use of color is the default behavior when
colors are enabled.
Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.n
Conisder
\setupcolors[state=start]
\setuptyping[option=anything] %Any value that is not a valid option
% none, color, normal, commands, slanted
\starttext
\startbuffer
$\sum_{i=1}^n \frac{1}{2} n \cdot (n+1)$
\stopbuffer
\typebuffer
\stoptext
The text is typed in
Taco Hoekwater wrote:
> Hans van der Meer wrote:
>> I get some unexpected results with setuptyping.
>> According to the manual the style-parameter has options normal,
>> bold, small, etc.
>
> AFAICS, this has not worked in a very very long time, and it may
> even
Taco Hoekwater wrote:
> Hans van der Meer wrote:
>> I get some unexpected results with setuptyping.
>> According to the manual the style-parameter has options normal,
>> bold, small, etc.
>
> AFAICS, this has not worked in a very very long time, and it may
> even
turn away
from context, which would be a pity. So if you don't mind, I will
continue to signal such things. Keeps you busy :-)
yours sincerely,
dr. H. van der Meer
On Jan 28, 2006, at 12:23, Taco Hoekwater wrote:
> Hans van der Meer wrote:
>> I get some unexpected results wi
On 1/27/06, Hans van der Meer <[EMAIL PROTECTED]> wrote:
> I get some unexpected results with setuptyping.
> According to the manual the style-parameter has options normal, bold,
> small, etc.
> But if I use them I get the option back.
> The only thing that seems to
Hans van der Meer wrote:
I get some unexpected results with setuptyping.
According to the manual the style-parameter has options normal, bold,
small, etc.
AFAICS, this has not worked in a very very long time, and it may
even be a bug in the documentation. But it was easy to fix the code,
so
Hans van der Meer wrote:
> I get some unexpected results with setuptyping.
> According to the manual the style-parameter has options normal, bold,
> small, etc.
> But if I use them I get the option back.
> The only thing that seems to work is style=command.
>
> Example:
I get some unexpected results with setuptyping.
According to the manual the style-parameter has options normal, bold,
small, etc.
But if I use them I get the option back.
The only thing that seems to work is style=command.
Example:
\setuptyping[style=bold]
\starttext
\starttyping
abcd
Jean-Pierre Le Narzul <[EMAIL PROTECTED]> writes:
Hello,
> Thanks for your explanation.
> I understand the problem now !
>
> But unfortunately, the example you provide is not working for me.
> The pdf file displays the wrong characters for both \starttyping
> \stoptyping ...
Perhaps you don't ha
hatever encoding.
See for example latin-modern:
======
\starttext
\setuptyping[typing][color=black,style=\ss,escape=/,option=commands]
\starttyping
hello_world {brace}
\stoptyping
\setupencoding [default=ec]
\usetypescript [all] [latin-modern] [
xample latin-modern:
==
\starttext
\setuptyping[typing][color=black,style=\ss,escape=/,option=commands]
\starttyping
hello_world {brace}
\stoptyping
\setupencoding [default=ec]
\usetypescript [all] [latin-modern] [\defaultencoding]%
\setupbodyfont[reset]%
\setupbodyfont[cmr]%
\starttyping
Hi,
For typing Java code in a context document, I use \starttyping ...
\stoptyping.
I have a problem when I configure \setuptyping in the following way :
\setuptyping[typing][color=black,style=\ss,escape=/,option=commands]
If I put characters like { or _ in my source (between \starttyping and
Hi,
In document I have: \setupinterlinespace[medium]
and I would like to have different interline space when I use:
\starttyping
...
\stoptyping
I tried:
\setuptyping [typing] [blank=each_possible_value_from_manual] ;)
but there is no effect. What is wrong ?...
--
Best regards
Martin
67 matches
Mail list logo