[NTG-context] margin location in headertext

2012-12-08 Thread reviczky
Hi, Is it possible, without having to use layers, to specify the location of a frame inside the margin of the header relative to the headertext? Here's an example: --- \setupheadertexts[\setups{frames}][][][] \setupheadertexts[margin][\setups{marginframe}][][][] \setuppagenumbering[loc

Re: [NTG-context] No header and no page-number on empty pages

2012-11-30 Thread Wolfgang Schuster
\setupsectionblock[appendix][page=chapter] >> >> \setuppagenumbering[alternative=doublesided,location={header,margin}] >> \setupheadertexts[{My special headertext}] >> \setupfootertexts[This is a text in the footer] >> %\setupbackgrounds[header][text][bottomfram

Re: [NTG-context] No header and no page-number on empty pages

2012-11-30 Thread luigi scarso
art][page=chapter] >> %\setupsectionblock[appendix][page=chapter] >> >> \setuppagenumbering[alternative=doublesided,location={header,margin}] >> \setupheadertexts[{My special headertext}] >> \setupfootertexts[This is a text in the footer] >> %\setupbackgrounds[hea

[NTG-context] No header and no page-number on empty pages

2012-11-30 Thread H. Özoguz
] %\setupsectionblock[frontpart][page=chapter] %\setupsectionblock[bodypart][page=chapter] %\setupsectionblock[backpart][page=chapter] %\setupsectionblock[appendix][page=chapter] \setuppagenumbering[alternative=doublesided,location={header,margin}] \setupheadertexts[{My special headertext}] \setupfootertexts[This is

Re: [NTG-context] No header and no page-number on empty pages

2012-11-29 Thread luigi scarso
] \setuppagenumbering[alternative=doublesided,location={header,margin}] \setupheadertexts[{My special headertext}] \setupfootertexts[This is a text in the footer] %\setupbackgrounds[header][text][bottomframe=on] \starttext \chapter{testA} \dorecurse{10}{\input tufte } \chapter{testB}

Re: [NTG-context] Line break in header

2012-11-27 Thread Wolfgang Schuster
Am 27.11.2012 um 10:36 schrieb luigi scarso : > On Tue, Nov 27, 2012 at 10:24 AM, Wolfgang Schuster > wrote: >> >> Am 27.11.2012 um 10:11 schrieb luigi scarso : >> >>> On Tue, Nov 27, 2012 at 10:04 AM, "H. Özoguz" wrote: >>>>

Re: [NTG-context] Line break in header

2012-11-27 Thread luigi scarso
On Tue, Nov 27, 2012 at 10:24 AM, Wolfgang Schuster wrote: > > Am 27.11.2012 um 10:11 schrieb luigi scarso : > >> On Tue, Nov 27, 2012 at 10:04 AM, "H. Özoguz" wrote: >>> \setupheadertexts >>> >>> [] [{\getmarking[section]}] >>> &g

Re: [NTG-context] Line break in header

2012-11-27 Thread Wolfgang Schuster
Am 27.11.2012 um 10:11 schrieb luigi scarso : > On Tue, Nov 27, 2012 at 10:04 AM, "H. Özoguz" wrote: >> \setupheadertexts >> >> [] [{\getmarking[section]}] >> >> [][] >> >> >> \starttext >> >> \section{This is a

Re: [NTG-context] Line break in header

2012-11-27 Thread luigi scarso
On Tue, Nov 27, 2012 at 10:04 AM, "H. Özoguz" wrote: > \setupheadertexts > > [] [{\getmarking[section]}] > > [][] > > > \starttext > > \section{This is a very long section title, and so, clearly, it does not fit > in one line, definitely not, a

[NTG-context] Line break in header

2012-11-27 Thread H. Özoguz
How to allow line break in headers, to achieve not margined header-texts? \setupheadertexts [] [{\getmarking[section]}] [][] \starttext \section{This is a very long section title, and so, clearly, it does not fit in one line, definitely not, absolutely no change. Without line

Re: [NTG-context] Beginner question. Chapter heading in words

2012-11-11 Thread Andrew Dowell
t env2bookk \setuppapersize [A5][A4] \setuparranging [2UP,rotated,doublesided] \setuppagenumbering [alternative=doublesided] \setuplayout [margin=0pt,width=fit] \setupbodyfont [lbr,12pt] \setupheadertexts [][chapter] [\getvariable{document}{title}][] \setuppagenumbering [alternative=d

Re: [NTG-context] Beginner question. Chapter heading in words

2012-11-11 Thread Andrew Dowell
__ \startenvironment env2bookk \setuppapersize [A5][A4] \setuparranging [2UP,rotated,doublesided] \setuppagenumbering [alternative=doublesided] \setuplayout [margin=0pt,width=fit] \setupbodyfont [lbr,12pt] \setupheadertexts [][ch

Re: [NTG-context] Beginner question. Chapter heading in words

2012-11-10 Thread Hans Hagen
On 11/10/2012 1:38 PM, Andrew Dowell wrote: Chapter One This is the Name of the First Chapter \setuppapersize [A5] \setupheadertexts [][chapter] [\getvariable{document}{title}][] \setuppagenumbering [alternative=doublesided, location=footer

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Hans Hagen
On 11/8/2012 10:48 PM, Wolfgang Schuster wrote: Am 08.11.2012 um 22:37 schrieb Marco Patzer : 2012-11-08 Wolfgang Schuster: \setupheadertexts [\setups{headlist}] \startsetups [headlist] \framed[align=normal, frame=off] {\placelist [chapter] [alternative=highlight, criterium=all

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Wolfgang Schuster
Am 08.11.2012 um 22:37 schrieb Marco Patzer : > 2012-11-08 Wolfgang Schuster: > >> \setupheadertexts >> [\setups{headlist}] >> >> \startsetups [headlist] >> \framed[align=normal, frame=off] >>{\placelist [chapter] [alternative

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Marco Patzer
2012-11-08 Wolfgang Schuster: > \setupheadertexts > [\setups{headlist}] > > \startsetups [headlist] > \framed[align=normal, frame=off] > {\placelist [chapter] [alternative=highlight, criterium=all]} > \stopsetups > > \definelistalternative > [

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Wolfgang Schuster
of > a chapter. > > \setupheadertexts >[\setups{headlist}] > > \startsetups [headlist] >\framed[align=normal, frame=off] > {\placelist [chapter] [alternative=f, criterium=all]} > \stopsetups > > \setupinteraction >[state=start, > color=ligh

[NTG-context] Highlight current chapter in list

2012-11-07 Thread Marco Patzer
Hi! How do I highlight the current chapter in the table of contents? The TOC is displayed on each page. For illustration I misused the interaction colour, which of course only works for the first page of a chapter. \setupheadertexts [\setups{headlist}] \startsetups [headlist

Re: [NTG-context] Header-Footer-Layout

2012-10-08 Thread Arne Runge
t;/ Arne / Put the makeup environment in the front matter environment and remove the sectionblock settings. When you don't want to start chapter at a right page you can add \setupsectionblock[page=yes] to your document. \setuppagenumbering[alternative=doublesided] \setupheadertexts[] \setuphe

Re: [NTG-context] Header without chapters/sections

2012-10-08 Thread Marco Patzer
2012-10-08 Troy Henderson: > I would like to create a header on every page with some fixed text in the > header. Simply doing > > \setupheadertexts[Some text] > \setupheader[state=start] > > Does not produce a header on any page, yet > > \setupfootertexts[Some text]

[NTG-context] Header without chapters/sections

2012-10-08 Thread Troy Henderson
I would like to create a header on every page with some fixed text in the header. Simply doing \setupheadertexts[Some text] \setupheader[state=start] Does not produce a header on any page, yet \setupfootertexts[Some text] \setupfooter[state=start] does produce a footer on every page. Why

Re: [NTG-context] Chapters without chapter number

2012-10-04 Thread Wolfgang Schuster
> > I tried this: > > \setuphead > [chapter] > [header=empty, > number=no > ] > > \setupheadertexts[{\getmarking[chapternumber]. \getmarking[chapter]}] > > which makes the title of the chapter on the first page correctly without > the chapter number, but then I h

[NTG-context] Chapters without chapter number

2012-10-04 Thread Pavel Hanák
] \setupheadertexts[{\getmarking[chapternumber]. \getmarking[chapter]}] which makes the title of the chapter on the first page correctly without the chapter number, but then I have no chapter number on subsequent pages in the header. It looks like setting "number=no" in \setuphead definition breaks m

Re: [NTG-context] Header-Footer-Layout

2012-10-02 Thread Wolfgang Schuster
gs. When you don’t want to start chapter at a right page you can add \setupsectionblock[page=yes] to your document. \setuppagenumbering[alternative=doublesided] \setupheadertexts[] \setupheadertexts[\setups{text a}][][][\setups{text b}] \startsetups[text a] CHAPTER \getmarking[chapter

[NTG-context] Header-Footer-Layout

2012-09-24 Thread Arne Runge
] \setupheadertexts[] \setupheadertexts[\setups{text a}][][][\setups{text b}] \startsetups[text a] CHAPTER \getmarking[chapternumber]: \expanded{\uppercase{\fetchmark[chapter][first]}} \stopsetups \startsetups[text b] \getmarking[section] \stopsetups \setupheader[text][after=\hrule] \setuphead

[NTG-context] Page number in the edge

2012-09-03 Thread Marco Patzer
[location={header, edge}] % fails: centred in the header % [location={header, margin}] % works % also works %\setupheadertexts %[edge] [] [pagenumber] \starttext \showframe \dorecurse{10}{\null\page} \stoptext Marco

[NTG-context] About Chapter head definition and FunnyFrame

2012-09-02 Thread Jeong Dalyoung
제 #1 장} \blank[big] {\sans #2} }} \startsectionblockenvironment[bodypart] \setupheadertexts[][{\tfx COUNTING}] \setuppagenumber[number=1] \setuppagenumbering[alternative={singlesided,doublesided},location={footer,right}] \setuphead[chapter][command=\Myheader,before={\dontleavehmode\blank[2*big

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

2012-07-17 Thread Thomas A. Schmitz
Hi Dalyoung, On 07/17/2012 06:25 PM, dalyoung wrote: Dear all, I have two questions. 1. I'd like to write various text in the header differently at every page. It is like "SlideTitle{}" used in the simpleslide module. I tried "\setupheadertexts[text]" at the beginnin

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

2012-07-17 Thread Hans Hagen
On 17-7-2012 18:25, dalyoung wrote: Dear all, I have two questions. 1. I'd like to write various text in the header differently at every page. It is like "SlideTitle{}" used in the simpleslide module. I tried "\setupheadertexts[text]" at the beginning of every page.

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

2012-07-17 Thread dalyoung
Dear all, I have two questions. 1. I'd like to write various text in the header differently at every page. It is like "SlideTitle{}" used in the simpleslide module. I tried "\setupheadertexts[text]" at the beginning of every page. But only the text defined at last

[NTG-context] imposition broken again

2012-07-09 Thread Henning Hraban Ramm
*4,doublesided] \def\Style{[2UP]} %{[2*2*4,doublesided]} \startbuffer[Fakepage] \strut \blank[force] \midaligned{\Style} \vfill \midaligned{This is page \recurselevel} \vfill \stopbuffer \setupheadertexts[\CONTEXT] \starttext % \showframe

Re: [NTG-context] vertical alignment in the header text

2012-06-14 Thread Jeong Dalyoung
ng wrote: >> \setuplayout[header=1cm, width=18cm, backspace=1.5cm] >> \setupbackgrounds[header][text][bottomframe=on,topframe=on] >> \setupheadertexts[][header\hfill header\hfill header] >> \setuppagenumbering[location=footer] >> \starttext >> \input knuth >> \s

Re: [NTG-context] vertical alignment in the header text

2012-06-14 Thread Hans Hagen
On 14-6-2012 12:31, Jeong Dalyoung wrote: \setuplayout[header=1cm, width=18cm, backspace=1.5cm] \setupbackgrounds[header][text][bottomframe=on,topframe=on] \setupheadertexts[][header\hfill header\hfill header] \setuppagenumbering[location=footer] \starttext \input knuth \stoptext \setupheader

[NTG-context] vertical alignment in the header text

2012-06-14 Thread Jeong Dalyoung
ackgrounds[header][text][bottomframe=on,topframe=on] \setupheadertexts[][header\hfill header\hfill header] \setuppagenumbering[location=footer] \starttext \input knuth \stoptext How to control the vertical alignment in the header? Thank you. Best regards,

Re: [NTG-context] ntg-style error

2012-06-06 Thread Taco Hoekwater
\doifmodeelse{onecolumn}{% \setuplayout[width=340pt] \doifmodeelse{asym}{% one col, asymmetric \setuplayout[backspace=187.3pt]% \setuptyping [widetyping][oddmargin=-117pt] \setuppagenumbering [alternative={singlesided,doublesided}] \setupheadertexts [{\hbox{}\hski

Re: [NTG-context] System font searching suddenly stopped

2012-06-01 Thread Marco Pallante
der Debian). This is the >> straightforward >> document: >> >> \usemodule[simplefonts] >> \setmainfont[Delicious] >> \mainlanguage [it] >> \setupbodyfont [10pt] >> \setupheadertexts [] >> \starttext >> Lorem ipsum dolor sit amet >> \stop

Re: [NTG-context] System font searching suddenly stopped

2012-06-01 Thread Wolfgang Schuster
, which I > put in /usr/share/fonts/opentype/exljbris/ (under Debian). This is the > straightforward > document: > > \usemodule[simplefonts] > \setmainfont[Delicious] > \mainlanguage [it] > \setupbodyfont [10pt] > \setupheadertexts [] > \starttext > Lorem ipsum dolor

[NTG-context] System font searching suddenly stopped

2012-06-01 Thread Marco Pallante
rward document: \usemodule[simplefonts] \setmainfont[Delicious] \mainlanguage [it] \setupbodyfont [10pt] \setupheadertexts [] \starttext Lorem ipsum dolor sit amet \stoptext It worked without a problem, as the pdf remembered me. Now, I tried to compile it again, but it doesn't find the Deli

Re: [NTG-context] imposition 2UP = empty pages

2012-05-17 Thread Henning Hraban Ramm
] \startbuffer[Fakepage] \strut \blank[force] \midaligned{2UP} \vfill \midaligned{This is page \recurselevel} \vfill \stopbuffer \setupheadertexts[\CONTEXT] \starttext \dorecurse{16}{\getbuffer[Fakepage]\page} \stoptext Greetlings, Hraban --- http

Re: [NTG-context] imposition 2UP = empty pages

2012-04-23 Thread Henning Hraban Ramm
] \midaligned{2UP} \vfill \midaligned{This is page \recurselevel} \vfill \stopbuffer \setupheadertexts[\CONTEXT] \starttext \dorecurse{16}{\getbuffer[Fakepage]\page} \stoptext Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net

[NTG-context] imposition 2UP = empty pages

2012-04-20 Thread Henning Hraban Ramm
\midaligned{This is page \recurselevel} \vfill \stopbuffer \setupheadertexts[\CONTEXT] \starttext \dorecurse{16}{\getbuffer[Fakepage]\page} \stoptext Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an as

[NTG-context] [***SPAM***] Resetting Page Backgrounds

2012-04-18 Thread Raymond LeClair
,style=\white] \starttext \setupheader[state=start] \setupheadertexts[\hbox to 2.5in{MARCH}THESOUNDARABBITMAKES][][][] \setuppagenumber[state=start] \setupfooter[state=start] \setupfootertexts[\pagenumber][] \page \setupbackgrounds[page][background={{}}] \setuplayout[contents_4] \hskip1em \page

Re: [NTG-context] Page numbering in latest beta

2012-04-02 Thread Steffen Fritzsche
Hi, thanks for these suggestions. I now use the following settings: \definefont[HeaderFont][Sans at 10pt] \setupheader[style=HeaderFont] \setupheadertexts [section][pagenumber][pagenumber][chapter] \setuppagenumbering [alternative=doublesided, location=, style=sansbold

Re: [NTG-context] Page numbering in latest beta

2012-03-30 Thread Hans Hagen
chronization of the counter and therefore reset the number, so that obscured the fact. Now, you just need to set the 'way': \starttext \setupuserpagenumber[way=byblock] % can be default yes/no? \setuppagenumbering [alternative=doublesided, partnumber=no, location=, style=

Re: [NTG-context] Page numbering in latest beta

2012-03-30 Thread Wolfgang Schuster
\setupheader[style=HeaderFont] > \setupheadertexts [section][pagenumber][pagenumber][chapter] > \setuppagenumbering [alternative=doublesided, partnumber=no, location=, > style={\ss\bold}] The partnumber setting is now controlled by the prefix for the pagenumber. A better value for the style

Re: [NTG-context] Page numbering in latest beta

2012-03-30 Thread Hans Hagen
this up long time ago: What time did you update? I fixed a side effect of some counter code renaming efforts. Hans \startsectionblockenvironment[frontpart] \setupheader [before={\ss\switchtobodyfont[10pt]}] \setupheadertexts [section][pagenumber][pagenumber][chapter] \setuppagenumbering

[NTG-context] Page numbering in latest beta

2012-03-30 Thread Steffen Fritzsche
: \startsectionblockenvironment[frontpart] \setupheader [before={\ss\switchtobodyfont[10pt]}] \setupheadertexts [section][pagenumber][pagenumber][chapter] \setuppagenumbering [alternative=doublesided, partnumber=no, location=, style={\ss\bold}] \setupuserpagenumber[numberconversion=romannumerals

[NTG-context] Strange errors on using setupheader

2012-03-30 Thread Malte Stien
\enableregime[utf] % Set English as the language \language[en] % Select A4 as the paper size \setuppapersize[A4] % Setup the header... \setupheadertexts[chapter][section] \setupheader[leftwidth=.5\hsize, rightwidth=.4\hsize] \starttext \startfrontmatter \completecontent \chapter{Purpose and Scope

Re: [NTG-context] Reset counters by sectionblock

2012-03-13 Thread Hans Hagen
[appendix:pagenumber][][Characters] \setuppagenumber[numberconverionset=pagenumber,way=block] \startsectionblockenvironment[bodypart] %\resetpagenumber \stopsectionblockenvironment \startsectionblockenvironment[appendix] %\resetpagenumber \stopsectionblockenvironment \setupheadertexts[Page

[NTG-context] Reset counters by sectionblock

2012-03-12 Thread Wolfgang Schuster
\setupheadertexts[Page \userpagenumber\ of \lastuserpagenumber] \starttext \startfrontmatter \chapter{Fontpart} \dorecurse{20}{\input knuth\par} \stopfrontmatter \startbodymatter \chapter{Bodypart} \dorecurse{20}{\input tufte\par} \stopbodymatter \startappendices \chapter{Appendix} \dorecurse{20

Re: [NTG-context] \setuppagenumber problem

2012-03-08 Thread Alan Bowen
Again, many thanks, Wolfgang. That’s got it. The entry on \setupheadertexts on the wiki should be updated at some point. But as you will probably agree, I am hardly the one to undertake that. There are just so many critical differences in coding for MKIV and for MKII. Still, the advance in working

Re: [NTG-context] \setuppagenumber problem

2012-03-08 Thread Wolfgang Schuster
Am 08.03.2012 um 20:34 schrieb Alan Bowen: > Thanks, Wolfgang. You are right. Poor code copy/pasting on my part. Sorry for > that bit of noise. > > But what of the pagination problem? Is there a bug or am I missing something > for that too? Write \setupheadertexts[…][pagenum

Re: [NTG-context] \setuppagenumber problem

2012-03-08 Thread Alan Bowen
\setuppagenumbering[location=,] > > > > \setupheader[state=high] > > > > \definehead[FMTitle][title] > > > \setuphead[FMTitle][header=high,alternative=middle,style={\tfb\rm},footer={}] > > \setupheadertexts[text] > > [\cap{A.\ U.\ Thor}] &

Re: [NTG-context] \setuppagenumber problem

2012-03-08 Thread Wolfgang Schuster
> \setupheader[state=high] > > \definehead[FMTitle][title] > > \setuphead[FMTitle][header=high,alternative=middle,style={\tfb\rm},footer={}] > \setupheadertexts[text] > [\cap{A.\ U.\ Thor}] > [\pagenumber] > [\pagenumber] Use “[pa

[NTG-context] \setuppagenumber problem

2012-03-08 Thread Alan Bowen
,style={\tfb\rm},footer={}] \setupheadertexts[text] [\cap{A.\ U.\ Thor}] [\pagenumber] [\pagenumber] [\em{Journal}] \FMTitle[Preface]{Preface} \dorecurse{6}{\input knuth} \blank[big] And here I should like to recall what was said earlier in this \goto{Preface}[Preface] by \dots \stopcomponent

Re: [NTG-context] Page Header Text with Two Lines

2012-03-07 Thread Emmanuel Asante
On Wed, Mar 7, 2012 at 9:58 AM, Marco wrote: > On 2012-03-07 Emmanuel Asante wrote: > > > I tried to setup a page header with two lines using a command like this: > > > >\setupheadertexts[Left Text][Right Text 1. \crlf Right Text 2] > > > > but the

Re: [NTG-context] Page Header Text with Two Lines

2012-03-07 Thread Marco
On 2012-03-07 Emmanuel Asante wrote: > I tried to setup a page header with two lines using a command like this: > >\setupheadertexts[Left Text][Right Text 1. \crlf Right Text 2] > > but the \crlf command gets ignored. How do I achieve this? \setupheadertexts [Left

[NTG-context] Page Header Text with Two Lines

2012-03-07 Thread Emmanuel Asante
Hi All, I tried to setup a page header with two lines using a command like this: \setupheadertexts[Left Text][Right Text 1. \crlf Right Text 2] but the \crlf command gets ignored. How do I achieve this? Best regards, Emmanuel

Re: [NTG-context] is it possible to have first and last line numbers from page?

2012-03-06 Thread Pablo Rodríguez
ing(tex.count.realpageno)] l=0; if array ==nil then return end; for _,_ in pairs(array) do l=l+1 end; if l>0 then context(array[1].." -- "..array[l]) end; \stopluacode \stopsetups \setupheadertexts[\texsetup{linenumber}] \starttext \dorecurse{6}{\input tufte\par} \startlinenu

Re: [NTG-context] is it possible to have first and last line numbers from page?

2012-03-05 Thread luigi scarso
== nil then return end; local pages = document.my_name_space.pages; for _,_ in pairs(pages) do l=l+1 end; if l== 0 then return end; --[=[ OK, we have some data to print ]=] local array = pages[tostring(tex.count.realpageno)] l=0; if array ==nil then return end; for _,_ in pai

Re: [NTG-context] is it possible to have first and last line numbers from page?

2012-03-04 Thread Wolfgang Schuster
oiftext { \getmarking[linenumber] } { \getmarking[linenumber][first] – \getmarking[linenumber][last] } \stopsetups \setupheadertexts[\texsetup{linenumber}] \starttext \dorecurse{6}{\input tufte\par} \startlinenumbering \dorecurse{20}{\input knuth\p

Re: [NTG-context] \setuphead problem

2012-03-03 Thread Alan Bowen
t; > > \setupheader[state=high] > \setuppagenumbering[alternative=doublesided] > \setuppagenumbering[location=,] > \setuphead[title][page={header,yes}] > \definehead[BookTitle][title] > \setuphead[BookTitle][before={\noindent\textrule},style=rm] > \setuphead[BookTitle][header

Re: [NTG-context] \setuphead problem

2012-03-03 Thread Wolfgang Schuster
,] > \setuphead[title][page={header,yes}] > \definehead[BookTitle][title] > \setuphead[BookTitle][before={\noindent\textrule},style=rm] > \setuphead[BookTitle][header=high] > \setupheadertext

Re: [NTG-context] \setuphead problem

2012-03-02 Thread Alan Bowen
][before={\noindent\textrule},style=rm] \setuphead[BookTitle][header=high] \setupheadertexts[text] [\cap{A.\ U.\ Thor}] [\pagenumber] [\pagenumber] [\it{The Journal}] \starttext \dorecurse{6}{\input knuth} \page[makeup] \BookTitle{{\em An Indubitably Important Book} by A.\ U.\ Thor

Re: [NTG-context] Problem with \writebetweenlist

2012-02-25 Thread Jaroslav Hajtmar
rsize[dpportrait][A4] 52 \setuppagenumbering[state=start,location=footer] 53 54 %\setuppagenumbering[alternative=doublesided] 55 %\adaptlayout[31][height=+1cm] 56 57 % \component _dpobrazky % definice v┼íech vlo┼żen├Żch obr├ízk┼» 58 % \component _dptabulky % definice v┼íech vlo┼żen├Żch tabulek 59 % \component _dp

Re: [NTG-context] marking?

2012-02-25 Thread Philipp Gesang
ch does what you want. > > > >\setupheadertexts[chapter] > > > >\define[2]\ChapterCommand > > {\vbox\bgroup\starttabulate > >\NC Title \EQ \structurevariable{title} \NC\NR > >\NC Marking \EQ \structurevariable{marking} \NC\NR > >\st

Re: [NTG-context] marking?

2012-02-25 Thread Thomas A. Schmitz
On 02/24/2012 05:09 PM, Wolfgang Schuster wrote: Marks aren’t the right tool for this because they are meant for text which goes into the header and footer after the page is finished. There is another mechanism which does what you want. \setupheadertexts[chapter] \define[2]\ChapterCommand

Re: [NTG-context] marking?

2012-02-24 Thread Thomas A. Schmitz
On 02/24/2012 05:09 PM, Wolfgang Schuster wrote: Marks aren’t the right tool for this because they are meant for text which goes into the header and footer after the page is finished. There is another mechanism which does what you want. \setupheadertexts[chapter] \define[2]\ChapterCommand

Re: [NTG-context] marking?

2012-02-24 Thread Wolfgang Schuster
t; \stoptext Marks aren’t the right tool for this because they are meant for text which goes into the header and footer after the page is finished. There is another mechanism which does what you want. \setupheadertexts[chapter] \define[2]\ChapterCommand {\vbox\bgroup\starttabulate \NC Tit

[NTG-context] line numbers or margin data in headers

2012-02-19 Thread Pablo Rodríguez
Hi there, I'm trying to get a feature similar to those headers that display the first and last entry on a give page. I would like to do the same with line numbers on pages, which is especially useful for poetry. How could i change this in the following sample? \setupheadertexts[line--nu

[NTG-context] Two columns type problem

2012-02-13 Thread Martin Bruchanov
\startbodymatter \setuppagenumber[state=start,number=5] \setupbackgrounds[header][text][frame=off,bottomframe=on] \setupheadertexts[{My two col book}][chapter] \title{Obsah} \placelist[chapter][alternative=c,interaction=no] \page \dorecurse{10} { \chapt

Re: [NTG-context] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Wagner Macedo
> footer=5mm, > >> footerdistance=5mm, > >> grid=yes] > >> > >> \definelayout > >> [first] > >> [width=middle, > >> backspace=15mm, > >> topspace=10mm, > >> height=254mm, > >> header=0mm,

Re: [NTG-context] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Peter Park Nelson
space=10mm, >>  height=254mm, >>  header=10mm,  % normal header >>  headerdistance=5mm, >>  footer=5mm, >>  footerdistance=5mm, >>  grid=yes] >> >> \definelayout >>  [first] >>  [width=middle, >>  backspace=15mm, >>  

Re: [NTG-context] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Peter Park Nelson
gt;>  header=10mm,  % normal header >>  headerdistance=5mm, >>  footer=5mm, >>  footerdistance=5mm, >>  grid=yes] >> >> \definelayout >>  [first] >>  [width=middle, >>  backspace=15mm, >>  topspace=10mm, >>  height=254mm, >&

Re: [NTG-context] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Wagner Macedo
t; header=0mm, % no header > headerdistance=0mm, > footer=25mm, % big footer > footerdistance=5mm, > grid=yes] > > \definecolumnset[body][n=2,balancing=yes] > > \setupheadertexts > [This is a header] > [pagenumber] > [pagenumber] > [Some text]

[NTG-context] \definelayout[first] does not yield to default layout on page 2

2012-01-25 Thread Peter Park Nelson
,balancing=yes] \setupheadertexts [This is a header] [pagenumber] [pagenumber] [Some text] \setupfootertexts [footer] [footer] [footer] [footer] \starttext \startcolumnset[body] \dorecurse{20}{\input tufte\par} \stopcolumnset \stoptext

[NTG-context] line numbers in header

2012-01-23 Thread Pablo Rodríguez
Hi there, I'm trying to get a header that contains the numbers of first numbered line on each page and the number of the last numbered line on that page. This is especially useful for poetry. Here is a minimal sample of what I'm trying to do: \setupheadertexts[lin

Re: [NTG-context] Header and footer style and arranging

2011-12-31 Thread Aditya Mahajan
[style=smallcaps, color=blue] \setupheadertexts[] \setupheadertexts[Hello][][][World] \starttext \input knuth \stoptext Unrelated to arranging. In fact, we have left/right/middle styles etc but the new code has no fallbacks, so we need to add: \setuplayoutelement [\c!leftstyle

Re: [NTG-context] \definelayout

2011-12-28 Thread Peter Park Nelson
: %% \setuppagenumbering [alternative=doublesided, location=] \setupheader[text] [state=empty, style=\ss] \setupheadertexts [Header] [pagenumber] [pagenumber] [Header] \setupfooter[text] [state=empty,style=bold] \setupfootertexts [footer] [footer

Re: [NTG-context] Header/footer fonts problem in 20 DEC 2011 beta

2011-12-27 Thread Peter Park Nelson
rline] \setupheadertexts [{\it Effects of transit scheduling management mitigation}] [pagenumber] [pagenumber] [Doe et al.] \setupfooter[text] [state=empty,style=bold] \setupfootertexts [footer] [footer] [footer] [footer] % TEXT STARTS

Re: [NTG-context] CLD: setupheadertexts

2011-12-26 Thread Willi Egger
Hello Wolfgang, On 25 Dec 2011, at 10:21, Wolfgang Schuster wrote: > > Am 24.12.2011 um 18:09 schrieb Willi Egger: > >> Hi Wolfgang, >> >> thank you. >> >> The reason why I ask this question is, because \setupheadertexts has 4 >> arguments and I

Re: [NTG-context] CLD: setupheadertexts

2011-12-25 Thread Wolfgang Schuster
Am 24.12.2011 um 18:09 schrieb Willi Egger: > Hi Wolfgang, > > thank you. > > The reason why I ask this question is, because \setupheadertexts has 4 > arguments and I was curious about how this would be solved in > context/setupheadertexts. > I will look into your

Re: [NTG-context] CLD: setupheadertexts

2011-12-24 Thread Willi Egger
Hi Wolfgang, thank you. The reason why I ask this question is, because \setupheadertexts has 4 arguments and I was curious about how this would be solved in context/setupheadertexts. I will look into your solution. I am not sure whether it will fit into the cld-project. Merry Christmas

Re: [NTG-context] CLD: setupheadertexts

2011-12-24 Thread Wolfgang Schuster
enumbering[alternative=doublesided] \setupheadertexts[\doifoddpageelse{Right page}{Left page}] \starttext \dorecurse{10}{\dontleavehmode\page} \stoptext Wolfgang ___ If your question is of interest to others as well, plea

Re: [NTG-context] CLD: setupheadertexts

2011-12-24 Thread Willi Egger
Hi Wolfgang, thank you! For the moment I can do the "project". - Still I wonder how to achieve odd/even page headerstexts. Have a nice weekend Willi On 24 Dec 2011, at 12:02, Wolfgang Schuster wrote: > > Am 24.12.2011 um 11:10 schrieb Willi Egger: > >> Hi, >> >> there are still questions h

Re: [NTG-context] CLD: setupheadertexts

2011-12-24 Thread Wolfgang Schuster
Am 24.12.2011 um 11:10 schrieb Willi Egger: > Hi, > > there are still questions how to use the context.setupheadertexts. > > - why is on even pages the header not set when using the example below? It’s explained on page 26 of the cld manual. You should also create your functions in the userda

[NTG-context] CLD: setupheadertexts

2011-12-24 Thread Willi Egger
Hi, there are still questions how to use the context.setupheadertexts. - why is on even pages the header not set when using the example below? - how to make odd and even pages carrying a different header text? \setuplabeltext[en][A=Happy New Year] \startluacode function myheadertext(s)

Re: [NTG-context] Header/footer fonts problem in 20 DEC 2011 beta

2011-12-22 Thread Hans Hagen
serif type. Headers and footers on EVEN pages have correct fonts. However, setting the font variant and size directly in \setupfootertexts[\cg\bf Footer Text] works for odd pages. This seems to work ok here: \setuppagenumbering[alternative=doublesided] \setupheadertexts[Bla Bla] \setupheader[style

[NTG-context] fun with markings

2011-12-20 Thread Henning Hraban Ramm
e,marking=on] \setuppaper [nx = 3 ,ny = 1 ,dx =0mm,dy=0mm,topspace=19mm,backspace=10.5mm,page=A7,paper={A4,landscape}] \setuparranging [XY] \definemarking[MyNam] \setupheadertexts[][{\getmarking[MyNam][first]–\getmarking[MyNam] [last]}] \def\Name#1{#1\expanded{\marking[MyNam]{#1}}} \start

Re: [NTG-context] Header and footer style and arranging

2011-12-20 Thread Hans Hagen
] \setupheadertexts[] \setupheadertexts[Hello][][][World] \starttext \input knuth \stoptext Unrelated to arranging. In fact, we have left/right/middle styles etc but the new code has no fallbacks, so we need to add: \setuplayoutelement [\c!leftstyle=\layoutelementparameter\c!style, \c!rightstyle

[NTG-context] Header and footer style and arranging

2011-12-19 Thread Aditya Mahajan
Header and footer styles do not work with arranging and double sided layout. Minimal example: \setuppapersize[A5][A4,letter] \setuparranging[2SIDE] \setuppagenumbering[alternative=doublesided] \setupheader[style=smallcaps, color=blue] \setupheadertexts[] \setupheadertexts[Hello][][][World

Re: [NTG-context] Header spoils X(HT)ML export

2011-12-09 Thread Hans Hagen
On 6-12-2011 23:19, Andreas Harder wrote: Hi Hans, please consider the following example. \setupbackend[export=yes,xhtml=yes,css=yes] \setupheadertexts[{\startelement[header] test \stopelement}] too messy ... so in the next beta structures is disabled completely in those areas

[NTG-context] Header spoils X(HT)ML export

2011-12-06 Thread Andreas Harder
Hi Hans, please consider the following example. \setupbackend[export=yes,xhtml=yes,css=yes] \setupheadertexts[{\startelement[header] test \stopelement}] \starttext \startbuffer \startparagraph \input tufte \stopparagraph \startparagraph \input ward \stopparagraph \stopbuffer

Re: [NTG-context] Placing text in the margin of a header or the top right corner of a page

2011-11-22 Thread Christian
> On Nov 22, 2011, at 11:30 PM, Christian wrote: > > >> Dear All, > >> > >> I am trying to place a framed text in the top right corner of each > >> page of a screen document and it looks like (cont-eni) some > >> invocation of \setupheadertexts might d

Re: [NTG-context] Placing text in the margin of a header or the top right corner of a page

2011-11-22 Thread Matthias Weber
, too? Thanks again - Matthias On Nov 22, 2011, at 11:30 PM, Christian wrote: >> Dear All, >> >> I am trying to place a framed text in the top right corner of each page of a >> screen document and it looks like (cont-eni) some invocation of >> \setupheadertexts might do

Re: [NTG-context] Placing text in the margin of a header or the top right corner of a page

2011-11-22 Thread Christian
> Dear All, > > I am trying to place a framed text in the top right corner of each page of a > screen document and it looks like (cont-eni) some invocation of > \setupheadertexts might do the job. Unfortunately, I have only been able to > place my text in the margin of th

[NTG-context] Placing text in the margin of a header or the top right corner of a page

2011-11-22 Thread Matthias Weber
Dear All, I am trying to place a framed text in the top right corner of each page of a screen document and it looks like (cont-eni) some invocation of \setupheadertexts might do the job. Unfortunately, I have only been able to place my text in the margin of the body of the page, using

Re: [NTG-context] lemmas for headers

2011-11-14 Thread Hans Hagen
On 14-11-2011 18:35, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, Consider the following global setup: \setupheadertexts% [][section][chapter][] Sometimes a given section heading may be too long to comfortably fit in the header. Is there any mechanism or good workaround that will

[NTG-context] lemmas for headers

2011-11-14 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Consider the following global setup: \setupheadertexts% [][section][chapter][] Sometimes a given section heading may be too long to comfortably fit in the header. Is there any mechanism or good workaround that will allow me to define, for a given header, a lemma such that

Re: [NTG-context] bug: wrong subject name in headertext

2011-10-13 Thread Hans Hagen
On 13-10-2011 22:35, Mojca Miklavec wrote: On Thu, Oct 13, 2011 at 22:19, Wolfgang Schuster wrote: Am 13.10.2011 um 22:10 schrieb Mojca Miklavec: Hello, the following example might not be the most minimal possible example, but I hope that it is short enough. I'm using \setupheader

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