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

2013-10-21 Thread Hans Hagen
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---

[NTG-context] no line break in CJK text in footnotes

2011-04-07 Thread 李延瑞
\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

Re: [NTG-context] How can one center or align a float?

2010-04-08 Thread Wolfgang Schuster
\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

[NTG-context] Issues with linetables

2012-04-10 Thread Marco
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

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

2012-07-17 Thread dalyoung
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&

Re: [NTG-context] base- vs. node-kerning

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

Re: [NTG-context] Two framed texts on the same line

2005-11-25 Thread Hans Hagen
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

Re: [NTG-context] \placeinital special case

2014-01-24 Thread Hans Hagen
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,

Re: [NTG-context] Setting and measuring boxes TeX/Lua

2020-11-27 Thread Jano Kula
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[

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

2013-01-13 Thread Sietse Brouwer
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

Re: [NTG-context] XeConTeXt and Euler

2007-03-18 Thread Aditya Mahajan
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 > >

Re: [NTG-context] Booktabs equivalent in Context

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

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

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

[NTG-context] Math fractions

2016-02-28 Thread Aditya Mahajan
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

[NTG-context] frames for left/right pages

2016-10-10 Thread Thomas A. Schmitz
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

Re: [NTG-context] t-scancsv_ConTeXT_module can't filter anymore

2018-09-17 Thread Pablo Rodriguez
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

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

2014-03-06 Thread Wolfgang Schuster
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

Re: [NTG-context] Combining "outer" effect with filled glyphs

2014-09-30 Thread Hans Hagen
ormal,foregroundstyle=\bfd,foregroundcolor=blue]{\starteffect[inner]\getbuffer[test]\stopeffect}} {\framed[align=normal,foregroundstyle=\bfd,foregroundcolor=red] {\starteffect[outer]\getbuffer[test]\stopeffect}} \stopoverlay \sto

Re: [NTG-context] no line break in CJK text in footnotes

2011-04-18 Thread 李延瑞
t] > \setscript[hanzi] > \setupbodyfont[myfonts,rm,11pt] > > \starttext > \startbuffer[test-footnote] > 所有动物都生而平等,但有些动物比其他动物更平等。所有动物都生而平等, > 但有些动物比其他动物更平等。所有动物都生而平等,但有些动物比其他动物更平等。 > \stopbuffer > \getbuffer[test-footnote] > \blank > 测试\footnote{\getbuffer[test-footnote]} > \st

[NTG-context] Export (table cell alignment)

2011-12-09 Thread Andreas Harder
\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

[NTG-context] italic correction (before the glyph)

2019-06-23 Thread Pablo Rodriguez
}] [{\em \characters{\recurselevel}}] [{\em \Characters{\recurselevel}}] ({\em \characters{\recurselevel}}) ({\em \Characters{\recurselevel}}) \par} \stopTEXpage \stopbuffer \getbuffer[chars] \def\DesiredFont{TeX Gyre Pagella} \getbuffer

[NTG-context] MetaPost with Multiple Variable Sections

2019-09-18 Thread Jeroen
[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

[NTG-context] Tent style cards

2019-12-21 Thread Pavneet Arora
Name \stopbuffer \starttext \showframe \adaptpapersize[tblcard,mirrored][letter,portrait]\getbuffer[tblcard] \page \getbuffer[tblcard] \stoptext -- Pavneet Arora m: +1 647-406-6843 Waroc Informatik

Re: [NTG-context] xtable headers and handlecsv loop

2020-04-03 Thread Pablo Rodriguez
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

Re: [NTG-context] What do you miss in ConTeXt?

2010-02-11 Thread Hans Hagen
] \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

Re: [NTG-context] hyphenated url (SOLVED)

2010-10-28 Thread Steffen Wolfrum
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.

[NTG-context] Tikz figures not centred

2010-11-11 Thread Michael Murphy
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

[NTG-context] Footnotes

2012-03-12 Thread Willi Egger
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

Re: [NTG-context] A problem with modes

2012-06-26 Thread Wolfgang Schuster
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]} >

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

2012-08-03 Thread Aditya Mahajan
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

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

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

Re: [NTG-context] Hiding text

2013-03-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
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,

Re: [NTG-context] base- vs. node-kerning

2009-04-04 Thread Andreas Harder
\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

[NTG-context] marking in columnset

2005-11-24 Thread Vit Zyka
} \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

Re: [NTG-context] Figure number off one time

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

Re: [NTG-context] poster, howto for beginner

2004-07-06 Thread Hans Hagen
] \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

[NTG-context] page numbering with make-up-pages

2010-06-17 Thread Vyatcheslav Yatskovsky
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]

Re: [NTG-context] Size of fences, factor key

2018-04-25 Thread Hans Hagen
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

Re: [NTG-context] math: too big space between function and argument

2011-05-25 Thread Paul Menzel
%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 (

Re: [NTG-context] splitted xtable with repeating headers and placetable

2020-04-05 Thread Wolfgang Schuster
etups \setupheadertexts[\directsetup{header}] \startbuffer[tablerow] \startxrow \startxcell first \stopxcell \startxcell second \stopxcell \stopxrow \stopbuffer \startbuffer[table] \startxtable \startxtablehead[head] \getbuffer[tablerow] \s

Re: [NTG-context] simpleslides help needed

2012-07-23 Thread Wolfgang Schuster
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

[NTG-context] \unit and french

2012-10-09 Thread Romain Diss
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

Re: [NTG-context] Indentation bug ? Sample

2006-08-02 Thread Alan Bowen
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 >

Re: [NTG-context] new upload

2022-01-15 Thread Hans Hagen via ntg-context
$x^^2 + x$}\par \dontleavehmode\ruledhbox{$x__2 + x$}\blank \stopbuffer \startTEXpage[offset=3pt] \getbuffer \Umathspaceafterscript \textstyle0pt \Umathspacebeforescript\textstyle0pt \getbuffer \Umathextrasupspace\textstyle20pt \Umathextrasubspace

Re: [NTG-context] new beta

2015-06-14 Thread Mojca Miklavec
\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

Re: [NTG-context] Some questions about TeX Gyre support in minimals

2008-10-23 Thread Aditya Mahajan
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.

Re: [NTG-context] ConTeXt MKIV bug: Chinese left aligned does not work as should

2008-11-10 Thread Hans Hagen
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

Re: [NTG-context] pushing margintext up

2012-05-29 Thread Philipp Gesang
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

Re: [NTG-context] New math feature requests

2006-08-24 Thread Aditya Mahajan
= 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

Re: [NTG-context] New math feature requests

2006-08-26 Thread Aditya Mahajan
!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

Re: [NTG-context] Reset a setup directive

2007-07-11 Thread Saji Njarackalazhikam Hameed
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} >

[NTG-context] setup linecorrection

2007-01-19 Thread David Arnold
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

Re: [NTG-context] Problem using \scale

2023-02-09 Thread Henning Hraban Ramm via 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

[NTG-context] Re: understanding units / dimensions

2024-08-25 Thread Wolfgang Schuster
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] \

[NTG-context] \hangindent and R2L alignment

2015-09-23 Thread Wolfgang Schuster
} \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

Re: [NTG-context] frames for left/right pages

2016-10-10 Thread Wolfgang Schuster
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

[NTG-context] buffers inside startMPpage

2016-10-14 Thread Jan Willem Flamma
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

Re: [NTG-context] mathradical defaults to "normal", should it perhaps be "default"?

2017-06-07 Thread Hans Hagen
-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)

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

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

Re: [NTG-context] \textwidth vs local

2013-05-17 Thread Idris Samawi Hamid ادريس سماوي حامد
\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

Re: [NTG-context] math spacing

2011-03-14 Thread Otared Kavian
:\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

Re: [NTG-context] Title in textrule

2011-04-12 Thread Aditya Mahajan
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

Re: [NTG-context] arbitrary tex-code in xml?

2011-08-22 Thread Thomas A. Schmitz
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

Re: [NTG-context] Export (table cell alignment)

2011-12-09 Thread Andreas Harder
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

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

2019-06-25 Thread Pablo Rodriguez
} \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

[NTG-context] About the numbering of theorems

2020-08-07 Thread Fabrice Couvreur
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

Re: [NTG-context] Buglet in figure placement

2009-08-14 Thread Hans Hagen
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

[NTG-context] buffer problem (mkii)

2009-09-24 Thread Peter Rolf
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

Re: [NTG-context] extra space after variant

2005-12-02 Thread Adam Lindsay
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

Re: [NTG-context] xml and buffers

2006-01-19 Thread Hans Hagen
}{} \XMLifequalelse{meta}{name}{date} {\startbuffer[date]\XMLpar{meta}{content}{}\stopbuffer}{} \defineXMLenvironment [title] {\startstandardmakeup \getbuffer[course_name] \getbuffer[date]}{\stopstandardmakeup} But

Re: [NTG-context] [Fwd: after=\page in natural tables]

2006-01-20 Thread Vit Zyka
\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

Re: [NTG-context] buffer error

2007-02-16 Thread Hans Hagen
t test test. > \stoplinenumbering% > \stopbuffer > > {\typebuffer[footnote] \getbuffer[footnote]} \page > > > works, but > > > \startbuffer[footnote] > > \definenote[metanote][conversion=set 2] &

[NTG-context] split rotated TABLE

2007-05-31 Thread Henning Hraban Ramm
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

Re: [NTG-context] mkiv and lettrine

2015-03-01 Thread Hans Hagen
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 \

Re: [NTG-context] new beta

2015-06-15 Thread Alan BRASLAU
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

Re: [NTG-context] korean

2013-10-31 Thread Jeong Dal
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 >

Re: [NTG-context] ConTeXt gobble my mind

2014-11-07 Thread Pierre-François Bonnefoi
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

Re: [NTG-context] ConTeXt gobble my mind

2014-11-09 Thread Pierre-François Bonnefoi
{\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. >>

Re: [NTG-context] atpage || number comparing

2012-05-15 Thread Hans Hagen
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

Re: [NTG-context] The ultimate (?) float problem

2009-05-14 Thread Piotr Kopszak
=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,

Re: [NTG-context] table layout

2007-11-07 Thread Wolfgang Schuster
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

Re: [NTG-context] side figure and typing

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

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

2021-08-02 Thread Benjamin Buchmuller via ntg-context
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

Re: [NTG-context] Define a new command from the command \periods[n]

2015-01-18 Thread Fabrice
] \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

Re: [NTG-context] wrong vertical spacing in latest beta

2015-04-16 Thread Pablo Rodriguez
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

Re: [NTG-context] next beta

2017-06-12 Thread Mathias Schickel
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

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-08-21 Thread Pablo Rodriguez
] \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.

Re: [NTG-context] arbitrary tex-code in xml?

2011-08-22 Thread Hans Hagen
\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

Re: [NTG-context] Export (table cell alignment)

2011-12-09 Thread Hans Hagen
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

[NTG-context] hz / expansion

2019-12-02 Thread Hans Hagen
{\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

Re: [NTG-context] Tent style cards

2019-12-21 Thread Pablo Rodriguez
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 __

Re: [NTG-context] efficiently scaling fonts

2020-12-24 Thread Pablo Rodriguez
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

Re: [NTG-context] doifmode with a buffer following this command

2010-02-21 Thread Willi Egger
. 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

Re: [NTG-context] New beta

2009-03-13 Thread Hans Hagen
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

Re: [NTG-context] How to get the number of lines of a paragraph?

2009-04-06 Thread Wei-Wei Guo
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

[NTG-context] new upload

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

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

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

[NTG-context] linecorrection

2006-07-16 Thread David Arnold
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

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

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

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

2021-08-02 Thread Wolfgang Schuster via ntg-context
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

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