Re: [NTG-context] compresslevel and png graphics (mkiv)

2011-05-27 Thread Henning Hraban Ramm
Am 2011-05-26 um 19:43 schrieb mathew: Some numbers: SVG to PDF: Two diagrams, 25k. SVG to EPS: Same two diagrams, 54k. Difference: 29k. Document rendered using the PDFs: 535k. Document rendered using the EPSs: 463k. Difference: 72k in the opposite direction. Be aware that ConTeXt needs to

Re: [NTG-context] compresslevel and png graphics (mkiv)

2011-05-27 Thread Hans Hagen
On 27-5-2011 8:17, Henning Hraban Ramm wrote: Be aware that ConTeXt needs to convert EPS (or SVG) to PDF before including - so providing EPS might elongate processing time. Only once, as conversion is cached. And PDF sizes depend very much on the used tools, e.g. Acrobat Distiller PDFs are

Re: [NTG-context] [solved] t-filter: no table created when Unicode characters are included

2011-05-27 Thread Paul Menzel
Am Montag, den 02.05.2011, 17:30 +0200 schrieb Paul Menzel: Am Sonntag, den 01.05.2011, 15:09 -0400 schrieb Aditya Mahajan: On Sun, 1 May 2011, Aditya Mahajan wrote: On Sun, 1 May 2011, Peter Münster wrote: So, whatever the original enviroment is, context and/or luatex sets

[NTG-context] \asciimode and cld

2011-05-27 Thread Peter Münster
Hello, How can one use \asciimode in cld syntax? This does not seem to work: context.starttext() context.asciimode() contextbla % bla context.stoptext() TIA for any hints! -- Peter ___ If your question

Re: [NTG-context] TOC : Chapter title under its number (separate lines)

2011-05-27 Thread Alan Braslau
On Thu, May 26, 2011 at 08:16:21PM +0200, Wolfgang Schuster wrote: Am 26.05.2011 um 18:48 schrieb Alan Braslau: \setuplist[chapter][label=yes,alternative=vertical,command=\ChapterList,interaction=all] Almost works. Almost in that all lines get indented by one level, and then the page

[NTG-context] checking mainlanguage setup

2011-05-27 Thread Jeong Dalyoung
Dear all, Is it possible to check what is the mainlanguage set in document? Now, I use \enablemode[kr] to do something A. But, I'd like to do it automatically if possible. For example, I'd like to do the following type of setup. if mainlanguage == kr then do something A elseif

Re: [NTG-context] checking mainlanguage setup

2011-05-27 Thread Pontus Lurcock
On Fri 27 May 2011, Jeong Dalyoung wrote: Is it possible to check what is the mainlanguage set in document? Now, I use \enablemode[kr] to do something A. But, I'd like to do it automatically if possible. According to http://wiki.contextgarden.net/Modes#System_modes , the mode **kr should be

Re: [NTG-context] checking mainlanguage setup

2011-05-27 Thread Marco
I'd like to do the following type of setup. if mainlanguage == kr then do something A elseif mainlanguage == en then do something B else do something C endif \starttext \startluacode if languages.current() == kr then context(Something A) elseif

Re: [NTG-context] checking mainlanguage setup

2011-05-27 Thread Peter Münster
On Fri, May 27 2011, Jeong Dalyoung wrote: Is it possible to check what is the mainlanguage set in document? Yes. Example: %\mainlanguage[fr] %\language[fr] \starttext currentlanguage: \doifelse\currentlanguage{fr}{French}{Not French}\par currentmainlanguage:

[NTG-context] [metafun] graphictext in mkiv

2011-05-27 Thread Marco
The »graphictext« makro does not work in mkiv, is it a bug or intended? This example works in mkii: \starttext \startMPcode draw image(graphictext FooBar scaled 8); \stopMPcode \stoptext Marco ___ If your question

Re: [NTG-context] compresslevel and png graphics (mkiv)

2011-05-27 Thread Peter Rolf
Am 26.05.2011 18:17, schrieb Peter Rolf: Am 26.05.2011 12:52, schrieb Peter Rolf: Am 25.05.2011 21:54, schrieb Hartmut Henkel: [..] no. There is a PNG Copy function for literal embedding of the PNG file, but that triggers only, if the file simultaneously satisfies quite a few conditions,

Re: [NTG-context] \asciimode and cld

2011-05-27 Thread Hans Hagen
On 27-5-2011 11:00, Peter Münster wrote: Hello, How can one use \asciimode in cld syntax? This does not seem to work: context.starttext() context.asciimode() contextbla % bla context.stoptext() \starttext \startluacode context.startTEXpage() context.starttext()

Re: [NTG-context] compresslevel and png graphics (mkiv)

2011-05-27 Thread Hartmut Henkel
@luigi: an ICC profile definitely breaks the png copy rules The only chunks left are IHDRPNG image header: 5900x4094, 8bits/sample, truecolor, noninterlaced IDATPNG image data .. IDATPNG image data IENDend-of-image marker Mh, where is the show stopper? The

Re: [NTG-context] TOC : Chapter title under its number (separate lines)

2011-05-27 Thread Mathieu DUPONT
As for the interaction patching, in the following example I can't figure out how to have, for the chapter lines, only CHAPTER 1 being the interaction and not the title + the dots line + the page number, as it is the case with this code.The example is minimal, but I left everything I am afraid

Re: [NTG-context] \asciimode and cld

2011-05-27 Thread Hans Hagen
On 27-5-2011 3:07, Hans Hagen wrote: On 27-5-2011 11:00, Peter Münster wrote: Hello, How can one use \asciimode in cld syntax? This does not seem to work: context.starttext() context.asciimode() contextbla % bla context.stoptext() \starttext \startluacode context.startTEXpage()

Re: [NTG-context] TOC : Chapter title under its number (separate lines)

2011-05-27 Thread Alan Braslau
interaction=sectionnumber rather than interaction=all doesn't seem to help here... Alan On Fri, May 27, 2011 at 09:33:53AM -0400, Mathieu DUPONT wrote: As for the interaction patching, in the following example I can't figure out how to have, for the chapter lines, only CHAPTER 1 being the

Re: [NTG-context] TOC : Chapter title under its number (separate lines)

2011-05-27 Thread Mathieu DUPONT
No, I had tried that.The problem is obviously caused by all the layers of patching, which I need though. Mathieu Date: Fri, 27 May 2011 16:00:36 +0200 From: alan.bras...@cea.fr To: ntg-context@ntg.nl Subject: Re: [NTG-context] TOC : Chapter title under its number (separate lines)

Re: [NTG-context] \definehead \setuphead new type included in a list such as TOC

2011-05-27 Thread Mathieu DUPONT
That was very useful. Thanks again Wolfgang ! Mathieu From: schuster.wolfg...@googlemail.com Date: Thu, 26 May 2011 18:52:48 +0200 To: ntg-context@ntg.nl Subject: Re: [NTG-context] \definehead \setuphead new type included in a list such as TOC Am 26.05.2011 um 18:15 schrieb

[NTG-context] Validate (cross)references

2011-05-27 Thread Andreas Schneider
Hello, if I use \in, \about, \at or anything else that generates a cross-reference, and that reference happens to be invalid (typo or whatever), it just prints out nothing. Is there a way to have context throw an error if a reference is invalid? (That probably would only

Re: [NTG-context] Validate (cross)references

2011-05-27 Thread Wolfgang Schuster
Am 27.05.2011 um 17:04 schrieb Andreas Schneider: Hello, if I use \in, \about, \at or anything else that generates a cross-reference, and that reference happens to be invalid (typo or whatever), it just prints out nothing. Is there a way to have context throw an

Re: [NTG-context] compresslevel and png graphics (mkiv)

2011-05-27 Thread Peter Rolf
Am 27.05.2011 15:09, schrieb Hartmut Henkel: @luigi: an ICC profile definitely breaks the png copy rules The only chunks left are IHDRPNG image header: 5900x4094, 8bits/sample, truecolor, noninterlaced IDATPNG image data .. IDATPNG image data IENDend-of-image marker Mh,

Re: [NTG-context] compresslevel and png graphics (mkiv)

2011-05-27 Thread luigi scarso
On Fri, May 27, 2011 at 5:11 PM, Peter Rolf indi...@gmx.net wrote: Am 27.05.2011 15:09, schrieb Hartmut Henkel: @luigi: an ICC profile definitely breaks the png copy rules The only chunks left are IHDR    PNG image header: 5900x4094, 8bits/sample, truecolor, noninterlaced IDAT    PNG image

Re: [NTG-context] Validate (cross)references

2011-05-27 Thread Andreas Schneider
On Friday, May 27, 2011 17:09 Wolfgang Schuster wrote: Am 27.05.2011 um 17:04 schrieb Andreas Schneider: Hello, if I use \in, \about, \at or anything else that generates a cross-reference, and that reference happens to be invalid (typo or whatever), it just prints out

Re: [NTG-context] compresslevel and png graphics (mkiv)

2011-05-27 Thread Peter Rolf
Am 27.05.2011 17:19, schrieb luigi scarso: On Fri, May 27, 2011 at 5:11 PM, Peter Rolf indi...@gmx.net wrote: Am 27.05.2011 15:09, schrieb Hartmut Henkel: @luigi: an ICC profile definitely breaks the png copy rules The only chunks left are IHDRPNG image header: 5900x4094, 8bits/sample,

[NTG-context] First Line After Whitespace Styling

2011-05-27 Thread Marc Trius
Hi, I would like to be able to specify a style that would apply to text that appears on the first line of a paragraph after whitespace. I have no idea how to go about it. Specifically, I have a font with an alternate glyph that can only be used after whitespace, and I would like to have it

Re: [NTG-context] First Line After Whitespace Styling

2011-05-27 Thread Wolfgang Schuster
Am 27.05.2011 um 18:08 schrieb Marc Trius: Hi, I would like to be able to specify a style that would apply to text that appears on the first line of a paragraph after whitespace. I have no idea how to go about it. Specifically, I have a font with an alternate glyph that can only be

[NTG-context] line numbers in margin from xml in context mkiv

2011-05-27 Thread Jon Crump
Hans, et alia, Thanks for mentioning typo-mar.mkiv. Once I found it, and figured out what to do with it (put it in my texmf-local directory), it appears to, as you say, offer more control over margindata. My (rather belated) thanks for offering this extended functionality, though my grasp of

Re: [NTG-context] Validate (cross)references

2011-05-27 Thread Jesse Alama
On 2011-05-27 17:19:30 +0200, Andreas Schneider said: On Friday, May 27, 2011 17:09 Wolfgang Schuster wrote: Am 27.05.2011 um 17:04 schrieb Andreas Schneider: Hello, if I use \in, \about, \at or anything else that generates a cross-reference, and that reference happens to

Re: [NTG-context] Validate (cross)references

2011-05-27 Thread Aditya Mahajan
On Fri, 27 May 2011, Jesse Alama wrote: Throwing an error would be one way to do this. If throwing an error is not possible, perhaps being able to customize what gets printed when an undefined reference is encountered. E.g., instead of ??, a big, annoying, impossible-to-miss mark in the

Re: [NTG-context] Validate (cross)references

2011-05-27 Thread Taco Hoekwater
On 27 mei 2011, at 19:50, Aditya Mahajan adit...@umich.edu wrote: On Fri, 27 May 2011, Jesse Alama wrote: Throwing an error would be one way to do this. If throwing an error is not possible, perhaps being able to customize what gets printed when an undefined reference is encountered.

[NTG-context] Modifying the header of a Register : \setuphead or \setupregister not working

2011-05-27 Thread Mathieu DUPONT
Hi, How can one modify the header of a Register, after it apparently inherited from Chapter ?In the following example, I try to have the title INDEX at the same height as the title CHAPTER,but neither the \setuphead nor \setupregister commands seem to do anything.Is there another command for

Re: [NTG-context] Modifying the header of a Register : \setuphead or \setupregister not working

2011-05-27 Thread Wolfgang Schuster
Am 27.05.2011 um 20:32 schrieb Mathieu DUPONT: Hi, How can one modify the header of a Register, after it apparently inherited from Chapter ? In the following example, I try to have the title INDEX at the same height as the title CHAPTER, but neither the \setuphead nor \setupregister

Re: [NTG-context] First Line After Whitespace Styling

2011-05-27 Thread Marc Trius
On Fri, 27 May 2011 18:30:53 +0200 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 27.05.2011 um 18:08 schrieb Marc Trius: Hi, I would like to be able to specify a style that would apply to text that appears on the first line of a paragraph after whitespace. I have no

Re: [NTG-context] First Line After Whitespace Styling

2011-05-27 Thread Wolfgang Schuster
Am 27.05.2011 um 21:08 schrieb Marc Trius: No, what is something like: ... \starttypescript [Standard] \definetypeface [Standard] [rm] [serif] [frankruehl] [default] [features=default] \definetypeface [Alt][rm] [serif] [frankruehl] [default] [features=alt]

Re: [NTG-context] Modifying the header of a Register : \setuphead or \setupregister not working

2011-05-27 Thread Mathieu DUPONT
This is fixing a lot of problems I had, thank you ! Mathieu From: schuster.wolfg...@googlemail.com Date: Fri, 27 May 2011 20:46:01 +0200 To: ntg-context@ntg.nl Subject: Re: [NTG-context] Modifying the header of a Register : \setuphead or \setupregister not working Am 27.05.2011

Re: [NTG-context] First Line After Whitespace Styling

2011-05-27 Thread Marc Trius
On Fri, 27 May 2011 21:19:29 +0200 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 27.05.2011 um 21:08 schrieb Marc Trius: No, what is something like: ... \starttypescript [Standard] \definetypeface [Standard] [rm] [serif] [frankruehl] [default]

Re: [NTG-context] Validate (cross)references

2011-05-27 Thread Hans Hagen
On 27-5-2011 8:03, Taco Hoekwater wrote: On 27 mei 2011, at 19:50, Aditya Mahajanadit...@umich.edu wrote: On Fri, 27 May 2011, Jesse Alama wrote: Throwing an error would be one way to do this. If throwing an error is not possible, perhaps being able to customize what gets printed when

Re: [NTG-context] checking mainlanguage setup

2011-05-27 Thread Jeong Dalyoung
Dear Pontus, Marco, and Peter, Thank you for replies. I tested the following codes: 1) \startluacode if languages.current() == kr then context(Korean) else context(Not Korean) end \stopluacode 2) \doifelse\currentlanguage{en}{\def\lang{English}}{\def\lang{Not English}}\par currentlanguage:

Re: [NTG-context] checking mainlanguage setup

2011-05-27 Thread Aditya Mahajan
On Sat, 28 May 2011, Jeong Dalyoung wrote: \startluacode if languages.current() == kr then context([[\def\lang{Korean}]]) %(\def\lang{Korean}) else context([[\def\lang{English}]]) %(\def\lang{Korean}) end \stopluacode currentlanguage: \lang is not working. (undifined control sequence error)