[NTG-context] TeX-figures

2011-01-30 Thread Vnpenguin
Hi,
I'm trying TeX-figures (Section 13.5 of ConTeX manual). Here is my test
==
\starttext
\startbuffer[mytable]
\bTABLE
\bTR
       \bTH One \eTH
       \bTH Two \eTH
\eTR
\bTR
       \bTD One \eTD
       \bTD Two \eTD
\eTR
\eTABLE
\stopbuffer
\externalfigure[mytable.tmp][width=0.8\textwidth]
\stoptext
==
But the PDF has no the table. I'm wrong somewhere ?

I'm using (WinXP) :

E:\User\tex context --version

MTXrun | main context file:
C:/context/tex/texmf-context/tex/context/base/context.mkiv
MTXrun | current version: 2011.01.25 13:17

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


Re: [NTG-context] TeX-figures

2011-01-30 Thread Peter Münster
Vnpenguin vnpeng...@vnoss.org writes:

 I'm trying TeX-figures (Section 13.5 of ConTeX manual). Here is my test

Hello,

In the new manual it's section 16.5.


 \stopbuffer
 \externalfigure[mytable.tmp][width=0.8\textwidth]

In mkiv, the buffer is not saved in a file. You need to do this
explicitly:

\stopbuffer
\savebuffer[mytable][mytable.tmp]
\externalfigure[mytable.tmp][width=0.8\textwidth]


There is also \typesetbuffer:

\starttext
\startbuffer[mytable]
\startTEXpage
bla bla bla
\stopTEXpage
\stopbuffer
\typesetbuffer[mytable][width=0.8\textwidth]
\stoptext

I'll update section 16.5 accordingly.

Cheers,
-- 
   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
___


[NTG-context] problem with digit in buffer name

2011-01-30 Thread Peter Münster
Hello,

I get ! I can't find file `virtual://viafile.1'. with the following
example:

\starttext
\startbuffer[mytable1]
bla
\stopbuffer
\savebuffer[mytable1][mytable.tmp]
\externalfigure[mytable.tmp][width=0.8\textwidth]
\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] TeX-figures

2011-01-30 Thread Vnpenguin
On Sun, Jan 30, 2011 at 11:43, Peter Münster pmli...@free.fr wrote:
 Vnpenguin vnpeng...@vnoss.org writes:

 I'm trying TeX-figures (Section 13.5 of ConTeX manual). Here is my test

 Hello,

 In the new manual it's section 16.5.


 \stopbuffer
 \externalfigure[mytable.tmp][width=0.8\textwidth]

 In mkiv, the buffer is not saved in a file. You need to do this
 explicitly:

 \stopbuffer
 \savebuffer[mytable][mytable.tmp]
 \externalfigure[mytable.tmp][width=0.8\textwidth]

Thank you, this method works ok for me.

Cheers
___
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] problem with digit in buffer name

2011-01-30 Thread Vnpenguin
On Sun, Jan 30, 2011 at 11:46, Peter Münster pmli...@free.fr wrote:
 Hello,

 I get ! I can't find file `virtual://viafile.1'. with the following
 example:

 \starttext
 \startbuffer[mytable1]
 bla
 \stopbuffer
 \savebuffer[mytable1][mytable.tmp]
 \externalfigure[mytable.tmp][width=0.8\textwidth]
 \stoptext

I have same error. But when I modify (mytable instead of mytable1)

\startbuffer[mytable]
...
\savebuffer[mytable][mytable.tmp]

So it works :)
Hans, can you have a look at please!

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


Re: [NTG-context] TeX-figures

2011-01-30 Thread Wolfgang Schuster

Am 30.01.2011 um 11:43 schrieb Peter Münster:

 In mkiv, the buffer is not saved in a file. You need to do this
 explicitly:
 
 \stopbuffer
 \savebuffer[mytable][mytable.tmp]
 \externalfigure[mytable.tmp][width=0.8\textwidth]

In MkIV this should be possible

\externalfigure[mytable.buffer]

where you don’t have to save buffer but it seems to be broken.

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] TeX-figures

2011-01-30 Thread Steffen Wolfrum

Am 30.01.2011 um 10:44 schrieb Vnpenguin:

 Hi,
 I'm trying TeX-figures (Section 13.5 of ConTeX manual). Here is my test
 ==
 \starttext
 \startbuffer[mytable]
 \bTABLE
 \bTR
\bTH One \eTH
\bTH Two \eTH
 \eTR
 \bTR
\bTD One \eTD
\bTD Two \eTD
 \eTR
 \eTABLE
 \stopbuffer
 \externalfigure[mytable.tmp][width=0.8\textwidth]
 \stoptext
 ==
 But the PDF has no the table. I'm wrong somewhere ?


I just did it like this:

\startbuffer[2f]
\startTEXpage[width=0.99\textheight]
\placetable{}{
\bTABLE[offset=3pt,align={flushleft,high},option=stretch,style=...]
...
\eTABLE}
\stopTEXpage
\stopbuffer

\getbuffer


Works great for me ...

Steffen
(ver: 2011.01.14   MKIV)
___
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] TeX-figures

2011-01-30 Thread Peter Münster
Steffen Wolfrum cont...@st.estfiles.de writes:

 [...]
 
 \getbuffer

 Works great for me ...

Sure, but it's really not the same ;)

Compare:

\starttext
\startbuffer
\startTEXpage[width=5cm]
\input tufte
\stopTEXpage
\stopbuffer
\getbuffer

\startbuffer[testbuf]
\input tufte
\stopbuffer
\savebuffer[testbuf][testbuf.tmp]
\externalfigure[testbuf.tmp][width=5cm]
\stoptext

Cheers,
-- 
   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] large right brace grouping lines of equations

2011-01-30 Thread Jeong Dalyoung
Dear Aditya,

Thank you for suggestion.

Here is my situation.

- equation1 -
  equation 2 -
-equation 3  ]
-equation 4  ] big rbrace for 3,4,5 and some text here
-equation 5  ]
-equation 6 

According to your suggestion, we can use \startmatrix for 3,4,5, but how to put 
text?
I googled  and found a similar question in LaTeX, but the answer is to use tikz.

How do you think?

Thank you again.

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
___


Re: [NTG-context] Widgets color option not working with Mark IV

2011-01-30 Thread Hans Hagen

On 30-1-2011 1:28, Reviczky, Adam wrote:

I already fixed it (there were a few more things so I added some tracing
options as well). There is no beta upload as something has to be tested
by other dev first due to some changes in file handling.

Great, I'll be waiting for the next beta then!

In the meantime, can I also ask you about another issue I have quite a while 
now, but it wasn't really that important.
If I want to specify a custom text for a PDF-Bookmark it always get set for the 
bookmark one level up.


yes, that hos it is supposed to work

use \startchapter[title={...},bookmark{...}] instead as \bookmark might 
as well becom eobsolete


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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
___


[NTG-context] strange interaction with footnote and section

2011-01-30 Thread Florian Wobbe
Hi,

I have a strange problem with footnotes, when interaction is turned on. When a 
footnote is followed by a \section{}, the color of the first footnote number 
will change from contrastcolor to color. Also the number is not a clickable 
link anymore. Of cause the footnote is not on a different page.

The more \section{}s you have, the more footnote interaction links will vanish:

\setupinteraction[state=start]

\starttext

1st\footnote{first},
2nd\footnote{second},
3rd\footnote{third},
4th\footnote{fourth},
5th\footnote{fifth}.

% uncomment these one at a time:
%\section{First}
%\section{Second}
%\section{Third}

\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] latest Context Minimals Installer for Windows

2011-01-30 Thread Vyatcheslav Yatskovsky
To whom it may concern - here is the latest version of Context Minimals 
Installer for Windows, now working under Windows 7.


http://www.megaupload.com/?d=484PR9UL

Regards,
Vyatcheslav Yatskovsky
___
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] Header problem

2011-01-30 Thread Keith McKay

Dear All

I have a problem with a chapter title which I am using as a header.  The 
title's length in the header is such that it extends into the page 
margin.  I would have thought that the text would have stayed within the 
header area and gone on to a second line but this does not happen.  I 
have been on the wiki looking at the command reference  syntax for 
\setupheader and \setuphead and \setupheadertexts to try and solve this 
problem but I'm a bit stuck understanding the syntax.


Reducing the amount of text in the chapter name isn't an option.  Any 
other suggestions


Keith McKay
___
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] TeXworks config file for ConTeXt MkIV

2011-01-30 Thread Vyatcheslav Yatskovsky

Hi,

Where can I find TeXworks config files for Mark IV?
I had some (probably from Hans), but they gone after reinstalling the 
Windows.


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] Curly quotes was TTF fonts and MKIV

2011-01-30 Thread John Culleton
On Saturday 29 January 2011 11:53:20 John Culleton wrote:
 On Friday 28 January 2011 16:52:57 Marco Pessotto wrote:
  John Culleton j...@wexfordpress.com writes:
   Is there a short, simple guide somewhere that shows how to use
   TTF and OTF fonts in Context? I downloaded the new Fonts
   chapter but it goes deep into the weeds on typescripts etc.  I
   am looking for a method that allows me to do in Context what I
   can already do in most other DTP programs: simply designate for
   use a font or font family that exists in /usr/share/fonts
   without typescripts, complex and confusing aliasing schemes or
   tfm files.
 
  http://wiki.contextgarden.net/Fonts_in_LuaTex

 OK I used this guide and have access to one of the fonts in
 /usr/share/fonts/Type1 but not the rest. Courier is in the
 database. AGaramond is not.  The wiki paper seems to state that
 Type1 fonts should be available via the database and \simplefonts.
 AGaramond is in the
 /usr/share/fonts/Type1
 directory and is listed in the
 /usr/share/fonts/Type1/fonts.dir
 file. It does not show up in the mtxrun generated data base.

 set shows the following entry:
 OSFONTDIR='/usr/share/fonts;/home/safe/.fonts'


 Now if Type1 isn't included the font data base yet I can be cool
 with that. But in that case the wiki needs to be corrected.
I have tried various fonts, including charterbt, calibri (ttf) and so 
on. I get the called-for font but the sequences for curly double 
quotes, in use since Ramses II, give me either two back ticks followed 
by two forward ticks, (calibri) or two back ticks followed by an inch 
symbol (charterbt).  So this defect is not limited to one font. My 
main file is as follows:

\input macros.tex
\usemodule [simplefonts]
\setmainfont [calibri]
\starttext
\input body.tex
\stoptext

and macros.tex looks like this:

\setupoutput[pdftex]
\definepapersize[bok][width=7.0in,height=10.0in]
%\setuppapersize[bok][letter]
\setuppapersize[bok][bok]
\setuplayout[location=middle,marking=on]%
\setupwhitespace[line]
\setuptyping[style=small]


Anyone else have this problem?


 
-- 
John Culleton
Create Book Covers with Scribus:
http://www.booklocker.com/p/books/4055.html
Typesetting and indexing http://wexfordpress.com
book sales http://wexfordpress.net
Free  barcode: http://www.tux.org/~milgram/bookland/

___
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] Curly quotes was TTF fonts and MKIV

2011-01-30 Thread Wolfgang Schuster

Am 30.01.2011 um 16:34 schrieb John Culleton:

 I have tried various fonts, including charterbt, calibri (ttf) and so 
 on. I get the called-for font but the sequences for curly double 
 quotes, in use since Ramses II, give me either two back ticks followed 
 by two forward ticks, (calibri) or two back ticks followed by an inch 
 symbol (charterbt).  So this defect is not limited to one font. My 
 main file is as follows:
 
 \input macros.tex

\environment macros

 \usemodule [simplefonts]
 \setmainfont [calibri]
 \starttext
 \input body.tex
 \stoptext
 
 and macros.tex looks like this:

\startenvironment macros

 \setupoutput[pdftex]
 \definepapersize[bok][width=7.0in,height=10.0in]
 %\setuppapersize[bok][letter]
 \setuppapersize[bok][bok]
 \setuplayout[location=middle,marking=on]%
 \setupwhitespace[line]
 \setuptyping[style=small]

\stopenvironment

 Anyone else have this problem?

Learn to make a minimal *working* example, this works:

\usemodule[simplefonts]
\setmainfont[Calibri]
\starttext
“quoted text”
\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] Curly quotes was TTF fonts and MKIV

2011-01-30 Thread John Culleton
On Sunday 30 January 2011 10:52:10 Wolfgang Schuster wrote:
 Am 30.01.2011 um 16:34 schrieb John Culleton:
  I have tried various fonts, including charterbt, calibri (ttf)
  and so on. I get the called-for font but the sequences for curly
  double quotes, in use since Ramses II, give me either two back
  ticks followed by two forward ticks, (calibri) or two back ticks
  followed by an inch symbol (charterbt).  So this defect is not
  limited to one font. My main file is as follows:
 
  \input macros.tex

 \environment macros

  \usemodule [simplefonts]
  \setmainfont [calibri]
  \starttext
  \input body.tex
  \stoptext
 
  and macros.tex looks like this:

 \startenvironment macros

  \setupoutput[pdftex]
  \definepapersize[bok][width=7.0in,height=10.0in]
  %\setuppapersize[bok][letter]
  \setuppapersize[bok][bok]
  \setuplayout[location=middle,marking=on]%
  \setupwhitespace[line]
  \setuptyping[style=small]

 \stopenvironment

  Anyone else have this problem?

 Learn to make a minimal *working* example, this works:

 \usemodule[simplefonts]
 \setmainfont[Calibri]
 \starttext
 “quoted text”
 \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
 ___


Thanks for your reply. Are you telling me that \input foo no longer 
works the way it used to? 

Let me simplify the example:
---
\setupoutput[pdftex]
\definepapersize[bok][width=7.0in,height=10.0in]
\setuppapersize[bok][bok]
\usemodule [simplefonts]
\setmainfont [georgia]
\starttext
Here is ``foo''.
\stoptext
-
I still get the same wrong results. In a ttf font like georgia the 
close quote looks OK but the open quote are two left tick marks.
In Bitstream Charter the close quote is the inch sign and the open 
quote is again two left tick marks. So my original question remains:
Why do the double quote codes not work as they have since the days of 
plain tex?

-- 
John Culleton
Create Book Covers with Scribus:
http://www.booklocker.com/p/books/4055.html
Typesetting and indexing http://wexfordpress.com
book sales http://wexfordpress.net
Free  barcode: http://www.tux.org/~milgram/bookland/

___
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] TeX-figures

2011-01-30 Thread Vnpenguin
On Sun, Jan 30, 2011 at 12:27, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 30.01.2011 um 11:43 schrieb Peter Münster:

 In mkiv, the buffer is not saved in a file. You need to do this
 explicitly:

 \stopbuffer
 \savebuffer[mytable][mytable.tmp]
 \externalfigure[mytable.tmp][width=0.8\textwidth]

 In MkIV this should be possible

 \externalfigure[mytable.buffer]

 where you don’t have to save buffer but it seems to be broken.


Yes, it's broken. I don't like \savebuffer but I have no choice for now.
___
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] TeX-figures

2011-01-30 Thread Hans Hagen

On 30-1-2011 1:10, Peter Münster wrote:

Steffen Wolfrumcont...@st.estfiles.de  writes:


[...]

\getbuffer

Works great for me ...


Sure, but it's really not the same ;)

Compare:

\starttext
\startbuffer
\startTEXpage[width=5cm]
\input tufte
\stopTEXpage
\stopbuffer
\getbuffer

\startbuffer[testbuf]
\input tufte
\stopbuffer
\savebuffer[testbuf][testbuf.tmp]
\externalfigure[testbuf.tmp][width=5cm]
\stoptext


\starttext

\startbuffer[testbuf]
\input tufte
\stopbuffer

\externalfigure[testbuf][type=buffer,width=5cm]

\externalfigure[testbuf.buffer][width=5cm]

\stoptext

in mkiv .tmp makes no sense any more as we have no tmp files


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] TeXworks config file for ConTeXt MkIV

2011-01-30 Thread Hans Hagen

On 30-1-2011 3:45, Vyatcheslav Yatskovsky wrote:

Hi,

Where can I find TeXworks config files for Mark IV?
I had some (probably from Hans), but they gone after reinstalling the


context/data/texworks

But I have to admit that I don't keep track of texworks development.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] TeX-figures

2011-01-30 Thread Vnpenguin
On Sun, Jan 30, 2011 at 18:39, Hans Hagen pra...@wxs.nl wrote:

 \starttext

 \startbuffer[testbuf]
 \input tufte
 \stopbuffer

 \externalfigure[testbuf][type=buffer,width=5cm]

It works.

 \externalfigure[testbuf.buffer][width=5cm]

It does not work.

 \stoptext

 in mkiv .tmp makes no sense any more as we have no tmp files

In fact, I don't care about extension of this file.

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


[NTG-context] wrong page with \finishregisterentry

2011-01-30 Thread Steffen Wolfrum
Hi,

when \finishregisterentry is set within a paragraph then the lastrealpage 
gets the value from the page where this respective parapgraph starts.
(In the example below it is 4 instead of 5.)
That is quite sad when you have long paragraphs.

How can I set a register range telling me lastrealpage is exactly the page 
where the ending mark is set?

Attached you may find a minimal example.

Best,
Steffen
---

\starttext

\switchtobodyfont[50pt]
\input tufte \par
\setregisterentry[index][label={Index_Label}]%
Test\dorecurse{5}{This is are words, not paragraphs. 
}\finishregisterentry[index][label={Index_Label},entries={Index entry}] Test

\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] Problem switching fonts in MKII

2011-01-30 Thread Tom
Kudos for the new documentation chapters on Typography and Fonts. However, I
still can't completely get my hands around it. Running the following code
under TexLive MKII doesn't give the desired results in that defining font
synonyms and switching to those typefaces doesn't seem to work. Obviously,
I'm doing something wrong.

\usetypescriptfile[type-gyr]
\usetypescript[palatino][ec]
\setupbodyfont[palatino,11pt]
\definefontsynonym[AltTextFont][palatino]

\usetypescriptfile[type-one]
\usetypescript[bookman][default]
\setupbodyfont[bookman,11pt]
\definefontsynonym[TextFont][bookman]

\starttext

\switchtotypeface[TextFont]
\showbodyfont
\input knuth
\blank[big]

\switchtotypeface[AltTextFont]
\showbodyfont
\input knuth
\blank[big]

\switchtotypeface[bookman][11pt]
\showbodyfont
\input knuth
\blank[big]

\switchtotypeface[palatino][11pt]
\showbodyfont
\input knuth

\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com





___
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] \typesetbuffer adds \starttext ... \stoptext

2011-01-30 Thread Peter Münster
Hello,

It would be nice, if \typesetbuffer wouldn't add anything to the buffer.

Here an example, where the outer \starttext ... \stoptext environment
deranges:

\starttext
\startbuffer[pdf-pages]
  \setuppapersize[A7, landscape]
  \showframe
  \starttext
  page 1 \page page 2
  \stoptext
\stopbuffer
\typesetbuffer[pdf-pages][page=2, frame=on, width=10cm]
\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] \typesetbuffer adds \starttext ... \stoptext

2011-01-30 Thread Wolfgang Schuster

Am 30.01.2011 um 19:52 schrieb Peter Münster:

 Hello,
 
 It would be nice, if \typesetbuffer wouldn't add anything to the buffer.
 
 Here an example, where the outer \starttext ... \stoptext environment
 deranges:

Why, context ignores the inner starttext/stoptext pair.

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] \typesetbuffer adds \starttext ... \stoptext

2011-01-30 Thread Peter Münster
Wolfgang Schuster schuster.wolfg...@googlemail.com writes:

 It would be nice, if \typesetbuffer wouldn't add anything to the buffer.
 
 Here an example, where the outer \starttext ... \stoptext environment
 deranges:

 Why, context ignores the inner starttext/stoptext pair.

Wrong interpretation of the problem: it's the
\setuppapersize[][samesized] that is broken...

Nevertheless: are there situations, where the outer starttext/stoptext
could cause some trouble?

-- 
   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] \typesetbuffer adds \starttext ... \stoptext

2011-01-30 Thread Vnpenguin
On Sun, Jan 30, 2011 at 19:52, Peter Münster pmli...@free.fr wrote:
 Hello,

 It would be nice, if \typesetbuffer wouldn't add anything to the buffer.

Yep, I agree that. Don't know why need add something to buffer ?
___
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] \typesetbuffer adds \starttext ... \stoptext

2011-01-30 Thread Wolfgang Schuster

Am 30.01.2011 um 20:23 schrieb Vnpenguin:

 On Sun, Jan 30, 2011 at 19:52, Peter Münster pmli...@free.fr wrote:
 Hello,
 
 It would be nice, if \typesetbuffer wouldn't add anything to the buffer.
 
 Yep, I agree that. Don't know why need add something to buffer ?

\typesetbuffer add \starttext before and \stoptext after the buffer
because it write the buffer content to a external file and process
this file as a separate document which can be included as figure.

This is a useful feature for documentation.

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] large right brace grouping lines of equations

2011-01-30 Thread Aditya Mahajan

On Sun, 30 Jan 2011, Jeong Dalyoung wrote:


Here is my situation.

- equation1 -
  equation 2 -
-equation 3  ]
-equation 4  ] big rbrace for 3,4,5 and some text here
-equation 5  ]
-equation 6 

According to your suggestion, we can use \startmatrix for 3,4,5, but how to put 
text?


Do you also want equation numbers? If so, then that is not supported by 
ConTeXt at the moment. If you do not want equation numbers, you can use


\startformula \startalign[n=1]
\NC equation 1 \NR
\NC equation 2 \NR
\NC \startmatrix[left={\left.}, right={\right\}}, n=1, align=middle]
\NC equation 3 \NR
\NC equation 4 \NR
\NC equation 5 \NR
   \stopmatrix
   some text here   \NR
\NC equation 6 \NR
\stopalign \stopformula


I googled  and found a similar question in LaTeX, but the answer is to use tikz.


With LaTeX, you can also use mathtools package, which is much easier to 
use.



How do you think?


Math support will be reworked at some stage in MkIV.

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] luatex hangs on \showcolorgroup

2011-01-30 Thread Peter Münster
Hello,

luatex takes 100% cpu (probably endless loop, at least some minutes ;)
here:

\starttext
\halign
  {\hss#\cr
   \showcolorgroup[red][horizontal,name,number]\cr
   \showcolorgroup[green]  [horizontal,name]\cr
}
\stoptext

Message:
systems : command \showcolorgroup not found in file colo-run

-- 
   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] Curly quotes was TTF fonts and MKIV

2011-01-30 Thread Wolfgang Schuster

Am 30.01.2011 um 17:29 schrieb John Culleton:

 Thanks for your reply. Are you telling me that \input foo no longer 
 works the way it used to? 

\input works but \environment is the “ConTeXt Way” to load your personal
settings for a document, environment prevents also multiple loading of
the file when you use context’s document structure.

 Let me simplify the example:
 ---
 \setupoutput[pdftex]

simplefonts is mkiv only, so remove this or don’t use simplefonts

 \definepapersize[bok][width=7.0in,height=10.0in]
 \setuppapersize[bok][bok]
 \usemodule [simplefonts]
 \setmainfont [georgia]
 \starttext
 Here is ``foo''.
 \stoptext
 -
 I still get the same wrong results. In a ttf font like georgia the 
 close quote looks OK but the open quote are two left tick marks.
 In Bitstream Charter the close quote is the inch sign and the open 
 quote is again two left tick marks. So my original question remains:
 Why do the double quote codes not work as they have since the days of 
 plain tex?

Use “…” or \quotation{…}, we have 2011 and Unicode is available since years.

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] \typesetbuffer adds \starttext ... \stoptext

2011-01-30 Thread Wolfgang Schuster

Am 30.01.2011 um 20:20 schrieb Peter Münster:

 Nevertheless: are there situations, where the outer starttext/stoptext
 could cause some trouble?

Don’t think so because when you use the project structure you have

\startproduct

\startcomponent
…
\stopcomponent

\startcomponent
…
\stopcomponent

\stopproduct

where both \startproduct and \startcomponent act as \starttext
and only the first is is used as real \starttext while the others
are ignored.

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] piping output from external command

2011-01-30 Thread Peter Münster
Hello,

This used to work with pdftex:

\starttext
\input \string|echo hello world
\stoptext

What's the recommended way, to do this in mkiv?

I've defined \Pipe{} like this:

\startluacode
userdata = userdata or {}
function userdata.pipe(c)
local h = io.popen(c)
context(h:read*a)
h:close()
end
\stopluacode
\def\Pipe#1{\ctxlua{userdata.pipe#1}}

But I suppose that there is already a nice command in the core... ;)

-- 
   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] piping output from external command

2011-01-30 Thread Hans Hagen

On 30-1-2011 11:19, Peter Münster wrote:


But I suppose that there is already a nice command in the core... ;)



os.resultof(...)

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] piping output from external command

2011-01-30 Thread Peter Münster
Hans Hagen pra...@wxs.nl writes:

 On 30-1-2011 11:19, Peter Münster wrote:

 But I suppose that there is already a nice command in the core... ;)


 os.resultof(...)

Thanks!

No tex-command...?
(not important, \ctxlua{context(os.resultof...)} is ok)

-- 
   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] piping output from external command

2011-01-30 Thread Hans Hagen

On 30-1-2011 11:43, Peter Münster wrote:

Hans Hagenpra...@wxs.nl  writes:


On 30-1-2011 11:19, Peter Münster wrote:


But I suppose that there is already a nice command in the core... ;)



os.resultof(...)


Thanks!

No tex-command...?


never needed it but there is

\cldcontext{os.resultof(...)}

if you want to save keystrokes


(not important, \ctxlua{context(os.resultof...)} is ok)




-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] luatex hangs on \showcolorgroup

2011-01-30 Thread Hans Hagen

On 30-1-2011 9:02, Peter Münster wrote:

Hello,

luatex takes 100% cpu (probably endless loop, at least some minutes ;)
here:

\starttext
\halign
   {\hss#\cr
\showcolorgroup[red][horizontal,name,number]\cr
\showcolorgroup[green]  [horizontal,name]\cr
}
\stoptext


move colo-imp-run.mkiv to colo-run.mkiv


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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
___


[NTG-context] Feature request: Title Case/Start Case

2011-01-30 Thread Reviczky, Adam
Hi,

May I ask for supporting Title Case or Start Case in core ConTeXt?
Eg: The first letter of each word is capitalized, the rest are lower case.

It would be nice to have something like these:
\TitleCase{What to capitalize in title case} resulting in What to Capitalize 
in Title Case
\StartCase{What to capitalize in start case} resulting in What To Capitalize 
In Start Case

If something like this doesn't belong to the core, then can somebody tell me 
how to achieve that as a macro (I've just briefly looked at the typo-cap)?

Thanks,
Adam
___
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] Widgets color option not working with Mark IV

2011-01-30 Thread Reviczky, Adam
yes, that hos it is supposed to work

use \startchapter[title={...},bookmark{...}] instead as \bookmark might
as well becom eobsolete
Thanks, this is what I was looking for!
I've added it to the wiki.

Adam
___
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] large right brace grouping lines of equations

2011-01-30 Thread Jeong Dalyoung
Dear Aditya,

Thank you for your nice solution.

 
 \startformula \startalign[n=1]
 \NC equation 1 \NR
 \NC equation 2 \NR
 \NC \startmatrix[left={\left.}, right={\right\}}, n=1, align=middle]
 \NC equation 3 \NR
 \NC equation 4 \NR
 \NC equation 5 \NR
\stopmatrix
some text here   \NR
 \NC equation 6 \NR
 \stopalign \stopformula
 

It works nicely.
I erase \NR after equation 5 because it makes another blank line below eq 5.

 
 Math support will be reworked at some stage in MkIV.
 

Since I am not using a complicate equations, math support in ConTeXt is OK.
And your mathalign is very helpful to me.

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
___