]
\endgroup
\blank
\stopsetups
\starttext
\startitemize[columns,two,packed][before=\directsetup{itemize:before},after=\directsetup{itemize:after}]
\item abc
\item \math{a^2}
\item xyz
\item \math{\frac{1}{2}}
\item foo
\item bar
\item baz
\item \math{\sqrt{2}}
\item asdf
\item qwerty
\stopitemize
[itemize:before]
\blank
\begingroup
\setupinterlinespace[medium]
\stopsetups
\startsetups[itemize:after]
\endgroup
\blank
\stopsetups
\starttext
\startitemize[columns,two,packed][before=\directsetup{itemize:before},after=\directsetup{itemize:after}]
\item abc
\item \math{a^2
{\constructionparameter\c!width}% CHECK ! ! ! wrong parameter
namespace
\doifsetupselse{\??constructionrenderings:\v!serried:\p_width} {
\directsetup{\??constructionrenderings:\v!serried:\p_width}
} {
\directsetup{\??constructionrenderings:\v!serried:\v!wide}
}
\stopsetups
Wolfgang
you can put this in cont-new.mkiv (after \unprotect)
\unexpanded\def\strc_lists_apply_renderingsetup
{\the\t_lists_every_renderingsetup
\edef\currentlistalternative{\listparameter\c!alternative}%
\directsetup{\listalternativeparameter\c!renderingsetup}\relax
On 02/01/2012 11:16 AM, Hans Hagen wrote:
you can put this in cont-new.mkiv (after \unprotect)
\unexpanded\def\strc_lists_apply_renderingsetup
{\the\t_lists_every_renderingsetup
\edef\currentlistalternative{\listparameter\c!alternative}%
\directsetup{\listalternativeparameter\c
Am 26.12.2011 um 14:00 schrieb Willi Egger:
Hi,test-flowchart.tex
The FLOW-chart module is broken at least since the version 22-12-2011 and
still is in the version of 23-12-2011.
m-chart.mkvi
\startsetups flowcell:text:place:indeed
\begingroup
\directsetup{flowcell:text:user
\startsetups flowcell:text:place:indeed
\begingroup
\directsetup{flowcell:text:user}
\doifelsenothing {\getvariable{flowcell:text}{figure}} {
% \doframed
% [flowcell:\getvariable{flowcell:text}{align}]
\expandcheckedcsname{flowcell:}{\getvariable
{\directsetup\currentreferenceformatsetups}%
\fi
%
\let\leftofreferencecontent \empty
\let\rightofreferencecontent\empty
\pickup_goto_reference}
Wolfgang
___
If your question is of interest to others as well
\setvariables
[document]
[before=\directsetup{document:start},
after=\directsetup{document:stop}]
\stoptyping
You can for instance define these setups to generate a title page
(using document variables) and a colophon page. In the future more
functionality might be added.
== Yet another new feature
\unexpanded\def\markdownrule
{\directsetup{markdown:rule}}
\setupmarkdown[rule=\...] would fir better in the normal setup concept of
ConTeXt
but as this would be the only setting for \setupmarkdown it can wait till John
had more time to play with the module and find missing features.
Wolfgang
On 21-7-2011 9:31, Wolfgang Schuster wrote:
%\unexpanded\def\markdownrule
% {\hairline\par}
\unexpanded\def\markdownrule
{\markdownparameter\c!rule}
or maybe better
\startsetups markdown:rule
\hairline
\par
\stopsetups
\unexpanded\def\markdownrule
{\directsetup{markdown:rule
[lettercontent]...
\stopletter -\processlettervalues
\directsetup {\v!letter :\v!place }\endgr...
l.31 \stopletter
I used the following test-file:
\usemodule[letter][style=dutch]
\mainlanguage[de]
\language[de]
\starttext
\startletter
Nach unserem Treffen
[strut=no,align=normal,frame=off]{\typebuffer}
\stoplinenumbering
\stopsetups
\placealgorithm
[here][alg:myalgorithm]
{Very neat algorithm.}
{\directsetup{algorithm}}
-
Hans Hagen
of \doprocesslocalsetups to MkII?
If you don't matter about performance you can use
'\processcommacommand[...]\directsetup'
Wolfgang
___
If your question is of interest to others as well, please add an entry
\doprocesslocalsetups is not defined in MkII.
Hans, can you add the definition of \doprocesslocalsetups to MkII?
If you don't matter about performance you can use
'\processcommacommand[...]\directsetup'
Thanks. Works perfectly.
Aditya
, so now I have a question: what am I doing wrong?
This works :
\starttext
\definelayer[lyr][width=\overlaywidth,height=\overlayheight]
\defineoverlay[ovl][{\directsetup{lyr}\tightlayer[lyr]}]
\startsetups lyr
\setlayer[lyr][preset=lefttop]{left top}
\setlayer[lyr][preset=righttop]{right top
\separatedlistmode\plusone}%
\setcurrentlistseparator
\edef\currentlistquotechar{\csname\??ls\currentseparatedlist\c!quotechar\endcsname}%
\expandafter\dodefineprocessseplist\expandafter{\currentlistseparator}\doprocessseparateditem
\initializeseparatedlistdata
\directsetup
\lsoptionmarking
\v!yes{\directsetup{\v!letter:\v!place:\v!foldmark }}
\doif\lsoptionbackaddress\v!yes{\directsetup{\v!letter:\v!place:\v!backaddress}}
\doif\lsoptionaddress
\v!yes{\directsetup{\v!letter:\v!place:\v!address}}
\doif\lsoptionreference
\v!yes
}
\directsetup {stream:\seco...
\@@ar@@1 ...lushoutputstreams [\v!left ,\v!right ]
\ifvoid \outputstreamtag \...
\redoloop -\expandrecursecontent
\endofloop
...
l.20 \FlushLeftAndRight
of layers so
that the text inside them is set on the grid. Here is my initial setup
for a single page.
\definelayer [figure][width=\overlaywidth,height=\overlayheight]
\defineoverlay[figure][{\directsetup{figure}\tightlayer[figure]}]
\setupcolors[state=start]
\setupbackgrounds[page][background
Only to show better how I would like text and images placed on the page.
\definelayer [figure][width=\overlaywidth,height=\overlayheight]
\defineoverlay[figure][{\directsetup{figure}\tightlayer[figure]}]
\setupcolors[state=start]
\setupbackgrounds[page][background=figure]
\starttext
On Tue, May 12, 2009 at 1:28 PM, Piotr Kopszak kops...@gmail.com wrote:
Only to show better how I would like text and images placed on the page.
\definelayer [figure][width=\overlaywidth,height=\overlayheight]
\defineoverlay[figure][{\directsetup{figure}\tightlayer[figure]}]
\setupcolors
...@gmail.com wrote:
Only to show better how I would like text and images placed on the page.
\definelayer [figure][width=\overlaywidth,height=\overlayheight]
\defineoverlay[figure][{\directsetup{figure}\tightlayer[figure]}]
\setupcolors[state=start]
\setupbackgrounds[page][background=figure
\definestartstop
[Abstract]
[before=\directsetup{abstract:before},
after=\directsetup{abstract:after}]
\startAbstract
...
\stopAbstract
Best wishes,
Taco
___
If your question is of interest to others as well, please add
}
or use the \directsetup calls directly (then you don't need the
\definestartstop, and keep on using \define):
\define[1]\Abstract
{\directsetup{abstract:before}#1\directsetup{abstract:after}}
Best wishes,
Taco
Thomas A. Schmitz wrote:
Hi,
with the latest beta of this morning and the latest luatex, a call like
texexec --lua --env=mystyle myfile.xml
fails, the environment file is not read (there is no error about not
finding it in the log).
ah .. in core-def.tex ...
\appendtoks \directsetup
On Feb 5, 2009, at 4:25 PM, Hans Hagen wrote:
ah .. in core-def.tex ...
\appendtoks \directsetup{*runtime:modules}\to \everyjob
's' missing in modules
OK, but now I get:
! LuaTeX error main ctx instance:1: attempt to index global
'ptbs' (a nil value)
stack traceback
Am 05.02.2009 um 16:47 schrieb Thomas A. Schmitz:
On Feb 5, 2009, at 4:25 PM, Hans Hagen wrote:
ah .. in core-def.tex ...
\appendtoks \directsetup{*runtime:modules}\to \everyjob
's' missing in modules
OK, but now I get:
[...]
l.330 \xmlprocess{main}{\inputfilename}{}
Do
\dofullpagelayout#1%
{\directsetup{\v!fullpage:#1}}
\processcommacommand[\currentmoduleparameter\c!style]\dofullpagelayout
\stopmodule
\protect \endinput
/file
Wolfgang
___
If your question is of interest to others
][algorithms]
\definestartstop
[algorithm]
[before=\startlines,
after=\stoplines,
commands=\directsetup{algorithm}]
\startsetups algorithm
\def\STATE {\hskip1em}
\def\REQUIRE {{\bf Require: }}
\def\ENSURE{{\bf Ensure: }}
\def\IF ##1{\bgroup\doadaptleftskip{1em}{\bf if} ##1
be enough but you could define a new environment
and hide the setup in the environment file.
\definestartstop
[mycolumns]
[before=\startcolumns,
after=\stopcolumns,
commands=\directsetup{mycolumn:setup}]
\startsetups mycolumn:setup
\setupwhitespace[...]
\stopsetups
\starttext
=\stopcolumns,
commands=\directsetup{mycolumn:setup}]
\startsetups mycolumn:setup
\setupwhitespace[...]
\stopsetups
\starttext
\startmycolumns
text text text ...
\stopmycolumns
\stoptext
Wolfgang
Thanks again - that's just what I was looking for!
Richard
for any help in advance!
Vyatchelsav
You need something more low level.
\definestartstop
[verse]
[commands=\directsetup{verse},
before=\endgraf,
after=\allowbreak\endgraf]
\startsetups verse
\def\obeyedline
{\futurelet\next\doobeyedline}
\def\doobeyedline
my own macros to do this but I hoped you have already
something available to do this.
hm, i thought that you knew all those things -)
wikifyable ...
\definelayer[figure][width=\overlaywidth,height=\overlayheight]
\defineoverlay[figure][{\directsetup{figure}\tightlayer[figure]}]
\setupcolors
~ {\lettertilde }
\defineactivecharacter | {...
\localgreek #1-\bgroup \directsetup {enablegreek}
{#1}\egroup
l.6 \localgreek{mo~usa,}
?
Oh sorry, that's an error that crept in when handling of active
characters was changed
#1-\bgroup \directsetup {enablegreek}
{#1}\egroup
l.6 \localgreek{mo~usa,}
?
B. \usemodule[oldgreek] works with the default font or with Teubner
(mark ii and mark iv). But not with Gentium, although
and papyrological texts.)
In pdf(e)tex, Hans wrote this macro for me:
\long\def\rescanwithsetup#1#2%
{{\directsetup{#1}\scantokens{#2\ignorespaces}}}
but I'm not sure how to have a similar thing for mkiv (and ! is
special anyway, so I'm running into trouble here...). Any pointers
which is used
for epigraphical and papyrological texts.)
In pdf(e)tex, Hans wrote this macro for me:
\long\def\rescanwithsetup#1#2%
{{\directsetup{#1}\scantokens{#2\ignorespaces}}}
but I'm not sure how to have a similar thing for mkiv (and ! is
special anyway, so I'm running
=20mm,y=15mm]
[background=color,backgroundcolor=white]
{\tfb This page is inserted on page \realfolio}
\stopsetups
\setupheadertexts[\doifinset{\realfolio}{3,4}{\directsetup{at some pages}}]
now, this inserts *as overlay*
however if one wants to insert something after a specific page
]
\setlayerframed
[info]
[preset=rightbottom,x=20mm,y=15mm]
[background=color,backgroundcolor=white]
{\tfb This page is inserted on page \realfolio}
\stopsetups
\setupheadertexts[\doifinset{\realfolio}{3,4}{\directsetup{at some pages}}]
now, this inserts *as overlay
Johannes Graumann wrote:
Hans Hagen wrote:
\defineXMLenvironment
[appendices]
{\directsetup{appendices:start}}
{\directsetup{appendices:stop}}
\startsetups appendices:start
\startappendices
\setuppagenumbering [
way=bytext,
partnumber=no,
conversion=numbers,
location={header
]
{\directsetup{appendices:start}}
{\directsetup{appendices:stop}}
\startsetups appendices:start
\startappendices
\setuppagenumbering [
way=bytext,
partnumber=no,
conversion=numbers,
location={header,right}
]
\startstandardmakeup
Hans Hagen wrote:
\defineXMLenvironment
[appendices]
{\directsetup{appendices:start}}
{\directsetup{appendices:stop}}
\startsetups appendices:start
\startappendices
\setuppagenumbering [
way=bytext,
partnumber=no,
conversion=numbers,
location={header,right}
]
\startstandardmakeup
Floyd
\startTEXpage
\button
[width=fit,height=fit,align=middle,offset=1em,
frame=off,foregroundcolor=middleblue,
background=color,backgroundcolor=middleyellow]
{\nohyphens \getbuffer[text]}
[JS(SpeakToMe{{\directsetup{text}}}]
\stopTEXpage
\stoptext
\localrelativefontsiz...
\directsetup ...:#1}{\csname \??su :#1\endcsname }
\empty
\startgreek ...\getvalue {\??be greek\c!commands }
\dostartattributes
{\??be ...
l.7 \startgreek
?
Process aborted
} {c}
\mapXMLvalue {fox:tab:style} {italic} {I}
\mapXMLvalue {fox:tab:style} {bold} {B}
\mapXMLvalue {fox:tab:style} {slanted}{S}
\defineXMLenvironment
[fx:tabulate] [fox] []
{}
{}
\defineXMLenvironment
[fx:tabulate] [fox] []
{\bgroup
\directsetup{fox:tabulate}}
{\egroup
\definestartstop
[greek]
[commands=\directsetup{cbgreek}]
\doifnotmode{demo}{\endinput}
% The following sample file was submitted to the \CONTEXT\
% mailing list by Giuseppe Bilotta, along with the right
% typescripts.
% already loaded: \usemodule[greek]
\mainlanguage[english]
\starttext
.
\usetypescriptfile[type-cbg]
\usetypescript [all] [cbgreek]
\startsetups [cbgreek]
\catcode`~=\other
\catcode`|=\other
\language[greek]
\switchtobodyfont[cbgreek]
\stopsetups
\definestartstop
[greek]
[commands=\directsetup{cbgreek}]
\doifnotmode{demo}{\endinput}
% The following sample file
-cbg]
\usetypescript [all] [cbgreek]
\startsetups [cbgreek]
\catcode`~=\other
\catcode`|=\other
\language[greek]
\switchtobodyfont[cbgreek]
\stopsetups
\definestartstop
[greek]
[commands=\directsetup{cbgreek}]
\doifnotmode{demo}{\endinput}
% The following
201 - 249 of 249 matches
Mail list logo