Re: [NTG-context] Bug in export with \definehighlight

2011-10-11 Thread Aditya Mahajan
\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

Re: [NTG-context] Bug in export with \definehighlight

2011-10-11 Thread Aditya Mahajan
\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

Re: [NTG-context] Framed Text Split Over Multiple Pages

2011-10-05 Thread Kip Warner
? \definestartstop [SomeFramedText] [before={ \crlf \setupbackground[frame=on, before=\blank, after=\blank, corner=round, topoffset=0.5cm, leftoffset

[NTG-context] Framed Text Split Over Multiple Pages

2011-10-04 Thread Kip Warner
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

Re: [NTG-context] How to achieve a LaTeX-center-like thing

2011-09-06 Thread Wolfgang Schuster
not to put the blanks manually? \definestartstop [centered] [before={\blank[small]}, after={\blank[small]}, commands={\setupalign[middle]}] \starttext … \startcentered … \stopcentered … \stoptext Wolfgang

Re: [NTG-context] Text Colour

2011-08-31 Thread Wolfgang Schuster
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

[NTG-context] How to prevent line split in typing block when using custom command?

2011-08-16 Thread Vladimir Lomov
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

Re: [NTG-context] How to prevent line split in typing block when using custom command?

2011-08-16 Thread Wolfgang Schuster
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

Re: [NTG-context] Missing font switch in 'export=yes'

2011-08-15 Thread Hans Hagen
? \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

Re: [NTG-context] Missing font switch in 'export=yes'

2011-08-15 Thread Aditya Mahajan
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

Re: [NTG-context] Missing font switch in 'export=yes'

2011-08-15 Thread Vladimir Lomov
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

Re: [NTG-context] Fw: A question about layers

2011-07-17 Thread Wolfgang Schuster
=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

Re: [NTG-context] itemize textstyle

2011-07-07 Thread Wolfgang Schuster
\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

Re: [NTG-context] itemize textstyle

2011-07-07 Thread Christian
\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

Re: [NTG-context] Getting framed text to page break

2011-07-07 Thread Kip Warner
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

Re: [NTG-context] Getting framed text to page break

2011-07-06 Thread Wolfgang Schuster
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

[NTG-context] marginal material in Arabic, tei/xml context mkiv

2011-06-03 Thread Jon Crump
\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

[NTG-context] alternating items in an itemization

2011-05-23 Thread Jesse Alama
][backgroundcolor=green] \definetextbackground[mary-background][backgroundcolor=red] \definestartstop[dialogue] \defineparagraphs[john][before={\starttextbackground[john-background]},after={\stoptextbackground}] \defineparagraphs[mary][before={\starttextbackground[mary-background]},after

Re: [NTG-context] Annotation and background color

2011-05-08 Thread Otared Kavian
. 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

Re: [NTG-context] Annotation and background color

2011-05-07 Thread Wolfgang Schuster
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

[NTG-context] dashed underbar

2011-04-05 Thread Daniel Schopper
{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

Re: [NTG-context] dashed underbar

2011-04-05 Thread Wolfgang Schuster
\definestartstop[dashuline][before={\dostartdashuline},after={\dostopdashuline}] \def\dostartdashuline{% \startpositionoverlay{backgraphics}% \setMPpositiongraphic{b:uline:\the\dashulinecounter}{mpos:par}{self=uline:\the\dashulinecounter}% \stoppositionoverlay \fpos

Re: [NTG-context] rscale (only for integers?)

2011-04-01 Thread Steffen Wolfrum
] \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

[NTG-context] MLA Workscited example no longer works

2011-03-24 Thread John Haltiwanger
? % ~ 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

Re: [NTG-context] Macro for acronyms

2011-03-19 Thread Wolfgang Schuster
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

Re: [NTG-context] Macro for acronyms

2011-03-18 Thread Aditya Mahajan
: \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

Re: [NTG-context] Macro for acronyms

2011-03-18 Thread Cecil Westerhof
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

Re: [NTG-context] Macro for acronyms

2011-03-18 Thread Aditya Mahajan
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

Re: [NTG-context] Macro for acronyms

2011-03-18 Thread Cecil Westerhof
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

Re: [NTG-context] Making all bold faced text colored?

2011-03-11 Thread Hans Hagen
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

Re: [NTG-context] Making all bold faced text colored?

2011-03-11 Thread Alasdair McAndrew
: \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

[NTG-context] Chapter Command causes ToC to not display correctly

2011-02-14 Thread Tom
=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

Re: [NTG-context] Using fonts from multiple families

2011-02-13 Thread Wolfgang Schuster
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

Re: [NTG-context] Using fonts from multiple families

2011-02-13 Thread 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 of paragraph of text. Using a frame seems like

Re: [NTG-context] Using fonts from multiple families

2011-02-13 Thread Wolfgang Schuster
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

[NTG-context] Getting paragraphs to indent

2011-02-13 Thread Tom
] [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

Re: [NTG-context] Getting paragraphs to indent

2011-02-13 Thread Wolfgang Schuster
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

Re: [NTG-context] Getting paragraphs to indent

2011-02-13 Thread Tom
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

Re: [NTG-context] Feature request: Title Case/Start Case

2011-01-31 Thread Wolfgang Schuster
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

Re: [NTG-context] Feature request: Title Case/Start Case

2011-01-31 Thread Reviczky, Adam
\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

[NTG-context] colors for pretty-printing (was: Re: pret-c.lua - v-c.lua)

2010-12-07 Thread Peter Münster
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

Re: [NTG-context] colors for pretty-printing (was: Re: pret-c.lua - v-c.lua)

2010-12-07 Thread Aditya Mahajan
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

Re: [NTG-context] colors for pretty-printing

2010-12-07 Thread Hans Hagen
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

Re: [NTG-context] colors for pretty-printing

2010-12-07 Thread Aditya Mahajan
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

Re: [NTG-context] colors for pretty-printing

2010-12-07 Thread Renaud AUBIN
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

Re: [NTG-context] colors for pretty-printing

2010-12-07 Thread Peter Münster
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

Re: [NTG-context] next space (problematic example!)

2010-12-04 Thread Steffen Wolfrum
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

Re: [NTG-context] next space (problematic example!)

2010-12-03 Thread Steffen Wolfrum
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

[NTG-context] next space

2010-11-29 Thread Steffen Wolfrum
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

Re: [NTG-context] next space

2010-11-29 Thread 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=\autoinsertnextspace

Re: [NTG-context] Purpose of backend (export=yes)

2010-11-10 Thread Vladimir Lomov
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

Re: [NTG-context] Purpose of backend (export=yes)

2010-11-09 Thread Hans Hagen
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

Re: [NTG-context] footnotes when using RtL (Arabic)

2010-10-05 Thread Wolfgang Schuster
environment for it: \definestartstop [arabic] [before={\startbaselinecorrection\setupinterlinespace[line=5ex]\arabpar}, after=\stopbaselinecorrection] \startarabic هذه رسالة جامعة مانعة ألفه الشيخ الفاضل النحرير هذه رسالة جامعة مانعة ألفه الشيخ الفاضل النحرير هذه رسالة جامعة مانعة ألفه

Re: [NTG-context] footnotes when using RtL (Arabic)

2010-10-05 Thread Talal Al-Azem
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

Re: [NTG-context] HOWTO: Typesetting Poetry in ConTeXt

2010-09-15 Thread John Haltiwanger
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

Re: [NTG-context] HOWTO: Typesetting Poetry in ConTeXt

2010-09-15 Thread Aditya Mahajan
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

Re: [NTG-context] background, mkii vs. mkiv

2010-09-10 Thread Jörg Hagmann
? 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

Re: [NTG-context] abbreviations as macros (Aditya Mahajan)

2010-08-08 Thread Armin Varmaz
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

Re: [NTG-context] font size in math mode

2010-07-27 Thread Armin Varmaz
\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

Re: [NTG-context] width of definetextbackground

2010-07-23 Thread varmaz
\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

Re: [NTG-context] URLs [Re: \hyphenatedurl and the '%' character]

2010-06-03 Thread Otared Kavian
][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

[NTG-context] Difference in whitespace around section head from mkII to mkIV

2010-06-01 Thread Adam Fuller
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

Re: [NTG-context] Hanging indents

2010-04-05 Thread Aditya Mahajan
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

Re: [NTG-context] Hanging indents

2010-04-05 Thread Tom
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

Re: [NTG-context] Hanging indent in startstoplines for poems

2010-03-30 Thread Torsten Suhling
-- \setupoutput[dvi] \setupwhitespace[1.2em] \definestartstop[verse] [command={% \setupwhitespace[1.2em]% },style={% \raggedright\nohyphens% },before={% \setuplines[indenting={yes,-2em,first}]% \setupnarrower[left=2em

[NTG-context] Hanging indent in startstoplines for poems

2010-03-29 Thread Torsten Suhling
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

[NTG-context] how to setup local interlinespace

2010-03-11 Thread Steffen Wolfrum
] \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

[NTG-context] how to set \lineskiplimit-\maxdimen

2010-03-11 Thread Steffen Wolfrum
][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

Re: [NTG-context] how to set \lineskiplimit-\maxdimen

2010-03-11 Thread Peter Rolf
--- \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

Re: [NTG-context] how to set \lineskiplimit-\maxdimen

2010-03-11 Thread Peter Rolf
] \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

[NTG-context] \groupedcommand missing bracket

2010-02-19 Thread Steffen Wolfrum
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

Re: [NTG-context] \groupedcommand missing bracket

2010-02-19 Thread Aditya Mahajan
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

Re: [NTG-context] Two interline space setup troubles

2010-02-14 Thread Wolfgang Schuster
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

Re: [NTG-context] One interline space setup trouble

2010-02-14 Thread Vyatcheslav Yatskovsky
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

Re: [NTG-context] One interline space setup trouble

2010-02-14 Thread Wolfgang Schuster
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

Re: [NTG-context] One interline space setup trouble

2010-02-14 Thread Vyatcheslav Yatskovsky
' 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

[NTG-context] Two interline space setup troubles

2010-02-13 Thread Vyatcheslav Yatskovsky
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

Re: [NTG-context] Example markup

2010-02-12 Thread Wolfgang Schuster
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

Re: [NTG-context] Example markup

2010-02-12 Thread Bernhard Rosensteiner
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

Re: [NTG-context] Indent after \startline[…]

2009-12-16 Thread Wolfgang Schuster
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

Re: [NTG-context] Indent after \startline[…]

2009-12-16 Thread Andreas Harder
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

[NTG-context] Strange Behaviour for toc

2009-10-12 Thread Martin Scholz
=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

[NTG-context] index and LuaTeX

2009-09-11 Thread Bernd Militzer
-- 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]

[NTG-context] Wiki recepy for Document Titles does not work

2009-06-26 Thread Gerben Wierda
=] \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

[NTG-context] Is this an encoding problem?

2009-05-31 Thread Maurí­cio
[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

Re: [NTG-context] re-posting example of header at page bottom

2009-05-20 Thread Jos van Gisbergen
] \definestartstop [TitlePageLayout] [before={\setuplayout[TitlePageLayout]}, after={\page[left]\setuplayout[reset]}] %-- Page numbering --- \setuppagenumbering [alternative=doublesided, location={footer,right}, % where should

Re: [NTG-context] header at page bottom example

2009-05-19 Thread Jos van Gisbergen
\definelayout[TitlePageLayout][header=0pt, footer=0pt, backspace=0.25\paperwidth, topspace=0.25\paperheight] \definestartstop [TitlePageLayout] [before={\setuplayout[TitlePageLayout]}, after={\page[left]\setuplayout[reset

[NTG-context] Publication list indenting

2009-05-18 Thread Michael Bynum
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

Re: [NTG-context] How to get the number of lines of a paragraph?

2009-04-07 Thread Wolfgang Schuster
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

Re: [NTG-context] How to get the number of lines of a paragraph?

2009-04-06 Thread Yanrui Li
:= 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

Re: [NTG-context] How to get the number of lines of a paragraph?

2009-04-06 Thread Wei-Wei Guo
:= 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

Re: [NTG-context] Opposite Blocks or Spread Based Layouts

2009-03-16 Thread Wolfgang Schuster
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

Re: [NTG-context] Opposite Blocks or Spread Based Layouts

2009-03-16 Thread Corin Royal Drummond
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

Re: [NTG-context] A few minor questions

2009-03-10 Thread Taco Hoekwater
\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

Re: [NTG-context] A few minor questions (Taco Hoekwater)

2009-03-10 Thread Taco Hoekwater
} 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

Re: [NTG-context] XeTeX and/or LuaTeX?

2009-01-31 Thread J.A.J. Pater
[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

Re: [NTG-context] XeTeX and/or LuaTeX?

2009-01-30 Thread J.A.J. Pater
] \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

Re: [NTG-context] backgrounds: help needed

2009-01-27 Thread Thomas Floeren
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

Re: [NTG-context] Centering a defined text frame

2009-01-26 Thread Bart C. Wise
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

Re: [NTG-context] setupindenting

2009-01-21 Thread Wolfgang Schuster
{\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

<    1   2   3   4   5   >