\startxcell d \stopxcell
\stopxrow
\stopxtable
This is the next paragraph.
\getbuffer[somextable]
This is the next paragraph.
\stoptext
If the width is specified for some xcells (but not all), extra blank
space will be added after the xtable when got from a buffer.
Isn’t
> On 11 Feb 2018, at 14:17, Aditya Mahajan wrote:
>
> On Sun, 11 Feb 2018, Hans Hagen wrote:
> […]
>
> I prefer starting with XML and converting it to a lua table using helper
> functions. The advantage of XML is that you can verify the data using an RNC
> schema.
Hi Aditya,
Thanks for you
Answer 3
\item Answer 4
\item Answer 5
\stopitemize
\stopquestion
\endquestion
\beginanswer
\startanswer
B
\stopanswer
\endanswer
\stopbuffer
\dorecurse{30}{\getbuffer[question]}
\startsection[title=Questions]
\useblocks[question][criterium=chapter]
\page
\startsubsubsection[title=Answers
>>>> \placetable, but \placetable just creates another (empty) table in case
>>>> of a markdown table.
>>>
>>> Also if you put {} around the code? or use
>>>
>>> \startplacetable{xx}
>>> ...
>>> \stopplacetable
\startsetups chapter:before
\page[left]
\noheaderandfooterlines
\startalignment[left,nothyphenated]
\startnarrower[4*left]
\em \getbuffer[chapter:quote]
\stopnarrower
\stopalignment
\resetsetups[quote:text]
\page[right]
\noheaderandfooterlines
> On 10 Mar 2020, at 16:20, Hans Hagen wrote:
>
> On 3/10/2020 3:07 PM, Taco Hoekwater wrote:
>> Hi,
>> Never mind, I got it (starting at \loggingall output for a while). This
>> patch to my input fixes it:
>> \unprotect
>> \setupfootertexts[{
la
%D \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.
A
tect
\setupmodule[Info=yes]
\processaction[\currentmoduleparameter{Info}]
[yes=> \def\InfoMark{Info},
no=> \def\InfoMark{},
\v!unknown=> \def\InfoMark{},
\v!default=> \def\InfoMark{}]
\setupbackgrounds[page][background={\InfoMark}]% <---
%\defineoverlay[Info][{\getbuffer[info]}]
%
]
\midaligned{2UP}
\vfill
\midaligned{This is page \recurselevel}
\vfill
\stopbuffer
\setupheadertexts[\CONTEXT]
\starttext
\dorecurse{16}{\getbuffer[Fakepage]\page}
\stoptext
Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
\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 othe
Am 07.01.2013 um 22:49 schrieb 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]
>
&g
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
\startbuffe
>
> You could use buffers:
>
> \newdimen\cnt
> \starttext
>
> \startbuffer [greenbar]
> \blackrule[width=4cm, height=5mm, color=green]
> \stopbuffer
>
> \dorecurse{10}{%%
> \blackrule[width=\textwidth]
> \advance\cnt1cm \hskip\cnt
> \getbuffer[green
Miguel Queiros wrote:
>>> \placetable{Just an example}{\externalfigure[teste.tmp]}
>>>
>> This is what I call 'creative usage' of a feature :)
>> Better use \getbuffer for this.
>>
>
> I was using \externalfigure because I saw that
extwidth]
>
> \startbuffer
> \placefigure[here]{test 1}{\externalfigure[testfig]}
> \placefigure[here]{test 2}{\externalfigure[testfig]}
> \placefigure[here]{test 3}{\externalfigure[testfig]}
> \stopbuffer
>
> \dorecurse{3}{
> \chapter{A Chapter}
> \getbuffer
er are type set as
>> \dochar {225}
>>
>
> This seems to be a bug. In utf-8 encoding, if an accented character is
> the first character of a buffer, it gets typed correctly. All other
> accented charaters come out as \dochar {225}. \getbuffer works fine.
>
> Can
Aditya Mahajan wrote:
\startbuffer
\placeformula
\startformula
\startalign[m=2,distance=3cm]
\NC a \NC =b
\NC A \NC =B \NR[+]
\NC c \NC =d
\NC C \NC =D \NR[+]
\stopalign
\stopformula
\stopbuffer
\typebuffer
\getbuffer
I can confirm that there is an extra number. I do not know what
\SideFigure{right}{pack2}{figure.jpg}{0.25}
{
\getbuffer[test]
}
\stoptext
kind regards Willi
[EMAIL PROTECTED] wrote:
Hi all !
let us imagine we have defined the following command:
\def\SideFigure#1#2#3#4#5%
{
\placefigure[#1]{#2}{\externalfigure[#3][width=#4\makeupwidth]}
#5
}
which can be
argument does not work due to catcode
wizzardy; so, try to use buffers instead
\startbuffer
\startprogramlisting
"Hello World! Hello" + txtName.text + "!"
\stopprogramlisting
\stopbuffer
\bTABLE
\bTR
\bTD Set the value to \eTD
\bTD \getbuffer \eTD
\eTR
\eT
minimum (I think) file which demonstrates the problem very
clearly.
\setupinteraction[state=start]
\setupwhitespace[big]
\starttext
\input tufte
\startbuffer[]
\bTABLE[width=2.5in]
\bTR \bTD \input tufte \eTD\eTR
\eTABLE
\stopbuffer
\placetable
[right]
[tab:1]
{A Table}
{\getbuffer
C \bf Operator \NC \bf Matches \NC\SR
\HL
\stoptablehead
\starttabletail
\HL
\stoptabletail
\starttables[|l|lp(25em)|]
\dorecurse{50}{\NC . \NC anything \NC\AR}
\stoptables
\stopbuffer
\splitfloat
[lines=3,conversion=greek]
{\placetable{Operators}}
{\getb
➊ DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT ONE
> 9 U+0FFFD � REPLACEMENT CHARACTER
> stop missing characters
> start missing characters: cambriai.ttf
> 266 U+0276C ❬ MEDIUM LEFT-POINTING ANGLE BRACKET ORNAMENT
> 266 U+0276D ❭ MEDIUM RIGHT-POINTING ANGLE BRACKET ORN
8: \snappedmath { 0,2^3 } \stopitem
> \startitem 9: \snappedmath { -0,22^4} \stopitem %\column
> \startitem 10: \snappedmath { \frac{3}{2}^4 } \stopitem
> \startitem 11: \snappedmath
overfont =12pt
> \newdimen\fontstep\fontstep = 1pt
>
> \starttext
>
> \definefont[Cover][Sans at \the\coverfont]
>
> \gettwopassdata{cover}
> \iftwopassdatafound
> \coverfont\twopassdata
> \definefont[Cover][Sans at \the\coverfont]
> \fi
>
> \setbox\co
l}})
({\em \Characters{\recurselevel}})
\par}
\stopTEXpage
\stopbuffer
\def\DesiredFont{TeX Gyre Termes}
\getbuffer[chars]
\def\DesiredFont{TeX Gyre Pagella}
\getbuffer[chars]
\stoptext
Best wishes,
Taco
___
startbuffer[texletter]
%\input brieftekst-pol-jan2005
%\stopbuffer
\startsetups[letter:content]
\input brief-inhoud-test.tex
\stopsetups
\setvariables
[letter:data]
[address=\XMLflush{address},
%prefix=\XMLflush{prefix},
%initials=\XMLflush{initials},
%formalname=\XMLflush{formalname},
%informalname=\
on=righthanging]
>
> \startbuffer[caption]
> \dorecurse{60}{very long caption }
> \stopbuffer
>
> \starttext
> \startplacefigure[title={\getbuffer[caption]}]
> \externalfigure[cow][height=40mm,width=80mm]
> \stopplacefigure
> \stoptext
>
> Thank you,
> Jano
>
\module_scite_inherit_typing
\dontcomplain
\raggedright
\startscitelines
\getbuffer[lex]
\stopscitelines
\endgroup}
some day i need to make an lmtx version (less code)
Hans
width can be set
> with \scale, e.g.
>
> \scale[width=8cm]{\getbuffer[ammeter]}
>
> Wolfgang
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki
ection into a buffer:
>
> \starttext
> Here is a footnote.
> \startbuffer[fn:abcd]
> \startlines
> a
> b
> c
> d
> \stoplines
> \stopbuffer
> \footnote{Some text:
> \getbuffer[fn:abcd]
> And some more text.}
> \stoptext
>
> --
> Rik
>
> _
ocalfootnotes}
>> \stoplocalfootnotes
>> \stopbuffer
>>
>> \startplacetable[title=Test,
>> align=middle]
>> {\getbuffer[Tab01]}
>> \stopplacetable
>>
>> \stoptext
>>
>
> I usually use:
>
> \startplaceta
pbuffer
> \typebuffer[zB]
> \getbuffer[zB]
> }
>
> \CodeExample{\framed[frame=off,leftframe=on,rulethickness=1em,framecolor=blue]{Klotz
> am Bein}}
>
> Compilation just stops, maybe some infinite loop?
This is what I get from your sample above.
> Simpler:
>
> \def\CodeEx
=no]
\externalfigure[\getvariable{talk}{picture}]
\stopplacefigure
\page
\stopbuffer
\setvariable{talk}{set}{\getbuffer[pagetalk]}
\define[3]\maketalk{%
\setvariables[talk]%
[speakername={#1},
tit
On 2/11/2018 2:17 PM, Aditya Mahajan wrote:
On Sun, 11 Feb 2018, Hans Hagen wrote:
Think different ... see end.
\startluacode
document.speakerdata = {
{
speakername = "Gauss",
title = "Remarks on Number Theory",
time = "8am",
}{\getbuffer[groups]}
\stopxtable
\stoptext
tables take multiple passes so you need to decrement when still
trialtypesetting
\iftrialtypesetting .. \fi
--
-
Hans Hagen | PRAGMA ADE
\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
(mostly a quote or so). This is done with
\startsetups chapter:before
\page[left]
\noheaderandfooterlines
\startalignment[left,nothyphenated]
\startnarrower[4*left]
\em \getbuffer[chapter:quote]
\stopnarrower
\stopalignment
\resetsetups[quote:text]
\page
\noheaderandfooterlines
> \startalignment[left,nothyphenated]
> \startnarrower[4*left]
> \em \getbuffer[chapter:quote]
> \stopnarrower
> \stopalignment
> \resetsetups[quote:text]
> \page[right]
> \noheaderandfooterlines
> \blank[force,2*big]
> \
On 11/1/19 11:08 AM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 01.11.2019 um 10:44:
>> [...]
>> \start
>> \catcode`\#=12 % local change of character TeX category
>> \doloopif{\cA}{~=}{}{\getbuffer[main]}
>> \stop
>>
&
ffer{Quote}{
\doifoddpageelse
{\page[left]}
{\donothing}
{\definedfont[SerifItalic at 16pt]\quotation{\getbuffer[Quote]}\par}
\externalfigure[\PreImg][width=\textwidth]
\resetbuffer[Quote]
}{}
\page[right]
\stopsetups
\setupheadertexts[][pagenumber][pagenumber][chapter]
\setuphe
t; \startbuffer[mypic]
>\starttikzfigure
>...
>\stoptikzfigure
> \stopbuffer
>
> which I use later when I place the figure
>
> \placefigure{My picture}{\getbuffer[mypic]}
&
this_one]
>> ..contents..
>> \stopbuffer % in execution followed by \command
>
> \def\startmybuffer
> {\grabbufferdata[mybuffer][startmybuffer][stopmybuffer]}
>
> \def\stopmybuffer
> {\startframedtext[width=max]
> \getbuffer[mybuffer]
> \stopframed
Page]
\strut
\blank
\midaligned{Is this a bug in mkiv?}
\vfill
\midaligned{This is page \recurselevel}
\vfill
\stopbuffer
\showframe
\dorecurse{16}{\getbuffer[TestPage]\page}
\stoptext
Using mkiv (ConTeXt ver: 2009.04.16 22:27 MKIV fmt: 2009.4.17 int:
engli
TestPage]
\strut
\blank
\midaligned{Is this a bug in mkiv?}
\vfill
\midaligned{This is page \recurselevel}
\vfill
\stopbuffer
\showframe
\dorecurse{16}{\getbuffer[TestPage]\page}
\stoptext
Using mkiv (ConTeXt ver: 2009.04.16 22:27 MKIV fmt: 2009.4.17 int:
english/eng
2]
l.218 \getmyAbstract
What is the current workaround for this?
\startbuffer[myabstract]
...
\stopbuffer
\getbuffer[myabstract]
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 |
TD
\bTD $[3,\infty)$ \eTD
\eTR
\bTR
\bTD \externalfigure[realline7] \eTD
\bTD $\{x:\,x\le3\}$ \eTD
\bTD $(-\infty,3]$ \eTD
\eTR
\eTABLE
\stopbuffer
\placefigure[][tbl:numlines]
{Table}
{\getbuffer[table]}
However, two things:
1. My figures are not centered in their first column.
somehow strut=
orks. I tend to
think that this is the correct behaviour. Do you really need to define
the note inside a group?
(In your example the group is being created by the braces in
{\typebuffer \getbuffer})
Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
[sans][helvetica][name,texnansi]
\usetypescriptonce[palatino][texnansi]
\setupbodyfont[palatino,10pt]
\definefont[RotFont][RegularBold]
\stopMPenvironment
\stopbuffer
\definefont[RotFont][RegularBold]
\getbuffer[mpenv]
\setupcolors[state=start]
\starttext
\startlinecorrection[
ied]%,height=fit
{\getbuffer}}
\stoptext
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context
sources
- i want to stimulate users to writ etheir own styles not to mimick
existing ones (i.e. avoid the 'all tex files look the same' problem)
- also: most examples in manuals are typeset using
\startbuffer
...
\stopbuffer
\typebuffer \getbuffer
so ... there are no hidden tricks
ironment [env_corrige]
\starttext
\startsubject[title={Astérix}]
\startluacode
Eleve = {
structure = "analyse très fine",
NoteStructure = 2,
}
\stopluacode
\getbuffer [grille]
\stopsubject
\startsubject[title={Obélix}]
Eleve = {
This is a test.
And it has an unexpected result.
\stopbuffer
\long\def\testmacro{
M This is a test.
And it has an unexpected result.
}
\starttext
\subject{Lua string.strip passed TeX buffer}
¦\StringStrip{\getbuffer[testbuffer]}¦
\subject{Lua string.strip pa
in a separate overlay to better control the positioning. Perhaps
a bit overthought, but it works for me ...
\setupheadertexts [][{\it\getmarking[section]}]
[{\it\getmarking[chapter]}][]
\startsetups section:epigraph
\doifelsebuffer{SectionEpigraph}
{\getbu
opbuffer
This is a sample of maths with Latin Modern:
\getbuffer[math-sample]
\start
\switchtobodyfont[xits]
This is a sample of Xits fonts\dots{} Version 1.002. Note that the integral
sign and the numbers 1 and 2 are not correctly placed in $\int_{1}^2$, and
$\Omega$ in $\int_{\Omega}$ is a little bi
=\XMLflush{formalname},
%informalname=\XMLflush{informalname}
%content={\getbuffer[texletter]},
%,content=\getbuffer
concerns=, subject=, date=\date, author=Nasrettin Hoca\crlf {\tfx bla}\crlf {\tfx bla}]
\startsetups[contact:handle]
\setups[letter:place]
\stopsetups
\startsetups[letter:content]
This
stributieve eigenschappen)}
\stopformula
\stopbuffer
\starttext
Test user defined math matrices without a section (with Aditya's fix)
\blank
Math matrix alignment works.
\getbuffer
\section{Test user defined math matrices but after a section (with Aditya's
fix)}
Math matrix alignment broken
rtuserdata[shiftblock]
\input ward
\stopuserdata
\dorecurse{2}{\input zapf\par}
\stopbuffer
\dorecurse{10}{\getbuffer}
\stoptext
Wolfgang
___
If your question is of interest to others as well, please add an en
buffer.
\starttext
\startnointerference
\samplefile{knuth}
\stopnointerference
\typebuffer[knuth]
\getbuffer[knuth]
\stoptext
\starttext
\ctxlua{buffers.assign(
"hvdm-is-not-afraid-of-some-lua",
io.loaddata(resolvers.findfile("tufte.tex"))
)}
\ty
startlinenumbering[step=3]
>\dorecurse{25}
> {a\footnote{b} }
>\stoplinenumbering
>\stopbuffer
>
>\getbuffer
> \placenotes[footnote]
>\stoptext
>
> I get no paragraph notes with \setupnote[footnote][location=text,
> paragraph
; \else
> \clf_scitelexbuffer{#1}{tex}%
> \fi
> \tt
> \installscitecommandsdisplay
> \module_scite_inherit_typing
> \dontcomplain
> \raggedright
> \startscitelines
> \getbuffer[lex]
> \stopscitelines
> \endgroup}
Many thanks for
{2, 2, -6}}
> local tempM = {}
>
> tempM = m
Do a deep copy
tempM = table.copy(m)
> table.remove(tempM)
> context(#tempM, “, ” , #m)
> \stopluacode
> \stopbuffer
>
> \starttext
> getbuffer[test]
> \stoptext
>
>
>
>
\completecontent
\dorecurse{3}{\getbuffer[testt]}
\startchapter[title={Chapter Last}]
\input knuth
\stopchapter
\stoptext
--
Rik
___
If your question is of interest to others as well, please add an entry to
efigure[here][]{}
{\externalfigure[\authorpicture]}
\page
\stopbuffer
\setvariable{talk}{set}{\getbuffer[pagetalk]}
\setvariables[talk]%
[speakername={Hacker},
title={Up to date hacking},
picture=hacker.jpg
]
page[offset=3em]
{\bf \Vorname\ \Name}\\
\Function
\blank
\Company\\
\Street\\
\PLZ-\City\\
\Country\\
Telefon: \TelNo\\
\eMail\\
\URLAddress
\stopTEXpage
\stopbuffer
\doloopif{\cA}{~=}{}{\getbuffer[bscard]}
\stoptext
"Vorname";"Name";"Function";"Company";&quo
\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
e=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; draw text shifted(-11.8mm,-4.8mm ); % Some more fancy drawin
fine. Here is a
sample file.
\environment MatrixLuacode
\starttext
\getbuffer[luaMatrix]
\startformula\startalign
\startluacode
local mat = {{0, 2, 4, -4, 1},{0, 0, 2, 3 , 4}, {2, 2, -6, 2, 4 }, {2,0 , -6,
9, 7},{2, 2, -6, 2, 4 },{2, 2, -6, 2, 4 }}
-- local mat = {{1,2,3},{3,4,5},{3,4,5},{3,4,5
e replacement are only the corresponding line-skips
%\disablemode[hiding]
\enablemode[hiding]
\unprotect
\def\starthiding
{\dostartbuffer[hiddencontent][starthiding][stophiding]}
\def\stophiding
{\bgroup
\setbox\scratchbox\vbox{\getbuffer[hiddencontent]}%
\getnoflines{\dimexpr\ht\scratchbox+
at
time \draw etc are undefined. One option is:
\startbuffer[picture]
\starttikzpicture
...
\stoptikzpicture
\stopbuffer
\inmargin{\getbuffer[picture]}
Another option (but better to do that in tikz module) is:
\let\draw\relax
\let\x\relax
\inmargin{\starttikzpicture ... \stoptikzpicture}
> Actually
uffer:
\startbuffer[mypic]
\starttikzfigure
...
\stoptikzfigure
\stopbuffer
which I use later when I place the figure
\placefigure{My picture}{\getbuffer[mypic]}
The problem is that the figure is not centred: it is a
]
\startbuffer[Fakepage]
\strut
\blank[force]
\midaligned{2UP}
\vfill
\midaligned{This is page \recurselevel}
\vfill
\stopbuffer
\setupheadertexts[\CONTEXT]
\starttext
\dorecurse{16}{\getbuffer[Fakepage]\page}
\stoptext
Greetlings, Hraban
---
http
age sign since
that was the only way to prevent unwanted vertical space. (I'm not
sure what adds it.)
\definelayer[paper][width=\paperwidth,height=\paperheight]
\startbuffer[abstract]% <- this '%' is problematic
\startsimplecolumns
\input tufte
\input tufte
\stopsimplecolumns
\stopbuf
ce 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 qu
.net/myway/sometxt.pdf
Thank you for the tip, I tried it, but sometext seems deprecated in
mkiv ("[do we need TeXtexts in MkIV]").
I've different buffers named 1–12 and would like to pipe them to
Metapost. I thought I could use a textext(\getbuffer[i])-construct, it
failed. So I
n the
document this way:
\placetable[top][table-1020]{Intersystem Travel
Times}{\getbuffer[tablebuffer-id]}
When I compile my files using XeTeX engine, the table is placed at the
top of the page, spanning two columns. When I use the LuaTeX engine, the
table is placed in the middle of a colum
ext
%%% Local Variables:
%%% mode: context
%%% TeX-master: ""
%%% End:
See details.pdf for layer usage :)
Peter
> \defineoverlay[info][{\getbuffer[info]}]
>
> \setupbackgrounds[page][background={info}]
>
>
> \startbuffer[info]
> \vbox to \paperheight \bgroup
toplinenote [well] test test test test test test
\stoplinenumbering
\stopbuffer
{\typebuffer[test] \getbuffer[test]} \page
\stoptext
Thomas
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
{very\ } long caption}}
{\useMPgraphic{dummy}}{\placefloatcaption[figure]{A
\dorecurse{20}{very\ } long caption}}
\stopcombination
\stopbuffer
\placefigure[page]{none}{\getbuffer}
\stoptext
leads to
1 output file written: caption-mpgraph.1
Transcript written on caption-mpgraph.log.
[MP t
;
>>> 2. Accented characters inside \typebuffer are type set as
>>> \dochar {225}
>>
>> This seems to be a bug. In utf-8 encoding, if an accented character is
>> the first character of a buffer, it gets typed correctly. All other
>> accented charaters
On Wed, 11 Apr 2007, Wolfgang Schuster wrote:
> 2007/4/11, Aditya Mahajan <[EMAIL PROTECTED]>:
>>
>> On Thu, 22 Mar 2007, Taco Hoekwater wrote:
>>
>> > Wolfgang Werners-Lucchini wrote:
>> >> Hallo!
>> >>
>> >> The following simple example doesn't compile
>> >> (ConTeXt ver. 2007.01.02 and Live C
references.
\typebuffer[test]
\getbuffer[test]
\stoptext
gt;
> \startbuffer[tabulate]
> \starttabulatehead
> \HL
> \NC Row 1 \NC Row 2 \NC Row 3 \NC\NR
> \HL
> \stoptabulatehead
>
> \starttabulatetail
> \HL
> \stoptabulatetail
>
> \starttabulate[|l|l|l|]
> \NC Text \NC Text \NC Text \NC\NR
> \NC Text \NC Te
On 8/2/2021 8:54 PM, Benjamin Buchmuller via ntg-context wrote:
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
your examples in the document.
\starttext
\startbuffer
\startframedtext
\samplefile{klein}
\stopframedtext
\stopbuffer
\typebuffer[option=tex]
\getbuffer
\stoptext
You can use this to write your own environment for the examples (or use
the userdata
environment when you’re lazy :)
\defineuse
{1}{1}\One
\startbuffer
\placetable[lrtb][tab:mytable]{My Table}{
\bTABLE[option=stretch,textwidth=\One,align=middle]
\bTR\bTH Foo \eTH\bTH Bar \eTH\eTR
\bTR\bTD Bar \eTD\bTD Foo \eTD\eTR
\bTR\bTD Foo \eTD\bTD Bar \eTD\eTR
\eTABLE}
\stopbuffer
\My[Q]{\input knuth\getbuffer}
\My[R]{\input knu
seudo-code;
this is what I want to achieve:
\definebuffer[MyBuffer]
\def\MyGreatMacro#1#2#3%
{\item[#1] #2 \par
\appendtobuffer{MyBuffer}{\in[#1] #3}}
\starttext
\startitemize
\MyGreatMacro{1}{aa}{AA}
\MyGreatMacro{2}{bb}{BB}
\stopitemize
\page
\getbuffer[MyBuffer]
\resetbuffer[MyBuffer] % so I
er[myurl:01]\catcode`\%=12 \catcode`\_=12 \catcode`\&=12
\catcode`\#=12\setupalign[line,block,hanging]\useURL[test][http://www.lfd.m-v.de/dschutz/beschlue/ent49.html#nr.5][][http://www.lfd.m-v.de/dschutz/beschlue/ent49.html#nr.5]\from[test]\removeunwantedspaces\stopbuffer\getbuffer[myur
hment("#1")}}
Many thanks for your reply, Wolfgang.
Now I understand why it didn’t work.
In my real-world document, I get an error, probably caused by having
\giveattachment deployed in a buffer called inside:
\start
\catcode`\#=12 % local change of character TeX category
scription
[ENUM]
\??bu Entity,before=\startENUM
,after=\stopENUM \c!number
\letvalue #1->\expandafter \let \csname #1
\endcsname
...
l.4
On Tue, 2010-04-27 at 15:13 +0200, Antoine Cailliau wrote:
> Mmm...
\startbuffer
whatever \hbox{you} want
\stopbuffer
\ctxlua{userdata.enablemystuff()}
\par \getbuffer \par
\ctxlua{userdata.disablemystuff()}
\stoptext
Also, are there any good examples on how to use "nodes"?
all over context ...
Hans
--
\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]
Ad
\placefigure
[][fig:rat]
{The calculator attempts to draw a continuous function when it
shouldn't.}
{\getbuffer[figure]}
Section2.tex does:
\usefigurebase[figures/figlibSection2]
And later:
\placefigure
[][fig:rat1]
{The numerator is zero at $x=-2$. This is an $x$-intercept of the
graph
]
[preset=righttop,location={left,bottom}]
{\bfb Productname}
\setlayer
[Etiket]
[preset=leftbottom,location={right,top}]
{\switchtobodyfont[7pt]\getbuffer[Logoinhalt]}
\placelayer[Etiket]}
\stoptext
[chapter]
[page=,
header=empty,
footer=chpaterfooter,
sectionsegments=chapter,
before={\setups[chapter:before]}]
\startsetups chapter:before
\page[left]
\noheaderandfooterlines
\startalignment[left,nothyphenated]
\startnarrower[4*left]
\em \getbuffer[chapter:quote
\stopbuffer
\setvariable{talk}{set}{\getbuffer[pagetalk]}
\showframe[text][text]
\starttext
\setvariables[talk]
[speakername={Gauss},
title={Remarks on Number Theory},
time={10:30},
room={A}]
\page
\setvariables[talk]
[speakername={Poincaré
; \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
\startalignment[flushright,nothyphenated]
\startnarrower[4*left]
\em \getbuffer[chapter:quote]
\stopnarrower
\stopalignment
\page[right]
\stopsetups
\starttext
\startbuffer [chapter:quote]
If you think good architecture is expensive, try bad architecture\crlf
{\tf Brian Foote and
r[Fakepage]
\strut
\blank
\bold{[\Schema]}
\vfill
This is page \recurselevel
\vfill
\stopbuffer
\starttext
\dorecurse{\Pages}{\getbuffer[Fakepage]\page}
\stoptext
___
If your question is of interest to
idth] d \stopxcell
> \stopxrow
>\stopxtable
>
>This is the second paragraph.
>
>\getbuffer[somextable]
>
>This is the third paragraph.
>\stoptext
>
> With beta from 2015.05.13 13:04, the second and third paragraphs aren’t
> ind
\enabletrackers[lxml.loading,lxml.setups]
\startxmlsetups xml:demo:base
\xmlsetsetup{#1}{document|buffer|getbuffer|execbuffer|b}{xml:demo:*}
\stopxmlsetups
\xmlregisterdocumentsetup{demo}{xml:demo:base}
\startxmlsetups xml:demo:buffer
... enter for "\xmlatt{#1}{name}&
701 - 800 of 1030 matches
Mail list logo