inface]
\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---
\startbuffer[test-footnote]
所有动物都生而平等,但有些动物比其他动物更平等。所有动物都生而平等,
但有些动物比其他动物更平等。所有动物都生而平等,但有些动物比其他动物更平等。
\stopbuffer
\getbuffer[test-footnote]
\blank
测试\footnote{\getbuffer[test-footnote]}
\stoptext
Just I added \setupfootnotes[style={\setscript[hanzi]}], the line
break can work.
--
Best regards,
Li Yanrui
\cell {$c=2a+3b$} \text {with $a=5$}
\cell {$c=10+3b$} \text {and $b=6$}
\cell {$c=10+18$} \text {we get}
\cell {$c=28$}
\stopSTEPtable
\stopbuffer
How can one center the following \type{\STEPchart}?
\getbuffer[test-chart]
\stoptext
I should add that
tartbuffer
\startlinetable
\NC \input knuth\NC \input ward \NC\NR
\NC \bf\input ward \NC \bf\input knuth \NC\NR
\stoplinetable
\stopbuffer
% linetable on one single page
\setuplinetable [c][1] [width=.5\textwidth]
\setuplinetable [c][2] [width=.5\textwidth]
\getbuffer
\page
% linetable streche
round/yellowspring][width=\paperwidth]}]
\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&
to 1cm {\vbox{\MinBase\darkred{\getbuffer[Kerning]
{\hbox to 1cm {\vbox{\MinNode{\getbuffer[Kerning]
\stopoverlay
\stopTEXpage
\stoptext
ok, fixed in next beta (if your're in a hurry i can send you a patch);
bug was introduced when finishing rough ends of right
e]
\input tufte
\stopgb
\stopbuffer
\startbuffer[right]
\startgb[none]
\input zapf
\stopgb
\stopbuffer
\starttext
\input tufte
\definepairedbox[gb][location={right,top}]
\startbaselinecorrection
\placepairedbox[gb]
{\getbuffer[left]}
{\getbuffer[right]}
\stopbaselinecorrection
\input
nitial[two] \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,
lign={flushleft}]%
\bgroup%
\vbox\bgroup}
\def\StopBox{\egroup\egroup\egroup}% close vbox, framed, hbox
\def\MeasureBuffer[#1]{\setbox0\hbox{\getbuffer[#1]}%
ht: \the\ht0\par}
% XML
\startbuffer[
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 'setup' or 'start'.) I've
even got a shell comm
o not:
> \startformula
> \breve x^n + \bar y^n = \hat z^n.
> \stopformula
> \stopbuffer
>
> \starttext
> \switchtobodyfont[Charis] \getbuffer
> \switchtobodyfont[Doulos] \getbuffer
> \switchtobodyfont[Gentium] \getbuffer
> \showmathcharacters
> \stoptext
> \end
>
>
\NC Animal\NC Description \NC Price (\$) \NC \AR
\HL[2]
\NC Gnat \NC per gram \NC 13.65 \NC \AR
\NC \NC each \NC 0.01 \NC \AR
\NC Gnu \NC stuffed \NC 92.50 \NC \AR
\NC Emu \NC stuffed \NC 33.33 \NC \AR
\NC Armadi
}
%\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
inline math and \dfrac in display
math.
In the current implmentation \frac works correctly, but \tfrac does not.
For example:
\startbuffer
\frac 12 \tfrac 12 \dfrac 12
\stopbuffer
\starttext
$\getbuffer$
\startformula \getbuffer \stopformula
\stoptext
The output of \frac and \dfrac is correct
would give, in pseudo-code:
\starttext
\startleftrightbuffers
\leftframe{\getbuffer[left]}
\rightframe{\getbuffer[right}
\stopleftrightbuffers
Here, the normal text begins, it will flow below the frames...
\stoptext
Is this possible? How would I code that?
Thanks for any pointers
Thomas
e{cities.csv}
\starttext
\startbuffer
This is located in Germany: \cA\par
\stopbuffer
\section{Cities in Germany}
\doloopif{\cB}{==}{Germany}{\getbuffer}
\section{Cities not in Germany}
\doloopif{\cB}{~=}{Germany}{\getbuffer}
\stoptext
Contents from "citi
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
ormal,foregroundstyle=\bfd,foregroundcolor=blue]{\starteffect[inner]\getbuffer[test]\stopeffect}}
{\framed[align=normal,foregroundstyle=\bfd,foregroundcolor=red]
{\starteffect[outer]\getbuffer[test]\stopeffect}}
\stopoverlay
\sto
t]
> \setscript[hanzi]
> \setupbodyfont[myfonts,rm,11pt]
>
> \starttext
> \startbuffer[test-footnote]
> 所有动物都生而平等,但有些动物比其他动物更平等。所有动物都生而平等,
> 但有些动物比其他动物更平等。所有动物都生而平等,但有些动物比其他动物更平等。
> \stopbuffer
> \getbuffer[test-footnote]
> \blank
> 测试\footnote{\getbuffer[test-footnote]}
> \st
\eTD\bTD middle \eTD\eTR
\stopbuffer
\bTABLE[width=broad] \getbuffer \eTABLE % OK
\bTABLE[width=broad]
\setupTABLE [c] [1] [align=flushright]
\setupTABLE [c] [2] [align=flushleft]
\setupTABLE [c] [3] [align=middle]
\getbuffer % not OK!
\eTABLE
\stoptext
}]
[{\em \characters{\recurselevel}}]
[{\em \Characters{\recurselevel}}]
({\em \characters{\recurselevel}})
({\em \Characters{\recurselevel}})
\par}
\stopTEXpage
\stopbuffer
\getbuffer[chars]
\def\DesiredFont{TeX Gyre Pagella}
\getbuffer
[backspace=20mm,width=170mm,topspace=20mm,height=250mm]
\starttext
\startbuffer
\startMPcode
pair a, b;
a := (0,0);
b := (50,50);
draw a -- b;
\stopMPcode
\stopbuffer
\floatright{}{\getbuffer}
\startbuffer
\startMPcode
pair a;
a := 2cm;
draw fullcircle scaled (2*a);
\stopMPcode
\stopbuffer
Name
\stopbuffer
\starttext
\showframe
\adaptpapersize[tblcard,mirrored][letter,portrait]\getbuffer[tblcard]
\page
\getbuffer[tblcard]
\stoptext
--
Pavneet Arora m: +1 647-406-6843
Waroc Informatik
simpler:
\starttext
\startxtable
\startxtablehead[head]
\doloopif{\lineno}{<}{2}{\getbuffer[loop]}
\stopxtablehead
\startxtablebody
\doloopif{\lineno}{>}{1}{\getbuffer[loop]}
\stopxtablebody
\stopxtable
\stoptext
Only loop header with CSV lines numbered below 2
]
\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
eraction
[state=start]
\starttext
test {\getbuffer[comurl]} text.% HEY!
test
\startfootnote
test \getbuffer[comurl]\ text.% HEY!
\stopfootnote{} text.% HEY!
\stoptext
Here, the "%" character can be used for URL, both in bodytext and footnote, but
works as "comment", too.
cture}{\getbuffer[mypic]}
The problem is that the figure is not centred: it is always aligned with
the left side of the document. I guess this has something to do with
Context not being able to get the image bounds, since it works fine for
tikz images that are already precompiled into PDFs:
\placefigu
Hi all,
I try to make-up an old book...
Due to the fact that it is a scientific text there are footnotes: about 70
I have them all in buffers. However when saying \footnote{\getbuffer[1]} I get
an ugly new line in the footnote at the bottom of the page. - How to prevent
this unnecessary hard
Am 26.06.2012 um 23:25 schrieb Marcin Borkowski:
>>> 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]}
>
y than
\placefigure[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 i
\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][wid
2013 16:42:27 +0100, Sietse Brouwer 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, by default,
\startTEXpage
\startoverlay
{\hbox to 1cm {\vbox{\MinBase\darkred{\getbuffer[Kerning]
{\hbox to 1cm {\vbox{\MinNode{\getbuffer[Kerning]
\stopoverlay
\stopTEXpage
\stoptext
ok, fixed in next beta (if your're in a hurry i can send you a
patch); bug was introduced when fini
}
\marking[M]{k1}\marking[M]{k2}
\input knuth
\section{Zapf}
\marking[M]{z}
\input zapf
\stopbuffer
\dorecurse{10}{\getbuffer}
\stoptext
---
If I try the same example in columnset layout, only last variant works
as expected
Aditya Mahajan wrote:
> On Mon, 31 Jul 2006, David Arnold wrote:
>
>
>> All,
>>
>> I would like to use:
>>
>> \placefigure
>> [right][fig:pythagoras]
>> {An early portrait of Pythagoras.}
>> {\getbuffer[figure]}
>>
>> And I
]
\definelayer[page][width=\paperwidth,height=\paperheight]
\starttext
\startbuffer[a]
\input ward
\stopbuffer
\startbuffer[b]
\input ward
\stopbuffer
\setlayerframed[page][preset=lefttop,
x=2cm,y=2cm][width=5cm,align=normal]{\getbuffer[a]}
\setlayerframed[page][preset=rightbottom,x=2cm,y=2cm
tartstandardmakeup[align=center]
\setupbackgrounds[header][text][background=]
\setupindenting[none]
\setupinterlinespace[24pt]
\getbuffer[UpperBanner]
\blank[line]
\getbuffer[ApprovedByPolukhin]
\blank[line]
\getbuffer[SyllabusIndex]
\blank[line]
\getbuffer[DisciplineBanner]
\blank[line]
ula
\{x\in\mathbb R~:~ x^2=1\}%Too small
\stopformula
\startformula
\bigl\{x\in\mathbb R~:~ x^2=1\bigr\}%I like this one
\stopformula
\startformula
\Bigl\{x\in\mathbb R~:~ x^2=1\Bigr\}%Too big
\stopformula
\getbuffer
\setupmathfence[Set][factor=1]%I like
%D 2\biggl( \frac {3}{4} \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 (
etups
\setupheadertexts[\directsetup{header}]
\startbuffer[tablerow]
\startxrow
\startxcell first \stopxcell
\startxcell second \stopxcell
\stopxrow
\stopbuffer
\startbuffer[table]
\startxtable
\startxtablehead[head]
\getbuffer[tablerow]
\s
ws of that data, and the
formulas that acted on that data were very separate concepts.
Yet in every case, 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 \stopquo
g
\language[en]
What would be expected in english:
\language[fr]
\m{12,345.567}~kg --- \m{12,345.567,89}~kg --- \m{345.567,89}~kg
\stoptabulate
\startsection[title=French language]
\language[fr]
\startsubsection[title=Normal order]
\setupunit[order=normal]
\getbuffer
idth]
> \bTABLE[split=yes]
> \bTR \bTD[nr=3] 1 \eTD \bTD[nc=2] 2/3 \eTD \bTD[nr=3] 4 \eTD \eTR
> \bTR \bTD 2 \eTD \bTD 3 \eTD \eTR
> \bTR \bTD 2 \eTD \bTD 3 \eTD \eTR
> \bTR \bTD[nc=3] 1/2/3 \eTD \bTD 4 \eTD \eTR
> \bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 4 \eTD \eTR
>
$x^^2 + x$}\par
\dontleavehmode\ruledhbox{$x__2 + x$}\blank
\stopbuffer
\startTEXpage[offset=3pt]
\getbuffer
\Umathspaceafterscript \textstyle0pt
\Umathspacebeforescript\textstyle0pt
\getbuffer
\Umathextrasupspace\textstyle20pt
\Umathextrasubspace
\stoptext
Amazing.
This also makes it easy to "drop a shadow", a simplified version being
something like:
\starttext
\startbuffer
\framed[align=normal]{\bf\input{tufte}}
\stopbuffer
\startMPpage
draw outlinetext.b
("\getbuffer")
(withcolor .85
tupbodyfont[mygyre]
\starttext
\section{roman (rm)}
{\rm \getbuffer[tests]}
\section{sans-serif (ss)}
{\ss \getbuffer[tests]}
\section{teletype (tt)}
{\tt \getbuffer[tests]}
\stoptext
I'll update Russian section in the wiki, once these points are clarified.
d,flushright},width=90mm]
{\getbuffer}
\framedtext
[align={broad,flushleft},width=90mm]
{\getbuffer}
\framedtext
[align=middle,width=90mm]
{\getbuffer}
some time in the future we can think of language specific defaults, like
\let\raggedleft\veryraggedleft
\let\raggedleft\veryraggedrigh
papersize [wissenschaft]
\setuplayout
[topspace=40pt,
header=0pt,
headerdistance=0pt,
backspace=42pt,
leftmargin=0pt,
width=280pt,
height=560pt,
rightmargindistance=20pt,
rightmargin=100pt,
footer=0pt]
\setuppagenumbering[alternative=doublesided]
%% Margin block setup.
\setupmarginblo
= c^2
\stopformula
\stopbuffer
\starttext
\dorecurse{3}{\getbuffer}
Lets start subformulas
\startsubformulas
\dorecurse{3}{\getbuffer}
\stopsubformulas
Also works inside alignments
\startsubformulas
\placeformula \startformula \startalign
\NC A \EQ B + C \NR[first]
\NC D \EQ E + F
!conversion=\v!character,
\c!separator=\@@fmseparator,
\c!indentnext=\@@fmindentnext]
\protect
%D The test cases
\startbuffer
\placeformula \startformula
a^2 + b^2 = c^2
\stopformula
\stopbuffer
\startsetups[test]
\dorecurse{3}{\getbuffer}
Lets start subformulas
\startsubformulas
\dorecurse
en]
> \stopsetups
>
> \startsetups table:normal
> \setupTABLE[background=,frame=on]
> \stopsetups
>
> \setupcolors[state=start]
>
> \starttext
>
> \startbuffer
> \bTABLE
> \dorecurse{10}
> {\bTR
> \bTD Text \eTD\bTD Text \eTD
>\eTR}
>
All,
How do you set up:
\startlinecorrection[blank]
\midaligned{\getbuffer[table]}
\stoplinecorrection
so ensuing lines are not indented?
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
o scale?
\starttext
\startbuffer[address]
Name \crlf
Address 1 \crlf
A long line that wraps \crlf
Town \crlf
Postcode
\stopbuffer
\framed[width=3cm,align=flushleft]{\getbuffer[address]}
\framed[width=3cm,align=flushleft]{\scale[factor=fit]{\getbuffer[address]}}
\stoptext
Did you try \framedtex
differs "1" from "2"?
* em fs
\startbuffer[dimensions]
\starttabulate
\NC em \EQ \the\dimexpr1em\relax \NC\NR % \emwidth
\NC fs \EQ \the\dimexpr1fs\relax \NC\NR % \globalbodyfontsize
\stoptabulate
\stopbuffer
\starttext
\getbuffer[dimensions]
\setupbodyfont[14.4pt]
\
}
\start
\leftskip 4em
\input ward\par
\stop
\subject{Parindent}
\start
\parindent 4em
\input ward\par
\stop
\subject{Hangindent}
\start
\hangindent 4em
\hangafter -2
\input ward\par
\stop
\stopbuffer
\title{Left to right}
\startalignment[lefttoright]
\getbuffer
ake my data from xml, the content of the frames
will be taken from buffers.
So this would give, in pseudo-code:
\starttext
\startleftrightbuffers
\leftframe{\getbuffer[left]}
\rightframe{\getbuffer[right}
\stopleftrightbuffers
Here, the normal text begins, it will flow below the
fullcircle scaled 2cm withcolor red ;
\stopbuffer
\startbuffer[fig2]
draw unitsquare scaled 2cm withcolor red ;
\stopbuffer
\startmode[makepdf]
\starttext
\startMPpage
\getbuffer[fig1]
\stopMPpage
\startMPpage
\getbuffer[fig2
-1}}\Bigr)^2
\stopformula
\startformula
\sqrt{1+\Bigl({f(x_k)-f(x_{k-1}) \over x_k - x_{k-1}}\Bigr)^2}
\stopformula
\stopbuffer
\getbuffer[math]
\hairline
\setupmathradical[sqrt][alternative=default]
\getbuffer[math]
\stoptext
interesting side effect of Ustack (i'll look at it)
\getbuffer command for each of the different uses
in my global document.
For now, unfortunately, I cannot come up with a minimal example because the
question I am asking is about a real situation where nothing is minimal. That
is why I am asking a general abstract question to understand the general
\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
:\starttext\startbuffer[MathSpacing]Example with mkiv:With \type{\tfd}:$\tfd Q, Y, N, P, Y, Z, \quad PYR$\blank[big]With \type{\bf}$\bf Q, Y, N, P, Y, Z, \quad PYR$\blank[big]With normal LM math fonts:$Q,Y,N,P,Y,Z, \quad PYR$\stopbuffer\getbuffer[MathSpacing]\blank\thinrule\blankNow with \type
k-rul,mkiv
%D \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 \eg
mething] \blank
\xmlflush{#1}
\blank \relax [stop something] \blank
\stopxmlsetups
\startxmlsetups xml:sometex
\pushcatcodetable
\catcodetable\ctxcatcodes
\getbuffer[\xmlflush{#1}]
\popcatcodetable
\stopxmlsetups
\starttext
\xmlprocessbuffer{main}{example}{}
\stoptext
I'll replace \processTEXbuffer
port=yes,xhtml=yes,css={\jobname-css.tmp}]
>>
>> \starttext
>>
>> \startbuffer
>> \bTR\bTD flush right \eTD\bTD ~ \eTD\bTD ~~ \eTD\eTR
>> \bTR\bTD ~ ~ \eTD\bTD flush left \eTD\bTD ~~ \eTD\eTR
>> \bTR\bTD ~ ~ \eTD\bTD
}
\stopTEXpage
\stopbuffer
\getbuffer[chars]
\def\DesiredFont{TeX Gyre Pagella}
\getbuffer[chars]
\stoptext
This shows that sequences such as ({\em f}) are corrected with the
closing parenthesis, but not with the opening one.
Wouldn’t it be possible that italic correction could
subsection}]
\dorecurse{2}{\getbuffer[mybuffer]}
\stopsubsection
\stopsection
\stopchapter
\startchapter
[title={Second chapter}]
\startsection
[title={Second section}]
\dorecurse{2}{\getbuffer[mybuffer]}
\stopsection
\stoptheorem
\stopchapter
\stoptext
end example
placed next to the
figure. Would you be so kind to have a look into this matter?
example:
\startbuffer[ward]
\input ward
\stopbuffer
\setuplayout[location=middle]
\starttext
\placefigure
[left,none]
[]
{}
{\externalfigure[hacker][height=.3\textheight]}
\quotation{\getbuffer
Hi Hans,
can you add an \unexpanded (as in mkiv) to the mkii definition of
\getbuffer?
[buff-ini.mkii]
\unexpanded\def\getbuffer
{\dodoubleempty\dogetbuffer}
Without it compilation breaks here somehow (error with my nested buffers).
No such problems with the \unexpanded definition. And
c {\variant[sc]pqr}}\crlf
\stopbuffer
\typebuffer \getbuffer
\def\ignoreimplicitspaces
{\doifnextcharelse\relax\relax\relax}
\def\variant[#1]% slow
{\dosetscaledfont
\expanded{\definedfont% Careful about email wrapping here!
[\truefontname{\fontstringA\fontstylesuffix\fontvariant\fontstringA{#1
}{}
\XMLifequalelse{meta}{name}{date}
{\startbuffer[date]\XMLpar{meta}{content}{}\stopbuffer}{}
\defineXMLenvironment [title] {\startstandardmakeup
\getbuffer[course_name]
\getbuffer[date]}{\stopstandardmakeup}
But
\eTR
\eTABLE
\stopbuffer
\starttext
\getbuffer[table3]
\stoptext
---
does not work. Here is a log from live-wiki:
(./texweb-table3.tmp
! Use of \dododecrement doesn't match its definition.
\doifnextcharelse ...token =#1\def \!!string
t test test.
> \stoplinenumbering%
> \stopbuffer
>
> {\typebuffer[footnote] \getbuffer[footnote]} \page
>
>
> works, but
>
>
> \startbuffer[footnote]
>
> \definenote[metanote][conversion=set 2]
&
the table, e.g.:
\placetable[here,90][tab:religionen]{Götter}%
{\framed[width=\textheight, height=\textwidth]{\getbuffer[tab-
religionen]}}
% rotation included in the placetable parameters; with "page" instead
of "here" it didn't display anything.
% another failed attempt:
\rot
m=4] D. E. Knuth \ignorespaces\input knuth \par
% \stopbuffer
%
% \type{m=2} \start
\defineinitial[two][m=2,method=none] \getbuffer \page \stop
% \type{m=1,method=auto} \start
\defineinitial[two][m=1,method=auto] \getbuffer \page \
or red withpen pencircle scaled 1/10 ;
> > endfor ;
> >
> > \stopMPpage
> >
> > \stoptext
>
> Amazing.
>
> This also makes it easy to "drop a shadow", a simplified version being
> something like:
>
> \starttext
>
&g
scheme: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
>
Just before going to bed, I've found a solution with all your help and the help
of Taco Hoekwater through the ntg mail archive :
\def\startSlide%
{\def\stopSlide{\checkSlide\doif{\getvariable{temp}{publish}}{yes}{\page\getbuffer[Slide]}}%
\dostartbuffer[Slide][startSlide][stopSlide]}
L
{\def\stopSlide{\checkSlide\doif{\getvariable{temp}{publish}}{yes}{\page\getbuffer[Slide]}}%
>> \dostartbuffer[Slide][startSlide][stopSlide]}
>>
>> Let me know if it's my philosopher's stone...
>> I've tried it and it works so far.
>>
xt
\section[one] {One} \getbuffer \page
\section[two] {Two} \getbuffer \page
\section[three]{Three} \getbuffer \page
\stoptext
the next variant (same functionality) is somewhat better
\unprotect
\unexpanded\def\somewhere#1#2#3[#4]% #dummy gobbles space around #2
{\doifrefer
=43mm]{\externalfigure[cow][width=\textwidth,height=40mm]}
\setlayerframed[figure][frame=off,x=25mm,y=90mm,align=normal,width=\textwidth]{\getbuffer[zapf]}
\setlayerframed[figure][frame=off,x=80mm,y=150mm]{\externalfigure[cow][width=30mm,height=100mm]}
\setlayerframed[figure][frame=off,x=25mm,y=150mm,
l
\HL
\stoptabletail
\starttable[|||]
\NC Text \NC Text \NC\AR
\NC Text \NC Text \NC\AR
\NC Text \NC Text \NC\AR
\NC Text \NC Text \NC\AR
\stoptable
\stopbuffer
%\tracetablestrue
\setuptables[split=no]
\getbuffer
\setuptables[split=yes]
\getbuffer
\setuptables[split=repeat]
\getbuffer
\s
Willi Egger wrote:
\startbuffer[test]
\starttyping
pack .ok .cancel .help -side top
\stoptyping
\stopbuffer
\startbuffer[test]
pack .
\stopbuffer
\starttext
\SideFigure{right}{pack2}{figure.jpg}{0.25}
{
\getbuffer[test]
\typebuffer[test]
}
Hans
That's great, I wikified a Note for testing if a buffer exists or has content
(using the \getbuffer[…] approach for the moment).
If I was asked, I'd opt for \doifelseemptybuffer (doifemptyelse?) since one
could think of similar commands that test for empty "objects".
Is
]
\startitem \unit{1 kg} de pommes de terre \stopitem
\startitem \unit{60 g} de fromage râpé \stopitem
\startitem \unit{25 Centiliter} de crème fraîche \stopitem
\stopitemize
\stopbuffer
\placerecipe
{}
{\myframed{\getbuffer}}
\startitemize[n][stopper
erlinespace\currentdate \par
> x\par}\blank
> \ruledvbox{x\tf \setupinterlinespaceurl \par
> x\par}\blank
> \stopbuffer
>
> \starttext
> \showstruts
> \getbuffer[a]
> \page
> \getbuffer[b]
> \stoptext
>
> you can use use
0}{+#1x^{#1x}}=10
> \stopformula
>
> test
>
> \startformula
>x\dorecurse{100}{+#1x^{#1x}}=10
> \stopformula
>
> test
> \stopbuffer
>
> \par \setupformula[split=no] \getbuffer \par
> \par \setupformula[split=yes] \get
]
\bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
\bTR\bTD Foo\note[x] \eTD\eTR
\eTABLE
\flushnotes
\stopbuffer
\getbuffer
\startTEXpage[offset=1em]
\getbuffer
\stopTEXpage
\stoptext
The second page is similar to the problem with the wiki.
\xmlsetsetup{#1}{*}{xml:*}
\stopxmlsetups
\xmlregistersetup{xml:mysetups}
\startxmlsetups xml:something
\blank \relax [start something] \blank
\xmlflush{#1}
\blank \relax [stop something] \blank
\stopxmlsetups
\startxmlsetups xml:sometex
\pushcatcodetable
\catcodetable\ctxcatcodes
D\bTD ~~ \eTD\eTR
\bTR\bTD ~ ~ \eTD\bTD ~ \eTD\bTD middle \eTD\eTR
\stopbuffer
\bTABLE[width=broad] \getbuffer \eTABLE % OK
\bTABLE[width=broad]
\setupTABLE [c] [1] [align=flushright]
\setupTABLE [c] [2] [align=flushleft]
\setupTABLE [c] [3] [align=middle]
\getbuffer % not OK!
\eTABLE
{\FontB \red test me #1,} \FontA \dorecurse{#1}{test ##1, }%
}\par
\stopbuffer
{\getbuffer \page}
\setexpansion[myexpansion] {\getbuffer \page}
\stoptext
Maybe it's useful (I hardly use expansion myself). Hopefully there are
fd A Name
\stopframedtext
\stopbuffer
\starttext
%~ \showframe
\rotate[rotation=180]{\getbuffer[tblcard]}
\page
\getbuffer[tblcard]
\stoptext
I hope it goes on time ;-),
Pablo
--
http://www.ousia.tk
__
opbuffer and \getbuffer, such as in:
\setuplayout[topspace=1cm,header=1cm]
\setuplayout[middle]
\setupbodyfont[pagella,10pt]
\setupalign[verytolerant,stretch]
\setupwhitespace[big]
\starttext
\startbuffer
\definescaledfont[bfe][xscale=2000,yscale=6000,style=bf]
\setuphead[chapter
. This results in an
error
in MKIV and in no output in MKII
Runaway argument?
\bfc Text \stopbuffer \getbuffer [Test] \stoptext
! File ended while scanning use of \dododowithbuffer.
\par
Please refer to the attached minimal test file.
best use
\startmode[definedwithin]
\startbuffer[Test
Namespaceb\quad
\MyNamespacec\quad
\MyNamespaced\quad
crap is \ifdefined\MyNamespacecrap\else un\fi defined
\stopbuffer
\enablecheckparameters
\setvalidparameterkeys[MyTest][a,b,c,d] \getbuffer \par
\addvalidparameterkeys[MyTest][crap]\getbuffer \par
\stoptext
in due time we can a
and Application: An Oriental View
\stopunderline
\stopbuffer
\starttabulate[|l|l|]
\NC 中文论文题目: \NC \getbuffer[chinesetitle] \NC \NR
\NC 英文论文题目: \NC \getbuffer[englishtitle] \NC \NR
\stoptabulate
Of cause, the codes do not work. Is there any alternative way?
Best wishes,
Wei-Wei
three \NC \darkblue cell three \NC \NR
\TM[a] \NC \darkred cell four \NC \darkgray cell four \NC \NR
\TM[b] \NC \darkgreen cell four \NC \darkblue cell four \NC \NR
\stoptabulate
\stopbuffer
\start \showmakeup[line] \showstruts \ruledvbox{\getbuffer[b]} \stop
\start
{talk}{day}, at
\getvariable{talk}{time} \NC\NR
\HL
\stoptabulate
}
}
\starttext
\starttitle[title={Monday talks}]
\setvariable{talk}{set}{\talksofday{Monday}}
\getbuffer[talkdata]
\stoptitle
\page
\starttitle[title={Tuesday talks}]
\setvariable
All,
I've been using this construct a lot.
\startlinecorrection[blank]
\midaligned{\getbuffer[table]}
\stoplinecorrection
My thinking was that it put a blank before and after, but now I am
not sure.
Am I missing something?
___
ntg-context ma
On 8/2/2021 4:43 PM, Aditya Mahajan via ntg-context wrote:
On Mon, 2 Aug 2021, Benjamin Buchmuller via ntg-context wrote:
Hi,
How can I check if a buffer or block has content (or is empty) before a
\useblocks or \getbuffer statement?
I would like to typeset a headline only if the buffer
Hans Hagen via ntg-context schrieb am 02.08.2021 um 17:17:
On 8/2/2021 4:43 PM, Aditya Mahajan via ntg-context wrote:
On Mon, 2 Aug 2021, Benjamin Buchmuller via ntg-context wrote:
Hi,
How can I check if a buffer or block has content (or is empty)
before a \useblocks or \getbuffer statement
301 - 400 of 1030 matches
Mail list logo