Re: [NTG-context] ligatures/substituation at word boundaries

2017-07-28 Thread Hans Hagen
, ['2'] = { "c", "d" }, }, }, }, data = { rules = { { before = { { " " } }, current = { { "a" }, { "b" } }, look

[NTG-context] inline code in XML

2017-07-28 Thread Pablo Rodriguez
marking in code blocks and in inline code? I have tried to find out a solution, but \typebuffer requires a separate paragraph (or I didn’t know how to disable it). Many thanks for your help, Pablo -- http://www.ousia.tk

Re: [NTG-context] handling code in XML

2017-07-24 Thread Pablo Rodriguez
else > buffers.erase(name) > end > end > > \stopluacode > > \unprotect > > \unexpanded\def\xmlprettyprinttext#1#2% >{\ctxlua{lxml.tobufferX("#1",".","xml-temp")}% > \ifdefined\sci

Re: [NTG-context] handling code in XML

2017-07-24 Thread Hans Hagen
\stopluacode \unprotect \unexpanded\def\xmlprettyprinttext#1#2% {\ctxlua{lxml.tobufferX("#1",".","xml-temp")}% \ifdefined\scitebuffer \scitebuffer[#2][xml-temp]% \else \typebuffer[xml-temp][\c!option=#2]% \fi} \pro

Re: [NTG-context] overrule italics

2017-06-04 Thread Hans Hagen
\startbuffer \startbuffer[demo] \start \getbuffer[setup] \subject{[ {\myslanted myslanted} ] [ {\it it} ] [ {\slanted slanted} ] [ $x=1$ ]} [ {\myslanted myslanted} ] [ {\it it} ] [ {\slanted slanted} ] [ $x=1$ ] \typebuffer[setup] \blackrule[width

Re: [NTG-context] \overline and \overbar

2017-05-10 Thread Henri Menke
t; \startbuffer[references] >>>> @misc{kraft, >>>> author = "Kraft, Nathan", >>>> title = "Mr Kraft's Virtual Filing Cabinet", >>>> year = "2015", >>>> url = "http://mrkraft.wikispaces.com/Mr+Kraf

[NTG-context] \overline and \overbar

2017-05-09 Thread Jeong Dal
sebtxdefinitions[apa] >>> >>> \starttext >>> >>> \nocite[kraft] >>> \placelistofpublications >>> >>> \stoptext >> The bibtex entry in this example is provided in a buffer. The buffer >> mechanism does not handle characters

Re: [NTG-context] BUG: % is comment in btx fields

2017-05-08 Thread Rik Kabel
On 2017-05-08 21:40, Henri Menke wrote: That is simply not true! Content inside ConTeXt buffers is as verbatim as reading an external file. Try \typebuffer instead of \getbuffer your example below and observe that the comment sign is perfectly preserved. I am sorry. You are, of course

Re: [NTG-context] BUG: % is comment in btx fields

2017-05-08 Thread Henri Menke
\usebtxdefinitions[apa] > > > > \starttext > > > > \nocite[kraft] > > \placelistofpublications > > > > \stoptext >  The bibtex entry in this example is provided in a buffer. The buffer > mechanism does not handle characters any differently than othe

Re: [NTG-context] copy & paste source code from documents

2016-11-26 Thread Tobias Berndt
an option (the last examples need an upcoming beta as i added better > space support for verbatim comments) > > \setupinteraction[state=start] > > \starttext > > \startbuffer[a] > for i=1,10 do >print(i) > end > \stopbuffer > > \typebuffer[a] > > c

Re: [NTG-context] copy & paste source code from documents

2016-11-26 Thread Hans Hagen
better space support for verbatim comments) \setupinteraction[state=start] \starttext \startbuffer[a] for i=1,10 do print(i) end \stopbuffer \typebuffer[a] currently: \comment{\cldcontext{buffers.getcontent("a")}} \blank hacked: \comment{\cldcontext{string.gsub(buffers.

Re: [NTG-context] typebuffer different from typefile

2016-04-24 Thread Meer, Hans van der
The point is not that I am without options for a practical solution here. My point is that the difference between \typebuffer and \typefile breaks the strict and so much appreciated congruence between like macro calls. Therefore my post must rather be seen as a plea to the maintainer(s

Re: [NTG-context] typebuffer different from typefile

2016-04-24 Thread Pablo Rodriguez
ame, because their > usage parallels each other? Hi Hans, I wonder whether any of these two options may help you: \setuptyping[buffer][style=\ttx] \startbuffer[test] content of buffer \stopbuffer \starttext \typebuffer[test][style=\ss\red] \typefile[style=\ttx

[NTG-context] typebuffer different from typefile

2016-04-24 Thread dr. Hans van der Meer
: \startbuffer[test] content of buffer \stopbuffer \starttext \typebuffer[test] \typefile[style=\ttx]{test.txt} \stoptext Hans van der Meer ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] Buffer with syntax highlighting

2016-02-17 Thread Procházka Lukáš Ing .
That's it, thank you! Lukas On Wed, 17 Feb 2016 13:39:47 +0100, Marco Patzer <li...@homerow.info> wrote: On Wed, 17 Feb 2016 13:16:03 +0100 Procházka Lukáš Ing. <l...@pontex.cz> wrote: is it possible to \typebuffer with a syntax highlighting? \typebuffer [demo] [option=co

Re: [NTG-context] Buffer with syntax highlighting

2016-02-17 Thread Marco Patzer
On Wed, 17 Feb 2016 13:16:03 +0100 Procházka Lukáš Ing. <l...@pontex.cz> wrote: > is it possible to \typebuffer with a syntax highlighting? \typebuffer [demo] [option=context] Also have a look at Aditya's vim syntax highlighter module which is grea

Re: [NTG-context] Buffer with syntax highlighting

2016-02-17 Thread Hans Hagen
On 2/17/2016 1:16 PM, Procházka Lukáš Ing. wrote: Hello, is it possible to \typebuffer with a syntax highlighting? \typefile allows to specific syntax highlighter, e.g. \typefile[TEX]{file.tex}; \typebuffer does not (AFAIK). It would be useful to have: \startbuffer[demo] \startitemize

[NTG-context] Buffer with syntax highlighting

2016-02-17 Thread Procházka Lukáš Ing .
Hello, is it possible to \typebuffer with a syntax highlighting? \typefile allows to specific syntax highlighter, e.g. \typefile[TEX]{file.tex}; \typebuffer does not (AFAIK). It would be useful to have: \startbuffer[demo] \startitemize \item Hello! \stopitemize \stopbuffer which

Re: [NTG-context] Shading to transparent using withshademethod

2016-01-28 Thread Hans Hagen
% withshadecolors (black,lightgray) % withtransparency (1,1) withshadecolors (black,\MPcoloronly{mp:fg}) withtransparency \MPtransparencyonly{mp:fg} ; \stopMPcode \stoptext \stopbuffer \starttext \typebuff

Re: [NTG-context] Shading to transparent using withshademethod

2016-01-28 Thread Marco Patzer
or (-1,0) > % withshadecolors (black,lightgray) > % withtransparency (1,1) > withshadecolors (black,\MPcoloronly{mp:fg}) > withtransparency \MPtransparencyonly{mp:fg} ^ Typo or new feature?

Re: [NTG-context] handling code in XML

2015-02-24 Thread Hans Hagen
{buffers.assign(foo,xml.content(lxml.id('#1')))} \stoptexdefinition \starttexdefinition xmlprettyprint #1#2 \xmlsaveinbuffer{#1} \typebuffer[foo][option=#2] \stoptexdefinition \starttexdefinition xmlprettyprint #1#2 \start \tt \xmlsaveinbuffer{#1} \setcatcodetable

Re: [NTG-context] handling code in XML

2015-02-24 Thread Hans Hagen
there). Many thanks for your help, \usemodule[scite] \starttexdefinition xmlsaveinbuffer #1 \ctxlua{buffers.assign(foo,xml.content(lxml.id('#1')))} \stoptexdefinition \starttexdefinition xmlprettyprint #1#2 \xmlsaveinbuffer{#1} \typebuffer[foo][option=#2] \stoptexdefinition

Re: [NTG-context] ConTeXt gobble my mind

2014-11-06 Thread Wolfgang Schuster
\stoptyping \starttyping { printf(%d, data); } \stoptyping This is ignored ! \stoptext How can I use correctly gobbleinput to make it works ? Replace the typing environment with normal buffers and use the \typebuffer command to print the content of the buffer. \starttext \startbuffer

Re: [NTG-context] ConTeXt gobble my mind

2014-11-06 Thread Pierre-François Bonnefoi
environment with normal buffers and use the \typebuffer command to print the content of the buffer. \starttext \startbuffer { printf(%d, data); } \stopbuffer %\typebuffer This is ignored ! \stoptext Wolfgang

[NTG-context] mathml mtext behaviour

2014-05-18 Thread Hans van der Meer
The short example below typeset with \usemodule[mathml] \starttext \typebuffer \blank \processxmlbuffer \stoptext and ConTeXt ver: 2014.04.04 00:08 MKIV beta shows that the mtext element does not honour the tags within. This severely restricts the presentation. Can this be remedied

[NTG-context] mathml mtext behaviour

2014-05-18 Thread H. van der Meer
Sorry if this question reaches you twice, but the first time I used an email address not registered with this newsgroup.The short example below typeset with\usemodule[mathml]\starttext\typebuffer\blank\processxmlbuffer\stoptextand "ConTeXt ver: 2014.04.04 00:08 MKIV beta" shows that

Re: [NTG-context] mathml mtext behaviour

2014-05-18 Thread Hans Hagen
On 5/18/2014 10:05 AM, H. van der Meer wrote: Sorry if this question reaches you twice, but the first time I used an email address not registered with this newsgroup. The short example below typeset with \usemodule[mathml] \starttext \typebuffer \blank \processxmlbuffer \stoptext and ConTeXt

Re: [NTG-context] mathml mtext behaviour

2014-05-18 Thread Meer, H. van der
[mathml] \starttext \typebuffer \blank \processxmlbuffer \stoptext and ConTeXt ver: 2014.04.04 00:08 MKIV beta shows that the mtext element does not honour the tags within. This severely restricts the presentation. So what makes you think these tags should be recognized and interpreted as being

Re: [NTG-context] mathml mtext behaviour

2014-05-18 Thread Hans Hagen
. The short example below typeset with \usemodule[mathml] \starttext \typebuffer \blank \processxmlbuffer \stoptext and ConTeXt ver: 2014.04.04 00:08 MKIV beta shows that the mtext element does not honour the tags within. This severely restricts the presentation. So what makes you think

Re: [NTG-context] apply typing environment to \typebuffer

2014-01-15 Thread Pablo Rodriguez
On 01/15/2014 01:12 AM, Marco Patzer wrote: On 2014–01–14 Pablo Rodriguez wrote: I have a presentation that defines a typing environment and I would like to know who to apply it to \typebuffer. Use: \setuptyping [buffer] [option=TEX] Many thanks for your reply, Marco

Re: [NTG-context] apply typing environment to \typebuffer

2014-01-15 Thread Peter Münster
On Wed, Jan 15 2014, Pablo Rodriguez wrote: \definetyping[buffer][option=TEX,before=\startframedtext,after=\stopframedtext] \setuptyping[buffer][style=\tt\setupinterlinespace,align={right,broad}] Why \definetyping[buffer] ? \typebuffer is already defined. Shouldn't it be: \setuptyping

Re: [NTG-context] apply typing environment to \typebuffer

2014-01-15 Thread Pablo Rodriguez
On 01/15/2014 08:50 PM, Peter Münster wrote: On Wed, Jan 15 2014, Pablo Rodriguez wrote: \definetyping[buffer][option=TEX,before=\startframedtext,after=\stopframedtext] \setuptyping[buffer][style=\tt\setupinterlinespace,align={right,broad}] Why \definetyping[buffer] ? \typebuffer

Re: [NTG-context] apply typing environment to \typebuffer

2014-01-15 Thread Wolfgang Schuster
Am 15.01.2014 um 20:42 schrieb Pablo Rodriguez oi...@gmx.es: On 01/15/2014 01:12 AM, Marco Patzer wrote: On 2014–01–14 Pablo Rodriguez wrote: I have a presentation that defines a typing environment and I would like to know who to apply it to \typebuffer. Use: \setuptyping

[NTG-context] apply typing environment to \typebuffer

2014-01-14 Thread Pablo Rodriguez
Dear list, I have a presentation that defines a typing environment and I would like to know who to apply it to \typebuffer. Here is a sample: \definetyping[TeXcode][option=TEX] \starttext \startbuffer[a] \starttext \input knuth \stoptext \stopbuffer \typesetbuffer[a] \typebuffer[a] \stoptext

Re: [NTG-context] apply typing environment to \typebuffer

2014-01-14 Thread Marco Patzer
On 2014–01–14 Pablo Rodriguez wrote: I have a presentation that defines a typing environment and I would like to know who to apply it to \typebuffer. Here is a sample: \definetyping[TeXcode][option=TEX] Use: \setuptyping [buffer] [option=TEX] This applies globally, though

[NTG-context] Difficulties with \startformula

2014-01-13 Thread Elspeth McGullicuddy
\input{knuth} \framed[align=yes]{% \type{\framed $$}\\ \framed[align=yes,width=5cm]{% $$ x+y $$ \input{knuth} }} \startbuffer \hbox{\vrule\startformula \int_a^b x+y \stopformula} \stopbuffer \framed[align=yes]{% This line generates an error\\ \typebuffer} \framed[align=yes]{% When one

Re: [NTG-context] setupblock with starttyping doesn't work

2013-01-31 Thread Aditya Mahajan
\endAddress \useblocks[Address] Some more text. \stoptext And if you really need a typing environment, you can use buffers: \startbuffer[address] #whatver \stopbuffer \getbuffer[address] or \typebuffer[address] Aditya

Re: [NTG-context] buffers (append)

2013-01-15 Thread Sietse Brouwer
-- \typebuffer[x] \stoptext ___ 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] New module: simplesteps.

2012-12-15 Thread Sietse Brouwer
friend, you would not tell with such high zest To children ardent for some desparate glory, The old Lie: Dulce et decorum est Pro patria mori. \thisistheend \typebuffer[mybuffer] %% end example What am I doing wrong? And is the description I put on the wiki correct? Cheers, Sietse

Re: [NTG-context] New module: simplesteps.

2012-12-15 Thread Andre Caldas
%% begin example \grabbufferdata[mybuffer][thisisthestart][thisistheend] \thisisthestart My friend, you would not tell with such high zest To children ardent for some desparate glory, The old Lie: Dulce et decorum est Pro patria mori. \thisistheend \typebuffer[mybuffer] %% end example

Re: [NTG-context] New module: simplesteps.

2012-12-15 Thread Marco Patzer
glory, The old Lie: Dulce et decorum est Pro patria mori. \thisistheend \typebuffer[mybuffer] %% end example What am I doing wrong? You have to wrap it in a macro: \starttext \define\thisisthestart {\grabbufferdata[mybuffer][thisisthestart][thisistheend]} \let\thisistheend\relax

Re: [NTG-context] New module: simplesteps.

2012-12-15 Thread Wolfgang Schuster
\grabbufferdata[mybuffer][thisisthestart][thisistheend] \thisisthestart My friend, you would not tell with such high zest To children ardent for some desparate glory, The old Lie: Dulce et decorum est Pro patria mori. \thisistheend \typebuffer[mybuffer] %% end example What am I doing

Re: [NTG-context] New module: simplesteps.

2012-12-15 Thread Sietse Brouwer
Lie: Dulce et decorum est Pro patria mori. \thisistheend \typebuffer[mybuffer] %% end example What am I doing wrong? And is the description I put on the wiki correct? The \grabbufferdata command reads only all text until the end command (e.g. \thisistheend) but the beginning command

Re: [NTG-context] verbatim boxes

2012-11-26 Thread Wolfgang Schuster
is like the effect of an old-age patient who smokes many packs of cigarettes per day – and we humans are the cigarettes. \stopbuffer \starttext \typebuffer[ward] \getbuffer[ward] \stoptext Wolfgang ___ If your question

Re: [NTG-context] Symbols

2012-11-21 Thread Hans Hagen
, unicoding=yes] \definefontsynonym [ZapfDingbats] [file:uzdr.afm] [features=dingbats] \stopbuffer \typebuffer \getbuffer I tend to qualify the Dingbat font in \TEX\ distributions as rather unstable because of name changes and them either or not being included. Therefore it's best to use the hard

Re: [NTG-context] Symbols

2012-11-21 Thread Willi Egger
=dingbats] \stopbuffer \typebuffer \getbuffer I tend to qualify the Dingbat font in \TEX\ distributions as rather unstable because of name changes and them either or not being included. Therefore it's best to use the hard coded name because that triggers the most visible error message

[NTG-context] multitone color problem

2012-04-24 Thread Peter Rolf
duotone} {\externalfigure[demo-b][color=blue-100]} {spot color} {\externalfigure[demo-b][color=yellow-100]} {spot color} \stopcombination \stopbaselinecorrection \stopbuffer \starttext \getbuffer \typebuffer \stoptext %%% Local Variables: %%% mode: context %%% TeX-master: %%% End

Re: [NTG-context] Small issue with dimensions

2011-11-14 Thread Romain Diss
} 12: \unit{125 g / l} 13: \unit{125 km/s} 14: \unit{125 m/s} 15: \unit{125 mA/s} 16: 1\unit{bit / second} \stopbuffer \typebuffer Result: \startlines \getbuffer \stoplines \stoptext All the best. -- Romain Diss romain.d...@yahoo.fr

[NTG-context] \unit problem

2011-11-03 Thread Romain Diss
GW} 107: \unit{345 mW} 108: \unit{152.20 mHz} 109: \unit{55.5 mmol} 110: \unit{6.7 mol/l} 111: \unit{125 g/l} 112: \unit{125 g / l} 113: \unit{125 km/s} 114: \unit{125 m/s} 115: \unit{125 mA/s} \stopbuffer \typebuffer Result: \startlines \getbuffer \stoplines \stoptext Thank you for your help

Re: [NTG-context] Include section number in reference

2011-10-15 Thread Wolfgang Schuster
?} \stopbuffer \getbuffer \typebuffer \referencetable[ref:test] \stoptext With the third argument you can control which prefixes (section numbers which are shown in front of a floats own counter value) are shown and how they should be formatted. Wolfgang

Re: [NTG-context] Line length limitation of typing block?

2011-08-16 Thread Wolfgang Schuster
with such line? The second example compiles well but the long is splitted. How to avoid this? (Adding ',space=fixed' to '\definetyping' doesn't help.) Use \typebuffer[ex1]. Wolfgang ___ If your question is of interest to others

Re: [NTG-context] Line length limitation of typing block?

2011-08-16 Thread Vladimir Lomov
' to '\definetyping' doesn't help.) Use \typebuffer[ex1]. Thank you, this rises another question... --- WBR, Vladimir Lomov -- More are taken in by hope than by cunning. -- Vauvenargues ___ If your

Re: [NTG-context] beta

2011-07-19 Thread Hans Hagen
\typebuffer[x][strip=yes] test \typebuffer[x][strip=8] test \stoptext -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53

Re: [NTG-context] math: too big space between function and argument

2011-05-25 Thread Paul Menzel
\biggl( \frac {3}{4} \biggr) %D \stopformula %D \stopbuffer %D \typebuffer %D %D which gives (notice the spacing before the parenthesis) %D %D \getbuffer %D %D I will assume that if \type{text} is something, then %D the default behaviour is desirable, if \type{text} is empty, then I add %D

Re: [NTG-context] math: too big space between function and argument

2011-05-24 Thread Aditya Mahajan
} \biggr) %D \stopformula %D %D and %D %D \startformula %D \Pr\left(\frac {3}{4} \right) \qquad \hbox{ vs } \qquad %D \Pr\biggl( \frac {3}{4} \biggr) %D \stopformula %D \stopbuffer %D \typebuffer %D %D which gives (notice the spacing before the parenthesis) %D %D \getbuffer %D %D I will assume

Re: [NTG-context] Title in textrule

2011-04-12 Thread Aditya Mahajan
\startbuffer %D \setuptextrules %D [width=90pt,distance=12pt,rulecolor=blue, %Dbodyfont=small,style=\sc,color=red] %D %D \starttextrule{Ship Building Tools} %D \nl \setuptolerance[tolerant] \input materie %D \stoptextrule %D \stopbuffer %D %D \bgroup \typebuffer \getbuffer \egroup %D %D

Re: [NTG-context] Title in textrule

2011-04-12 Thread Flavien Lambert
\stoptextrule %D \stopbuffer %D %D \bgroup \typebuffer \getbuffer \egroup %D %D \startbuffer %D \setuptextrules %D [location=inmargin, %Dbodyfont=small,style=slantedbold] %D %D \starttextrule{wonderful} %D \input tufte %D \stoptextrule %D \stopbuffer %D %D \bgroup \typebuffer \getbuffer

Re: [NTG-context] references

2011-02-28 Thread Stefan Müller
] \definereferenceformat [PageThree] [label=*] \definereferenceformat [PageFour] [label=both] \setuplabeltext[en][page=page~] \setuplabeltext[en][chapter=chapter~] \setuplabeltext[en][both={chapter~,~retpahc}] \stopbuffer \getbuffer[definitions] \starttext \chapter[one]{One} \typebuffer[definitions

Re: [NTG-context] references

2011-02-28 Thread Stefan Müller
[PageThree] [label=*] \definereferenceformat [PageFour] [label=both] \setuplabeltext[en][page=page~] \setuplabeltext[en][chapter=chapter~] \setuplabeltext[en][both={chapter~,~retpahc}] \stopbuffer \getbuffer[definitions] \starttext \chapter[one]{One} \typebuffer[definitions] \startbuffer \PageOne

[NTG-context] references

2011-02-11 Thread Hans Hagen
[definitions] \starttext \chapter[one]{One} \typebuffer[definitions] \startbuffer \PageOne[two] \PageTwo[two] \PageThree[two] \PageFour[two] \at{(}{)}[two] \at{!}[two] \at{page}[two] \at[two] \stopbuffer \typebuffer \startlines \getbuffer \stoplines \chapter[two]{Two} \typebuffer[definitions

[NTG-context] bug report/mkiv: verbatim text bug with tab parameter

2010-12-03 Thread Peter Schorsch
: in function 'flush' ...text/tex/texmf-context/tex/context/base/buff- ini.lua:216: in function 'typebuffer' main ctx instance:1: in main chunk. \dodotypeblockverbatim ...ter \c!escape \!!es

[NTG-context] new beta

2010-11-26 Thread Hans Hagen
hs the number of spans, so we can have: \DL[2,red,10]. (2) Buffers and typing This whole bunch has been cleaned up and pretty printing has been redone. The \type command accepts an optional argument with settings. as does \starttyping, \typebuffer and \typefile (and the defined variants

Re: [NTG-context] new beta

2010-11-26 Thread Willi Egger
printing has been redone. The \type command accepts an optional argument with settings. as does \starttyping, \typebuffer and \typefile (and the defined variants). The interface for defining visualizers might change a bit but I'm getting there. There is a chapter on it in the cld manual

Re: [NTG-context] hyphenated url

2010-10-27 Thread Peter Münster
bla } \startbuffer bla%bla \stopbuffer bla\footnote{ bla \typebuffer bla } \startbuffer \type{bla%bla} \stopbuffer bla\footnote{bla\getbuffer bla} \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact

Re: [NTG-context] Verbatim typing with numbers inside float

2010-10-06 Thread Hans Hagen
[strut=no,align=normal,frame=off]{\typebuffer} \stoplinenumbering \stopsetups \placealgorithm [here][alg:myalgorithm] {Very neat algorithm.} {\directsetup{algorithm}} - Hans Hagen

Re: [NTG-context] footnotes when using RtL (Arabic)

2010-10-05 Thread Hans Hagen
\startRLtyping At the right! أهلا \stopRLtyping \startalignment[l2r] \starttyping At the left! أهلا \stoptyping \stopalignment \startalignment[r2l] \starttyping At the right! أهلا \stoptyping \stopalignment \stopbuffer \typebuffer[sample] \page \startbuffer[settings] \setuplinenumbering[typing][location

Re: [NTG-context] footnotes when using RtL (Arabic)

2010-10-05 Thread Talal Al-Azem
\startRLtyping At the right! أهلا \stopRLtyping \startalignment[l2r] \starttyping At the left! أهلا \stoptyping \stopalignment \startalignment[r2l] \starttyping At the right! أهلا \stoptyping \stopalignment \stopbuffer \typebuffer[sample] \page \startbuffer[settings

Re: [NTG-context] dorecurse in table

2010-09-06 Thread Aditya Mahajan
\thinrules [alternativevariant=c,inbetween=\vskip2ex] test test \par \stopbuffer \typebuffer {\getbuffer} There are a couple of alternative ways to visualize rules using backgrounds. At first sight these may look strange, but they make sense in educational settings. The alternatives are more or less

Re: [NTG-context] unicode subscripts

2010-05-30 Thread Hans Hagen
‚‰â‚‹â‚Œâ‚Š$ %D \stopbuffer %D %D \typebuffer \blank \getbuffer \blank \unprotect \unexpanded\def\mathunicodesupercrap#1{\mathortext{{^{#1}}}{\high{#1}}} \unexpanded\def\mathunicodesubcrap #1{\mathortext{{_{#1}}}{\low {#1}}} \ifdefined\installanddefineactivecharacter\else \def

[NTG-context] simplefonts

2010-03-13 Thread Michael Saunders
{smallcaps}capped 123 \addff{oldstyle}123!}\blank % Hello there {\addff{smallcaps}capped \subff{smallcaps}normal} \blank % \stopbuffer % % \typebuffer \getbuffer Naturally, I don't know what any of this code means (which is why I seek a human language explanation), but I'm guessing

Re: [NTG-context] simplefonts

2010-03-12 Thread Hans Hagen
123 \addff{oldstyle}123!}\blank % Hello there {\addff{smallcaps}capped \subff{smallcaps}normal} \blank % \stopbuffer % % \typebuffer \getbuffer 4. For example, I gathered that I needed a [default] [default] [...onum=yes...] to get oldstyle numerals by default, but what if I want to use

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

2010-03-11 Thread Aditya Mahajan
-- \VL\LR \HL \stoptable}{\tt bodyfont=6pt,distance=small} \stopcombination} \stopbuffer \typebuffer \getbuffer \stoptext Further, I do not see the effect of \setupcaption[style=boldslanted] in example 11.10 (pp 34-35) Typo in the manual. It should be \setupcaptions[style

Re: [NTG-context] Occasional words sticking out from flush-right

2010-03-04 Thread James Fisher
the %D lines and post-process them by any tool that you like. The biggest advantage of using a pdf output is that we can show the output of code snippets. For example, \startbuffer some tex code \stopbuffer \typebuffer gives \getbuffer thereby ensuring that the documentation is showing

Re: [NTG-context] Occasional words sticking out from flush-right

2010-03-04 Thread Aditya Mahajan
\stopbuffer \typebuffer gives \getbuffer thereby ensuring that the documentation is showing the correct behavior. To do this in html requires additional context run, converting the output to png, and displaying the png (this is how the wiki treats context ... /context tags). That is also

Re: [NTG-context] Occasional words sticking out from flush-right

2010-03-04 Thread James Fisher
of using a pdf output is that we can show the output of code snippets. For example, \startbuffer some tex code \stopbuffer \typebuffer gives \getbuffer thereby ensuring that the documentation is showing the correct behavior. To do this in html requires additional context run, converting

Re: [NTG-context] Occasional words sticking out from flush-right

2010-03-03 Thread Aditya Mahajan
the output of code snippets. For example, \startbuffer some tex code \stopbuffer \typebuffer gives \getbuffer thereby ensuring that the documentation is showing the correct behavior. To do this in html requires additional context run, converting the output to png, and displaying the png

Re: [NTG-context] What do you miss in ConTeXt?

2010-02-11 Thread Hans Hagen
] \stopbuffer \typebuffer \getbuffer The following example code looks messy but this has to do with the fact that we want properly spaced sample injection. \startbuffer from here \startcolor[white]% \startbar[backbar]% \input zapf \removeunwantedspaces \stopbar

Re: [NTG-context] help! formulas set smaller?

2010-02-05 Thread Aditya Mahajan
\startformula[7pt] x = 1 \stopformula %D \stopbuffer %D %D \typebuffer \getbuffer So, setting a smaller formula can also be done by \startformula[9pt] ?! Yes, but then you will have to do this for every \startformula individually. Aditya

Re: [NTG-context] help! formulas set smaller?

2010-02-04 Thread Steffen Wolfrum
\stopbuffer %D %D \typebuffer \getbuffer So, setting a smaller formula can also be done by \startformula[9pt] ?! Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki

Re: [NTG-context] t-vim: inline typing?

2009-07-20 Thread Aditya Mahajan
\definevimtyping [RUBY] [syntax=ruby] %D %D \startRUBY %D #! /usr/bin/ruby %D # This is my first ruby program %D puts Hello World %D \stopRUBY %D \stopbuffer %D {\getbuffer} %D This was typed as \typebuffer %D %D The typing can be setup using \type{\setupvimtyping}. %D %D \showsetup{setupvimtyping} %D %D

Re: [NTG-context] Duotones with spot colors

2009-07-09 Thread Piotr Kopszak
[demo-b][color=blue-100]} {spot color} {\externalfigure[demo-b][color=yellow-100]} {spot color} \stopcombination \stopbaselinecorrection \stopbuffer \getbuffer \typebuffer \stoptext The images in the column indexed duotone do not show up. Piotr 2009/7/7 Hans Hagen pra...@wxs.nl: Piotr

Re: [NTG-context] How to Determine the Current File Name and Line Number in the ConTeXt Source?

2009-07-01 Thread Hans Hagen
],# line: number,# line: .. l.line + 2) end end end \stopluacode \ctxlua{document.set_number(oeps)} \startbuffer[oeps] # line: number test test \stopbuffer \ctxlua{document.add_number(oeps)} \typebuffer[oeps] \stoptext when i have time (or reason) i'll think about a more

Re: [NTG-context] [PATCH] Add begin_of_buffer and end_of_buffer hooks for lua pretty printers

2009-06-15 Thread Matthijs Kooijman
) +-- Types a single line of text (used by \type) +function buffers.typesingle(text) +hooks.begin_of_buffer('single') +hooks.flush_line(text) +hooks.end_of_buffer('single') +end + +-- Types text from the named buffer (used by \typebuffer and \starttyping) +function buffers.typebuffer(name

Re: [NTG-context] [PATCH] Add begin_of_buffer and end_of_buffer hooks for lua pretty printers

2009-06-14 Thread Hans Hagen
know what the first and last lines are. The attached patch adds two new hooks, begin_of_buffer and end_of_buffer, which will be called when typing a buffer or a file (e.g. \typebuffer or \typefile). They are not called for typing a phrase (e.g. \type). Is this patch acceptable for inclusion

[NTG-context] [PATCH] Add begin_of_buffer and end_of_buffer hooks for lua pretty printers

2009-06-11 Thread Matthijs Kooijman
lines are. The attached patch adds two new hooks, begin_of_buffer and end_of_buffer, which will be called when typing a buffer or a file (e.g. \typebuffer or \typefile). They are not called for typing a phrase (e.g. \type). Is this patch acceptable for inclusion? Gr. Matthijs signature.asc

Re: [NTG-context] \typebuffer with typing style

2009-06-10 Thread Matthijs Kooijman
Hi Peter, \setuptyping[option=TEX] This is what I am using now, but this changes the global settings and requires resetting them afterwards. Not so pretty. I was hoping for a better method to achieve this, but I'm starting to doubt there is one currently. I've been trying to give \typebuffer

Re: [NTG-context] \typebuffer with typing style

2009-06-10 Thread Peter Münster
. 2 ideas: - With \setuptyping[file][option=TEX] the global setting is only for \typefile or \typebuffer. - Use grouping, for example: \def\myTypeBuffer#1{\bgroup \setuptyping[...] \typebuffer[#1] \egroup} Cheers, Peter -- Contact information: http://pmrb.free.fr/contact

Re: [NTG-context] \typebuffer with typing style

2009-06-09 Thread Matthijs Kooijman
Hi all, Snip question about styled \typebuffer Shortly after sending my email, I realized the actual problem I was trying to solve was not the one I posted, so perhaps I can clarify that a bit. What I'm trying to do, is pass some text to a custom command, which should then be displayed

Re: [NTG-context] \typebuffer with typing style

2009-06-09 Thread Peter Münster
On Mon, 8 Jun 2009, Matthijs Kooijman wrote: \definetyping[FOO][option=FOO] \startbuffer[bar] baz \stopbuffer \typebuffer[FOO][bar] Perhaps you are looking for this: \setuptyping[option=TEX] \starttext \startbuffer[bar] This is \ConTeXt. \stopbuffer \typebuffer[bar] \stoptext

[NTG-context] \typebuffer with typing style

2009-06-08 Thread Matthijs Kooijman
\typebuffer, but that only seems to work with the default typing style. I'd like to do the following: \definetyping[FOO][option=FOO] \startbuffer[bar] baz \stopbuffer \typebuffer[FOO][bar] From looking at buff-ini.mkiv it seems typebuffer has some code to handle a second argument, but it seems

Re: [NTG-context] \typebuffer with typing style

2009-06-08 Thread Matthijs Kooijman
Hi all, since \startFOO \getbuffer[bar] \stopFOO gives me compile errors. Actually, that turned out to be my own typo. However, this doesn't give me what I want, but just a verbatim \getbuffer[bar]... Gr. Matthijs signature.asc Description: Digital signature

Re: [NTG-context] Dividing dimensions

2009-03-23 Thread Wolfgang Schuster
\dimen2=20pt \dimen4=15pt \dimen6=30pt \stopbuffer \typebuffer \getbuffer Because we can use \ETEX\ functions with \CONTEXT\ let's try to use them, the following example should work: \startbuffer \ifdim\dimexpr\dimen0/\dimen2\relax\dimexpr\dimen4/\dimen6\relax Second number is bigger. \else

[NTG-context] Simplified input for natural tables

2009-03-08 Thread Wolfgang Schuster
{\appendtoks \doTABLEsection[#1]{#2}\to\TBLfoot} %D \startbuffer %D \startTABLE %D \NC Text 1 \NC Text 2 \NC\NR %D \NC Text 3 \NC Text 4 \NC\NR %D \stopTABLE %D \stopbuffer %D %D My example from the begin of this module %D %D \typebuffer %D %D looks like this: %D %D \startlinecorrection %D

Re: [NTG-context] Simplified input for natural tables

2009-03-08 Thread Aditya Mahajan
\stopTABLEfoot{\appendtoks\doTABLEsection[#1]{#2}\to\TBLfoot} %D \startbuffer %D \startTABLE %D \NC Text 1 \NC Text 2 \NC\NR %D \NC Text 3 \NC Text 4 \NC\NR %D \stopTABLE %D \stopbuffer %D %D My example from the begin of this module %D %D \typebuffer %D %D looks like this: %D %D \startlinecorrection %D

Re: [NTG-context] looking for equivalence to LaTeX algorithm package

2008-11-30 Thread Wolfgang Schuster
$ is even} \STATE $X \Leftarrow X \times X$ \STATE $N \Leftarrow N / 2$ \ELSE[$N$ is odd] \STATE $y \Leftarrow y \times X$ \STATE $N \Leftarrow N - 1$ \ENDIF \ENDWHILE \stopalgorithm \stopbuffer \typebuffer \getbuffer %\placealgorithm % {Calculate $y = x^n$} % {\framed[frame=off,align=right,width

Re: [NTG-context] modifying URL wrapping rules

2008-11-21 Thread Lars Huttar
\stopbuffer %D %D \typebuffer which makes me wonder if I need to put the \startbuffer,\stopbuffer,\typebuffer commands in my tex code. But I think maybe it's markup for generating documentation. If so, I wonder why I can't find such generated documentation on \hyphenatedurl. Lars

[NTG-context] typebuffer extra line

2008-06-03 Thread Hans van der Meer
Exercising \typebuffer gives an extra blank line afterwards. See the following minimal example. How can I prevent this extra line? Using: ConTeXt ver: 2008.05.21 15:21 MKII fmt: 2008.5.24 int: english/english Example: \startbuffer[A] Contents of buffer A. \stopbuffer \startbuffer[B

Re: [NTG-context] typebuffer extra line

2008-06-03 Thread Taco Hoekwater
Hans van der Meer wrote: Exercising \typebuffer gives an extra blank line afterwards. See the following minimal example. How can I prevent this extra line? \setuptyping[file][before=,after=] Best wishes, Taco

Re: [NTG-context] typebuffer extra line

2008-06-03 Thread Wolfgang Schuster
2008/6/3 Hans van der Meer [EMAIL PROTECTED]: Exercising \typebuffer gives an extra blank line afterwards. See the following minimal example. How can I prevent this extra line? Using: ConTeXt ver: 2008.05.21 15:21 MKII fmt: 2008.5.24 int: english/english Example: \startbuffer

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
} \tab{text} text # \tbox \tex{text} \textreference[reference]{text} \textrule[top|bottom]{text} \textvariable[name] \thinrule \thinrules[settings] # \tightlayer \title[references]{text} # \to \tooltip[left|right|middle]{text}{text} \translate[name=text] \typ{text} \type{text} \typebuffer[name

<    1   2   3   >