Re: [NTG-context] Mapping TABLE to xtable (module "ntb-to-xtb") doesn't recognize "c" option for columns

2019-02-20 Thread Procházka Lukáš Ing .
ch ... you can use named setups here should you provide a MWE? - I cannot find an example of usage setups for setting column width; something like: \startsetups MyXTable % How to specify the width of the first column here? \stopsetups \startxtable[setup=MyXTable] ... \stopxtable Best regar

Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Otared Kavian
t; >[header] > >[text] > >[frame=off, > > topframe=off, > > bottomframe=on, > > framecolor=, > > rulethickness=1pt] > > > > \defineframed > >[headerframed] > >[frame=off, > > height

Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Fabrice Couvreur
> >[frame=off, > > topframe=off, > > bottomframe=on, > > framecolor=, > > rulethickness=1pt] > > > > \defineframed > >[headerframed] > >[frame=off, > > height=fit, > > width=fit] > > > > \startset

Re: [NTG-context] Macro for a header does not work as well

2019-02-18 Thread Otared Kavian
off, > topframe=off, > bottomframe=on, > framecolor=, > rulethickness=1pt] > > \defineframed >[headerframed] > [frame=off, > height=fit, > width=fit] > > \startsetups [headertext] > > \setupheadertexts >[{ > \startfra

[NTG-context] Macro for a header does not work as well

2019-02-18 Thread Fabrice Couvreur
, bottomframe=on, framecolor=, rulethickness=1pt] \defineframed [headerframed] [frame=off, height=fit, width=fit] \startsetups [headertext] \setupheadertexts [{ \startframed [headerframed] [foregroundstyle=bold] \getvariable{headertext}{title} n\high{o

Re: [NTG-context] setupdirections RTL bug

2019-02-05 Thread Mohammad Hossein Bateni
Thanks, Hans! With \setupdirections[bidi=global,method=three], the footers are placed correctly. But the *left* footer still does not get RTL treatment. Adding \setupdirections[bidi=global,method=three] inside startsetups does not help. Method three has this "bug": a word with

[NTG-context] setupdirections RTL bug

2019-02-04 Thread Mohammad Hossein Bateni
}] \startsetups L %\setupdirections[bidi=on,method=one] %\setupdirections[bidi=local,method=one] \Ar%left چپ \stopsetups \startsetups R %\setupdirections[bidi=on,method=one] \Ar%right راست \stopsetups \starttext Test \stoptext 1. The right footer is placed over the left footer. 2. There's

Re: [NTG-context] Issue with the latest beta of context standalone

2019-02-04 Thread Fabrice Couvreur
ethickness=1pt] \defineframed [headerframed] [frame=off, height=fit, width=fit] \startsetups [headertext] \setupheadertexts [{ \startframed [headerframed] [foregroundstyle=bold] \getvariable{headertext}{title} n\high{o}\,\getvariable{

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Hans Hagen
  \mainlanguage[fr]   \setupbackgrounds     [header]     [text]     [frame=off, topframe=off, bottomframe=on, framecolor=, rulethickness=1pt]   \defineframed    [headerframed]    [frame=off,     height=fit,     width=fit]    \startsetups [headertext

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Otared Kavian
mframe=on, > framecolor=, > rulethickness=1pt] > > \defineframed >[headerframed] > [frame=off, > height=fit, > width=fit] > >\startsetups [headertext] > \setupheadertexts > [{ > \startframed [headerfr

[NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Fabrice Couvreur
] \defineframed [headerframed] [frame=off, height=fit, width=fit] \startsetups [headertext] \setupheadertexts [{ \startframed [headerframed] [foregroundstyle=bold] \getvariable{headertext}{title} n\high{o}\,\getvariable{headertext}{number

Re: [NTG-context] Changes \setuphead

2019-01-22 Thread Ursula Hermann
Kavian schrieb am 21.01.19 um 12:08: > Hi Ursula, > > If you replace the \startsetups[chapter:before] with the following, you > obtain a page without the page number: > > \startsetups [chapter:before] >\doifoddpageelse > {} > {\pushbackground[page] >

Re: [NTG-context] Changes \setuphead

2019-01-21 Thread Wolfgang Schuster
Otared Kavian schrieb am 21.01.19 um 12:08: Hi Ursula, If you replace the \startsetups[chapter:before] with the following, you obtain a page without the page number: \startsetups [chapter:before] \doifoddpageelse {} {\pushbackground[page] \setuppagenumbering[state=stop

Re: [NTG-context] Changes \setuphead

2019-01-21 Thread Ursula Hermann
Ursula, If you replace the \startsetups[chapter:before] with the following, you obtain a page without the page number: \startsetups [chapter:before] \doifoddpageelse {} {\pushbackground[page] \setuppagenumbering[state=stop] \setupbackgrounds[page][background=color

Re: [NTG-context] Changes \setuphead

2019-01-21 Thread Otared Kavian
Hi Ursula, If you replace the \startsetups[chapter:before] with the following, you obtain a page without the page number: \startsetups [chapter:before] \doifoddpageelse {} {\pushbackground[page] \setuppagenumbering[state=stop] \setupbackgrounds[page][background=color

[NTG-context] Changes \setuphead

2019-01-21 Thread Ursula Hermann
to show the effect on this wiki \setuppapersize[A8][A5,landscape] \setuppaper[nx=4, ny=2] \setuplayout[page][location=middle, marking=on] \setuparranging [XY] \setupbodyfont[6pt] % actual example starts here \setuppagenumbering [alternative=doublesided] \startsetups [chapter:before

Re: [NTG-context] How to adjust inter item vertical space

2019-01-16 Thread Otared Kavian
Hi, You can define your own white space and then attribute it to each item, as in the following: \setupwhitespace[big] \startsetups[mywhitespace] \setupwhitespace[small] \setupblank[small] \stopsetups \setupitemize[each][inner=\directsetup{mywhitespace}] \starttext \input knuth

Re: [NTG-context] MetaFun: how to check the number of arguments

2019-01-16 Thread Hans Hagen
by hand. Here is a example which shows how you can change the background color of a empty page before the chapter title. \setuppagenumbering   [alternative=doublesided] \startsetups [chapter:before]   \doifoddpageelse {} {\pushbackground[page]  \setupbackgrounds[page][b

Re: [NTG-context] MetaFun: how to check the number of arguments

2019-01-15 Thread Jeong Dal
gt;> new chapter. >>>>>> >>>>>> I would like to manipulate this blank even page. >>>>>> >>>>>> There are several things I would like to do, eg. having no headers and >>>>>> footers, setting the background

Re: [NTG-context] MetaFun: how to check the number of arguments

2019-01-15 Thread Hans Hagen
ng [alternative=doublesided] \startsetups [chapter:before] \doifoddpageelse {} {\pushbackground[page] \setupbackgrounds[page][background=color,backgroundcolor=black] \page[empty,right] \popbackground} \stopsetups \setuphead [chapter] [page=yes, befo

[NTG-context] MetaFun: how to check the number of arguments

2019-01-14 Thread Jeong Dal
o just delete page numbers >> but to style the empty page in arbitrary ways. >> >> Maybe it is better to do this manually. >> >> I would let chapter open on even pages too and just insert a styled page >> by hand. > > Here is a example which shows how you c

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

2019-01-14 Thread Wolfgang Schuster
Jan U. Hasecke schrieb am 14.01.19 um 08:39: Am 13.01.19 um 16:56 schrieb Wolfgang Schuster: Here is a example which shows how you can change the background color of a empty page before the chapter title. \setuppagenumbering   [alternative=doublesided] \startsetups [chapter:before

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

2019-01-13 Thread Jan U. Hasecke
Am 13.01.19 um 16:56 schrieb Wolfgang Schuster: > Here is a example which shows how you can change the background color > of a empty page before the chapter title. > > \setuppagenumbering >   [alternative=doublesided] > > \startsetups [chapter:before]

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

2019-01-13 Thread Wolfgang Schuster
on even pages too and just insert a styled page by hand. Here is a example which shows how you can change the background color of a empty page before the chapter title. \setuppagenumbering   [alternative=doublesided] \startsetups [chapter:before]   \doifoddpageelse     {}     {\pushbackground[page

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

2019-01-12 Thread Rik Kabel
, aftersection={\vfill\vfill}, header=empty, placehead=no, ] %% The following always creates a verso page if there is an %% epigraph to set or not. \startsetups chapter:epigraph

[NTG-context] Issues using publications subsystem for non-bibliographic database

2018-12-06 Thread Rik Kabel
] [quotedatabase.buffer] \definebtxrendering [quotedb] [group=quotes, sorttype=cite, numbering=no, dataset=quotedb] \setupbtx [specification=quotedb, authorconversion=normalshort, dataset=quotedb] \startsetups btx:quotedb:cite:attribnote {\rm

Re: [NTG-context] Completecontent has problems with chapter, in table

2018-12-03 Thread Wolfgang Schuster
is to create your own layout for the chapter etc. title and pass the name of the graphic with the second argument of the \startchapter command. With this method you keep your document clean and all the magic happens in the style file. \startsetups [chapter:image] \vbox { \doifsomething

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

2018-12-02 Thread Wolfgang Schuster
. Thanks in advance Tommaso \defineuserdata [purecode] [alternative=purecode] \defineuserdataalternative [purecode] [renderingsetup=userdata:purecode] \startsetups [userdata:purecode]   \blank \startembeddedxtable [width=\textwidth,strut=no,offset=1ex,framecolor=black,rulethickness=0.5pt

Re: [NTG-context] whitespace inside a description

2018-12-01 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 30.11.18 um 19:36: Dear list, I have the following sample: \setupwhitespace[big] \startsetups[small:whitespace] \setupwhitespace[small] \stopsetups \definedescription [description] [setups={small:whitespace

[NTG-context] whitespace inside a description

2018-11-30 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupwhitespace[big] \startsetups[small:whitespace] \setupwhitespace[small] \stopsetups \definedescription [description] [setups={small:whitespace}, inbetween={\directsetup[small:whitespace

Re: [NTG-context] Language dependency in environment-project file

2018-11-29 Thread Marco Patzer
ks if the token lists exists > > \starttokenlist [english] >   \setupitemgroup [itemize] [i] > \stoptokenlist > > \starttokenlist [swedish] >   \setupitemgroup [itemize] [a] > \stoptokenlist > > \startsetups [document:start] > > \doifdocumentva

Re: [NTG-context] Language dependency in environment-project file

2018-11-29 Thread Wolfgang Schuster
] \stoptokenlist \starttokenlist [swedish]   \setupitemgroup [itemize] [a] \stoptokenlist \startsetups [document:start] \doifdocumentvariable{language}{\mainlanguage[\documentvariable{language}]}   \startmodeset     [*en] {\gettokenlist[english]}     [*sv] {\gettokenlist[swedish]}   \stopmodeset

Re: [NTG-context] Language dependency in environment-project file

2018-11-28 Thread Hans Hagen
[*] \startsetups [itemgroup:en]   \setupitemgroup [itemize] [i] \stopsetups \startsetups [itemgroup:sv]   \setupitemgroup [itemize] [a] \stopsetups \setuplanguage   [en]   [setups=itemgroup:en] \setuplanguage   [sv]   [setups=itemgroup:sv] \appendtoks \doifdocumentvariable{language

Re: [NTG-context] Language dependency in environment-project file

2018-11-27 Thread Wolfgang Schuster
Marco Patzer schrieb am 27.11.18 um 22:23: On Tue, 27 Nov 2018 22:05:27 +0100 Wolfgang Schuster wrote: But even your solution doesn't work here. Did you try it in the example project file? \startenvironment [*] \startsetups [itemgroup:en]   \setupitemgroup [itemize] [i] \stopsetups

Re: [NTG-context] Language dependency in environment-project file

2018-11-27 Thread Marco Patzer
On Tue, 27 Nov 2018 22:05:27 +0100 Wolfgang Schuster wrote: > > But even your solution doesn't work here. Did you try it in the > > example project file? > > \startenvironment [*] > > \startsetups [itemgroup:en] >   \setupitemgroup [itemize] [i] > \stopsetups &

Re: [NTG-context] Language dependency in environment-project file

2018-11-27 Thread Wolfgang Schuster
}]}% \to \everysetupdocument That's basically what I've done in my project file (te-proj.tex). At least the code is supposed to do exactly that. But even your solution doesn't work here. Did you try it in the example project file? \startenvironment [*] \startsetups [itemgroup:en]   \setupitemgroup [itemize

Re: [NTG-context] \everystarttext in components

2018-11-27 Thread Marco Patzer
ber. > > ... it's not a godo idea to use that hook to add content > > I'm not adding content, it was just for the MWE. I'll post another > > thread about what I intend to achieve. > > When you use \startdocument you can use > > \startsetups [document:start] >

Re: [NTG-context] \everystarttext in components

2018-11-27 Thread Wolfgang Schuster
for the MWE. I'll post another thread about what I intend to achieve. When you use \startdocument you can use \startsetups [document:start] ... \stopsetups to insert code at the begin of the document. Wolfgang

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

2018-11-22 Thread Wolfgang Schuster
to add \blank to the setups block e.g. \startsetups [userdata:purecode]   \blank   \startembeddedxtable    ...   \stopembeddedxtable   \blank \stopsetups Wolfgang ___ If your question is of interest to others

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

2018-11-21 Thread Wolfgang Schuster
[example] [alternative=example] \defineuserdataalternative [example] [renderingsetup=userdata:example] \startsetups [userdata:example]   \startembeddedxtable [width=\textwidth,strut=no,offset=1ex,framecolor=red]     \startxrow [corner=03]   \startxcell     \typebuffer [userdata] [option=tex

Re: [NTG-context] Itemize and natural tables

2018-09-24 Thread Jan Willem Flamma
g88877.html> >> >> A logical follow up questions is if itemize can be combined with natural >> tables that include modes like in the MWE below. >> >> MWE: >> >> \startsetups [table] >> \setupTABLE [start] [frame=off,rulethickness=0

Re: [NTG-context] Itemize and natural tables

2018-09-23 Thread Wolfgang Schuster
and tabulate is not possible. Instead modes must be comined with natural tables. https://www.mail-archive.com/ntg-context@ntg.nl/msg88877.html A logical follow up questions is if itemize can be combined with natural tables that include modes like in the MWE below. MWE: \startsetups [table

[NTG-context] Itemize and natural tables

2018-09-23 Thread Jan Willem Flamma
he MWE below. MWE: \startsetups [table] \setupTABLE [start] [frame=off,rulethickness=0pt,offset=0pt] \setupTABLE [column] [1] [width=4cm,align=flushleft] \setupTABLE [row][1] [toffset=5pt] \setupTABLE [column] [2] [width=4cm,align=flushleft] \stopsetups \enablemode[test]

Re: [NTG-context] xml in lua advice ?

2018-09-19 Thread Taco Hoekwater
xt \startbuffer[test] some bold title \stopbuffer \xmlprocessbuffer{main}{test}{} \stoptext % END EXAMPLE I know it would be simple to write e.g. \startsetups xml:section \section{\xmlflush{#1}} \stopsetups but I was aiming for a simple, clean-looking CLD as style setup of the XML d

Re: [NTG-context] font in \setuplanguage

2018-09-17 Thread Wolfgang Schuster
With the font key you can apply certain font features for a different language but you can’t use it to switch to a different font. To switch to a different font for your greek texts use this method: \startsetups [greekfont]   \switchtobodyfont [grcface] \stopsetups \setuplanguage[agr][setups

Re: [NTG-context] Modes in tables

2018-09-10 Thread Wolfgang Schuster
but couldn’t get it to work. \starttext \startsetups [tablesetups] \setupTABLE [start] [frame=off,rulethickness=0pt,offset=0pt] \setupTABLE [column] [1] [width=6cm,align=flushleft] \setupTABLE [column] [2] [width=3cm,align=flushleft] \stopsetups Calculate

Re: [NTG-context] Modes in tables

2018-09-10 Thread Jan Willem Flamma
Thank you again Wolfgang. Yet another question: I like to get rid of the \par and tried integrating it into the tablesetups somehow. I've tried adding things like before={\blank} and before\par but couldn’t get it to work. \starttext \startsetups [tablesetups] \setupTABLE [start

Re: [NTG-context] Modes in tables

2018-09-07 Thread Jan Willem Flamma
of the table varies. It is larger when using tabulate. 4. The vertical space between the lines in the table text also varies. It is larger when using TABLE. (I left out the modes in MWE below because I don’t think it is relevant here.) \starttext \setupwhitespace[big] \startsetups [tablesetups

Re: [NTG-context] Modes in tables

2018-09-06 Thread Wolfgang Schuster
You can’t do this with tabulate but it’s possible with natural tables. %\enablemode [BL] \starttext \startsetups [tablesetups]     \setupTABLE [start]  [frame=off]     \setupTABLE [column] [1] [width=6cm,align=flushleft]     \setupTABLE [column] [2] [width=2cm,align=flushleft] \stopsetups

Re: [NTG-context] \startuserdata syntax questions

2018-08-29 Thread Rik Kabel
and then clone it ... \defineuserdata [rik] [name=Rik,alternative=rik] \defineuserdataalternative [rik] [renderingsetup=userdata:rik] \startsetups [userdata:rik]     \starttabulate[|l|p|]     \NC \userdataparameter{name} \NC \getuserdata \NC\NR     \stoptabulate \stopsetups \starttext

Re: [NTG-context] \startuserdata syntax questions

2018-08-29 Thread Wolfgang Schuster
] [name=Rik,alternative=rik] \defineuserdataalternative [rik] [renderingsetup=userdata:rik] \startsetups [userdata:rik] \starttabulate[|l|p|] \NC \userdataparameter{name} \NC \getuserdata \NC\NR \stoptabulate \stopsetups \starttext \startuserdata [rik] \samplefile{greenfield

Re: [NTG-context] TABLE setups

2018-07-30 Thread kaddour kardio
here is an example of mine \startsetups table:width \setupTABLE[align={hyphenated,normal}] \setupTABLE[column][1][width=0.3\textwidth] \setupTABLE[column][2][width=0.4\textwidth] \setupTABLE[column][3][width=0.3\textwidth] \stopsetups % table des patients \startsetups table:style

Re: [NTG-context] TABLE setups

2018-07-29 Thread Henning Hraban Ramm
Am 2018-07-29 um 13:36 schrieb Henning Hraban Ramm : > Am 2018-07-28 um 11:09 schrieb Henning Hraban Ramm : > >>>> Or can I go via setups like \bTABLE[setups=mystyle] ? >>> >>> \startsetups mystyle >>> \setupTABLE[frame=off] >>> \setupT

Re: [NTG-context] TABLE setups

2018-07-29 Thread Henning Hraban Ramm
Am 2018-07-28 um 11:09 schrieb Henning Hraban Ramm : >>> Or can I go via setups like \bTABLE[setups=mystyle] ? >> >> \startsetups mystyle >> \setupTABLE[frame=off] >> \setupTABLE[row][first][topframe=on,bottomframe=on,style=bold] >> \setupTABLE[row

Re: [NTG-context] TABLE setups

2018-07-28 Thread Henning Hraban Ramm
[mystyle], and then \setupTABLE[mystyle][...] ? >> >> Or can I go via setups like \bTABLE[setups=mystyle] ? > > \startsetups mystyle > \setupTABLE[frame=off] > \setupTABLE[row][first][topframe=on,bottomframe=on,style=bold] > \setupTABLE[row][last] [bottomframe=on]

Re: [NTG-context] TABLE setups

2018-07-27 Thread Henri Menke
e \bTABLE[setups=mystyle] ? \startsetups mystyle \setupTABLE[frame=off] \setupTABLE[row][first][topframe=on,bottomframe=on,style=bold] \setupTABLE[row][last] [bottomframe=on] \stopsetups \starttext \bTABLE[setups=mystyle] \bTR \bTD Hello \eTD \bTD Hraban \eTD \eTR \bTR \bTD Hel

Re: [NTG-context] Modifying bibliography entries using lua

2018-07-24 Thread Stanislav Sokolenko
That's perfect, thank you! On 2018-07-23 06:32 PM, Hans Hagen wrote: \startsetups btx:list:author:normalshort     \fastsetup{btx:list:author:concat}     \begingroup \ctxluacode{document.CheckMeB("\currentbtxdataset","\currentbtxtag",\number\currentbtxautho

Re: [NTG-context] Modifying bibliography entries using lua

2018-07-23 Thread Hans Hagen
B(set,tag,aut) local c = publications.getcasted(set,tag,"author") if c[aut].surnames[1] == "Foo" then context("\\bf") end end \stopluacode \startsetups btx:list:author:normalshort \fastsetup{btx:list:author:concat} \begingroup \ctxlu

Re: [NTG-context] Modifying bibliography entries using lua

2018-07-23 Thread Hans Hagen
] \definebtxrendering[ref][dataset=ref] \setupbtx[default:cite]   [alternative=authoryear,    etallimit=1] \starttexdefinition btx:customauthor     \startluacode     local text = context.btxflush('author')     -- tex.sprint(text) -- text remains nill     \stopluacode \stopte

[NTG-context] Modifying bibliography entries using lua

2018-07-23 Thread Stanislav Sokolenko
')     -- tex.sprint(text) -- text remains nill     \stopluacode \stoptexdefinition \startsetups btx:default:list:article     \texdefinition{btx:customauthor}     \texdefinition{btx:default:title}     \texdefinition{btx:default:journal}     \texdefinition{btx:default:year}     \removeunwantedspaces

Re: [NTG-context] Problems with letter module

2018-07-20 Thread Lutz Haseloff
dule[letter] >> \useletterstyle[dinb] >> \mainlanguage[de] >> \starttext >> \setupletter >> [signature={Unterschrift}, >> fromname={Absender}, >> fromaddress={Straße\\Ort}, >> toname={An}, >> toaddress={Adresse}] >> % correspondence.pdf, p. 73 >>

Re: [NTG-context] Problems with letter module

2018-07-20 Thread Henri Menke
] \starttext \setupletter [signature={Unterschrift}, fromname={Absender}, fromaddress={Straße\\Ort}, toname={An}, toaddress={Adresse}] % correspondence.pdf, p. 73 \startsetups letter:head \rightaligned{Seite \correspagenumber\ von \numberofcorrespages} \stopsetups % correspondence.pdf, p. 71

[NTG-context] Problems with letter module

2018-07-19 Thread Lutz Haseloff
={Unterschrift}, fromname={Absender}, fromaddress={Straße\\Ort}, toname={An}, toaddress={Adresse}] % correspondence.pdf, p. 73 \startsetups letter:head \rightaligned{Seite \correspagenumber\ von \numberofcorrespages} \stopsetups % correspondence.pdf, p. 71 \startuseMPgraphic{dactylus} draw unitsquare

Re: [NTG-context] bidi in footnotes

2018-06-21 Thread Mohammad Hossein Bateni
. ‪On Thu, Jun 21, 2018 at 8:22 AM ‫Idris Samawi Hamid ادريس سماوي حامد‬‎ < idris.ha...@colostate.edu> wrote:‬ > Salaam, Mohammad Hossein, Otared, > > On Wed, 20 Jun 2018 15:27:56 -0600, Mohammad Hossein Bateni > wrote: > > > \startsetups[bidi:footnotes

Re: [NTG-context] bidi in footnotes

2018-06-21 Thread Idris Samawi Hamid ادريس سماوي حامد
Salaam, Mohammad Hossein, Otared, On Wed, 20 Jun 2018 15:27:56 -0600, Mohammad Hossein Bateni wrote: \startsetups[bidi:footnotes] \setupdirections[bidi=on] \stopsetups \setupnotes[footnote][setups=bidi:footnotes] On Wed, 20 Jun 2018 22:31:05 -0600, Otared Kavian wrote: % begin

[NTG-context] How to display widows/orphans

2018-06-21 Thread hanak
Hello, I know, that letting context to solve all widow/orphans automatically is possible like: \startsetups[grid][mypenalties] \setdefaultpenalties \setpenalties\widowpenalties{1}{1} \setpenalties\clubpenalties{1}{1} \stopsetups \setuplayout[grid=yes, setups

Re: [NTG-context] bidi in footnotes

2018-06-20 Thread Otared Kavian
Hi Idriss, As Mohammad Hossein pointed out, adding a setups solves both problems you mentioned (font declaration and bidi in footnotes): % begin test-bidi-footnote.tex \setupdirections[bidi=global] \startsetups[bidi:footnotes] \setupdirections[bidi=on] \definedfont[file:almfixed.otf*arabic

Re: [NTG-context] bidi in footnotes

2018-06-20 Thread Mohammad Hossein Bateni
maybe something like this would help: \startsetups[bidi:footnotes] \setupdirections[bidi=on] \stopsetups \setupnotes[footnote][setups=bidi:footnotes] but I did not test it now. ‪On Wed, Jun 20, 2018 at 5:26 PM ‫Idris Samawi Hamid ادريس سماوي حامد‬‎ < idris.ha...@colostate.edu> wrote:‬

Re: [NTG-context] xml, language, btx problems

2018-06-17 Thread Wolfgang Schuster
is used by default with % the before key of the \startdocument command \startsetups [document:start] \startmodeset [**de]{This document is in german.\par} [**en]{This document is in english.\par} [default] {This document uses the default language.\par

Re: [NTG-context] Bug with \setuptagging and layers

2018-06-10 Thread Hans Hagen
alia, TL18.     \setuptagging [state=start]     \setupexternalfigures [location=default]     \definelayout [testpage]     \definelayer  [testpage]     [width=\paperwidth,height=\paperheight]     \startsetups  [testpage]     \setlayerframed   [testpage]     [preset=rightbott

Re: [NTG-context] Bug with \setuptagging and layers

2018-06-10 Thread Hans Hagen
tate=start] \setupexternalfigures [location=default] \definelayout [testpage] \definelayer  [testpage] [width=\paperwidth,height=\paperheight] \startsetups  [testpage]     \setlayerframed   [testpage] [preset=rightbottom,hoffset=.25in,voffset=.25in, backgr

[NTG-context] Bug with \setuptagging and layers

2018-06-09 Thread Rik Kabel
on=default] \definelayout [testpage] \definelayer  [testpage] [width=\paperwidth,height=\paperheight] \startsetups  [testpage]     \setlayerframed   [testpage] [preset=rightbottom,hoffset=.25in,voffset=.25in, background=color,backgroundco

Re: [NTG-context] Characters allowed in macro names

2018-04-22 Thread Wolfgang Schuster
N. Raghavendra <mailto:nyraghu27...@gmail.com> 22. April 2018 um 17:23 I was wondering if it is alright to use underscores in the names of macros, e.g, as in the following file. It looks like \startsetups, and \def accept names with hyphens, underscores, and numerals, but \starttexdefi

Re: [NTG-context] Characters allowed in macro names

2018-04-22 Thread Hans Hagen
On 4/22/2018 5:23 PM, N. Raghavendra wrote: I was wondering if it is alright to use underscores in the names of macros, e.g, as in the following file. It looks like \startsetups, and \def accept names with hyphens, underscores, and numerals, but \starttexdefinition doesn't tolerate any of them

[NTG-context] Characters allowed in macro names

2018-04-22 Thread N. Raghavendra
I was wondering if it is alright to use underscores in the names of macros, e.g, as in the following file. It looks like \startsetups, and \def accept names with hyphens, underscores, and numerals, but \starttexdefinition doesn't tolerate any of them. 1. In general, what characters are allowed

[NTG-context] tex error Argument of \titlecmd has an extra }

2018-03-06 Thread ????????
LeftFooter{\FooterFrame{\BookNameFrame[90]\hfill}} \startsetups Text \setupheadertexts[text][\RightHeader][][][\LeftHeader] % \setupfootertexts[text][\RightFooter][][][\LeftFooter] \stopsetups \startsetups Appendices \def\RightAppendicesHeader{\HeaderFrame{\ssx\

Re: [NTG-context] natural tables to extreme tables

2018-02-28 Thread Thomas A. Schmitz
some universal code that allows me to try out different table mechanisms. Just to explain (don't spend time on this, I'm just playing around): I collect my table settings like this: \startsetups section_table \setupframedtablecolumn [1] [width=0.7cm,align=left] \setupTABLE [column] [1] [width

Re: [NTG-context] Learning how to use \setupbtxrendering

2018-02-20 Thread Otared Kavian
and is waiting there! Regarding the setups for cite, I did not see where I should put the modified block \startsetups btx:cite:XXX \stopsetups As of now it doesn't seem necessary to modify anything for \cite: maybe this can be done later on if necessary. Best regards: OK > On 20 Feb 2018, at 10

Re: [NTG-context] Learning how to use \setupbtxrendering

2018-02-20 Thread Thomas A. Schmitz
definitions in a block \startbtxrenderingdefinitions[otared] ... \stopbtxrenderingdefinitions You define two different sets of definitions: one for the citations in the text (in the form \startsetups btx:cite:XXX), one for the list of references (in the form \startsetups btx:list:XXX). Here you

Re: [NTG-context] Learning how to use \setupbtxrendering

2018-02-19 Thread Otared Kavian
tax! Another example could be > "edition={second}" and "edition={2\high{nd}}". Of course, one could > introduce conversion sets (like for months), but this gets complicated. > How about "edition={second, revised with corrections}"? > > > M

Re: [NTG-context] Learning how to use \setupbtxrendering

2018-02-18 Thread Hans Hagen
, then one needs to redefine a setup: From publ-imp-authors.mkvi \startsetups \s!btx:\s!list:\s!author:others \ifcase\currentbtxoverflow \else \btxparameter\c!otherstext \fi \stopsetups (this gets called at the end of the author list construction). One could add at the end

Re: [NTG-context] Learning how to use \setupbtxrendering

2018-02-17 Thread Alan Braslau
you want: " : " after the list of authors or after each author? If you want this after the list of authors, then one needs to redefine a setup: From publ-imp-authors.mkvi \startsetups \s!btx:\s!list:\s!author:others \ifcase\currentbtxoverflow \else \btxparameter\c!othe

Re: [NTG-context] Labels and Enumerations

2018-01-15 Thread Rik Kabel
additional problems, is it unreasonable to request that labels be officially supported in MKIV and not marked as MKII relicts? Here is my latest test harness. \defineconstructionalternative   [mylabel]   [renderingsetup=constructionrenderings:mylabel,    width=] \startsetups

Re: [NTG-context] Labels and Enumerations

2018-01-15 Thread Hans Hagen
to this requirement, or suggest an alternative mechanism, this request can be rejected.) two options: \defineconstructionalternative   [mylabel]   [renderingsetup=constructionrenderings:mylabel,    width=] \startsetups[constructionrenderings:mylabel]     \dontleavehmode     \flushconstructionheadbox

Re: [NTG-context] Labels and Enumerations

2018-01-14 Thread Rik Kabel
Further experimentation suggests that the problem is in the interaction between footnotes and margin placement. Endnotes work fine. \defineconstructionalternative   [mylabel]   [renderingsetup=constructionrenderings:mylabel,    width=] \startsetups

Re: [NTG-context] Labels and Enumerations

2018-01-14 Thread Rik Kabel
mechanism, this request can be rejected.) two options: \defineconstructionalternative   [mylabel]   [renderingsetup=constructionrenderings:mylabel,    width=] \startsetups[constructionrenderings:mylabel]     \dontleavehmode     \flushconstructionheadbox \stopsetups \defineenumeration[two

Re: [NTG-context] Labels and Enumerations

2018-01-14 Thread Hans Hagen
.) two options: \defineconstructionalternative [mylabel] [renderingsetup=constructionrenderings:mylabel, width=] \startsetups[constructionrenderings:mylabel] \dontleavehmode \flushconstructionheadbox \stopsetups \defineenumeration[two][alternative=mylabel,display=no,before=,after

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Hans Hagen
}[] shows no number and \in{Theorem}[] shows ?? instead of numbers while \in{Exam}[] shows correctly. Is there a way to show the numbers correctly? % in cont-new.mkiv: \unprotect \defineconstructionalternative [\v!empty] [\c!renderingsetup=\??constructionrenderings:\v!empty] \startsetups

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

2017-10-17 Thread Rik
startSectionEpigraph     \dostartbuffer  [SectionEpigraph] [startSectionEpigraph][stopSectionEpigraph] \stoptexdefinition \setuphead  [chapter][ beforesection=\setups{chapter:epigraph}] \startsetups chapter:epigraph     \page[yes,left]% same result with yes,header,footer,left

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

2017-10-15 Thread Rik Kabel
[chapter]}][] \starttexdefinition unexpanded startSectionEpigraph     \dostartbuffer  [SectionEpigraph] [startSectionEpigraph][stopSectionEpigraph] \stoptexdefinition \setuphead  [chapter][ beforesection=\setups{chapter:epigraph}] \startsetups

Re: [NTG-context] Lua problem with tagging or setups

2017-10-09 Thread Hans Hagen
=\pagewidth,height=\pageheight] \define  \Title {A Primer on Omphaloskepsis} \startsetups [placeisbn]   \setlayer [isbn][preset=rightbottom,hoffset=5mm,voffset=5mm]   {\externalfigure[cow.pdf][width=3cm]} \stopsetups \starttext

Re: [NTG-context] Lua problem with tagging or setups

2017-10-09 Thread Rik Kabel
makeup[cover4][page=left,doublesided=no] \definelayer [isbn][width=\pagewidth,height=\pageheight] \define \Title {A Primer on Omphaloskepsis} \startsetups [placeisbn] \setlayer [isbn][preset=rightbottom,hoffset=5mm,voffset=5mm] {\external

Re: [NTG-context] Lua problem with tagging or setups

2017-10-09 Thread Floris van Manen
\setuppapersize [A6] > \setupexternalfigures[location=default] > \definemakeup[cover4][page=left,doublesided=no] > \definelayer [isbn][width=\pagewidth,height=\pageheight] > \define \Title {A Primer on Omphaloskepsis} > \startsetups [placeisbn] > \setlay

[NTG-context] Lua problem with tagging or setups

2017-10-09 Thread Rik Kabel
  \Title {A Primer on Omphaloskepsis} \startsetups [placeisbn]   \setlayer [isbn][preset=rightbottom,hoffset=5mm,voffset=5mm]   {\externalfigure[cow.pdf][width=3cm]} \stopsetups \starttext   \setupbackgrounds  [page][setups=placeisbn,background=isbn

Re: [NTG-context] size of footnote numbers

2017-09-30 Thread Otared Kavian
; > What would be the best way to achieve this? > > Here’s my setup: > > \setupbodyfont [alegreya,rm,11pt] % usual font size > > \startsetups[myQuotation] > \setupwhitespace[none] > \setupnarrower[left=2em,right=2em] > \switchtobodyfont[rm,10pt] >

[NTG-context] size of footnote numbers

2017-09-29 Thread Henning Hraban Ramm
some sense. What would be the best way to achieve this? Here’s my setup: \setupbodyfont [alegreya,rm,11pt] % usual font size \startsetups[myQuotation] \setupwhitespace[none] \setupnarrower[left=2em,right=2em] \switchtobodyfont[rm,10pt] % I guess I should change the footnote number font

Re: [NTG-context] hiding page number in postponed makeup page

2017-09-19 Thread Pablo Rodriguez
mbers that also would > be a solution. > > > \setuppapersize[A6] > \setuppagenumbering > [location=footer, > alternative=doublesided, > state=start] > > \startsetups paginaoff > \setuppagenumbering[location=,] % doesn’t work > \stopsetups > > \setupmak

[NTG-context] hiding page number in postponed makeup page

2017-09-19 Thread Henning Hraban Ramm
of a full page image on a layer. If I could place the image layer on top of the page numbers that also would be a solution. \setuppapersize[A6] \setuppagenumbering [location=footer, alternative=doublesided, state=start] \startsetups paginaoff \setuppagenumbering[location=,] % doesn’t work

Re: [NTG-context] Letter module: Subject below opening

2017-09-02 Thread Parchd
certainly nicer than what I found on stackexchange. Perhaps there is still something better, though? \startsetups[letter:section:opening] \correspondenceparameter{opening} \blank {\bf\correspondenceparameter{subject}} \stopsetups \startsetups[letter:secti

[NTG-context] Problem with placing a float and a tab

2017-08-22 Thread Fabrice Couvreur
Hello, How should the table be placed correctly ? Thanks Fabrice \unexpanded\def\pcent#1{\math{#1\,\%}} \startsetups [table:one] \setupTABLE[start][align={middle,lohi},width=2.2cm,offset=0.8ex] \setupTABLE[column][first][width=2cm,align={right}] \setupTABLE[1][1][frame=off

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