[NTG-context] markings in lmtx and luatex

2020-11-23 Thread Thomas A. Schmitz
Hi all, something has changed in the way markings are handled. Consider the following example: \definemarking[Section] \setupheadertexts[{\getmarking[Section][top]–\getmarking[Section][bottom]}] \starttext A\marking[Section]{A} B\marking[Section]{B} C\marking[Section]{C} \page D

Re: [NTG-context] chapter no. in header

2020-10-07 Thread Henning Hraban Ramm
> Am 07.10.2020 um 14:30 schrieb Tomas Hala : > > Hi Hraban, > > \setupheadertexts > [{\getmarking[sectionnumber]\getmarking[section]}] > [{\pagenumber}] > [{\pagenumber}] > [{\getmarking[chapternumber]\getmarking[chapter]}] Thank you! I could have

Re: [NTG-context] chapter no. in header

2020-10-07 Thread Tomas Hala
Hi Hraban, \setupheadertexts [{\getmarking[sectionnumber]\getmarking[section]}] [{\pagenumber}] [{\pagenumber}] [{\getmarking[chapternumber]\getmarking[chapter]}] Best wishes, Tomáš Wed, Oct 07, 2020 ve 01:45:46PM +0200 Henning Hraban Ramm napsal(a): # This should be simple, but I

[NTG-context] chapter no. in header

2020-10-07 Thread Henning Hraban Ramm
This should be simple, but I can’t find it: I need not only the chapter title, but also the chapter number in my headertext. ATM I have (minus formatting): \setupheadertexts [{\getmarking[section]}] [{\pagenumber}] [{\pagenumber}] [{\getmarking[chapter]}] Hraban

[NTG-context] no frontmatter head on recto page

2020-09-30 Thread jbf
] Then starting this section in the main body with \startforeword...\stopforeword. As 'foreword' is based on chapter, I thought it would all work correctly given that I already have:  [{\hfill\getmarking[chapter]\hfill}][]   [{\hfill\documentvariable{metadata:title}\hfill}][] And I also have

Re: [NTG-context] headers again

2020-08-14 Thread Hans Hagen
the previous numbered chapter). At the moment the only thing I have in the preamble is the expected set of commands for the numbered chapters:  [{\hfill\getmarking[chapter]\hfill}][]   [{\hfill\documentvariable{metadata:title}\hfill}][] I thought that might work for the unnumbered ones

Re: [NTG-context] headers again

2020-08-13 Thread jbf
chapter header (they pick up the header from the previous numbered chapter). At the moment the only thing I have in the preamble is the expected set of commands for the numbered chapters:  [{\hfill\getmarking[chapter]\hfill}][]   [{\hfill\documentvariable{metadata:title}\hfill}][] I thought

Re: [NTG-context] headers again

2020-08-13 Thread Aditya Mahajan
gt; > have the proper chapter header (they pick up the header from the > > > previous numbered chapter). > > > > > > At the moment the only thing I have in the preamble is the expected set > > > of commands for the numbered chapters: > > > > >

Re: [NTG-context] headers again

2020-08-13 Thread Wolfgang Schuster
is the expected set of commands for the numbered chapters:  [{\hfill\getmarking[chapter]\hfill}][]   [{\hfill\documentvariable{metadata:title}\hfill}][] I thought that might work for the unnumbered ones (\title), thinking that maybe \title inherits from \chapter, but it doesn't. But no amount

Re: [NTG-context] headers again

2020-08-12 Thread jbf
[\setups{header}] \startsetups header \getmarking[chapter] \stopsetups and referencing it in the \chapter or \title items, was able to achieve the desired result in every way, including that missing  header on one page. Thank you. J On 13/8/20 3:36 pm, Aditya Mahajan wrote: On Thu, 13 Aug

Re: [NTG-context] headers again

2020-08-12 Thread jbf
chapter). At the moment the only thing I have in the preamble is the expected set of commands for the numbered chapters:  [{\hfill\getmarking[chapter]\hfill}][]   [{\hfill\documentvariable{metadata:title}\hfill}][] I thought that might work for the unnumbered ones (\title), thinking that maybe

Re: [NTG-context] headers again

2020-08-12 Thread Aditya Mahajan
expected set > of commands for the numbered chapters: > >  [{\hfill\getmarking[chapter]\hfill}][] >   [{\hfill\documentvariable{metadata:title}\hfill}][] > > I thought that might work for the unnumbered ones (\title), thinking > that maybe \title inherits from \chapter

[NTG-context] headers again

2020-08-12 Thread jbf
:  [{\hfill\getmarking[chapter]\hfill}][]   [{\hfill\documentvariable{metadata:title}\hfill}][] I thought that might work for the unnumbered ones (\title), thinking that maybe \title inherits from \chapter, but it doesn't. But no amount of variations on the above commands (repeating them but replacing

[NTG-context] further to the earlier header question

2020-08-11 Thread jbf
as: \setupheadertexts   [{\hfill\getmarking[chapter]\hfill}][]   [{\hfill\documentvariable{metadata:title}\hfill}][] then everything works as it should: Chapter title as header on recto pages and book title as header on verso pages. And as chapters change so does the header on the recto page

[NTG-context] header text on final page of section

2020-08-11 Thread jbf
I am using \title within frontmatter for an introduction. The \setupheadertexts for title (recto and verso pages) is: \setupheadertexts   [{\hfill\getmarking[title]\hfill}][]   [{\hfill\documentvariable{metadata:title}\hfill}][] Now, that setup (this time for [chapter]) works correctly

[NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Nicola
, conversion=Romannumerals, numbercommand=\groupedcommand{\blank[20mm]}{\blank[10mm]}, after={\blank[3cm]}, ] \setupheadtext[content=] \setupheadertexts[] \setupheadertexts[\setups{text a}][][][\setups{text b}] \startsetups[text a] \rlap{whatever} \hfill \getmarking[chapter] \hfill

[NTG-context] Pagenumbering with \setupcounter[userpagenumber]

2020-07-29 Thread Willi Egger
] [{\getmarking[chapter]}] \setupfootertexts [] [\pagenumber] [\pagenumber] [] \setupmakeup[standard][top=,bottom=,doublesided=yes] \setupcounter[userpagenumber][state=stop] \starttext \startstandardmakeup[page=yes,doublesided=yes] \strut \godown

[NTG-context] another question about markings

2020-07-26 Thread Joey McCollum
Bump. I’m having the same issue with the following macro, which I’ve defined to work with a two-column layout and which I invoke within \setupheadertexts: \define\RefRange{%    %Check if the first chapter matches the last chapter on the page:    \doifelse{\getmarking[Chapter][1][top]}{\getmarking

[NTG-context] Proper presentations with stepping

2020-05-26 Thread Thomas Welter
=empty] \setupheadertexts[{\getmarking[sectionnumber] \getmarking[section] -- \getmarking[subsectionnumber] \getmarking[subsection]}][] Maybe something like this can be added as a new example presentation in texmf-context\doc\context\presentations\examples because the current present-steps-001

Re: [NTG-context] Right-to-left pagecolumns and markings in ConTeXt

2020-04-29 Thread Joey McCollum
If I change the line containing that in my MWE to \setupheadertexts[top: {\getmarking[TestMark][column:top]}][bottom: {\getmarking[TestMark][column:bottom]}][top: {\getmarking[TestMark][column:top]}][bottom: {\getmarking[TestMark][column:bottom]}] or \setupheadertexts[top: {\fetchmark

Re: [NTG-context] Right-to-left pagecolumns and markings in ConTeXt

2020-04-28 Thread Joey McCollum
ething that worked. I just had to change the \fetchmark calls in my MWE to \getmarking[TestMark][1][top] and \getmarking[TestMark][2][bottom]. On Tue, Apr 28, 2020 at 10:32 AM Hans Hagen wrote: > On 4/28/2020 2:09 PM, Joey McCollum wrote: > > > Is there some way I can improve my

[NTG-context] Chapters, sections, usw

2020-02-24 Thread Jean-Pierre Delange
}] \setupfooter[style={\itxx}] \setupheadertexts[ Cours de Philosophie][][][{\getmarking[section]}] \setupfootertexts[][][][© J.-P. Delange, 2018-2020 — Texte composé avec ConTeXt - Reproduction soumise à autorisation.] \setupsymbolset[text] \starttext \startchapter[title ={Introduction

Re: [NTG-context] fancy chapter setup

2020-01-11 Thread Rik Kabel
bers in a separate overlay to better control the positioning. Perhaps a bit overthought, but it works for me ... \setupheadertexts [][{\it\getmarking[section]}]   [{\it\getmarking[chapter]}][] \startsetups section:epigraph   \doifelsebuffer{SectionEpigraph}     {\getbu

[NTG-context] How to sort list of sections?

2019-11-06 Thread Kerry Sainsbury
to sort sections. I was wrong :-) \definesorting[section][sections] \setupsorting[sections][criterium=all] % I thought something like this might work too \definesorting[wahs] \definesorting[wah][wahs][\getmarking[section]][\getmarking[section]] \starttext placelist (not sorted, as you would

Re: [NTG-context] Unexpected behavior of subsection labels

2019-10-06 Thread Wolfgang Schuster
[frontpart:pagenumber] [] [romannumerals] \startsectionblockenvironment [bodypart] \setcounter [userpage] [1] \stopsectionblockenvironment \setuppagenumbering[location=,alternative=doublesided] \setupheadertexts[\setups{text right}][][][\setups{text left}] \startsetups[text right] \rlap{} \hfill \sc \getmarking

[NTG-context] Unexpected behavior of subsection labels

2019-10-06 Thread Jairo A. del Rio
[frontpart:pagenumber] [] [romannumerals] \startsectionblockenvironment [bodypart] \setcounter [userpage] [1] \stopsectionblockenvironment \setuppagenumbering[location=,alternative=doublesided] \setupheadertexts[\setups{text right}][][][\setups{text left}] \startsetups[text right] \rlap{} \hfill \sc \getmarking

Re: [NTG-context] My own marks

2019-08-31 Thread Jon Wong
Hi all, Sorry, I corrected my MWE. As you can see, \currentitemnumber seems strange when used for \marking inside a nested itemize. MWE: \definemarking[M] \startsetups S default=(\getmarking[M])~ first=(\getmarking[M][first])~ last=(\getmarking[M][last])~ previous=(\getmarking[M

Re: [NTG-context] My own marks

2019-08-31 Thread Jon Wong
Hi all, It seems that \currentitemnumber won’t work for \marking if inside a nested itemize? MWE: \definemarking[M] \startsetups S default=(\getmarking[M])~ first=(\getmarking[M][first])~ last=(\getmarking[M][last])~ previous=(\getmarking[M][previous])~ both=(\getmarking[M][both

[NTG-context] My own marks

2019-08-31 Thread Jon Wong
Hi all, How does \marking really work? Can’t seem to get \currentitemnumber into it. MWE: \definemarking[M] \startsetups S \getmarking[M] \stopsetups \setupheadertexts[\setups{S}][][][\setups{S}] \starttext \startitemize[n] \item First item \marking[M]{Really? \currentitemnumber

[NTG-context] Strange behavior in somewhat complex layout (again)

2019-06-27 Thread Andres Conrado Montoya
ing[alternative=doublesided,location=] \setupheadertexts [] [{{\small\sans\getmarking[chapter]}}] [{{\small\sans\getmarking[chapter]}}] [] \setupfootertexts [] [{\rojo{\small\sansbold\pagenumber}}] [{\rojo{\small\sansbold\pagenumber}}] [] \starttext \dorecurse{4

[NTG-context] Strange behavior in somewhat complex layout

2019-06-23 Thread Andres Conrado Montoya
fd\sansbold}, header=empty, page=yes, commandbefore={\blank[1.75in]}, after={\blackrule[color=rojo,height=4pt,width=6em]\blank[1.25in]}] \setuppagenumbering[alternative=doublesided,location=] \setupheadertexts [] [{{\small\sans\getmarking[chapter]}}]

Re: [NTG-context] placing content in footers

2019-05-12 Thread Pablo Rodriguez
> besides left and right contents? >> >> \setuppagenumbering[alternative=doublesided] >> \setupheadertexts[] >> \setupheadertexts[\setups{text right}][][][\setups{text left}] >> >> \startsetups[text right] >> \rlap{\pagenumber} >> \hfill >> \getmarking[chapte

Re: [NTG-context] placing content in footers

2019-05-12 Thread Henning Hraban Ramm
gt; >> Is there any way to place content in the middle of doublesided footers, >> besides left and right contents? > > \setuppagenumbering[alternative=doublesided] > \setupheadertexts[] > \setupheadertexts[\setups{text right}][][][\setups{text left}] > > \startsetups[text right] &

Re: [NTG-context] placing content in footers

2019-05-11 Thread Henning Hraban Ramm
ternative=doublesided] \setupheadertexts[] \setupheadertexts[\setups{text right}][][][\setups{text left}] \startsetups[text right] \rlap{\pagenumber} \hfill \getmarking[chapter] \hfill \llap{Un Nom} \stopsetups \startsetups[text left] \rlap{Una Person} \hfill \getmarking[section] \

Re: [NTG-context] calling up chapter title

2019-04-26 Thread Wolfgang Schuster
chapter title. However \chapter turns out to be undefined, neither did \chaptertitle. What is the macro to be called? I doubt \chapter is undefined otherwise you can add a chapter title to your document. What you're looking for is the \getmarking marking which is used to access section

Re: [NTG-context] Setupheadertexts with if-condition

2019-04-10 Thread Huseyin Özoguz
\doifelsemarking or \doifelsetext Thanks, that worked. My final solution (just for the archive, it seems to be more suitable than the solution in the wiki): \define\CustomHeader{%    \cap{     \doifelsetext{\getmarking[chapter]}%         {Kapitel \getmarking[chapternumber]: \getmarking

Re: [NTG-context] Setupheadertexts with if-condition

2019-04-10 Thread Hans Hagen
On 4/10/2019 12:29 PM, Huseyin Özoguz wrote: Hello mailing list, I want to use an simple if-condition for this code: \setupheadertexts [][][][{\tfx\bf\getmarking[chapternumber] – \getmarking[chapter]}] My problem: In my case the document dont begin with a chapter but with a section. So

[NTG-context] Setupheadertexts with if-condition

2019-04-10 Thread Huseyin Özoguz
Hello mailing list, I want to use an simple if-condition for this code: \setupheadertexts [][][][{\tfx\bf\getmarking[chapternumber] – \getmarking[chapter]}] My problem: In my case the document dont begin with a chapter but with a section. So at the first pages there is not chapter

Re: [NTG-context] Align the chapter-title to the middle of the header

2018-07-23 Thread Pablo Rodriguez
On 07/23/2018 03:59 PM, Huseyin Özoguz wrote: > Dear list, > > how can I align the text of the header in the double-page layout to the > middle? > > I want something like that: > > \setupheadertexts > [{\startalignment[middle] \definedfont[name:Gentium_Basic at

Re: [NTG-context] Align the chapter-title to the middle of the header

2018-07-23 Thread Aditya Mahajan
On Mon, 23 Jul 2018, Huseyin Özoguz wrote: Dear list, how can I align the text of the header in the double-page layout to the middle? I want something like that: \setupheadertexts [{\startalignment[middle] \definedfont[name:Gentium_Basic at 9pt]\getmarking[chapter] \stopalignment

[NTG-context] Align the chapter-title to the middle of the header

2018-07-23 Thread Huseyin Özoguz
Dear list, how can I align the text of the header in the double-page layout to the middle? I want something like that: \setupheadertexts [{\startalignment[middle] \definedfont[name:Gentium_Basic at 9pt]\getmarking[chapter] \stopalignment}][] [][] Of course, that does not work. By default

Re: [NTG-context] Some questions about the presentation of a book

2018-07-21 Thread Fabrice Couvreur
m, >topspace=10mm, >bottomspace=10mm, >header=10mm, >footer=10mm, >footerdistance=10mm, >headerdistance=10mm] > > \definelayout > [firstpage] > [header=empty] > > > \setupbackgrounds[header][text][bottomframe=on] > &g

[NTG-context] Some questions about the presentation of a book

2018-07-20 Thread Fabrice Couvreur
ottomframe=on] \setupheadertexts[{\getmarking[section]}] [pagenumber] [{\getmarking[chapter]}] [pagenumber] \setuppagenumbering[alternative=,location=] \setuplabeltext[fr][chapter=Chapitre ] \definestructureconversionset [structure] [

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

2018-03-06 Thread ????????
{\ss#1}} \def\PageFrame{% \inframed[width=14mm, height=6mm, frame=off, offset=0pt, framecolor=darkgray, background=color, backgroundcolor=darkgray]{\color[white]{\ssx\pagenumber}}} \def\HeadStr#1{\headnumber[#1]\hskip1em\getmarkin

Re: [NTG-context] show header text only on first page of chapter

2018-02-20 Thread Henning Hraban Ramm
Thank you, but I don’t know how to use that in my setup. Since my rubric has to be in a defined place and I didn’t manage to achieve that with header setups, I used \setlayer with \getmarking[part] Would that defined text behave differently than the part "marker"? And how

Re: [NTG-context] show header text only on first page of chapter

2018-02-20 Thread Henning Hraban Ramm
18 um 15:30 >> >> I tried something like: >> >> \def\SetPart{% >> \setlayerframed[background]% >> [y=10mm,x=20mm,]% >> {\getmarking[part]} >> } >> \setuphead[chapter][after={\SetPart}] >> >> But I always get the name of the prev

Re: [NTG-context] show header text only on first page of chapter

2018-02-20 Thread Wolfgang Schuster
ething like: \def\SetPart{% \setlayerframed[background]% [y=10mm,x=20mm,]% {\getmarking[part]} } \setuphead[chapter][after={\SetPart}] But I always get the name of the previous part. :( Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C

Re: [NTG-context] show header text only on first page of chapter

2018-02-20 Thread Henning Hraban Ramm
framed[background]% [y=10mm,x=20mm,]% {\getmarking[part]} } \setuphead[chapter][after={\SetPart}] But I always get the name of the previous part. :( Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD ___

Re: [NTG-context] framed with titles

2017-11-14 Thread Jeong Dal
ter > number.theorem number) > 2. to suppress the automatically display of “Thm #” inside the text? The command \FrameTitle{Theorem \getmarking[chapternumber].\recurselevel} shows “Theorem 1.1”, but the it shows the chapternumber -1 not the real chapternumber. Also I don’t know h

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

2017-10-17 Thread Rik
the previous chapter appears on the page. How can I eliminate this orphan header? \setuppagenumbering [alternative=doublesided,location=] \setupheadertexts   [][{\it\getmarking[section]}]     [{\it\getmarking[chapter]}][] \starttexdefinition unexpanded

Re: [NTG-context] Remove header after ToC

2017-10-17 Thread N. Raghavendra
}, header=empty] \setupheadertexts [] \setupfootertexts [] \setupheadertexts [{\getmarking [chapter]}] [\pagenumber] [\pagenumber] [{\getmarking [chapter]}] \startfrontmatter \marking [chapter] {Contents} \completecontent \doifelseoddpage {\page [empty]} {} \stopfrontmatter

Re: [NTG-context] Remove header after ToC

2017-10-17 Thread Tomas Hala
ontmatter # # Regards, # Raghu. # # -- # \starttext # # \setuppagenumbering # [alternative=doublesided] # # \setupheadertexts # [] # # \setupfootertexts # [] # # \setupheadertexts # [{\getmarking[section]}] # [\pagenumber] # [\pagenu

Re: [NTG-context] Remove header after ToC

2017-10-17 Thread N. Raghavendra
stopfrontmatter Regards, Raghu. -- \starttext \setuppagenumbering [alternative=doublesided] \setupheadertexts [] \setupfootertexts [] \setupheadertexts [{\getmarking[section]}] [\pagenumber] [\pagenumber] [{Chapter \getmarking[chapternumber].\ \getmarking[chapter]}] \set

Re: [NTG-context] Remove header after ToC

2017-10-17 Thread Tomas Hala
his page? # > # > Thanks, # > Raghu. # > # > -- # > \starttext # > # > \setuppagenumbering # > [alternative=doublesided] # > # > \setupheadertexts # > [] # > # > \setupfootertexts # > [] # > # > \

Re: [NTG-context] Remove header after ToC

2017-10-17 Thread N. Raghavendra
the header on this page? > > Thanks, > Raghu. > > -- > \starttext > > \setuppagenumbering > [alternative=doublesided] > > \setupheadertexts > [] > > \setupfootertexts > [] >

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

2017-10-15 Thread Rik Kabel
by a header, but when there is an epigraph, the header from the previous chapter appears on the page. How can I eliminate this orphan header? \setuppagenumbering [alternative=doublesided,location=] \setupheadertexts   [][{\it\getmarking[section]}]     [{\it\getmarking

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

2017-10-14 Thread Rik Kabel
for chapter (not for title) in headers. Sorry, poor wording on my part. When I wrote chapter title, I meant chapter name, the value retrieved by \getmarking[chapter]. I realize now that the Contents has not name marked because I asked for chapter, not title. The sentences quoted below can safely

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

2017-10-14 Thread Rik Kabel
=] \setupheadertexts   [][{\it\getmarking[section]}]     [{\it\getmarking[chapter]}][] \setupheadertexts   [margin]     [] [{\inframed[frame=off,leftframe=on,loffset=1em]     {\userpage}}] [{\inframed[frame=off,rightframe=on,roffset

[NTG-context] \setupheadertexts except on pages with title of chapter

2017-09-06 Thread Fabrice Couvreur
Hello, I would like that on the pages with the title of the chapter the header is empty. Fabrice \setupheadertexts[{\getmarking[section]}][pagenumber] [{\getmarking[chapter]}][pagenumber] \setuppagenumbering[alternative=,location=] \starttext \placelist[chapter

[NTG-context] Draw a line under the headertext in ConTeXt except some pages

2017-08-24 Thread Fabrice Couvreur
[{\getmarking[section]}][pagenumber] [{\getmarking[chapter]}][pagenumber] \setuppagenumbering[alternative=,location=] \definestructureconversionset [structure] [numbers, Romannumerals, numbers, numbers, numbers] [numbers] \setupheads [sectionconversionset=structure

Re: [NTG-context] About formatting the "Fonts out of ConTEXT" manual

2017-08-16 Thread Fabrice Couvreur
Triangledtwo#1% > > {\framed > > [background=triangledtwo,frame=off,offset=overlay] > > {\tfb\color[white]{\bf#1}}} > > > > \setupheadertexts[margin][][\Triangledone\pagenumber][\ > Triangledtwo\pagenumber][] > > > > \setupfootertexts[margin][]

Re: [NTG-context] About formatting the "Fonts out of ConTEXT" manual

2017-08-15 Thread Henri
    [background=titled,frame=off,offset=8pt,align=left, >   width=\dimexpr\leftmarginwidth-\leftedgewidth\relax] >   {\darkred\getmarking[section]}}] > > \setuppagenumbering[alternative=doublesided,location=] > > \setuphead >    [section] >    [color

Re: [NTG-context] About formatting the "Fonts out of ConTEXT" manual

2017-08-15 Thread Henri
    [background=titled,frame=off,offset=8pt,align=left, >   width=\dimexpr\leftmarginwidth-\leftedgewidth\relax] >   {\darkred\getmarking[section]}}] > > \setuppagenumbering[alternative=doublesided,location=] > > \setuphead >    [section] >    [color

[NTG-context] About formatting the "Fonts out of ConTEXT" manual

2017-08-15 Thread Fabrice Couvreur
][] [{\framed [background=titled,frame=off,offset=8pt,align=left, width=\dimexpr\leftmarginwidth-\leftedgewidth\relax] {\darkred\getmarking[section]}}] \setuppagenumbering[alternative=doublesided,location=] \setuphead [section

Re: [NTG-context] methods for numbered paragraphs (ii)

2017-08-06 Thread Idris Samawi Hamid ادريس سماوي حامد
ection] [alternative=margintext, color=white, style=\tfxx, before=, after=, commandafter={\setupparagraphintro[first] [{{\bf \getmarking[sectionnumber][current] \hspace[big]}}]}] \setuphead[subs

Re: [NTG-context] methods for numbered paragraphs (ii)

2017-08-06 Thread Pablo Rodriguez
native=margintext, color=white, style=\tfxx, before=, after=, commandafter={\setupparagraphintro[first] [{{\bf \getmarking[sectionnumber][current] \hspace[big]}}]}] \setuphead[subsection] [commandafter={\setupp

Re: [NTG-context] Disable overlay on chapter pages

2017-08-04 Thread Mikael P. Sundqvist
ound] [\directsetup{pagebackground}] \setupbackgrounds [page] [background=pagebackground] \startsetups pagebackground \doifelsemode {chapterpage} { \setlayer [chapter] [x=\dimexpr\backspace+\textwidth+\rightmargindistance\relax, y=3in, loca

[NTG-context] Disable overlay on chapter pages

2017-08-02 Thread Mikael P. Sundqvist
... \setuppagenumbering[alternative=doublesided] \defineoverlay[mymargin][{\framed[frame=off,width=0.8in,height=0.8\textheight,offset=overlay,align={top}]{\doifrightpageelse{{\startalignment[flushleft]\getmarking[chapter]\stopalignment}}{{\startalignment[flushright]\getmarking[section]\stopalignment

Re: [NTG-context] Get number of chapter and section

2017-07-25 Thread Henri
] does not > work) and the > section? \getmarking[chapternumber] > > Regards, > Gerion > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist

[NTG-context] another question about markings

2017-05-08 Thread Thomas A. Schmitz
] \startsetups Headersetup \doifelse{\expanded{\getmarking[Head][top]}}{\expanded{\getmarking[Head][bottom]}}{\getmarking[Head][top]}{\getmarking[Head][top] – \getmarking[Head][bottom]} \stopsetups \setupheadertexts[\texsetup{Headersetup}] \starttext \dorecurse{6}{\marking[Head]{Tufte}\input tufte

[NTG-context] linenumbers in marking

2017-05-08 Thread Thomas A. Schmitz
tartsetups linenumber \doiftext { \getmarking[linenumber] } { \getmarking[linenumber][top] – \getmarking[linenumber][bottom] } \stopsetups \setupheadertexts[\texsetup{linenumber}] \starttext \dorecurse{6}{\input

Re: [NTG-context] bug getting part for \setupheadertexts?

2017-04-01 Thread Pablo Rodriguez
recurse{5}{\section{Section}\page}} \stoptext From https://mailman.ntg.nl/pipermail/ntg-context/2017/088407.html, the following line has a wrong invocation: \setupheadertexts[][\getmarking{chapter}][\getmarking{part}][] It should read (I just discovered it): \setupheadertexts[][{\getmar

[NTG-context] bug getting part for \setupheadertexts?

2017-04-01 Thread Pablo Rodriguez
Dear list, as Hraban already reported, there might be a bug in: \setupheadertexts[section][chapter][part][section] \starttext \dorecurse{10}{\part{Part} \chapter{Chapter} \dorecurse{5}{\section{Section}\page}} \stoptext Replacing [part] with [\getmarking{part

[NTG-context] part in header

2017-03-29 Thread Henning Hraban Ramm
Hi again, last one for today: How can I get the part title in header? This doesn’t work (left header stays blank): \setupheadertexts[][chapter][part][] and this throws an error: \setupheadertexts[][\getmarking{chapter}][\getmarking{part}][] What’s the trick? Greetlings, Hraban --- http

[NTG-context] Chapter-subtitle and a short version of a( long) chapter title to fit in the header

2017-01-10 Thread Robert Blackstone
: %%% \setupheadertexts[] \setupheadertexts[\setups{text a}][][][\setups{text b}] \startsetups[text a] \rlap{\sc \getmarking[section]} \hfill \llap{\pagenumber} \stopsetups \startsetups[text b] \rlap{\pagenumber} \hfill \llap{\sc \getmarking[chapter]} \stopsetups %%% So my main

[NTG-context] first and last note in page

2016-11-26 Thread Pablo Rodriguez
Hans, I have the following sample: \setuppagenumbering[A6] \setupheadertexts[{\getmarking[chapter]}] \definesectionblock [whatcomeslast] [lastmatter] [number=no] \setupsectionblock [lastmatter] [page=no, after=\page

Re: [NTG-context] space before/after colored framed text

2016-08-17 Thread Jean-Pierre Delange
tupheadertexts[Cours de Philosophie][][][{\getmarking[section]}] \setupfootertexts[][][][© Jean-Pierre Delange, 2016 — La reproduction de ce texte est soumise à autorisation.] %~ \setupsymbolset[text] % Début de la définition d'un texte encadré en rouge \defineframedtext [MyFrame] [before={\blank}, af

Re: [NTG-context] space before/after colored framed text

2016-08-17 Thread Pablo Rodriguez
espace[medium] \setupinterlinespace[line=3.2ex] \setuphead[title][header=empty] \setupheader[style={\sc}] \setupfooter[style={\itxx}] \setupheadertexts[Cours de Philosophie][][][{\getmarking[section]}] \setupfootertexts[][][][© Jean-Pierre Delange, 2016 — La reproduction de ce texte est soumise à

Re: [NTG-context] space before/after colored framed text

2016-08-17 Thread Jean-Pierre Delange
] \setupindenting[yes] \setupwhitespace[medium] \setupinterlinespace[line=3.2ex] \setupitemize[each][margin=yes] \setuphead[title][header=empty] \setupheader[style={\sc}] \setupfooter[style={\itxx}] \setupheadertexts[Cours de Philosophie][][][{\getmarking[section]}] \setupfootertexts

Re: [NTG-context] marking in two pass data

2016-08-08 Thread Hans Hagen
On 8/7/2016 11:15 AM, Thomas A. Schmitz wrote: \starttext \setupTABLE [split=repeat] \definemarking [Test] \setupheadertexts [{\getmarking[Test][top]--\getmarking[Test][bottom]}] \startluacode samples = { { "A", "aesop-de.tex" }, { "B", "bryson.tex

[NTG-context] marking in two pass data

2016-08-07 Thread Thomas A. Schmitz
found any good solution for it... Thanks Thomas Example: \starttext \setupTABLE [split=repeat] \definemarking [Test] \setupheadertexts [{\getmarking[Test][top]--\getmarking[Test][bottom]}] \startluacode samples = { { "A", "aesop-de.tex" }, { "B", "

[NTG-context] French and Ancient Greek

2016-07-11 Thread Jean-Pierre Delange
] \setupwhitespace[medium] \setupinterlinespace[line=3.2ex] \setupitemize[each][margin=yes] \setuphead[title][header=empty] \setupheader[style={\sc}] \setupfooter[style={\itxx}] \setupheadertexts[Cours de Philosophie][][][{\getmarking[section]}] \setupfootertexts[][][][© J.-P. Delange, 2010-2016 — La

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

2016-01-19 Thread Wolfgang Schuster
Ibn Saeed <mailto:ibnsa...@gmail.com> 19. Januar 2016 um 04:54 Mohammad Hossein Bateni<bateni gmail.com> writes: One hacky way to fix it is the following: \setupheadertexts[{\getmarking[chapter]}] [{\lefttoright\pagenumber}][{\lefttoright\pagenumber}] [

Re: [NTG-context] (mashriqi) Arabic-Hindi Numerals

2016-01-19 Thread Wolfgang Schuster
Ibn Saeed <mailto:ibnsa...@gmail.com> 19. Januar 2016 um 10:55 Here is my code for the header: \setupheadertexts [{\righttoleft\getmarking[chapter]}] [{\romannumerals}] [{\pagenumber}] [{\righttoleft\getmarking[chapter]}] Use \setupheadertexts[pagenumber] or \setupheade

Re: [NTG-context] (mashriqi) Arabic-Hindi Numerals

2016-01-19 Thread Ibn Saeed
Here is my code for the header: \setupheadertexts [{\righttoleft\getmarking[chapter]}][{\romannumerals}] [{\pagenumber}][{\righttoleft\getmarking[chapter]}] \setuppagenumbering[ alternative=doublesided, location

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

2016-01-19 Thread Mohammad Hossein Bateni
incorrect typesetting. On Tue, Jan 19, 2016 at 5:20 AM, Wolfgang Schuster < schuster.wolfg...@gmail.com> wrote: > Ibn Saeed <ibnsa...@gmail.com> > 19. Januar 2016 um 04:54 > > Mohammad Hossein Bateni gmail.com> writes: > > > One hacky way to fix it is

Re: [NTG-context] (mashriqi) Arabic-Hindi Numerals

2016-01-19 Thread Mohammad Hossein Bateni
r: > > \setupheadertexts > [{\righttoleft\getmarking[chapter]}] [{\romannumerals}] > [{\pagenumber}] [{\righttoleft\getmarking[chapter]}] > > Use > > \setupheadertexts[pagenumber] > > or &

Re: [NTG-context] (mashriqi) Arabic-Hindi Numerals

2016-01-19 Thread Otared Kavian
ou should be good to go. > > On Tue, Jan 19, 2016 at 5:23 AM, Wolfgang Schuster > <schuster.wolfg...@gmail.com <mailto:schuster.wolfg...@gmail.com>> wrote: >> Ibn Saeed <mailto:ibnsa...@gmail.com> 19. Januar 2016 um 10:55 >> >> Here is my c

Re: [NTG-context] (mashriqi) Arabic-Hindi Numerals

2016-01-19 Thread Wolfgang Schuster
te from the last line (context --version): mtx-context | ConTeXt Process Management 0.63 mtx-context | mtx-context | main context file: context.mkiv mtx-context | current version: 2016.01.18 22:21 \setupheadertexts [{\righttoleft\getmarking[chapter]}][{\ara

Re: [NTG-context] (mashriqi) Arabic-Hindi Numerals

2016-01-19 Thread Mohammad Hossein Bateni
> > > Hello Wolfgang, > > Thanks for helping out again. > > i tried your code : > > > \setupheadertexts[pagenumber] >[{\righttoleft\getmarking[chapter]}][{\romannumerals}] >[{\pagenumber}][{\righttoleft\getmarking[chapter]}] > &

Re: [NTG-context] (mashriqi) Arabic-Hindi Numerals

2016-01-19 Thread Ibn Saeed
Wolfgang Schuster gmail.com> writes: > Use >     \setupheadertexts[pagenumber] > or >     \setupheadertexts[\userpagenumber] > Wolfgang > Hello Wolfgang, Thanks for helping out again. i tried your code : \setupheadertexts[pagenumber] [{\righttole

Re: [NTG-context] (mashriqi) Arabic-Hindi Numerals

2016-01-19 Thread Ibn Saeed
  It was added to MkIV sometime in the fall. I updated ConTeXt as per your advice to the latest version. I tried the following code on ConTeXt 0.63 running in AucTeX Spacemacs Editor. \setupheadertexts [{\righttoleft\getmarking[chapter]}][{\arabicdecimals\pagenumber}]

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

2016-01-18 Thread Ibn Saeed
] \setupbackgrounds[text][text][frame=off, topframe=on] \setupheader[style=\righttoleft, state=normal] \setupheadertexts [{\getmarking[chapter]}][{\pagenumber}] [{\pagenumber}][{\getmarking[chapter]}] \starttext \chapter{شرح الآجرومية} الحمد لله رب العالمين، وصلى الله وسلم

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

2016-01-18 Thread Mohammad Hossein Bateni
One hacky way to fix it is the following: \setupheadertexts [{\getmarking[chapter]}][{\lefttoright\pagenumber}] [{\lefttoright\pagenumber}][{\getmarking[chapter]}] Ideally \setupdirections[bidi] or something like that should be used, as I mentioned in the other thread

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

2016-01-18 Thread Ibn Saeed
Mohammad Hossein Bateni gmail.com> writes: > > > One hacky way to fix it is the following: > > \setupheadertexts        [{\getmarking[chapter]}]    [{\lefttoright\pagenumber}]        [{\lefttoright\pagenumber}]        [{\getmarking[chapter]}] > > > Id

Re: [NTG-context] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Kate F
definemarking[xyz] > \marking[xyz]{Hello} > \setupinteraction[state=start] > \setupinteraction[title={\getmarking[xyz][current]}] > \setupinteraction[author={\getmarking[xyz][current]}] > \starttext > xyz=\getmarking[xyz][current] > \stoptext > > But my generated PDF has liter

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

2016-01-17 Thread Hans Hagen
=middle,grid=both] \setuphead[section][style=\bfc,before=\blank,after=,grid=both] \setupbackgrounds[header][text][frame=off, bottomframe=on] \setupheadertexts [{\getmarking[chapter]}][{صفحة }] [{صفحة }][{\getmarking[chapter]}] \setupinmargin[stack=yes] \starttext

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

2016-01-17 Thread Ibn Saeed
=\blank,after=,grid=both] \setupbackgrounds[header][text][frame=off, bottomframe=on] \setupheadertexts [{\getmarking[chapter]}][{صفحة }] [{صفحة }][{\getmarking[chapter]}] \setupinmargin[stack=yes] \starttext \chapter{الآجرومية} \margintext{الآجرومية} الحمد لله رب

[NTG-context] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Kate F
Hi, Is it possible to have TeX markup executed in the text fields for \setupinteraction? I would like to do something like: \definemarking[xyz] \marking[xyz]{Hello} \setupinteraction[state=start] \setupinteraction[title={\getmarking[xyz][current]}] \setupinteraction[author={\getmarking[xyz

Re: [NTG-context] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Wolfgang Schuster
Kate F <mailto:k...@elide.org> 17. Januar 2016 um 17:56 Hi, Is it possible to have TeX markup executed in the text fields for \setupinteraction? I would like to do something like: \definemarking[xyz] \marking[xyz]{Hello} \setupinteraction[state=start] \setupinteraction[title={\getmarki

  1   2   3   4   5   >