Re: [NTG-context] problems with t-letter - reference line

2011-12-29 Thread Thomas Engel
* Wolfgang Schuster schuster.wolfg...@googlemail.com [111229 08:35]:

Hello Wolfgang,
 When I comment the mentioned line above I get “Datum” and “28. Dezember 2011” 
 in the reference line.

thanks, it's working now.

Is there also a new Correspondence manual with examples for the new interface 
available?

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

Re: [NTG-context] Broken Nightly Still

2011-12-29 Thread Hans Hagen

On 29-12-2011 04:09, Kip Warner wrote:

Hey folks,

Since I upgraded from the Nov 29th nightly to today's Dec 28th, my



! Undefined control sequence.
argument  \@cmstyle


must be something older ... in chem-str.mkiv replace this:

\unexpanded\def\dosetchemicaltext
  {\dousestyleparameter\@@cmstyle
   \dousecolorparameter\@@cmcolor}



-
  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] Huge PDFs

2011-12-29 Thread luigi scarso
On Thu, Dec 29, 2011 at 2:19 PM, Hans Hagen pra...@wxs.nl wrote:
 On 29-12-2011 13:45, luigi scarso wrote:

 On Thu, Dec 29, 2011 at 12:16 PM, Jan Heinenjahei...@gmx.de  wrote:

 Hello,

 lots of my images are huge 200x250mm. I reduce their size with:
 \externalfigure[cow][width=20mm, heigth=25mm]

 After generating the PDF, the pdf is very huge.

 1. Can't Context put the reduced image into the PDF?
 2. How can I generate one PDF version for printing (300dpi) and one for
 the
 screen (72dpi)?

 I am using Context mk-IV.

 no, you need something like ghostscript.
 In this case (if you have not problems of space and time) it's better
 to transform the pdf in ps with
  pdftops yourfile.pdf
 and then apply ghostscript to the final ps (see the documentation
 about ghostscript)


 ghostscript can do that directly with the pdf (no need to go through ps)

 (also see:
 http://article.gmane.org/gmane.comp.tex.context/71919/match=lowres)
yes, but latest ghostscript (ver. 9)  sometimes fail when used
directly with pdf.
pdf - pdftops -ps -ghostscript -pdf seems to be more robust and
gives better results
(although space and time consuming).



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

[NTG-context] itemize with conversion

2011-12-29 Thread Herbert Voss

This worked some weeks ago:

\defineconversion[ordinal][\enordinaldaynumber]
\starttext
 \startitemize[ordinal]
 \item Test
 \item Test
 \item Test
 \item Test
 \item Test
 \stopitemize
\stoptext

current beta from today

Herbert


! Undefined control sequence.

system   tex  error on line 7 in file 05-02-4.ctxcrop: 
Undefined control sequence ...


 1 \defineconversion[ordinal][\enordinaldaynumber]
 2 \starttext
 3  \startitemize[ordinal]
 4  \item Test
 5  \item Test
 6  \item Test
 7\item Test
 8  \item Test
 9  \stopitemize
10 \stoptext
11


\@@cvordinal -\enordinaldaynumber

\convertnumber ... 2\else 3\fi \fi \endcsname {#1}
  {\number #2}
l.7 }

\doconvertedstructurecounter ...!criterium , } )}
  \endgroup
to be read again
   \fi
\doactualitemnumber ...rrentitemgroupcounter ]\fi

\dohandleitemreference \en...
...
l.4  \item T
est
?
___
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] xmlbeforedocumentsetup?

2011-12-29 Thread Hans van der Meer
I would like to execute an xmlsetup each time before the start of the (root) 
node problem. Following --I think-- the code from the xml document:

\startxmlsetups xml:xam:initial
  Starting the problem.\crlf
\stopxmlsetups
\xmlbeforedocumentsetup{\xmldocument}{xml:xam:initial}{xml:xam:problem}

xml:xam:problem is the xmlsetup registered for the root problem node.
Why do I get the next error?

! LuaTeX error main ctx instance:1: unexpected symbol near ')'.
system   tex  error on line 290 in file xam-test.tex: LuaTeX error  …

\ctxlxml #1-\directlua \zerocount {lxml.#1}
 
l.290 ...cument}{xml:xam:initial}{xml:xam:problem}

Hans van der Meer



___
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] Is there a replacement for \tracechinesetrue in mkiv?

2011-12-29 Thread Hans Hagen

On 29-12-2011 04:22, Zhichu Chen wrote:

All right, after some readings, I came out with a node solution. The
major idea is listed below and works just fine. n from node_traverse
(head) and n.id==node.id ('glyph')

My question is: is there a better way? Because these codes are so
dirty. I prefer mplib but I have no clue how to do that.


Using mp would be pretty complex too and all solutions are rather 
inefficient (bloat the pdf) .. attached another solution (I'll add it to 
the next beta).


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
-


crapcrap.pdf
Description: Adobe PDF 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] itemize and \its

2011-12-29 Thread Hans Hagen

On 29-12-2011 16:11, Herbert Voss wrote:

this one also worked some weeks ago:

\mainlanguage[de]
\starttext
\startitemize[8,packed]
[width=8em,distance=2em,items=5]
\ran {no\hss yes}
\its I can not do it without \TeX.
\mar{+} I use \TeX\ with other packages.
\its I hardly use \TeX.
\ran{\hss The future\hss}
\its I will use \TeX\ forever.
\its I expect no alternative to \TeX\
in the next few years.
\its I am looking for another system.
\stopitemize
+ Only {\it no} possible.
\stoptext


in strc-itm.mkvi there is:

\unexpanded\def\itemgroups_start
  {\dosingleempty\itemgroups_start_items}

\unexpanded\def\itemgroups_start_items[#whatever]%

which should be

\unexpanded\def\itemgroups_start_items
  {\dosingleempty\itemgroups_start_items_indeed}

\unexpanded\def\itemgroups_start_items_indeed[#whatever]%

(else the check for [] gets lost)

thanks for testing (I cleaned up the itemize code so there coul dbe more 
such issues).


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] bug with --purgeall?

2011-12-29 Thread Hans Hagen

On 29-12-2011 17:12, Pablo Rodríguez wrote:

On 12/29/2011 04:01 PM, Hans Hagen wrote:

On 29-12-2011 07:24, Pablo Rodríguez wrote:

Hi there,

yesterday I ran the following command:

context --purgeall --environment=mysecondstyle.tex --mode=myexample.xml

I know that the source file is missing (I discovered it later). This is
not my issue.

The problem is that the --purgeall option caused context to erase all
..log files contained in that directory. Instead of asking for a source
file name, it deleted all .log files.

I'm afraid this is a bug, at least it shouldn't erase files that context
didn't generate.


how should it know?


By name and by modification date and time.

But in any case, the following command:

context --purgeall

should give an error (missing document) before trying to purge all
documents.


Well, I use it to really purge all those files, including logs (left 
overs from tests and such).


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] Huge PDFs

2011-12-29 Thread Hans Hagen

On 29-12-2011 19:44, Jan Heinen wrote:

I found another way to compress PDFs: The ConText-command

\pdfcompresslevel=9

qpdf and ghostwriter also helped.


use \maximumpdfcompression instead if the low level \pdf* command


-
  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] xmlbeforedocumentsetup?

2011-12-29 Thread Hans Hagen

On 29-12-2011 16:19, Hans van der Meer wrote:

I would like to execute an xmlsetup each time before the start of the (root) 
nodeproblem. Following --I think-- the code from the xml document:

\startxmlsetups xml:xam:initial
   Starting the problem.\crlf
\stopxmlsetups
\xmlbeforedocumentsetup{\xmldocument}{xml:xam:initial}{xml:xam:problem}

xml:xam:problem is the xmlsetup registered for the rootproblem  node.
Why do I get the next error?

! LuaTeX errormain ctx instance:1: unexpected symbol near ')'.
system  tex  error on line 290 in file xam-test.tex: LuaTeX error  …

\ctxlxml #1-\directlua \zerocount {lxml.#1}
l.290 ...cument}{xml:xam:initial}{xml:xam:problem}


ha, it seems that these are seldom used ... search for )) in the 
definitions and remove one ) which happens 4 times


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] orphans and widow control not working

2011-12-29 Thread Pablo Rodríguez
Hi there,

trying to avoid widow and orphan lines in my texts, Hans suggested about
three weeks ago the following settings
(http://www.ntg.nl/pipermail/ntg-context/2011/063746.html).

But the following sample doesn't compile:

\setuplayout[setups=*lessstrict]
\startsetups[*lessstrict]
\setup[*\s!reset]
\widowpenalty=1000
\clubpenalty=1000
\brokenpenalty=1000
\stopsetups
\starttext
Hello.
\stoptext

The error I get is the following (it's Greek to me):

context --purgeall  a.tex  exit (in directory: /home/ousia)
mtx-context | run 1: luatex
--fmt=/home/ousia/.texlive2011/texmf-var/luatex-cache/context/210a96fef5fbab446fd11afa77acb026/formats/cont-en
--lua=/home/ousia/.texlive2011/texmf-var/luatex-cache/context/210a96fef5fbab446fd11afa77acb026/formats/cont-en.lui
--backend=pdf ./a.tex
This is LuaTeX, Version beta-0.70.1-2011061416 (rev 4277)
 \write18 enabled.
(a.tex
ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.8.1  int: english/english
system   cont-new.mkiv loaded
(/usr/local/texlive/2011/texmf-dist/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   a.top loaded
(a.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{/usr/local/texlive/2011/texmf-dist/fonts/map/pdftex/context/mkiv-base.map}
! Undefined control sequence.
system   tex  error on line 4 in file a.tex: Undefined control
sequence ...
 1 \setuplayout[setups=*lessstrict]
 2 \startsetups[*lessstrict]
 3 \setup[*\s!reset]
 4   \widowpenalty=1000
 5 \clubpenalty=1000
 6 \brokenpenalty=1000
 7 \stopsetups
 8 \starttext
 9 Hello, \TeX ies.
10 \stoptext
11
12 \mainlanguage[es]
13 \usemodule[simplefonts][size=12pt]
14 \setmainfontfallback[Palatino
Linotype][range={greekandcoptic,greekextended},force=yes]
argument *\s
   !reset
\dosetups ...ent \fi \fi \else \ifcsname \??su :#1
  \endcsname :#1\else
:\lett...
\@@su:*lessstrict #1-\setup [*\s !reset]
 \widowpenalty =1000\clubpenalty
=10...
l.4 }
\ctxcommand ...\directlua \zerocount {commands.#1}
\doprocesslocalsetups ... \dodoprocesslocalsetups
  \fi
...
l.8 \starttext
?
! Emergency stop.
system   tex  error on line 4 in file a.tex: Emergency stop ...
 1 \setuplayout[setups=*lessstrict]
 2 \startsetups[*lessstrict]
 3 \setup[*\s!reset]
 4   \widowpenalty=1000
 5 \clubpenalty=1000
 6 \brokenpenalty=1000
 7 \stopsetups
 8 \starttext
 9 Hello, \TeX ies.
10 \stoptext
11
12 \mainlanguage[es]
13 \usemodule[simplefonts][size=12pt]
14 \setmainfontfallback[Palatino
Linotype][range={greekandcoptic,greekextended},force=yes]
argument *\s
   !reset
\dosetups ...ent \fi \fi \else \ifcsname \??su :#1
  \endcsname :#1\else
:\lett...
\@@su:*lessstrict #1-\setup [*\s !reset]
 \widowpenalty =1000\clubpenalty
=10...
l.4 }
\ctxcommand ...\directlua \zerocount {commands.#1}
\doprocesslocalsetups ... \dodoprocesslocalsetups
  \fi
...
l.8 \starttext
!  == Fatal error occurred, no output PDF file produced!
Compilation failed.
mtx-context | fatal error: return code: 1

What am I doing wrong or missing here? I'm using the ConTeXt stable
provided with TL2011.

Thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] orphans and widow control not working

2011-12-29 Thread Wolfgang Schuster

Am 29.12.2011 um 20:16 schrieb Pablo Rodríguez:

 Hi there,
 
 trying to avoid widow and orphan lines in my texts, Hans suggested about
 three weeks ago the following settings
 (http://www.ntg.nl/pipermail/ntg-context/2011/063746.html).
 
 But the following sample doesn't compile:
 
   \setuplayout[setups=*lessstrict]
   \startsetups[*lessstrict]
   \setup[*\s!reset]

Write “\setup[reset]” without the “\s!” prefix.

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] bug with --purgeall?

2011-12-29 Thread Hans Hagen

On 29-12-2011 07:24, Pablo Rodríguez wrote:

Hi there,

yesterday I ran the following command:

context --purgeall --environment=mysecondstyle.tex --mode=myexample.xml

I know that the source file is missing (I discovered it later). This is
not my issue.

The problem is that the --purgeall option caused context to erase all
..log files contained in that directory. Instead of asking for a source
file name, it deleted all .log files.

I'm afraid this is a bug, at least it shouldn't erase files that context
didn't generate.


how should it know


-
  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] Huge PDFs

2011-12-29 Thread Hans Hagen

On 29-12-2011 13:45, luigi scarso wrote:

On Thu, Dec 29, 2011 at 12:16 PM, Jan Heinenjahei...@gmx.de  wrote:

Hello,

lots of my images are huge 200x250mm. I reduce their size with:
\externalfigure[cow][width=20mm, heigth=25mm]

After generating the PDF, the pdf is very huge.

1. Can't Context put the reduced image into the PDF?
2. How can I generate one PDF version for printing (300dpi) and one for the
screen (72dpi)?

I am using Context mk-IV.

no, you need something like ghostscript.
In this case (if you have not problems of space and time) it's better
to transform the pdf in ps with
  pdftops yourfile.pdf
and then apply ghostscript to the final ps (see the documentation
about ghostscript)


ghostscript can do that directly with the pdf (no need to go through ps)

(also see: 
http://article.gmane.org/gmane.comp.tex.context/71919/match=lowres)



-
  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] Huge PDFs

2011-12-29 Thread luigi scarso
On Thu, Dec 29, 2011 at 5:34 PM, Jan Heinen jahei...@gmx.de wrote:
  pdf -  pdftops -ps -ghostscript -pdf
  seems to be more robust and gives better results
  --
  luigi

 I will give it a try:
 Can you tell me the commands with all the parameters I need ?


 I have tried the following:

 #!/bin/sh
 suffix=_opt.pdf
 pdftops -paper match -level3 $1.pdf tmp.ps
 gs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook
 -dColorConversionStrategy=/LeaveColorUnchanged -dBATCH -dNOPAUSE
 -sOutputFile=$1.pdf$suffix tmp.ps
 rm tmp.ps


 But in some cases the PDF-files got bigger instead of smaller.
Yes this also my experience.
I suppose that gs acts only on images, not streams compression
You can try qpdf
http://qpdf.sourceforge.net
see 3.4. Advanced Transformation Options
http://qpdf.sourceforge.net/files/qpdf-manual.html#ref.advanced-transformation

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


Re: [NTG-context] spaceskip in \framed bug

2011-12-29 Thread Idris Samawi Hamid ادريس سماوي حامد

On Thu, 29 Dec 2011 07:55:37 -0700, Hans Hagen pra...@wxs.nl wrote:


On Sun, 25 Dec 2011 13:07:44 -0700, Idris Samawi Hamid ادريس سماوي حامد



The following used to work in mkiv, but no longer (works in mkii):




Setups come before setting the alignment and alignments sets the  
spaceskip too.


Are you sure that it worked before? nothing changed in that order.


I just now tried it again in mkii, and it works fine there.

Also, I've used this paradigm in one of my samples for a long time now in  
mkiv, and it definitely used to work. Indeed, I only tried mkii on a whim,  
this sample was a mkiv sample to start with.


In any case, I'm not clear on your point:

Setups come before setting the alignment and alignments sets the  
spaceskip too.


I have not found a combination that works in mkiv: Please advise. Here is  
the code again for reference:


==
\startsetups stretchline
  \spaceskip=0pt plus 2 fill \relax
\stopsetups
\setupframed[frame=on,width=\textwidth,setups=stretchline,
 offset=none,location=depth,align=l2r]
\showframe
\starttext
\framed{This is a test.}
\stoptext
==

Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] Huge PDFs

2011-12-29 Thread Jan Heinen

I found another way to compress PDFs: The ConText-command

\pdfcompresslevel=9

qpdf and ghostwriter also helped.

Thanx
Jannis
___
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] spaceskip in \framed bug

2011-12-29 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

Did not hear back on this, trying again ...

Best wishes
Idris

On Sun, 25 Dec 2011 13:07:44 -0700, Idris Samawi Hamid ادريس   سماوي حامد  
isha...@colostate.edu wrote:



Dear gang,

The following used to work in mkiv, but no longer (works in mkii):

===
% stretchline.tex
\startsetups stretchline
   \spaceskip=0pt plus 2 fill \relax
\stopsetups
\setupframed[frame=on,width=\textwidth,setups=stretchline,
 offset=none,location=depth,align=l2r]
\showframe
\starttext
\framed{This is a test.}
\stoptext
===

This is LuaTeX, Version beta-0.71.0-2011071409 (rev 4332)
  \write18 enabled.
(stretchline.tex

ConTeXt  ver: 2011.11.25 21:29 MKIV  fmt: 2011.11.25

===

Is it a bug? Any workarounds?


--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] itemize and \its

2011-12-29 Thread Herbert Voss

this one also worked some weeks ago:

\mainlanguage[de]
\starttext
\startitemize[8,packed]
 [width=8em,distance=2em,items=5]
 \ran {no\hss yes}
 \its I can not do it without \TeX.
 \mar{+} I use \TeX\ with other packages.
 \its I hardly use \TeX.
 \ran{\hss The future\hss}
 \its I will use \TeX\ forever.
 \its I expect no alternative to \TeX\
  in the next few years.
 \its I am looking for another system.
\stopitemize
+ Only {\it no} possible.
\stoptext

Herbert



! Use of \its doesn't match its definition.

system   tex  error on line 6 in file 05-01-7.ctxcrop: Use of  ...

 1 \mainlanguage[de]
 2 \starttext
 3 \startitemize[8,packed]
 4  [width=8em,distance=2em,items=5]
 5  \ran {no\hss yes}
 6\its I can not do it without \TeX.
 7  \mar{+} I use \TeX\ with other packages.
 8  \its I hardly use \TeX.
 9  \ran{\hss The future\hss}
10  \its I will use \TeX\ forever.
11  \its I expect no alternative to \TeX\
12   in the next few years.
13  \its I am looking for another system.
14 \stopitemize
15 + Only {\it no} possible.
16 \stoptext

l.6  \its I
can not do it without \TeX.
___
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] Huge PDFs

2011-12-29 Thread Jan Heinen

Hello,

lots of my images are huge 200x250mm. I reduce their size with:
\externalfigure[cow][width=20mm, heigth=25mm]

After generating the PDF, the pdf is very huge.

1. Can't Context put the reduced image into the PDF?
2. How can I generate one PDF version for printing (300dpi) 
and one for the screen (72dpi)?


I am using Context mk-IV.

Regards
Jannis

___
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] Huge PDFs

2011-12-29 Thread Jan Heinen

/   pdf -   pdftops -ps -ghostscript -pdf

//   seems to be more robust and gives better results
//   -- 
//   luigi

/
I will give it a try:
Can you tell me the commands with all the parameters I need ?


I have tried the following:

#!/bin/sh
suffix=_opt.pdf
pdftops -paper match -level3 $1.pdf tmp.ps
gs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook 
-dColorConversionStrategy=/LeaveColorUnchanged -dBATCH -dNOPAUSE 
-sOutputFile=$1.pdf$suffix tmp.ps
rm tmp.ps


But in some cases the PDF-files got bigger instead of smaller.


Regards
Jannis


___
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] Huge PDFs

2011-12-29 Thread luigi scarso
On Thu, Dec 29, 2011 at 12:16 PM, Jan Heinen jahei...@gmx.de wrote:
 Hello,

 lots of my images are huge 200x250mm. I reduce their size with:
 \externalfigure[cow][width=20mm, heigth=25mm]

 After generating the PDF, the pdf is very huge.

 1. Can't Context put the reduced image into the PDF?
 2. How can I generate one PDF version for printing (300dpi) and one for the
 screen (72dpi)?

 I am using Context mk-IV.
no, you need something like ghostscript.
In this case (if you have not problems of space and time) it's better
to transform the pdf in ps with
 pdftops yourfile.pdf
and then apply ghostscript to the final ps (see the documentation
about ghostscript)


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


Re: [NTG-context] Is there a replacement for \tracechinesetrue in mkiv?

2011-12-29 Thread Hans Hagen

On 29-12-2011 04:22, Zhichu Chen wrote:

All right, after some readings, I came out with a node solution. The
major idea is listed below and works just fine. n from node_traverse
(head) and n.id==node.id ('glyph')

My question is: is there a better way? Because these codes are so
dirty. I prefer mplib but I have no clue how to do that.


the next beta will have:

\starttext

\definefontfeature[redboxed]  [default][boundingbox=palered]
\definefontfeature[greenboxed][default][boundingbox=palegreen]
\definefontfeature[blueboxed] [default][boundingbox=paleblue]

\definefont[TestFontA][Serif*redboxed]
\definefont[TestFontB][Serif*greenboxed]
\definefont[TestFontC][Serif*blueboxed]

\startTEXpage[offset=10pt]

\start \TestFontA \input zapf \stop \blank
\start \TestFontB \input zapf \stop \blank
\start \TestFontC \input zapf \stop

\stopTEXpage

\stoptext

(for the moment only a few hard coded colors)

-
  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] itemize with conversion

2011-12-29 Thread Hans Hagen

On 29-12-2011 13:55, Herbert Voss wrote:

\defineconversion[ordinal][\enordinaldaynumber]


use

\defineconversion[ordinal][\ordinaldaynumber]

instead ... it adapts itself to the current language

(I'm cleaning up modules and removing off cases and that was one of 
them, as it makes no sense to let all languages have their own command.)




\starttext
  \startitemize[ordinal]
  \item Test
  \item Test
  \item Test
  \item Test
  \item Test
  \stopitemize
\stoptext



--

-
  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] bug with --purgeall?

2011-12-29 Thread Pablo Rodríguez
On 12/29/2011 04:01 PM, Hans Hagen wrote:
 On 29-12-2011 07:24, Pablo Rodríguez wrote:
 Hi there,

 yesterday I ran the following command:

 context --purgeall --environment=mysecondstyle.tex --mode=myexample.xml

 I know that the source file is missing (I discovered it later). This is
 not my issue.

 The problem is that the --purgeall option caused context to erase all
 ..log files contained in that directory. Instead of asking for a source
 file name, it deleted all .log files.

 I'm afraid this is a bug, at least it shouldn't erase files that context
 didn't generate.
 
 how should it know?

By name and by modification date and time.

But in any case, the following command:

context --purgeall

should give an error (missing document) before trying to purge all
documents.

Thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] spaceskip in \framed bug

2011-12-29 Thread Hans Hagen

On 29-12-2011 15:21, Idris Samawi Hamid ادريس   سماوي حامد wrote:

Dear gang,

Did not hear back on this, trying again ...

Best wishes
Idris

On Sun, 25 Dec 2011 13:07:44 -0700, Idris Samawi Hamid ادريس سماوي حامد
isha...@colostate.edu wrote:


Dear gang,

The following used to work in mkiv, but no longer (works in mkii):


Setups come before setting the alignment and alignments sets the 
spaceskip too.


Are you sure that it worked before? nothing changed in that order.

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] Huge PDFs

2011-12-29 Thread Jan Heinen

 pdf -  pdftops -ps -ghostscript -pdf
 seems to be more robust and gives better results
 -- 
 luigi


I will give it a try:
Can you tell me the commands with all the parameters I need ?

Regards
Jannis

___
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] paragraph numbering

2011-12-29 Thread Herbert Voss

current beta:

\starttext
Some text.

\setupparagraphnumbering[state=start]
first numbered paragraph.

This is another numbered paragraph. It's long enough to wrap around onto 
more
than one line, so as to show that these are paragraph numbers and not 
line numbers.\par


A third numbered paragraph.
\setupparagraphnumbering[state=stop]

a paragraph
\stoptext

Herbert


! Undefined control sequence.

system   tex  error on line 5 in file 05-04-1.ctxcrop: 
Undefined control sequence ...


 1 \starttext
 2 Some text.
 3
 4 \setupparagraphnumbering[state=start]
 5   first numbered paragraph.
 6
 7 This is another numbered paragraph. It's long enough to wrap 
around onto more
 8 than one line, so as to show that these are paragraph numbers 
and not line numbers.\par

 9
10 A third numbered paragraph.
11 \setupparagraphnumbering[state=stop]
12
13 a paragraph
14 \stoptext
15

argument \tf \dousestyleparameter \@phstyle
  \dousecolorparameter 
\@phcolor...

\doifelsenothing #1-\edef \!!stringa {#1
 }\ifx \!!stringa \empty 
\expandafte...

\dodomargindata ...a [#1]\fi \doifelsenothing {#3}
  \donefalse \donetrue 
\ifdo...

everypar ...eckindentation \showparagraphnumber

\restoreinterlinepenalty \...
to be read again
   f
l.5 f
 irst numbered paragraph.
___
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] bug with --purgeall?

2011-12-29 Thread Pablo Rodríguez
On 12/29/2011 07:49 PM, Hans Hagen wrote:
 On 29-12-2011 17:12, Pablo Rodríguez wrote:
 On 12/29/2011 04:01 PM, Hans Hagen wrote:
 how should it know?

 By name and by modification date and time.

 But in any case, the following command:

  context --purgeall

 should give an error (missing document) before trying to purge all
 documents.
 
 Well, I use it to really purge all those files, including logs (left 
 overs from tests and such).

Thanks for your reply, Hans.

I'm not sure whether I got it right: do you use context --purgeall
instead of the Windows version of rm *.log *.tuc (and other file
extensions)? (Sorry, I'm not proficient at Windows shell :-().

I guess that context --purgeall * would be a better choice, since the
user explicitly asks to remove all files with the proper extensions.

Otherwise one might accidentally (as I did yesterday) end deleting log
files totally unrelated to ConTeXt or even TeX, such as log files,

Thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] orphans and widow control not working

2011-12-29 Thread Pablo Rodríguez
On 12/29/2011 08:21 PM, Wolfgang Schuster wrote:
 Am 29.12.2011 um 20:16 schrieb Pablo Rodríguez:
 Hi there,

 trying to avoid widow and orphan lines in my texts, Hans suggested about
 three weeks ago the following settings
 (http://www.ntg.nl/pipermail/ntg-context/2011/063746.html).

 But the following sample doesn't compile:

  \setuplayout[setups=*lessstrict]
  \startsetups[*lessstrict]
  \setup[*\s!reset]
 
 Write “\setup[reset]” without the “\s!” prefix.

Thanks, Wolfgang, it worked perfectly.


Pablo
-- 
http://www.ousia.tk
___
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 indentation

2011-12-29 Thread Herbert Voss

this worked some weeks ago:

\setupindentations[sample={Sprecher A},separator={:},distance=.5em]
\defineindenting[ra][text=Sprecher A]
\defineindenting[rb][text=Sprecher B]
\defineindenting[rc][text=Sprecher C]
\starttext
\startpacked
\ra Wie geht es dir?\par
\ra Ich fragte, wie es dir geht?\par
\rb Mir geht es gut!\par
\rc Habt ihr sonst keine Sorgen?

\ra Nicht dein Problem!\par
\rb Finde ich auch auch!\par
\rc Ist ja schon gut?!\par
\stoppacked
\stoptext


Herbert

! Undefined control sequence.

system   tex  error on line 1 in file 05-05-1.ctxcrop: 
Undefined control sequence ...


 1   \setupindentations[sample={Sprecher A},separator={:},distance=.5em]
 2 \defineindenting[ra][text=Sprecher A]
 3 \defineindenting[rb][text=Sprecher B]
 4 \defineindenting[rc][text=Sprecher C]
 5 \starttext
 6 \startpacked
 7 \ra Wie geht es dir?\par
 8 \ra Ich fragte, wie es dir geht?\par
 9 \rb Mir geht es gut!\par
10 \rc Habt ihr sonst keine Sorgen?
11

l.1 \setupindentations
  [sample={Sprecher A},separator={:},distance=.5em]
? X
___
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] Broken Nightly Still

2011-12-29 Thread Kip Warner
On Thu, 2011-12-29 at 09:49 +0100, Hans Hagen wrote:
 On 29-12-2011 04:09, Kip Warner wrote:
  Hey folks,
 
  Since I upgraded from the Nov 29th nightly to today's Dec 28th, my
 
  ! Undefined control sequence.
  argument  \@cmstyle
 
 must be something older ... in chem-str.mkiv replace this:
 
 \unexpanded\def\dosetchemicaltext
{\dousestyleparameter\@@cmstyle
 \dousecolorparameter\@@cmcolor}

Hey Hans. It compiles fine now. Thanks a lot. Should I keep patching
chem-str.mkiv manually, or should I assume you'll do this upstream for
the next nightly?

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] Whitespacing and Interlinespacing for \startitemize ... \stopitemize

2011-12-29 Thread Jan Heinen

Hello two questions for \startitemize

(1) Start ... Stop for interlinespacing

How can I declare some spacing only for an itemization: 
\setupinterlinespace [0.4em]{ ... } does not work:



\starttext

\setupinterlinespace [0.4em]{
\startitemize
\item aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa
\item  bbb bbb 
bbb bbb bbb 
bbb bbb bbb 
bbb bbb bbb
\item ccc ccc 
ccc ccc ccc 
ccc ccc ccc 
ccc ccc ccc 
ccc ccc

\stopitemize
}

\stoptext



(2) How to define whitespacing?


\starttext

At the first itemization there should be no extra whitespace 
between the items. Whitespace and interlinespace should be 
the same: 0.4em. What can I do against the whitespace?


\setupwhitespace[0.4em]
\setupinterlinespace [0.4em]
\startitemize
\item aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa
\item  bbb bbb 
bbb bbb bbb 
bbb bbb bbb 
bbb bbb bbb
\item ccc ccc 
ccc ccc ccc 
ccc ccc ccc 
ccc ccc ccc 
ccc ccc

\stopitemize

\blank[3*big]

And here I want to have the default white- and 
interlinespace again:


\startitemize
\item aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa \par
\item  bbb bbb 
bbb bbb bbb 
bbb bbb bbb 
bbb bbb bbb\par
\item ccc ccc 
ccc ccc ccc 
ccc ccc ccc 
ccc ccc ccc 
ccc ccc \par

\stopitemize

\stoptext


Regards
Jannis

___
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] Whitespacing and Interlinespacing for \startitemize ... \stopitemize

2011-12-29 Thread Wolfgang Schuster

Am 30.12.2011 um 00:17 schrieb Jan Heinen:

 Hello two questions for \startitemize
 
 (1) Start ... Stop for interlinespacing
 
 How can I declare some spacing only for an itemization: \setupinterlinespace 
 [0.4em]{ ... } does not work:
 
 […]
 
 (2) How to define whitespacing?
 
 
 \starttext
 
 At the first itemization there should be no extra whitespace between the 
 items. Whitespace and interlinespace should be the same: 0.4em. What can I do 
 against the whitespace?
 
 […]
 
 And here I want to have the default white- and interlinespace again:
 
 […]

\start \setupinterlinespace[line=…]
…
\stop

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] Minimals on an arm-processor

2011-12-29 Thread Mojca Miklavec
On Thu, Dec 22, 2011 at 21:48, Gerhard Kugler wrote:
 Hi,

 on my new netbook (Hercules eCafe) I have an ubuntu. It would be
 possible to install the official packages of texlive and/or context.
 But I would prefer a new minimal installation for a single user. If I
 call first-setup.sh I get:

 Error: your system Linux armv71 is not supported yet.
 Please report to the ConTeXt  mailing-list (ntg-context@ntg.nl)

We have the binaries now (kindly contributed by Boris Veytsman). My
only question remains: how badly do you need ConTeXt to work *now*?

Until I set everything up, you have the following options:

1.) The binaries at http://www.tug.org/texlive/files/armel-linux-tl11/
should suffice to make a single-user installation of TeX Live 2011
which has a reasonable version of ConTeXt (not the latest one, but
it's a tested/patched release from early 2011). Karl says that
something like install-tl -custom-bin=whatever should work, but I
have never tested that.

2.) Adam Reviczky is maintaining some repositories at
https://code.launchpad.net/~reviczky/ (but it is not a single user
thing)

3.) You can copy a ConTeXt installation from whatever other platform
and just add the binaries from the link above. Some minor changes are
needed, but I speculate that if you set the path right, everything
should work out-of-the-box.

I'm asking about how badly because there will be a major
restructuring of everything sometime soon and I would not like to
spend too much time fixing the old infrastructure.

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
___

[NTG-context] Page Size to Figure Size

2011-12-29 Thread Kip Warner
Hey list,

I have a lot of fairly large diagrams in my book that don't always match
the aspect ratio of the page in landscape mode, though they usually are
closer to landscape than a portrait layout for the page dimension.

How can I insert a figure so that it is of a given size, with the page
size perfectly cropped around it?

The closest I have right now is this which is rather awful:

\definepapersize[main][A4][A4]
\definepapersize[diagram][A4,landscape][A4,landscape]

% Insert a full page landscape diagram, parameters are node name,
caption, and path...
\def\FullPageLandscapeDiagram#1#2#3%
{
\page 
\setuppapersize[diagram]
\setuplayout[fullpage]
\startframedtext[width=.95\textwidth,bottom=\vss,top=
\vss,align=right,corner=rectangular]
\placefigure
[force][figure:#1]
{#2}
{\externalfigure[#3][width=.95
\textwidth,background=color,backgroundcolor=colour_figure_background]}
\stopframedtext
\page
\setuppapersize[main]
\setuplayout[reset]
}

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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 handle the fonts whose name contains a blank space?

2011-12-29 Thread dalyoung
Dear all,

Sometime ago, I asked the same question and got replies.
However, I couldn't make it work and I didn't try since then.

Now, I am asking the same question again with a hope.

I have several Korean fonts whose name contains a blank space.

For example, in KoPubBatang_Pro family, there are 3 fonts:
 KoPubBatang_Pro Light (font file name is KoPubBatang_Pro Light.otf)
 KoPubBatang_Pro Medium (font file name is KoPubBatang_Pro Medium.otf)
 KoPubBatang_Pro Bold (font file name is KoPubBatang_Pro Bold.otf)

You can download the fonts from here:
http://www.mcst.go.kr/web/notifyCourt/notice/mctNoticeView.jsp?pSeq=6870


Here is a sample code:

\definefont[test][KoPubBatang_Pro Light.otf]
\starttext
\test
This is a test for KoPubBatang font.
한글이 잘 써지는지 봅시다.

\stoptext

But I got the following messages in the log file.

fonts  defining  font with asked name 'KoPubBatang_Pro' is not found using 
lookup 'file'
fonts  defining  unknown font KoPubBatang_Pro, loading aborted
fonts  defining  unable to define KoPubBatang_Pro as \**sangsang**
backend  xmp  using file 
'/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages  flushing realpage 1, userpage 1, subpage 1
)/Users/graph/ConTeXt/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf

Is there any hints for this?

Thanks for reading and Happy New Year!

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
___

[NTG-context] Broken Nightly Chokes on \rotate

2011-12-29 Thread Kip Warner
Hey folks,

The nightly for Dec 29th seems to choke on \rotate. I have a statement:

\midaligned{\rotate[rotation=42]{\color[red] \bft THIS IS A DRAFT!}}

ConTeXt emits the following:

! Undefined control sequence.
\dodorotatenextbox ... \@@rorotation \@@layerxpos 
  \zeropoint
\@@layerypos \z...
\dorotatenextbox ...rotatenextbox \@@rorotation #2
  \fi \boxcursor
\flushnextb...
\boxes_with_next_box ...x \@@rorotation \!!counta 
  \egroup 
l.22 ...THIS IS A DRAFT!}
  }
? 

I'm fairly sure it isn't the \midaligned because I have other statements
it compiles fine.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] Page Size to Figure Size

2011-12-29 Thread Aditya Mahajan

On Thu, 29 Dec 2011, Kip Warner wrote:


Hey list,

I have a lot of fairly large diagrams in my book that don't always match
the aspect ratio of the page in landscape mode, though they usually are
closer to landscape than a portrait layout for the page dimension.

How can I insert a figure so that it is of a given size, with the page
size perfectly cropped around it?


\startTEXpage[offset=1mm]
\externalfigure[...]
\stopTEXpage

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] three issues with streams

2011-12-29 Thread Pablo Rodríguez
Hi there,

after tweaking with the example provided by Wolfgang
(http://www.ntg.nl/pipermail/ntg-context/2011/063353.html), I tried to
generate a bilingual poetry document with original Greek text and facing
Spanish translation (using ConTeXt stable as provided by TL2011).

Here is the basic structure:

\enabletrackers[streams.flushing]
\def\itit#1{{\language[it]\em#1}}
\starttext
\completecontent

\startoutputstream[agr]

Spanish poems including many chapters

\enableoutputstream[es]

Spanish poems including many chapters

\disableoutputstream
\stopoutputstream
\synchronizestreams[agr,es]
\page \flushoutputstream[agr]
\page \flushoutputstream[es]
\stoptext

My questions are:

I include the whole Greek text and the Spanish text after it. I expect
ConTeXt to synchonize both streams in titles and paragraphs, but all I
get is the Greek stream typeset before the Spanish stream. Is there no
way to get ConTeXt synchronizing both streams automatically?

How can I enable \startlinenumbering ... \stoplinenumbering in the poems
themselves? It doesn't seem to work, since it gives an error
(\startlines ... \stoplines works fine).

How can I get that elements on the left page (or outputstream[agr]) are
independent from the right page [or outputstream[es])? I mean that
sectioning numbers and footnote numbers are independent in each stream,
i.e, chapter 1 on left page has a chapter 1 on facing page.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] generating PDF from XML

2011-12-29 Thread Pablo Rodríguez
Hi there,

http://meeting.contextgarden.net/2011/talks/day2_03_thomas_xml-tutorial/
contains some files that allow generating PDF from XML source files.

context --purgeall --environment=mysecondstyle.tex myexample.xml

with ConTeXt stable from TL2011 should do the work, shouldn't it?

Well... I get no error, but I don't get the PDF output.

The same happens with the examples at http://wiki.contextgarden.net/TEI_xml.

What am I doing wrong?

Thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] Broken Nightly Chokes on \rotate

2011-12-29 Thread Wolfgang Schuster

Am 30.12.2011 um 05:55 schrieb Kip Warner:

 Hey folks,
 
 The nightly for Dec 29th seems to choke on \rotate. I have a statement:
 
\midaligned{\rotate[rotation=42]{\color[red] \bft THIS IS A DRAFT!}}
 
 ConTeXt emits the following:
 
 ! Undefined control sequence.
 \dodorotatenextbox ... \@@rorotation \@@layerxpos 
  \zeropoint
 \@@layerypos \z...
 \dorotatenextbox ...rotatenextbox \@@rorotation #2
  \fi \boxcursor
 \flushnextb...
 \boxes_with_next_box ...x \@@rorotation \!!counta 
  \egroup 
 l.22 ...THIS IS A DRAFT!}
  }
 ? 
 
 I'm fairly sure it isn't the \midaligned because I have other statements
 it compiles fine.


Do you have a minimal example because this works (when I remove the not 
existing \bft command):

\starttext
\midaligned{\rotate[rotation=42]{\color[red]THIS IS A DRAFT!}}
\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
___