Re: [NTG-context] Bug with type .. ?

2006-07-28 Thread Aditya Mahajan
On Fri, 28 Jul 2006, Aditya Mahajan wrote:

 Isn't \type.. be supposed to be equivalent to \type{..} ?

 \title{some \type{thing} }

 works perfectly but

Actually this does not work as expected. The font does not change to 
monotype. Is that delebrate?

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Magazine layout

2006-07-28 Thread Fidel Viegas
Hi Aditya,Vit Zyka posted some notes on an impressive book layout that he did awhile ago.
http://archive.contextgarden.net/message/20060525.084738.3f1d8e4a.en.htmlThanks for the pointer. That is a good example.The magazines use s-mag-01.tex for layout. Most magazines of pragmawebsite have the source code at the end of the magazine. The sources
of the magazines and context manuals are available at the svnrepository. You can browse it at
http://context.aanhet.net/svn/manualsor download the manuals from svn://ctx.pragma-ade.nl/manuals
I din't know of this repository. I tried to search all over the site but couldn't find it.So, once again thanks for the pointer.I think that now I have some good material I can study.All the best,
Fidel.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] title of combinedlist

2006-07-28 Thread Steffen Wolfrum
Hi,

how do I define the title of a combined list?

- completecontent has a predefined title (Content or Inhalt): how to  
change this?
- my own defined combined lists don't show any title: where to  
define and how to show up?

Steffen
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Russian letters transliterated

2006-07-28 Thread Arkady Shraer
Hello,

I updated ConTeXt as in updating context on Ubuntu 6.06 post and it
worked, moreover I got russian hyphenation working out of the box.

But I have a little problem: all my cyrillic letters displayed as
transliterated latin letters (or letter codes).

What should I do in this case?

Arkady
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] setuphead

2006-07-28 Thread Hans Hagen
Steffen Wolfrum wrote:
 Hi,

 I was sure it should be quite standard, but I couldn't figure our how  
 to set a heading like this:

 Chapter label/number (centered,small,italic)
 (linebreak)
 Chapter titel (centered,bigger,bold)

 Is there a command=... to be written, or could it be achieved by  
 combining the various options that setuphead has predefined?
   
\setupheadertexts[\setups{header}]

\startsetups header
  \framed
[align=middle,strut=no,offset=overlay]
{\start
   \switchtobodyfont[small]\it 
   Chapter \getmarking[chapternumber]\par
 \stop
 \start
   \bf
   \getmarking[chapter]
 \stop}   
\stopsetups 

etc etc 


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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] section versus subject

2006-07-28 Thread Hans Hagen
Steffen Wolfrum wrote:
 Hi,

 maybe another quite ... basic question:

 What's wrong about \subject?
 I assumed that the only difference between \section and \subject is  
 numbering or not.

 But why does \subject not appear in the TOC (see below)?



 \starttext

 \definecombinedlist[content]
 [section,subject]

 \completecontent

 \page

 \section{section}

 \subject{subject}

 \stoptext
   
because they are configured not to

if you use more structure, like

\startfrontmatter
\section{...}
\stopfrontmatter

you get unnumbered sections in the toc 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bug with type .. ?

2006-07-28 Thread Hans Hagen
Aditya Mahajan wrote:
 Isn't \type.. be supposed to be equivalent to \type{..} ?

 \title{some \type{thing} }

 works perfectly but

 \title{some \typething}
   
  will not work in commands that get an argument because it is 
related to catcode changes

we could use \scantokens if there was not this space-creeps-in-after 
\cs  problem)

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bug with type .. ?

2006-07-28 Thread Hans Hagen
Aditya Mahajan wrote:
 On Fri, 28 Jul 2006, Aditya Mahajan wrote:

   
 Isn't \type.. be supposed to be equivalent to \type{..} ?

 \title{some \type{thing} }

 works perfectly but
 

 Actually this does not work as expected. The font does not change to 
 monotype. Is that delebrate?
   
no, a bug 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bug with type .. ?

2006-07-28 Thread Hans Hagen
Aditya Mahajan wrote:
 On Fri, 28 Jul 2006, Aditya Mahajan wrote:

   
 Isn't \type.. be supposed to be equivalent to \type{..} ?

 \title{some \type{thing} }

 works perfectly but
 

 Actually this does not work as expected. The font does not change to 
 monotype. Is that delebrate?

   
rather nasty ... 

in setupcommonverbatim you will see: 

  %\def\verbatimfont{\typingparameter\c!style\normalnoligatures\font}%

being replaced by  

 
\def\verbatimfont{\dosetfontattribute{\currenttypingclass\currenttyping}\c!style\normalnoligatures\font}%

now, font attributed are ignored in titles and such so we need

 
\def\verbatimfont{\redoconvertfont\dosetfontattribute{\currenttypingclass\currenttyping}\c!style\normalnoligatures\font}%


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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Russian letters transliterated

2006-07-28 Thread Hans Hagen
Arkady Shraer wrote:
 Hello,

 I updated ConTeXt as in updating context on Ubuntu 6.06 post and it
 worked, moreover I got russian hyphenation working out of the box.

 But I have a little problem: all my cyrillic letters displayed as
 transliterated latin letters (or letter codes).

 What should I do in this case?
   
can you make a test file so that we can see what happens?

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] title of combinedlist

2006-07-28 Thread Steffen Wolfrum

Am 28.07.2006 um 11:52 schrieb Hans Hagen:

 Steffen Wolfrum wrote:
 Hi,

 how do I define the title of a combined list?

 - completecontent has a predefined title (Content or Inhalt): how to
 change this?

Yes, found this in lang-* :

\setupheadtext [de] [content=Inhaltsverzeichnis]
\placecombinedlist[content]

 - my own defined combined lists don't show any title: where to
 define and how to show up?

 maybe just use \title{whatever} followed by \placecombinedlist

No, doesn't work.

But when I use the syntax as above
my own combinedlist (just some sections less than content) 

\definecombinedlist[inhaltklein]
[EbeneNull,EbeneEins,EbeneEinsOhne,EbeneZwei,EbeneZweiOhne]
\setupcombinedlist[inhaltklein]  
[alternative=c,aligntitle=no,width=0.5cm]

... immediately ends up in an error:

! Missing \endcsname inserted.
to be read again
\@@ihinhaltkleincriterium
\dosetfilterlevel ...l {\csname \??by \askedlevel
   \endcsname }\ifx  
\byaskedl...

\dosettoclevel ...alue {#1#2\c!criterium }}\empty
   \else  
\doifelsevaluenothin...

\doplacecombinedlist ...]\dosettoclevel \??ih {#1}
   \edef  
\combinedlist {\getv...
to be read again
\startbodymatter
l.27 \startbodymatter

?


Steffen
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] title of combinedlist (solved)

2006-07-28 Thread Steffen Wolfrum
After fixing a stupid MyBug in my project's stucture it works:

\starttext
\mainlanguage[deo]
\definecombinedlist[content][chapter,section]
\setupheadtext [de] [content=Inhaltsverzeichnis]
\completecontent
\definecombinedlist[MyContent][chapter,section]
\setupheadtext [de] [MyContent=Inhaltsübersicht]
\completeMyContent
\chapter{chapter}
\section{section}
\stoptext

Steffen



Am 28.07.2006 um 13:40 schrieb Steffen Wolfrum:


 Am 28.07.2006 um 11:52 schrieb Hans Hagen:

 Steffen Wolfrum wrote:
 Hi,

 how do I define the title of a combined list?

 - completecontent has a predefined title (Content or Inhalt):  
 how to
 change this?

 Yes, found this in lang-* :

 \setupheadtext [de] [content=Inhaltsverzeichnis]
 \placecombinedlist[content]

 - my own defined combined lists don't show any title: where to
 define and how to show up?

 maybe just use \title{whatever} followed by \placecombinedlist

 No, doesn't work.

 But when I use the syntax as above
 my own combinedlist (just some sections less than content) 

 \definecombinedlist[inhaltklein]
 [EbeneNull,EbeneEins,EbeneEinsOhne,EbeneZwei,EbeneZweiOhne]
 \setupcombinedlist[inhaltklein]   
 [alternative=c,aligntitle=no,width=0.5cm]

 ... immediately ends up in an error:

 ! Missing \endcsname inserted.
 to be read again
 \@@ihinhaltkleincriterium
 \dosetfilterlevel ...l {\csname \??by \askedlevel
\endcsname }\ifx
 \byaskedl...

 \dosettoclevel ...alue {#1#2\c!criterium }}\empty
\else
 \doifelsevaluenothin...

 \doplacecombinedlist ...]\dosettoclevel \??ih {#1}
\edef
 \combinedlist {\getv...
 to be read again
 \startbodymatter
 l.27 \startbodymatter

 ?


 Steffen
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] definesynonyms

2006-07-28 Thread Bernd Militzer
Am 27.07.2006 um 07:54 schrieb Aditya Mahajan:


 You can also do

 \def\PID[#1]#2[#3]{\getparameters[PID#1][#3]}
 % #2 is to gobble spaces


thanks for that hint Aditya!

Bernd
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] definesynonyms

2006-07-28 Thread Taco Hoekwater


Bernd Militzer wrote:
 Am 27.07.2006 um 07:54 schrieb Aditya Mahajan:
 
 
You can also do

\def\PID[#1]#2[#3]{\getparameters[PID#1][#3]}
% #2 is to gobble spaces
 
 
 thanks for that hint Aditya!

There is also this (more formal) solution:

   \def\PID{\dodoubleempty\doPID}
   \def\doPID[#1][#2]{\getparameters[PID#1][#2]}

The core internal macro \dodoubleempty creates empty []
groups if they are not provided in the input. There is
also \dosingleempty etc, upto \doseventupleempty

Cheers, Taco




___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] definesynonyms

2006-07-28 Thread Bernd Militzer

Am 28.07.2006 um 16:34 schrieb Taco Hoekwater:


 There is also this (more formal) solution:

\def\PID{\dodoubleempty\doPID}
\def\doPID[#1][#2]{\getparameters[PID#1][#2]}

thanks Taco!

Cheers, Bernd
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] setuphead

2006-07-28 Thread Steffen Wolfrum
You mean like this?

\setuphead[chapter][command=\midaligned,numbercommand=\it,inbetween= 
\crlf,textcommand=\bf]


But what should inbetween be to force a linebreak?


Steffen


On 27.07.2006, at 15:25, Taco Hoekwater wrote:



 Steffen Wolfrum wrote:
 Hi,

 I was sure it should be quite standard, but I couldn't figure our how
 to set a heading like this:

 Chapter label/number (centered,small,italic)
 (linebreak)
 Chapter titel (centered,bigger,bold)

 Is there a command=... to be written, or could it be achieved by
 combining the various options that setuphead has predefined?

 I guess you need numbercommand,inbetween and textcommand. Not a
 definitive answer, but I am positive that will work.

 Taco

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] setuphead

2006-07-28 Thread Steffen Wolfrum
No, I don't mean header I mean heading, title, name of a section!

Steffen



On 27.07.2006, at 17:23, Hans Hagen wrote:

 Steffen Wolfrum wrote:
 Hi,

 I was sure it should be quite standard, but I couldn't figure our how
 to set a heading like this:

 Chapter label/number (centered,small,italic)
 (linebreak)
 Chapter titel (centered,bigger,bold)

 Is there a command=... to be written, or could it be achieved by
 combining the various options that setuphead has predefined?

 \setupheadertexts[\setups{header}]

 \startsetups header
   \framed
 [align=middle,strut=no,offset=overlay]
 {\start
\switchtobodyfont[small]\it
Chapter \getmarking[chapternumber]\par
  \stop
  \start
\bf
\getmarking[chapter]
  \stop}
 \stopsetups

 etc etc


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

 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] sorting commalist?

2006-07-28 Thread Hans van der Meer

On Jul 24, 2006, at 10:18, Taco Hoekwater wrote:


 Hi Hans,

 Hans van der Meer wrote:
 In the article Context System macros, part1: general macros  
 there are
 all sorts of interesting and useful macros. Among these I have set my
 eye on the processing of commalists.

 I should extend that document, but I've lost the source :-(

Well, losing the source of the first article is not such a problem as  
finishing the second one, I guess :-)


 Question: is there a context macro that takes a commalist (either  
 in a
 token register or \the\tokenregister form) that returns a sorted
 commalist (ascending or descending doesnt matter to me for the  
 moment).

 There is \sortcommalist (syst-ext.tex), but it only works for lists
 of numbers, TeX does not know how to sort words. That type of sorting
 has to be done externally.


Is there a simple manner to sort the list externally and get it back  
for further processing? Otherwise, how are the indexes sorted?

Hans van der Meer



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] whitespace

2006-07-28 Thread Hans van der Meer
Why does \startframedtext does not honor the outside setting by \setupwhitespace? And do I have to use inner?Here follows a minimal example\starttext\setupwhitespace[big]line1\par line2\par% next no big space between the lines\startframedtextline1\par line2\par\stopframedtext% next has big space between the lines\startframedtext[inner={\setupwhitespace[big]}]line1\par line2\par\stopframedtext\stoptextHans van der Meer ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \Word and friends

2006-07-28 Thread Hans van der Meer
After \def\Example{example}	\Word{\Example} gives exampleSo I need	\expanded{\Word{\Example}} to get Examplebut	\WORD{\Example}} does give EXAMPLEI did not expect that. Is this the intended behaviour?Hans van der Meer ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] sorting commalist?

2006-07-28 Thread Taco Hoekwater
Hans van der Meer wrote:
 
 Is there a simple manner to sort the list externally and get it back  
 for further processing? Otherwise, how are the indexes sorted?

Externally, using texexec functionality. Something like this
works well enough, I guess (but I normally sort my stuff by
piping it through the unix sort command):


% This sorts the list contained in it's argument
\def\sortalphacommacommand#1%
   {\definesorting[listsort][listsorts]%
\processcommacommand[#1]\listsort
\def\sortedcommalist{}%
\def\makesortedlist##1%
{\doglobal\appendtocommalist{##1}\sortedcommalist}%
\setupsorting[listsort][criterium=all,command=\makesortedlist]%
\placelistoflistsorts
\let#1\sortedcommalist}


\def\citylist{Londen,Berlijn,New York,Parijs,Amstelveen}

\sortalphacommacommand\citylist


Cheers, taco




___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bug with type .. ?

2006-07-28 Thread Aditya Mahajan
On Fri, 28 Jul 2006, Hans Hagen wrote:

 Aditya Mahajan wrote:
 On Fri, 28 Jul 2006, Aditya Mahajan wrote:


 Isn't \type.. be supposed to be equivalent to \type{..} ?

 \title{some \type{thing} }

 works perfectly but


 Actually this does not work as expected. The font does not change to
 monotype. Is that delebrate?


 rather nasty ...

 in setupcommonverbatim you will see:

  %\def\verbatimfont{\typingparameter\c!style\normalnoligatures\font}%

 being replaced by

 \def\verbatimfont{\dosetfontattribute{\currenttypingclass\currenttyping}\c!style\normalnoligatures\font}%

 now, font attributed are ignored in titles and such so we need

 \def\verbatimfont{\redoconvertfont\dosetfontattribute{\currenttypingclass\currenttyping}\c!style\normalnoligatures\font}%

Thanks. This works correctly.

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bug with type .. ?

2006-07-28 Thread Aditya Mahajan
On Fri, 28 Jul 2006, Hans Hagen wrote:

 Aditya Mahajan wrote:
 Isn't \type.. be supposed to be equivalent to \type{..} ?

 \title{some \type{thing} }

 works perfectly but

 \title{some \typething}

   will not work in commands that get an argument because it is
 related to catcode changes

Ah. Makes sense.

 we could use \scantokens if there was not this space-creeps-in-after
 \cs  problem)

Well, found a workaround. Not sure if this one is a bug or a feature 
(is a feature to me)

\title{some \type{\thing\{and\}}}

However, things get real weird.

\title{\type{$\Pr\{A\}$}}

gives me

! Extra }, or forgotten $.
recently read }

argument ...tofoneargument {\type {$\Pr \{A\}$}}
\endstrut }\xdef 
\localhe...

\@@ko::normal ...box {\localheadsetup \noindent #2
   }\fi
\doplaceheadtext ...attributes \dostopattributes }
   }\fi 
\endheadplacement {#1...

\dodododoconstructhead ...arking [#1\v!number ]{}}
   \writesection 
{#1}{-}{#4}\...
l.69 \title{\type{$\Pr\{A\}$}}

which I think is the currect behaviour.

There is really no need to change anything. I am happy with Do not 
use \type inside argument. The unexpected can happen.

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context