=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
[somelayer]
[preset=lefttop,
x=1cm,
y=4cm]
[width=10cm,
align=normal]
{\getbuffer}
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel
]
\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
%
\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
% 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
\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
[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
,
]
\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
][
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
{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
\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
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
}
%\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
}
%\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
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
. 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
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
] \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
]
\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
[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
][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
\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
[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
]
\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
=., 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
]
\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
---
\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
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
} \stopitem
\stopitemize
\stopbuffer
\input ward \getbuffer
\let\snappedmath\ruledmbox
\input ward \getbuffer \input ward
\stoptext
-
Hans Hagen | PRAGMA
\startitem 12: \snappedmath { 22^0 } \stopitem
\stopitemize
\stopbuffer
\input ward \getbuffer
\let\snappedmath\ruledmbox
\input ward \getbuffer \input ward
\stoptext
-
Hans
} \stopitem
\stopitemize
\stopbuffer
\input ward \getbuffer
\let\snappedmath\ruledmbox
\input ward \getbuffer \input ward
\stoptext
-
Hans Hagen | PRAGMA ADE
{\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
=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
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
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
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
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
\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
{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
\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
\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
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
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
\startplacefigure [title=\getbuffer, list=Dutch scenery,
reference=fig:scenery]
\startcombination
\startcontent \externalfigure[cow][width=.5\textwidth] \stopcontent
\startcaption a) \stopcaption
\startcontent \externalfigure[mill][width
=]
\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
\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
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
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
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
:
\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
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
\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
}.
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
]
\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
{%
\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
=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
\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
]
\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
$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
}\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
]
..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
]
..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
\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
\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
\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
\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
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
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
? :)
\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
]
\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
=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
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
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
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
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
:
\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
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
,
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
=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
\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
]
\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
]
[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
]
[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
[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
]
{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
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
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
\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
, 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
) 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
\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
[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
} \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
]}]
\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
\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
:
\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
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
, 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
[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
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
401 - 500 of 982 matches
Mail list logo