[NTG-context] bug in xtables?

2015-05-09 Thread Pablo Rodriguez
\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

Re: [NTG-context] To \getbuffer or to \input: which one is it better?

2018-02-13 Thread Otared Kavian
> 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

[NTG-context] prevent page break when using blocks

2018-09-27 Thread Jan Willem Flamma
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

Re: [NTG-context] markdown: referencing tables

2013-04-10 Thread Xenia
>>>> \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

[NTG-context] Suppressing the page number

2014-08-12 Thread Gerben Wierda
\startsetups chapter:before \page[left] \noheaderandfooterlines \startalignment[left,nothyphenated] \startnarrower[4*left] \em \getbuffer[chapter:quote] \stopnarrower \stopalignment \resetsetups[quote:text] \page[right] \noheaderandfooterlines

Re: [NTG-context] SOLVED Re: \bTABLE bug, please help !

2020-03-10 Thread Taco Hoekwater
> 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[{

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

2010-02-05 Thread Aditya Mahajan
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

Re: [NTG-context] showlayoutcomponents: amazing!

2010-02-15 Thread Steffen Wolfrum
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]}] %

Re: [NTG-context] imposition 2UP = empty pages

2012-04-23 Thread Henning Hraban Ramm
] \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

[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 othe

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 : > 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

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 \startbuffe

Re: [NTG-context] Quick slide templates

2013-02-20 Thread Kumar Appaiah
> > 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

Re: [NTG-context] Changing page orientation - Landscape/Portrait

2006-04-13 Thread Hans Hagen
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

Re: [NTG-context] How to make \placelistoffigures separate figures by chapter

2006-09-19 Thread Wolfgang Schuster
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

Re: [NTG-context] bug in beta: extra \else

2006-10-16 Thread Hans Hagen
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

Re: [NTG-context] Problems with "mathalign"

2007-02-19 Thread Wim Neimeijer
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

Re: [NTG-context] side figure and typing

2004-07-23 Thread Willi Egger
\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

Re: [NTG-context] Natural Table does not allow using defined typing in its cell

2004-09-23 Thread Hans Hagen
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

[NTG-context] \in{hyperref}[tableref] at first char of line causes misplaced paragraph

2004-11-11 Thread Nigel King
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

Re: [NTG-context] \placetable and \starttables ... \stoptables

2004-12-16 Thread Hans Hagen
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

Re: [NTG-context] font fallbacks

2022-08-01 Thread Denis Maier via ntg-context
➊ 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

Re: [NTG-context] startitemize bad with columns

2013-09-21 Thread Xan
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

Re: [NTG-context] Howto fit text into a box

2008-06-11 Thread Wolfgang Schuster
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

Re: [NTG-context] issue with italic correction (again)

2019-06-27 Thread Taco Hoekwater
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 ___

Re: [NTG-context] m-letter.tex -- backslash interpretation error

2005-01-10 Thread Rob Ermers
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=\

Re: [NTG-context] very long hanging caption

2021-05-07 Thread Jano Kula
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 >

Re: [NTG-context] two issues with \sciteinlinebuffer

2022-07-07 Thread Hans Hagen via ntg-context
\module_scite_inherit_typing \dontcomplain \raggedright \startscitelines \getbuffer[lex] \stopscitelines \endgroup} some day i need to make an lmtx version (less code) Hans

Re: [NTG-context] Buffered metapost function freezes random numbers

2016-05-25 Thread DesdeChaves
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

Re: [NTG-context] \startlines not working in footnotes

2017-01-31 Thread Alan Bowen
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 > > _

Re: [NTG-context] aligning a table alignment with local footnotes

2017-05-30 Thread Alan Bowen
ocalfootnotes} >> \stoplocalfootnotes >> \stopbuffer >> >> \startplacetable[title=Test, >> align=middle] >> {\getbuffer[Tab01]} >> \stopplacetable >> >> \stoptext >> > > I usually use: > > \startplaceta

Re: [NTG-context] source code and result side by side

2017-07-30 Thread Pablo Rodriguez
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

Re: [NTG-context] \setvariables and database module

2018-01-30 Thread Otared Kavian
=no] \externalfigure[\getvariable{talk}{picture}] \stopplacefigure \page \stopbuffer \setvariable{talk}{set}{\getbuffer[pagetalk]} \define[3]\maketalk{% \setvariables[talk]% [speakername={#1}, tit

Re: [NTG-context] To \getbuffer or to \input: which one is it better?

2018-02-11 Thread Hans Hagen
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",   

Re: [NTG-context] Disproportion in initializing user counters

2018-07-15 Thread Hans Hagen
}{\getbuffer[groups]} \stopxtable \stoptext tables take multiple passes so you need to decrement when still trialtypesetting \iftrialtypesetting .. \fi -- - Hans Hagen | PRAGMA ADE

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] Suppressing the page number

2014-08-12 Thread Aditya Mahajan
(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

Re: [NTG-context] \resetsetups

2014-08-13 Thread Wolfgang Schuster
\noheaderandfooterlines > \startalignment[left,nothyphenated] > \startnarrower[4*left] > \em \getbuffer[chapter:quote] > \stopnarrower > \stopalignment > \resetsetups[quote:text] > \page[right] > \noheaderandfooterlines > \blank[force,2*big] > \

Re: [NTG-context] issue embedding from Lua code

2019-11-01 Thread Pablo Rodriguez
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 >> &

Re: [NTG-context] fancy chapter setup

2020-01-12 Thread Henning Hraban Ramm
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

Re: [NTG-context] Tikz figures not centred

2010-11-11 Thread Michael Murphy
t; \startbuffer[mypic] >\starttikzfigure >... >\stoptikzfigure > \stopbuffer > > which I use later when I place the figure > > \placefigure{My picture}{\getbuffer[mypic]} &

Re: [NTG-context] code after \stopbuffer

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

[NTG-context] \setuparranging in mkiv

2009-04-17 Thread Otared Kavian
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

Re: [NTG-context] \setuparranging in mkiv

2009-04-17 Thread Hans Hagen
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

Re: [NTG-context] \getmyAbstract

2009-09-19 Thread Hans Hagen
2] l.218 \getmyAbstract What is the current workaround for this? \startbuffer[myabstract] ... \stopbuffer \getbuffer[myabstract] - Hans Hagen | PRAGMA ADE Ridderstraat 27 |

Re: [NTG-context] Figures in a table?

2006-01-20 Thread Hans Hagen
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=

Re: [NTG-context] buffer error

2007-02-16 Thread Aditya Mahajan
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

[NTG-context] drawarrowpath

2007-06-04 Thread David Arnold
[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[

Re: Re[2]: [NTG-context] URL

2003-05-30 Thread Nigel King
ied]%,height=fit {\getbuffer}} \stoptext ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] Best source of ConTeXt documentation?

2004-08-02 Thread Hans Hagen
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

Re: [NTG-context] filling buffers in cld documents

2022-11-27 Thread Hans Hagen via ntg-context
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 = {  

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

2014-03-06 Thread Rik Kabel
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

Re: [NTG-context] fancy chapter setup

2020-01-11 Thread Rik Kabel
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

Re: [NTG-context] ssty feature is not activated for math

2010-06-18 Thread Otared Kavian
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

Re: [NTG-context] Working example for correspondence

2006-09-23 Thread r . ermers
=\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

Re: [NTG-context] extra math symbols and alignment

2007-08-02 Thread Aditya Mahajan
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

Re: [NTG-context] paragraph standing out of the normal layout comsuming the margin

2021-06-25 Thread Wolfgang Schuster
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

Re: [NTG-context] file to buffer

2021-08-17 Thread Hans Hagen via ntg-context
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

Re: [NTG-context] paragraph notes when located in text

2022-01-05 Thread Jean-Pierre Delange via ntg-context
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

Re: [NTG-context] two issues with \sciteinlinebuffer

2022-07-08 Thread Pablo Rodriguez via ntg-context
; \else > \clf_scitelexbuffer{#1}{tex}% > \fi > \tt > \installscitecommandsdisplay > \module_scite_inherit_typing > \dontcomplain > \raggedright > \startscitelines > \getbuffer[lex] > \stopscitelines > \endgroup} Many thanks for

Re: [NTG-context] about table operation in lua-ConTeXt

2017-02-13 Thread Henri Menke
{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 > > > >

[NTG-context] Suppress chapter title marking on blank page after chapter

2017-10-14 Thread Rik Kabel
\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

Re: [NTG-context] Placing a figure with a command for the file in mkiv

2018-01-27 Thread Otared Kavian
efigure[here][]{} {\externalfigure[\authorpicture]} \page \stopbuffer \setvariable{talk}{set}{\getbuffer[pagetalk]} \setvariables[talk]% [speakername={Hacker}, title={Up to date hacking}, picture=hacker.jpg ]

Re: [NTG-context] Creating business cards with CSV

2019-02-08 Thread Pablo Rodriguez
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

[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

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

2014-05-05 Thread ralf . waldvogel
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

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Jeong Dal
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

Re: [NTG-context] hiding content

2008-07-25 Thread Wolfgang Schuster
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+

Re: [NTG-context] tikzpicture in margin

2021-02-14 Thread Aditya Mahajan
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

Re: [NTG-context] Tikz figures not centred

2010-11-11 Thread Aditya Mahajan
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

Re: [NTG-context] imposition 2UP = empty pages

2012-05-17 Thread Henning Hraban Ramm
] \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

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

2012-10-23 Thread Mojca Miklavec
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

Re: [NTG-context] "verbatim boxes"

2012-11-26 Thread Wolfgang Schuster
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

Re: [NTG-context] loop textext and \MPstring{… }

2009-08-12 Thread Andreas Harder
.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

[NTG-context] Problems with wide floating tables in context mkIV

2009-11-24 Thread Massimiliano Lambertini
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

Re: [NTG-context] Anchoring layer

2005-10-05 Thread Peter Rolf
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

Re: [NTG-context] linenotes/footnotes

2006-04-22 Thread Thomas A. Schmitz
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

[NTG-context] Homogeneous captions for figures

2006-09-08 Thread Renaud AUBIN
{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

Re: [NTG-context] bug in beta: extra \else

2006-10-16 Thread Hans Hagen
; >>> 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

Re: [NTG-context] framed getbuffer

2007-04-11 Thread Aditya Mahajan
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

[NTG-context] Hyperlinks to locations in other documents

2003-08-12 Thread Nigel King
references. \typebuffer[test] \getbuffer[test] \stoptext

Re: [NTG-context] table layout

2007-11-06 Thread Peter Rolf
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

Re: [NTG-context] How to check if buffer or block has content

2021-08-03 Thread Hans Hagen via ntg-context
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

Re: [NTG-context] A ConTeXt Guide in Italian

2018-11-21 Thread Wolfgang Schuster
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

[NTG-context] \placetable whitespace problem in columnset

2014-11-02 Thread Bryor Snefjella
{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

[NTG-context] mkiv: append to buffer

2010-12-18 Thread Thomas Schmitz
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

Re: [NTG-context] break strings

2011-06-13 Thread Steffen Wolfrum
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

Re: [NTG-context] issue embedding from Lua code

2019-11-01 Thread Pablo Rodriguez
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

Re: [NTG-context] Real help on \dostartbuffer needed

2010-04-27 Thread Antoine Cailliau
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...

Re: [NTG-context] Node for startbuffer.

2013-01-09 Thread Hans Hagen
\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 --

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] Ad

[NTG-context] Duplicate names in figure libraries

2006-05-01 Thread David Arnold
\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

[NTG-context] XY arrangement

2004-02-11 Thread Willi Egger
] [preset=righttop,location={left,bottom}] {\bfb Productname} \setlayer [Etiket] [preset=leftbottom,location={right,top}] {\switchtobodyfont[7pt]\getbuffer[Logoinhalt]} \placelayer[Etiket]} \stoptext

[NTG-context] Move the page number from header to footer on the current page only?

2021-10-24 Thread Gerben Wierda via ntg-context
[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

Re: [NTG-context] Registers and getparameters

2018-01-22 Thread Otared Kavian
\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é

[NTG-context] \overline and \overbar

2017-05-09 Thread Jeong Dal
; \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

Re: [NTG-context] Move the page number from header to footer on the current page only?

2021-10-25 Thread Wolfgang Schuster via ntg-context
    \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

[NTG-context] command line arguments

2024-03-19 Thread Hraban Ramm
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

Re: [NTG-context] issue with xtable in latest beta

2015-05-13 Thread Wolfgang Schuster
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

[NTG-context] loading and executing xml-buffer

2016-10-12 Thread Meer, Hans van der
\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}&

<    3   4   5   6   7   8   9   10   11   >