Hello!
based on the answer Hans posted on my question how to correctly setup header
texts in a ConTeXt Lua Document I added a section on the Wiki:
https://wiki.contextgarden.net/CLD#Setting_up_Header_Texts
Kind regards
Willi
> On 25 Aug 2022, at 19:45, Hans Hagen wrote:
>
> On 8/25/2022
Hans! Thank you so much for your help and quick answer. Indeed now all header
texts appear as expected :-)
I will wikify this of course!
Kind regards
Willi
> On 25 Aug 2022, at 19:45, Hans Hagen wrote:
>
> On 8/25/2022 7:32 PM, Willi Egger via ntg-context wrote:
>> Hello!
>> I have a
On 8/25/2022 7:32 PM, Willi Egger via ntg-context wrote:
Hello!
I have a ConTeXt Lua Document where I need to have headertexts.
When running the enclosed file I get 6 pages where only page 1 and 2 have
header texts and the others none. — Why is that?
Thanks for hints!
you use a function but
Hello!
I have a ConTeXt Lua Document where I need to have headertexts.
When running the enclosed file I get 6 pages where only page 1 and 2 have
header texts and the others none. — Why is that?
Thanks for hints!
Kind regards
Willi
Test-headertexts.pdf
Description: Adobe PDF document
to call on, e.g \startchapter[title={My title}][author={A.
uthor}]. But in the example you then gave, you made no use of either
of these.
My current setting is:
\setupheadertexts [{\hfill\getmarking[chapter]\hfill}][]
[{\hfill\documentvariable{metadata:title}\hfill}][]
which gives me the book
On 3/19/2022 10:18 AM, Henning Hraban Ramm via ntg-context wrote:
BTW, I can’t remember when you need \structurevariable vs.
\namedstructurevariable...
the first is the current, the second a specific one ... so current can
be subsubsubsubsubsection but with named you can still get the current
is:
\setupheadertexts [{\hfill\getmarking[chapter]\hfill}][]
[{\hfill\documentvariable{metadata:title}\hfill}][]
which gives me the book title centred on verso pages, and the chapter
title centred on recto pages. All I want to do is to have the chapter
contributors' name for each chapter instead of the chapter
Sorry, of course I meant swap 'chapter' with \setups{contributor}
J
On 19/3/22 13:16, jbf wrote:
Then just swap 'chapter' in \setupheadertexts, with 'contributor'?
___
If your question is of interest to others
setting is:
\setupheadertexts [{\hfill\getmarking[chapter]\hfill}][]
[{\hfill\documentvariable{metadata:title}\hfill}][]
which gives me the book title centred on verso pages, and the chapter
title centred on recto pages. All I want to do is to have the chapter
contributors' name for each
Am 18.03.22 um 10:13 schrieb jbf via ntg-context:
Off list for the moment. Late at night where I am. I will take a look at
this more closely on the morrow. Thanks.
You’re welcome.
BTW I answered with some German last time since I mixed up jbf and juh –
the latter I know to be German.
Off list for the moment. Late at night where I am. I will take a look at
this more closely on the morrow. Thanks.
Julian
On 18/3/22 18:52, Henning Hraban Ramm via ntg-context wrote:
\setupheadertexts[] % empty
\setupheadertexts[\setups{text right}][][][\setups{text left}]
\startsetups[text
Am 18.03.22 um 01:48 schrieb jbf via ntg-context:
I thought this should work, since \structurelistuservariable{author}
works fine to call the author name into the TOC, but the same does not
work for header texts it seems:
\setupheadertexts
[{\hfill\getmarking[\structurelistuservariable
I thought this should work, since \structurelistuservariable{author}
works fine to call the author name into the TOC, but the same does not
work for header texts it seems:
\setupheadertexts
[{\hfill\getmarking[\structurelistuservariable{author}]\hfill}][]
[{\hfill\documentvariable
> On 14 Jan 2022, at 07:48, Hans Hagen wrote:
>
> Ponder this:
>
> [{\stylePageHeader{\structureuservariable{author}}}]
>
> versus this:
>
> [{\stylePageHeader{\namedstructureuservariable{chapter}{author}}}]
>
> and you can guess what happens.
Thank-you for the quick response. It looks
On 1/14/2022 12:05 AM, Bruce Horrocks via ntg-context wrote:
I've found an unexpected interaction between \setupheadertexts and the \subject
command, and I'm hoping that someone can tell me what I'm doing wrong.
Version: current version: 2022.01.10 08:36
I'm trying to set a book whereby
I've found an unexpected interaction between \setupheadertexts and the \subject
command, and I'm hoping that someone can tell me what I'm doing wrong.
Version: current version: 2022.01.10 08:36
I'm trying to set a book whereby
- chapter title pages have no headers
- left hand (even) pages have
Has been there for ages ... (but I never use that method).
I has the same question a few years ago but I never used it
because it has a few limitations like missing style/color support.
\setuplayouttext[header][text][lefttext=L,middletext=M,righttext=R]
%\setupheadertexts[M]
%\setupheadertexts
but I never used it
because it has a few limitations like missing style/color support.
I am looking for a simple and obvious way of setting header and footer
texts. The \setupheadertexts has limitations and I view this as
historical, for ConTeXt commands have evolved over time usually towards
better
but I never used it
because it has a few limitations like missing style/color support.
I am looking for a simple and obvious way of setting header and footer
texts. The \setupheadertexts has limitations and I view this as
historical, for ConTeXt commands have evolved over time usually towards
better
ion a few years ago but I never used it
> because it has a few limitations like missing style/color support.
I am looking for a simple and obvious way of setting header and footer
texts. The \setupheadertexts has limitations and I view this as
historical, for ConTeXt commands have evolved over time usual
that method).
I has the same question a few years ago but I never used it
because it has a few limitations like missing style/color support.
\setuplayouttext[header][text][lefttext=L,middletext=M,righttext=R]
%\setupheadertexts[M]
%\setupheadertexts[L][R]
\setupheader
[color=red,style=bold
On 8/2/2019 10:26 PM, Alan Braslau wrote:
\setupheader [lefttext=,leftoddtext=,middletext=,...]
This would be logical.
we have a lot or areas ... and if you really want you can do this ...
\setuplayouttext
[header][text]
[lefttext=L,
middletext=M,
won't work anymore.
>
> \setupheadertexts[{\date[d=...,m=...,y=...]}]
Well, what would make sense?
I would have no problem dropping/ignoring this (historic) command.
How about:
\setupheader [left=,leftodd=,middle=,...]
\setupfooter
or
\setupheader [lefttext=,leftoddtext=,middletext=,...]
This
Alan Braslau schrieb am 02.08.2019 um 20:29:
Hello,
\setupheadertexts [{center}]
sets a centered header (and wipes-out any left and right header)
\setupheadertexts [{left}] [{right}]
sets the left and right headers (and keeps the centered header)
\setupheadertexts [{left odd}] [{right odd
Hello,
\setupheadertexts [{center}]
sets a centered header (and wipes-out any left and right header)
\setupheadertexts [{left}] [{right}]
sets the left and right headers (and keeps the centered header)
\setupheadertexts [{left odd}] [{right odd}] [{left even}] [{right even}]
sets the left
[chapter]}%
{\doifelsetext{\getmarking[section]}
{\getmarking[section]}
{}
}%
}
}
\setupheadertexts[][\CustomHeader{}{~\|~}\pagenumber][\pagenumber][]
Huseyin Özoguz
E-Mail: h.oezo...@mmnetz.de
Am 10.04.2019 um 13:26 schrieb 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
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
Hi Pablo,
In fact, I looked up after asking my question and found the answer. I
should not have asked my question !
Fabrice
2017-09-07 17:31 GMT+02:00 Pablo Rodriguez :
> On 09/07/2017 04:43 PM, Fabrice Couvreur wrote:
> > Hi Pablo,
> > Thanks but I'm confused because I found the
On 09/07/2017 04:43 PM, Fabrice Couvreur wrote:
> Hi Pablo,
> Thanks but I'm confused because I found the answer on the wiki.
Hi Fabrice,
and which is the problem? Had you searched the answer before and you
didn’t found it that search?
No problem. Probably you were spending too much time with
HI Pablo,
Hi Pablo,
Thanks but I'm confused because I found the answer on the wiki.
Fabrice
2017-09-07 6:35 GMT+02:00 Pablo Rodriguez :
> On 09/06/2017 11:04 PM, Fabrice Couvreur wrote:
> > Hello,
> > I would like that on the pages with the title of the chapter the header
> > is
On 09/06/2017 11:04 PM, Fabrice Couvreur wrote:
> Hello,
> I would like that on the pages with the title of the chapter the header
> is empty.
Hi Fabrice,
this is the command you need:
\setuphead[chapter][header=empty]
I hope it helps,
Pablo
--
http://www.ousia.tk
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
r ConTeXt users" <ntg-context@ntg.nl>
Envoyé: Samedi 19 Août 2017 12:35:24
Objet: Re: [NTG-context] About \setupheadertexts : simplify a code
On Sat, 19 Aug 2017, Fabrice Couvreur wrote:
> Hello,
> I have tried many approaches, but it still does not work. Everything is
>
ber}}]
57
58 \setupheadertexts
59 [{\headerframed[align=flushleft, foregroundstyle=\ssx]
60 {Lycée JANSON DE SAILLY \\ \date[d=#day,m=#month,y=#year]}}]
61 [{\headerframed[align=flushright, foregroundstyle=\ssx]
62 {#where \\ {#time}}}]
63
Hi Aditya,
Thank you very much !!
I did not know that it was necessary to use \environment instead of
\component, it is probably in the documentation
Fabrice
2017-08-19 12:35 GMT+02:00 Aditya Mahajan :
> On Sat, 19 Aug 2017, Fabrice Couvreur wrote:
>
> Hello,
>> I have tried
this to on
height=fit,
width=fit,
location=bottom,
boffset=\lineheight,
]
\starttexdefinition MyHeader #where #day #month #year #title #number #time
\setupheadertexts
[{\headerframed[align=middle, foregroundstyle
..@ntg.nl 작성:
>
> About \setupheadertexts : simplify a code
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/n
;>>
>>> \setupbackgrounds
>>> [header]
>>> [text]
>>> [
>>> frame=off,
>>> bottomframe=on,
>>> framecolor=darkgray,
>>> rulethickness=2pt,
>>> ]
>>>
>>> \defineframed[headerfr
le
#number #time
\setupheadertexts
[{\headerframed[align=middle, foregroundstyle=bold,
foregroundcolor=red]
{#title n\high{o}\,#number}}]
\setupheadertexts
[{\headerframed[align=flushleft, foregroundstyle=\ssx]
{Lycée JANSON DE S
unds
>>> [header]
>>> [text]
>>> [
>>> frame=off,
>>> bottomframe=on,
>>> framecolor=darkgray,
>>> rulethickness=2pt,
>>> ]
>>>
>>> \defineframed[headerframed]
>>>
set this to on
>> height=fit,
>>width=fit,
>>location=bottom,
>>boffset=\lineheight,
>> ]
>>
>> \starttexdefinition MyHeader #where #day #month #year #title #number #time
>>
>>
On Fri, 18 Aug 2017, Fabrice Couvreur wrote:
Hello,
It's ok for me if I compile the Aditya file.
I have another problem with a simple structure. I created the file
MyLayout.tex containing the macro and I want to call this macro in the
dm1.tex file, but it does not work.
Thank you
Fabrice
#where #day #month #year #title
#number #time
\setupheadertexts
[{\headerframed[align=middle, foregroundstyle=bold,
foregroundcolor=red]
{#title n\high{o}\,#number}}]
\setupheadertexts
[{\headerframed[align=flushleft, foregrou
t; [
>frame=off, % For visualization set this to on
>height=fit,
>width=fit,
>location=bottom,
>boffset=\lineheight,
> ]
>
> \starttexdefinition MyHeader #where #day #month #y
\setupheadertexts
[{\headerframed[align=middle, foregroundstyle=bold,
foregroundcolor=red]
{#title n\high{o}\,#number}}]
\setupheadertexts
[{\headerframed[align=flushleft, foregroundstyle=\ssx]
{Lycée JANSON DE SAILLY \\ \date[d=#day,m=#month,y=#year
, % For visualization set this to on
height=fit,
width=fit,
location=bottom,
boffset=\lineheight,
]
\starttexdefinition MyHeader #where #day #month #year #title #number #time
\setupheadertexts
[{\headerframed[align=middle
Hi Aditya,
Thanks for having sent the example file: indeed with your file I can typeset
the example and see the expected result.
I don’t know what happened when I copied and pasted the example from the e-mail…
I think the command
% macros = mkvi
was not set correctly written at the first
On Fri, 18 Aug 2017, Otared Kavian wrote:
Hi Aditya,
I tried to typeset your example, but got an error: whether or not the command
% macros=mkvi
is present on the fist line, then ConTeXt complains saying that
! Illegal parameter number in definition of \MyHeader
and stops
uot;mailing list for ConTeXt users" <ntg-context@ntg.nl>
> Envoyé: Vendredi 18 Août 2017 11:45:47
> Objet: Re: [NTG-context] About \setupheadertexts : simplify a code
>
> Hi Aditya,
>
> I tried to typeset your example, but got an error: whether or not the
> command
&g
" <ntg-context@ntg.nl>
> Envoyé: Vendredi 18 Août 2017 11:45:47
> Objet: Re: [NTG-context] About \setupheadertexts : simplify a code
>
> Hi Aditya,
>
> I tried to typeset your example, but got an error: whether or not the
> command
> % macros=mkvi
> i
der
- Mail original -
De: "Otared Kavian" <ota...@gmail.com>
À: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Envoyé: Vendredi 18 Août 2017 11:45:47
Objet: Re: [NTG-context] About \setupheadertexts : simplify a code
Hi Aditya,
I tried to typeset your
tomframe=on,
> >framecolor=darkgray,
> >rulethickness=2pt,
> > ]
> >
> > \defineframed[headerframed]
> > [
> > frame=off, % For visualization set this to on
> > height=fit,
> >
kgray,
>rulethickness=2pt,
> ]
>
> \defineframed[headerframed]
> [
> frame=off, % For visualization set this to on
> height=fit,
> width=fit,
> location=bottom,
> boffset=\lineheight,
>
#title #number #time
\setupheadertexts
[{\headerframed[align=middle, foregroundstyle=bold, foregroundcolor=red]
{#title n\high{o}\,#number}}]
\setupheadertexts
[{\headerframed[align=flushleft, foregroundstyle=\ssx]
{Lycée JANSON DE SAILLY \\ \date[d=#day,m
e #number #time
\setupheadertexts
[{\headerframed[align=middle]{\\ \ss\sc\bf\red #title n\high{o}\,#number \\
}}]
\setupheadertexts
[{\headerframed[align=right]{\tfx \ss Lycée JANSON DE SAILLY \\
\date[d=#day,m=#month,y=#year]}}]
[{\headerframed[align=left]{\tfx\ss #
,
width=fit,height=\headerheight]
\defineframed[headerframedmiddle]
[frame=off,
align=middle,
width=fit,height=\headerheight]
\starttexdefinition MyHeader #where #day #month #year #title #number #time
\setupheadertexts
[\headerframedmiddle{\\ \ss\sc\bf\red
On 04/01/2017 10:33 AM, Pablo Rodriguez wrote:
> Dear list,
>
> as Hraban already reported, there might be a bug in:
>
> \setupheadertexts[section][chapter][part][section]
>
> \starttext
> \dorecurse{10}{\part{Part}
> \chapter{Chapter}
>
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
Hi together,
what is wrong with the following shortexample?
\setupheadertexts
[] [{\cap\getmarking[chapter]}]
[][]
\starttext
\startchapter[
title={Long long long title, it is indeed},
marking = {Shorter Title},
]
\stopchapter
\stoptext
···date: 2013-04-03, Wednesday···from: H. Özoguz···
Hi together,
what is wrong with the following shortexample?
\setupheadertexts
[] [{\cap\getmarking[chapter]}]
[][]
\starttext
\startchapter[
title={Long long long title, it is indeed
Hello,
\setupheadertexts [chapter]
will center the current chapter title (or abbreviated version using
marking=) in the running page headers.
However, how can one also put unnumbered chapter-level titles
(\starttitle\stoptitle) in the running headers?
\setupheadertexts [chapter,title]
seems
chapter).
Best regards: OK
On 26 mars 2013, at 11:37, Alan BRASLAU alan.bras...@cea.fr wrote:
Hello,
\setupheadertexts [chapter]
will center the current chapter title (or abbreviated version using
marking=) in the running page headers.
However, how can one also put unnumbered chapter-level
a section.
One should just go back up one level, as is the case for the
introductory remarks.
Also, I tried putting a unnumbered chapter
(\starttitle\stoptitle). Indeed, this corresponds to the first part of
my question concering \setupheadertexts [chapter,title].
I supposed that one can try
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 was curious about how this would be solved in
context
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 solution. I am not sure whether
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)
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 userdata
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 how to use
]
\setupheadertexts[\doifoddpageelse{Right page}{Left page}]
\starttext
\dorecurse{10}{\dontleavehmode\page}
\stoptext
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki
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
keyword in my search :-( shame on me.)
Anyway, \uppercase have some problems. I get with
---
\enableregime[utf]
\setupheadertexts[][{\expanded{\uppercase{\fetchmark[chapter][first]}}}]
\starttext
\chapter{Einf�hrung} % EINF�HRUNG
\uppercase{���} % should be ��SS
Hello,
Hans Hagen schrieb:
\WORD
Hmm, using
\WORD{Hell\odiaeresis\udiaeresis\ssharp}
it works, but if I replace the symbolic names by UTF-8 characters:
\WORD{Hö}
I get:
! Undefined control sequence.
\unicodechar ...harnumber #1\futurelet \nextglyph
Tobias Burnus wrote:
Hello,
Hans Hagen schrieb:
\WORD
Hmm, using
\WORD{Hell\odiaeresis\udiaeresis\ssharp}
it works, but if I replace the symbolic names by UTF-8 characters:
\WORD{Hö}
I get:
! Undefined control sequence.
\unicodechar ...harnumber #1\futurelet \nextglyph
Hello,
I think I have a expand problem.
I want to have
\setupheadertexts[pagenumber][{\getmarking[chapter][current]}][section][pagenumber]
with the chapter in \uppercase/\kaps. The problem is that
adding a \uppercase or \kap before the {\getmarking} ends up with
nothing and all my attemps
Hello,
Did you try with a \fetchmark[chapter][first] as explained on the wiki ?
http://wiki.contextgarden.net/Headers_and_Footers , section 2 Using
capitals
Yours,
SeB
Tobias Burnus a écrit :
Hello,
I think I have a expand problem.
I want to have
\setupheadertexts[pagenumber
on me.)
Anyway, \uppercase have some problems. I get with
---
\enableregime[utf]
\setupheadertexts[][{\expanded{\uppercase{\fetchmark[chapter][first]}}}]
\starttext
\chapter{Einführung} % EINFÜHRUNG
\uppercase{ÄÖÜäöüß} % should be ÄÖÜÄÖÜSS
\stoptext
hi
I defined e new head like this:
\definehead[class][subject]
\setuphead[class][placehead=no]
in the text I defined a head as
\class{TRANSLATOR\_APPLICATION}
in my header I want to have the follwoing output:
Exercise 5 - TRANSLATOR_APPLICATION
i tried \setupheadertexts[Exercise 5 - class
][placehead=no]
\setupheadertexts[{Exercise 5 - \getmarking[class]}]
\class{TRANSLATOR\_APPLICATION}
\bye
-
Tobias
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context
On Monday 18 August 2003 18:32, Tobias Burnus wrote:
Hi,
John Culleton wrote:
I want to have chapter names in the header text and I want them in
boldface.
How about:
\setupheader[text][style=bold]
\setupheadertexts[text][My book][chapter]
or alternatively,
\setupheadertexts
80 matches
Mail list logo