Re: [NTG-context] Entering text into layers

2014-05-20 Thread Hans Hagen
=1cm, y=4cm] [width=10cm, align=normal] {\getbuffer} - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68

Re: [NTG-context] Entering text into layers

2014-05-19 Thread Hans Hagen
[somelayer] [preset=lefttop, x=1cm, y=4cm] [width=10cm, align=normal] {\getbuffer} - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel

Re: [NTG-context] [Metapost] Using mkIV and metapost to produce SVG

2014-05-06 Thread Hans Hagen
] \framed[align=middle,width=28mm,frame=off] { \SansBodyBold % Font definition done earlier Test to \par rendered \par } \stopcolor \stop \stopbuffer % \startuniqueMPgraphic{mp:margin} picture text; text := btex \getbuffer[buffer:dummy] etex

[NTG-context] [Metapost] Using mkIV and metapost to produce SVG

2014-05-06 Thread ralf . waldvogel
% \startuniqueMPgraphic{mp:margin}         picture text;     text := btex \getbuffer[buffer:dummy] etex;     draw text shifted(-11.8mm,-4.8mm );    % Some more fancy drawing her \stopuniqueMPgraphic Can I render that with MetaPost to SVG? Is it possible to render text as paths

[NTG-context] [Metapost] Using mkIV and metapost to produce SVG

2014-05-05 Thread ralf . waldvogel
% Font definition done earlier Test to \par rendered \par}\stopcolor \stop\stopbuffer% \startuniqueMPgraphic{mp:margin} picture text; text := btex \getbuffer[buffer:dummy] etex; draw text shifted(-11.8mm,-4.8mm ); % Some more fancy drawing her\stopuniqueMPgraphicCan I render

Re: [NTG-context] Unwanted whitespace for tables and enumerations after \inmargin headings

2014-04-19 Thread Wolfgang Schuster
\section{No Whitespace} No extra whitespace before items. \getbuffer[Item] \section{Extra Whitespace} \getbuffer[Item] Unexpected extra whitespace before items. \stoptext Here is one way to get rid of the extra white-space. I could not figure out a clean way of adding this signal to the setup

Re: [NTG-context] Unwanted whitespace for tables and enumerations after \inmargin headings

2014-04-18 Thread Thangalin
[itemz][each][joinedup] \startbuffer[Item] \startitemz \item Item \item Item \stopitemz \stopbuffer \starttext \section{No Whitespace} No extra whitespace before items. \getbuffer[Item] \section{Extra Whitespace} \getbuffer[Item] Unexpected extra whitespace before items

Re: [NTG-context] Unwanted whitespace for tables and enumerations after \inmargin headings

2014-04-18 Thread Aditya Mahajan
, ] \defineitemgroup[itemz] \setupitemgroup[itemz][each][joinedup] \startbuffer[Item] \startitemz \item Item \item Item \stopitemz \stopbuffer \starttext \section{No Whitespace} No extra whitespace before items. \getbuffer[Item] \section{Extra Whitespace} \getbuffer[Item] Unexpected extra

Re: [NTG-context] Unwanted whitespace for tables and enumerations after \inmargin headings

2014-04-18 Thread Rik Kabel
][ alternative=text, command=\MarginHead, ] \defineitemgroup[itemz] \setupitemgroup[itemz][each][joinedup] \startbuffer[Item] \startitemz \item Item \item Item \stopitemz \stopbuffer \starttext \section{No Whitespace} No extra whitespace before items. \getbuffer[Item] \section{Extra

[NTG-context] Unwanted whitespace for tables and enumerations after \inmargin headings

2014-04-17 Thread Rik Kabel
{No extra whitespace} With text here there is no extra whitespace before the itemization. \getbuffer[Item] \subsection{No extra whitespace} With text here there is no extra whitespace before the itemization. \getbuffer[Item] \section{Extra whitespace} \getbuffer[Item

Re: [NTG-context] Trimming strings and Lua string.trim question

2014-03-06 Thread Rik Kabel
\subject{Lua string.strip passed TeX buffer} ¦\StringStrip{\getbuffer[testbuffer]}¦ \subject{Lua string.strip passed TeX macro} ¦\StringStrip{\testmacro}¦ \subject{Lua utilities.strings.striplong passed TeX buffer} ¦\StringsStripLong{\getbuffer[testbuffer]}¦ \subject{Lua

Re: [NTG-context] Trimming strings and Lua string.trim question

2014-03-06 Thread Wolfgang Schuster
result is closer to what I expect in terms of internal whitespace, but still does not show expected trimming of leading and trailing whitespace. That trimming, of course, is the point of the exercise. This can’t work because \getbuffer is a unexpandable command and what you pass to Lua

Re: [NTG-context] Pgfplots - passing point coordinates by Lua

2014-02-16 Thread Jaroslav Hajtmar
} %\processcommalist[one,two,{three,four}]\ListEntry %\processseparatedlist[one*two*three,four][*]\ListEntry \def\zpracujparametry[#1]#2% {\processcommalist[#1]{\nastavparametr{#2}}} % Použití: % \zpracujparametry[1,5,3.7,4,5,8,9,11]{ % \getbuffer[funkce1] % \page % } \def\ZPRACUJPARAMETRY#1[#2]#3

Re: [NTG-context] Pgfplots - passing point coordinates by Lua

2014-02-16 Thread DesdeChaves
} %\processcommalist[one,two,{three,four}]\ListEntry %\processseparatedlist[one*two*three,four][*]\ListEntry \def\zpracujparametry[#1]#2% {\processcommalist[#1]{\nastavparametr{#2}}} % Použití: % \zpracujparametry[1,5,3.7,4,5,8,9,11]{ % \getbuffer[funkce1] % \page % } \def\ZPRACUJPARAMETRY#1[#2]#3

Re: [NTG-context] two questions on ConTeXt terminology

2014-02-04 Thread Keith J. Schultz
with \getbuffer and \putbuffer. Of course one could argue that it is actually like an LaTeX environment that has a side effect of setting a variable for later use. On the other side you have \starttable \stoptable which one would put in the realm of LaTeX-environments. One can practically, use

Re: [NTG-context] two questions on ConTeXt terminology

2014-02-03 Thread Keith J. Schultz
. Variable). This would be simailar to command as you can access the buffer with \getbuffer and \putbuffer. Of course one could argue that it is actually like an LaTeX environment that has a side effect of setting a variable for later use. On the other side you have \starttable \stoptable which one

Re: [NTG-context] two questions on ConTeXt terminology

2014-02-03 Thread Pablo Rodriguez
in a buffer(aka. Variable). This would be simailar to command as you can access the buffer with \getbuffer and \putbuffer. Of course one could argue that it is actually like an LaTeX environment that has a side effect of setting a variable for later use. On the other side you have

Re: [NTG-context] \placeinital special case

2014-01-24 Thread Hans Hagen
] \quotation {Knuth} \ignorespaces\input knuth \par \stopbuffer \type{m=2} \defineinitial[two][m=2] \getbuffer \page \type{m=1,method=auto} \defineinitial[two][m=1,method=auto] \getbuffer \page \type{m=1,method={auto,first,last

Re: [NTG-context] reset blocks with dorecurse

2014-01-15 Thread DesdeChaves
] \page \setcounter[userpage][1] \centerline{\kap{Maths}} \centerline{\kap{Worksheet}} \crlf Name:\thinrules[n=1]%, interlinespace=big] Evaluation:\thinrules[n=1]%, interlinespace=big] \getbuffer[examn] \stopsetups \starttext \setuppagenumbering[state=stop

[NTG-context] reset blocks with dorecurse

2014-01-14 Thread DesdeChaves
[userpage][1] \centerline{\kap{Maths}} \centerline{\kap{Worksheet}} \crlf Name:\thinrules[n=1]%, interlinespace=big] Evaluation:\thinrules[n=1]%, interlinespace=big] \getbuffer[examn] \stopsetups \starttext \setuppagenumbering[state=stop] \startbuffer[examn] \section{Questions

[NTG-context] line notes compress

2013-12-02 Thread Hans Hagen
][compress=yes,compressmethod=stopper] \getbuffer \setupnote[MyNote][compress=yes,compressmethod=separator] \getbuffer \setupnote[MyNote][compress=yes,compressmethod=space] \getbuffer \setupnote[MyNote][compress=yes,compressmethod=] \getbuffer \setupnote[MyNote][compress

Re: [NTG-context] Argument of \startInvoice has an extra }.

2013-11-09 Thread Peter Münster
\getparameters[PRM][#1]% \grabbufferdata[myLetter][beginInvoice][endInvoice]} \def\endInvoice{\getbuffer[myLetter]} \def\startInvoice#1\stopInvoice{#1} \starttext \beginInvoice[bla=blub, blub=bla] \startInvoice test \PRMblub \stopInvoice \endInvoice \beginInvoice \startInvoice test \stopInvoice \endInvoice

[NTG-context] korean

2013-10-31 Thread Hans Hagen
[colorscheme:100:3][b=.75] \definecolor[colorscheme:101:1][g=.75,b=.75] \definecolor[colorscheme:101:2][r=.75,b=.75] \definecolor[colorscheme:101:3][r=.75,g=.75] \startTEXpage[offset=5pt,foregroundstyle=\KoreanJMO] \getbuffer \par \setfontcolorscheme[100]\getbuffer \par

Re: [NTG-context] tnum and aligncharacter=yes

2013-10-21 Thread Wolfgang Schuster
] \definefontfamily[mainface][sans][Alwyn New] \setupbodyfont[mainface] \setupTABLE[alignmentcharacter=., aligncharacter=yes] \starttext \startbuffer \bTABLE \bTR \bTD 111.111 \eTD \eTR \bTR \bTD 444.444 \eTD \eTR \eTABLE \stopbuffer \getbuffer\addfeature[with-tnum]\getbuffer \stoptext --8

[NTG-context] tnum and aligncharacter=yes

2013-10-21 Thread Peter Münster
=., aligncharacter=yes] \starttext \startbuffer \bTABLE \bTR \bTD 111.111 \eTD \eTR \bTR \bTD 444.444 \eTD \eTR \eTABLE \stopbuffer \getbuffer\addfeature[with-tnum]\getbuffer \stoptext --8---cut here---end---8--- Please find attached the pdf file. How could I solve

Re: [NTG-context] tnum and aligncharacter=yes

2013-10-21 Thread Hans Hagen
] \setupTABLE[alignmentcharacter=., aligncharacter=yes] \starttext \startbuffer \bTABLE \bTR \bTD 111.111 \eTD \eTR \bTR \bTD 444.444 \eTD \eTR \eTABLE \stopbuffer \getbuffer\addfeature[with-tnum]\getbuffer \stoptext --8---cut here---end---8--- Please find

Re: [NTG-context] tnum and aligncharacter=yes

2013-10-21 Thread Hans Hagen
--- \definefontfeature[with-tnum][default][tnum=yes] \definefontfamily[mainface][sans][Alwyn New] \setupbodyfont[mainface] \setupTABLE[alignmentcharacter=., aligncharacter=yes] \starttext \startbuffer \bTABLE \bTR \bTD 111.111 \eTD \eTR \bTR \bTD 444.444 \eTD \eTR \eTABLE \stopbuffer \getbuffer\addfeature

[NTG-context] metafonts

2013-10-01 Thread Hans Hagen
ahlength := 1 ; drawarrow (1,4) -- (0,2) -- (2,3) -- (1,0) withcolor darkred ; endglyph ; \starttext \definemetafont[demo-symbols][demo-symbols.mp] \startbuffer watch this: {\demo\char261A} \stopbuffer \definefont[demo][demo@demo-symbols] \getbuffer \blank

Re: [NTG-context] startitemize bad with columns

2013-09-21 Thread Xan
} \stopitem \stopitemize \stopbuffer \input ward \getbuffer \let\snappedmath\ruledmbox \input ward \getbuffer \input ward \stoptext - Hans Hagen | PRAGMA

Re: [NTG-context] startitemize bad with columns

2013-09-19 Thread Hans Hagen
\startitem 12: \snappedmath { 22^0 } \stopitem \stopitemize \stopbuffer \input ward \getbuffer \let\snappedmath\ruledmbox \input ward \getbuffer \input ward \stoptext - Hans

Re: [NTG-context] startitemize bad with columns

2013-09-19 Thread Xan
} \stopitem \stopitemize \stopbuffer \input ward \getbuffer \let\snappedmath\ruledmbox \input ward \getbuffer \input ward \stoptext - Hans Hagen | PRAGMA ADE

[NTG-context] Bug in maths prime (derivative)

2013-09-16 Thread Otared Kavian
{\Bbb Z}$ then we denote \startformula f'_{n}(x) := \lim_{h\to 0}{f_{n}(x + h) - f_{n}(x) \over h}\qquad\mbox{and}\quad u^k_{n} := u_{n}(k) \stopformula \stopbuffer \getbuffer[math] \switchtobodyfont[times] \getbuffer[math] \switchtobodyfont[palatino] \getbuffer[math] \stoptext end

[NTG-context] beta

2013-09-09 Thread Hans Hagen
=global,method=default] \getbuffer[fences] \blank \stop \start \setupdirections[bidi=global,method=one] \enabletrackers[typesetters.directions.one] \enabletrackers[typesetters.directions.one.details] \getbuffer[fences] \blank \disabletrackers[typesetters.directions.one

Re: [NTG-context] buffers.prepend()

2013-09-03 Thread Hans Hagen
On 9/1/2013 2:30 PM, Peter Münster wrote: On Sun, Sep 01 2013, Wolfgang Schuster wrote: \startrawsetups[letter:section:content] Text before the content of the letter. \getbuffer[MyLetter] Text after the content of the letter. \stoprawsetups Yes, thanks! (I forgot about this part, because

[NTG-context] buffers.prepend() (was: letter module: File ended while scanning use of \buff_gobble)

2013-09-02 Thread Peter Münster
On Sun, Sep 01 2013, Wolfgang Schuster wrote: \startrawsetups[letter:section:content] Text before the content of the letter. \getbuffer[MyLetter] Text after the content of the letter. \stoprawsetups Yes, thanks! (I forgot about this part, because in my setup it was hidden in another

Re: [NTG-context] letter module: File ended while scanning use of \buff_gobble

2013-09-01 Thread Peter Münster
On Mon, Mar 04 2013, Wolfgang Schuster wrote: \usemodule[letter] \startsetups[letter:section:content] \getbuffer[MyLetter] \stopsetups \setuplettersection[content][alternative=setups] \def\StartLetter {\starttext \grabbufferdata[MyLetter][StartLetter][StopLetter]} \def

Re: [NTG-context] letter module: File ended while scanning use of \buff_gobble

2013-09-01 Thread Wolfgang Schuster
Am 01.09.2013 um 13:33 schrieb Peter Münster pmli...@free.fr: On Mon, Mar 04 2013, Wolfgang Schuster wrote: \usemodule[letter] \startsetups[letter:section:content] \getbuffer[MyLetter] \stopsetups \setuplettersection[content][alternative=setups] \def\StartLetter {\starttext

[NTG-context] \processcommalist and load values into macros.

2013-06-03 Thread Jaroslav Hajtmar
\page \stopbuffer \starttext \processcommalist[ {John, Smith, Prague, Václavské náměstí 20, 11500 }, {Peter, Paul, Brno, Nad struhou 232/12, 234 20 }, {Annie, Walter, Ostrava, Pod lipami 7, 321 54 }, ]{\getbuffer[mypostbuffer]} \stoptext

Re: [NTG-context] \textwidth vs local

2013-05-17 Thread Hans Hagen
{x\hss x} \par \dontleavehmode\ruledhbox to \textwidth {x\hss x} \par \dontleavehmode\ruledhbox to \makeupwidth{x\hss x} \par \stopbuffer \starttext \startitemize \startitem \getbuffer \stopitem \stopitemize \getbuffer \stoptext

Re: [NTG-context] \textwidth vs local

2013-05-17 Thread Idris Samawi Hamid ادريس سماوي حامد
\dontleavehmode\ruledhbox to \makeupwidth{x\hss x} \par \stopbuffer \starttext \startitemize \startitem \getbuffer \stopitem \stopitemize \getbuffer \stoptext -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523

[NTG-context] Loading Charis SIL

2013-05-07 Thread Willi Egger
\blank[2*line] \stopbuffer \starttext \starttitle[title=Charis SIL test] \getbuffer[A] \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

Re: [NTG-context] Why does startlines not work in a function

2013-04-26 Thread Hans Hagen
longline 7 longline 8 \stoplines \stopbuffer \startbuffer [meta:personalInfo:] \startlines shortline 1 shortline 2 shortline 3 shortline 4 \stoplines \stopbuffer \starttext \getbuffer[meta:personalInfo:\getvariable{meta}{personalInfo}] \stoptext

Re: [NTG-context] Why does startlines not work in a function

2013-04-26 Thread Cecil Westerhof
longline 3 longline 4 longline 5 longline 6 longline 7 longline 8 \stoplines \stopbuffer \startbuffer [meta:personalInfo:] \startlines shortline 1 shortline 2 shortline 3 shortline 4 \stoplines \stopbuffer \starttext \getbuffer[meta:personalInfo:\getvariable{meta

Re: [NTG-context] float combinations

2013-04-14 Thread Robert Blackstone
\startplacefigure [title=\getbuffer, list=Dutch scenery, reference=fig:scenery] \startcombination \startcontent \externalfigure[cow][width=.5\textwidth] \stopcontent \startcaption a) \stopcaption \startcontent \externalfigure[mill][width

Re: [NTG-context] float combinations

2013-04-13 Thread Marco Patzer
=] \setupitemgroup [subfigure] [a, text] \starttext \startbuffer Dutch scenery \startsubfigure \startitem A cow \stopitem \startitem A mill \stopitem \stopsubfigure \stopbuffer \startplacefigure [title=\getbuffer, list=Dutch scenery, reference=fig:scenery] \startcombination

Re: [NTG-context] markdown: referencing tables

2013-04-10 Thread Hans Hagen
\stopbuffer \placetable{whatever}{\getbuffer} - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma

Re: [NTG-context] markdown: referencing tables

2013-04-10 Thread Xenia
about: \startbuffer \startmarkdown ... \stopmarkdown \stopbuffer \placetable{whatever}{\getbuffer} Unfortunately not. Marco might be right and this is a markdown issue … ___ If your question is of interest

Re: [NTG-context] Hiding text

2013-03-22 Thread Sietse Brouwer
is it possible to define a start-stop command to hide text within? Something like: \definestartstop[Hidden][before=\starthiding,after=\stophiding] Just define any buffer, and don't call \getbuffer[mybuffer]. Buffers are not typeset, by default, until you get them. The below is shamelessly

Re: [NTG-context] Hiding text

2013-03-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
16:42:27 +0100, Sietse Brouwer sbbrou...@gmail.com wrote: is it possible to define a start-stop command to hide text within? Something like: \definestartstop[Hidden][before=\starthiding,after=\stophiding] Just define any buffer, and don't call \getbuffer[mybuffer]. Buffers are not typeset

Re: [NTG-context] Hiding text

2013-03-22 Thread Sietse Brouwer
: \definestartstop[Hidden][before=\starthiding,after=\stophiding] Just define any buffer, and don't call \getbuffer[mybuffer]. Buffers are not typeset, by default, until you get them. The below is shamelessly adapted from Hans's \starthiding (which already exists): \definebuffer[Hidden] % uncomment

Re: [NTG-context] letter module: File ended while scanning use of \buff_gobble

2013-03-04 Thread Wolfgang Schuster
to the letter module. \usemodule[letter] \startsetups[letter:section:content] \getbuffer[MyLetter] \stopsetups \setuplettersection[content][alternative=setups] \def\StartLetter {\starttext \grabbufferdata[MyLetter][StartLetter][StopLetter]} \def\StopLetter {\placeletter \stoptext

[NTG-context] footnotes by chapter

2013-02-24 Thread Meer, H. van der
\setupfootnotes[location=text,way=bychapter] \starttext \chapter{Chapter One}\getbuffer\placefootnotes \chapter{Chapter Two}\getbuffer\placefootnotes \chapter{Chapter Three}\getbuffer\placefootnotes \stoptext Note the setup parameter way=bychapter but the numbering is not restarted with the chapter

Re: [NTG-context] footnotes by chapter

2013-02-24 Thread Wolfgang Schuster
}. Again some text. Again some text. Again some text. Again some text. \stopbuffer \setupfootnotes[location=text,way=bychapter] \starttext \chapter{Chapter One}\getbuffer\placefootnotes \chapter{Chapter Two}\getbuffer\placefootnotes \chapter{Chapter Three}\getbuffer\placefootnotes \stoptext Note

Re: [NTG-context] Quick slide templates

2013-02-20 Thread Marco Patzer
] \stopbuffer \dorecurse{10}{%% \blackrule[width=\textwidth] \advance\cnt1cm \hskip\cnt \getbuffer[greenbar]\page} \stoptext Marco signature.asc Description: Digital signature ___ If your question is of interest

Re: [NTG-context] Quick slide templates

2013-02-20 Thread Jaroslav Hajtmar
{% \global\def\myparameter{#2}#1% }% \def\processmyparameters[#1]#2% {\processcommalist[#1]{\setmyparameter{#2}}} \startbuffer [greenbar] \blackrule[width=\myparameter, height=5mm, color=green] \stopbuffer \starttext \processmyparameters[1cm,2cm,3.5cm,4.5cm,8cm,11cm]{ \getbuffer[greenbar

[NTG-context] new tricks in beta

2013-02-20 Thread Hans Hagen
=green,mathstyle=small] \definemathfence [normalbracket] [bracket] [command=yes,color=blue] \startTEXpage[offset=1ex] \startbuffer test $a\frac{1}{normal}\scriptbracket{\frac{1}{script}}\normalbracket{\frac{1}{normal}}\smallbracket{\frac{1}{small}}c$ test \par \stopbuffer \getbuffer

Re: [NTG-context] Quick slide templates

2013-02-20 Thread Kumar Appaiah
\starttext \processmyparameters[1cm,2cm,3.5cm,4.5cm,8cm,11cm]{ \getbuffer[greenbar]\page} \stoptext Thank you for this solution. I just tried this, and this works well for me as well! Kumar -- Kumar Appaiah

Re: [NTG-context] Quick slide templates

2013-02-20 Thread Kumar Appaiah
] \blackrule[width=4cm, height=5mm, color=green] \stopbuffer \dorecurse{10}{%% \blackrule[width=\textwidth] \advance\cnt1cm \hskip\cnt \getbuffer[greenbar]\page} \stoptext This is a lovely solution, and I'll put off learning LuaTeX for now. Thanks! :-) Kumar -- Kumar Appaiah

[NTG-context] beta

2013-02-19 Thread Hans Hagen
$a\fenced[bar]{\frac{1}{b}}c$ test \par test $a\fenced[doublebar]{\frac{1}{b}}c$ test \par test $a\fenced[bracket]{\frac{1}{b}}c$ test \par test $a\fancybracket{\frac{1}{b}}c$ test \par \stopbuffer \getbuffer \setupmathfences [color=red] \getbuffer \stoptext

Re: [NTG-context] # sign in footnotes impossible ?

2013-02-16 Thread Philipp Gesang
}\stopbuffer foo\footnote{\getbuffer[containshash]} baz \stoptext Works here. Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpM1UfCjSPIV.pgp Description: PGP signature

Re: [NTG-context] code after \stopbuffer

2013-02-14 Thread Meer, H. van der
] ..contents.. \stopbuffer % in execution followed by \command \def\startmybuffer {\grabbufferdata[mybuffer][startmybuffer][stopmybuffer]} \def\stopmybuffer {\startframedtext[width=max] \getbuffer[mybuffer] \stopframedtext} \starttext \startmybuffer \input knuth \stopmybuffer

Re: [NTG-context] code after \stopbuffer

2013-02-13 Thread Wolfgang Schuster
] ..contents.. \stopbuffer % in execution followed by \command \def\startmybuffer {\grabbufferdata[mybuffer][startmybuffer][stopmybuffer]} \def\stopmybuffer {\startframedtext[width=max] \getbuffer[mybuffer] \stopframedtext} \starttext \startmybuffer \input knuth \stopmybuffer \stoptext

[NTG-context] Bug in \externalfigure[...][factor=max]

2013-02-02 Thread Aditya Mahajan
\externalfigure[cow][ratio][factor=max] \NC \NR \NC fit \NC \externalfigure[cow][ratio][factor=fit] \NC \NR \stopTABLE \stopbuffer \starttext \subject {Width Height} \defineexternalfigure[ratio][height=1cm,width=5cm] \getbuffer \subject {Height Width} \defineexternalfigure[ratio][width=1cm,height

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

[NTG-context] \processcommalist with any separator

2013-01-24 Thread Jaroslav Hajtmar
\processmylist[firstparameter, secondparameter, thirdparameter]{ \getbuffer[mybuffer] } % I would like use for example * as list separator (best option to choose any character). %\processmylist[Hello, He said.*Here is comma, used too.* And here is comma, too.]{ %\getbuffer[mybuffer

Re: [NTG-context] Figure captions in margin

2013-01-20 Thread Marco Patzer
\starttexdefinition stopplacesmartfigure \scratchdimen\hsize \hsize\maxdimen \setbox\scratchbox\vbox{\getbuffer[smart_figure_buffer]} \hsize\scratchdimen \luacode{userdata.do_place_smart_figure(\the\wd\scratchbox)} \stoptexdefinition \protect \starttext \startplacesmartfigure [title=Foo

Re: [NTG-context] buffers (append)

2013-01-15 Thread Sietse Brouwer
and best, From the wide zone through dizzying circles hurled, To that still centre where the spinning world Sleeps on its axis, to the heart of rest. \stopbuffer \startlines \getbuffer[x] \stoplines -- \startappendbuffer[x] \inmargin{Lord Peter Wimsey} Lay on thy whips, O Love, that we

Re: [NTG-context] buffers (append)

2013-01-14 Thread Wolfgang Schuster
cleanly as conTeXt macros. I imagine that this might be quite trivial for our TeX programming experts... (for once, a [useful?] suggestion that in the end will not entail many hours of work? :) \startbuffer[a] Line 1 \stopbuffer \startbuffer[b] Line 2 \stopbuffer \starttext \startlines \getbuffer

Re: [NTG-context] buffers (append)

2013-01-14 Thread Alan BRASLAU
? :) \startbuffer[a] Line 1 \stopbuffer \startbuffer[b] Line 2 \stopbuffer \starttext \startlines \getbuffer[a,b] \stoplines \stoptext Wolfgang Thank you Wolfgang, this is useful. However, it would still be helpful to be able to generically add to a buffer without having to rename

Re: [NTG-context] ntg-context Digest, Vol 103, Issue 37

2013-01-14 Thread Malte Stien
] \stopbuffer \setupmargindata [inoutermargin] [style=bold,color=red] \starttext \getbuffer \getbuffer \getbuffer \stoptext (3) How I found the answer Whenever I want to learn about a command I don't know yet, I grep for it in the source code. (I ignore bits like

Re: [NTG-context] Controlling Appearance of \inoutermargin

2013-01-13 Thread Sietse Brouwer
=red] \starttext \getbuffer \getbuffer \getbuffer \stoptext (3) How I found the answer Whenever I want to learn about a command I don't know yet, I grep for it in the source code. (I ignore bits like 'setup' or 'start'.) I've even got a shell command for it, to make searching the source

Re: [NTG-context] Node for startbuffer.

2013-01-09 Thread Hans Hagen
userdata.enablemystuff() enabled = true end function userdata.disablemystuff() enabled = false end nodes.tasks.appendaction(processors, normalizers, userdata.processmystuff) \stopluacode \startbuffer whatever \hbox{you} want \stopbuffer \ctxlua{userdata.enablemystuff()} \par \getbuffer \par \ctxlua

Re: [NTG-context] Place an annotation before it is defined

2013-01-07 Thread Marco Patzer
On 2013–01–07 Hans Hagen wrote: buffers (or blocks) Buffers apparently can't be used before the content is defined, but it works for blocks (I never used them). Test: \defineblock [bar] \starttext buf: \getbuffer[foo] BBB \startbuffer[foo] buf: AAA \stopbuffer \useblocks

Re: [NTG-context] Place an annotation before it is defined

2013-01-07 Thread Wolfgang Schuster
Am 07.01.2013 um 22:49 schrieb Marco Patzer home...@lavabit.com: On 2013–01–07 Hans Hagen wrote: buffers (or blocks) Buffers apparently can't be used before the content is defined, but it works for blocks (I never used them). Test: \defineblock [bar] \starttext buf: \getbuffer

Re: [NTG-context] Place an annotation before it is defined

2013-01-07 Thread Hans Hagen
On 1/7/2013 10:49 PM, Marco Patzer wrote: On 2013–01–07 Hans Hagen wrote: buffers (or blocks) Buffers apparently can't be used before the content is defined, but it works for blocks (I never used them). Test: \defineblock [bar] \starttext buf: \getbuffer[foo] BBB \startbuffer[foo

Re: [NTG-context] Place an annotation before it is defined

2013-01-07 Thread Jaroslav Hajtmar
: \defineblock [bar] \starttext buf: \getbuffer[foo] BBB \startbuffer[foo] buf: AAA \stopbuffer \useblocks [bar] DDD \beginbar block: CCC \endbar \stoptext Is there a reason why the blocks favour begin/end instead of start/stop? Looks weird somehow. Blocks use begin

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

Re: [NTG-context] using two columns on a poster (\setlayerframed)

2012-10-23 Thread Aditya Mahajan
\stopcolumns \stopbuffer \definelayer[paper][width=\paperwidth,height=\paperheight] \setupbackgrounds[page][background=paper] \setlayerframed[paper] [preset=lefttop,hoffset=.05\paperwidth,voffset=5cm] [width=0.9\paperwidth,align=normal,offset=5mm] {\getbuffer[abstract]} I would be grateful

Re: [NTG-context] using two columns on a poster (\setlayerframed)

2012-10-23 Thread Mojca Miklavec
] \startbuffer[abstract]% - this '%' is problematic \startsimplecolumns \input tufte \input tufte \stopsimplecolumns \stopbuffer \setlayerframed[paper] [voffset=1cm] [width=0.9\paperwidth] {\getbuffer[abstract]} \starttext abc \stoptext Mojca

Re: [NTG-context] Serious problems with kerning in setlayerframed

2012-10-23 Thread Hans Hagen
] [preset=lefttop,hoffset=.05\paperwidth,voffset=1cm] [width=0.9\paperwidth,align=middle,offset=4mm] {\getbuffer[title]} \definedfont[Bold at 38pt] No Kerning Screw Up \stoptext Mojca When you change the font inside, the par happens after a group and as a consequence the spacing

Re: [NTG-context] using two columns on a poster (\setlayerframed)

2012-10-23 Thread luigi scarso
] [width=0.9\paperwidth] {\getbuffer[abstract]} \starttext abc \stoptext Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

Re: [NTG-context] Using MPgraphics as externalfigures?

2012-08-03 Thread Aditya Mahajan
[here] [fig: 5 loop departed setup] {The start position for a 5-loop braid with departed loops} {\framed{\getbuffer[setup 5-loop basic]}} Come to think of it, is there another way of framing the incoming graphic? I don't want to include the frames in the MPcode as I may

[NTG-context] Using MPgraphics as externalfigures?

2012-08-01 Thread Mari Voipio
] {The start position for a 5-loop braid with departed loops} {\framed{\getbuffer[setup 5-loop basic]}} Come to think of it, is there another way of framing the incoming graphic? I don't want to include the frames in the MPcode as I may not always want them, but that \framed

Re: [NTG-context] 2 columns: 1 language per column (solved)

2012-07-31 Thread Peter Münster
function create_pages(s) local fp = io.open(pages.tex, w) fp:write(format([[ \enablemode[columns] \environment env \starttext \getbuffer[%s] \stoptext ]], s)) fp:close() os.execute(format(context --result=pages-%s pages, s)) end local function create_columns(l, r) local function pdf(x

Re: [NTG-context] 2 columns: 1 language per column (solved)

2012-07-31 Thread Otared Kavian
env \starttext \getbuffer[%s] \stoptext ]], s)) fp:close() os.execute(format(context --result=pages-%s pages, s)) end local function create_columns(l, r) local function pdf(x) return pages- .. x .. .pdf end create_pages(l) create_pages(r) local pdfobj = epdf.open(pdf(l)) local n

[NTG-context] A strange problem, probably with \startitemize[columns]

2012-07-28 Thread Marcin Borkowski
\egroup} \def\todo#1{{\em \kap{do dopisania}: #1}} %\setupinteraction[state=start] \enablemode[nauczyciel] %\disablemode[nauczyciel] \def\startteacher{\grabbufferdata[teacher][startteacher][stopteacher]} \doifmodeelse{nauczyciel}{\def\stopteacher{\par{\switchtobodyfont[small]\getbuffer[teacher]\par

Re: [NTG-context] simpleslides help needed

2012-07-24 Thread Pavneet Arora
, the existing spreadsheet programs required the user to type all of these items into the same (typically single) sheet’s cells.% \stopbuffer \starttext \startquotation \getbuffer \stopquotation \setupdelimitedtext[quotation][leftmargin=3cm] \startquotation \getbuffer \stopquotation \quotation{\getbuffer

Re: [NTG-context] simpleslides help needed

2012-07-23 Thread Wolfgang Schuster
) sheet’s cells.% \stopbuffer \starttext \startquotation \getbuffer \stopquotation \setupdelimitedtext[quotation][leftmargin=3cm] \startquotation \getbuffer \stopquotation \quotation{\getbuffer} \startnarrower[3*middle] \quotation{\getbuffer} \stopnarrower \stoptext Wolfgang

Re: [NTG-context] math symbol: blacktriangle

2012-07-18 Thread Hans Hagen
\switchtobodyfont[modern-designsize] \subject{modern-designsize} \getbuffer \blank \switchtobodyfont[modern]\subject{modern} \getbuffer \blank \switchtobodyfont[xits] \subject{xits} \getbuffer \blank \switchtobodyfont[pagella] \subject{pagella} \getbuffer \blank

Re: [NTG-context] math symbol: blacktriangle

2012-07-18 Thread Andreas Mang
[modern-designsize] \subject{modern-designsize} \getbuffer \blank \switchtobodyfont[modern]\subject{modern} \getbuffer \blank \switchtobodyfont[xits] \subject{xits} \getbuffer \blank \switchtobodyfont[pagella] \subject{pagella} \getbuffer \blank \stoptext

Re: [NTG-context] math symbol: blacktriangle

2012-07-18 Thread Aditya Mahajan
} \NC \triangleright \NC \meaning\triangleright \NC \NR \HL \stoptabulate \stopbuffer \starttext \switchtobodyfont[modern-designsize] \subject{modern-designsize} \getbuffer \blank \switchtobodyfont[modern]\subject{modern} \getbuffer \blank \switchtobodyfont

[NTG-context] write my own text in the header

2012-07-17 Thread dalyoung
]}] \setupbackgrounds[page][background=yellow-spring] \dontleavehmode \blank[.5cm] \placefigure[none][]{} {\getbuffer[TitleOfSlides]} \blank[1.5cm] \placefigure[none][]{} {\getbuffer[Speaker]} \page \component TestPage ... --Output The background yellow-spring is appeared in the first page(Title

[NTG-context] imposition broken again

2012-07-09 Thread Henning Hraban Ramm
\dorecurse{16}{\getbuffer[Fakepage]\page} \stoptext Grüßlinge, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others

[NTG-context] Two questions about buffers

2012-06-30 Thread Marcin Borkowski
: \starttext \def\startMyEnv{\dostartbuffer[MyEnv][startMyEnv][stopMyEnv]} \def\stopMyEnv{{\tfxx\getbuffer[MyEnv]\par}} \input tufte \startMyEnv \input knuth \stopMyEnv \input tufte \stoptext Am I doing something wrong here? TIA -- Marcin Borkowski http://mbork.pl

Re: [NTG-context] Two questions about buffers

2012-06-30 Thread Hans Hagen
with \baselineskip; here is an example: \starttext \def\startMyEnv{\dostartbuffer[MyEnv][startMyEnv][stopMyEnv]} \def\stopMyEnv{{\tfxx\getbuffer[MyEnv]\par}} \input tufte \startMyEnv \input knuth \stopMyEnv \input tufte \stoptext Am I doing something wrong here? \tfxx just switches a font

Re: [NTG-context] Two questions about buffers

2012-06-30 Thread Wolfgang Schuster
, there's a problem with \baselineskip; here is an example: \starttext \def\startMyEnv{\dostartbuffer[MyEnv][startMyEnv][stopMyEnv]} \def\stopMyEnv{{\tfxx\getbuffer[MyEnv]\par}} \input tufte \startMyEnv \input knuth \stopMyEnv \input tufte \stoptext Am I doing something wrong here

Re: [NTG-context] itemize in two columns and pagebreaks

2012-06-29 Thread Marcin Borkowski
[nauczyciel] \def\startteacher{\grabbufferdata[teacher][startteacher][stopteacher]} \doifmodeelse{nauczyciel}{\def\stopteacher{\getbuffer[teacher]}}{\def\stopteacher{}} \def\startanswer{\grabbufferdata[answer][startanswer][stopanswer]} \doifmodeelse{nauczyciel}{\def\stopanswer{\blank[small]{\sl

Re: [NTG-context] A problem with modes

2012-06-26 Thread Wolfgang Schuster
with \definestartstop? No you can’t. Or is there a better way to do something like this? It depends on what you want to do. You can create a buffer command: \def\startamode{\grabbufferdata[amode][startamode][stopamode]} %\def\stopamode {\getbuffer[amode]} \starttext All modes. \startamode “A” mode

<    1   2   3   4   5   6   7   8   9   10   >