chuster via ntg-context
> wrote:
>
>
> > amano.kenji via ntg-context schrieb am 15.08.2022 um 14:00:
> >
> > > Is there any documentation about \ruby?
> >
> >
> > You can see all available parameters in setup-en.pdf, the example below
> > shows a few of
022 um 14:00:
>
> > Is there any documentation about \ruby?
>
>
> You can see all available parameters in setup-en.pdf, the example below
> shows a few of them:
>
> begin example
> \setupinterlinespace[line=4ex]
>
> \setuptype[style=\ttx]
>
> \st
amano.kenji via ntg-context schrieb am 15.08.2022 um 14:00:
Is there any documentation about \ruby?
You can see all available parameters in setup-en.pdf, the example below
shows a few of them:
begin example
\setupinterlinespace[line=4ex]
\setuptype[style=\ttx]
\starttext
\start
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
,
bottomspace=20mm]
\setuppagenumbering[
location={footer,center}]
\setuphead
[section]
[page={yes}]
\usetypescript[pagella]
\setupbodyfont[pagella,18pt]
\setupbodyfontenvironment[
28pt][ % For body
d=36pt, % For title
a=12pt, % For author & date
]
\setuptype[style=me
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
Dear list,
I have the following sample:
\setupinteraction[state=start]
\setupcomment[location=inmargin, color=darkred]
\showframe
\startbuffer[abc]
\input zapf
\stopbuffer
\setuptype[option=tex]
\starttext
\comment[space=yes,buffer=abc]{}
\type{\comment
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
I missing something?
are you sure that the font you use has the character
Many thanks for your reply, Hans.
The chars are there:
\setuptype[option=tex]
\starttext
\startTEXpage[offset=1em]
\type{\ ␣ \ á \ ñ}
% \type{\␣ \á \ñ}
{\ttbf \letterbackslash ␣ \letterb
missing something?
> are you sure that the font you use has the character
Many thanks for your reply, Hans.
The chars are there:
\setuptype[option=tex]
\starttext
\startTEXpage[offset=1em]
\type{\ ␣ \ á \ ñ}
% \type{\␣ \á \ñ}
{\ttbf \letterbackslash ␣ \l
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,
On 9/5/2017 11:20 PM, Pablo Rodriguez wrote:
On 09/05/2017 09:31 PM, Hans Hagen wrote:
On 9/5/2017 6:33 PM, Pablo Rodriguez wrote:
[...]
4. \setuptyping and \setuptype don’t work with the scite buffers.
well, it's a different (basically unrelated) mechanism that kicks in ...
one can'
On 09/05/2017 09:31 PM, Hans Hagen wrote:
> On 9/5/2017 6:33 PM, Pablo Rodriguez wrote:
>> [...]
>> 4. \setuptyping and \setuptype don’t work with the scite buffers.
> well, it's a different (basically unrelated) mechanism that kicks in ...
> one can't have i
hod is set to "none".
i'll look at it later
2. "\sciteinlinebuffer" adds always an extra blank space after it.
3. Method "none" treats spaces as linebreaks and removes "\".
4. \setuptyping and \setuptype don’t work with the scite buffers.
well, it
fer" adds always an extra blank space after it.
3. Method "none" treats spaces as linebreaks and removes "\".
4. \setuptyping and \setuptype don’t work with the scite buffers.
What am I doing wrong?
Many th
On 8/1/2017 9:12 PM, Pablo Rodriguez wrote:
On 08/01/2017 04:27 PM, Hans Hagen wrote:
On 7/31/2017 7:16 PM, Pablo Rodriguez wrote:
[...]
Would it be possible to have a new \typebufferinline that behaves such
as \type above (and has the same options in \setuptype)?
The most important part
On 08/01/2017 04:27 PM, Hans Hagen wrote:
> On 7/31/2017 7:16 PM, Pablo Rodriguez wrote:
>> [...]
>> Would it be possible to have a new \typebufferinline that behaves such
>> as \type above (and has the same options in \setuptype)?
>>
>> The most important part isn
Would it be possible to have a new \typebufferinline that behaves such
as \type above (and has the same options in \setuptype)?
The most important part isn’t the suppression of line breaks inside, but
avoiding the addition of line breaks after and before the typed buffer.
I have been reading buff
behaves such
as \type above (and has the same options in \setuptype)?
The most important part isn’t the suppression of line breaks inside, but
avoiding the addition of line breaks after and before the typed buffer.
I have been reading buff-ver.mkiv, but I’m afraid I cannot contribute
such a patch
ng and size of the symbols.
That is apparently not only usefull for narrower text in long lists,
but has a usefullness in other cases too.
Why should I have to use other mechanisms in order to get similar
appearance than just through a symmetry between \setuptype and
setuptyping?
\setuptyping
On 24 Feb 2016, at 13:37, Wolfgang Schuster
mailto:schuster.wolfg...@gmail.com>> wrote:
Meer, Hans van der<mailto:h.vanderm...@uva.nl>
24. Februar 2016 um 13:25
Why does \setuptyping has a parameter bodyfont= and is \setuptype missing it?
I am asking because in typesetting with
Meer, Hans van der <mailto:h.vanderm...@uva.nl>
24. Februar 2016 um 13:25
Why does \setuptyping has a parameter bodyfont= and is \setuptype
missing it?
I am asking because in typesetting with
\setuptype[style=small]\type{something}
I get another font and size than with
\setuptyping[bo
Why does \setuptyping has a parameter bodyfont= and is \setuptype missing it?
I am asking because in typesetting with
\setuptype[style=small]\type{something}
I get another font and size than with
\setuptyping[bodyfont=small]\starttyping ... \stoptyping
whereas in both the same is wanted in
On 04/14/2015 09:16 PM, Wolfgang Schuster wrote:
>> Am 14.04.2015 um 20:30 schrieb Pablo Rodriguez:
>> [...]
>> \definetype[TeXcode][option=TEX]
>> [...]
>> With beta from 2015.04.14 19:03, there is no color, no bold font or
>> monospace typeface.
>>
>> I’m afraid it may be a bug.
>
> Make the fo
> Am 14.04.2015 um 20:30 schrieb Pablo Rodriguez :
>
> Hans,
>
> I have this sample:
>
> \definetype[TeXcode][option=TEX]
> \starttext
> \TeXcode{\ConTeXt}
> \stoptext
>
> With beta from 2015.04.14 19:03, there is no color, no bold font or
> monospace typeface.
>
> I’m afraid it may be a
Hans,
I have this sample:
\definetype[TeXcode][option=TEX]
\starttext
\TeXcode{\ConTeXt}
\stoptext
With beta from 2015.04.14 19:03, there is no color, no bold font or
monospace typeface.
I’m afraid it may be a bug.
Many thanks for your help,
Pablo
--
http://www.ousia.tk
On 02/02/2014 07:16 PM, Wolfgang Schuster wrote:
> Am 02.02.2014 um 19:12 schrieb Pablo Rodriguez :
>> I would like to use \tex{visiblespace} which is actually character
>> u2420.
>> [...]
>
> \setuptype [space=on]
> \setuptyping[space=on]
>
> \starttext
>
Am 02.02.2014 um 19:12 schrieb Pablo Rodriguez :
> Dear list,
>
> I would like to use \tex{visiblespace} which is actually character. c.
>
> \starttext
> \tex{\u2420}
> \stoptext
>
> Above is the way I tried to implement, but it doesn’t make sense.
>
> How c
On 10/5/2013 8:21 PM, Pablo Rodríguez wrote:
Dear list,
I would like to have \tex using [option=TEX]. But I cannot get it
working, even if I setup \type to [option=TEX].
Here you have the minimal sample:
\setuptype[option=TEX]
\starttext
\type{\ConTeXt} comes from \tex{TeX
Dear list,
I would like to have \tex using [option=TEX]. But I cannot get it
working, even if I setup \type to [option=TEX].
Here you have the minimal sample:
\setuptype[option=TEX]
\starttext
\type{\ConTeXt} comes from \tex{TeX}.
\stoptext
How can I have \tex with colored
On Wed, Aug 31 2011, Wolfgang Schuster wrote:
> \setuptype[style=mono] % default: “style=\tt\tf”
Oh, I was so convinced, that the default was "\tt", that I did not even
test it, sorry!
But what is the sense of the \tf?
What is the advantage over default=\tt?
--
Am 30.08.2011 um 16:29 schrieb Peter Münster:
> Hello,
>
> When the current font-switch is bold, I would like the verbatim text
> inside \type{} to respect the bold mode. What is the right way to teach
> \type{} to automatically use bold or not?
\setuptype[style=mono] % default
}%
#2}}
\setupcaptions[width=14cm,align=right]
\setMPtext{text}{some test text}
\startusableMPgraphic{text}
picture r ;
r := image ( graphictext
\MPstring{text}
randomized .4pt
scaled 6pt
withfillcolor .8\MPcolor{maincolor}
withpen pencircle scaled 1pt ; ) ;
draw
ctext
\MPstring{text}
randomized .4pt
scaled 6pt
withfillcolor .8\MPcolor{maincolor}
withpen pencircle scaled 1pt ; ) ;
draw r ;
\stopusableMPgraphic
\setuptype
[\c!option=\v!slanted]
\setuptyping
[\c!option=\v!slanted]
\setuplist
[\v!section]
[\c!width=3em]
\de
>
> \setuppapersize[A4][A4]
>
> \starttext
>\setuptype[space=stretch]
>%\setupalign[stretch]
>%\setuptolerance[stretch]
>\type{cp $SOMEVAR/some/very/very/very/long/directory/WITHFILE
> $SOMEVAR/other/long/directory}
>\starti
Hi,
I stumbled across the same problem that was discussed earlier this
month: \type doesn't break, even if there are opportunities. I tried
to follow the suggestions given in that thread, but with no success:
\setuppapersize[A4][A4]
\starttext
\setuptype[space=st
Am 03.05.2011 um 01:26 schrieb Aditya Mahajan:
>> You can also put the text in a \hbox with “\setuptype[command=\hbox]”.
>> The command key from \setuptype is special because it accepts only
>> box commands (\hbox, \vbox, \framed …).
>
> I don't see why that is the
if it hyphenates or not, that can require a
lot oftyping phew}.
\stoptext
You can get a better result with “\setuptype[space=stretch]” but only the
“stretch”
keyword for \setupalign/\setuptolerance prevents a overfull line in your
example.
Thanks. I was looking for space=stretch (I did not
ne to see if it hyphenates or not, that can require
> a lot oftyping phew}.
> \stoptext
You can get a better result with “\setuptype[space=stretch]” but only the
“stretch”
keyword for \setupalign/\setuptolerance prevents a overfull line in your
example.
> Also, it is possible t
> \setuptyping[before=\framed]
>
> You can try to convince Hans to add a command key to \setuptype, untill
> then you can use this:
>
> \unexpanded\def\mytype{\groupedcommand{\setgroupedtype\inframed}{\relax}}
>
> \starttext
> one \mytype{\two} three
> \stoptext
T
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
most of my environments:
\setuptype[style={\setcharacterspacing[reset]\tt}]
\setuptyping[style={\setcharacterspacing[reset]\tt}]
\setupinteraction[style={\setcharacterspacing[reset]\tt}]
\appendtoks
\setcharacterspacing[reset]%
\to \everyinitializeverbatim
but maybe all such features shou
Hi Peter,
Many thanks for your hint: indeed you had the solution!
Best regards: OK
On 22 juin 2010, at 19:18, Peter Münster wrote:
>
> Hello,
>
> I don't know, but I have these line in most of my environments:
>
> \setuptype[style={\setcharacterspacing[reset]\tt
On Tue, Jun 22 2010, Otared Kavian wrote:
> I noticed that the mkiv command
> \setcharacterspacing[frenchpunctuation]
> influences even the \type environment: is this behavior wanted or is it a
> side effect?
Hello,
I don't know, but I have these line in most of my environm
{\symbol[dash]}]
\definesymbol [2] [\periodcentered]
\setupitemize [each] [packed]
\setupitemize [1] [packed,autointro] [margin=1em]
%D We change \type|\type| so that the argument inside \type|\type| is pretty
%D printed using \TEX's patterns. Another command \type|\normaltype| can be
%D us
Peter Münster wrote:
On Mon, 20 Jul 2009, Hans Hagen wrote:
Feature request:
\setuptype[before=..., after=...]
well, not before/after then but left/right
No problem, left/right is nice!
i'll put in on the todo list as it's non trivial where to hook in that
On Mon, 20 Jul 2009, Hans Hagen wrote:
> > Feature request:
> > \setuptype[before=..., after=...]
>
> well, not before/after then but left/right
No problem, left/right is nice!
Cheers, Peter
--
Contact information: http://pm
Peter Münster wrote:
Hello,
The style command of \setuptype is executed 2 times:
\setuptype[style=X]
\starttext
\type{bla}
\stoptext
hm, i'll look at it
Feature request:
\setuptype[before=..., after=...]
well, not before/after then but left/
Am 20.07.2009 um 16:33 schrieb Peter Münster:
Hello,
The style command of \setuptype is executed 2 times:
\setuptype[style=X]
\starttext
\type{bla}
\stoptext
Feature request:
\setuptype[before=..., after=...]
You mean left and right, before and after should be kept for
environments only
Hello,
The style command of \setuptype is executed 2 times:
\setuptype[style=X]
\starttext
\type{bla}
\stoptext
Feature request:
\setuptype[before=..., after=...]
(today I use this workaround: \setuptype[style=\groupedcommand{...}{...}] )
Cheers, Peter
--
Contact information: http
can be use for the
>> excepts.
>
> There is already "\setcharacterspacing[reset]", but it does not work:
> ERROR: Missing number, treated as zero.
>
> Until a bug-fix, you can use "\doresetattribute{spacing}".
>
> I use for example
> \setuptypin
There is already "\setcharacterspacing[reset]", but it does not work:
ERROR: Missing number, treated as zero.
Until a bug-fix, you can use "\doresetattribute{spacing}".
I use for example
\setuptyping[style=\doresetattribute{spacing}\tt]
\setuptype[style=\doresetattribute{spacin
gt;
> Right. They will fix default in muse and use \type{_} as value for
> underscore.
No, the default should either be \_ or \letterunderscore{} (with the
brackets). \type{_} will be influenced by \setuptype (or \setuptyping) and
can give colored output also.
Aditya
[name][options]
\setupthinrules[options]
\setuptolerance[options]
\setuptop[text|margin|edge][options]
\setuptoptexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber]
\setuptype[options]
\setuptyping[file|typing|name][options]
\setupunderbar[options]
\setupurl[options]
to {\tt }.
That's strange, because \type is advertised as for in-line text.
I hesistate however to make this change, because I hav used
\setuptype to get uniform behaviour over the whole document.
Is there someone who has an idea what might causing the difference?
Aha, salvation!
Remembered th
rtised as for in-line text.
I hesistate however to make this change, because I hav used
\setuptype to get uniform behaviour over the whole document.
Is there someone who has an idea what might causing the difference?
Hans van der Meer
___
ntg-context mailin
\def\mksetupprettytype{\getvalue{setuppretty\prettyidentifier type}}}
{\let\mksetupprettytype\relax}}
% not that fast but catches \type{\command} % nothing more after \command
%
% \setupcolors[state=start]
% \setuptype[option=TEX]
% \setupcolors[textcolor=red]
%
% The options \t
type#1% was \dotype
>{\bgroup
> \verbatimfont%<--Added
> \resumecoloraftergroup % a problem is that we can still be in color
> mode, tricky hack
> \strut % new, enables leading space in \type { abc } at par start
> \let\currenttypingclass\??ty
s leading space in \type { abc } at par start
\let\currenttypingclass\??ty
\edef\currenttyping{#1}%
\catcode`\<=\@@other
\catcode`\>=\@@other
\futurelet\next\dodotype}
\protect
\setuptype[option=TEX]
\definetype[typeTEX][option=tex]
owtt it should be :
\definetyping[n\v!typing] \setuptyping[n\v!typing][style=\narrowtt]
\definetype [n\v!type] \setuptype [n\v!type] [style=\narrowtt]
anyhow, as i happen to use m-narrow last night (for an a
gt;>>>
>>>>> Hi,
>>>>>
>>>>> How can I define a command that is the inline version of \startTEX ...
>>>>> \stopTEX. (I need to show inline commands in color).
>>>>>
>>>> \setupcolors[st
hat is the inline version of \startTEX ...
> >>> \stopTEX. (I need to show inline commands in color).
> >>
> >> \setupcolors[state=start]
> >>
> >> \setuptype[option=TEX]
> >>
> >> \definetype[typeTEX][option=tex]
> >>
>
gt; http://wiki.contextgarden.net/Verbatim_text#In-line_text
>>>
>>> However, due to the recent changes in verbatim code, that solution no
>>> longer works. Can anyone suggest how to fix it?
>>>
>> \setupcolors[state=start]
>>
>> \setuptype[optio
anges in verbatim code, that solution no
>> longer works. Can anyone suggest how to fix it?
>>
> \setupcolors[state=start]
>
> \setuptype[option=TEX]
>
> \definetype[typeTEX][option=tex]
>
> \starttext
>
> \type+\type{\type is a wonderful macro}+, isn't it
textgarden.net/thread/20050907.093522.baf795f5.en.html
>
> which is also posted on the wiki.
>
>
> http://wiki.contextgarden.net/Verbatim_text#In-line_text
>
> However, due to the recent changes in verbatim code, that solution no
> longer works. Can anyone suggest how to fix it?
>
\normalactiveegroup}%
\def\activeleftargument%
[\bgroup
\let}\activerightargument
\normalactivebgroup
]%
\def\activerightargument%
[\normalactiveegroup
\egroup]%
\let{=\activeleftargument
\let}=\egroup
]
\egroup
\protect
works ok for
\setupcolors[state=start]
\setuptype[option
Mojca Miklavec wrote:
> But, I finally understand why I was confused yesterday.
>
> \setupcolors[state=start]
> \setuptype[option=TEX]
> \type{\a}
>
> does nothing (and this was what I first tried and thought that this is
> not supported yet; non-existin
\egroup }
Thank you, this works better (not that I understand what it does ;)
But, I finally understand why I was confused yesterday.
\setupcolors[state=start]
\setuptype[option=TEX]
\type{\a}
does nothing (and this was what I first tried and thought that this is
not supported ye
Hi,
is there a way to use a custom verbatim inside a tabulate environment?
See the problem:
\starttext
\definetype
[esctype]
\setuptype
[esctype]
[option=commands,[EMAIL PROTECTED]
\def\currenttex{3.141592}
\def\currentpdftex{1.21b}
It works here:
\esctype {This is pdfeTeX, Version
s}%
\def>{\futurelet\next\domore}}
\egroup
\protect
\startTEXpage
normal: \par \type{xx<<..xx..<> >>..>>xx} \par \type<<>> \par
\type<<..<>..>> \par
normal: \par \type{xx<..xx.. >..>xx} \par \type{<>} \par
\type{<.
e a switch to use metapost or whatever appropriate highlighting?
> >
> > \setuptyping[tab=on] % or off
>
> That does not work here. Example file:
>
> \starttext
> \startbuffer[ex]
> draw unitsquare scaled 1cm;
> \stopbuffer
> % \se
t work here. Example file:
\starttext
\startbuffer[ex]
draw unitsquare scaled 1cm;
\stopbuffer
% \setuptype[tab=on]
% \setuptype[tab=off]
% \setuptyping[tab=on]
\setuptyping[tab=off]
\typebuffer[ex]
\stoptext
None of the \setuptyp*
78 matches
Mail list logo