Re: [NTG-context] Suppress section numbering for first section

2009-10-31 Thread Aditya Mahajan

On Sun, 1 Nov 2009, Vyatcheslav Yatskovsky wrote:


Hi again,

Sorry for flooding the list, but I started a big project and have tons of 
questions )


How to suppress numbering solely for Introduction section? Strange, but my 
elegant solution does not work:


\section[number=no]{INTRO}


\subject{Intro} ??

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] Define exercise captions

2009-10-31 Thread Aditya Mahajan

On Sun, 1 Nov 2009, Vyatcheslav Yatskovsky wrote:


Hello,

I need to define a Exercise command that will enumerate exercises and provide 
captions.


For example,

\exercise{Conversion from hex to dec}

should produce

Exercise 1.1. Conversion from hex to dec.

What is the best way to achieve that? Use \definehead or another command?


\defineenumeration[exercise][title=yes,way=bysection]

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
___


[NTG-context] Suppress section numbering for first section

2009-10-31 Thread Vyatcheslav Yatskovsky

Hi again,

Sorry for flooding the list, but I started a big project and have tons 
of questions )


How to suppress numbering solely for Introduction section? Strange, but 
my elegant solution does not work:


\section[number=no]{INTRO}

Regards,
Vyatcheslav
___
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] Setup math for times typescript

2009-10-31 Thread Vyatcheslav Yatskovsky

Hello,

Hm.. Looks like a have a serious problem.
How to setup math for times typescript (Times New Roman) from type-win?

Whenever I try to specify typescript for a math font, I get the fatal error:

math virtual | the mapping is incomplete for 'txmath' at 393216

Actually, I even don't know how to setup [mm] properly. Please, help me 
with this.


Regards,
Vyatcheslav

___
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] Define exercise captions

2009-10-31 Thread Vyatcheslav Yatskovsky

Hello,

I need to define a Exercise command that will enumerate exercises and 
provide captions.


For example,

\exercise{Conversion from hex to dec}

should produce

Exercise 1.1. Conversion from hex to dec.

What is the best way to achieve that? Use \definehead or another command?

Best regards,
Vyatcheslav
___
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] How to make an accent

2009-10-31 Thread Vyatcheslav Yatskovsky

Hello,

How to make an accent over a letter in a word?

I use Times New Roman and Cyrillic letters.

Regards,
Vyatcheslav
___
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] Getting number of figure pages in MkIV

2009-10-31 Thread Aditya Mahajan

On Sat, 31 Oct 2009, Hans Hagen wrote:


Aditya Mahajan wrote:

Hi,

What is the correct way of getting the number of figure pages in MkIV. The 
following, which works in MkII, always gives 0 is MkIV.


\getfiguredimensions[filename]
\noffigurepages


in grph-inc.mkiv we need to add a check pass for this

  \ifconditional\testexternalfigureonly
 \ifcase\figurestatus \else
   \ctxlua{figures.check()}%
 \fi
 \signalexternalfigure
  \else


This works perfectly.


  \ifconditional\testexternalfigureonly
 \ifcase\figurestatus \else
   \ctxlua{figures.check()}%
   \ctxlua{figures.scale()}%
 \fi
 \signalexternalfigure
  \else


and so does this.

Thanks,
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] subsection and special characters

2009-10-31 Thread Wolfgang Schuster


Am 31.10.2009 um 16:23 schrieb Bernd Militzer:


Hi all,

making transcriptions of old church books I defined two  special  
characters nmacorn  and  mmacron, but  when  using  subsections the  
characters are not printet. Has something changed or is this a bug?


% <---snip
%
\enableregime[utf]


You can leave this out because MkIV expects unicode input.


\mainlanguage[de]
\setupencoding[default=texnansi]


Encodings are gone in MkIV, you don't need this setup.


\usetypescript[modern]   % als Standardschrift
\usetypescript[chorus]   % als Schreibschrift
\setupbodyfont[modern,12pt]  % allgemeine Schrift für das  
Dokument

%
%
\startencoding[default]
\definecharacter nmacron {\buildtextaccent\textmacron n}
\definecharacter mmacron {\buildtextaccent\textmacron m}
\stopencoding


\define\nmacron{n̄}
\define\mmacron{m̄}


\startbuffer
Die Wiedergabe der Kirchenbucheinträge lehnt sich an die {\bi  
ursprüngliche} Schreibweise an.
So wurde in der Regel über dem {\bi u} ein Querstrich geschrieben,  
also {\bi \u{u}} oder
man schrieb ko\mmacron en, statt kommen oder beka\nmacron t statt  
bekannt.


alternative: man schrieb kom̄en, statt kommen oder bekan̄t statt  
bekannt.


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] subsection and special characters

2009-10-31 Thread Wolfgang Schuster


Am 31.10.2009 um 16:23 schrieb Bernd Militzer:


Hi all,

making transcriptions of old church books I defined two  special  
characters nmacorn  and  mmacron, but  when  using  subsections the  
characters are not printet. Has something changed or is this a bug?


% <---snip
%
\enableregime[utf]


You can leave this out because MkIV expects unicode input.


\mainlanguage[de]
\setupencoding[default=texnansi]


Encodings are gone in MkIV, you don't need this setup.


\usetypescript[modern]   % als Standardschrift
\usetypescript[chorus]   % als Schreibschrift
\setupbodyfont[modern,12pt]  % allgemeine Schrift für das  
Dokument

%
%
\startencoding[default]
\definecharacter nmacron {\buildtextaccent\textmacron n}
\definecharacter mmacron {\buildtextaccent\textmacron m}
\stopencoding


\define\nmacron{n̄}
\define\mmacron{m̄}


\startbuffer
Die Wiedergabe der Kirchenbucheinträge lehnt sich an die {\bi  
ursprüngliche} Schreibweise an.
So wurde in der Regel über dem {\bi u} ein Querstrich geschrieben,  
also {\bi \u{u}} oder
man schrieb ko\mmacron en, statt kommen oder beka\nmacron t statt  
bekannt.


% man schrieb kom̄en, statt kommen oder bekan̄t statt bekannt.

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] Bib: Cite with alternative=data fails

2009-10-31 Thread Andreas Schneider
Taco Hoekwater wrote:
> Did this work earlier? It wouldn't surprise me if it was broken
> in older versions as well.

Sorry, I didn't want to imply that the problem was introduced in the latest 
version - it might as well be there for some time now. The last time I 
compiled the document in question was end of July.

I attached a representative example document.

Since details often matter: I need alternative=data to put the whole 
citation information into footnotes. So if alternative=data is not the right 
approach, I would be happy to learn how to do it better :)

Best regards,
Andreas.\mainlanguage[de]
\enableregime[utf]

\usemodule[bib]
\setuppublications[alternative=apa-de]
\setuppublicationlist[artauthor=\invertedshortauthor,author=\invertedshortauthor]

\startpublication[k=cheng_tutorial_1999,t=article,
a={{Cheng},{Gen}},y=1999,
u={http://search.ebscohost.com/login.aspx?direct=true\&db=bth\&AN=2204993\&sit%
e=ehost-live},
n=2,s=CG99]
\artauthor[]{Runwei}[R.]{}{Cheng}
\artauthor[]{Mitsuo}[M.]{}{Gen}
\pubyear{1999}
\arttitle{A tutorial survey of job-shop scheduling problems using genetic
  algorithms}
\journal{Computers \& Industrial Engineering}
\issn{0360-8352}
\volume{36}
\pages{343-364}
\month{4}
\keywords{Genetic algorithms}
\biburl{http://search.ebscohost.com/login.aspx?direct=true\&db=bth\&AN=2204993%
\&site=ehost-live}
\stoppublication

\starttext
  This is some short test.
  \cite[alternative=data][cheng_tutorial_1999]
\stoptext
___
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] subsection and special characters

2009-10-31 Thread Bernd Militzer

Hi all,

making transcriptions of old church books I defined two  special 
characters nmacorn  and  mmacron, but  when  using  subsections the 
characters are not printet. Has something changed or is this a bug?


% <---snip
%
\enableregime[utf] 
\mainlanguage[de]

\setupencoding[default=texnansi]
%
\usetypescript[modern]   % als Standardschrift
\usetypescript[chorus]   % als Schreibschrift
\setupbodyfont[modern,12pt]  % allgemeine Schrift für das Dokument
%
%
\startencoding[default]
\definecharacter nmacron {\buildtextaccent\textmacron n}
\definecharacter mmacron {\buildtextaccent\textmacron m}
\stopencoding
%
\startbuffer
Die Wiedergabe der Kirchenbucheinträge lehnt sich an die {\bi 
ursprüngliche} Schreibweise an.
So wurde in der Regel über dem {\bi u} ein Querstrich geschrieben, also 
{\bi \u{u}} oder

man schrieb ko\mmacron en, statt kommen oder beka\nmacron t statt bekannt.
\stopbuffer
%
\starttext
%
\startchapter[title={Vorbemerkungen}]
\startsection[title={Test}]
\getbuffer\hfill  OK
\stopsection
\startsection[title={Das Dokument}]
  \startsubsection[title={Allgemein}]
  \getbuffer\hfill PROBLEM !?
  \stopsubsection
  \startsubsection[title={Das Taufregister}]
  \getbuffer \hfill PROBLEM !?
  \stopsubsection
\stopsection
\startsection[title={Das Heiratsregister}]
\getbuffer\hfill  PROBLEM !?
\stopsection
\stopchapter
%
%
\stoptext
%
% <--- snip


This is LuaTeX, Version beta-0.43.0-2009081911
ConTeXt  ver: 2009.09.12 14:44 MKIV  fmt: 2009.9.13  int: english/english


Thanks for help

Bernd


___
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] Bib: Cite with alternative=data fails

2009-10-31 Thread Taco Hoekwater

Andreas Schneider wrote:
In the context minimals' bib mod, \cite[alternative=data][...] fails with 
the following error:


! Undefined control sequence.
\@@pvdatainbook ... }{\egroup . }{\insertcrossref
  { in~}{}{. }}}
{\insertseri...


Did this work earlier? It wouldn't surprise me if it was broken
in older versions as well.

As usual, a small selfcontained test file would be most helpful and
would increase the chance of an actual solution by a fair amount.

Best wishes,
Taco
___
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] Bib: Cite with alternative=data fails

2009-10-31 Thread Andreas Schneider
In the context minimals' bib mod, \cite[alternative=data][...] fails with 
the following error:

! Undefined control sequence.
\@@pvdatainbook ... }{\egroup . }{\insertcrossref
  { in~}{}{. }}}
{\insertseri...

\dotypesetapublication ...ve {\getvalue {pbdt-#1}}
  \fi \egroup
\next1 #1,->\dobibdata {#1}
   \doprocesscommaitem
\doprocesscommalist ...item \gobbleoneargument #1,
  ]\relax \global \advance 
\...

\bibdataref ...e \processcommalist [#1]\dobibdata
  \bibalternative \v!right
\docite ...alue {bib\@@currentalternative ref}[#2]
  \else \processcommalist 
[#...
l.158 ...alternative=data][lippe_evolutionre_2006]

Is that still supposed to work and/or is there another alternative to 
display the full citation info?

Btw. the current beta minimals don't contain the bib documentation (at least 
there is no PDF regarding bib in my whole context tree).

Thanks in advance,
Andreas Schneider.

___
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] Getting number of figure pages in MkIV

2009-10-31 Thread Hans Hagen

Aditya Mahajan wrote:

Hi,

What is the correct way of getting the number of figure pages in MkIV. 
The following, which works in MkII, always gives 0 is MkIV.


\getfiguredimensions[filename]
\noffigurepages


in grph-inc.mkiv we need to add a check pass for this

   \ifconditional\testexternalfigureonly
  \ifcase\figurestatus \else
\ctxlua{figures.check()}%
  \fi
  \signalexternalfigure
   \else

or maybe even

   \ifconditional\testexternalfigureonly
  \ifcase\figurestatus \else
\ctxlua{figures.check()}%
\ctxlua{figures.scale()}%
  \fi
  \signalexternalfigure
   \else

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


Re: [NTG-context] ntg-context Digest, Vol 64, Issue 107

2009-10-31 Thread Mojca Miklavec
On Fri, Oct 30, 2009 at 23:40, Michael Green wrote:
> Mojca Miklavec wrote:
>
> They released a patch for this problem in April 2009. Specifically, they
>
> patched the binary files dvips and pdftex
>
> Have these patches been applied to the versions of dvips and pdftex in the
>
> minimals?
>
> Not for dvips for a simple reason. It's not in minimals. The sources
> for minimals contain the latest stable pdftex branch (that's returning
> errors during compilation at the moment).
>
> That's curious. There's a file called dvips in my
> minimals-context/tex/temf-osx-intel/bin/
> It seems to be dated 9/17/07

Sorry. In that case I take my word back. It may be in minimals, but I
would be surprised if it worked at all. (Maybe I just forgot to kick
it out to obsolete.)

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


Re: [NTG-context] 2UP

2009-10-31 Thread Wolfgang Schuster


Am 31.10.2009 um 00:13 schrieb Wolfgang Werners-Lucchini:


Hallo,

years ago I had the same problem: with 2UP the table of contents is
not included!

Wasn't this a bug?



Not, this is normal.

texexec --arrange ...

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
___