seyal.zav...@gmail.com schrieb am 23.05.2024 um 14:13:
Hi all,
i want to use tables for constructing poems structure
this snippet of code works well:
\startsetups tablepoem
\setupTABLE[column][each][width=5cm]
\stopsetups
\starttext
\bTABLE[setups=tablepoem]
\bTR \bTD One one ons ksl \eTD
Hi all,
i want to use tables for constructing poems structure
this snippet of code works well:
\startsetups tablepoem
\setupTABLE[column][each][width=5cm]
\stopsetups
\starttext
\bTABLE[setups=tablepoem]
\bTR \bTD One one ons ksl \eTD \bTD two gfjgfd oski kwo \eTD \eTR
\bTR \bTD One wer s dft
nt = "short", righttext = righttext})
context("]")
end
\stopluacode
\startsetups btx:aps:cite:special
\btxcitereference
\ctxlua{render_cite([==[\currentbtxdataset]==], [==[\currentbtxtag]==],
[==[\currentbtxrighttext]==])}
\stopsetups
\setupbtx[aps:cite][al
ot;[>" .. short .. "]")
else
context("[" .. short .. "]")
end
end
\stopluacode
\definebtx[aps:cite:special][aps:cite]
\startsetups btx:aps:cite:special
\btxcitereference
\ctxlua{render_cite([==[\btxflush{year}]==], [==[\btxflush{
Dear list,
I've got a problem. Not the first one, but the first one to contribute to the
list. ;)
system> ConTeXt ver: 2024.04.01 08:59 LMTX fmt: 2024.4.12 int:
english/english
system> 'cont-new.mkxl' loaded
%==
%==
\definehead[Datum][subsubsubject]
\startsetups[Test
.)
\definelistalternative[startendfmpages][renderingsetup=list:startendfmpages]
\startsetups[list:startendfmpages]
\structurelistuservariable{itemAuthor}\crlf
\structurelistuservariable{itemTitle}\hfill%
\at[\currentlistentrypagenumber]–\at[\lastpagenumber]
\vglue1pc
\stopsetups
where I
]
[renderingsetup=list:startendpages]
\startsetups[list:startendpages]
{\ToCEntry}
\vglue1pc
\stopsetups
\starttext
{\tfa\bf Contents}
\blank[line, fixed]
\WORD{Sources}
\blank[halfline, fixed]
\placelist[SourceTitle][criterium=all]
\blank[line, fixed]
\WORD{Studies}
\blank[halfline, fixed]
\placelist
Hi Pablo and Bruce,
thank you very much for your two solutions. That helps me enormously now.
Greetings
Thomas
Am 21.03.24 um 16:34 schrieb Bruce Horrocks:
\startsetups[doc:header]
\getmarking[chapternumber] \space - \space \getmarking[chapter]
\space :: \space
\getmarking
> On 20 Mar 2024, at 18:45, Andres Conrado Montoya
> wrote:
>
> 2. As far as I have found, including the chapter/section number in the
> marking is not really a trivial task. I usually hack something using
> \headnumber and \getmarking, like so:
You can do the follow
in pagecolumns
manual, everything is put on the top of next page. (BTW, there is a
typo: «of aremoved»)
I don't know, whether this MWE helps is relevant, but just in case, here
is what I did:
* copy tugboat.mkxl to a new file p-bachotex.mkxl
* changed p-bachotex.mkxl like this:
\startsetups
yes,1em]
\setupinterlinespace
[line=2\bodyfontsize,
height=0.9,
depth=0.1]
\setupruby
[style={\switchtobodyfont[6pt]}]
\setuppagenumbering
[alternative=doublesided,
location=none]
\setuphead
[title,subject]
[align=middle]
\startsetups [header:rightpage]
\startframed
vrules don't use tabulate
>> to create the tables.
>> Coincidence? I think not. :-)
> Table which rely on rules to make the content readable have a serious
> problem
> (read Edward Tufte books how you can improve the visual style) but the
> better
> alternative in this c
es.
Below is a example which uses the table like wrapper for natural tables
which makes adding rules and changing the padding around text very
simple because each table cell is a \framed block with all its options.
\starttext
\startsetups[ruledtable]
\setupTABLE [frame=off,align=middle,loffset=.5
Am 25.09.23 um 17:52 schrieb Pablo Rodriguez:
Dear list,
I have the following sample (with current latest from 2023.09.18 21:13):
\setuppapersize[A6]
\starttext
\startsetups[forfootnote]
\setupitemgroup
[itemize][1]
[ before={\endgraf{\ttbf
Dear list,
I have the following sample (with current latest from 2023.09.18 21:13):
\setuppapersize[A6]
\starttext
\startsetups[forfootnote]
\setupitemgroup
[itemize][1]
[ before={\endgraf{\ttbf[before]}\endgraf},
after={\endgraf
,
alternative=setups,
setups=frontispiz,
color=white,
background=color,
backgroundcolor=Eifel,
]
\startsetups[frontispiz]
\starttransparent[tlumi]%
\externalfigure[\structureuservariable{image}][
width=\measure{MaxWidth},
]%
\stoptransparent%
\stopsetups
\setuphead[chapter][
page
,section}]
\startsetups [SecToc]
\startframedtext [width=\textwidth, align=middle, frame=off]
\placelist [section]
[
criterium=chapter,
]
\stopframedtext
\stopsetups
While that produces a result, it is nothing like what I want above. Has
anyone put together a TOC of this kind and might
something based in key=value assignments? setups? datasets?
Not really sure, but If you know a better solution or point me in the
direction of something I can use to replace that macro, it would be greatly
appreciated.
\startsetups [document:start]
\doifdocumentvariable {englishabstract
,
typesetting the example below results in lines printed above each other?
Without the penalties, this doesn't happen. What am I missing here? How I
can use the penalties without the not wanted overprinting?
Best,
Denis
\startsetups[mypenalties]
\setdefaultpenalties
\setpenalties
> > typesetting the example below results in lines printed above each other?
> Without the penalties, this doesn't happen. What am I missing here? How I
> can use the penalties without the not wanted overprinting?
> >
> > Best,
> > Denis
> >
> >
> &g
[ref.buffer]
\usebtxdefinitions[apa]
\definebtx
[apa:cite:theorem]
[apa:cite]
\startsetups btx:apa:cite:theorem
\btxflushauthorname{author}
\btxcomma
\btxflush{year}
\fastsetup{btx:cite:righttext}
\stopsetups
\setupenumeration[
before={\blank[medium]},
after={\blank
\startsetups[mypenalties]
\setdefaultpenalties
\setpenalties\clubpenalties{1}{150}
\setpenalties\widowpenalties{1}{1}
\setpenalties\displaywidowpenalties{1}{1}
\stopsetups
\setuplayout[setups=mypenalties]
\starttext
\starttabulate[|p(.15\textwidth)|p
\startsetups[mypenalties]
\setdefaultpenalties
\setpenalties\clubpenalties{1}{150}
\setpenalties\widowpenalties{1}{1}
\setpenalties\displaywidowpenalties{1}{1}
\stopsetups
\setuplayout[setups=mypenalties]
\starttext
\starttabulate[|p(.15\textwidth)|p
Dear list,
typesetting the example below results in lines printed above each other?
Without the penalties, this doesn't happen. What am I missing here? How I can
use the penalties without the not wanted overprinting?
Best,
Denis
\startsetups[mypenalties]
\setdefaultpenalties
but Hans suggestion to provide a hook which can be used to
re-enable the feature, e.g.
\startsetups [typing:mine]
\setbreakpoints[compound]
\stopsetups
\setuptyping [CUSTOM] [setups=typing:mine]
The only flaw I can see in the suggestion is the use
zeverbatim
and then
\startsetups typing:mine
\setbreakpoints[compound]
\stopsetups
with
\starttyping[lines=yes,setups=typing:mine]
I need Wolfgang to check it for possible interferen
gparameter
\to \everyinitializeverbatim
and then
\startsetups typing:mine
\setbreakpoints[compound]
\stopsetups
with
\starttyping[lines=yes,setups=typing:mine]
I need Wolfgang to check it for possible interferen
as intermediate:
% \startsetups[userdata:idautor]
% \dontleavehmode
% \imghref
% {\externalfigure[cvlac.pdf][logo]}
% {\datasetvariable{autores}{\recurselevel}{vclac}}
% \quad
% \imghref
% {\externalfigure[orcid.pdf][logo]}
% {\datasetvariable{autores}{\recurselevel}{orcid
][renderingsetup=userdata:idautor]
\startsetups[userdata:idautor]
\dontleavehmode
\imghref
{\externalfigure[cvlac.pdf][logo]}
{\userdataparameter{cvlac}}
\quad
\imghref
{\externalfigure[orcid.pdf][logo]}
{\userdataparameter{orcid}}
\quad
\imghref
{\externalfigure
' on the recto page (or
indeed be blank with no header), but I am currently getting the header
that belongs to the main setup for headers, which happens to be:
\startsetups[middle]
\hfill
\getmarking[section]
\hfill
\stopsetups
\setupheadertexts
[{\hfill\documentvariable{metadata:title
be blank with no header), but I am currently getting the header
that belongs to the main setup for headers, which happens to be:
\startsetups[middle]
\hfill
\getmarking[section]
\hfill
\stopsetups
\setupheadertexts
[{\hfill\documentvariable{metadata:title}\hfill}][]
[\setups{middle}][]
How
On Aug 12, 2023, 3:49 PM -0600, Hans Hagen , wrote:
> you'll figure it out, right?
I hope so and I'm working on it -- with your help -)
> the demo shows both: x/.y scaling and 90/180/270 rotation
Yes, here is what I have so far:
==
% % Hans' original template
% \start
yesterday, not sure which one to
focus on in this case -)
\startsetups glyph:iTee
\dontleavehmode\hpack\bgroup
\setbox\scratchbox \ruledhbox \bgroup
\glyphxscale 400
\glyphyscale 400
\getglyphstyled{Serif}{T}> choose a font here
\egroup
\scratchheight 2.75\ht\scratchbox
\boxyoffset \s
ot; and map that one onto a
> file (YourFont YourFontBold etc)
> - more about these box manipulations in the low level manual
Ok. Just discovered the 11 low-level manuals yesterday, not sure which one to
focus on in this case -)
> \startsetups glyph:iTee
> \dontleavehmode\hpack\b
\definetextbackground[TextConcurrentFrame][
mp=GraphicConcurrent,
frame=off,
topoffset=1em,
leftoffset=1em,
before=\blank[2*big],
after=\blank,
location=paragraph,
]
\startsetups concurrent:before
\ConcurrentTextSet{%
% Be sure to format "a.m." and other special
have to replace "Serif" with "YourFont" and map that one onto a
file (YourFont YourFontBold etc)
- more about these box manipulations in the low level manual
Ok. Just discovered the 11 low-level manuals yesterday, not sure which one to
focus on in this case -)
\st
undaries.
draw
llcorner multipars[ index ] --
ulcorner multipars[ index ];
fi
\stopuseMPgraphic
\definetextbackground[TextConcurrentFrame][
mp=GraphicConcurrent,
frame=off,
topoffset=1em,
leftoffset=1em,
before=\blank[2*big],
after=\blank,
location=paragraph,
]
\startsetups conc
that it adapts
- you have to replace "Serif" with "YourFont" and map that one onto a
file (YourFont YourFontBold etc)
- more about these box manipulations in the low level manual
\startsetups glyph:iTee
\dontleavehmode\hpack\bgroup
\setbox\scratchbo
[TextConcurrentFrame]
[mp=GraphicConcurrent,
% mp=mpos:region:draw,
method=mpos:region,
frame=off,
topoffset=1em,
leftoffset=1em,
before=\blank[2*big],
after=\blank,
location=paragraph]
% And use setups to get a nicer definition:
\startsetups concurrent:before
\ConcurrentTex
s up to the user to decide to use {} (as before) or not but it is less
> error prone.
>
> It is now also possible to nest setups as in
>
> \starttext
>
> \startsetups one
> \startsetups [three]
> HERE
> \stopsetups
> \stopsetups
>
> \startsetups two
&g
to decide to use {} (as before) or not but it is less
error prone.
It is now also possible to nest setups as in
\starttext
\startsetups one
\startsetups [three]
HERE
\stopsetups
\stopsetups
\startsetups two
\startsetups [three]
THERE
\stopsetups
\stopsetups
\setups
te:
Hi Keith,
Here an example that Mikael made for such a book:
\showframe
% let's very strict
\startsetups [*default]
\directsetup{*reset}
\frozen\widowpenalty 1
\frozen\clubpenalty 1
\frozen\displaywidowpenalty 1
\frozen\brokenpenalty 0 % \
Thanks Hans!
I'll have a play and keep an eye on updates
Best Wishes
Keith
On 21/07/2023 17:10, Hans Hagen via ntg-context wrote:
Hi Keith,
Here an example that Mikael made for such a book:
\showframe
% let's very strict
\startsetups [*default]
\directsetup{*reset}
\frozen
Hi Keith,
Here an example that Mikael made for such a book:
\showframe
% let's very strict
\startsetups [*default]
\directsetup{*reset}
\frozen\widowpenalty1
\frozen\clubpenalty 1
\frozen\displaywidowpenalty 1
\frozen\brokenpenalty 0
to the files so that my setup for xml was very simple.
Here are my setups for the layout of the novels showing some trackers
that were used as well:
\definepapersize[pagee][width=5.06in,height=7.81in]
\setuppapersize[pagee]
% XML setups here
\startsetups[grid][mypenalties]
\setdefaultpenalties
simple.
Here are my setups for the layout of the novels showing some trackers
that were used as well:
\definepapersize[pagee][width=5.06in,height=7.81in]
\setuppapersize[pagee]
% XML setups here
\startsetups[grid][mypenalties]
\setdefaultpenalties
\setpenalties\widowpenalties{1}{150
Hi,
if I use \startdocument, the setups "document:start" and "document:stop"
get inserted at the beginning and end. But if I define my own document,
it doesn’t work. What’s wrong?
"""
\definedocument[presentation]
\startsetups[presentation:start]
{\bfd\d
> > a
> >
> > \vbox to 5pt{x\vrule\rightarrowfill \ x \leftarrowfill\vrule\ x}
> >
> > or
> >
> > x \rightarrowfill x
> > x \leftarrowfill x
> >
> > or
> >
> > \vbox to 3pt{x\vrule\rightarrowfill \ \leftarrowfill\vrule\ x}
% \setupexternalfigures
% [location={default,global}]
% \startsetups adaptive:test
% \setbox\usedadaptivebox\hbox to \usedadaptivewidth yoffset
-\usedadaptivedepth \bgroup
% \externalfigure
% [cow.pdf]
% [width=\usedadaptivewidth,
%height=\dimexpr
Gerben Wierda via ntg-context 于2023年6月2日周五 19:37写道:
> For Japanese I currently use
>
> \startsetups [japanese]
> \setscript [nihongo]
> \stopsetups
> \setuplanguage [ja] [setups=japanese]
> \definefallbackfamily
> [archimate]
> [ss]
> [Hiragino Sans]
>
For Japanese I currently use
\startsetups [japanese]
\setscript [nihongo]
\stopsetups
\setuplanguage [ja] [setups=japanese]
\definefallbackfamily
[archimate]
[ss]
[Hiragino Sans]
[preset=range:japanese,
tf=style:W3,
it=style:W3,
bf=style:W5,
bi=style:W5,
force=yes
=
> \definefallbackfamily
> [archimate]
> [ss]
> [Hiragino Sans]
> [preset=range:japanese,
>tf=style:W3,
>it=style:W3,
>bf=style:W5,
>bi=style:W5,
>force=yes]
>
> \definefontfamily [archimate] [ss] [Optima]
>
> \setup
[Hiragino Sans]
> [preset=range:japanese,
>tf=style:W3,
>it=style:W3,
>bf=style:W5,
>bi=style:W5,
>force=yes]
>
> \definefontfamily [archimate] [ss] [Optima]
>
> \setupbodyfont[archimate]
>
> \startsetups [japanese]
> \set
=style:W5,
force=yes]
\definefontfamily [archimate] [ss] [Optima]
\setupbodyfont[archimate]
\startsetups [japanese]
\setscript [nihongo]
\stopsetups
\setuplanguage [ja] [setups=japanese]
\mainlanguage [ja]
\starttext
\setupindenting[none]
\setupindenting[no]
\framed[width=\textwidth,frame=off
]
[renderingsetup=list:toclist]
\setupheadtext[section=Table of Contents]
\startsetups toclist
\framed[align=normal, frame=off]{\placelist [section] [criterium=all,
alternative=toclist]}
\stopsetups
\definehspace[tspace][4cm]
\setupframed[
height=fit,
width=fit,
location=middle,
frame
de [JA]
\setscript [nihongo]
\mainlanguage [ja]
\stopmode
but for documents which use multiple script/languages at the same time
replace the previous setup with
\startsetups [japanese]
\setscript [nihongo]
\stopsetups
\setuplanguage [ja] [setups=japanese]
a
what \directsetup does, but there's no doubt it works in this
case! So the following has done what I needed:
\startsetups[setups:footnotes]
\setupwhitespace[.01em]
\stopsetups
\setupnote[before=\directsetup{setups:footnotes}]
Julian
On 23/4/23 20:34, Henning Hraban Ramm via ntg-context
what \directsetup does, but there's no doubt it works in this
case! So the following has done what I needed:
\startsetups[setups:footnotes]
\setupwhitespace[.01em]
\stopsetups
\setupnote[before=\directsetup{setups:footnotes}]
Julian
On 23/4/23 20:34, Henning Hraban Ramm via ntg-context
I am using only local footnotes in a document, but am having difficulty
influencing the interlines space between these notes. Since I am only
using local footnotes, I thought initially that the following would work
for them
\startsetups[footnote:interlinespace]
\setupinterlinespace[line
=\vbox,align=middle,stack=yes]
\defineuserdata [margintext] [alternative=margintext]
\defineuserdataalternative [margintext] [renderingsetup=userdata:margintext]
\startsetups [userdata:margintext]
\margindata
[inright]
[
style={\switchtobodyfont[10pt]},
width=\rightmarginwidth
to put large settings into a setups-blocks and
> pass the block to a setup-command.
>
> \startsetups [apage]
> \startMPcode
> StartPage;
> ...
> StopPage;
> \stopMPcode
> \stopsetups
>
> \defineoverlay[apage][\directsetup{apage}]
>
> Wolfgang
>
>
___
,
footer=1cm]
Another useful method is to put large settings into a setups-blocks and
pass the block to a setup-command.
\startsetups [apage]
\startMPcode
StartPage;
...
StopPage;
\stopMPcode
\stopsetups
\defineoverlay[apage][\directsetup{apage}]
Wolfgang
.
My first attempt (did not work)
\startsetups[headertext]
\startdocument
[metadata:title={Regulations}]
\stopsetups
\setupheadertexts
[ ] [{\getmarking[chapter]\hskip1em \pagenumber}]
[{\pagenumber \hskip1em \setup{headertext}}] [ ]
My second attempt (quite crass, but it works
On 1/30/2023 1:14 AM, jbf via ntg-context wrote:
Am trying to understand how best to change the title metadata in
headertext halfway through a document that has two parts: Constitutions
and Regulations.
My first attempt (did not work)
\startsetups[headertext]
\startdocument
[metadata:title
Am trying to understand how best to change the title metadata in
headertext halfway through a document that has two parts: Constitutions
and Regulations.
My first attempt (did not work)
\startsetups[headertext]
\startdocument
[metadata:title={Regulations}]
\stopsetups
\setupheadertexts
}: #2}
\setuphead[chapter][
command=\MyChapter,
]
Is this what you meant?
Hraban
Perhaps:
\setuppagenumbering[alternative=doublesided,location=bottom]
\startsetups chapter:headings
\doifsomethingelse{\structureuservariable{custom}}
{\setupheaderte
tups
\startxmlsetups xml:html
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:p
\xmlcontext{#1}
\par
\stopxmlsetups
\startxmlsetups xml:em
\dontleavehmode{\em\xmlflush{#1}}
\stopxmlsetups
\xmlregistersetup{xml:xhtml}
\usemodule[gimmicks] % in latest uploads
\chardef\MacAnulty
pter][last]
These are not
>
> What’s the difference?
>
> And even if I use \definecolor within a setup, I get the same color for every
> chapter – how and where must I delay expansion?
>
> \usemodule[visual]
>
> \startsetups[MyChapterSetup]
> \definecolor[M
}
or
\someheadnumber[chapter][current]
\someheadnumber[chapter][last]
What’s the difference?
And even if I use \definecolor within a setup, I get the same color for
every chapter – how and where must I delay expansion?
\usemodule[visual]
\startsetups[MyChapterSetup]
\definecolor[MyChapterColor][h={360
hus, it does not get defined. If I patch the
btx:sbl:cite:footnote setup as follows, then I no longer get the "Undefined
control sequence \currentbtxloctext" error:
```
% Inline footnote citation setup (with intelligent trailing punctuation
replacement)
\startsetups btx:sbl:cite:fo
Dear list,
I have the following sample:
\setuppapersize[A6]
\definelinenote[otherlinenote]
\setupnote[otherlinenote]
[compress=yes]
\startsetups[line:notes]
\setupinterlinespace[line=2.9ex]
\stopsetups
\setupnote[linenote]
[paragraph=yes, compress=yes, compressmethod
On 6/6/2022 8:12 PM, Steffen Wolfrum via ntg-context wrote:
with my last ConTeXt ver 2022.01.21 20:31 LMTX (arm64) this work:
\startsetups footnotesetup
\interwordspace 2.75pt % \setuptolerance[NEUNspace] hat hier keine Wirkung!
\interwordstretch 1.7pt
\interwordshrink 0.9pt
Hi,
with my last ConTeXt ver 2022.01.21 20:31 LMTX (arm64) this work:
\startsetups footnotesetup
\interwordspace 2.75pt % \setuptolerance[NEUNspace] hat hier keine Wirkung!
\interwordstretch 1.7pt
\interwordshrink 0.9pt
\setupinterlinespace[line=11pt, height=.79,depth=.21]
\lineskiplimit
ont[archimate]
\definefontfamily
[mgopencosm]
[ss]
[MgOpenCosmetica]
[preset=range:greek,
force=yes]
\startsetups[greek-typeface]
\switchtobodyfont[mgopencosm]
\stopsetups
\setuplanguage[agr][setups={greek-typeface}]
\startbuffer
Ο κόσμος θα ήταν απίσ
, Country}]
\defineaddress[snd][name={Name of Secondary Institute or Affiliation, City,
Country}]
\defineaddress[thd][name={Name of Third Institute or Affiliation, City,
Country}]
\processcommacommand[fst,snd,thd]\useaddress
\startsetups [document:start]
The Title\dorecurse{10}{\expanded{\thanks{Work
which was added
>> to avoid problems like in your example.
>>
>> \startsetups headertext
>> \bTABLEnested[setups=headertable,option=stretch]
>> ...
>> \eTABLEnested
>> \stopsetups
>
> Splendid (as always)! Definitely a better solution for Stef
On 5/15/22 2:20 PM Wolfgang Schuster via ntg-context wrote:
> Use the TABLEnested environment in your document header which was added
> to avoid problems like in your example.
>
> \startsetups headertext
> \bTABLEnested[setups=headertable,option=stretch]
> ...
> \eTABL
was added
to avoid problems like in your example.
\startsetups headertext
\bTABLEnested[setups=headertable,option=stretch]
...
\eTABLEnested
\stopsetups
Wolfgang
___
If your question is of interest to others as well
finehspace[tnumber][0.5em]
\startsetups [fheader]
\startframed[width=max,frame=off]
\startoverlay
{\leftaligned{\framedtext[location=top,frame=off,width=fit,offset=0ex]{„ДОЛИНА” Д.О.О. Београд\\
ПЈ за прераду меса\\
ПИБ: СР 100029284\\
МБ: 06434517\\
Текући рачун: 205-15795
,
header=\dimexpr4cm,
height=middle,
bottomspace=\dimexpr0cm,
footer=\dimexpr0.5cm]
\setupheadertexts[\setups{headertext}]
\definehspace[tnumber][0.5em]
\startsetups [headertable]
\setupTABLE[frame=off]
\setupTABLE[column][1][align=flushleft]
\setupTABLE[column][2][align=flushright]
\stopsetups
][{\directsetup{figure}\tightlayer[figure]}]
\startsetups figure
\setlayerframed[figure][frame=off,preset=rightbottom]{\copyright\ 2022}
\stopsetups
\externalfigure[cow][background={foreground,figure}]
\stoptext
\starttext
\definecollector[example]
\setcollector [example] {\externalfigure[cow
= string.gsub(data, '<%?capdm %*force_line_stop%?>',
'')
return data
end
\stopluacode
\startsetups xml:directive:injector:newline
\crlf
\stopsetups
Duncan
On Mon, 2 May 2022 at 09:24, Duncan Hothersall wrote:
> Many thanks Denis. Very useful tip on the injectors and generalised
> c
name=author,
command=yes, % Create \defineauthor
style=yes, % Create \useauthorstyleandcolor
setup=list, % Create \setupauthor
parent=documentauthor,
]
\def\AuthorList{}
\define[1]\useauthor
{\edef\currentauthor{#1}%
{\authorparameter{given-name}
\space
> I have used context’s own injectors for this :
>
>
>
>
>
>
>
> \startsetups xml:directive:injector:addlinetopage
>
> \adaptlayout[lines=+1]
>
> \stopsetups
>
>
>
> Or, for your line break example :
>
>
>
>
>
>
>
> \
That was too quick, sorry.
Hi Duncan,
I have used context’s own injectors for this :
\startsetups xml:directive:injector:addlinetopage
\adaptlayout[lines=+1]
\stopsetups
Or, for your line break example :
\startsetups xml:directive:injector:newline
\crlf
\stopsetups
Also, I have
Hi Duncan,
I have used context’s own injectors for this :
\startsetups xml:directive:injector:addlinetopage
\adaptlayout[lines=+1]
\stopsetups
Or, for your line break example :
Von: ntg-context Im Auftrag von Duncan Hothersall
via ntg-context
Gesendet: Montag, 2. Mai 2022 09:20
t;0", or values
greater than ten thousand, then something is wrong here.
2. Something is "hiding" the widow/orphan penalties from lwc.
Something like "\vadjust{\penalty X}" or the e-TeX "\-penalties"
commands could potentially do this.
One potential so
ike "\vadjust{\penalty X}" or the e-TeX "\-penalties"
commands could potentially do this.
One potential solution for (a subset of) this problem would be to
modify lwc.mkxl to insert "\directsetup{*reset}" at line 52, to
get:
\startset
)
withpen pencircle scaled AdaptiveThickness
withcolor white ;
enddef ;
\stopMPdefinitions
\startsetups adaptive:test
\setbox\usedadaptivebox\hbox to \usedadaptivewidth yoffset
-.9\usedadaptivedepth \bgroup
\hss
\startMPcode
TickTock
*AdaptiveThickness)
withpen pencircle scaled AdaptiveThickness
withcolor white ;
enddef ;
\stopMPdefinitions
\startsetups adaptive:test
\setbox\usedadaptivebox\hbox to \usedadaptivewidth yoffset
-.9\usedadaptivedepth \bgroup
\hss
\startMPcode
tertilde c\textasciitilde d
\stoptext
\definepageinjectionalternative
[chapter:image]
[renderingsetup=pageinjection:chapter:image]
\startsetups [pageinjection:chapter:image]
\centerbox{\externalfigure[\dummyparameter{name}]}
\stopsetups
\definepageinjection
[chapter:start]
[empt
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 title.
So why can't I create a setups along the lines of:
\startsetups[contributor] \getmarking[\structureuservariable
title.
So why can't I create a setups along the lines of:
\startsetups[contributor] \getmarking[\structureuservariable{author}]
\stopsetups
Then just swap 'chapter' in \setupheadertexts, with 'contributor'? I
tried it but it doesn't work. I thought it would be logical. Clearly I'm
wrong
chapter instead of the chapter title.
So why can't I create a setups along the lines of:
\startsetups[contributor] \getmarking[\structureuservariable{author}]
\stopsetups
Then just swap 'chapter' in \setupheadertexts, with 'contributor'? I
tried it but it doesn't work. I thought it would be logical
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
at the beginning.
Like in:
\setuppagenumbering[alternative=doublesided]
\setupheadertexts[] % empty
\setupheadertexts[\setups{text right}][][][\setups{text left}]
\startsetups[text right]
\rlap{\pagenumber}
\hfill
\getmarking[chapter]
\hfill
\llap{Un Nom}
\stopsetups
\startsetups[text left
]\MeinEintrag{#3: #2 (#1)} % Seite: Titel (Nummer)
\setuplist[alternative=interactive,command=\MeinEintrag]
or define your own alternative:
\definelistalternative[j][renderingsetup=list:jbf]
\startsetups[list:jbf]
... \currentlist...
\stopsetups
HTH
Hraban
Am 16.03.22 um 22:03 schrieb jbf via
=pageinjection:chapter:image]
\startsetups [pageinjection:chapter:image]
\centerbox{\externalfigure[\dummyparameter{name}]}
\stopsetups
\definepageinjection
[chapter:start]
[empty]
[page=left]
\definepageinjection
[chapter:insert]
[previouspage]
[alternative=chapter:image,
offset=1cm,
pagestate
on the
available space. The best solution to change orientation, size etc. of
the included images is to use the \useexternalfigure command and make
all changes in the style file.
\definepageinjectionalternative
[chapter:image]
[renderingsetup=pageinjection:chapter:image]
\startsetups
some images of cows, 'spider', 'hacker' and 'mill' and have them
renamed as {chap-cover-1, ... chap-cover-6} for a total of 6 chapter images.
%%% start example
\definepageinjectionalternative
[chapter:image]
[renderingsetup=pageinjection:chapter:image]
\startsetups
1 - 100 of 1451 matches
Mail list logo