\definestartstop instead of \definehighlight.
Aditya
___
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/ntg
\stoptext
Quick workaround: use \definestartstop instead of \definehighlight.
The bug is with xml.css.fontspecification function that does not handle
style=mono (or sans and serif for that matter). The proper solution is to
convert from context font specification into html font
?
\definestartstop
[SomeFramedText]
[before={
\crlf
\setupbackground[frame=on,
before=\blank,
after=\blank,
corner=round,
topoffset=0.5cm,
leftoffset
Hey list,
I'd like my framed text to be split over multiple pages rather than
leaving a big empty page before it starts so that it can fill its own
whole page when large enough.
This is what I am using and works fine, with the exception of no inline
page breaks:
\definestartstop
not to put the
blanks manually?
\definestartstop
[centered]
[before={\blank[small]},
after={\blank[small]},
commands={\setupalign[middle]}]
\starttext
…
\startcentered
…
\stopcentered
…
\stoptext
Wolfgang
Am 31.08.2011 um 07:04 schrieb Alasdair McAndrew:
This brings up a question I have - how do I obtain, say, all {\tt } text in
blue and all {\em } text in red? I seem to be using MkII, and I don't have
access to the \definehighlight command.
\definestartstop[emph][style=italic,color=red
file name=exa-feat3.tex
\setupbackend[export=yes]
\definetyping[EXAMPLE][escape=yes]
\definestartstop[important][style=bold]
\starttext
This is an example with \quotation{long} verbatim text.
Why context fail to compile this example? Is there a method to process it?
\startEXAMPLE
Am 16.08.2011 um 14:05 schrieb Vladimir Lomov:
Hi.
Consider the following two example files:
[…]
\definetyping[EXAMPLE][escape=yes]
\definestartstop[important][style=bold]
\starttext
This is an example with \quotation{long} verbatim text.
Why context fail to compile
?
\startEXAMPLE
Here we go /BTEX\bold{AGAIN}/ETEX
\stopEXAMPLE
\stoptext
/file
The 'AGAIN' in PDF file created by 'context' is bold but in 'feat1.export' file
the word isn't placed between any tag.
Should I use some special command in order to put 'AGAIN' between apropriate
tags?
\definestartstop
apropriate tags?
\definestartstop[important][style=bold]
\important{...}
Or, if you don't need ths start-stop macros:
\definehighlight[important][style=bold]
Aditya
___
If your question is of interest
special command in order to put 'AGAIN'
between apropriate tags?
\definestartstop[important][style=bold]
\important{...}
Or, if you don't need ths start-stop macros:
\definehighlight[important][style=bold]
Aditya
Thank you Hans and Aditya. Both examples work as expected.
---
WBR
=3cm]{\tt One}
\page
\setlayer[two][x=3cm,y=3cm]{\tt Two}
\input ward
\flushlayer[two]
\input ward
\stoptext
As your plan is to make a document with layers only \flushlayer
is the better choice because you can do this:
\definelayer[content]
\definestartstop
[PAGE]
[after={\flushlayer
\stopitemize
\stopitemize
\stopitemize
\stopitemize
\stoptext
With some extra markup a better result is possible:
\definefontfeature[smcp][smcp=yes]
\definestartstop[itemzero] [before=\startitem,after=\stopitem,]
\definestartstop[itemone] [itemzero
\stopitemize
\stopitemize
\stopitemize
\stoptext
With some extra markup a better result is possible:
\definefontfeature[smcp][smcp=yes]
\definestartstop[itemzero] [before=\startitem,after=\stopitem,]
\definestartstop[itemone] [itemzero][style=\bf\addff{smcp
On Thu, 2011-07-07 at 07:04 +0200, Wolfgang Schuster wrote:
Am 07.07.2011 um 03:16 schrieb Kip Warner:
I'm not very competent with ConTeXt, but I tried to translate what you
and wrote into the following:
[...]
Solution 1:
\definestartstop
[SpecialFramed]
[
before
Am 07.07.2011 um 03:16 schrieb Kip Warner:
I'm not very competent with ConTeXt, but I tried to translate what you
and wrote into the following:
[...]
Solution 1:
\definestartstop
[SpecialFramed]
[
before={\setupbackground[frame=on,before=\blank,after=\blank]\startbackground
\ArabicTextDir {\textdir TRT}
\def\LatinParDir {\textdir TLT\pardir TLT}
\def\LatinTextDir{\textdir TLT}
\def\LatinGlobalDir {\pagedir TLT\bodydir TLT\pardir TLT\textdir TLT}
\define\setarabic
{\ArabicGlobalDir%
\usetypescript[Arabic]%
\setupbodyfont[Arabic,20pt]}
\definestartstop
][backgroundcolor=green]
\definetextbackground[mary-background][backgroundcolor=red]
\definestartstop[dialogue]
\defineparagraphs[john][before={\starttextbackground[john-background]},after={\stoptextbackground}]
\defineparagraphs[mary][before={\starttextbackground[mary-background]},after
.
The annotation module doesn’t have so many options as enumerations and it is
no replacement for them. What the module does is that it generates a
environment (like \definestartstop) where you have access to the content,
with your own command you can format the content in any way you like
module doesn’t have so many options as enumerations and it is no
replacement for them. What the module does is that it generates a environment
(like \definestartstop) where you have access to the content, with your own
command you can format the content in any way you like.
The advantage
{backgraphics}]
\setupbackgrounds
[page]
[background={backgraphics}]
\setupMPvariables[mpos:par][gridtype=1,gridshift=-0.5ex,gridwidth=0.1ex,
gridcolor=black,fillcolor=white,linecolor=white]
\newcount\dashulinecounter \dashulinecounter=1
\definestartstop[dashuline][before={\dostartdashuline
\definestartstop[dashuline][before={\dostartdashuline},after={\dostopdashuline}]
\def\dostartdashuline{%
\startpositionoverlay{backgraphics}%
\setMPpositiongraphic{b:uline:\the\dashulinecounter}{mpos:par}{self=uline:\the\dashulinecounter}%
\stoppositionoverlay
\fpos
]
\definebodyfont [10.5pt] [rm] [default]
\stoptypescript
\definebodyfontenvironment[10.5pt]
\usetypescript[times]
\setupbodyfont[times,10.5pt]
\setupfootnotes[bodyfont={rm,8.5pt}]
\definestartstop[quote]
[before={\setupnarrower[left=10pt,right=0pt]\startnarrower[left,right]\switchtobodyfont
?
% ~ Patrick Gundlach
\def\hangover{\hangafter=1\hangindent=0.5in}
\definestartstop[workscited][
before={
\page[no]
\indenting[never]
\startalignment[left]
\bibliography{Recommended Reading}
\stopalignment
\setupwhitespace[medium]
\bgroup\appendtoks\hangover\to\everypar
just do:
\Acronym{Must Should Could Not~now}
Is more readable and when I want a change (for example another color for the
first letter), this is much easier to implement. How should I implement such
a macro?
\definestartstop[Acronym][style=\bfa]
\starttext
\starttabulate[|lh{\Acronym
:
\Acronym{Must Should Could Not~now}
Is more readable and when I want a change (for example another color for the
first letter), this is much easier to implement. How should I implement such
a macro?
Use recursion!
\definestartstop
[FancyFirstLetter]
[style={\switchtobodyfont[big]\bf},
color
to have a macro for this, so I could just do:
\Acronym{Must Should Could Not~now}
Is more readable and when I want a change (for example another color for
the
first letter), this is much easier to implement. How should I implement
such
a macro?
Use recursion!
\definestartstop
recursion!
\definestartstop
[FancyFirstLetter]
[style={\switchtobodyfont[big]\bf},
color=red]
\def\FancyUppercase#1%
{\dostartFancyUppercase#1\dostopFancyUppercase}
\def\dostartFancyUppercase#1#2\dostopFancyUppercase
{\FancyFirstLetter{#1}#2}
\def\Acronym#1%
{\dostartAcronym#1 \dostopAcronym
2011/3/19 Aditya Mahajan adit...@umich.edu
\definestartstop
[FancyFirstLetter]
[style={\switchtobodyfont[big]\bf},
color=red]
\def\FancyUppercase#1%
{\dostartFancyUppercase#1\dostopFancyUppercase}
\def\dostartFancyUppercase#1#2\dostopFancyUppercase
{\FancyFirstLetter{#1}#2}
\def
to go is abstraction:
\definestartstop[important][color=red,style=bold]
test {\important test} or \important{test} test ...
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH
:
\definestartstop[important][color=red,style=bold]
test {\important test} or \important{test} test ...
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel
=on]
{\vbox{\headtext{chapter} #1\blank#2}}}
\stophiding
% headings
\definestartstop[dedication][style={\switchtobodyfont[dedication,20pt]},befo
re=\page]
\definehead [intro] [chapter]
\setuphead[chapter][style=\ss\bfd,alternative=middle,
command=\MyChapterCommand,
header=empty,footer=chapter
chapters, sort of, in that the
chapter title isn't normally displayed and the body of the chapter is
printed in a different font than are the other chapters.
Add this to my example:
\definestartstop[dedication][style={\switchtobodyfont[dedication]}]
You can now write in your document
\dedication
This should be my last question on this topic. I want to center the
dedication but align=middle (or center) and alternative=middle added to
\definestartstop[dedication] seem to have no effect. I can't seem to find a
simple way to center an odd line of paragraph of text. Using a frame seems
like
Am 13.02.2011 um 15:39 schrieb Tom:
This should be my last question on this topic. I want to center the
dedication but align=middle (or center) and alternative=middle added to
\definestartstop[dedication] seem to have no effect. I can't seem to find a
simple way to center an odd line
] [default]
\definetypeface [dedication] [rm] [serif] [chancery] [default]
\setupbodyfont[mainface]
% headings
\definestartstop[dedication][style={\switchtobodyfont[dedication,20pt]}]
\definehead [intro] [chapter]
\definehead [dedication][chapter]
\setuphead[chapter][style=\ss\bfd,alternative
Am 13.02.2011 um 21:40 schrieb Tom:
My intention is to indent all paragraphs that do not follow whitespace.
However, my code isn't making that happen. What am I doing wrong?
\definestartstop[dedication][style={\switchtobodyfont[dedication,20pt]}]
\definehead [dedication][chapter]
Don’t
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Getting paragraphs to indent
Am 13.02.2011 um 21:40 schrieb Tom:
My intention is to indent all paragraphs that do not follow whitespace.
However, my code isn't making that happen. What am I doing wrong?
\definestartstop[dedication][style
Am 31.01.2011 um 10:21 schrieb Reviczky, Adam:
\setuphead[title][style=\Words]
\starttext
\title{What to capitalize in start case}
\stoptext
Thanks, yes, I've seen that, but I was just wondering if this can be done in
a paragraph, outside a section element.
\definestartstop[TitleCase
\definestartstop[TitleCase][style=\Words]
\starttext
\Words{What to capitalize in start case}\par
\TitleCase{What to capitalize in start case}\par
\startTitleCase What to capitalize in start case\stopTitleCase
\stoptext
Excellent, thank you Wolfgang!
Adam
configuration. Example:
\setupstartstop[CSnippetComment][color=blue]
So you can simplify t-pretty-c.mkiv:
\unprotect
\setupcolor[ema]
\definestartstop
[CSnippetName]
[\c!color=darkgoldenrod,
\c!style=]
and so on...
Peter
--
Contact information: http://pmrb.free.fr/contact
a standard interface for color and style
configuration. Example:
\setupstartstop[CSnippetComment][color=blue]
So you can simplify t-pretty-c.mkiv:
\unprotect
\setupcolor[ema]
\definestartstop
[CSnippetName]
[\c!color=darkgoldenrod,
\c!style=]
I have not looked into the new verbatim code yet
don't need that. There is already a standard interface for color
and style
configuration. Example:
\setupstartstop[CSnippetComment][color=blue]
So you can simplify t-pretty-c.mkiv:
\unprotect
\setupcolor[ema]
\definestartstop
[CSnippetName]
[\c!color=darkgoldenrod,
\c!style=]
I have
and Cfuncnbound to
use custom color scheme.
You don't need that. There is already a standard interface for color
and style
configuration. Example:
\setupstartstop[CSnippetComment][color=blue]
So you can simplify t-pretty-c.mkiv:
\unprotect
\setupcolor[ema]
\definestartstop
[CSnippetName]
[\c!color
You don't need that. There is already a standard interface for color and style
configuration. Example:
\setupstartstop[CSnippetComment][color=blue]
So you can simplify t-pretty-c.mkiv:
\unprotect
\setupcolor[ema]
\definestartstop
[CSnippetName]
[\c!color=darkgoldenrod
On Tue, Dec 07 2010, Renaud AUBIN wrote:
So you can simplify t-pretty-c.mkiv:
\unprotect
\setupcolor[ema]
\definestartstop
[CSnippetName]
[\c!color=darkgoldenrod,
\c!style=]
and so on...
OK, but anyway, I have to protect the color names (to prevent
Wolfgang Schuster:
Am 29.11.2010 um 10:29 schrieb Steffen Wolfrum:
Hi,
please have a look at this:
\definestartstop[redimportant][before={\startcolor[red]\bf\penalty1\hskip\zeropoint},after={\/\stopcolor}]
\definestartstop
[redimportant]
[style=bold,
color=red,
after
Am 29.11.2010 um 14:39 schrieb Wolfgang Schuster:
Am 29.11.2010 um 10:29 schrieb Steffen Wolfrum:
Hi,
please have a look at this:
\definestartstop[redimportant][before={\startcolor[red]\bf\penalty1\hskip\zeropoint},after={\/\stopcolor}]
\definestartstop
[redimportant
Hi,
please have a look at this:
\definestartstop[redimportant][before={\startcolor[red]\bf\penalty1\hskip\zeropoint},after={\/\stopcolor}]
\starttext
This is normal, but this\startredimportant one\startfootnote at least
\stopfootnote is bold\stopredimportant style.
This is normal
Am 29.11.2010 um 10:29 schrieb Steffen Wolfrum:
Hi,
please have a look at this:
\definestartstop[redimportant][before={\startcolor[red]\bf\penalty1\hskip\zeropoint},after={\/\stopcolor}]
\definestartstop
[redimportant]
[style=bold,
color=red,
after=\autoinsertnextspace
switching).
Bold in itself is not structure so best tag it as (e.g.) important:
\setupbackend[export=yes]
\definestartstop[important][style=bold]
\starttext
This is second example.
This time we try to use font switching mechanism:
This is normal, but this \important{one is bold}. Normal
it as (e.g.) important:
\setupbackend[export=yes]
\definestartstop[important][style=bold]
\starttext
This is second example.
This time we try to use font switching mechanism:
This is normal, but this \important{one is bold}. Normal again.
\stoptext
Is it true that 'backend' only output
environment for it:
\definestartstop
[arabic]
[before={\startbaselinecorrection\setupinterlinespace[line=5ex]\arabpar},
after=\stopbaselinecorrection]
\startarabic
هذه رسالة جامعة مانعة ألفه الشيخ الفاضل النحرير هذه رسالة جامعة مانعة ألفه
الشيخ الفاضل النحرير هذه رسالة جامعة مانعة ألفه
and
everyone else on the list, where would I have systematically found a discussion
of RtL feaures such as rule=right? Or are there any preexisting example files
of complicated Arabic that I could study and learn from?
Kind regards,
Talal
p.s. Thanks for the \definestartstop environment. As you
I don't usually define macros like that (isn't that more of a
\definestartstop kind of deal?).
On Wed, Sep 15, 2010 at 10:38 PM, Aditya Mahajan adit...@umich.edu wrote:
On Wed, 15 Sep 2010, John Haltiwanger wrote:
Apologies, as a very significant aspect of this process was omitted
On Wed, 15 Sep 2010, John Haltiwanger wrote:
I don't usually define macros like that (isn't that more of a
\definestartstop kind of deal?).
\definestartstop just provides some syntax sugar around that.
From core-sys.mkiv
\def\dododefinestartstop[#1][#2]%
{
\setvalue{\e!start#1
?
Thanks very much, Jörg
-minimal example
\definestartstop[Questions][before={\setupbackground[background=color,backgroundcolor=lightgray,corner=round,frame=on,framecorner=round,framecolor=red,rulethickness=2pt,topoffset=0.25cm,bottomoffset=0.25cm,leftoffset=0.5cm
important:start
\starttextbackground[zhu]
\stopsetups
\startsetups important:stop
\endgraf
\stoptextbackground
\stopsetups
\definestartstop
[important]
[before=\setups{important:start},
after=\setups{important:stop}]
\abbreviation [NPV] {\math{\text{NPV}}} {full form}
\starttext
this looks
\startsetups important:stop
\endgraf
\stoptextbackground
\stopsetups
\definestartstop
[important]
[before=\setups{important:start},
after=\setups{important:stop}]
\starttext
this looks normal $x$.
\startimportant
this uses the environment definetextbackground \mathematics{x}.
\stopimportant
\stoptextbackground
\stopsetups
\definestartstop
[important]
[before=\setups{important:start},
after=\setups{important:stop}]
\starttext
\dorecurse{1}{\input knuth\endgraf}
\startimportant
\dorecurse{2}{\input bryson\endgraf}
\stopimportant
\dorecurse{1}{\input knuth
][style={sc}, after={\blank}]
\def\hangover{\hangafter=1\hangindent=1.5pc\raggedright}
\definestartstop[bibliography][
before={
\page[no]
\indenting[never]
\startalignment[left]
\BibTitle{bibliography}
\stopalignment
\bgroup\appendtoks\hangover\to\everypar
},
after
to unravel it.
\setupheadertexts[myslide][]
\setupheader[state=start]
\setuppagenumbering[state=stop]
\definehead[myslide][subsubsection]
\setuphead[myslide][style=slanted,placehead=no,page=yes]
\definestartstop[slide][
before={\page\startalignment[right,nothyphenated,hanging]\tf
that does not work?
\definestartstop
[exdent]
[before={\startnarrower[left]\setupindenting[-\leftskip,yes]},
after=\stopnarrower]
\starttext
\startexdent
\dorecurse{10}{Para 1: Some random text to fill space}
\dorecurse{10}{Para 2: Some random text to fill space}
\dorecurse{10}{Para 3
on blank pages
\def\ChapterTitle#1#2{
\centerline{\switchtobodyfont[ChapterStart,18pt]{\ss\bf #2}}
\godown[.5in]}
\setuphead[chapter]
[command= \ChapterTitle,textstyle=bold,header=empty,footer=empty,
page=mychapterpagebreak,
numbercommand={\switchtobodyfont[big]{\ss\sl}}]
\definestartstop
--
\setupoutput[dvi]
\setupwhitespace[1.2em]
\definestartstop[verse]
[command={%
\setupwhitespace[1.2em]%
},style={%
\raggedright\nohyphens%
},before={%
\setuplines[indenting={yes,-2em,first}]%
\setupnarrower[left=2em
of the paragraph.
That's the example, which does not work (all lines are indented)
%-- snip ---
\definestartstop[verse]
[command={\setupwhitespace[1.2em]}% % follow the grid
,before={\setupindenting[-2em,yes]% % trial to construct
]
\setuplayout[grid=tolerant]
\definestartstop[quotetest]
[before={\startnarrower\switchtobodyfont[8pt]\setuplocalinterlinespace[line=16pt]\setupwhitespace[0pt]\setupindenting[0em,yes]},after=\stopnarrower]
\starttext
\input tufte \par
\startquotetest
\input tufte \par
\stopquotetest
\stoptext
][serif][times][default]
\setupbodyfont[postscript,20pt]\setupinterlinespace[line=12pt]\lineskiplimit-\maxdimen
\setuplayout[grid=tolerant]
\definestartstop[quotetest]
[before={\startnarrower\switchtobodyfont[8pt]\setupinterlinespace[line=7pt]\lineskiplimit-\maxdimen},after=\stopnarrower]
\starttext
---
\usetypescript[postscript]
\definetypeface[postscript][rm][serif][times][default]
\setupbodyfont[postscript,20pt]\setupinterlinespace[line=12pt]\lineskiplimit-\maxdimen
\setuplayout[grid=tolerant]
\definestartstop[quotetest]
[before={\startnarrower\switchtobodyfont[8pt]\setupinterlinespace
]
\definestartstop[quotetest]
[before={\startnarrower\switchtobodyfont[8pt]\setupinterlinespace[line=7pt]\lineskiplimit-\maxdimen},after=\stopnarrower]
Hi Steffen,
this works, but the \startlocal...\stoplocal combination is not used
very often in 'the source' (so there must be a better way
Hi,
does someone know what's going wrong here?
\definestartstop[Literature] [before={\startcolumns[n=1]},after={\stopcolumns}]
\define\Colorit%
{\groupedcommand{\color[blue]\em}\/}
\starttext
This works:
test \Colorit{color} text.
This dont't:
\startLiterature
test \Colorit{color} text
On Fri, 19 Feb 2010, Steffen Wolfrum wrote:
Hi,
does someone know what's going wrong here?
\definestartstop[Literature] [before={\startcolumns[n=1]},after={\stopcolumns}]
\define\Colorit%
{\groupedcommand{\color[blue]\em}\/}
\starttext
This works:
test \Colorit{color} text.
This dont't
in the following command:
\definestartstop[example][style={\tfx}, before={\blank[small]},
after={\blank[small]}, inbetween={\setupinterlinespace[big]}]
I can write
before={\blank[small]\setupinterlinespace[big]},
after={\setupinterlinespace[medium]\blank[small]}
but in this way I hard-code
Hello Wolfgang
\definestartstop
[example]
[before={\blank[small]},
after={\blank[small]},
style=\tfx,
commands={\setupinterlinespace[big]}]
Thank you, Wolfgang, but the 'commands' tag seems to not have no effect
at all. Even when explicit value provided.
\setupinterlinespace
Am 14.02.10 15:05, schrieb Vyatcheslav Yatskovsky:
Thank you, Wolfgang, but the 'commands' tag seems to not have no
effect at all. Even when explicit value provided.
\definestartstop
[example]
[before={\blank[small]},
after={\blank[small]},
style=\tfx,
commands
' tag seems to not have no
effect at all. Even when explicit value provided.
\definestartstop
[example]
[before={\blank[small]},
after={\blank[small]},
style=\tfx,
commands={\setupinterlinespace[line=12pt]}]
It works only when you end the paragraph before \startexample but it's
to
make this setting 'global'?
2) The inbetween key does not work in the following command:
\definestartstop[example][style={\tfx}, before={\blank[small]},
after={\blank[small]}, inbetween={\setupinterlinespace[big]}]
I can write
before={\blank[small]\setupinterlinespace[big]},
after
is \definestartstop, e.g.
\definestartstop[example][style=\tfx]
this creates not only the command \example but also a example
environment where you get a smaller font.
Wolfgang
___
If your question is of interest to others
argument a different behaviour in titles etc.
A third way is \definestartstop, e.g.
\definestartstop[example][style=\tfx]
this creates not only the command \example but also a example
environment where you get a smaller font.
posting amateur solutions brings always the pro´s
the
linenumbering-environment. I tried already to play with \setuplinenumbering
but there is no ‘before’-key in the setup and ‘command’ only applies to the
numbers.
Define your own environment.
\definestartstop
[Linenumbering]
[before={\setupindenting[no]\startlinenumbering},
after
clear, I want indenting but not inside the
linenumbering-environment. I tried already to play with \setuplinenumbering
but there is no ‘before’-key in the setup and ‘command’ only applies to the
numbers.
Define your own environment.
\definestartstop
[Linenumbering]
[before
=inner]
\definefloat[Bigtable][Bigtables][table]
\setupfloat[Bigtable][location=inner]
\definefloat[vignette][figure]
\setupfloat[vignette][leftmargindistance=-
\outermargintotal,rightmargindistance=-\outermargintotal,default=
{outer,none,low}]
% \setup[vignette][number=no]
\definestartstop[Story
-- snip
\setupcolors[state=start]
\setupinteraction[state=start]
%
\definestartstop[Vorgang] [before={\bgroup \startlines},
after={\stoplines \egroup \blank}] % Mark II and Mark IV
%
%\definestartstop[Vorgang] [before={\bgroup \startlines},
after={\stoplines \egroup \vspacing[medium,strong]
=]
\setuptitle
[\c!author,\c!date]
[\c!style=\tfa,
\c!color=]
\setuptitle
[\c!title=,
\c!author=,
\c!date=\currentdate]
% define abstracts
\definestartstop
[abstract]
[before={\midaligned{\bf Abstract}
\startnarrower[2*middle]},
after={\stopnarrower
\blank
[utf]
\mainlanguage[pt]
\setuppapersize[a5][a5]
\usetypescript[gentium]
\setupbodyfont[gentium,20pt]
\setupindenting[small]
\indenting[yes]
\setupwhitespace[small]
\definestartstop [verse]
[before=\vbox\bgroup\startlines,
after=\stoplines\egroup]
\defineselector
]
\definestartstop
[TitlePageLayout]
[before={\setuplayout[TitlePageLayout]},
after={\page[left]\setuplayout[reset]}]
%-- Page numbering ---
\setuppagenumbering [alternative=doublesided,
location={footer,right}, % where should
\definelayout[TitlePageLayout][header=0pt,
footer=0pt,
backspace=0.25\paperwidth,
topspace=0.25\paperheight]
\definestartstop
[TitlePageLayout]
[before={\setuplayout[TitlePageLayout]},
after={\page[left]\setuplayout[reset
to have any effect on the indenting.
\definestartstop
[exdent]
[before={\startnarrower[left]\setupindenting[-\leftskip,yes]},
after=\stopnarrower]
\setuppublicationlist[before={\startexdent},after={\stopexdent}]
or
\startexdent
\placepublicationlist
\stopexdent
Thanks,
Mike
Am 07.04.2009 um 04:18 schrieb Yanrui Li:
\definestartstop
[underline]
[before={\starttextbackground[underline]},
after=\stoptextbackground]
You don't need this, \definetextbackground creates start/stopunderline
itself.
Wolfgang
:= currentpicture shifted (0,-1.2*StrutDepth) ;
setbounds currentpicture to p ;
\stopuseMPgraphic
\definetextbackground[underline]
[location=paragraph,alternative=1,background=,frame=off]
\definestartstop
[underline]
[before={\starttextbackground[underline]},
after=\stoptextbackground
:= currentpicture shifted (0,-1.2*StrutDepth) ;
setbounds currentpicture to p ;
\stopuseMPgraphic
\definetextbackground[underline]
[location=paragraph,alternative=1,background=,frame=off]
\definestartstop
[underline]
[before={\starttextbackground[underline]},
after=\stoptextbackground
effect. Am I doing something wrong, or is there another
way to do this?
\definestartstop
[leftpage]
[before={\page[yes,left]}]
\definestartstop
[rightpage]
[before={\page[yes,right]}]
\starttext
\startleftpage
...
\stopleftpage
\startrightpage
...
\stoprightpage
\stoptext
Wolfgang
Wolfgang Schuster wrote:
\definestartstop
[leftpage]
[before={\page[yes,left]}]
\definestartstop
[rightpage]
[before={\page[yes,right]}]
\starttext
\startleftpage
...
\stopleftpage
\startrightpage
...
\stoprightpage
\stoptext
Wolfgang
Wolfgang,
Thanks for the solution
\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
[SerifBold] [Ezra SIL] [features=hebrew]
\definefontsynonym [SerifBoldItalic] [Ezra SIL] [features=hebrew]
\stoptypescript
2b. What does serif mean?
3. I don't get the defining of the directional commands either.
4. I absolutely don't get what I'm doing here
\definestartstop
[hebrewpar]
[commands
]
\stoptypescript
2b. What does serif mean?
3. I don't get the defining of the directional commands either.
4. I absolutely don't get what I'm doing here
\definestartstop
[hebrewpar]
[commands=\Hebrew\HebrewParDir]
\define[1]\RT
{{\Hebrew\HebrewTextDir#1}}
\startenvironment heb-sty
page
runs off the bottom.
Textbackground seems more appropriate, so I tried
\definetextbackground [example]
[location=paragraph,backgroundcolor=middlegray,frame=off]
\definestartstop [example]
[before={\starttextbackground[example]},after=\stoptextbackground]
but this does not work. I tried
parm is: \myownparm
\stoplines
\stopCenteredText
Not with framedtext but you define your environment with a optional
argument.
ConTeXt has the command \definestartstop but it did not help in your case,
something like LaTeXs \newenvironment, I wrote a simple version below.
\unprotect
{\blank[line]\setupindenting[yes, medium]#1}
\long\def\letterbody#1%
{{\blank[line]\setupindenting[yes,medium]#1\par}}
You could also write this as environment with
\definestartstop
[letterbody]
[before={\blank[line]},
commands={\setupindenting[yes,medium]}]
and write in your document
201 - 300 of 463 matches
Mail list logo