Re: [NTG-context] deprecated startMPenvironment

2016-04-04 Thread Meer, Hans van der
ge may things all over the place. Now I learn from the ConTeXtgarden that startMPenvironment is deprecated and that I should use defineMPinstance and setupMPinstance instead. Thus I tried \defineMPinstance[mp:local][metafun][setups=mp:smallfont,textcolor=red] \startsetups mp:smallfont \switchtobo

Re: [NTG-context] How to get the current section level?

2016-04-04 Thread Wolfgang Schuster
Lukáš Procházka <mailto:l...@pontex.cz> 3. April 2016 um 22:02 Hello, is there a (Lua) way how to get the current section level? \startsetups[headinformation] \starttabulate \NC Name \EQ \currenthead \NC\NR \NC Level \EQ \currentheadlevel \NC\NR \stoptabulate \stop

Re: [NTG-context] deprecated startMPenvironment

2016-04-03 Thread Hans Hagen
startMPenvironment is deprecated and that I should use defineMPinstance and setupMPinstance instead. Thus I tried \defineMPinstance[mp:local][metafun][setups=mp:smallfont,textcolor=red] \startsetups mp:smallfont \switchtobodyfont[small] \stopsetups \startMPpage and also \startMPpage[mp:local

[NTG-context] deprecated startMPenvironment

2016-04-03 Thread Meer, Hans van der
use defineMPinstance and setupMPinstance instead. Thus I tried \defineMPinstance[mp:local][metafun][setups=mp:smallfont,textcolor=red] \startsetups mp:smallfont \switchtobodyfont[small] \stopsetups \startMPpage and also \startMPpage[mp:local] % metafont code \stopMPpage \stoptext \endinput

Re: [NTG-context] beta / current

2016-03-30 Thread Hans Hagen
have a minimal sample that shows the issue: \showframe\showgrid \setuppapersize[A5] \setuplayout[setups=*lessstrict, topspace=4.5cm, height=middle] \startsetups[*lessstrict] \setup[reset] \widowpenalty=1 \clubpenalty=1 \brokenpenalty

Re: [NTG-context] beta / current

2016-03-30 Thread Pablo Rodriguez
\setuplayout[setups=*lessstrict, topspace=4.5cm, height=middle] \startsetups[*lessstrict] \setup[reset] \widowpenalty=1 \clubpenalty=1 \brokenpenalty=1 \stopsetups \starttext \dorecurse{5}{\input quevedo-es\par} \page \dorecurs

Re: [NTG-context] different \setupdelimitedtext for notes

2016-03-06 Thread Pablo Rodriguez
On 03/06/2016 07:35 PM, Wolfgang Schuster wrote: >> Pablo Rodriguez 6. März 2016 um 17:12 >> [...] >> How can I have differet setups for blockquotes in footnotes? > > \startsetups[note:blockquote] > > \setupdelimitedtext > [blockquote] > [b

Re: [NTG-context] different \setupdelimitedtext for notes

2016-03-06 Thread Wolfgang Schuster
s text. \startblockquote This is a quote\footnote{This is a footnote. \startblockquote This is another quote.\stopblockquote} \stopblockquote \stoptext How can I have differet setups for blockquotes in footnotes? \startsetups[note:blockquote] \setupdelimitedtext [blockquote] [before={

Re: [NTG-context] A document composed only of TEXpages

2016-03-04 Thread Hans Hagen
tate=start] \startsetups[myTEXpagesetup] \setupwhitespace[line] \setuptolerance[space] \stopsetups \setupfittingpage[TEXpage] [command=\texsetup{myTEXpagesetup}, height=fit, width=210mm, offset=10mm] \starttext \startTEXpage \startsection[title={My Section}] \placecontent \s

[NTG-context] A document composed only of TEXpages

2016-03-04 Thread Chicho Pep
genumber+1]. Here is my document: *** \setupinteraction[state=start] \startsetups[myTEXpagesetup] \setupwhitespace[line] \setuptolerance[space] \stopsetups \setupfittingpage[TEXpage] [command=\texsetup{myTEXpagesetup}, height=fit, width=210mm, offset=10mm] \starttext \st

Re: [NTG-context] interaction in a chapter footer

2016-03-03 Thread Hans Hagen
On 3/3/2016 11:45 PM, Alan BRASLAU wrote: On Thu, 3 Mar 2016 22:42:22 +0100 Hans Hagen wrote: \startsetups chapter:footer {\goto{\CONTEXT\ garden}[url(http://http://wiki.contextgarden.net)]} \stopsetups \definetext [chapterfooter] [footer] [\setups{chapter:footer}] Thanks

Re: [NTG-context] interaction in a chapter footer

2016-03-03 Thread Alan BRASLAU
On Thu, 3 Mar 2016 22:42:22 +0100 Hans Hagen wrote: > \startsetups chapter:footer > {\goto{\CONTEXT\ > garden}[url(http://http://wiki.contextgarden.net)]} \stopsetups > > \definetext >[chapterfooter] >[footer] >[\setups{chapter:footer}] Thanks, I

Re: [NTG-context] interaction in a chapter footer

2016-03-03 Thread Hans Hagen
://wiki.contextgarden.net)]}] \setuphead [chapter] [footer=chapterfooter] \starttext \startchapter [title=A chapter] \input knuth \stopchapter \stoptext (partly-)MWE \startsetups chapter:footer {\goto{\CONTEXT\ garden}[url(http://http://wiki.contextgarden.net)]} \stopsetups \definetext

Re: [NTG-context] Controlling \at output

2016-02-28 Thread Aidan Nichol
Thanks for the reply. \thispage is producing no output in all the places it is being invoked Aidan > On 24 Feb 2016, at 15:35, ntg-context-requ...@ntg.nl wrote: > > startsetups[referenceformat:thispage] >\doifelse{\filterreference{page}}{\rawcountervalue[userpage]} >

Re: [NTG-context] ntg-context Digest, Vol 140, Issue 59

2016-02-24 Thread Aidan Nichol
Thanks for the reply. \thispage is producing no output in all the places it is being invoked Aidan > On 24 Feb 2016, at 15:35, ntg-context-requ...@ntg.nl wrote: > > startsetups[referenceformat:thispage] > \doifelse{\filterreference{page}}{\rawcountervalue[userpage]} >

Re: [NTG-context] Controlling \at output

2016-02-24 Thread Wolfgang Schuster
I get is with \doifelse{\at[ref2]}{\at[ref2]}…. which is pretty useless Presumably I’m doing something stupid. Or do i have to go for a much lower level approach \startsetups[referenceformat:thispage] \doifelse{\filterreference{page}}{\rawcountervalue[userpage]} {

Re: [NTG-context] new error in Context-Metapost

2016-02-17 Thread Hans Hagen
thing changed I missed? Hans van der Meer The error occurs in this code, my suspect is the cases macro. \starttext \startsetups[dif-1] $\displaystyle \Delta_{in} = 1000_2 \cases{(A,2)(2,A)&\cr (6,E)(E,6)&\cr} \buildrel S_1 \over \rightarrow \quad \Delta_{uit} = 1011_2 \cases{(6,D)(D,6)&\

[NTG-context] new error in Context-Metapost

2016-02-17 Thread Meer, Hans van der
s van der Meer The error occurs in this code, my suspect is the cases macro. \starttext \startsetups[dif-1] $\displaystyle \Delta_{in} = 1000_2 \cases{(A,2)(2,A)&\cr (6,E)(E,6)&\cr} \buildrel S_1 \over \rightarrow \quad \Delta_{uit} = 1011_2 \cases{(6,D)(D,6)&\cr (B,0)(0,B)&a

Re: [NTG-context] Absolute position in table cell

2016-02-17 Thread Volker Mische
lso tried it the `\placeannotationcontent` way, but there I get the >>>> same error. Here's the full example: >>>> >>>> \starttext >>>> >>>> \definelayer [pagenumber][width=\overlaywidth,height=\overlayheight] >>>> \de

Re: [NTG-context] Absolute position in table cell

2016-02-16 Thread Hans Hagen
on. I've also tried it the `\placeannotationcontent` way, but there I get the same error. Here's the full example: \starttext \definelayer [pagenumber][width=\overlaywidth,height=\overlayheight] \defineoverlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenumber]}] \startsetups pagenumber

Re: [NTG-context] Absolute position in table cell

2016-02-16 Thread Volker Mische
#x27;t if I use the contents of the annotation. I've >> also tried it the `\placeannotationcontent` way, but there I get the >> same error. Here's the full example: >> >> \starttext >> >> \definelayer [pagenumber][width=\overlaywidth,height=\overlayheight]

Re: [NTG-context] Absolute position in table cell

2016-02-16 Thread Wolfgang Schuster
#x27;s the full example: \starttext \definelayer [pagenumber][width=\overlaywidth,height=\overlayheight] \defineoverlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenumber]}] \startsetups pagenumber \setlayerframed [pagenumber] [preset=rightbottom] {\getvariable{table}{p}} \stopsetups \define[2]\Pa

Re: [NTG-context] Absolute position in table cell

2016-02-16 Thread Volker Mische
have. >>>> >>>> \starttext >>>> >>>> \definelayer [pagenumber][width=\overlaywidth,height=\overlayheight] >>>> \defineoverlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenumber]}] >>>> >>>> >>>> >>>&

Re: [NTG-context] Absolute position in table cell

2016-02-15 Thread Hans Hagen
of what I currently have. \starttext \definelayer [pagenumber][width=\overlaywidth,height=\overlayheight] \defineoverlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenumber]}] \startsetups pagenumber \setlayerframed [pagenumber] [preset=rightbottom] {p} \stopsetups

Re: [NTG-context] Absolute position in table cell

2016-02-15 Thread Volker Mische
utcome. >> >> Here's the minimal example of what I currently have. >> >> \starttext >> >> \definelayer [pagenumber][width=\overlaywidth,height=\overlayheight] >> \defineoverlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenumber]}] &

Re: [NTG-context] Absolute position in table cell

2016-02-15 Thread Hans Hagen
dth,height=\overlayheight] \defineoverlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenumber]}] \startsetups pagenumber \setlayerframed [pagenumber] [preset=rightbottom] {p} \stopsetups \bTABLE \setupTABLE[each][each][background=pagenumber] \bTR \bTD multiline \par text

[NTG-context] Absolute position in table cell

2016-02-15 Thread Volker Mische
[{\directsetup{pagenumber}\tightlayer[pagenumber]}] \startsetups pagenumber \setlayerframed [pagenumber] [preset=rightbottom] {p} \stopsetups \bTABLE \setupTABLE[each][each][background=pagenumber] \bTR \bTD multiline \par text \eTD \bTD some cell \par with even \par m

[NTG-context] Character rotation font feature available?

2016-02-14 Thread Zhichu Chen
ngsong Std] [range={0x00400-0x2FA1F}% ,force=yes% ,features=vertical% ] \definefontfamily [mainface] [serif] [TeX Gyre Termes] [features=vertical] \definefontfamily [mainface] [sans] [TeX Gyre Heros] [features=vertical] \definefontfamily [mainface] [mono] [TeX G

Re: [NTG-context] not able to change paper sizes

2016-02-04 Thread Pablo Rodriguez
er \starttext or load a font before you set it, > otherwise context uses a monospace font as fallback. Many thanks for the tip. But I really use foregroundstyle with \setlayerframed. >> \definelayer[test2][x=.5\paperwidth, y=.5\paperheight, state=continue] > Remove "state=continu

Re: [NTG-context] not able to change paper sizes

2016-02-04 Thread Wolfgang Schuster
ospace font as fallback. \definelayer[test2][x=.5\paperwidth, y=.5\paperheight, state=continue] Remove "state=continue". \startsetups[testlayer] \setlayer[test2]{page2} \stopsetups You have to include a check for the first page, possible are \startsetups[testlayer] \ifnum\rawcount

Re: [NTG-context] not able to change paper sizes

2016-02-04 Thread Pablo Rodriguez
ge: > Do you want layer “test1” to appear on the second page, if not don’t put > it in the setups environment. But I get two test2 on page 2: \definelayer[test1][x=.5\paperwidth, y=.5\paperheight, state=start] \setlayer[test1]{page1} \definelayer[test2][x=.5\paperwidth, y=.5\paperheight, s

Re: [NTG-context] not able to change paper sizes

2016-02-04 Thread Pablo Rodriguez
On 02/04/2016 05:39 PM, Wolfgang Schuster wrote: >> Pablo Rodriguez 4. Februar 2016 um 17:19 >> >> I’m afraid that dimensions seem not to be adapted: > [...] > \startsetups[testlayer] > \setlayer[test]{abcde} > \stopsetups > > \setupbackgrounds[page][set

Re: [NTG-context] not able to change paper sizes

2016-02-04 Thread Wolfgang Schuster
height,state=repeat] \setlayer[test]{abcde} \setupbackgrounds[page][background={test}] You have to reset the layer on each page. \definelayer[test][x=.5\paperwidth, y=.5\paperheight] \startsetups[testlayer] \setlayer[test]{abcde} \stopsetups \setupbackgrounds[page][setups=testlayer,backgroun

Re: [NTG-context] which is the best/right element for elements in cover and title pages?

2016-01-26 Thread Wolfgang Schuster
makeup environment is the right mechanism. You can combine this with the \setvariables command and create the title page when you set the values. \definemakeup[titlepage][align=middle] \startsetups[titlepage] \startmakeup[titlepage] \startfont[SansBold sa 3] \getvariable{tit

Re: [NTG-context] Problem with \inouter and text justification

2016-01-22 Thread josephcanedo
the previous problem and this one please ? Are notes a alternative for you? \startsetups[marginnotes] \startframed[width=max,height=max,align=high,strut=no] \placenotes[marginnote][before=,after=,rule=off] \stopframed \stopsetups \setuptexttexts[margin][][\directsetup{marginnotes

Re: [NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-19 Thread Mohammad Hossein Bateni
setting. > > ConTeXt resets many settings for headers, footers, footnotes etc. and have > to set them again for these elements. > > To apply the bidi setting to footnotes you have to add > > \startsetups[bidi:footnotes] > \setupdirection[bidi=

Re: [NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-19 Thread Wolfgang Schuster
d this does not apply to footnotes either. Having numbers in the TRL footnote text produces incorrect typesetting. ConTeXt resets many settings for headers, footers, footnotes etc. and have to set them again for these elements. To apply the bidi setting to footnotes you have to add \startsetups[

Re: [NTG-context] Arabic Letters are disjointed and reversed in headers and margin

2016-01-18 Thread Mohammad Hossein Bateni
This makes all the text LTR, for instance if one has an English word embedded in the RTL text, that will be shown incorrectly. Or even if one of the headers (say, on the left side) is plain English. Why wouldn't something like the following work? \startsetups setup:bidi \setupdirections

[NTG-context] inter-word space in bibliographies

2015-12-17 Thread Alan Bowen
: 2015.11.19 19:13 MKIV beta with LuaTeX 0.85) Alan \startsetups[tightspace] \spaceskip .7\interwordspace plus .5\interwordstretch minus \interwordshrink \stopsetups \def\dostartbibitem[#1]{\startBibItem[title={#1},reference={#1}]} \def\startbibitem{\dosingleempty\dostartbibitem} \def\stopbibitem

Re: [NTG-context] Problem with \inouter and text justification

2015-12-15 Thread josephcanedo
alternative for you? \startsetups[marginnotes] \startframed[width=max,height=max,align=high,strut=no] \placenotes[marginnote][before=,after=,rule=off] \stopframed \stopsetups \setuptexttexts[margin][][\directsetup{marginnotes}] \definenote [marginnote][criterium=page] \setupnotation

Re: [NTG-context] Problem with \inouter and text justification

2015-12-11 Thread josephcanedo
are stacked properly again. Is there any solution to avoid the previous problem and this one please ? Are notes a alternative for you? \startsetups[marginnotes] \startframed[width=max,height=max,align=high,strut=no] \placenotes[marginnote][before=,after=,rule=off] \stopframed

Re: [NTG-context] Problem with \inouter and text justification

2015-12-11 Thread Wolfgang Schuster
nd not being stacked. If the “left note” is removed the right side notes are stacked properly again. Is there any solution to avoid the previous problem and this one please ? Are notes a alternative for you? \startsetups[marginnotes] \startframed[width=max,height=max,align=high,st

Re: [NTG-context] horizontal spacing under special circumstances

2015-12-08 Thread Wolfgang Schuster
pacing=packed] You don’t have add a new language because \startsetups[tightspace] \spaceskip 0.7\interwordspace plus .5\interwordstretch minus \interwordshrink \stopsetups \definedescription[BibItem][ before={\directsetup{tightspace}\bgroup\language[packed]}, after={\egroup}, ] you can use her

Re: [NTG-context] horizontal spacing under special circumstances

2015-12-08 Thread Henning Hraban Ramm
r in my description (is the setups key even supposed to work in >> \definedescription?). > > Hi Hraban, > > I don’t know whether this is right, but this works for me: > >\startsetups[footnote:space] > \spaceskip .7\interwordspace >plus .5

Re: [NTG-context] horizontal spacing under special circumstances

2015-12-08 Thread Pablo Rodriguez
finedescription?). Hi Hraban, I don’t know whether this is right, but this works for me: \startsetups[footnote:space] \spaceskip .7\interwordspace plus .5\interwordstretch minus \interwordshrink \stopsetups \definedescription[definition][before=\directsetup

Re: [NTG-context] horizontal spacing under special circumstances

2015-12-08 Thread Wolfgang Schuster
Henning Hraban Ramm <mailto:te...@fiee.net> 8. Dezember 2015 um 12:11 Thank you for the suggestion, but I can’t see any change, even if I use extreme values for \spaceskip (like 0.1 or 10.0), neither in footnotes The footnote on the second page is a line shorter. \startsetups[footnote

Re: [NTG-context] horizontal spacing under special circumstances

2015-12-08 Thread Henning Hraban Ramm
r={\egroup}, %\spac_spacecodes_set_stretch}, >> ] >> \protect >> >> I’d also like to have footnotes in tighter spacing. > > You have to change the value of the \spaceskip register when you want to > change with width of a space. > > \startsetup

Re: [NTG-context] horizontal spacing under special circumstances

2015-12-08 Thread Wolfgang Schuster
t to change with width of a space. \startsetups[footnote:space] \spaceskip .7\interwordspace plus .5\interwordstretch minus \interwordshrink \stopsetups \setupnote[footnote][setups=footnote:space] \starttext \input zapf \startfootnote \input zapf \stopfoo

Re: [NTG-context] inverse indentation

2015-11-28 Thread Pablo Rodriguez
On 11/24/2015 10:33 PM, Thomas A. Schmitz wrote: > On 11/24/2015 07:38 PM, Pablo Rodriguez wrote: >> How can I define indenting in startsetups so that Bibliography has the >> same margin that the indentation for the rest of the text and >> indentation in that section is nega

Re: [NTG-context] inverse indentation

2015-11-24 Thread Thomas A. Schmitz
On 11/24/2015 07:38 PM, Pablo Rodriguez wrote: How can I define indenting in startsetups so that Bibliography has the same margin that the indentation for the rest of the text and indentation in that section is negative (the same amount as the general indentation)? Sorry, but this is a standard

[NTG-context] inverse indentation

2015-11-24 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupindenting[always,yes,big] \startsetups[bibliography:indent] \setupindenting[negative] \stopsetups \definehead[Bibliography][subject] \setuphead[Bibliography] [setups=bibliography:indent, indentnext=yes

Re: [NTG-context] anchor points for \inmargin

2015-11-12 Thread DesdeChaves
middle,location=outer] > > \definelayer[infolayer][width=\framedwidth,height=\framedheight] > > \startsetups[infolayer:place] > > \setlayer[infolayer][preset=middleright]{\rotate{\getvariable{infotext}{points}}} > \stopsetups > > > \defineframed[infobox][frame=off,wid

Re: [NTG-context] anchor points for \inmargin

2015-11-12 Thread Wolfgang Schuster
as background for the frame. \setupmargindata[inmargin][style={\ss\tfx},location=outer,align=middle] \setupmarginframed[inmargin][align=middle,location=outer] \definelayer[infolayer][width=\framedwidth,height=\framedheight] \startsetups[infolayer:place] \setlayer[infolayer][preset=middleright]

Re: [NTG-context] only page number in the header of the chapter title page

2015-11-10 Thread massifr
Thanks a lot, Wolfgang just now I was posting a solution of mine, but yours is more elegant and concise. Best regards, Massi PS: here's my solution (but I'll use yours): \definemarking[headertitle] \setupheadertexts[] \setupheadertexts[\setups{oddpages}][][][\setups{evenpages}] \s

Re: [NTG-context] markings and syncing

2015-10-22 Thread Thomas A. Schmitz
On 10/22/2015 05:59 PM, Wolfgang Schuster wrote: You have to use the \fetchmark command (which is currently broken but I sent a fix to the dev list) to check the content of both marks because \getmarking isn’t expandable. \startsetups [test header] \doifelse{\fetchmark[test][top

Re: [NTG-context] markings and syncing

2015-10-22 Thread Wolfgang Schuster
inemarking [test] \startsetups [test header] \doifelse {\expanded{\getmarking[test][top]}} {\expanded{\getmarking[test][bottom]}} {\getmarking[test][top]} {\getmarking[test][top] and \getmarking[test][bottom]} \stopsetups \setupheadertexts [\setups{test header}] \starttext \marking[test] {On

[NTG-context] markings and syncing

2015-10-22 Thread Thomas A. Schmitz
Hi, I'm trying to set up a header: if a page contains only one marking, it should display this, if it has more than one, display the first and last. Here's what I tried, unsuccessfully: \definemarking [test] \startsetups [test header] \doifelse {\expanded{\getmarking

Re: [NTG-context] reference points with double colons (::) are not working

2015-10-10 Thread Eidenbenz Michael
nce", author = "Duane Bibby", year= 2014, } \stopbuffer \definebtxdataset [duane] \usebtxdataset [duane] [duane.buffer] \usebtxdefinitions [duane] \definebtxrendering [duane] [dataset=duane, method=local, ] \setup

[NTG-context] custom :cite setups with new bibliography system

2015-10-06 Thread Eidenbenz Michael
duane, method=dataset, ] %method=local only works with beta, but then \btxfield in :cite:image (not in :list:image) is broken \setupbtxlist [duane] [number=no] \startsetups btx:duane:cite:image \placefigure[left]{\btxfield{description}}{\externalfigure[\btxfield{url_image}][width=1

Re: [NTG-context] Splitting natural table fails with xtable in footer

2015-10-06 Thread Andreas Schneider
h >> a recent context version): >> >> ~~~~~~~~ >> >> starttext >> >> startsetups[s:footer] > insidesplitfloatfalse > >> startembeddedxtable[frame=off,distance=5pt,bodyfont=6pt,option=stretch] >> startxrow >> start

Re: [NTG-context] Splitting natural table fails with xtable in footer

2015-10-06 Thread Wolfgang Schuster
Andreas Schneider <mailto:ak...@gmx.de> 1. Oktober 2015 um 12:52 Hello, In the following minimal example, an error occurs when build the file (with a recent context version): \starttext \startsetups[s:

Re: [NTG-context] Splitting natural table fails with xtable in footer

2015-10-06 Thread Andreas Schneider
\startsetups[s:footer] \startembeddedxtable[frame=off,distance=5pt,bodyfont=6pt,option=stretch] \startxrow \startxcell Filename: \stopxcell \startxcell[distance=1cm] \outputfilename.pdf \stopxcell \stopxrow \stopembeddedxtable \stopsetups \setupheader[style=\tx

Re: [NTG-context] Setups for images in publication framework

2015-10-05 Thread Eidenbenz Michael
se a dedicated dataset: > > \definebtxdataset > [duane] > > % That we will fill with some records: > > \usebtxdataset > [duane] > [duane.buffer] > > % And a rendering: > > \definebtxrendering > [duane] > [dataset=duane, > method=dataset,

[NTG-context] Setups for images in publication framework

2015-10-03 Thread Eidenbenz Michael
cated dataset: \definebtxdataset [duane] % That we will fill with some records: \usebtxdataset [duane] [duane.buffer] % And a rendering: \definebtxrendering [duane] [dataset=duane, method=dataset, specification=duane] % We also set up the associated list (a description): \setupbtxl

[NTG-context] Splitting natural table fails with xtable in footer

2015-10-01 Thread Andreas Schneider
Hello, In the following minimal example, an error occurs when build the file (with a recent context version): \starttext \startsetups[s:footer] \startembeddedxtable[frame=off,distance=5pt,bodyfont=6pt,option

[NTG-context] New beta

2015-09-02 Thread Fabrice Couvreur
Hi, If you compile the following file with new beta, the placement of the table and the figure is incorrect. Thank you, Fabrice \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}] \startsetups[table:initialize] \setupTABLE[start][align={middle,lohi},offset

[NTG-context] New beta

2015-09-02 Thread Fabrice Couvreur
Hi, If you compile the following file with new beta, the placement of the table and the figure is incorrect. Thank you, Fabrice \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}] \startsetups[table:initialize] \setupTABLE[start][align={middle,lohi},offset

Re: [NTG-context] \setupwhitespace and Natural Table paragraphs

2015-08-18 Thread Wolfgang Schuster
e cell. \startsetups[table:whitespace] \setupwhitespace[medium] \stopsetups \starttext \bTABLE \bTR \bTD \setupwhitespace[medium] \input knuth \eTD \eTR \bTR \bTD[style={\setupwhitespace[medium]}] \input knuth \eTD \eTR \bTR \bTD[setups=table:whit

Re: [NTG-context] Can \getmarking take more than one argument?

2015-08-09 Thread tala...@fastmail.fm
fine my even and odd page headers. >> >> — >> \startsetups[header] >> {\doifoddpageelse >> {\getmarking[section]} >> {\getmarking[chapter]} >> } >> \doiftextelse >> {\getmarking[chapter]} >> \stopsetups >> —

Re: [NTG-context] Can \getmarking take more than one argument?

2015-08-09 Thread Hans Hagen
On 8/9/2015 2:42 AM, tala...@fastmail.fm wrote: Hello, I currently use the following to define my even and odd page headers. — \startsetups[header] {\doifoddpageelse {\getmarking[section]} {\getmarking[chapter]} } \doiftextelse

[NTG-context] Can \getmarking take more than one argument?

2015-08-08 Thread tala...@fastmail.fm
Hello, I currently use the following to define my even and odd page headers. — \startsetups[header] {\doifoddpageelse {\getmarking[section]} {\getmarking[chapter]} } \doiftextelse {\getmarking[chapter]} \stopsetups — The

Re: [NTG-context] local environment?

2015-08-05 Thread Hans Hagen
produced, where the first part—ComponentA—uses EnvironmentA’s layout, while the second part—ComponentB—uses EnvironmentB's. If any startsetups need to be defined, I’d be grateful for any example, showing also where to place them. # Product \startproduct MyProduct \component ComponentA \comp

[NTG-context] local environment?

2015-08-04 Thread tala...@fastmail.fm
EnvironmentA’s layout, while the second part—ComponentB—uses EnvironmentB's. If any startsetups need to be defined, I’d be grateful for any example, showing also where to place them. # Product \startproduct MyProduct \component ComponentA \component ComponentB \stopproduct # Environ

Re: [NTG-context] r2l alignment and linenumbering conflict?

2015-08-03 Thread tala...@fastmail.fm
align=righttoleft, alternative=serried, width=broad, distance=.5em, display=no, numberconversion=arabicdecimals, headstyle=\lefttoright, ] \startsetups[note:footnote] \setupdirections[bidi=on,method=two,fences=no] \stopsetups \starts

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-08-03 Thread tala...@fastmail.fm
mmented out the \startsetups[note:linenote]. The lines may be toggled to see the effect it has. =\mainlanguage[arabic] \definefontfamily [mainface] [rm] [ALM Fixed] [range=arabic,features=arabic]  \setupbodyfont[mainface,12pt]\setupdirections[bidi=global,method=two]\setupalign[r2l]%% CONVERSION IN

[NTG-context] Floating dimensions that adapts automaticall

2015-08-03 Thread Fabrice Couvreur
] \setupfloat [MyFloat] [default={right,none}] \startsetups[table:initialize] \setupTABLE[start][align={middle,lohi},width=2cm,offset=1ex] \setupTABLE[column][first][width=4cm] \setupTABLE[row][first][background=color,backgroundcolor=lightgray] \stopsetups \showframe \starttext

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-08-02 Thread tala...@fastmail.fm
tex) below:Hi Talal,replace you bidi settings with this ones:\setupdirections[bidi=global, method=two]\startsetups[note:linenote]  \setupdirections[bidi=global,method=two,fences=yes]\stopsetups\setupalign[r2l]At

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-08-02 Thread Pablo Rodriguez
ttachment (linenotes r2l 3,tex) > below: Hi Talal, replace you bidi settings with this ones: \setupdirections[bidi=global, method=two] \startsetups[note:linenote] \setupdirections[bidi=global,method=two,fences=yes] \stopsetups \setupalign[r2l] At le

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-08-01 Thread tala...@fastmail.fm
f way to the desired behaviour >>> (namely, correct ordering of the footnotes within the paragraph). But it >>> seems that the ‘paragraph’ option doesn’t play well with RTL generally, >>> resulting in the second note disappearing when using >>> \startsetu

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-07-31 Thread tala...@fastmail.fm
> resulting in the second note disappearing when using >> \startsetups[note:footnote] \setupdirections[bidi=global] \stopsetups. > > can you try > > \unprotect > > \unexpanded\def\leftorrightvbox{\ifconditional\displaylefttoright\expandafter\lefttorightvbox\else\expandaf

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-07-31 Thread Hans Hagen
disappearing when using \startsetups[note:footnote] \setupdirections[bidi=global] \stopsetups. can you try \unprotect \unexpanded\def\leftorrightvbox{\ifconditional\displaylefttoright\expandafter\lefttorightvbox\else\expandafter\righttoleftvbox\fi} \def\strc_notes_flush_global {\begingroup

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-07-30 Thread tala...@fastmail.fm
You’re right. The patch gets us half way to the desired behaviour (namely, correct ordering of the footnotes within the paragraph). But it seems that the ‘paragraph’ option doesn’t play well with RTL generally, resulting in the second note disappearing when using \startsetups[note:footnote

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-07-30 Thread Wolfgang Schuster
ng the following: \startsetups[note:footnote] \setupdirections[bidi=global] \stopsetups \setupnote[footnote][setups=note:footnote] % align=righttoleft However, if one does this with your patch, the second footnote gets dropped. Here is the MWE: The second note disappears even without the

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-07-30 Thread tala...@fastmail.fm
I’ve come across a snag. When using parentheses in Arabic footnotes, they are flipped. In any earlier email (http://article.gmane.org/gmane.comp.tex.context/91501/match=setupdirections+bidi+global), you had advised adding the following: > \startsetups[note:footnote] > \setupdirection

Re: [NTG-context] Critical editions with ConTeXt

2015-07-22 Thread Talal
omment like was done in EX1 in such a stopstart block. I assume that the solution lies in using \startsetups…\stopsetups + \definestartstop. However, despite many attempts, I haven't been able to concoct the right set of macros within that to get it working. I'd be grateful for any help

Re: [NTG-context] new beta - \pushbackground broken

2015-07-11 Thread Lukáš Procházka
Hello, \pushbackground seems to be broken in the last beta - this doesn't compile (but it did till now): \defineheadalternative [PartAlt] [renderingsetup=set:PartPage] \startsetups[set:PartPage] \startmakeup[mu:PartPage] \white \headnumbercontent \blank[

Re: [NTG-context] \setuphead[part] - special look

2015-06-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
different head alternatives where you set the differences with the \defineheadalternative command. % HeadA \defineheadplacement[HeadA][vertical]#1#2% {\startframedtext #1\quad #2% \stopframedtext} \definehead[HeadA][section][alternative=HeadA] % HeadB \defineheadaltern

Re: [NTG-context] \setuphead[part] - special look

2015-06-23 Thread Wolfgang Schuster
the \defineheadalternative command. % HeadA \defineheadplacement[HeadA][vertical]#1#2% {\startframedtext #1\quad #2% \stopframedtext} \definehead[HeadA][section][alternative=HeadA] % HeadB \defineheadalternative[HeadB][renderingsetup=HeadB] % alternative=vertical \startsetups[HeadB]

Re: [NTG-context] \setuphead[part] - special look

2015-06-22 Thread Wolfgang Schuster
and the \defineheadplacement has also a alternative key which is needed when you want an inline heading (e.g. \setuphead[...][alternative=text]). % No headalternative here \startsetups[partpage] \startmakeup[part] \headsetupspacing \headnumbercontent \blank[big]

Re: [NTG-context] \setuphead[part] - special look

2015-06-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
ion "\setuphead[part][renderingsetup=partpage]" we could simplify to: % No headalternative here \startsetups[partpage] \startmakeup[part] \headsetupspacing \headnumbercontent \blank[big] \headtextcontent \stopmakeup \stopsetups \definemakeup [par

Re: [NTG-context] \setuphead[part] - special look

2015-06-22 Thread Wolfgang Schuster
ound=]},", no page is blue). You can use the \pushbackground and \popbackground command to limit the background changes to a certain part of your document. Could anyone help me to "tune" the \setuphead[part]? \defineheadalternative [partpage] [renderingsetup=partp

Re: [NTG-context] How to define a new environment / function?

2015-06-20 Thread Wolfgang Schuster
,range=,reference=,#1]% \grabbufferdata[variable][startvariable][stopvariable]} \def\stopvariable {\directsetup{variable:content}% \endgroup} \startsetups[variable:content] \startlinealignment[middle] \variablealias \qquad \variablename \hfill

Re: [NTG-context] bug in latest beta?

2015-05-31 Thread Otared Kavian
enation? >> >> Many thanks for your reply, Hans. >> >> Hyphenation is the same in both documents. >> >>> btw, brokenpenalty 1 gives a different result >> >> Page break is wrong when any of the three values (brokenpenalty, >> widowpenalty or

Re: [NTG-context] bug in latest beta?

2015-05-31 Thread Hans Hagen
h \section gives the right page break: \showframe\showgrid \setuplayout[setups=*lessstrict] \startsetups[*lessstrict] \setup[reset] \widowpenalty=1 \clubpenalty=1 \brokenpenalty=0 \stopsetups \setupbodyfont[pagella, 12.6pt]

Re: [NTG-context] bug in latest beta?

2015-05-31 Thread Pablo Rodriguez
lty or clubpenalty) is 0 or above . I replacing \subsection with \section gives the right page break: \showframe\showgrid \setuplayout[setups=*lessstrict] \startsetups[*lessstrict] \setup[reset] \widowpenalty=1 \clubpenalty=1 \brokenpenalty=

Re: [NTG-context] bug in latest beta?

2015-05-28 Thread Hans Hagen
On 5/27/2015 10:38 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \showframe\showgrid \setuplayout[setups=*lessstrict] \startsetups[*lessstrict] \setup[reset] \widowpenalty=1 \clubpenalty=1 \brokenpenalty=0

Re: [NTG-context] bug in latest beta?

2015-05-28 Thread Otared Kavian
t, > > I have the following sample: > >\showframe\showgrid >\setuplayout[setups=*lessstrict] >\startsetups[*lessstrict] >\setup[reset] >\widowpenalty=1 >\clubpenalty=1 >\brokenpenalty=0 >\stopsetups >\s

[NTG-context] bug in latest beta?

2015-05-27 Thread Pablo Rodriguez
Dear list, I have the following sample: \showframe\showgrid \setuplayout[setups=*lessstrict] \startsetups[*lessstrict] \setup[reset] \widowpenalty=1 \clubpenalty=1 \brokenpenalty=0 \stopsetups \setupbodyfont[pagella, 12.6pt

Re: [NTG-context] Force to display page number on the `makeup' page

2015-05-24 Thread Wolfgang Schuster
The makeup environment resets the global indentation and whitespace settings. To apply your own setups for the makeup environment you can put them in a setups environment and enable them. The commands key can’t be used for this because its content is flushed before context resets the value and yo

Re: [NTG-context] Preventing double title pages for nested content

2015-05-21 Thread Kate F
g nearly the same example for another time but it still >>> does what you asked for. >>> >>> >>> But it doesn't... >>> >>> You have a page for Volume 3 (which is made blank due to your >>> \ifnum\structurelistsize=0): >>> >>

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