[NTG-context] references

2011-02-11 Thread Hans Hagen
[definitions] \starttext \chapter[one]{One} \typebuffer[definitions] \startbuffer \PageOne[two] \PageTwo[two] \PageThree[two] \PageFour[two] \at{(}{)}[two] \at{!}[two] \at{page}[two] \at[two] \stopbuffer \typebuffer \startlines \getbuffer \stoplines \chapter[two]{Two} \typebuffer[definitions

Re: [NTG-context] prevent gobbling of spaces when omitting optional argument

2011-01-29 Thread Wolfgang Schuster
]% {[#1:#2]} \def\nodoone[#1]% {[#1]} % \two, \two{…} and \two{…} (no spaces between “{}{}” allowed) \def\two {\dodoublegroupempty\dotwo} \def\dotwo#1#2% {\ifsecondargument [#1:#2]% \else\iffirstargument [#1]% \else []% \fi\fi} \starttext \startlines \one text

Re: [NTG-context] prevent gobbling of spaces when omitting optional argument

2011-01-29 Thread Florian Wobbe
,refcommand=authoryear] \setupbibtex[database=sample] \starttext \startlines %\cite[hh2010a] % commenting this out does not work \stoplines \citep[, p.\ 1][hh2010a].\par \citep[, p.\ 1][hh2010a] more text.\par \citep[see][, p.\ 1][hh2010a].\par \citep[see][][hh2010a] more text.\par \startlines \cite[hh2010a

Re: [NTG-context] prevent gobbling of spaces when omitting optional argument

2011-01-29 Thread Florian Wobbe
problem: Adding \setupinteraction[state=start] \starttext and\footnote{\one[1]} etc. do not work. Why not? Florian \startlines \one text \one[1] text \one[1][2] text \stoplines \stoptext ___ If your question

Re: [NTG-context] prevent gobbling of spaces when omitting optional argument

2011-01-29 Thread Philipp Gesang
]% {\strictdoifnextoptionalelse{\dodoone[#1]}{\nodoone[#1]}} \def\dodoone[#1][#2]% {[#1:#2]} \def\nodoone[#1]% {[#1]} One more problem: Adding \setupinteraction[state=start] \starttext and\footnote{\one[1]} etc. do not work. Why not? Florian \startlines \one text \one

Re: [NTG-context] Dumb quotes and dashes, globally and in verbatim text

2010-12-21 Thread Philipp A.
2010/12/21 Wolfgang Schuster schuster.wolfg...@googlemail.com Make a example where this occurs, in the following example all dashes are correct in the typing environment with mkii and mkiv. \starttext \startlines - -- --- \stoplines \starttyping - -- --- \stoptyping \stoptext

[NTG-context] Typescript Bodoni Old Fashion

2010-12-03 Thread Philipp Gesang
{% \language[cz] \blank[line] \WORDS{Jenom nad Brnem ne} \blank[line] \startlines \getbuffer[jenomnadbrnemne] \stoplines } \def\partest[#1]{% \section{Ludvík Kundera napsal} {#1\kundera\par} \section{Ernst Mayr wrote} {#1\mayr\par} \section{Stanisław Lem napisał} {#1\lem \lem \lem

[NTG-context] new beta

2010-11-26 Thread Hans Hagen
} \def\TestThree[#whatever][#more]% {this is: #more and #whatever} \def\TestFour[#one]#two% {\def\TestFive[#alpha][#one]% {#one, #two, #alpha}} \starttexdefinition TestSix #oeps here: #oeps \stoptexdefinition \starttext \startlines \TestOne [one] \TestTwo

Re: [NTG-context] new beta

2010-11-26 Thread Willi Egger
% {\def\TestFive[#alpha][#one]% {#one, #two, #alpha}} \starttexdefinition TestSix #oeps here: #oeps \stoptexdefinition \starttext \startlines \TestOne [one] \TestTwo {one} \TestThree[one][two] \TestFour [one]{two} \TestFive [one

Re: [NTG-context] \definenamespace (was: The visual counter module)

2010-11-18 Thread Aditya Mahajan
[test1] \definetwo[test2][something=two] \definetwo[test3][test2] \starttext \startlines \namedtwoparameter{test1}{whatever} \namedtwoparameter{test2}{whatever} \namedtwoparameter{test2}{something} \namedtwoparameter{test3}{something} \stoplines \stoptext This gives one two Why is the value

Re: [NTG-context] problem with t-filter/t-vim

2010-10-19 Thread Aditya Mahajan
between two lines of source is too large. That is by design. Currently, 2context.vim simply adds some markup, and the resutant file is read using \startlines \stoplines \start-stop-lines converts each line to a paragraph. You can try \startsetups vim:setups \setupwhitespace[none] \stopsetups

[NTG-context] \centercolon and friends with PX-fonts

2010-09-18 Thread Andreas Harder
] % OK \starttext \startlines \formula {A \centercolon B} \formula {A \colonminusB} \formula {A \minuscolonB} \formula {A \colonequals B} \formula {A \equalscolon B} \formula {A \colonapprox B} \formula {A \approxcolon B} \formula {A \colonsim B

Re: [NTG-context] \setuplines[space=on] (was: HOWTO: Typesetting Poetry in ConTeXt)

2010-09-16 Thread Philipp Gesang
. In the following example: ···8 \setuplines[space=on] \starttext \startlines A one, two, a one two three four Half a {\em{bee}}, philosophically, must, ipso facto, half not be. But half the bee has got to be, vis a vis its entity. {\bf

[NTG-context] HOWTO: Typesetting Poetry in ConTeXt

2010-09-15 Thread John Haltiwanger
I thought I'd give the mailing list a small change of pace---instead of asking how to do it, I will show you :) The short answer is: \starttext My Concrete Poem \startlines All the whitespace will print ! \stoplines \stoptext However, \startlines

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

2010-09-15 Thread John Haltiwanger
---instead of asking how to do it, I will show you :) The short answer is: \starttext My Concrete Poem \startlines All the whitespace will print ! \stoplines \stoptext However, \startlines..\stoplines is not available when defining a macro. I've

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

2010-09-15 Thread Aditya Mahajan
the mailing list a small change of pace---instead of asking how to do it, I will show you :) The short answer is: \starttext My Concrete Poem \startlines All the whitespace will print ! \stoplines \stoptext However, \startlines..\stoplines

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

2010-09-15 Thread Wolfgang Schuster
Am 16.09.2010 um 00:38 schrieb Aditya Mahajan: However, \startlines..\stoplines is not available when defining a macro. What do you mean by that these macros are not available? Doesn't the following work? (untested, but I will be really surprised if it doesn't work) \def\startpoety

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

2010-09-15 Thread John Haltiwanger
is: \starttext My Concrete Poem \startlines All the whitespace will print ! \stoplines \stoptext However, \startlines..\stoplines is not available when defining a macro. What do you mean by that these macros are not available? Doesn't the following

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

2010-09-15 Thread John Haltiwanger
What Wolfgange said :) On Wed, Sep 15, 2010 at 10:42 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 16.09.2010 um 00:38 schrieb Aditya Mahajan: However, \startlines..\stoplines is not available when defining a macro. What do you mean by that these macros

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

2010-09-15 Thread Aditya Mahajan
On Thu, 16 Sep 2010, Wolfgang Schuster wrote: Am 16.09.2010 um 00:38 schrieb Aditya Mahajan: However, \startlines..\stoplines is not available when defining a macro. What do you mean by that these macros are not available? Doesn't the following work? (untested, but I will be really

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

2010-09-15 Thread John Haltiwanger
: Am 16.09.2010 um 00:38 schrieb Aditya Mahajan: However, \startlines..\stoplines is not available when defining a macro. What do you mean by that these macros are not available? Doesn't the following work? (untested, but I will be really surprised if it doesn't work) \def\startpoety

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

2010-09-15 Thread Aditya Mahajan
the divine comedy. Don't ask how I figured out the right value of the inbetween key :) \setupindenting [medium,yes] \setuplines[inbetween={\crlf\par\setupindenting[next]\testpage[3]},indenting=next] \starttext \startlines Midway upon the journey of our life I found myself within a forest dark

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

2010-09-15 Thread John Haltiwanger
\startlines Midway upon the journey of our life I found myself within a forest dark, For the straightforward pathway had been lost. Ah me! how hard a thing it is to say What was this forest savage, rough, and stern, Which in the very thought renews the fear. So bitter is it, death is little more

Re: [NTG-context] Recursive printing letters using Letters module...

2010-08-29 Thread Wolfgang Schuster
is that \startlines or \starttyping can't be used anymore inside of a letter. The second method you can use is to drop the letter environment and set the values for the address and name with \setupletter and store the content with the lettercontent environment (just a names buffer). The letter itself

Re: [NTG-context] Recursive printing letters using Letters module...

2010-08-29 Thread Jaroslav Hajtmar
}, toaddress={\street\\\Zipcode\ \Town}, ...] This, I came to the conclusion … \Mygreeting \stopletter ...} The disadvantage is that \startlines or \starttyping can't be used anymore inside of a letter. The second method you can use is to drop the letter environment and set

Re: [NTG-context] polish sorting

2010-08-19 Thread Hans Hagen
Hi, \mainlanguage[pl] \starttext \placeregister[index][criterium=text,n=1] \startlines aaa\index{aaa} Aaa\index{Aaa} aab\index{aab} Aab\index{Aab} \stoplines \stoptext typesets a aaa 1 Aaa 1 aab 1 Aab 1 aaa aab Aaa Aab so, what order do you expect here

Re: [NTG-context] horizontal alignment

2010-07-11 Thread Wolfgang Schuster
in the next: \def\SKIP {\doglobal\increment\SKIPcount \xypos{NP:\SKIPcount}% \par\hskip\dimexpr\MPx{NP:\SKIPcount}-\MPx{text:\realfolio}\relax} \def\LASTSKIP {\par\hskip\dimexpr\MPx{NP:\SKIPcount}-\MPx{text:\realfolio}\relax} \starttext \startlines here we now see you ~~ already in grief

Re: [NTG-context] horizontal alignment

2010-07-09 Thread Michael Murphy
% \indentl=\wd0% } \def\addtosavewidth#1{% \setbox0=\hbox{#1}% \mindent\copy0% \advance\indentl by \wd0% } \def\mindent{\hskip\indentl} \starttext \startlines here we now see you ~~ already in grief as you see ~~ yourselves ~~ as the last of the lasts \savewidth{we are mirrors of your

[NTG-context] horizontal alignment

2010-07-08 Thread Michael Goerz
into an \mbox to avoid a line break. As an example: \startlines here we now see you ~~ already in grief as you see ~~ yourselves ~~ as the last of the lasts we are mirrors of your consciousness \mbox{\phantom{we are mirrors of your consciousness} as you see the end} and you see

[NTG-context] Mixing math fonts, help ?

2010-06-21 Thread gummybears
] \definefontsynonym [MathSymbol] [Asana-Math] \definefontsynonym [MathRoman][ComputerModernMath-Roman] \definefontsynonym [MathExtension][ComputerModernMath-Extension] \stoptypescript \usetypescript[math] \starttext \startlines 0x222B normal integral $\int_{a}^{b}$ 0x222C

Re: [NTG-context] Anyone ?? (Math symbols missing)

2010-05-24 Thread Aditya Mahajan
between ints, see below): \usetypescript[asana] \setupbodyfont[asana] \starttext \startlines 0x222B normal integral $\int$ 0x222C double integral $\iint$ 0x222D triple integral $\iiint$ 0x222E contour integral $\oint$ 0x222F surface integral $\oiint$ 0x2230 volume integral $\oiiint

[NTG-context] Sorting the content of \startlines

2010-04-24 Thread Vyatcheslav Yatskovsky
Hello, Is there a way to sort the content of \startlines envinroment by the alphabet? I have a list of songs in arbitrary order, and what to output it in alphabetical one. ex.: \starttext \subject{My set-list} \startcolumns\startlinenumbering\startlines Fly me to the moon Hit the road jack

Re: [NTG-context] Problem with \doifelse testing of UTF-8 chars

2010-04-23 Thread Hans Hagen
% \doprocessseplista,b,c\relax % \def\test#1{[#1]} % \startlines % \processseplist{,}\test ,2,,\relax % \processseplist{,}\test ,,,44\relax % \processseplist{,}\test ,,33,44\relax % \processseplist{,}\test 11,,33,44\relax % \processseplist{,}\test 1,2,3,4\relax % \stoplines \newtoks\separatedlistdata

Re: [NTG-context] table: vertical distance

2010-04-17 Thread Wolfgang Schuster
Am 17.04.10 11:35, schrieb Wolfgang Werners-Lucchini: Hallo, I have to typeset a division and have two diverent solutions but they both have problems. \setuplines[style=type] \startlines 110011:11=10001 11 ... ~0 \stoplines \stoptext \setuplines[style=type,space=on] \startlines

Re: [NTG-context] code

2010-04-16 Thread R. Bastian
= 4 } } MkII: \setuplines[space=on] \starttext \startlines\tt %\startlines[style=mono] % works only in MkIV {\bf def} ra(): a = 3 b = 4 \stoplines \stoptext Wolfgang ___ 1. I use

Re: [NTG-context] code

2010-04-16 Thread R. Bastian
\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } } MkII: \setuplines[space=on] \starttext \startlines\tt %\startlines[style=mono] % works only in MkIV {\bf def} ra(): a = 3 b = 4 \stoplines \stoptext

Re: [NTG-context] code

2010-04-16 Thread R. Bastian
On Fri, 09 Apr 2010 12:00:05 +0200 Wolfgang Schuster schuster.wolfg...@googlemail.com scribit: \setuplines[space=on] \starttext \startlines\tt %\startlines[style=mono] % works only in MkIV compiled by context (== mak iv ?) \startlines[style=mono] prints [style=mono] {\bf def} ra

Re: [NTG-context] code

2010-04-16 Thread Wolfgang Schuster
Am 16.04.10 23:41, schrieb R. Bastian: %\startlines[style=mono] % works only in MkIV compiled by context (== mak iv ?) \startlines[style=mono] prints [style=mono] Direct setups are now gone because they produced unwanted side effects. What you can in Mark 4 (MkIV) is to define you own

Re: [NTG-context] code

2010-04-09 Thread Wolfgang Schuster
Am 09.04.10 11:20, schrieb R. Bastian: Hello, how to translate in context the following plain tex: \font\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } } MkII: \setuplines[space=on] \starttext \startlines\tt %\startlines[style=mono] % works only

Re: [NTG-context] code

2010-04-09 Thread R. Bastian
= 4 } } MkII: \setuplines[space=on] \starttext \startlines\tt %\startlines[style=mono] % works only in MkIV {\bf def} ra(): a = 3 b = 4 \stoplines \stoptext Wolfgang Thanks Wolfhang. It goes better, but there is still a little bug: {\bf def} inserts a white

Re: [NTG-context] code

2010-04-09 Thread Peter Münster
On Fri, Apr 09 2010, R. Bastian wrote: but remains that every {\bf } introduces a white space; how to force context to make a backspace ? \setuplines[space=on] \starttext \startlines[style=mono] {\bf{}def} ra(): a = 3 b = 4 \stoplines \stoptext Cheers, Peter -- Contact

Re: [NTG-context] code

2010-04-09 Thread luigi scarso
On Fri, Apr 9, 2010 at 5:24 PM, Peter Münster pmli...@free.fr wrote: On Fri, Apr 09 2010, R. Bastian wrote: but remains that every {\bf } introduces a white space; how to force context to make a backspace ? \setuplines[space=on] \starttext \startlines[style=mono] {\bf{}def} ra

Re: [NTG-context] code

2010-04-09 Thread Wolfgang Schuster
Am 09.04.10 13:35, schrieb R. Bastian Thanks Wolfhang. It goes better, but there is still a little bug: {\bf def} inserts a white space in front of the line Compare: {\bf def} ra(): def ra(): a = 3 b = 4 \startlines \bold{def} ra(): ... \stoplines Wolfgang

Re: [NTG-context] temporarily disabling enumeration numbering

2010-04-05 Thread Wolfgang Schuster
\iftypesettinglines % otherwise problems with \type crlf {xxx} \ignorelines % makes footnotes work in \startlines ... \stoplines \fi \ifnotesymbol \dolastnotesymbol \else \unskip\unskip \globallet\lastnotesymbol\dolastnotesymbol

[NTG-context] % prevents linebreaks in \startlines ... \stoplines

2010-04-04 Thread Aditya Mahajan
Hi, Here is an interesting example \starttext \startlines one % two % three % \stoplines \stoptext This gives no linebreaks! Can this be prevented? I doubt it since TeX never sees the \n. In which case, we should call it a feature :-) Aditya

Re: [NTG-context] % prevents linebreaks in \startlines ... \stoplines

2010-04-04 Thread Wolfgang Schuster
Am 04.04.10 21:08, schrieb Aditya Mahajan: Hi, Here is an interesting example \starttext \startlines one % two % three % \stoplines \stoptext This gives no linebreaks! Can this be prevented? I doubt it since TeX never sees the \n. In which case, we should call it a feature :-) \bgroup

[NTG-context] Line numbering in columns

2010-03-31 Thread Vyatcheslav Yatskovsky
Hello, I'm just curious, why line mumbers appear mirrored (on the right side of text) in the rightmost column? \starttext \startcolumns\startlinenumbering\startlines Fly me to the moon Hit the road jack Sway Libertango Sunny Besame mucho (Em) La Bamba Hey-na-na-na Venus (Dm) El Talisman Oye

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

2010-03-30 Thread Torsten Suhling
]% \startnarrower[left]% blockindent only left \startlines% },after={% \stoplines% \stopnarrower% \setuplines[indenting={no}]% must be reseted \endgraf% }] \starttext Three lines, first should be broken: \startverse FIRST---this should

[NTG-context] Hanging indent in startstoplines for poems

2010-03-29 Thread Torsten Suhling
\startnarrower[2em]%% hanging indent \startalignment[flushleft]% % even inter-word-dist. \startlines%% no justification \indenting[first]}% ,after={\stoplines% \stopalignment% \stopnarrower% \endgraf

Re: [NTG-context] URL setup

2010-03-26 Thread Wolfgang Schuster
, color=red] % \goto and \from \setupurl [color=orange] % \url \useURL[149][http://xkcd.com/149/][][I prefer hot dogs.] \useURL[224][http://xkcd.com/224/] \starttext \startlines \goto{In Lua, array indices start from one.}[url(http://www.xkcd.com/163/)] \from[149] \url [224] \stoplines

Re: [NTG-context] URL setup

2010-03-26 Thread Vyatcheslav Yatskovsky
Hi Wolfgang Nice, and your example works. But why mine does not?? \setupinteraction [state=start, color=red] % \goto and \from \setupurl [color=orange] % \url \useURL[149][http://xkcd.com/149/][][I prefer hot dogs.] \useURL[224][http://xkcd.com/224/] \starttext \startlines \goto

Re: [NTG-context] \getfiguredimensions again in mkiv

2010-02-23 Thread Aditya Mahajan
the following example, \setupexternalfigures[location={local,default}] \starttext \getfiguredimensions[cow] \startlines width: \the\dimexpr\figurewidth\relax height: \the\dimexpr\figureheight\relax \stoplines \stoptext In MkII I get, width: 276.03125pt height: 200.75pt In MkIV I get, width

Re: [NTG-context] \getfiguredimensions again in mkiv

2010-02-23 Thread Hans Hagen
On 23-2-2010 19:17, Aditya Mahajan wrote: \setupexternalfigures[location={local,default}] \starttext \getfiguredimensions[cow] \startlines width: \the\dimexpr\figurewidth\relax height: \the\dimexpr\figureheight\relax \stoplines \stoptext hm, i get width: 276.03125pt height: 200.75pt in mkiv

Re: [NTG-context] \getfiguredimensions again in mkiv

2010-02-23 Thread Aditya Mahajan
On Tue, 23 Feb 2010, Hans Hagen wrote: On 23-2-2010 19:17, Aditya Mahajan wrote: \setupexternalfigures[location={local,default}] \starttext \getfiguredimensions[cow] \startlines width: \the\dimexpr\figurewidth\relax height: \the\dimexpr\figureheight\relax \stoplines \stoptext hm, i get

Re: [NTG-context] Formatting numbers in LuaTeX

2010-02-15 Thread Peter Münster
tex.write(s) end \stopluacode \def\calculate#1{% \start \def\Expression{\ctxlua{userdata.filter_expression(#1)}} \def\Result{\ctxlua{userdata.filter_result(#1)}} \calcmath{\Expression=\ctxlua{userdata.result_as_string(\Result)}} \stop } \starttext \startlines \calculate{1+2

Re: [NTG-context] Formatting numbers in LuaTeX

2010-02-15 Thread Andreas Harder
)}} \stop } \starttext \startlines \calculate{1+2} \calculate{3/2-1} \calculate{3*2} \calculate{sqrt(2)} \calculate{2*π} \stoplines \stoptext I've noticed that one can even use such things as \calculate{3^2}, \calculate{2^3} out of the box and it's easy to add [e] = math.exp(1

Re: [NTG-context] Formatting numbers in LuaTeX

2010-02-14 Thread Peter Münster
\startlines \calculate{1+2} \calculate{3/2-1} \calculate{3*2} \calculate{sqrt(2)} \calculate{2*pi} \stoplines \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If your

Re: [NTG-context] Formatting numbers in LuaTeX

2010-02-14 Thread Andreas Harder
\calculate#1{\calcmath{\ctxlua{my_equation(#1, #1)}}} \starttext \startlines \calculate{1+2} \calculate{3/2-1} \calculate{3*2} \calculate{sqrt(2)} \calculate{2*pi} \stoplines \stoptext That’s nice! Thank you very much! I've found an posting on the LuaTeX-mailing-list and incorporated

Re: [NTG-context] What do you miss in ConTeXt?

2010-02-13 Thread Wolfgang Schuster
] \getcheckedparameters[test][xx][c = c] \getcheckedparameters[test][xx][d = d d , e = e ,f = f ] \getcheckedparameters[test][xx][g={oeps {oeps}}] \getcheckedparameters[test][xx][crap=whatever] \startlines [a:\getvalue{xxa}][a] [b:\getvalue{xxb}][b] [c:\getvalue{xxc}][c] [d:\getvalue{xxd}][d d ] [e:\getvalue{xxe}][e

Re: [NTG-context] What do you miss in ConTeXt?

2010-02-13 Thread John Devereux
][xx][a=a] \getcheckedparameters[test][xx][b= b] \getcheckedparameters[test][xx][c = c] \getcheckedparameters[test][xx][d = d d , e = e ,f = f ] \getcheckedparameters[test][xx][g={oeps {oeps}}] \getcheckedparameters[test][xx][crap=whatever] \startlines [a:\getvalue{xxa}][a] [b:\getvalue{xxb

Re: [NTG-context] Putting chord names above the lyrics

2010-01-12 Thread Mojca Miklavec
On Tue, Jan 12, 2010 at 03:48, Vyatcheslav Yatskovsky wrote: Hello, How to put chord names above the lyrics? I have the following in mind \starttext \setupinterlinespace[big] \startlines \chord[C6]Pardon me, boy Is that the Chattanooga choo choo? Track twenty-nin\chord[Gadd9/D]e Boy

Re: [NTG-context] ntg-context Digest, Vol 67, Issue 18

2010-01-12 Thread Vyatcheslav Yatskovsky
. \starttext \def\Ch#1{% \strut\hbox to 0pt{\raisebox{0.45\baselineskip}\hbox{\bf#1}\hss}} \setupinterlinespace[big] \startlines \Ch{E}Cvet dišeč z \Ch{H7}jutrom se od\Ch{cis}pre, \Ch{A}sonce od\Ch{E}pira o\Ch{H}či. \Ch{E}Polje z vetrom v \Ch{H7}plesu ziblje \Ch{cis}se. Gos\Ch{E}pod, pov\Ch{H}sod vidim

Re: [NTG-context] Putting chord names above the lyrics

2010-01-12 Thread Vyatcheslav Yatskovsky
Thanks, Wolfgang! Good toy ) \usemodule[ruby] \define[1]\chord{\dontleavehmode\ruby[position=before,align=left,inbetween={\blank[big]}]{}{#1}} \starttext \setupinterlinespace[big] \startlines \chord{E}Cvet dišeč z \chord{H7}jutrom se od\chord{cis}pre, \chord{A}sonce od\chord{E}pira o

[NTG-context] Putting chord names above the lyrics

2010-01-11 Thread Vyatcheslav Yatskovsky
Hello, How to put chord names above the lyrics? I have the following in mind \starttext \setupinterlinespace[big] \startlines \chord[C6]Pardon me, boy Is that the Chattanooga choo choo? Track twenty-nin\chord[Gadd9/D]e Boy, you can gimme a sh\chord[C6]ine \stoplines \setupinterlinespace

Re: [NTG-context] \getfiguredimensions again in mkiv

2010-01-03 Thread Hans Hagen
. i'll look into it concerning pt ... tex internally uses sp so this is what mkiv uses in tex-lua communications you can use: \startlines width: \the\dimexpr\figurewidth\relax height: \the\dimexpr\figureheight\relax \stoplines

Re: [NTG-context] \getfiguredimensions again in mkiv

2010-01-02 Thread Aditya Mahajan
] \startlines width: \figurewidth height:\figureheight \stoplines \stoptext In MkII I get, width: 276.03125pt height: 200.75pt In MkIV I get, width: 7592528sp height: 5694396sp which translates to (why doesn't MkIV use pt as units?) width:115.85pt height:86.889pt I don't know

[NTG-context] fonts with non latin file names

2009-12-30 Thread Wolfgang Schuster
[Mincho][file:ヒラギノ明朝 Pro W3][features=default] % /Library/Fonts/ヒラギノ明朝 Pro W3.otf \definefontsynonym[Gothic][file:ヒラギノ角ゴ Pro W3][features=default] % /Library/Fonts/ヒラギノ角ゴ Pro W3.otf \starttext \startlines \definedfont[Mincho]Hiragino Mincho Pro \definedfont[Gothic]Hiragino Kaku Gothic Pro \stoplines

Re: [NTG-context] Call for papers (pracjourn mkiv)

2009-12-15 Thread Aditya Mahajan
. \TPJ\ formats the %D header as %D \startlines %D The PracTeX Journal, year, No. number %D Article revision year/mm/dd %D \stoplines %D If a copyright notice is present, it is printed right aligned on the bottom %D of first page. Otherwise the footer on the first page is empty. \startlocalsetups

Re: [NTG-context] Verbatim Text with Embedded Formatting Commands (MkIV)

2009-12-13 Thread Wolfgang Schuster
that effort if verbatim is going to be fixed soon anyway. When you don't need syntax highlighting you can use \startlines \setuplines[space=on] \startlines\tt IF A==B THEN do this ELSE do that END \stoplines Wolfgang

[NTG-context] Strange behaviour of indentation

2009-11-30 Thread Tomas Bures
be. (Please see the attached PDF.) Please, does anyone know what to do with this problem? Thank you very much. Best regards, Tomas \setuppapersize[A6][A6] \setupindenting[small,yes] \def\startMyQuote{ \startlines} \def\stopMyQuote{ \stoplines \indenting[next] } \starttext \startMyQuote Quote

Re: [NTG-context] Strange behaviour of indentation

2009-11-30 Thread Tomas Bures
, Tomas \setuppapersize[A6][A6] \setupindenting[small,yes] \def\startMyQuote{ \startlines} \def\stopMyQuote{ \stoplines \indenting[next] } \starttext \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line

Re: [NTG-context] Strange behaviour of indentation

2009-11-30 Thread Tomas Bures
,yes] \def\startMyQuote{ \startlines} \def\stopMyQuote{ \stoplines \indenting[next] } \starttext \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line

Re: [NTG-context] \starbuffer in own macros

2009-10-18 Thread Wolfgang Schuster
{\currentreferencedefault}% was \currentreferencetext \ifx\fline\tline#2\else#3\fi} {\unknownreference{#1}#2}} {\unknownreference{#1}#2}} \def\startMyCite[#1]% {\def\stopMyCite {\setuplines[before=,after=]% \startlines\startline[#1]\getbuffer[#1]\stopline[#1

[NTG-context] startlines

2009-10-03 Thread Wolfgang Schuster
Hi Hans, here is a new attempt to get a more generalized version of the startlines macros, now mkiv only. Wolfgang \unprotect \def\linesparameter #1{\csname\dolinesparameter{\??rg\@@lines} #1\endcsname} \def\dolinesparameter #1#2{\ifcsname#1#2\endcsname#1#2\else

Re: [NTG-context] letter module: Argument of \dodoubletestempty has an extra }

2009-09-20 Thread Wolfgang Schuster
to store the letter content which was changed due to some limitations (e.g. \startlines is not possible). You can force the old processing method with \setupletterstyle [method=store]. Other solutions are to add \relay after \startletter because this stops contexts optional argument grabber

[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]

Re: [NTG-context] loooong stanzas (longer than a page)

2009-09-08 Thread Piotr Kopszak
I was too tired. All is fine with recent mkIV. P. 2009/9/7 Wolfgang Schuster schuster.wolfg...@googlemail.com: Am 07.09.2009 um 23:17 schrieb Piotr Kopszak: Hello list, Maybe I'm just too tired but I can't find a way to force long stanzas between \startlines and  \stoplines to break

[NTG-context] loooong stanzas (longer than a page)

2009-09-07 Thread Piotr Kopszak
Hello list, Maybe I'm just too tired but I can't find a way to force long stanzas between \startlines and \stoplines to break and turn up on next page. Instead the stanza is simply truncated. Actually in my case the poems are not really divided into stanzas (i.e one stanza is one poem). Piotr

Re: [NTG-context] loooong stanzas (longer than a page)

2009-09-07 Thread luigi scarso
On Mon, Sep 7, 2009 at 11:17 PM, Piotr Kopszakkops...@gmail.com wrote: Hello list, Maybe I'm just too tired but I can't find a way to force long stanzas between \startlines and  \stoplines to break and turn up on next page. Instead the stanza is simply truncated. Actually in my case the poems

Re: [NTG-context] loooong stanzas (longer than a page)

2009-09-07 Thread Wolfgang Schuster
Am 07.09.2009 um 23:17 schrieb Piotr Kopszak: Hello list, Maybe I'm just too tired but I can't find a way to force long stanzas between \startlines and \stoplines to break and turn up on next page. Instead the stanza is simply truncated. Actually in my case the poems are not really divided

Re: [NTG-context] type problems

2009-08-09 Thread Wolfgang Werners-Lucchini
{\#}\mono{\letterhash} \startlines \mono{bla}blub \stoplines \stoptext What about \mono{Dies|Das}? Is'nt it frustrating? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki

[NTG-context] type problems

2009-08-06 Thread Wolfgang Werners-Lucchini
'? \starttext %\type{%} %\type{{} \retype{#} \startlines \retype{bla}blub \stoplines \stoptext Thank you Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg

Re: [NTG-context] type problems

2009-08-06 Thread Wolfgang Schuster
{\letterpercent} \mono{\{}\mono{\letterleftbrace} % \mono{\{} works only with MkIV \mono{\#}\mono{\letterhash} \startlines \mono{bla}blub \stoplines \stoptext why is in the following example '#' -- '##'? why is there a newline between 'bla' and 'blub'? Has to do with the way how \retype works, a solution

Re: [NTG-context] verses together

2009-07-14 Thread Hans Hagen
the the split happens. add this to your local cont-new.tex file (after \protect): \def\startlines {\@@rgbefore \pushmacro\checkindentation \whitespace %\page[\v!preference]} gaat mis na koppen, nieuw: later \nobreak \begingroup \setupindenting[\@@rgindenting]% \typesettinglinestrue

Re: [NTG-context] How to prevent empty page after MPpage?

2009-07-13 Thread Hans Hagen
wanted to end the line and go to the next line, I had to put a \par, but in the second one I just put \obeylines which is the same that means ecah end of my lines will be treated like a \par. \startlines I am a Plain \TeX\ user, and you are a Con\TeX t user. There are other people who use La\TeX

[NTG-context] Crop marks and \setuplayout[nx,ny]

2009-06-07 Thread Nicolas Girard
\startstandardmakeup \setlayer[blocks][preset=rightbottom]{% \externalfigure[g-wurf][height=4.7cm]} \setlayer[blocks][preset=middletop,voffset=1mm]% {\ZapfinoMedium Title} \startbuffer \vbox{% \startlines Some Names of Some Cats \vskip-3pt\tfx smaller \vskip-5pt text \stoplines

[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] \inmargin followed by \startlines = alignment fault?

2009-05-14 Thread Corsair
On Thu, May 14, 2009 at 09:11:04AM +0200, Hans Hagen wrote: Corsair wrote: Hi guys, I find that the `lines' environment (or description, itemize, etc.) after text in margin does not align right. Consider the following code: in that case you can try \margintext {...} which saves the

[NTG-context] \inmargin followed by \startlines = alignment fault?

2009-05-13 Thread Corsair
Hi guys, I find that the `lines' environment (or description, itemize, etc.) after text in margin does not align right. Consider the following code: \starttext \inmargin{What I want} First line \crlf Second line \vskip 1cm \inmargin{What it renders} \startlines First line Second line

Re: [NTG-context] Why can not rm or rmtf fonts be set up by \definebodyfont macro?

2009-04-05 Thread Wolfgang Schuster
] \definefontsynonym [Serif] [Song] \stoptypescript \definetypeface [chinese] [rm] [serif] [chinese] [default] \setscript[hanzi] \setupbodyfont[chinese,rm,12pt] \starttext \startlines \tf 今时之人不然也,以酒为浆,以妄为常, \bf 醉以入房,以欲竭其精,以耗散其真, \it 不知持满,不时御神, \sl 务快其心,逆于生乐,起居无节,故半百而衰也。 \stoplines \stoptext

Re: [NTG-context] base- vs. node-kerning

2009-04-04 Thread Hans Hagen
[MinBase][name:minionpro-regular*base] \definefont[MinNode][name:minionpro-regular*node] % \definefont[MinBase][Serif*base] % \definefont[MinNode][Serif*node] \starttext \startbuffer[Kerning] \startlines Wer Tat Ver VAI \stoplines \stopbuffer \startTEXpage \startoverlay {\hbox

Re: [NTG-context] base- vs. node-kerning

2009-04-04 Thread Andreas Harder
[node][mode=node,kern=yes] \definefont[MinBase][name:minionpro-regular*base] \definefont[MinNode][name:minionpro-regular*node] % \definefont[MinBase][Serif*base] % \definefont[MinNode][Serif*node] \starttext \startbuffer[Kerning] \startlines Wer Tat Ver VAI \stoplines \stopbuffer

[NTG-context] base- vs. node-kerning

2009-04-03 Thread Andreas Harder
-regular*base] \definefont[MinNode][name:minionpro-regular*node] % \definefont[MinBase][Serif*base] % \definefont[MinNode][Serif*node] \starttext \startbuffer[Kerning] \startlines Wer Tat Ver VAI \stoplines \stopbuffer \startTEXpage \startoverlay {\hbox to 1cm {\vbox

[NTG-context] \startlines in mark IV

2009-03-28 Thread Maurí­cio
Hi, I setup this test: %%% \starttext \startlines \input test.tex \stoplines \stoptext %%% File 'test.tex' contains just a 'Hello world!' line. This test goes okay when I use 'texexec' from default Ubuntu package. When I use 'context' from minimals, I get a message

Re: [NTG-context] \startlines in mark IV

2009-03-28 Thread Peter Münster
On Sat, 28 Mar 2009, Maurí­cio wrote: %%% \starttext \startlines \input test.tex \stoplines \stoptext %%% File 'test.tex' contains just a 'Hello world!' line. This test goes okay when I use 'texexec' from default Ubuntu package. When I use 'context' from

Re: [NTG-context] Dividing dimensions

2009-03-23 Thread Wolfgang Schuster
, this is \number\dimexpr\dimen0/\dimen2\relax. Before I want to say if this number is or good let's see what the value of the second number is before we changed the value for dimension 6 and after we changed it: \startlines Before: \dimen6=30pt \number\dimexpr\dimen4/\dimen6\relax After

Re: [NTG-context] Help with book of poetry

2009-03-09 Thread Henning Hraban Ramm
you didn't find it yourself: use \startlines for your poetry \stoplines Regarding documents: There are some at http://wiki.contextgarden.net/Sample_documents But most of them are rather old. It's always a hassle to strip sample documents of all copyrighted text or customer data... Or you know

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

2009-01-26 Thread Bart C. Wise
On Mon January 26 2009 8:14:11 am Wolfgang Schuster wrote: Hi Bart, Is there a way to pass in my own defined parameters to such a function? I would like to be able to do something similar to the following: \startCenteredText[myownparm=This is a test] \startlines My own

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

2009-01-26 Thread Bart C. Wise
} \starttext \startCenteredText[myownparm=This is a test] \startlines My own parm is: \myownparm \stoplines \stopCenteredText \stoptext Yes, a much simpler solution, but I appreciate having both. Thanks, Bart

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

2009-01-25 Thread Wolfgang Schuster
to the left. How do I fix this? \defineframedtext[CenteredText][width=fit,location=middle] \starttext \startCenteredText \startlines The quick brown fox jumps over the lazy dog. \stoplines \stopCenteredText \stoptext Wolfgang

<    1   2   3   4   5   6   >