Re: [NTG-context] Chapter endings

2013-11-03 Thread Wolfgang Schuster

Am 02.11.2013 um 21:54 schrieb Francisco Gracia :

> There is plenty of information available about how to deal with issues 
> related to chapter openings (*headings*) in *Context* but I have not found 
> any related to document endings.
> 
> I would like to end the chapters of a book with some small decorative 
> element, be it text or graphics; let us call it a *Fleuron*. Just putting it 
> in the last line of the text file to be typeset, one can take for sure that 
> earlier or later it will end appearing as the only element of the last page 
> of the product of some run. To avoid this undesirable outcome, it seems to me 
> that one is forced to provide some help to *Context* via some text marks or 
> some code, but I have not been able to conjecture what they should be.
> 
> The clearest arrangement would seem to be the inclusion at the end of the 
> source document of some *Context* instructions equivalent to the following 
> pseudocode:
> 
> if *Fleuron* fits into the current page:
> typeset *Fleuron*
> 
> But how do I formulate the condition? How do I know what is the *current 
> page*, what is the size that *Context* has calculated for *Fleuron* and what 
> is the amount of space remaining in the page?
> 
> One can imagine that this method could even be helpful in other situations of 
> the typesetting operation not related to the last page.
> 
> Does someone know how to handle it?


You can use leaders to place a box with the symbols/ornament because the 
disappear when they are placed at the begin of a page.

\def\Fleuron
  {\par
   \leaders\vbox to \lineheight{MIDDLE OF THE PAGE}\vfil}

\setuplayout[lines=10]  

\starttext

% Method 1

\dorecurse{5}{Line \recurselevel\par}

\Fleuron

\page

\dorecurse{10}{Line \recurselevel\par}

\Fleuron

\page

\dorecurse{5}{Line \recurselevel\par}

\Fleuron

\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] SimpleSlides

2013-11-03 Thread Vyatcheslav Y.
Thank you, Aditya. Thomas already sent me working version.

Best Regards,
Vyatcheslav


simpleslides-s-Swoosh.tex
Description: TeX document
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] reference error

2013-11-03 Thread Wolfgang Werners-Lucchini
> \starttext
> \startchapter
> [ title=Vorwort, reference=chap:vorwort with space at the end ]
> \stopchapter
> 
> \startchapter
> [ title=Vorwort, reference={chap:vorwort2 with space at the end} ]
> \stopchapter
> 
> \startchapter
> [ title=Vorwort, reference={chap:vorwort3 with space at the end }]
> \stopchapter
> 
> \startchapter
> [ title=Vorwort, reference=chap:vorwort without space at the end]
> \stopchapter
> 
> \startchapter
> [ title=Vorwort, reference={chap:vorwort2 without space at the end}]
> \stopchapter
> 
> \startchapter
> \ConTeXt\ does not support space at the end of references:
> Siehe
> \in{Kapitel}[chap:vorwort with space at the end ],
> \in{Kapitel}[chap:vorwort2 with space at the end ],
> \in{Kapitel}[chap:vorwort3 with space at the end ],
> \in{Kapitel}[chap:vorwort without space at the end] and
> \in{Kapitel}[chap:vorwort2 without space at the end]
> \stopchapter
> \stoptext

Only the last two are working! Not the second!!!
Not very intuitive at all.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [right=),stopper=] for all \startitemize[a]

2013-11-03 Thread Wolfgang Schuster

Am 03.11.2013 um 20:22 schrieb Aditya Mahajan :

> On Sun, 3 Nov 2013, Wolfgang Schuster wrote:
> 
>> 
>> Am 03.11.2013 um 19:04 schrieb Xan :
>> 
>>> Hi,
>>> 
>>> Is possible to set \setupitemize *only* applying for \startitemize[a] with 
>>> have [right=),stopper=]?
>>> 
>>> I did not find in wiki. Only for levels, not for symbols type.
>> 
>> No, this is not supported.
> 
> One option is to use a dedicated itemgroup:
> 
> \defineitemgroup[parenlist][symbol=a, right=), stopper=]
> \starttext
> \startitemize[n]
>  \item One
>  \item Two
>\startparenlist
>\item One
>\item Two
>\stopparenlist
>  \item Three
>\startitemize[n]
> \item One
> \item Two
>   \stopitemize
> \stopitemize
> \stoptext

Another trick is to use custom conversion which contain the delimiters and 
disable the stopper.

\defineconversion[xan:a][a),b),c),d),e),f),g),h),i),j),k),l),…]
\defineconversion[xan:n][1.,2.,3.,4.,5.,6.,7.,8.,9.,10.,11.,…]

\starttext

\setupitemize[each][stopper=]

\startitemize[xan:a]
\dorecurse{10}{\startitem Item \recurselevel \stopitem}
\stopitemize

\startitemize[xan:n]
\dorecurse{10}{\startitem Item \recurselevel \stopitem}
\stopitemize

\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [right=),stopper=] for all \startitemize[a]

2013-11-03 Thread Aditya Mahajan

On Sun, 3 Nov 2013, Wolfgang Schuster wrote:



Am 03.11.2013 um 19:04 schrieb Xan :


Hi,

Is possible to set \setupitemize *only* applying for \startitemize[a] with have 
[right=),stopper=]?

I did not find in wiki. Only for levels, not for symbols type.


No, this is not supported.


One option is to use a dedicated itemgroup:

\defineitemgroup[parenlist][symbol=a, right=), stopper=]
\starttext
\startitemize[n]
  \item One
  \item Two
\startparenlist
\item One
\item Two
\stopparenlist
  \item Three
\startitemize[n]
 \item One
 \item Two
   \stopitemize
\stopitemize
\stoptext

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [right=),stopper=] for all \startitemize[a]

2013-11-03 Thread Wolfgang Schuster

Am 03.11.2013 um 19:04 schrieb Xan :

> Hi,
> 
> Is possible to set \setupitemize *only* applying for \startitemize[a] with 
> have [right=),stopper=]?
> 
> I did not find in wiki. Only for levels, not for symbols type.

No, this is not supported.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] [right=),stopper=] for all \startitemize[a]

2013-11-03 Thread Xan
Hi,

Is possible to set \setupitemize *only* applying for \startitemize[a] with have 
[right=),stopper=]?

I did not find in wiki. Only for levels, not for symbols type.

Thanks in advance,
Xan

PS: Please Ccme
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \frown in ConTeXt

2013-11-03 Thread Aditya Mahajan

On Tue, 29 Oct 2013, Xan wrote:


Hi,

I just want to make an arc to a word. I found that 
[http://tex.stackexchange.com/questions/15468/frown-and-mathop-stackrel-overset]
 but it's LaTeX or XeTeX centric.

Is there any equivalent in ConTeXt?


$\overparent{MMM}$

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] SimpleSlides

2013-11-03 Thread Aditya Mahajan

On Fri, 1 Nov 2013, Vyatcheslav Y. wrote:


Hi,

Please, help me with SimpleSlides module (Swoosh style), my old
presentation which I'm trying to update isn't working.

-- Minimal example is: --

\usemodule[simpleslides]

[font=Gothic,

style=Swoosh]


\setupTitle

[ title={\\ Title},

author={Author},

date={}]


\starttext


\placeTitle


\stoptext


-- Result: --


system > tex > error on line 150 in file
C:/contextminimal/texmf-modules/tex/context/third/simpleslides/simpleslides-s-Swoosh.tex:
LuaTeX error ...


150 >> \definecolor [simpleslides:backgroundcolor] [\SScolorsbackground]


In simpleslides-s-Swoosh.tex change line 150 and surrounding lines with:

\definecolor [simpleslides:backgroundcolor] [r=0.88,g=0.92,b=0.95]
\definecolor [simpleslides:contrastcolor]   [r=0.4,g=0.6,b=0.8]
\definecolor [simpleslides:altcontrastcolor][r=0.1,g=0.1,b=0.4]


But that leads to another error

! LuaTeX error 
...uild/src/tex/texmf-context/tex/context/base/mlib-pps.lua:260: attempt 
to index upvalue 'top' (a nil value)

stack traceback:
...uild/src/tex/texmf-context/tex/context/base/mlib-pps.lua:260: 
in function 'settext'

[string "\directlua "]:1: in main chunk.

\syst_boxes_with_next_box ...\number \nextbox ,1)}

\meta_process_graphic_stop ^^@-\egroup
 \meta_place_graphic
\meta_process_graphic ...eta_process_graphic_stop

\meta_stop_current_graphic
\meta_handle_use_graphic ...a_process_graphic {#3}
  \endgroup
\meta_use_graphic ...]}\getvalue {\??mpgraphic #1}
  \empty 
\meta_end_graphic_g...



which I haven't been able to isolate.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] reference error

2013-11-03 Thread Peter Münster
On Sun, Nov 03 2013, Wolfgang Werners-Lucchini wrote:

> Puuh! If the parser of this reference strings allows spaces, why 
> doesn't work 'reference={chap:neu}'?

\starttext
\startchapter
[ title=Vorwort, reference=chap:vorwort with space at the end ]
\stopchapter

\startchapter
[ title=Vorwort, reference={chap:vorwort2 with space at the end} ]
\stopchapter

\startchapter
[ title=Vorwort, reference={chap:vorwort3 with space at the end }]
\stopchapter

\startchapter
[ title=Vorwort, reference=chap:vorwort without space at the end]
\stopchapter

\startchapter
[ title=Vorwort, reference={chap:vorwort2 without space at the end}]
\stopchapter

\startchapter
\ConTeXt\ does not support space at the end of references:
Siehe
\in{Kapitel}[chap:vorwort with space at the end ],
\in{Kapitel}[chap:vorwort2 with space at the end ],
\in{Kapitel}[chap:vorwort3 with space at the end ],
\in{Kapitel}[chap:vorwort without space at the end] and
\in{Kapitel}[chap:vorwort2 without space at the end]
\stopchapter
\stoptext

-- 
   Peter
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] reference error

2013-11-03 Thread Wolfgang Werners-Lucchini
> If you remove the space, i.e.

Puuh! If the parser of this reference strings allows spaces, why 
doesn't work 'reference={chap:neu}'?

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] korean

2013-11-03 Thread Jeong Dal

Dear Wolfgang and Hans,

First, other user in KTUG succeeded to get the colorful output of your sample 
file. 
This means that there is a problem in my system.

> You can do a manual update of the database with
> 
>mtxrun --script fonts --reload
> 

After running the above command, I got the right output of the command
 "mtxrun --script font --list --file hanbatang*" 

But there was another problem in my TeX file.

Korean in my file is "precomposed characters", so I changed it to triplet by 
the help of Dohyun Kim, 
KTUG. 

(Someone who have an interest, please check the following:
   
http://www.ktug.org/xe/?document_srl=176946&mid=KTUG_open_board&rnd=176962#comment_176962)

After fixing two problems, I succeeded to have colorful output. 

Thank you so much for this nice new feature.

Best regards,

Dalyoung



___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___