Re: [NTG-context] setupsynonym: 2 questions on width

2009-03-05 Thread Wolfgang Schuster


Am 04.03.2009 um 18:34 schrieb Michael Bynum:


1.)  I have a list of synonyms that I need to print in an aligned
list.  Is there a way to align the synonym definitions with the
longest synonym entry (width=? option maybe)?  Here is a small example
where the entries do not align.

\definesynonyms[nomenclature][nomenclatures][\infull]
\setupsynonyms[nomenclature][criterium=all,width=broad]

\nomenclature[a]{a}{This is the letter a}
\nomenclature[b]{abcdefghijklmnopqrstuvwxyz}{This is the alphabet}
\nomenclature[c]{c}{This is the letter c}


\def\setwidthof#1\to#2%
  {\bgroup
   \setbox\scratchbox\hbox{#1}%
   \expanded{\egroup\def\noexpand#2{\the\wd\scratchbox}}}

\setwidthof{abcdefghijklmnopqrstuvwxyz}\to\nomenclaturewidth

\setupsynonyms[nomenclature][width=\nomenclaturewidth]

Wolfgang

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread luigi scarso
On Wed, Mar 4, 2009 at 8:53 PM, luigi scarso luigi.sca...@gmail.com wrote:
 On Wed, Mar 4, 2009 at 8:35 PM, Curious Learn curiousle...@gmail.com wrote:
 Can someone please explain why the second example below works but the first 
 does
 not work?
 Thanks very much.

 \starttext

 \bTABLE
 \dorecurse{5}
 {\bTR \bTD \recurselevel. \eTD
          \bTD \recurselevel  \eTD\eTR}
 \eTABLE

 \dorecurse{2}
 {\recurselevel. \recurselevel\crlf}

 \stoptext

 works ok here with latest minimals
 This is LuaTeX, Version snapshot-0.35.0-2009022702 (Web2C 7.5.7)
 ConTeXt  ver: 2008.11.10 21:40 MKIV  fmt: 2009.3.4  int: english/english
oops...I forget my code
sorry



\starttext
%%% TeX version
\bTABLE
\dorecurse{5}
{\bTR\expandafter \bTD \recurselevel. \eTD\expandafter
 \bTD \recurselevel  \eTD\eTR}
\eTABLE

\dorecurse{2}
{\recurselevel. \recurselevel\crlf}

%%% luatex version
\startluacode
tprint = function(s) tex.sprint(tex.ctxcatcodes,s) end
tprint('\\bTABLE')
for j = 1,5 do
tprint('\\bTR')
tprint('\\bTD' .. j .. '.' .. '\\eTD' .. '\\bTD' .. j .. '\\eTD')
tprint('\\eTR')
end
tprint('\\eTABLE')
\stopluacode
\stoptext


-- 
luigi
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] some minor Problems

2009-03-05 Thread Lutz Haseloff
I had to rename CAMBRIA.TTC to cambria.ttc, now mtxrun lists the same
features.
Perhaps a luatex problem?

Tlig now works, but with Cambria ligatures i had no luck yet with following
testfile:
-
\definefontfeature[default][default][script=latn,language=dflt]
\font\cambria=name:cambriabook*default at 12pt
\font\fertigo=name:fertigoproregular*default at 11pt
\starttext
\cambria
-- --- ff fi fl ffi ffl – — ff fi fl ffi ffl
\blank
\fertigo
-- --- ff fi fl ffi ffl – — ff fi fl ffi ffl
\stoptext
-

Greetings Lutz

2009/3/4 Hans Hagen pra...@wxs.nl

 Wolfgang Schuster wrote:

 On Wed, Mar 4, 2009 at 4:35 PM, Hans Hagen pra...@wxs.nl wrote:

 Lutz Haseloff wrote:

  I can't enable fontfeatures for the Vista-Fonts for instance Cambria.
 They are simply ignored. They are OTF with TTF extensions, ist this
 the reason?
 mtxrun --script font --list --info cambria

 lists a whole lot; but in cambria there is no dflt, dflt so you need to
 be
 explitly latn (because there is also grek and math)


 Weird, that's all I get for Cambria (other fonts show the complete list)

 Rover:base wolf$ mtxrun --script font --list --info cambria
 MtxRun | fontname: cambria
 MtxRun | fullname: Cambria
 MtxRun | filename: /Users/wolf/Library/Fonts/CAMBRIA.TTC
 MtxRun |


 maybe an old cambria

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] overarc

2009-03-05 Thread David Arnold

All,

How can I place an overarc over some text, such as in \overarc{AB}?

D.
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] paragraph question

2009-03-05 Thread Hans Hagen

Marcin Borkowski wrote:

Dnia Wed, Mar 04, 2009 at 05:02:40PM +0100, Alan Stone napisa#322;(a):

How do you access the first paragraph of each chapter ?

... to calculate its number of lines ?

If not possible with ConTeXt commands, is this possible with LuaTeX commands?


Maybe redefine \par to do something like

\def\nooflines{\prevgraf}\let\par=\oldpar

where previously you hd \let\oldpar=\par


messing around with \par is dangerous and asking for trouble


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Up the contents of table

2009-03-05 Thread Wolfgang Schuster


Am 05.03.2009 um 09:09 schrieb Xan:

Thanks, Wolfgang, but I refered to contents of the table not the  
caption of the table. The contents of this table are: pictures in up  
and text in bottom. I want to put all together in the up of the  
table.


Sorry but with your question only there is no way to understand what  
you mean,
I texed now your example (please add next time \starttext ...  
\stoptext and

load all required packages) and saw what you mean.

The two pictures and the text in the middle column should align at the  
top
of the table. Natural tables are better suited for this kind of table  
because

you can use the 'align' key.

\bTABLE 
[frame 
=off,align=middle,width=4.5cm,background=color,backgroundcolor=gray]

  \bTR
\bTD[nx=3,foregroundstyle=\ssbf] Com s'identifica una funció  
mitjançant la seva representació gràfica? \eTD

  \eTR
  \bTR[topframe=on,bottomframe=on]
\bTD graph 1 \eTD
\bTD text \eTD
\bTD graph 2 \eTD
  \eTR
\eTABLE

Wolfgang

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread Wolfgang Schuster


Am 05.03.2009 um 01:17 schrieb luigi scarso:


\starttext
%%% TeX version
\bTABLE
\dorecurse{5}
{\bTR\expandafter \bTD \recurselevel. \eTD\expandafter
\bTD \recurselevel  \eTD\eTR}
\eTABLE

\dorecurse{2}
{\recurselevel. \recurselevel\crlf}


And you think it's a good idea to use \expandafter in your document?

\expanded is the tool for users to get this result without knowledge
about TeX internals and expansion, this is from core-ntb:

% permits \expanded{\bTD ... \eTD}

\unexpanded\def\eTR{}
\unexpanded\def\eTD{}
\unexpanded\def\eTH{}
\unexpanded\def\eTN{}


%%% luatex version
\startluacode
   tprint = function(s) tex.sprint(tex.ctxcatcodes,s) end
   tprint('\\bTABLE')
   for j = 1,5 do
   tprint('\\bTR')
   tprint('\\bTD' .. j .. '.' .. '\\eTD' .. '\\bTD' .. j .. '\ 
\eTD')

   tprint('\\eTR')
   end
   tprint('\\eTABLE')
\stopluacode
\stoptext


Nice solution and real alternative for package writers to avoid  
\expandafter
and \expanded but nothing for a normal user, I should keep this in my  
mind.


Wolfgang

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread luigi scarso
On Thu, Mar 5, 2009 at 12:09 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 05.03.2009 um 01:17 schrieb luigi scarso:

 \starttext
 %%% TeX version
 \bTABLE
 \dorecurse{5}
 {\bTR\expandafter \bTD \recurselevel. \eTD\expandafter
        \bTD \recurselevel  \eTD\eTR}
 \eTABLE

 \dorecurse{2}
 {\recurselevel. \recurselevel\crlf}

 And you think it's a good idea to use \expandafter in your document?
TeX  version, not context ... :)
btw
\expandafer is not so bad, if used moderatly .


 \expanded is the tool for users to get this result without knowledge
 about TeX internals and expansion, this is from core-ntb:

 % permits \expanded{\bTD ... \eTD}

 \unexpanded\def\eTR{}
 \unexpanded\def\eTD{}
 \unexpanded\def\eTH{}
 \unexpanded\def\eTN{}
yes, of course one need to know about \expandafter... so is not so different .
But it's context style.


 %%% luatex version
 \startluacode
   tprint = function(s) tex.sprint(tex.ctxcatcodes,s) end
   tprint('\\bTABLE')
   for j = 1,5 do
       tprint('\\bTR')
       tprint('\\bTD' .. j .. '.' .. '\\eTD' .. '\\bTD' .. j .. '\\eTD')
       tprint('\\eTR')
   end
   tprint('\\eTABLE')
 \stopluacode
 \stoptext

 Nice solution and real alternative for package writers to avoid \expandafter
 and \expanded but nothing for a normal user, I should keep this in my mind.
Are you sure ?
What is a normal user ?
As soon as you use \dorecurse , you become a programmer .

And sooner or later, everyone become a programmer, because it's
impossible to write a format that satisfied
all your needs .




-- 
luigi
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread Wolfgang Schuster


Am 05.03.2009 um 12:27 schrieb luigi scarso:


And you think it's a good idea to use \expandafter in your document?

TeX  version, not context ... :)
btw
\expandafer is not so bad, if used moderatly .


But don't make a beginner used to it, e.g. Stefan Kottwitz mentioned a  
few
times how to append something to a existing macro in LaTeX forums and  
this

is what I try to avoid for people who don't know what they are doing.

http://texblog.net/latex-archive/plaintex/expandafter/

Nice solution and real alternative for package writers to avoid  
\expandafter
and \expanded but nothing for a normal user, I should keep this in  
my mind.

Are you sure ?
What is a normal user ?


People who want to use TeX to write a document but copy code from  
examples,
old list messages etc. but don't why they have to do it something like  
this.



As soon as you use \dorecurse , you become a programmer .

And sooner or later, everyone become a programmer, because it's
impossible to write a format that satisfied
all your needs .


OK, it's hard to write a fancy layout without defining your own header  
styles etc.
without a definition but use then as many high level contructs  
(\framed, \define, ...)

as possible and try to avoid things like \vbox or \expandafter.

Wolfgang

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] paragraph question

2009-03-05 Thread Alan Stone
How do you invoke a command at the end of a paragraph ?

Alan
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] paragraph question

2009-03-05 Thread Hans Hagen

Alan Stone wrote:

How do you invoke a command at the end of a paragraph ?


there is no hook for that (apart from adding a \endofpar command or 
whatever to every paragraph


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread luigi scarso
 People who want to use TeX to write a document but copy code from examples,
 old list messages etc. but don't why they have to do it something like this.

 OK, it's hard to write a fancy layout without defining your own header
 styles etc.
 without a definition but use then as many high level contructs (\framed,
 \define, ...)
 as possible and try to avoid things like \vbox or \expandafter.

This is my point of view :
use TeX to write a document = write a program in TeX  programming language

TeX programming language is not like lua, python, c++ , java and so on;
TeX programming language is like m4, ie a macro language.

If you write a simple document (= a simple program) context
high-level const.s  will almost completly hide
the programming aspect ;
but it's impossible that context high-level cover *all* program; so
sooner or later one will
use lua(tex) expression (which can be a natural choice for most of
programmer but can be slow) ,
or ContTeXt macro (which can be less slow but not so natural ) ,
or even TeX macro - primitive .



http://texblog.net/latex-archive/plaintex/expandafter/
hey, this is not a moderate use of expandafter as I intended ..
I dropped latex for similar examples .
In this situation
please, grep setvalue base/*



-- 
luigi
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] paragraph question

2009-03-05 Thread Alan Stone
 How do you invoke a command at the end of a paragraph ?

 there is no hook for that (apart from adding a \endofpar command or whatever
 to every paragraph

From TeX for the Impatient...

---
\prevgraf [ number parameter ]
In horizontal mode, this parameter specifies the number of lines in the
paragraph so far; in vertical mode, it specifies the number of lines in
the previous paragraph.
---

After giving it some further thought and with reference to specifies
the number of lines in the
paragraph so far, I don't need to know the paragraph's number of
lines but whether its number of lines = 1 or not.

Alan
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] overarc

2009-03-05 Thread Aditya Mahajan

On Wed, 4 Mar 2009, David Arnold wrote:


All,

How can I place an overarc over some text, such as in \overarc{AB}?


Currently, there is no such feature. Are you looking at the functionality 
of the arcs package of latex? If so, it will be easy to add it to ConTeXt. 
The main trouble is that the glyph for \overarc is missing from the fonts. 
Arcs.sty takes the glyphs for \frown and \smile, and scales them 
appropriately. An ugly solution, but it looks ok if you are just placing 
it over one or two letters.


I cannot translate the code to ConTeXt right now, so am posting it here 
incase someone wants to give it a shot.


\newcommand{\overarc}[2][1]{\o...@under@arc{#1}{#2...@}
\newcommand{\underarc}[2][1]{\o...@under@arc{#1}{#...@ne}
\newcommand{\o...@under@arc}[3]{%
  \leavevmode
  \hbox {%
\setbox\z@ = \hbox {#2}%
\ifdim \ht\z@ = \z@ %  arc over/under space
  \ifdim \dp\z@ = \z@
\ht\z@ = 1ex\relax
  \fi
\fi
\dimen@ = #1\wd\z@
\begingroup
\let \...@size@warning = \...@gobbletwo
\relsize{-10}%
\...@ne = \z@
\...@whiledim \...@ne  .95\dimen@ \do {%
%AM: This loops keeps on increasing the fontsize
%by 1 until the width of the glyph increases the width of
%of box zero.
  \ifx \...@currsize \Huge
\dimen@ = \z@
  \else
$%AM: Really? Load the font for each font size!
\skip@ = \...@baselineskip
\fontencoding{OML}\fontfamily{cmm}\fontseries{m}%
\fontshape{it}\fontsize{\...@size}{\skip@}\selectfont
\global \setb...@ne = \hbox {%
   \hss\symbol{5\ifnum #3=\z@ F\else E\fi}\hss}%
\ifdim \...@ne  \dimen@
  \fontsize{...@size}{\skip@}\selectfont
  \global \setb...@ne = \hbox {%
 \hss\symbol{5\ifnum #3=\z@ F\else E\fi}\hss}%
  \ifdim \...@ne  \dimen@
\fontsize{...@size}{\skip@}\selectfont
\global \setb...@ne = \hbox {%
  \hss\symbol{5\ifnum #3=\z@ F\else E\fi}\hss}%
  \fi
\fi
$%AM: Normally one sets mathsurround to zero. Why is that not done 
here?

  \fi
  \ifdim \...@ne  \dimen@
\relsize{+1}%
  \fi
  \global \di...@i = \fontdimen5\the\font
}%
\endgroup
\ifnum #3 = \z@
  \di...@ii = 1.067\ht\z@
  \global \divide \di...@i by \tw@
  \global \advance \di...@i by -\...@ne
  \advance \di...@ii by .6\di...@i
\else
  \di...@ii = -1.05\...@ne
  \advance \di...@ii by -.75pt
  \ifdim \dp\z@  \z@
\advance \di...@ii by -\dp\z@
  \fi
\fi
\copy\z@
\dimen@ = \wd\z@
\advance \dimen@ by \...@ne
\kern -.5\dimen@
\raisebox {\di...@ii}[\z@]...@]{\copy\@ne}%
\dimen@ = \wd\z@
\advance \dimen@ by -\...@ne
\dimen@ = .5\dimen@
\kern \dimen@
  }%
}


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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread Wolfgang Schuster


Am 05.03.2009 um 14:23 schrieb luigi scarso:


http://texblog.net/latex-archive/plaintex/expandafter/


hey, this is not a moderate use of expandafter as I intended ..
I dropped latex for similar examples .
In this situation
please, grep setvalue base/*


??? I can't understand the relation between \setvalue and the  
expandafter
trick in the example on the webpage, setvalue hides the csname ...  
endcsname
part but the example tries to avoid the \let\oldmacro\macro \def 
\macro{\oldmacro...}

redefinition.

Wolfgang

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] paragraph question

2009-03-05 Thread Marcin Borkowski
Dnia Thu, Mar 05, 2009 at 02:44:53PM +0100, Wolfgang Schuster napisa#322;(a):
 
 Am 05.03.2009 um 14:25 schrieb Alan Stone:
 
 After giving it some further thought and with reference to specifies
 the number of lines in the
 paragraph so far, I don't need to know the paragraph's number of
 lines but whether its number of lines = 1 or not.
 
 
 You can test whether the last paragraph had 1 or more lines and make
 your decision dependent on the result but this can be done only after
 the paragraph ist finished.

Well, Wolfgang, you'll be surprised: it can be done (even in pure
vanilla TeX), at the expense of (possibly) nonuniform spacing.  Google
for a file meashor.tex:).  (In Poland, we have a saying: nasi górą!
-- roughly our people win! -- I can't resist citing it here, since it
was Bogusław Jackowski who wrote that macros:)).

Regards

-- 
Marcin Borkowski (http://mbork.pl)

Remember that direct plagiarism, including the editing of other
people's work, is distinctly uncool.

(Mark's Pixel Art Tutorial)
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] New LilyPond module

2009-03-05 Thread Henning Hraban Ramm

Dear music lovers,

I just uploaded a new version of the LilyPond module, see
http://modules.contextgarden.net/t-lilypond
http://wiki.contextgarden.net/LilyPond

It works now with LilyPond 2.12 and fixes some bugs - i.e. all  
settings should work now, and with


\lilypond[fragment=yes,time=no,clef=no]{c''8 d'' e'' f'' g''}

it should now produce proper fragments (snippets).


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)



PGP.sig
Description: Signierter Teil der Nachricht
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] paragraph question

2009-03-05 Thread Alan Stone
Thanks Wolfgang, however I'm looking for a solution without adding
additional commands to the text source.

Requires to switch to the LuaTeX list ?

Alan

On Thu, Mar 5, 2009 at 2:44 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 05.03.2009 um 14:25 schrieb Alan Stone:

 After giving it some further thought and with reference to specifies
 the number of lines in the
 paragraph so far, I don't need to know the paragraph's number of
 lines but whether its number of lines = 1 or not.


 You can test whether the last paragraph had 1 or more lines and make
 your decision dependent on the result but this can be done only after
 the paragraph ist finished.

 \def\paragraphlines
  {\blank % Finish the last paragraph
   \ifnum\prevgraf=1 What I want.\else Too many lines.\fi
   \blank}

 \starttext

 \dorecurse{30}{text }\paragraphlines

 \dorecurse{10}{text }\paragraphlines

 \dorecurse{50}{text }\paragraphlines

 \stoptext

 Wolfgang

 ___
 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-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___




-- 
Alan
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] paragraph question

2009-03-05 Thread Wolfgang Schuster


Am 05.03.2009 um 14:25 schrieb Alan Stone:


After giving it some further thought and with reference to specifies
the number of lines in the
paragraph so far, I don't need to know the paragraph's number of
lines but whether its number of lines = 1 or not.



You can test whether the last paragraph had 1 or more lines and make
your decision dependent on the result but this can be done only after
the paragraph ist finished.

\def\paragraphlines
  {\blank % Finish the last paragraph
   \ifnum\prevgraf=1 What I want.\else Too many lines.\fi
   \blank}

\starttext

\dorecurse{30}{text }\paragraphlines

\dorecurse{10}{text }\paragraphlines

\dorecurse{50}{text }\paragraphlines

\stoptext

Wolfgang

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] overarc

2009-03-05 Thread Thomas A. Schmitz


On Mar 5, 2009, at 2:39 PM, Aditya Mahajan wrote:

Currently, there is no such feature. Are you looking at the  
functionality of the arcs package of latex? If so, it will be easy  
to add it to ConTeXt. The main trouble is that the glyph for  
\overarc is missing from the fonts. Arcs.sty takes the glyphs for  
\frown and \smile, and scales them appropriately. An ugly solution,  
but it looks ok if you are just placing it over one or two letters.


I had a similar wish a while ago and hacked something with a  
MPpositiongraphic. It is certainly not very elegant, but IMHO better  
than the LaTeX code you posted (scaling a glyph like that will look  
ugly when you want to span more than just two letters). Wolfgang  
Schuster supplied the neat trick with the counter. It is quite fast  
when run with mkiv, but I suspect would be slow with mkii (and leave  
quite a few .mp files behind). Maybe this can help:


\newcount\arcnumber

\startMPpositiongraphic{placeoverarc}
 StartPage ;
 begingroup ;
 initialize_box(\MPpos{\MPvar{self}}) ;
 numeric c ; c = ExHeight/6 ;
 z1 = llxy ;
 z2 = lrxy ;
 z7 = 1/2[z1,z2] ;
 z4 = ((x1 + 2*c), (y1 + 2*c)) ;
 z5 = (x7, (y7 + 4*c)) ;
 z6 = ((x2 - 2*c), (y2 + 2*c)) ;
 path syn ; syn := z4 .. z5 .. z6 ;
 pickup pencircle scaled (0.75*c) ;
 draw syn ;
 anchor_box(\MPanchor{\MPvar{self}}) ;
 endgroup ;
 save c ;
 StopPage ;
\stopMPpositiongraphic%

\define[1]\overarc
{\advance\arcnumber\plusone%
 \setMPpositiongraphic{POS-\number\arcnumber}{placeoverarc}%
 \hpos{POS-\number\arcnumber}{#1}}

Maybe that can be the starting point for some better code...

Thomas

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread luigi scarso
On Thu, Mar 5, 2009 at 2:52 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 05.03.2009 um 14:23 schrieb luigi scarso:

 http://texblog.net/latex-archive/plaintex/expandafter/

 hey, this is not a moderate use of expandafter as I intended ..
 I dropped latex for similar examples .
 In this situation
 please, grep setvalue base/*

 ??? I can't understand the relation between \setvalue and the expandafter
 trick in the example on the webpage, setvalue hides the csname ... endcsname
 part but the example tries to avoid the \let\oldmacro\macro
 \def\macro{\oldmacro...}
 redefinition.
I don't like the
\let\oldmacro\macro  \def\macro{\oldmacro...}
construct
because sometimes the \def\macro{\oldmacro...}
can cause unexpected behaviour

I prefear

\setvalue{quote small}{\quote\small}
{\getvalue{quote small} foo }


-- 
luigi
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread Wolfgang Schuster


Am 05.03.2009 um 15:23 schrieb luigi scarso:


I prefear

\setvalue{quote small}{\quote\small}
{\getvalue{quote small} foo }


This is non trivial example, normally I would define a new quote  
command with


  \definedelimitedtext[quotesmall][quote]

but you above code can't be achieved with this because the results are  
either
small text or text with quotes at both sides but not a combination of  
them.


How about: \define\quotesmall{\groupedcommand{\quote\small}{}}

Wolfgang

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] New LilyPond module

2009-03-05 Thread Lutz Haseloff
Hi Hraban,

Thank you for the music!

One remaining problem. On my system (Windows XP, luatex 0.35, lilypond
2.12.2)
 your module generates two identical eps files with different names,
filename-lilypond-1.eps and filename-lilypond-1-1.eps.
The second is converted to pdf and therefore is filename-lilypond-1.pdf not
included.

Do you want to read my log and have a look at my generated files?


Greetings Lutz

2009/3/5 Henning Hraban Ramm hra...@fiee.net

 Dear music lovers,

 I just uploaded a new version of the LilyPond module, see
 http://modules.contextgarden.net/t-lilypond
 http://wiki.contextgarden.net/LilyPond

 It works now with LilyPond 2.12 and fixes some bugs - i.e. all settings
 should work now, and with

 \lilypond[fragment=yes,time=no,clef=no]{c''8 d'' e'' f'' g''}

 it should now produce proper fragments (snippets).


 Greetlings from Lake Constance!
 Hraban
 ---
 http://www.fiee.net/texnique/
 http://wiki.contextgarden.net
 https://www.cacert.org (I'm an assurer)



 ___
 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-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

 ___


___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] boldstyle for numbers in defineenumeration

2009-03-05 Thread Xan

En/na Xan ha escrit:

Hi,

Is it possible to put numerstyle=boldstyle in this enumeration?:
\defineenumeration
 [exercici]
 
[text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em, 

stopper={.\space},location=serried,titleleft=(,titleright=),width=fit,headstyle=\ss] 



For the other hand, is it possible to make it's a framed?

Thanks a lot,
Xan.


Aditya,

numberstyle=bold

does not work for me.

The exact code I have is:

\defineenumeration
 [exercici]
 
[text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,
stopper={.\space},location=serried,titleleft=(,titleright=),width=fit,headstyle=\ss,numberstyle=bold]

What happens?
Possibly old ConTeXt version?
I have ConTeXt  ver: 2007.09.28 16:52 MKII  fmt: 2009.2.17  int: english/english

Regards,
Xan.


___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] How to increase weight of a font?

2009-03-05 Thread Wei-Wei Guo

Hi everyone,


I need to increase the eight of a Chinese font to make it look like a bold 
font. Is there anyway to do so?


Thanks,

Best wishes,
Wei-Wei Guo
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread luigi scarso
On Thu, Mar 5, 2009 at 3:53 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 05.03.2009 um 15:23 schrieb luigi scarso:

 I prefear

 \setvalue{quote small}{\quote\small}
 {\getvalue{quote small} foo }

 This is non trivial example, normally I would define a new quote command
 with

  \definedelimitedtext[quotesmall][quote]

 but you above code can't be achieved with this because the results are
 either
 small text or text with quotes at both sides but not a combination of them.

 How about: \define\quotesmall{\groupedcommand{\quote\small}{}}
sound good.
Does it work \setvalue{quote:small}{\groupedcommand{\quote\small}{}}
?

-- 
luigi
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Up the contents of table

2009-03-05 Thread Xan

En/na Wolfgang Schuster ha escrit:


Am 05.03.2009 um 09:09 schrieb Xan:

Thanks, Wolfgang, but I refered to contents of the table not the 
caption of the table. The contents of this table are: pictures in up 
and text in bottom. I want to put all together in the up of the table.


Sorry but with your question only there is no way to understand what 
you mean,
I texed now your example (please add next time \starttext ... 
\stoptext and

load all required packages) and saw what you mean.

The two pictures and the text in the middle column should align at the 
top
of the table. Natural tables are better suited for this kind of table 
because

you can use the 'align' key.

\bTABLE[frame=off,align=middle,width=4.5cm,background=color,backgroundcolor=gray] 


  \bTR
\bTD[nx=3,foregroundstyle=\ssbf] Com s'identifica una funció 
mitjançant la seva representació gràfica? \eTD

  \eTR
  \bTR[topframe=on,bottomframe=on]
\bTD graph 1 \eTD
\bTD text \eTD
\bTD graph 2 \eTD
  \eTR
\eTABLE

Wolfgang

Thanks a lot, Wolfgang. And sorry for the elipsis of the code. With 
natural tables it works. But it shoudl work with the other tables. Is it 
a bug?


Regards,
Xan.
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] setupsynonym: 2 questions on width

2009-03-05 Thread Michael Bynum
Right, that works for this example, but if I change what nomenclatures
are in the list then I would have to go in and manually change the
setwidthof{} command.  Am I correct in thinking that?  I guess ideally
I wouldn't have to go in and change the spacing manually every time I
update my nomenclatures list.
Mike



On Wed, Mar 4, 2009 at 7:05 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 04.03.2009 um 18:34 schrieb Michael Bynum:

 1.)  I have a list of synonyms that I need to print in an aligned
 list.  Is there a way to align the synonym definitions with the
 longest synonym entry (width=? option maybe)?  Here is a small example
 where the entries do not align.

 \definesynonyms[nomenclature][nomenclatures][\infull]
 \setupsynonyms[nomenclature][criterium=all,width=broad]

 \nomenclature[a]{a}{This is the letter a}
 \nomenclature[b]{abcdefghijklmnopqrstuvwxyz}{This is the alphabet}
 \nomenclature[c]{c}{This is the letter c}

 \def\setwidthof#1\to#2%
  {\bgroup
   \setbox\scratchbox\hbox{#1}%
   \expanded{\egroup\def\noexpand#2{\the\wd\scratchbox}}}

 \setwidthof{abcdefghijklmnopqrstuvwxyz}\to\nomenclaturewidth

 \setupsynonyms[nomenclature][width=\nomenclaturewidth]

 Wolfgang

 ___
 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-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] New LilyPond module

2009-03-05 Thread Wei-Wei Guo

It comes right in time. Thank you!

Is it possible to make the temp lily file in the format of PNG instead of PDF?
MkIV here cannot insert PDF figure properly recently.

Best wishes,
Wei-Wei Guo



ntg-context-requ...@ntg.nl 写道:
 Dear music lovers,

 I just uploaded a new version of the LilyPond module, see
 http://modules.contextgarden.net/t-lilypond
 http://wiki.contextgarden.net/LilyPond

 It works now with LilyPond 2.12 and fixes some bugs - i.e. all
 settings should work now, and with

 \lilypond[fragment=yes,time=no,clef=no]{c''8 d'' e'' f'' g''}

 it should now produce proper fragments (snippets).


 Greetlings from Lake Constance!
 Hraban
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Eliminate space between float and caption

2009-03-05 Thread Michael Bynum
I am trying to find a way to reduce/eliminate the space between a
figure and a caption.  The default amount looks rather large to me:
larger than the spacing between the caption and the body text.  I
tried to use the inbetween option in \setupcation, but I can only seem
to increase the space between the figure and caption and not reduce
it.  I saw a reference to details.pdf in the mailing list about more
advanced examples of captions, but when I went to
www.pragma-ade.com/temp the page no longer exists and I couldn't find
details.pdf.

Thanks,
Mike
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] paragraph question

2009-03-05 Thread Hans Hagen

Alan Stone wrote:

Thanks Wolfgang, however I'm looking for a solution without adding
additional commands to the text source.

Requires to switch to the LuaTeX list ?


that does not help you as taco and i are on both lists

i can imagine that mkiv at some point privides something but it needs 
way more thinking (we have this end of par problem since ages) if only 
because what you see as end of par might actually be just before the 
final skips that ends a par


something everyendpar is on our todo list but later in the luatex project

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to increase weight of a font?

2009-03-05 Thread Hans Hagen

Wei-Wei Guo wrote:

Hi everyone,


I need to increase the eight of a Chinese font to make it look like a 
bold font. Is there anyway to do so?


properties

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Up the contents of table

2009-03-05 Thread Xan

En/na Wolfgang Schuster ha escrit:


Am 05.03.2009 um 16:57 schrieb Xan:


Lohi?
What it means?
Can you translate me the dicctionary:
valign = middle -- lohi
valign = bottom -- ?
valign = up -- ?


Natural tables and \framed have only 'align' key which you can use
to control horizontal *and* vertical alignment of the text.

\starttext
\bTABLE[height=2cm]
  \bTR
\bTD[align=low] text \eTD
\bTD[align=lohi]text \eTD
\bTD[align=high]text \eTD
  \eTR
\eTABLE
\stoptext

o 'low' positions the text at the bottom of the box,
o 'high' positions the text at the top of the box and
o 'lohi' centers text vertical in the box.

You can combine settings like 'align={lohi,middle}' to get vertical
and horizontal centered text in the box.

Wolfgang


Thanks.
A lot,
Xan.

PS: I CC context mailing list because I don't find this explanation 
nowhere. It could be useful for someone.

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] paragraph question

2009-03-05 Thread Alan Stone
On Thu, Mar 5, 2009 at 5:09 PM, Hans Hagen pra...@wxs.nl wrote:
 Alan Stone wrote:

 Thanks Wolfgang, however I'm looking for a solution without adding
 additional commands to the text source.

 Requires to switch to the LuaTeX list ?

 that does not help you as taco and i are on both lists

 i can imagine that mkiv at some point privides something but it needs way
 more thinking (we have this end of par problem since ages) if only because
 what you see as end of par might actually be just before the final skips
 that ends a par

 something everyendpar is on our todo list but later in the luatex project

 Hans

Ok.

In the meantime, an idea - for what it's worth...

Would it be possible to somehow, in the typesetting process, dummy
typeset the first paragraph of each chapter (in memory or in a dummy
output file) to determine whether its number of lines = 1 or  1, or
determine its total number of lines, and work from there ?

Alan
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MKIV: problem with synonyms

2009-03-05 Thread Kevin D. Robbins
Hi Hans,

When you earlier said that sorting was supported in cont-xp, did you mean it
should be working right now, or that you are only going to fix sorting in
cont-xp?

Right now, \completelistofacronyms fails in the following example using
'context --interface=xp' :

-
\definesynonyms[acronym][acronyms][\infull]

\acronym{ABC}{A Better Compiler}
\acronym{DEF}{Don't Ever Fail}

\starttext
  \completelistofacronyms
  \infull{ABC} (\ABC)
  \infull{DEF} (\DEF)
\stoptext
-

The error I see is:

-
systems: synchronize: chapter,chapter,section-2,2
! LuaTeX error ...text/tex/texmf-context/tex/context/base/strc-syn.lua:89:
attempt to index field 'definition' (a nil value)
stack traceback:
...text/tex/texmf-context/tex/context/base/strc-syn.lua:89: in function
'filter'
...text/tex/texmf-context/tex/context/base/strc-syn.lua:162: in function
'analysed'
...text/tex/texmf-context/tex/context/base/strc-syn.lua:172: in function
'process'
main ctx instance:1: in main chunk.
\doplacelistofsynonyms ...blists.process('#1',{})}
  \stoppacked \endgroup
\docompletelistofsynonyms ...stofsynonyms {#1}{#2}
  \page [\v!yes ]
l.7   \completelistofacronyms
-

Thanks,

Kevin

On Thu, Feb 5, 2009 at 3:13 PM, Hans Hagen pra...@wxs.nl wrote:

 Peter Münster wrote:

 Hello,

 \completelistof... does not work with MKIV
 (ConTeXt 2009.01.18 and LuaTeX snapshot-0.31.3-2008123108):

 \definesynonyms[Acro][acronymes]
 \Acro{HTML}{HyperText Markup Language}
 \Acro{PDF}{Portable Document Format}
 \starttext
 \HTML\ and \PDF
 \completelistofacronymes
 \stoptext


 indeed, all sorting is not working since i moved to a different method
 (supporte din cont-xp)

 Hans


 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
 -


 ___
 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-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

 ___

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Up the contents of table

2009-03-05 Thread Willi Egger

There is an option [align=lohi] which should do what you want.

Willi
On Mar 5, 2009, at 4:30 PM, Xan wrote:


En/na Xan ha escrit:

En/na Wolfgang Schuster ha escrit:


Am 05.03.2009 um 09:09 schrieb Xan:

Thanks, Wolfgang, but I refered to contents of the table not the  
caption of the table. The contents of this table are: pictures  
in up and text in bottom. I want to put all together in the up  
of the table.


Sorry but with your question only there is no way to understand  
what you mean,
I texed now your example (please add next time \starttext ...  
\stoptext and

load all required packages) and saw what you mean.

The two pictures and the text in the middle column should align  
at the top
of the table. Natural tables are better suited for this kind of  
table because

you can use the 'align' key.

\bTABLE 
[frame=off,align=middle,width=4.5cm,background=color,backgroundcolor 
=gray]

  \bTR
\bTD[nx=3,foregroundstyle=\ssbf] Com s'identifica una funció  
mitjançant la seva representació gràfica? \eTD

  \eTR
  \bTR[topframe=on,bottomframe=on]
\bTD graph 1 \eTD
\bTD text \eTD
\bTD graph 2 \eTD
  \eTR
\eTABLE

Wolfgang

Wolfgang, is there any way of align vertically the content of one  
cell?

I'm thinking about

bTABLE 
[frame=off,align=middle,width=4.5cm,background=color,backgroundcolor=g 
ray]

 \bTR
   \bTD[nx=3,foregroundstyle=\ssbf] Com s'identifica una funció  
mitjançant la seva representació gràfica? \eTD

 \eTR
 \bTR[topframe=on,bottomframe=on]
   \bTD graph 1 \eTD
   \bTD  [valign=middle] text \eTD
   \bTD graph 2 \eTD
 \eTR
\eTABLE

Regards,
Xan.
__ 
_
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-context

webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
__ 
_


___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Eliminate space between float and caption

2009-03-05 Thread Willi Egger
You can find the document at http://www.pragma-ade.com/dir? 
path=general/manuals


Willi
On Mar 5, 2009, at 4:55 PM, Michael Bynum wrote:


I am trying to find a way to reduce/eliminate the space between a
figure and a caption.  The default amount looks rather large to me:
larger than the spacing between the caption and the body text.  I
tried to use the inbetween option in \setupcation, but I can only seem
to increase the space between the figure and caption and not reduce
it.  I saw a reference to details.pdf in the mailing list about more
advanced examples of captions, but when I went to
www.pragma-ade.com/temp the page no longer exists and I couldn't find
details.pdf.

Thanks,
Mike
__ 
_
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-context

webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
__ 
_


___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] boldstyle for numbers in defineenumeration

2009-03-05 Thread Aditya Mahajan

On Thu, 5 Mar 2009, Xan wrote:


En/na Xan ha escrit:

Hi,

Is it possible to put numerstyle=boldstyle in this enumeration?:
\defineenumeration
 [exercici]
 [text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em, 
stopper={.\space},location=serried,titleleft=(,titleright=),width=fit,headstyle=\ss] 


For the other hand, is it possible to make it's a framed?

Thanks a lot,
Xan.


Aditya,

numberstyle=bold

does not work for me.


Sorry. I should have checked. Enumerations do not have a numberstyle key. 
It should.


You can abuse the left and right keys to get a bold number, eg.

\defineenumeration
 [exercici]
 [textcolor=middlecyan, text=Exercici,
  headstyle=sans,
  left={\bgroup\bf},right={\egroup}]



Hans, do you plan to rework on core-des anytime soon? It could definitely 
use some cleanup.


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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Up the contents of table

2009-03-05 Thread Xan

En/na Willi Egger ha escrit:

There is an option [align=lohi] which should do what you want.

Willi
On Mar 5, 2009, at 4:30 PM, Xan wrote:


En/na Xan ha escrit:

En/na Wolfgang Schuster ha escrit:


Am 05.03.2009 um 09:09 schrieb Xan:

Thanks, Wolfgang, but I refered to contents of the table not the 
caption of the table. The contents of this table are: pictures in 
up and text in bottom. I want to put all together in the up of 
the table.


Sorry but with your question only there is no way to understand 
what you mean,
I texed now your example (please add next time \starttext ... 
\stoptext and

load all required packages) and saw what you mean.

The two pictures and the text in the middle column should align at 
the top
of the table. Natural tables are better suited for this kind of 
table because

you can use the 'align' key.

\bTABLE[frame=off,align=middle,width=4.5cm,background=color,backgroundcolor=gray] 


  \bTR
\bTD[nx=3,foregroundstyle=\ssbf] Com s'identifica una funció 
mitjançant la seva representació gràfica? \eTD

  \eTR
  \bTR[topframe=on,bottomframe=on]
\bTD graph 1 \eTD
\bTD text \eTD
\bTD graph 2 \eTD
  \eTR
\eTABLE

Wolfgang


Wolfgang, is there any way of align vertically the content of one cell?
I'm thinking about

bTABLE[frame=off,align=middle,width=4.5cm,background=color,backgroundcolor=gray] 


 \bTR
   \bTD[nx=3,foregroundstyle=\ssbf] Com s'identifica una funció 
mitjançant la seva representació gràfica? \eTD

 \eTR
 \bTR[topframe=on,bottomframe=on]
   \bTD graph 1 \eTD
   \bTD  [valign=middle] text \eTD
   \bTD graph 2 \eTD
 \eTR
\eTABLE

Regards,
Xan.
___ 

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-context

webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___ 



___ 

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-context

webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___ 


Thanks.
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MKIV: problem with synonyms

2009-03-05 Thread Hans Hagen

Kevin D. Robbins wrote:

Hi Hans,

When you earlier said that sorting was supported in cont-xp, did you mean it
should be working right now, or that you are only going to fix sorting in
cont-xp?


indeed, only fix in xp which will become normal mkiv as soon as i have 
time to merge back the code (which is rather soon)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] paragraph question

2009-03-05 Thread Hans Hagen

Alan Stone wrote:

On Thu, Mar 5, 2009 at 5:09 PM, Hans Hagen pra...@wxs.nl wrote:

Alan Stone wrote:

Thanks Wolfgang, however I'm looking for a solution without adding
additional commands to the text source.

Requires to switch to the LuaTeX list ?

that does not help you as taco and i are on both lists

i can imagine that mkiv at some point privides something but it needs way
more thinking (we have this end of par problem since ages) if only because
what you see as end of par might actually be just before the final skips
that ends a par

something everyendpar is on our todo list but later in the luatex project

Hans


Ok.

In the meantime, an idea - for what it's worth...

Would it be possible to somehow, in the typesetting process, dummy
typeset the first paragraph of each chapter (in memory or in a dummy
output file) to determine whether its number of lines = 1 or  1, or
determine its total number of lines, and work from there ?


a luatex/mkiv solution is actually rather simple but i'm in the middle 
of math stuff so it has to wait some time


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] overarc

2009-03-05 Thread Hans Hagen

David Arnold wrote:

All,

How can I place an overarc over some text, such as in \overarc{AB}?


well, this does not show how it should look -)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] boldstyle for numbers in defineenumeration

2009-03-05 Thread Xan

En/na Aditya Mahajan ha escrit:

On Thu, 5 Mar 2009, Xan wrote:


En/na Xan ha escrit:

Hi,

Is it possible to put numerstyle=boldstyle in this enumeration?:
\defineenumeration
 [exercici]
 [text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em, 
stopper={.\space},location=serried,titleleft=(,titleright=),width=fit,headstyle=\ss] 


For the other hand, is it possible to make it's a framed?

Thanks a lot,
Xan.


Aditya,

numberstyle=bold

does not work for me.


Sorry. I should have checked. Enumerations do not have a numberstyle 
key. It should.


You can abuse the left and right keys to get a bold number, eg.

\defineenumeration
 [exercici]
 [textcolor=middlecyan, text=Exercici,
  headstyle=sans,
  left={\bgroup\bf},right={\egroup}]



Hans, do you plan to rework on core-des anytime soon? It could 
definitely use some cleanup.


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-context

webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___ 


Thanks.

The textcolor does not work. I have to put in in text field.
The example that works is:

\defineenumeration
 [exercici]
 
[text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,

stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss]


Xan.
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] boldstyle for numbers in defineenumeration

2009-03-05 Thread Aditya Mahajan

On Thu, 5 Mar 2009, Xan wrote:


numberstyle=bold

does not work for me.



The textcolor does not work. I have to put in in text field.
The example that works is:


Hans: does it make sense to add text(style|color|command) and 
number(style|color|command) keys to enumerations? I could patch 
core-des.tex with these keys.


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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] experimental repository in mtx-update

2009-03-05 Thread Mojca Miklavec
On Tue, Mar 3, 2009 at 20:08, Vyatcheslav Yatskovsky wrote:

 afaik beta is the real beta and experimental often alpha


 OK, can I download experimental version using mtx-update? The code comment
 says 'experimental is not implemented'. Is it?

Experimental repository is indeed not functional at the moment. (I'm
away at the moment, sorry for my unresponsiveness.)

I should figure out what goes wrong with source equals destination,
but there have been no changes made there recently.

Mojca
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] boldstyle for numbers in defineenumeration

2009-03-05 Thread Wolfgang Schuster


Am 05.03.2009 um 19:48 schrieb Aditya Mahajan:


The textcolor does not work. I have to put in in text field.
The example that works is:


Hans: does it make sense to add text(style|color|command) and  
number(style|color|command) keys to enumerations? I could patch core- 
des.tex with these keys.


Hi Aditya, if you do this, can you also integrate the headalign key  
which is mentioned in core-des?


Wolfgang

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] boldstyle for numbers in defineenumeration

2009-03-05 Thread Aditya Mahajan

On Thu, 5 Mar 2009, Wolfgang Schuster wrote:



Am 05.03.2009 um 19:48 schrieb Aditya Mahajan:


The textcolor does not work. I have to put in in text field.
The example that works is:


Hans: does it make sense to add text(style|color|command) and 
number(style|color|command) keys to enumerations? I could patch 
core-des.tex with these keys.


Hi Aditya, if you do this, can you also integrate the headalign key which is 
mentioned in core-des?


What should headalign do?

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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Eliminate space between float and caption

2009-03-05 Thread Michael Bynum
Thanks, that was the file I was looking for.  It seems I was correctly
specifying the term inbetween=, but it would seem the inbetween
distance is based on the body font as opposed to the caption font.  As
a result, if a smaller font is used in the caption, inbetween= no
longer results in the caption touching the bottom of the figure.  Is
there a way to base the inbetween distance on the caption font size?

Mike

\starttext
\setupcaption[figure][style=tfa,inbetween=]
\reservefigure
  [height=2cm,width=10cm,frame=on][here][fig:reservation]
  {An example of a reservation.}
\setupcaption[figure][style=tf,inbetween=]
\reservefigure
  [height=2cm,width=10cm,frame=on][here][fig:reservation]
  {An example of a reservation.}
\setupcaption[figure][style=tfx,inbetween=]
\reservefigure
  [height=2cm,width=10cm,frame=on][here][fig:reservation]
  {An example of a reservation.}
\setupcaption[figure][style=tfxx,inbetween=]
\reservefigure
  [height=2cm,width=10cm,frame=on][here][fig:reservation]
  {An example of a reservation.}
\stoptext


On Thu, Mar 5, 2009 at 1:16 PM, Willi Egger w.eg...@boede.nl wrote:
 You can find the document at
 http://www.pragma-ade.com/dir?path=general/manuals

 Willi
 On Mar 5, 2009, at 4:55 PM, Michael Bynum wrote:

 I am trying to find a way to reduce/eliminate the space between a
 figure and a caption.  The default amount looks rather large to me:
 larger than the spacing between the caption and the body text.  I
 tried to use the inbetween option in \setupcation, but I can only seem
 to increase the space between the figure and caption and not reduce
 it.  I saw a reference to details.pdf in the mailing list about more
 advanced examples of captions, but when I went to
 www.pragma-ade.com/temp the page no longer exists and I couldn't find
 details.pdf.

 Thanks,
 Mike

 ___
 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-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

 ___

 ___
 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-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] boldstyle for numbers in defineenumeration

2009-03-05 Thread Wolfgang Schuster


Am 05.03.2009 um 20:19 schrieb Aditya Mahajan:


On Thu, 5 Mar 2009, Wolfgang Schuster wrote:



Am 05.03.2009 um 19:48 schrieb Aditya Mahajan:


The textcolor does not work. I have to put in in text field.
The example that works is:
Hans: does it make sense to add text(style|color|command) and  
number(style|color|command) keys to enumerations? I could patch  
core-des.tex with these keys.


Hi Aditya, if you do this, can you also integrate the headalign key  
which is mentioned in core-des?


What should headalign do?



It should control the alignment of the headtext.

\setuplayout
  [backspace=5cm,
   leftmargin=4cm,
   width=12cm]

\definedescription
  [description]
  [location=margin,
   width=\leftmarginwidth]

\showframe

\starttext

\description{text} bla bla bla

\description{longer text} bla bla bla

%\setupdescriptions[description][headalign=flushright]
\setupdescriptions[description][text=\hfill]

\description{text} bla bla bla

\description{longer text} bla bla bla

\stoptext

Wolfgang

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] boldstyle for numbers in defineenumeration

2009-03-05 Thread Aditya Mahajan

On Thu, 5 Mar 2009, Wolfgang Schuster wrote:



Am 05.03.2009 um 20:19 schrieb Aditya Mahajan:


On Thu, 5 Mar 2009, Wolfgang Schuster wrote:



Am 05.03.2009 um 19:48 schrieb Aditya Mahajan:


The textcolor does not work. I have to put in in text field.
The example that works is:
Hans: does it make sense to add text(style|color|command) and 
number(style|color|command) keys to enumerations? I could patch 
core-des.tex with these keys.


Hi Aditya, if you do this, can you also integrate the headalign key which 
is mentioned in core-des?


What should headalign do?



It should control the alignment of the headtext.

\setuplayout
[backspace=5cm,
 leftmargin=4cm,
 width=12cm]

\definedescription
[description]
[location=margin,
 width=\leftmarginwidth]

\showframe

\starttext

\description{text} bla bla bla

\description{longer text} bla bla bla

%\setupdescriptions[description][headalign=flushright]
\setupdescriptions[description][text=\hfill]

\description{text} bla bla bla

\description{longer text} bla bla bla

\stoptext


Thanks. I first guess was

\defineframed
  [framehead]
  [location=low,width=\leftmarginwidth,align=flushright,frame=off]

\setupdescriptions[description][text=,location=command,headcommand=\framehead]

but this does not work. You can also use, but it will be nice to have a 
headalign key.


\setupdescriptions[description][command=\framehead]

\description{text} bla bla bla

\description{longer text} bla bla bla

My only trouble with core-des is that it is ugly. It is an old module, and 
lot of features have been added in an ad-hoc manner with time. I hope that 
at some stage it will be rewritten in the new strc-* style.


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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] [Fwd: Re: math preview in emacs]

2009-03-05 Thread Mohamed Bana

has anyone else looked at providing math preview with ConTeXt?
---BeginMessage---

On Thu, 5 Mar 2009, Mohamed Bana wrote:


hi Aditya,

maybe i should have been more explicit in my last email.  auctex supports
maths preview for latex, i was wondering how far you got on it.


Hi Mohamed,

I did not explore emacs too much. At present for context, I find vim much 
better (simply because I know vim very well). I rarely use latex these 
days, so there is not much incentive to learn emacs. I might look at this 
again in future if I have to use latex in a large project.


One thing that I never understood was why it is hard to port preview-latex 
to ConTeXt, especially for displays. For displays and floats, all preview 
latex does is create a pdf/png; in ConTeXt, we can get that easily by 
using \startTEXpage ... \stopTEXpage around the environment. I assume that 
this would be easy for someone who knows the inner working of AucTeX. For 
me it is a long term project, which I will get to some day.


Best,
Aditya
---End Message---
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to increase weight of a font?

2009-03-05 Thread Wei-Wei Guo

Hi Hans,

Do you mean

  \definefontsynonym[ZhSerif][name:SimSun][properties=???]

Could you tell me how to do?

Thank you!

Best wishes,
Wei-Wei Guo


ntg-context-requ...@ntg.nl 写道:

Message: 3
Date: Thu, 05 Mar 2009 17:13:16 +0100
From: Hans Hagen pra...@wxs.nl
Subject: Re: [NTG-context] How to increase weight of a font?
To: mailing list for ConTeXt users ntg-context@ntg.nl
Message-ID: 49affa1c.8040...@wxs.nl
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Wei-Wei Guo wrote:

Hi everyone,


I need to increase the eight of a Chinese font to make it look like a 
bold font. Is there anyway to do so?


properties

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread Aditya Mahajan

On Thu, 5 Mar 2009, luigi scarso wrote:


On Thu, Mar 5, 2009 at 12:09 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:


Am 05.03.2009 um 01:17 schrieb luigi scarso:


\starttext
%%% TeX version
\bTABLE
\dorecurse{5}
{\bTR\expandafter \bTD \recurselevel. \eTD\expandafter
       \bTD \recurselevel  \eTD\eTR}
\eTABLE

\dorecurse{2}
{\recurselevel. \recurselevel\crlf}


And you think it's a good idea to use \expandafter in your document?

TeX  version, not context ... :)
btw
\expandafer is not so bad, if used moderatly .



\expanded is the tool for users to get this result without knowledge
about TeX internals and expansion, this is from core-ntb:

% permits \expanded{\bTD ... \eTD}

\unexpanded\def\eTR{}
\unexpanded\def\eTD{}
\unexpanded\def\eTH{}
\unexpanded\def\eTN{}

yes, of course one need to know about \expandafter... so is not so different .
But it's context style.




%%% luatex version
\startluacode
  tprint = function(s) tex.sprint(tex.ctxcatcodes,s) end
  tprint('\\bTABLE')
  for j = 1,5 do
      tprint('\\bTR')
      tprint('\\bTD' .. j .. '.' .. '\\eTD' .. '\\bTD' .. j .. '\\eTD')
      tprint('\\eTR')
  end
  tprint('\\eTABLE')
\stopluacode
\stoptext


Nice solution and real alternative for package writers to avoid \expandafter
and \expanded but nothing for a normal user, I should keep this in my mind.

Are you sure ?
What is a normal user ?
As soon as you use \dorecurse , you become a programmer .

And sooner or later, everyone become a programmer, because it's
impossible to write a format that satisfied
all your needs .


My summary of this thread:
http://randomdeterminism.wordpress.com/2009/03/05/tex-programming-the-past-the-present-and-the-future/

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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread luigi scarso

 My summary of this thread:
 http://randomdeterminism.wordpress.com/2009/03/05/tex-programming-the-past-the-present-and-the-future/
It's exactly what I think .

Thank you very much.


-- 
luigi
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___