Re: [NTG-context] address labels

2004-01-11 Thread Willi Egger
=-3mm] {\switchtobodyfont[10pt]\getbuffer[Adr\recurselevel]} \setlayer [Etiket] [preset=lefttop,location={right,bottom}] {\switchtobodyfont[5pt]\Logo} \placelayer[Etiket]} \stoptext

Re: [NTG-context] XY arrangement

2004-02-23 Thread Hans Hagen
tiket] [preset=righttop,location={left,bottom}] {\bfb Productname} \setlayer [Etiket] [preset=leftbottom,location={right,top}] {\switchtobodyfont[7pt]\getbuffer[Logoinhalt]} \placelayer[Etiket]} \sto

Re: [NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
, header=empty, footer=chpaterfooter, sectionsegments=chapter, before={\setups[chapter:before]}, after={\setups[chapter:after]}] \startsetups chapter:before \page[left] \noheaderandfooterlines \startalignment[left,nothyphenated] \startnarrower[4*left] \em \getbuffer[

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

2016-05-27 Thread Hans Hagen
stopcombination in wrong spot \stopbuffer \starttext \dorecurse{3} {\getbuffer[programa]} \stoptext disable object reuse \startplacefigure \startcombination[2*1] {\externalfigure[ammeter][type=buffer,object=no,width=8cm]}{\_\_\_\_\_\_\_\_\_\_$\pm$\_\_\_\_\_\_\_\_} {\externalfigure[ammeter

Re: [NTG-context] How can I remove a blank leading line from a buffer

2018-08-13 Thread Rik Kabel
: \First, arg: \Arg)]    %\setupparagraphintro[next][(first: \First, arg: \Arg)]     \getbuffer[TestBuffer]   \stopparagraph Hans, That works for the over-simplified case here, but fails in practice. For a \startnarrower[left] paragraph, the mark is still in the main margin, not the 'margi

Re: [NTG-context] Arabic with LuaTeX vs. XeTeX

2008-06-09 Thread Khaled Hosny
اَلْحَمْدُ لِلّٰهِ حَمْدَ مُعْتَرِفٍ بِحَمْدِهٖ، مُغْتَرِفٌ مِنْ بِحَارِ > مَجْدِهٖ، بِلِسَانِ > الثَّنَاۤءِ شَاكِرًا، وَلِحُسْنِ اٰلاۤئِهٖ نَاشِرًا؛ اَلَّذِيْ خَلَقَ > الْمَوْتَ وَالْحَيٰوةَ، وَالْخَيْرَ > وَالشَّرَّ، وَالنَّفْعَ وَالضَّرَّ، وَالسُّكُوْنَ وَالْحَرَكَةَ،

Re: [NTG-context] Re;Help TABLE

2010-12-10 Thread Philipp Gesang
ecurse{100}{\bTR \dorecurse{8}{\bTC text \eTC} \eTR} \eTABLEbody \bTABLEfoot \bTR \bTC[nc=8]*\$=New Taiwan Dollars \eTC \eTR \eTABLEfoot \eTABLE \stopbuffer \starttext \placetable[here,split][tab:five]{Salary Stats}{\getbuffer} \stoptext ···8<

Re: [NTG-context] arranging and cut marks

2011-07-29 Thread Willi Egger
k[force] > \midaligned{\Style} > \vfill > \midaligned{This is page \recurselevel} > \vfill > \stopbuffer > > \setupheadertexts[\CONTEXT] > > \starttext > % \showframe > \dorecurs

Re: [NTG-context] context() does not ignore space in empty line

2021-04-19 Thread Hans Hagen
#x27;line 7.1 ( \n\n)line 7.2\n\n') context.blank() context('line 8.1 ( \n\n ) line 8.2\n\n') context.blank() context('line 9.1 (\n \n)line 9.2\n\n') context.blank() context('line 0.1 (\n \n \n) line 0.2\n\n') context.blank() \stopl

Re: [NTG-context] Strange mixing of lists (figures, tables etc.) and lists of bibliography

2012-02-27 Thread Jaroslav Hajtmar
ption of figure with link to bibliography \cite[hh2010a].} } {\externalfigure[fig1]} \stopbuffer \starttext Citation one is \cite[hh2010a] and another citation is \cite[Eijkhout1991]. \getbuffer[fig1] % When you uncomment next line, then bibliography crashed %\section{Li

Re: [NTG-context] 2 columns: 1 language per column (solved)

2012-07-31 Thread Otared Kavian
gt; \bf\dorecurse{15}{\dorecurse{20}{french }\par} > \stopbuffer > > \stopenvironment > ]]) > fp:close() > end > > local function create_pages(s) > local fp = io.open("pages.tex", "w") > fp:write(format([[ > \enablemode[columns] > \envir

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

2009-08-12 Thread Andreas Harder
d would like to pipe them to Metapost. I thought I could use a textext(\getbuffer[i])-construct, it failed. So I tried it with \setMPtext{}{} … What is the approach to achieve this? Well, if nothing else works, you can always cheat. \startluacode userdata = userdata or {} userdata

Re: [NTG-context] Relative font scaling

2005-09-01 Thread Hans Hagen
f at 60pt]\test TEST \par %D \definefont[test][Serif scaled 6000]\test TEST \par %D \stopbuffer %D %D \typebuffer %D %D \startpacked %D \getbuffer %D \stoppacked - Hans Hagen | PRAGMA ADE

Re: [NTG-context] counting the words in a TeX document

2006-08-07 Thread Mojca Miklavec
echansim will never be > perfect (or close to perfect) in the sense of parsing arbitrary input. The most dummy solution that I could think of (using slightly modified Hans's ruby script): \unprotect \def\startstatistics {\dodoubleempty\dostartstatistics} \def\dostartstatistics[

[NTG-context] project structure and dissertations

2007-11-01 Thread Jesse Alama
... or would I somehow be able to refer to the whole text of the preface and do something like \startproduct dissertation \component preface \chapter{Preface} \getbuffer{buf:preface} \startfrontmatter ... with the whole text of the preface in a buffer? I would appreciate

Re: [NTG-context] Absolute positioning

2003-12-02 Thread Hans Hagen
]} {\input ward \relax} \input ward \blank \input knuth \SomeNote{[[knuth]]} {\input knuth \relax} \input knuth \blank \input tufte \SomeNote{[[tufte]]} {\input tufte \relax} \input tufte \blank \input bryson \SomeNote{[[bryson]]}{\input bryson\relax}

Re: [NTG-context] address labels

2004-01-11 Thread R. Ermers
ef\Logo% > {\externalfigure[wooden_coptic][height=\textheight]} > > %\input adreslist %Contains the addresses as given below: > > % \startbuffer[Adr1] > %\framedtext{% > %\startlines > %Mr. Robert Ermers \\ > %\CONTEXT-technician\\ > %W

Re: [NTG-context] LMTX, BIdi, full paragraph, and spurious empty line

2021-06-23 Thread Rik Kabel
    {\em The YIVO and the problems of our time}, and also as     {\em The YIVO faces the post-war world}. \stopbuffer \starttext   \getbuffer[Test] \stoptext -- Rik ___ If your question is of inte

Re: [NTG-context] Reading ConTeXt metadata values into Lua

2021-10-16 Thread Hans Hagen via ntg-context
    context.EQ()     context(structures.counters.get("realpage",1,"last"))     context.NC()     context.NR() context.stoptabulate() \stopluacode \stopbuffer \starttext \dorecurse     {\randomnumber{5}{10}}     {\getbuffer[pagenumber] \page} \stoptext As addendum ..

[NTG-context] Spacing issue with \digits in math mode

2022-10-04 Thread Gavin via ntg-context
igits {12,345.67e89}$ 51 \setdigitmode {5} \setdigitorder{1} $\digits {12,345.67e89}$ 61 \setdigitmode {6} \setdigitorder{1} $\digits {12,345.67e89}$ \stopbuffer \typebuffer This is typeset as: \startlines \getbuffer \stoplines In text, the \type{\digits} command works fine: \setdigitmo

Re: [NTG-context] How to extend an existing macro to take optional parameters?

2023-03-13 Thread Hans Hagen via ntg-context
b}{cc}{dd}[ee] \mycommand{aa}{bb}{cc} \mycommand{aa}{bb}{cc}{dd} \mycommand{aa}{bb}{cc}{dd}[ee] \stopbuffer \typebuffer \startlines \getbuffer \stoplines \stoptext I'm not saying that it's the best solution, you can add \protected in

[NTG-context] Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread garulfo
etelistofsynonyms Command/ completeregister Command/ copylabeltext Command/ ctxfunction Command/ ctxfunctiondefinition Command/ currentlabel Command/ delimitedtext Command/ description Command/ enumeration Command/ fence Command/ fraction Command/ framed Command/ framedtext Command/ getbuffer Command/ hbox Co

Re: [NTG-context] Clickable question/answer numbers

2016-11-05 Thread Wolfgang Schuster
\beginanswer \startanswer \input knuth \stopanswer \endanswer % \stopbuffer \starttext \dorecurse{10}{\getbuffer} \page \useblocks[answer] \stoptext end example Wolfgang ___ If your qu

Re: [NTG-context] A better \definesymbol sought

2017-01-25 Thread Hans Hagen
???} \stopeffect \stopcolor \stopbuffer \startuseMPgraphic{HeartTest} picture h,q ; h := "♥" infont "\truefontname{DejaVuSerif-Bold.ttf}" scaled 5 ; q := textext("{\getbuffer[Outer]}") scaled 3 ; draw h withcolor blue ;

Re: [NTG-context] letters in context mkiv

2017-07-31 Thread r . ermers
\xmlflushtext{#1}\par\stopxmlsetups\setupletterlayer  [address]  [alternative=setups,   y=6cm,   x=12cm,   color=red,   style=\ss\tfa]\startsetups[letter:section:content]    \getbuffer[lettercontent]\stopsetups%\startbuffer[lettercontent]%content of the letter \xmltext{#1}{/city}%\input knuth \relax

Re: [NTG-context] Registers and getparameters

2018-01-23 Thread Hans Hagen
e}    \NC\NR   \NC Room    \EQ \getvariable{talk}{room}    \NC\NR   \HL   \stoptabulate \stopbuffer \setvariable{talk}{set}{\getbuffer[pagetalk]} \showframe[text][text] \starttext \setvariables   [talk]   [speakername={Gauss},    title={Remarks on Number Theory},    time={10:

Re: [NTG-context] Manipulating the left blank page when chapter starts on the right page

2019-01-12 Thread Rik Kabel
graph \doifelsebuffer{ChapterEpigraph} {\page[yes,header,footer,left] \dontleavehmode \vfill \getbuffer [ChapterEpigraph] \resetbuffer [ChapterEpigraph] \vfill \vfill } {\page[yes,h

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

2008-06-09 Thread Wolfgang Schuster
wdimen\fontstep\fontstep = 1pt \starttext \definefont[Cover][Sans at \the\coverfont] \gettwopassdata{cover} \iftwopassdatafound \coverfont\twopassdata \definefont[Cover][Sans at \the\coverfont] \fi \setbox\cover\ruledvbox {\hsize\coverwidth \Cover\setupinterlinespace \s

Re: [NTG-context] Include section number in reference

2011-10-15 Thread Wolfgang Schuster
toptyping \referencetable[sec:table] \startbuffer \reference[ref:test]{Is this the text or the title?} \stopbuffer \getbuffer \typebuffer \referencetable[ref:test] \stoptext With the third argument you can control which prefixes (section numbers which a

[NTG-context] \unit problem

2011-11-03 Thread Romain Diss
106: \unit{2.21 GW} 107: \unit{345 mW} 108: \unit{152.20 mHz} 109: \unit{55.5 mmol} 110: \unit{6.7 mol/l} 111: \unit{125 g/l} 112: \unit{125 g / l} 113: \unit{125 km/s} 114: \unit{125 m/s} 115: \unit{125 mA/s} \stopbuffer \typebuffer Result: \startlines \getbuffer \stoplines \stoptext Thank yo

Re: [NTG-context] changing alignment inside a paragraph

2019-12-11 Thread Wolfgang Schuster
-\emwidth\relax \else     \parshape 1 \emwidth \dimexpr\hsize-\emwidth\relax \fi 34, 57, 101-104, 276, 345, 401, 403, 512. \stopalignment \stopbuffer \dorecurse   {10}   {\hsize\dimexpr.75\textwidth-#1\emwidth\relax    \get

[NTG-context] multitone color problem

2012-04-24 Thread Peter Rolf
]} {spot color} {\externalfigure[demo-b][color=yellow-100]} {spot color} \stopcombination \stopbaselinecorrection \stopbuffer \starttext \getbuffer \typebuffer \stoptext %%% Local Variables: %%% mode: context %%% TeX-master: "" %%% End: multitone.7z Description: B

Re: [NTG-context] Biblography list does not show numbers

2009-12-06 Thread Otared Kavian
\CONTEXT\ Publication Module, The user documententation} \pubyear{2006} \note{In case you didn't know: this is the main manual wriiten on bib-module.} \pages{14} \stoppublication \stopbuffer \getbuffer[bibexample] \setuppublications[numbering=yes] \setupcite[num,left={[},right={]}] \section

Re: [NTG-context] Problem with special first page of chapter setup

2005-10-28 Thread Peter Rolf
s know exactly the same things. The game is played in the mind.''\crlf ``I don't get it.''\crlf ``Well, look! You can't cheat in mathematics or poetry or music because they're based on truth. Untruth or cheating is just foreign,

Re: [NTG-context] Color Separation with external figures and spot colors

2005-11-16 Thread Hans Hagen
]} {no color} {\externalfigure[demo-b][color=combicolor]} {indexed duotone} {\externalfigure[demo-b][color=blue-100]} {spot color} {\externalfigure[demo-b][color=yellow-100]} {spot color} \stopcombination \stopbaselinecorrection \stopbuffer \getbuffer \typebuffer \stoptext

[NTG-context] mixed colors in TABLE

2006-03-13 Thread olivier
lignment[center] \hbox \bgroup \ignorespaces \externalfigure[Pachiraaquatica.jpg][width=.5\paperwidth] \unskip \quad \ignorespaces \getbuffer[caracteristiques] \unskip \egroup \stopalignment \stoptext and the answer from texmfstart newtexexec.rb --autopdf --pdf pachira-quest.tex

[NTG-context] textbackground trouble

2006-06-28 Thread Aditya Mahajan
={\blank[small]}, before={\blank[small]}] \def\ShowExample {\startexample % \nobreak \typebuffer \stopexample \getbuffer} \setvariables [magazine] [title={Using \textbackslash startalign and friends}, author=Aditya Mahajan, date=\currentdate, ] \starttext \setups

Re: [NTG-context] creating environments

2007-01-31 Thread Hans Hagen
ent in this way: >>> >>> \def\startFOO#1\stopFOO{...} >>> >>> This means TeX reads everything from \startFOO till \stopFOO and looks >>> afterwards at the replacement text. >>> >> I am not sure how something like that you work.

Re: [NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
gt; > \startsetups chapter:before > \page[left] > \noheaderandfooterlines > \startalignment[left,nothyphenated] > \startnarrower[4*left] > \em \getbuffer[chapter:quote] > \stopnarrower > \stopalignment > \resetsetups[quote:text] >

Re: [NTG-context] How to extend an existing macro to take optional parameters?

2023-03-14 Thread Bruce Horrocks via ntg-context
text > > \tolerant\def\mycommand#=#=#=#=#:[#5]% > {\ifparameter#1\or(1:#1)\fi > \ifparameter#2\or(2:#2)\fi > \ifparameter#3\or(3:#3)\fi > \ifparameter#4\or(4:#4)\fi > \ifparameter#5\or[5:#5]\fi} > > \startbuffer > \mycommand{aa}{bb}{cc} > \mycommand{aa}

Re: [NTG-context] How can I remove a blank leading line from a buffer

2018-08-13 Thread Hans Hagen
\llap{\Mark}\inlinebuffer[TestBuffer] % \ (first: \First, arg: \Arg) \margintext{\Mark} \setupparagraphintro[first][(first: \First, arg: \Arg)] %\setupparagraphintro[next][(first: \First, arg: \Arg)] \getbuffer[TestBuffer] \stopparagraph

Re: [NTG-context] issue with optical bounds (OpenType)

2018-12-09 Thread Hans Hagen
ainface][tt][Latin Modern Mono] \setupbodyfont[mainface, 300pt] \setupalign[hanging] \startbuffer «a\par «b\par Ω\par Ὧ\par Ἠ\par \stopbuffer \starttext \setupparagraphintro[each][\setfirstline] \getbuffer \stoptext

Re: [NTG-context] Entering text into layers

2014-05-19 Thread Hans Hagen
ayerframed [somelayer] [preset=lefttop, x=1cm, y=4cm] [width=10cm, align=normal] {\getbuffer} - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlan

Re: [NTG-context] mkiv: Bug in Right to Left numerals?

2008-10-21 Thread Otared Kavian
>> This file has been typeset on \currentdate{} at \currenttime, mkiv, >> ConTeXt >> version \contextversion, >> % LuaTeX version \luatexversion, >> LuaTeX revision \luatexrevision,

Re: [NTG-context] how to get thick and thin borders working in tables (ConTeXt)

2008-12-09 Thread Lars Huttar
. Any suggestions? The above graphic is used as follows... \start \setupTABLE[c][first][background={table:frame:Lrtb}] \getbuffer \stop Thanks, Lars ___ If your question is of interest to others as well, pleas

Re: [NTG-context] Tracking in MKII and MKIV

2011-08-16 Thread Hans Hagen
haracterkerning[mykerning] \getbuffer \par } \stopsetups \startuniqueMPgraphic{cover} StartPage ; left_margin := 0.3472in ; top_margin := 0.3472in ; draw textext.lrt("\setups[covertext]") shifted ulcorne

Re: [NTG-context] Hello world title not flush left - beginner question?

2011-11-03 Thread Wolfgang Schuster
\texsetup{dictum}] >> >> \startsetups dictum >> >> \doifelsebuffer{dictum} >>{\startframedtext[right][frame=off,offset=none,width=.5\ >> textwidth,foregroundstyle=\itx] >> \getbuffer [dictum] >> \resetbuffer[dictum] >> \stopfra

Re: [NTG-context] Occasional words sticking out from flush-right

2010-03-03 Thread Aditya Mahajan
ng a pdf output is that we can show the output of code snippets. For example, \startbuffer some tex code \stopbuffer \typebuffer gives \getbuffer thereby ensuring that the documentation is showing the correct behavior. To do this in html requires additional context run, converting the output

Re: [NTG-context] Placing boxes anywhere on the page

2010-11-16 Thread Wolfgang Schuster
t\dostarttextbox} \def\dostarttextbox[#1]% {\def\stoptextbox{\setlayerframed[textbox][width=6cm,align=normal,frame=off,#1]{\getbuffer[textbox]}}% \startbuffer[textbox][starttextbox][stoptextbox]} \starttext \starttextbox[x=2cm,y=4cm] The Earth, as a habitat for animal life, is in old ag

[NTG-context] font, line spacing issues

2010-11-17 Thread Peter Davis
upbackgrounds[page][background=textbox] \def\starttextbox {\dosingleargument\dostarttextbox} \def\dostarttextbox[#1]% {\def\stoptextbox{\setlayerframed[textbox][width=6cm,align=normal,frame=off,#1]{\getbuffer[textbox]}}% \startbuffer[textbox][starttextbox][stoptextbox]} \startt

Re: [NTG-context] \starbuffer in own macros

2009-10-18 Thread Wolfgang Schuster
{\edef\tline{\currentreferencedefault}% was \currentreferencetext \ifx\fline\tline#2\else#3\fi} {\unknownreference{#1}#2}} {\unknownreference{#1}#2}} \def\startMyCite[#1]% {\def\stopMyCite {\setuplines[before=,after=]% \startlines\startline[#1]\getbuffer[

[NTG-context] More to report on mfonts -- Lucida?

2005-11-23 Thread David Arnold
yle } \edef \fontstyle {\fontstyle }\if... ... l.644 {\funny \getbuffer[sample]} ? Hitting "s" at this point to scroll through the errors, the compile finishes and I have an mfonts.pdf. Of course, the Lucida stuff is missin

Re: [NTG-context] align question

2006-07-18 Thread Aditya Mahajan
based on that input, so i suggest > that the two of you come up with specs Context supports everything that latex array provides, with a slightly different syntax. Some extract from the update on myway on alignment (I am still working on it) % \def\ShowExample % {\hairline %\typ

Re: [NTG-context] counting the words in a TeX document

2006-08-07 Thread Aditya Mahajan
howStats{We do some great things in \in{section}[a]} % I do not know the internals, but section 1 seems unbreakable \ShowStats{$a=b$} %What did you expect? It may be possible to treat %each math token as mathord and allow it to break %but that will not give an

[NTG-context] beta: bug with transparent colors in fields

2006-11-13 Thread Peter Rolf
} \input ward \blank \input knuth \SomeNote{[[knuth]]} {\input knuth \relax} \input knuth \blank \input tufte \SomeNote{[[tufte]]} {\input tufte \relax} \input tufte \blank \input bryson \SomeNote{[[bryson]]}{\input bryson\relax} \input bryson \blank \stopbuffer \dorecurse{10}{\getbuffer} \

Re: [NTG-context] creating environments

2007-01-31 Thread Wolfgang Schuster
environment in this way: >>> >>> \def\startFOO#1\stopFOO{...} >>> >>> This means TeX reads everything from \startFOO till \stopFOO and looks >>> afterwards at the replacement text. >>> >> I am not sure how something like that you work. >&

Re: [NTG-context] typesetting a formula as a figure

2007-11-24 Thread Aditya Mahajan
nation[2*2] >> {\externalfigure[7starmagic1][width=.25\makeupwidth]}{G} >> {\externalfigure[one.tmp]}{AA} >> {\externalfigure[one.tmp]}{BB} >> {\externalfigure[one.tmp]}{CC} >> \stopcombination} >> >> \stoptext >> >> Then, I got a strange output(fig 1: wi

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

2007-08-02 Thread WN
}] \NC (\lambda + \mu ) \cdot a \NC = \NC \lambda \cdot a + \mu \cdot a \NR \NC \lambda ( a + b ) \NC = \NC \lambda \cdot a + \lambda \cdot b \NR \stopaligned \quad \text{(distributieve eigenschappen)} \stopformula \stopbuffer \starttext Test user defined math matrices without a section (with Aditya&

Re: [NTG-context] setup different layouts in merged documents

2015-02-17 Thread Pablo Rodriguez
therLayer]{Other pages} >> \setupbackgrounds[page][background={FirstLayer,OtherLayer}] >> %~ \mbox{}\blank[75mm] >> \dorecurse{17}{\input zapf\par} >> \cA\hfill >> \cB >> \page >> \stopbuffer >> >> \opencsvfile{mail.csv} >> \doloop{\ifn

Re: [NTG-context] new module seeking approval: handlecsv

2017-11-12 Thread Mojca Miklavec
e course {\em\Course}, achieving the > following grade: \Grade.\page > \stopbuffer > \doloopforall{\getbuffer} > \stoptext Which is exactly what the other module supports. See page 4 of http://dl.contextgarden.net/myway/csv.pdf > Having to do that with before and after opti

Re: [NTG-context] Randomize order of blocks

2021-01-06 Thread Otared Kavian
edList[\recurselevel]]}(x) := \cldcontext{ListOfFunctions[ShuffledList[\recurselevel]]}$. Prove that \startformula \cldcontext{ListOfNames[ShuffledList[\recurselevel]]}'(x) = \cldcontext{ListOfDerivatives[ShuffledList[\recurselevel]]} \stopformula \stopbuffer \dorecurse{6}{\blank[mediu

Re: [NTG-context] Where to put a module?

2010-03-07 Thread Philipp Gesang
but until now I had no luck implementing it; I'm stuck at the following: \def\starttransliterate {% \bgroup\dostarttransliterate% } \def\stoptransliterate {% \egroup \transliterate{% \getbuffer[trl]% }% } \def\dostarttransliterate{% \dostartbuffer[trl][starttransliterate][stoptransliterate]

Re: [NTG-context] Figure captions in margin

2013-01-20 Thread Marco Patzer
ontext.stopplacewidefigure() end end context.protect() end \stopluacode \starttexdefinition stopplacesmartfigure \scratchdimen\hsize \hsize\maxdimen \setbox\scratchbox\vbox{\getbuffer[smart_figure_buffer]} \hsize\scratchdimen \luacode{userdata.do_place_smart_figure(

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

2006-04-11 Thread Hans Hagen
stoptable >> \stopbuffer >> >> \page >> P�gina 2. >> >> % It works if you place a comment \start \startlocal and \stoplocal and \stop >> % It wont work without the "%" >> &g

Re: [NTG-context] counting the words in a TeX document

2006-08-05 Thread Aditya Mahajan
ttp://ctan.org/tex-archive/support/detex/ I have not used it, but I think that it strips off every command \something from the tex file. Then you can filter the file through wc to get a rough estimate of the number of words. One approach that will work is \startstatistics[filename][words|lett

Re: [NTG-context] creating environments

2007-02-05 Thread Wolfgang Schuster
gt; > >>> I defined my environment in this way: > >>> > >>> \def\startFOO#1\stopFOO{...} > >>> > >>> This means TeX reads everything from \startFOO till \stopFOO and > looks > >>> afterwards at the replacement text. > >>&

Re: [NTG-context] typesetting a formula as a figure

2007-11-24 Thread Idris Samawi Hamid
gure[one.tmp]}{CC} > \stopcombination} > > \stoptext > > Then, I got a strange output(fig 1: wide blank spaces between > columns). If I use \getbuffer instead of \externalfigure, I got > somewhat proper output(fig 2), but the figure is located much higher > than the matrix(h

[NTG-context] Why is my output body text in 15pt?

2014-07-23 Thread Gerben Wierda
\getbuffer[chapter:quote] \stopnarrower \stopalignment \resetsetups[quote:text] \page[right] \noheaderandfooterlines \blank[force,2*big] \stopsetups \startsetups chapter:after \blank[3*big] \stopsetups \setuptolerance[horizontal=strict] \setupcolors[state=start

Re: [NTG-context] How do you position/move a MPgraphic?

2009-10-25 Thread Peter Rolf
ic \startuseMPgraphic{somecolorcircle} colorcircle(2cm,white,.625red,\MPcolor{Orange}) ; \stopuseMPgraphic \startTEXpage \definelayer[somelayer]%[width=600pt,height=450pt] \setlayer[somelayer] {\useMPgraphic{somebackground}} \setlayer[somelayer][

Re: [NTG-context] Reading ConTeXt metadata values into Lua

2021-10-17 Thread Ramkumar KB via ntg-context
t; \startluacode > > context.starttabulate() > > context.NC() > > context("Current page") > > context.EQ() > > context(structures.counters.get("realpage",1,"number")) > > context.NC() > > c

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-16 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] How can I remove a blank leading line from a buffer

2018-08-13 Thread Rik Kabel
  \startparagraph % \dontleavehmode\llap{\Mark}\inlinebuffer[TestBuffer] % \ (first: \First, arg: \Arg)     \margintext{\Mark}     \setupparagraphintro[first][(first: \First, arg: \Arg)]    %\setupparagraphintro[next][(first: \First, arg: \Arg)]     \getbuffer[TestBuffer

Re: [NTG-context] Occasional words sticking out from flush-right

2010-03-04 Thread Aditya Mahajan
tex code \stopbuffer \typebuffer gives \getbuffer thereby ensuring that the documentation is showing the correct behavior. To do this in html requires additional context run, converting the output to png, and displaying the png (this is how the wiki treats ... tags). That is also something to

Re: [NTG-context] simplefonts

2010-03-12 Thread Hans Hagen
aps}capped 123 \addff{oldstyle}123!}\blank % Hello there {\addff{smallcaps}capped \subff{smallcaps}normal} \blank % \stopbuffer % % \typebuffer \getbuffer 4. For example, I gathered that I needed a [default] [default] [...onum=yes...] to get oldstyle numerals by default, but what if I w

Re: [NTG-context] unicode subscripts

2010-05-30 Thread Hans Hagen
al but probably that does not matter here. %D %D \startbuffer %D $a₀₁₂₃₄₅₆₇₈₉₋₌₊$ %D \stopbuffer %D %D \typebuffer \blank \getbuffer \blank \unprotect \unexpanded\def\mathunicodesupercrap#1{\mathortext{{^{#1}}}{\high{#1}}} \unexpanded\def\mathunicodesubcrap #1{\mathortext

Re: [NTG-context] font, line spacing issues

2010-11-18 Thread Wolfgang Schuster
rttextbox[#1]% {\def\stoptextbox{\setlayerframed[textbox][width=6cm,align=normal,frame=off,#1]{\getbuffer[textbox]}}% \startbuffer[textbox][starttextbox][stoptextbox]} \starttext \starttextbox[x=195.3pt,y=115.2pt,width=560.7pt,foregroundstyle={\switchtobodyfont[impact,48pt]},align=middle]

Re: [NTG-context] Symbols

2012-11-21 Thread Hans Hagen
gbats, unicoding=yes] \definefontsynonym [ZapfDingbats] [file:uzdr.afm] [features=dingbats] \stopbuffer \typebuffer \getbuffer I tend to qualify the Dingbat font in \TEX\ distributions as rather unstable because of name changes and them either or not being included. Therefore it's best to us

Re: [NTG-context] Duotones with spot colors

2009-07-09 Thread Piotr Kopszak
[demo-b][color=blue-100]} {spot color} {\externalfigure[demo-b][color=yellow-100]} {spot color} \stopcombination \stopbaselinecorrection \stopbuffer \getbuffer \typebuffer \stoptext The images in the column "indexed duotone" do not show up. Piotr 2009/7/7 Hans Hagen : > Piotr

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

2007-08-01 Thread WN
\startformula \startaligned[left={\left.},right={\right\}}] \NC (\lambda + \mu ) \cdot a \NC = \NC \lambda \cdot a + \mu \cdot a \NR \NC \lambda ( a + b ) \NC = \NC \lambda \cdot a + \lambda \cdot b \NR \stopaligned \quad \text{(distributieve eigenschappen)} \stopformula \stopbuffer \starttext Test use

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-20 Thread Gerben Wierda
ut knuth >> >> \stoptext >> end example > > Thanks. I tried this > > % Every chapter starts with a quote on the LHS page: > \setuphead > [chapter] > [page=, > before={\setups[chapter:before]}, >after={\setups[chapter:after]}] > > \startsetu

Re: [NTG-context] Entering text into layers

2014-05-20 Thread Keith McKay
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \stopbuffer \setlayerframed [somelayer] [preset=lefttop, x=1cm, y=4cm] [width=10cm,

Re: [NTG-context] changing alignment inside a paragraph

2019-12-12 Thread mf
size-\emwidth\relax \else     \parshape 1 \emwidth \dimexpr\hsize-\emwidth\relax \fi 34, 57, 101-104, 276, 345, 401, 403, 512. \stopalignment \stopbuffer \dorecurse   {10}   {\hsize\dimexpr.75\textwidth-#1\emwidth\relax    \getbuffer    \page} \stoptext Thanks Wolfgang. I wrote a bett

Re: [NTG-context] Randomize order of blocks

2021-01-06 Thread Jairo A. del Rio
\\cos(\\log(x))}{x}", > } > > \stopluacode > > \starttext > > % We define a buffer and a shuffled list of integers > > \startbuffer[test-derivatives] > \startluacode > ShuffledList = shuffle({1,2,3,4,5,6}) > \stopluacode > > Let $\cldco

Re: [NTG-context] Unable to use example from Excursion

2010-03-11 Thread Aditya Mahajan
L -- \VL\LR \HL \stoptable}{\tt bodyfont=6pt,distance=small} \stopcombination} \stopbuffer \typebuffer \getbuffer \stoptext Further, I do not see the effect of \setupcaption[style=boldslanted] in example 11.10 (pp 34-35) Typo in the manual. It should be \setupcaptions[style=...] or

[NTG-context] Simplified input for natural tables

2009-03-08 Thread Wolfgang Schuster
on %D \getbuffer %D \stoplinecorrection \protect \endinput ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-co

Re: [NTG-context] align question

2006-07-18 Thread Bruce H. Wagner
xtensions and taco/myself implement things based on that input, so i >suggest >> that the two of you come up with specs > >Context supports everything that latex array provides, with a slightly >different syntax. Some extract from the update on myway on alignment >(I am still working

Re: [NTG-context] ConTeXt problem on Mac mini

2006-09-16 Thread Mojca Miklavec
to make a small change in your file to make it work: comment this line: %\def\StopPersDatTab{\stoptables\stop} uncomment this one: \def\StopPersDatTab{\NC\use{2}\ReFormat[l]{}\NC\LR\stoptables\stop} > I get no error, but > 1. placetable ... \externalfigure[buffername.tmp] does not wo

Re: [NTG-context] Clickable question/answer numbers

2016-11-06 Thread Otared Kavian
ement\AnswerCounter \incrementcounter[answer] \endanswer \stopbuffer % ...and then the above buffer is invoked \define\noanswer {\getbuffer[noanswer]} % example of use: \starttext \startchapter[title=Questions] \startquestion[q:1] Prove that ${\rm e}\sim 2.73$ is irrational. This i

Re: [NTG-context] Is this a bug in header marking?

2017-10-17 Thread Rik
    \doifelsebuffer{SectionEpigraph}     {\getbuffer[SectionEpigraph] \resetbuffer[SectionEpigraph]}     {\donothing}     \page[yes,header,footer,right] \stopsetups \starttext     \completecontent     \startfrontmatter     \startchapter[title

Re: [NTG-context] \basegrid ignores color

2018-03-22 Thread Henri Menke
around but %D in a more modern way. %D %D \startbuffer %D \basegrid %D [nx=8,ny=5, %Ddx=.5,dy=.25, %Dunit=cm,scale=2,factor=1, %Doffset=1ex,xstep=2,ystep=1, %Dalign=middle,style=\tt\tx] %D \stopbuffer %D %D \typebuffer %D %D \placefigure %D {An example of a grid.} %D {\getbuff

Re: [NTG-context] two questions on ConTeXt terminology

2014-02-04 Thread Keith J. Schultz
TeX. >> >> e.g: >> \startbuffer >> ... >> \stopbuffer >> >> starts storing "things" in a buffer(aka. Variable). This would be simailar >> to "command" as you can access the buffer with \getbuffer and \putbuffer. >> Of cou

Re: [NTG-context] Entering text into layers

2014-05-20 Thread Hans Hagen
layer] [preset=lefttop, x=1cm, y=4cm] [width=10cm, align=normal] {\getbuffer} - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 03

[NTG-context] new font trickery

2020-12-22 Thread Hans Hagen
\start \glyphscale#1\relax \setupinterlinespace \samplefile{ward}% \bf \samplefile{ward} \par \stop \page } \stopbuffer \getbuffer \title{Scaled fonts} Although \CONTEXT\ is quite efficient with fonts there is always room for improvement. However, after years of finetunin

Re: [NTG-context] Symbols

2012-11-21 Thread Willi Egger
ffer > \definefontfeature > [dingbats] > [mode=base, > goodies=dingbats, > unicoding=yes] > > \definefontsynonym > [ZapfDingbats] > [file:uzdr.afm] > [features=dingbats] > \stopbuffer > > \typebuffer \getbuffer > > I tend to qualify the Dingbat

Re: [NTG-context] Simplified input for natural tables

2009-03-08 Thread Aditya Mahajan
on %D \getbuffer %D \stoplinecorrection \protect \endinput Thanks, Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/ma

[NTG-context] Suggestions and problems of the manuals

2024-01-17 Thread Gerion Entrup
ring in Okular/Poppler (I remember the same phenomena with early LMTX). See the screenshot attached (math-mkiv-online.png). Is there a newer version somewhere? Maybe it is meaningful to delete the old version. Best Gerion From 187f2bf0901d414bf55869054d29ee2c4bec1a64 Mon Sep 17 00:00:00 200

Re: [NTG-context] Clickable question/answer numbers (Otared Kavian)

2016-11-06 Thread Otared Kavian
efine\noanswer {\getbuffer[noanswer]} % example of use: \starttext \startchapter[title=Questions] \startquestion[q:1] Prove that ${\rm e}\sim 2.73$ is irrational. This is the first question, with its own reference, for later use. \stopquestion \beginanswer \startanswer This is the answer t

Re: [NTG-context] Adjust kern for one character

2019-12-26 Thread Rik Kabel
= { ["x"] = { ["x"] = 500 }, [" "] = { ["J"] = 500 } } } \stopluacode \startbuffer[Sample] g, Jaxxb AJon \stopbuffer \define[2]\Test{ {\switchtobodyfont[#1]#2\getbuffer[Sample]}} \setupb

Re: [NTG-context] Occasional words sticking out from flush-right

2010-03-04 Thread James Fisher
xtract the %D lines and post-process > them by any tool that you like. The biggest advantage of using a pdf output > is that we can show the output of code snippets. For example, > > \startbuffer > some tex code > \stopbuffer > > \typebuffer > > gives > > \getbuffer

Re: [NTG-context] Occasional words sticking out from flush-right

2010-03-04 Thread James Fisher
source and the documentation are in sync or not. Basically, >>> context sources are documented as >>> >>> %D documentation ... >>> >>> \tex code >>> >>> %D documentation >>> >>> \tex code >>> >>> I

<    5   6   7   8   9   10   11   >