Re: [NTG-context] \type{...} as macro argument

2020-11-08 Thread Sylvain Hubert
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{

Re: [NTG-context] \type{...} as macro argument

2020-11-08 Thread Wolfgang Schuster
:     \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

Re: [NTG-context] Verbatim typing and compound breakpoints

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

[NTG-context] Verbatim typing and compound breakpoints

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

Re: [NTG-context] \type -- extra space in TABLE

2020-04-12 Thread Hans Hagen
), 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

Re: [NTG-context] weird spacing after command type

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

[NTG-context] weird spacing after command type

2018-10-14 Thread Pablo Rodriguez
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

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

2017-12-26 Thread SteamedFish
: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] >> [

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

2017-12-21 Thread Christoph Reller
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

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

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

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

2017-12-21 Thread Christoph Reller
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:

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

2017-12-20 Thread Hans Hagen
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

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

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

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

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

[NTG-context] inline code in XML

2017-07-28 Thread Pablo Rodriguez
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

[NTG-context] bug in \setuptype?

2015-04-14 Thread 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 bug. Many thanks for your help, Pablo -- http://www.ousia.tk

Re: [NTG-context] bug in \setuptype?

2015-04-14 Thread Pablo Rodriguez
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

Re: [NTG-context] bug in \setuptype?

2015-04-14 Thread Wolfgang Schuster
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

Re: [NTG-context] No escape to TeX for inline typing?

2015-02-28 Thread Christoph Reller
, % 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

Re: [NTG-context] No escape to TeX for inline typing?

2015-02-17 Thread Christoph Reller
\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

[NTG-context] No escape to TeX for inline typing?

2015-02-17 Thread Christoph Reller
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

Re: [NTG-context] No escape to TeX for inline typing?

2015-02-17 Thread Wolfgang Schuster
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

Re: [NTG-context] underscore hyphenation

2014-12-11 Thread Pablo Rodriguez
] \definefontfamily[mainface][mono][Mechanica] \setupbodyfont[mainface, 14pt] \definetype [TeXcode] [option=TEX, compact=absolute, lines=hyphenated] \definehyphenationfeatures [whatever] [righthyphenchar=FE000] \setuphyphenation[method=traditional

Re: [NTG-context] two issues with new hyphenator

2014-12-10 Thread Pablo Rodriguez
utilities.sequencers.appendaction(aftercopyingcharacters,after,document.addfunnyhyphen) \stopluacode \definefontfeature[default][default][funnyhyphen=yes] \definefontfeature[always] [always] [funnyhyphen=yes] \definefontfeature[none] [none] [funnyhyphen=yes] \definetype

[NTG-context] underscore hyphenation

2014-12-10 Thread Pablo Rodriguez
][GaramondNo8] \definefontfamily[mainface][mono][Mechanica] \setupbodyfont[mainface, 14pt] \definetype [TeXcode] [option=TEX, compact=absolute, lines=hyphenated] \definehyphenationfeatures [whatever] [righthyphenchar=FE000] \setuphyphenation[method=traditional

Re: [NTG-context] underscore hyphenation

2014-12-10 Thread Hans Hagen
] \setupbodyfont[mainface, 14pt] \definetype [TeXcode] [option=TEX, compact=absolute, lines=hyphenated] \definehyphenationfeatures [whatever] [righthyphenchar=FE000] \setuphyphenation[method=traditional] \sethyphenationfeatures[strict] \unexpanded\def

Re: [NTG-context] two issues with new hyphenator

2014-12-10 Thread Hans Hagen
(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

Re: [NTG-context] two issues with new hyphenator

2014-12-08 Thread Pablo Rodriguez
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

Re: [NTG-context] two issues with new hyphenator

2014-12-08 Thread Hans Hagen
(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

Re: [NTG-context] two issues with new hyphenator

2014-12-06 Thread Pablo Rodriguez
\definetype [TeXcode] [option=TEX, compact=absolute, lines=hyphenated] \definehyphenationfeatures [whatever] [righthyphenchar=_] \setuphyphenation [method=traditional] \unexpanded\def\TexC#1% {\dontleavehmode\begingroup \sethyphenationfeatures

Re: [NTG-context] two issues with new hyphenator

2014-12-06 Thread Hans Hagen
\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

Re: [NTG-context] two issues with new hyphenator

2014-12-05 Thread Pablo Rodriguez
[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

Re: [NTG-context] two issues with new hyphenator

2014-12-05 Thread Hans Hagen
. 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

Re: [NTG-context] two issues with new hyphenator

2014-12-04 Thread Pablo Rodriguez
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

Re: [NTG-context] two issues with new hyphenator

2014-12-04 Thread Hans Hagen
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

Re: [NTG-context] Natural tables introduces spaces in \type

2014-11-19 Thread Christoph Reller
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

Re: [NTG-context] Natural tables introduces spaces in \type

2014-11-06 Thread Hans Hagen
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

Re: [NTG-context] Natural tables introduces spaces in \type

2014-11-06 Thread Christoph Reller
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

Re: [NTG-context] Natural tables introduces spaces in \type

2014-11-05 Thread Hans Hagen
\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

Re: [NTG-context] Natural tables introduces spaces in \type

2014-11-05 Thread Christoph Reller
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

Re: [NTG-context] Natural tables introduces spaces in \type

2014-11-04 Thread Christoph Reller
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

[NTG-context] Natural tables introduces spaces in \type

2014-11-03 Thread Christoph Reller
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

Re: [NTG-context] Natural tables introduces spaces in \type

2014-11-02 Thread Hans Hagen
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

Re: [NTG-context] hyphenating urls and \tex

2014-10-07 Thread Pablo Rodriguez
}% \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

Re: [NTG-context] s-mod produces system error: invalid parameter ...

2014-09-21 Thread Wolfgang Schuster
: \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

[NTG-context] unwanted extra space in type definition

2014-05-26 Thread Pablo Rodriguez
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

Re: [NTG-context] unwanted extra space in type definition

2014-05-26 Thread Wolfgang Schuster
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

Re: [NTG-context] unwanted extra space in type definition

2014-05-26 Thread luigi scarso
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

Re: [NTG-context] unwanted extra space in type definition

2014-05-26 Thread Pablo Rodriguez
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

Re: [NTG-context] unwanted extra space in type definition

2014-05-26 Thread Pablo Rodriguez
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

Re: [NTG-context] \type gives different results in footnotes

2014-05-26 Thread Hans Hagen
'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

[NTG-context] defining headcommand

2014-02-25 Thread Pablo Rodriguez
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

Re: [NTG-context] \definetype[xxx][linebreaks=yes, breakpoints=name]

2013-11-01 Thread Hans Hagen
] \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

Re: [NTG-context] \definetype[xxx][linebreaks=yes, breakpoints=name]

2013-10-29 Thread Peter Münster
] \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

Re: [NTG-context] \definetype[xxx][linebreaks=yes, breakpoints=name]

2013-10-07 Thread Hans Hagen
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

Re: [NTG-context] \definetype[xxx][linebreaks=yes, breakpoints=name]

2013-10-07 Thread Hans Hagen
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

Re: [NTG-context] \definetype[xxx][linebreaks=yes, breakpoints=name]

2013-10-07 Thread Peter Münster
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

Re: [NTG-context] \definetype[xxx][linebreaks=yes, breakpoints=name]

2013-10-07 Thread Hans Hagen
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

[NTG-context] \definetype[xxx][linebreaks=yes, breakpoints=name]

2013-10-06 Thread Peter Münster
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

[NTG-context] a question on coloring \tex and \var

2013-10-03 Thread Pablo Rodríguez
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

[NTG-context] \definetype and ligatures

2012-05-31 Thread Wolfgang Schuster
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

Re: [NTG-context] \definetype and ligatures

2012-05-31 Thread Hans Hagen
. \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

Re: [NTG-context] \definetype and ligatures

2012-05-31 Thread Wolfgang Schuster
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

Re: [NTG-context] Syntax highlighting for C-code

2012-01-15 Thread Wolfgang Schuster
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

Re: [NTG-context] Undefined controle sequence with usemodule[simpleslides]

2012-01-04 Thread Aditya Mahajan
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

Re: [NTG-context] Colored text in \type?

2011-09-01 Thread Alasdair McAndrew
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

Re: [NTG-context] \setuphead

2010-10-19 Thread Hans Hagen
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

Re: [NTG-context] How to break lines with \type{}?

2010-08-26 Thread Peter Münster
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

Re: [NTG-context] vbox construct breaking MKII

2010-08-04 Thread Aditya Mahajan
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

Re: [NTG-context] vbox construct breaking MKII

2010-08-04 Thread Hans Hagen
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

Re: [NTG-context] vbox construct breaking MKII

2010-08-04 Thread Aditya Mahajan
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

Re: [NTG-context] vbox construct breaking MKII

2010-08-04 Thread Hans Hagen
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

Re: [NTG-context] Stack overflow

2010-03-20 Thread Alain Delmotte
: [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

Re: [NTG-context] Unable to use example from Excursion

2010-03-19 Thread Aditya Mahajan
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

Re: [NTG-context] Call for papers (pracjourn mkiv)

2009-12-15 Thread Aditya Mahajan
\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

Re: [NTG-context] Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]

2008-07-17 Thread Wolfgang Schuster
-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

Re: [NTG-context] Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]

2008-07-17 Thread Wolfgang Schuster
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

[NTG-context] Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]

2008-07-16 Thread Alan Stone
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

Re: [NTG-context] Whacko font behaviour ? ( Or Am I ? :O)

2008-07-14 Thread Wolfgang Schuster
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

Re: [NTG-context] urw garamond typescript

2008-04-24 Thread Wolfgang Schuster
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

Re: [NTG-context] urw garamond typescript

2008-04-24 Thread Hans Hagen
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

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
\definetextposition[name][settings] # \definetextvariable[settings][???][???] \definetype[name][settings] # \definetypeface \definetyping[file|typing|name][settings] \defineversion[name][numbers] # \defineXMLargument # \defineXMLcommand # \defineXMLenvironment # \defineXMLenvironmentsave

Re: [NTG-context] \definetype breaks down ---

2006-11-14 Thread Aditya Mahajan
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

Re: [NTG-context] \definetype breaks down ---

2006-11-14 Thread Hans Hagen
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

Re: [NTG-context] \definetype breaks down ---

2006-11-14 Thread Aditya Mahajan
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

Re: [NTG-context] \definetype breaks down ---

2006-11-14 Thread Hans Hagen
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

[NTG-context] \definetype breaks down ---

2006-11-14 Thread Aditya Mahajan
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

Re: [NTG-context] \definetype breaks down ---

2006-11-14 Thread Hans Hagen
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

Re: [NTG-context] \definetype breaks down ---

2006-11-14 Thread Taco Hoekwater
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

Re: [NTG-context] Error in m-narrowtt

2006-11-01 Thread Hans Hagen
) 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

[NTG-context] Error in m-narrowtt

2006-10-31 Thread Aditya Mahajan
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

Re: [NTG-context] In-line syntax highlighting for type

2006-10-25 Thread Hans Hagen
] \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

Re: [NTG-context] In-line syntax highlighting for type

2006-10-25 Thread Aditya Mahajan
] \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

Re: [NTG-context] In-line syntax highlighting for type

2006-10-25 Thread Aditya Mahajan
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

Re: [NTG-context] In-line syntax highlighting for type

2006-10-25 Thread Mojca Miklavec
). \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

Re: [NTG-context] In-line syntax highlighting for type

2006-10-25 Thread Hans Hagen
... \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

Re: [NTG-context] some highlighted \type-ing

2005-09-07 Thread Mojca Miklavec
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

[NTG-context] \definetype[...][option=...] problems

2005-04-13 Thread Nikolai Weibull
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

Re: [NTG-context] Re: \type{a_b} inside \bTABLE ... \eTABLE

2005-04-11 Thread Mojca Miklavec
/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

Re: [NTG-context] Problem with \type in captions

2005-03-29 Thread Hans Hagen
. 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   2   >