b c}
> >
> > The naive way doesn't work because it makes all the spaces collapse:
> >
> > \define[1]\same{#1}
>
>
> \definetype [typeTEX] [option=tex]
>
> \starttext
>
> \type{
:
\define[1]\same{#1}
\definetype [typeTEX] [option=tex]
\starttext
\type{\startsection[title=\tex{type}]}
\typeTEX{\startsection[title=\tex{typeTEX}]}
\stoptext
Wolfgang
___
If your question is of interest to others
On Tue, Sep 1, 2020 at 10:50 AM Christoph Reller
wrote:
> I am using ConTeXt LMTX 2020.08.28 13:58 with the following M(N)WE:
>
> \definetype[typeLUA][option=LUA]
> \setbreakpoints[compound]
> \starttext
> \typeLUA{function(argument)}
> \stoptext
>
> Sadly, it d
Dear List,
I am using ConTeXt LMTX 2020.08.28 13:58 with the following M(N)WE:
\definetype[typeLUA][option=LUA]
\setbreakpoints[compound]
\starttext
\typeLUA{function(argument)}
\stoptext
Sadly, it does not compile. The problem seems to be the simultaneous use of
compound breakpoints
), in the TABLE
the extra space is displayed after the command.
Is it ok?
How could I suppress the extra space?
\definetype[mytype][type][compact=absolute]
\mytype{6\az 12\bz{123}}
\bTABLE
\bTR\bTD\mytype{6\az12\bz{12}}\eTD\eTR
\eTABLE
\stoptext
but it doesn't look at numbers. I can send you a patch
Pablo Rodriguez schrieb am 14.10.18 um 20:38:
Dear list,
I have the following sample:
\define[1]\slide{\startmakeup[standard]#1\stopmakeup}
\definetype[texcode][style=\ttd, option=TEX]
\starttext
\slide{\texcode{\ifodd\pageno impar\else par\fi}}
\startmakeup
Dear list,
I have the following sample:
\define[1]\slide{\startmakeup[standard]#1\stopmakeup}
\definetype[texcode][style=\ttd, option=TEX]
\starttext
\slide{\texcode{\ifodd\pageno impar\else par\fi}}
\startmakeup[standard]
\texcode{\ifodd\pageno impar\else par\fi
:16 AM, Pablo Rodriguez <oi...@gmx.es> wrote:
>
> On 12/21/2017 05:04 PM, Christoph Reller wrote:
>> Dear Pablo,
>>
>> At least for XML you could use my module highlight-xml:
>>
>> \usemodule[highlight-xml]
>> \definetype[xml][option=xml]
>> [
On Thu, 21 Dec 2017 21:16:45 +0100, Pablo Rodriguez <oi...@gmx.es> wrote:
> On 12/21/2017 05:04 PM, Christoph Reller wrote:
>> Dear Pablo,
>>
>> At least for XML you could use my module highlight-xml:
>>
>> \usemodule[highlight-xml]
>> \definetyp
On 12/21/2017 05:04 PM, Christoph Reller wrote:
> Dear Pablo,
>
> At least for XML you could use my module highlight-xml:
>
> \usemodule[highlight-xml]
> \definetype[xml][option=xml]
> [...]
> Note that even partial XML is highlighted correctly.
Dear Christoph,
many than
On Tue, Mon, 18 Dec 2017 23:50:09 +0100, Pablo Rodriguez <oi...@gmx.es> wrote:
> I have the following sample:
>
> \definetype[context][option=tex]
> \definetype[lua][option=lua]
> \starttext
> \startTEXpage[offset=2em]
>
> a \TEX\ inline comment:
On 12/18/2017 11:50 PM, Pablo Rodriguez wrote:
Hans,
sorry for insisting, but I really need this.
I have the following sample:
\definetype[context][option=tex]
\definetype[lua][option=lua]
\starttext
\startTEXpage[offset=2em]
a \TEX\ inline comment: \context{ag%befe
On Mon, 18 Dec 2017, Pablo Rodriguez wrote:
\definetype[context][option=tex]
\definetype[lua][option=lua]
\starttext
\startTEXpage[offset=2em]
a \TEX\ inline comment: \context{ag%befe}
\Lua\ inline comment: \lua{agb --efe}
\startTEX
This is text. % a comment
Hans,
sorry for insisting, but I really need this.
I have the following sample:
\definetype[context][option=tex]
\definetype[lua][option=lua]
\starttext
\startTEXpage[offset=2em]
a \TEX\ inline comment: \context{ag%befe}
\Lua\ inline comment: \lua{agb --efe
Hans,
many thanks for having added \xmlprettyprinttext to ConTeXt.
I have now another problem with inline code:
\definetype[TeX][option=TEX, lines=hyphenated]
\starttext
\startTEXpage[offset=1em]
This is inline code: \TeX{\command[option=value]{final text}}
\startXML
Inline code: \TeX[option
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 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 following change
Am 14.04.2015 um 20:30 schrieb Pablo Rodriguez oi...@gmx.es:
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
, % none | all | last (all
needed
in tabulate etc for manuals)
}}%
\dostoptagged
\buff_verbatim_right_of_type
\egroup}
To enable the function add „escape=yes” (or your own delimiters) to
\definetype.
Wolfgang
Thanks a lot, Wolfgang!
Dear Hans,
Can you please
\buff_verbatim_right_of_type
\egroup}
To enable the function add „escape=yes” (or your own delimiters) to
\definetype.
Wolfgang
Thanks a lot, Wolfgang!
Dear Hans,
Can you please add the above patch, or is there a particular reason for not
doing so?
Kind regards,
Christoph
Hi,
How do I escape to TeX from inside an inline typing command? It works fine
from a typing environment.
MWE:
\setuptyping[TEX][escape={[[,]]}]
\definetype[typeTEX][option=TEX]
\starttext
\startTEX
\I\can [[\em escape]]
\stopTEX
\typeTEX{\I\cannot [[\em escape]]}
\stoptext
Thank you for any
Am 17.02.2015 um 16:04 schrieb Christoph Reller christoph.rel...@gmail.com:
Hi,
How do I escape to TeX from inside an inline typing command? It works fine
from a typing environment.
MWE:
\setuptyping[TEX][escape={[[,]]}]
\definetype[typeTEX][option=TEX]
\starttext
\startTEX
]
\definefontfamily[mainface][mono][Mechanica]
\setupbodyfont[mainface, 14pt]
\definetype
[TeXcode]
[option=TEX,
compact=absolute,
lines=hyphenated]
\definehyphenationfeatures
[whatever]
[righthyphenchar=FE000]
\setuphyphenation[method=traditional
utilities.sequencers.appendaction(aftercopyingcharacters,after,document.addfunnyhyphen)
\stopluacode
\definefontfeature[default][default][funnyhyphen=yes]
\definefontfeature[always] [always] [funnyhyphen=yes]
\definefontfeature[none] [none] [funnyhyphen=yes]
\definetype
][GaramondNo8]
\definefontfamily[mainface][mono][Mechanica]
\setupbodyfont[mainface, 14pt]
\definetype
[TeXcode]
[option=TEX,
compact=absolute,
lines=hyphenated]
\definehyphenationfeatures
[whatever]
[righthyphenchar=FE000]
\setuphyphenation[method=traditional
]
\setupbodyfont[mainface, 14pt]
\definetype
[TeXcode]
[option=TEX,
compact=absolute,
lines=hyphenated]
\definehyphenationfeatures
[whatever]
[righthyphenchar=FE000]
\setuphyphenation[method=traditional]
\sethyphenationfeatures[strict]
\unexpanded\def
(aftercopyingcharacters,after,document.addfunnyhyphen)
\stopluacode
\definefontfeature[default][default][funnyhyphen=yes]
\definefontfeature[always] [always] [funnyhyphen=yes]
\definefontfeature[none] [none] [funnyhyphen=yes]
\definetype
[TeXcode]
[option=TEX,
compact
it be implemented in the following sample?
\setupcolor[state=start]
\setuplayout[backspace=95mm, width=middle]
\definetype[TeXcode][option=TEX, compact=absolute]
\unexpanded\def\tex#1{\normalexpanded{\TeXcode{\letterbackslash#1}}}
\starttext
\tex{thisisaverylongcommand}
\hyphenatedurl{http
(not for the rest of the text).
How could it be implemented in the following sample?
\setupcolor[state=start]
\setuplayout[backspace=95mm, width=middle]
\definetype[TeXcode][option=TEX, compact=absolute]
\unexpanded\def\tex#1{\normalexpanded{\TeXcode{\letterbackslash#1}}}
\starttext
\tex
\definetype
[TeXcode]
[option=TEX,
compact=absolute,
lines=hyphenated]
\definehyphenationfeatures
[whatever]
[righthyphenchar=_]
\setuphyphenation
[method=traditional]
\unexpanded\def\TexC#1%
{\dontleavehmode\begingroup
\sethyphenationfeatures
\prehyphencharFE000
\hsize 1mm
averylongword
\stoptext
Many thanks for your help,
Pablo
\definetype
[TeXcode]
[option=TEX,
compact=absolute,
lines=hyphenated]
\definehyphenationfeatures
[whatever]
[righthyphenchar=_]
\setuphyphenation
[method=traditional
[strict]
\starttext
\input knuth
\stoptext
BTW, in your sample below, how can I get the underscore under the
previous character? (Otherwise, the underscore has no use.)
Many thanks for your help again,
Pablo
\definetype
[TeXcode]
[option=TEX,
compact=absolute,
lines
.
Many thanks for your help again,
Pablo
\definetype
[TeXcode]
[option=TEX,
compact=absolute,
lines=hyphenated]
\definehyphenationfeatures
[whatever]
[righthyphenchar=_]
\setuphyphenation
[method=traditional]
\unexpanded\def\TexC#1%
{\dontleavehmode\begingroup
commands, not for the whole text.
Here is a minimal sample:
\showframe
\setupcolor[state=start]
\setuplayout[backspace=95mm, width=middle]
\definetype[TeXcode][option=TEX, compact=absolute]
\unexpanded\def\tex#1{\normalexpanded{\TeXcode{\letterbackslash#1}}}
\starttext
\tex{thisisaverylongcommand
from the
font and enable it only for certain commands, not for the whole text.
Here is a minimal sample:
\showframe
\setupcolor[state=start]
\setuplayout[backspace=95mm, width=middle]
\definetype[TeXcode][option=TEX, compact=absolute]
\unexpanded\def\tex#1{\normalexpanded{\TeXcode{\letterbackslash#1
On 11/5/2014 21:50 PM, Christoph Reller wrote:
On 11/5/2014 10:28 AM, Hans Hagen wrote:
On 11/5/2014 8:09 AM, Christoph Reller wrote:
Thank you very much Hans!
Maybe you could tell me why the following still produces a space in
front of the full stop:
\definetype[ctype
On 11/5/2014 9:50 PM, Christoph Reller wrote:
On 11/5/2014 10:28 AM, Hans Hagen wrote:
On 11/5/2014 8:09 AM, Christoph Reller wrote:
Thank you very much Hans!
Maybe you could tell me why the following still produces a space in
front of the full stop:
\definetype[ctype
be included in the cleaner. If % or # pose
problems then they may be omitted.
With the current absolute-cleaner, a space after \ is preserved
correctly, so I don't understand your comment:
\definetype[ctype][compact=absolute]\starttext
\bTABLE\bTR\bTD \ctype{\a\ b} \eTD\eTR\eTABLE\stoptext
I would
\eTR %- space introduced
\eTABLE
\stoptext
it's the way tex works (when passing arguments) .. you can use this (and
wikify it):
\definetype[ctype][compact=absolute]
\bTABLE
\bTR \bTD \ctype{\test\test} \eTD \eTR
\eTABLE
Thank you very much Hans!
Maybe you could tell me
On 11/5/2014 10:28 AM, Hans Hagen wrote:
On 11/5/2014 8:09 AM, Christoph Reller wrote:
Thank you very much Hans!
Maybe you could tell me why the following still produces a space in
front of the full stop:
\definetype[ctype][compact=absolute]
\starttext
\bTABLE
\bTR \bTD
the way tex works (when passing arguments) .. you can use this (and
wikify it):
\definetype[ctype][compact=absolute]
\bTABLE
\bTR \bTD \ctype{\test\test} \eTD \eTR
\eTABLE
Thank you very much Hans!
Maybe you could tell me why the following still produces a space in front
of the full stop
introduced
\eTABLE
\stoptext
it's the way tex works (when passing arguments) .. you can use this (and
wikify it):
\definetype[ctype][compact=absolute]
\bTABLE
\bTR \bTD \ctype{\test\test} \eTD \eTR
\eTABLE
Thank you very much Hans!
Maybe you could tell me why the following still
passing arguments) .. you can use this (and
wikify it):
\definetype[ctype][compact=absolute]
\bTABLE
\bTR \bTD \ctype{\test\test} \eTD \eTR
\eTABLE
-
Hans Hagen | PRAGMA ADE
}%
\prehyphenchar`-\relax
\unhbox\scratchbox
\endgroup}
Many thanks for your reply, Hans.
Playing with your suggestion, I came to the following sample:
\definetype[TeXcode][option=TEX]
\unexpanded\def\underscorehyphenation#1%
{\dontleavehmode
\begingroup
\prehyphenchar\minusone
:
\definetype[parametercommand][type]
The problem is the parent setting for the \parametercommand command which
doesn’t exist because
the \type command isn’t created with \definetype[type].
Wolfgang
___
If your question
Dear list,
I have the following sample:
\definetype[TeXcode][option=TEX]
\def\arg#1{\TeXcode{{#1}}}
\starttext
\arg{\em\de Textsatzsystem}
\TeXcode{{\em\de Textsatzsystem}}
\stoptext
I don’t know what is wrong defined in \arg that inserts an extra space
after \em?
Many
Am 26.05.2014 um 18:00 schrieb Pablo Rodriguez oi...@gmx.es:
Dear list,
I have the following sample:
\definetype[TeXcode][option=TEX]
\def\arg#1{\TeXcode{{#1}}}
\starttext
\arg{\em\de Textsatzsystem}
\TeXcode{{\em\de Textsatzsystem}}
\stoptext
I don’t know what
On Mon, May 26, 2014 at 6:00 PM, Pablo Rodriguez oi...@gmx.es wrote:
Dear list,
I have the following sample:
\definetype[TeXcode][option=TEX]
\def\arg#1{\TeXcode{{#1}}}
\starttext
\arg{\em\de Textsatzsystem}
\TeXcode{{\em\de Textsatzsystem}}
\stoptext
I don’t
its own rules
for such a situation (search for a description about catcodes), when you want
a copy of
\TeXcode add
\definetype[arg][TeXcode]
to your document.
BTW: \arg is a predefined command and you should avoid to redefine it
Many thanks for your reply, Wolfgang
On 05/26/2014 06:55 PM, luigi scarso wrote:
On Mon, May 26, 2014 at 6:00 PM, Pablo Rodriguez wrote:
Dear list,
I have the following sample:
\definetype[TeXcode][option=TEX]
\def\arg#1{\TeXcode{{#1}}}
\starttext
\arg{\em\de Textsatzsystem
'absolute'.
\definetype[TeXcodeA][option=TEX]
\definetype[TeXcodeB][option=TEX,compact=all]
\definetype[TeXcodeC][option=TEX,compact=absolute]
\def\argA#1{\TeXcodeA{{#1}}}
\def\argB#1{\TeXcodeB{{#1}}}
\def\argC#1{\TeXcodeC{{#1}}}
\starttext
\startlines
\argA {\em\de Textsatzsystem}
\argB
Dear list,
I have the following sample:
\definetype[TeXcode][option=TEX]
\unexpanded\def\tex#1{\normalexpanded{\TeXcode{\letterbackslash#1}}}
\definedescription[TeXcommand][width=fit,hang=fit,headcommand=\tex]
\starttext
Its logo can be invoked with \tex{ConTeXt}. But you can have
different
]
\startsetups Test
\setbreakpoints[compound]
\stopsetups
\definetype[Test][lines=hyphenated, setups=Test, space=stretch]
\showframe
\starttext
hellohello hellohello % should break like this: hel- lohello (ok)
hellohello \Test{hel_lohello} % should break like this: hel_ lohello (not ok)
hellohello
]
\stopsetups
\definetype[Test][lines=hyphenated, setups=Test, space=stretch]
\showframe
\starttext
hellohello hellohello % should break like this: hel- lohello (ok)
hellohello \Test{hel_lohello} % should break like this: hel_ lohello (not ok)
hellohello \Test{hellohello} % should not break at all
On 10/7/2013 1:09 AM, Peter Münster wrote:
Hi,
Is it already possible to define a new \type{} command that allows
linebreaks and perhaps also a breakpoint set?
If not, here my feature request: something like
\definetype[xxx][linebreaks=yes, breakpoints=compound]
\definetype[whatever][lines
On 10/7/2013 1:09 AM, Peter Münster wrote:
Hi,
Is it already possible to define a new \type{} command that allows
linebreaks and perhaps also a breakpoint set?
If not, here my feature request: something like
\definetype[xxx][linebreaks=yes, breakpoints=compound]
this should be redefined
On Mon, Oct 07 2013, Hans Hagen wrote:
If not, here my feature request: something like
\definetype[xxx][linebreaks=yes, breakpoints=compound]
this should be redefined:
\unexpanded\def\specialstretchedspace{\hskip.5\interwordspace\s!plus.125\interwordspace\relax}
Hi Hans,
Unfortunately
On 10/7/2013 10:30 AM, Peter Münster wrote:
On Mon, Oct 07 2013, Hans Hagen wrote:
If not, here my feature request: something like
\definetype[xxx][linebreaks=yes, breakpoints=compound]
this should be redefined:
\unexpanded\def\specialstretchedspace{\hskip.5\interwordspace\s!plus.125
Hi,
Is it already possible to define a new \type{} command that allows
linebreaks and perhaps also a breakpoint set?
If not, here my feature request: something like
\definetype[xxx][linebreaks=yes, breakpoints=compound]
TIA,
--
Peter
Dear list,
I have this sample:
\definetype[TeXcode][option=TEX]
\starttext
\TeXcode{\mainlanguage[la]},
but \tex{ConTeXt} and \arg{option=value}.
\stoptext
I need ot have \tex and \arg colored with [option=TeX] (and I would
avoid having \type colored).
How can I do
Hi,
are ligatures etc. supposed to be active in verbatim commands? In the default
\type command they are only disabled because \tt has “features=none” in the
typescripts but since this isn’t the case for serif and sans you get ligatures.
\definetype[test][style=\rm]
\starttext
\type{fi
.
\definetype[test][style=\rm]
\starttext
\type{fi -- ---}
\test{fi -- ---}
\stoptext
one could disable features with the style key (or maybe at some point we
can have an extra key for that
-
Hans
for serif and sans you get
ligatures.
\definetype[test][style=\rm]
\starttext
\type{fi -- ---}
\test{fi -- ---}
\stoptext
one could disable features with the style key (or maybe at some point we can
have an extra key for that
How about a “features” key which is passed
with \definetype[C][option=C] and then you
can put the code between \startC and \stopC, the second is to use the normal
typing environment and pass “option=C” as argument. To get colors in your code
you have to enable them first with \setupcolors[state=start].
% engine=pdftex
\setupcolors[state=start
And colored typesetting for \TEX\ code.
\definetype[typeTEX][option=color]
%D Presentations have relatively dense lines, we do not care about underfull
%D lines, but allow emergency stretch.
\setuptolerance[\v!verytolerant,\v!stretch]
%D We use combinations for placing vertical pictures and text side
Thanks very much - that works perfectly. I didn't know about \definetype.
Thanks again,
Alasdair
On Fri, Sep 2, 2011 at 3:11 PM, Jaroslav Hajtmar hajt...@gyza.cz wrote:
Hello Alasdair.
Try use \definetype :
\definetype[rtype][color=red,**style=type]
\definetype[btype][color=blue,**style
On 18-10-2010 10:12, Herbert Voss wrote:
Am 18.10.2010 10:08, schrieb Thomas Schmitz:
I want to know if the wiki text is outdated or not.
However, I am looking for an example where deeptextcommand
is really needed
I happen to need deeptextcommand ...
\definetype
[boldtype]
[style=\ttbf
text
Hello Hans,
\typ does not break:
\starttext
\hsize1pt
\typ{c:bla/blub}
\stoptext
But I've found the solution:
% \definetype[Code][style=tt, color=darkblue, align=hyphenated] % not working
\def\Code#1{\bgroup\tt\color[darkblue]\hyphenatedurl{#1}\egroup}
\starttext
\hsize1pt
\Code{c:bla
of \definetype and \definebuffer.
Aditya
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http
On 4-8-2010 7:23, Aditya Mahajan wrote:
(that writes contents to file and inputs the result) but cannot easily
create \typevimTEX. For that I will need to reimplement all the catcode
trickery of \definetype and \definebuffer.
\definetype[TEXtype][option=TEX]
test \TEXtype{oeps \test{oeps
On Wed, 4 Aug 2010, Hans Hagen wrote:
On 4-8-2010 7:23, Aditya Mahajan wrote:
(that writes contents to file and inputs the result) but cannot easily
create \typevimTEX. For that I will need to reimplement all the catcode
trickery of \definetype and \definebuffer.
\definetype[TEXtype
On 4-8-2010 9:36, Aditya Mahajan wrote:
On Wed, 4 Aug 2010, Hans Hagen wrote:
On 4-8-2010 7:23, Aditya Mahajan wrote:
(that writes contents to file and inputs the result) but cannot easily
create \typevimTEX. For that I will need to reimplement all the catcode
trickery of \definetype
: [NTG-context] Unable to use
example from Excursion 19/03/2010 16:03
message id: alpine.lnx.2.01.1003191101070.14...@ybpnyubfg.ybpnyqbznva
(On Fri, 12 Mar 2010, Hans Hagen wrote:
fixed in next beta
The bug is still present in 2010.03.18. Here is a minimal example:
\definetype[typeTEX][option=tex
On Fri, 12 Mar 2010, Hans Hagen wrote:
fixed in next beta
The bug is still present in 2010.03.18. Here is a minimal example:
\definetype[typeTEX][option=tex, style=type]
\starttext
\placefigure
[top,bottom]
[fig:something]
{Do \type{\undefined} and \typeTEX{\undefined} work
\type|\type|.
\setuptype[option=TEX]
\definetype [normaltype] [option=none]
%D We enable colors, interaction and bookmarks.
\setupinteraction [state=start,color=darkred,style=normal]
\setupurl [color=darkred]
\setupcolors [state=start]
\placebookmarks [section,subsection
-Regular' etc. in the second argument of \definefont but not
the name for a font collection defined with \definetype, in your case
\definefont[myChapterFont][Sans sa 1.728]
or
\definefont[myChapterFont][DummyRegular sa 1.728]
So ( and considering the example at
http://wiki.contextgarden.net
argument of \definefont but not
the name for a font collection defined with \definetype, in your case
\definefont[myChapterFont][Sans sa 1.728]
or
\definefont[myChapterFont][DummyRegular sa 1.728]
So ( and considering the example at
http://wiki.contextgarden.net/Chapters_headers )
I tried
defined with \definetype, in your case
\definefont[myChapterFont][Sans sa 1.728]
or
\definefont[myChapterFont][DummyRegular sa 1.728]
So ( and considering the example at
http://wiki.contextgarden.net/Chapters_headers )
I tried...
\setuppapersize [A4][A4]
\starttypescript [serif] [myBodyFont
argument of \definefont but not
the name for a font collection defined with \definetype, in your case
\definefont[myChapterFont][Sans sa 1.728]
or
\definefont[myChapterFont][DummyRegular sa 1.728]
\setuphead[chapter][style=myChapterFont] % or
\setuphead[chapter][style=\myChapterFont
rm, ss, tt, mm, hw and cg but you write in the font manual it is
also possible to define own commands, is this possible for the short
command and if yes how.
anyhow, sometimes i do map the ss to a serif or rm to sans; depends on
how mixed your doc may be
Do you mean I could write \definetype
could write \definetype [...] [rm] [sans] to get a sans font
with the \rm command.
indeed
rm ss etc are defined infont-ini and you can define more if needed
Hans
-
Hans Hagen | PRAGMA ADE
\definetextposition[name][settings]
# \definetextvariable[settings][???][???]
\definetype[name][settings]
# \definetypeface
\definetyping[file|typing|name][settings]
\defineversion[name][numbers]
# \defineXMLargument
# \defineXMLcommand
# \defineXMLenvironment
# \defineXMLenvironmentsave
On Tue, 14 Nov 2006, Aditya Mahajan wrote:
Hi Hans,
I just noticed a bug with the type mechanism. It breaks down the kerning for
---. Minimal example:
\definetype[typeTEX][option=tex]
\starttext
\typeTEX|\example|. this---breaks---down.
\stoptext
Any workarounds?
Noticed another
Aditya Mahajan wrote:
Hi Hans,
I just noticed a bug with the type mechanism. It breaks down the
kerning for ---. Minimal example:
\definetype[typeTEX][option=tex]
\starttext
\typeTEX|\example|. this---breaks---down.
\stoptext
Any workarounds?
taco, is \noligatures global? i.e
On Tue, 14 Nov 2006, Hans Hagen wrote:
Aditya Mahajan wrote:
Hi Hans,
I just noticed a bug with the type mechanism. It breaks down the
kerning for ---. Minimal example:
\definetype[typeTEX][option=tex]
\starttext
\typeTEX|\example|. this---breaks---down.
\stoptext
Any workarounds
Aditya Mahajan wrote:
On Tue, 14 Nov 2006, Hans Hagen wrote:
Aditya Mahajan wrote:
Hi Hans,
I just noticed a bug with the type mechanism. It breaks down the
kerning for ---. Minimal example:
\definetype[typeTEX][option=tex]
\starttext
\typeTEX|\example|. this---breaks---down
Hi Hans,
I just noticed a bug with the type mechanism. It breaks down the
kerning for ---. Minimal example:
\definetype[typeTEX][option=tex]
\starttext
\typeTEX|\example|. this---breaks---down.
\stoptext
Any workarounds?
Aditya
___
ntg-context
we need to obey the specific setting so verbatimfont is called at
different places
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477
Hans Hagen wrote:
Aditya Mahajan wrote:
Hi Hans,
I just noticed a bug with the type mechanism. It breaks down the
kerning for ---. Minimal example:
\definetype[typeTEX][option=tex]
\starttext
\typeTEX|\example|. this---breaks---down.
\stoptext
Any workarounds?
taco
)
The last two lines (well, it has only three lines) of m-narrowtt.tex
should be
\definetyping[n\v!typing][style=\narrowtt]
\definetype [n\v!type] [style=\narrowtt]
in m-narrowtt it should be :
\definetyping[n\v!typing] \setuptyping[n\v!typing][style=\narrowtt]
\definetype [n\v!type
only three lines) of m-narrowtt.tex
should be
\definetyping[n\v!typing][style=\narrowtt]
\definetype [n\v!type] [style=\narrowtt]
Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
]
\definetype[typeTEX][option=tex]
\starttext
\type+\type{\type is a wonderful macro}+, isn't it?
\typeTEX+\typeTEX{\typeTEX is a wonderful macro}+, isn't it?
\stoptext
-
Hans Hagen | PRAGMA ADE
]
\setuptype[option=TEX]
\definetype[typeTEX][option=tex]
\starttext
\type+\type{\type is a wonderful macro}+, isn't it?
\typeTEX+\typeTEX{\typeTEX is a wonderful macro}+, isn't it?
\stoptext
Thanks, that looks easy :-)
However, there seems to be a bug, sometimes the color spills across
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?
\typeTEX+\typeTEX{\typeTEX is a wonderful macro}+, isn't it?
\stoptext
Thanks, that looks easy :-)
However, there seems
).
\setupcolors[state=start]
\setuptype[option=TEX]
\definetype[typeTEX][option=tex]
\starttext
\type+\type{\type is a wonderful macro}+, isn't it?
\typeTEX+\typeTEX{\typeTEX is a wonderful macro}+, isn't it?
\stoptext
Thanks, that looks easy :-)
However
...
\stopTEX. (I need to show inline commands in color).
\setupcolors[state=start]
\setuptype[option=TEX]
\definetype[typeTEX][option=tex]
\starttext
\type+\type{\type is a wonderful macro}+, isn't it?
\typeTEX+\typeTEX{\typeTEX is a wonderful macro}+, isn't it?
\stoptext
be much cleaner to
define:
\definetype[RAW] [\c!option=RAW]
\definetype[MP][\c!option=MP]
...
\definetype[XML] [\c!option=XML]
(as counterparts to \definetyping) than keeping those lenghty
definitions for each file type separately.
Btw: in the meantime (I last tried it in April) a bug
Try running
\setupcolors[state=start]
\definetype[JS][option=JS]
\starttext
\JS{function}\par
\JS{function }\par
\JS{ function}\par
\JS{ function }
\stoptext
The first paragraph will only be the first character, f, the reason is
made clear from the following two paragraphs.
In the second
/20050329.193918.9a9371ce.html#20050329.193918.9a9371ce
Patrick
Thank you very much. The \definetype[regexp][option=RAW] is a very nice
and elegant solution that Hans suggested.
type is simply too frequent word to find any relevant matches in
search. I'm sorry. I skimmed the thread once, but at 20, 50
. The problem is, though, that I'd really like it
to be in one \type as I am actually using something called \TypedRegex
that delimits the regular expression argument with quotes.
I guess I could fake the quotes and use the split-\type trick,
nikolai
\definetype[regexp][option=RAW]
\starttext
\type{0
1 - 100 of 101 matches
Mail list logo