Re: [NTG-context] [test suite] Bidi and line numbering

2012-10-22 Thread Marco Pessotto

Hello there.

https://github.com/melmothx/context-unofficial-test-suite/blob/master/src/mkiv/bidi/linenumbers-001.tex

The line numbering positioning is messed up and overlaps the text, or is
on the wrong side. With TL12 the output was good.

Cheers


-- 
Marco

___
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 in math integral

2012-10-22 Thread Marco Pessotto
Hans Hagen  writes:

> Keep in mind that mkiv and mkii will never produce the same results
> (e.g.: more granularity in font metrics in mkiv, less juggling with
> combined shapes in mkiv, etc). SO, it can never be the pixel wise
> reference.

I'm well aware of this, but having something at least similar which can
be compared easily is better than nothing. Once you say the issue can be
considered fixed, I'll replace the reference with the new, good one.
Having a failing test, reminding that the issue is open, makes sense to
me.

Best wishes

-- 
Marco
___
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 in math integral

2012-10-22 Thread Hans Hagen

On 22-10-2012 21:41, Otared Kavian wrote:


On 22 oct. 2012, at 18:47, Marco Pessotto  wrote:


[…]
Should the attached (compiled with the latest beta, as fixed by Hans) be
used as referenced?



Hi Marco and Hans,

Thanks to everyone for your attention, and many thanks to Hans for having tried 
to fix the bug in mkiv.
Unfortunately the bug is still there, as it can be seen from the comparison of 
the two PDF files I am sending with this message: they are both the result of 
typesetting the same source file I sent you. The one typeset with mkii has the 
correct output, while the one with mkiv is not correct (the spacing of the 
bounds of the integrals and the spacing between the integrals when they are 
invoked with \iint or \iiint are incorrect). (I tried this with ConTeXt version 
2012-10-22, 11:01).
The « reference » output should be the file « math-integral-mkii-2012-10-22.pdf 
»


Keep in mind that mkiv and mkii will never produce the same results 
(e.g.: more granularity in font metrics in mkiv, less juggling with 
combined shapes in mkiv, etc). SO, it can never be the pixel wise reference.


The issue with italic correction is complex. First of all italic 
corrections are a tex thing while in otf advanced kerning mechanism is 
used. This means that the engine has to deal with traditional as well ad 
new mechanisms. In the process of developing luatex and mkiv, we went 
through several phases, one is that the italic correction had to be 
added to the width (a handicap is that luatex has to make some guesses, 
and the mkiv vf is a wide font on the one hand but still a traditional 
one).


Anyhow, already quite a while ago, mkiv got two mechanisms to deal with 
italic correction, one for text and one for math (otf text fonts have no 
italic correction). Both mechanism can be configured to adapt themselves 
to the situation. For math we have 4 variants.


\setupmathematics[italics=1] % fontitalics
\setupmathematics[italics=2] % fontdata
\setupmathematics[italics=3] % quad based
\setupmathematics[italics=4] % combination of 1 and 3
\setupmathematics[italics=none]

Depending on available italic info or the lack of it, correction is 
applied. Of course this can be improved.


Once they are complete, we can make the new gyre math fonts default and 
some of the problems will go away. The virtuals will then be kept as an 
example of defining virtual fonts.


Concerning the issue: i removed adding the italic correction to the 
width (something that was needed in a previous version of luatex).


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] [test suite] Bibtex-related test fails to compile.

2012-10-22 Thread Marco Pessotto

I've imported most of the testfiles kindly provided by Hans. Now the
test suite has grown to ~900 files. I'm running them in chunks and I'll
keep reporting, even if I don't need the feature. If you prefer me to
post to another list, please let me know.

https://github.com/melmothx/context-unofficial-test-suite/tree/master/src/mkiv/bibtex

collapse-001.tex fails to compile. See below the log.

progressive-005.tex picks a different LM font, but probably because I
don't have the required fonts installed and it's using a different one
as fallback (I don't know which one is supposed to be the good one,
probably noone :-).

The other differences are just due to different distances, so I'm
promoting them to references.

Best wishes

context collapse-001.tex

mtx-context | run 1: luatex 
--fmt="/media/data/melmoth/progetti/context-cutting-edge/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en"
 --jobname="collapse-001" 
--lua="/media/data/melmoth/progetti/context-cutting-edge/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui"
 --no-parse-first-line --c:currentrun=1 --c:fulljobname="./collapse-001.tex" 
--c:input="./collapse-001.tex" --c:kindofrun=1 "cont-yes.mkiv"
This is LuaTeX, Version beta-0.70.1-2012052416 (rev 4277) 
 \write18 enabled.
(/media/data/melmoth/progetti/context-cutting-edge/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2012.10.22 11:01 MKIV  fmt: 2012.10.22  int: english/english

system  > cont-new.mkiv loaded
(/media/data/melmoth/progetti/context-cutting-edge/tex/texmf-context/tex/context/base/cont-new.mkiv
system  > beware: some patches loaded from cont-new.mkiv
)
system  > files > jobname: collapse-001, input: collapse-001, result: 
collapse-001
fonts   > latin modern fonts are not preloaded
languages   > language en is active
(collapse-001.tex{/media/data/melmoth/progetti/context-cutting-edge/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts   > preloading latin modern fonts (second stage)
fonts   > typescripts > unknown: library 'loc'
{/media/data/melmoth/progetti/context-cutting-edge/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/media/data/melmoth/progetti/context-cutting-edge/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts   > virtual math > unable to resolve name mapsfromchar
fonts   > fallback modern rm 12pt is loaded
publications> file collapse-001.bbl not found, waiting for bibtex
! Undefined control sequence.

system  > tex > error on line 27 in file collapse-001.tex: Undefined 
control sequence ...

17 \stoppublication
18 
19 \setuppublications[state=start,refcommand=authoryear,authoretallimit=1]
20 
21 \setupcite[author][left=,right=]
22 
23 \starttext
24 
25 [\cite{Me2011}]\par
26 [\cite{Me2011,Me2012}] \par
27 >>  [\cite{Me2013}]\par
28 
29 \stoptext
30 


\handlemultiplebibauthors ...et \currentbibauthor 
  \empty \def \bibprocessaut...
\setcurrentbibauthor ...hors {\commalistsize }{#1}
  \fi 
\dodobibauthoryear ...t }\setcurrentbibauthor {#1}
  \ifnum \scratchcounter =\p...
\9>>1 #1,->\dodobibauthoryear {#1}
  \syst_helpers_do_process_comma_item 
\syst_helpers_do_process_comma_list ...rgument #1,
  ]\relax \global \advance \...
\docite ...cite {#1}{#2}\else \donumberedcite {#1}
  \fi \endgroup 
l.27 [\cite{Me2013}
   ]\par
? 

-- 
Marco

___
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] TABLE: header with a thick bottom line

2012-10-22 Thread Marco Patzer
2012-10-22 Procházka Lukáš Ing. - Pontex s. r. o.:

> On Mon, 22 Oct 2012 16:41:46 +0200, Aditya Mahajan  wrote:
> 
> > If you want only the bottom border (and no other border),
> 
> ... No, I want all borders with default thickness but head bottom border 
> thicker;
> this is most common look of my tables:

http://wiki.contextgarden.net/TABLE#Rules_with_different_thickness


Marco

___
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] TABLE: header with a thick bottom line

2012-10-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Mon, 22 Oct 2012 16:41:46 +0200, Aditya Mahajan  wrote:


If you want only the bottom border (and no other border),


... No, I want all borders with default thickness but head bottom border 
thicker;
this is most common look of my tables:

+---+---+
| a | b |  -> header
+===+===+
| 1 | 2 |  \
+---+---+   > body
| 3 | 4 |  /
+---+---+


use

[frame=off, bottomframe=on, ...]


How to achieve it?


If you want to have all borders, but only draw the bottom border with a
different thickness, you will have to use a custom metapost background.


... OK.

I believed there would be something like

  \setupTABLE[header][bottomframe=on,bottomrulethickness=2pt]

Lukas



Aditya



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] TABLE: header with a thick bottom line

2012-10-22 Thread Aditya Mahajan

On Mon, 22 Oct 2012, Procházka Lukáš Ing. - Pontex s. r. o. wrote:


Hello,

how to achieve the table header to have a thick bottom line?

Here are my two attempts:


\starttext
\bTABLE
  \setupTABLE[width=broad]
  \setupTABLE[header][align=middle]
  \bTABLEhead
\bTR[bottomframe=on,rulethickness=2mm]\bTH a\eTH\bTH b\eTH\eTR
  \eTABLEhead
  \bTABLEbody
\bTR\bTD 1\eTD\bTD 2\eTD\eTR
\bTR\bTD 3\eTD\bTD 4\eTD\eTR
  \eTABLEbody
\eTABLE

Or even better:

\bTABLE
  \setupTABLE[width=broad]
  \setupTABLE[header][bottomframe=on,rulethickness=2mm,align=middle]
  \bTABLEhead
\bTR\bTH a\eTH\bTH b\eTH\eTR
  \eTABLEhead
  \bTABLEbody
\bTR\bTD 1\eTD\bTD 2\eTD\eTR
\bTR\bTD 3\eTD\bTD 4\eTD\eTR
  \eTABLEbody
\eTABLE
\stoptext


As you can see, in both cases all header cells are surrounded by a thick 
border; but only the bottom border should be.


If you want only the bottom border (and no other border), use

[frame=off, bottomframe=on, ...]


How to achieve it?


If you want to have all borders, but only draw the bottom border with a 
different thickness, you will have to use a custom metapost background.


Aditya___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Color red:3

2012-10-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Mon, 22 Oct 2012 13:53:31 +0200, Philipp Gesang 
 wrote:


You don’t have to, these colors were upgraded to a superior way
of being defined (colo-imp-dem.mkiv):

·
\setupcolor[dem]

\starttext
\colored[red:3]{some text}

\showcolor[dem]
\stoptext
·


Great, it works now!

Thanks.

Best regards,

Lukas



Regards
Philipp



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038
___
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] TABLE: header with a thick bottom line

2012-10-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

how to achieve the table header to have a thick bottom line?

Here are my two attempts:


\starttext
  \bTABLE
\setupTABLE[width=broad]
\setupTABLE[header][align=middle]
\bTABLEhead
  \bTR[bottomframe=on,rulethickness=2mm]\bTH a\eTH\bTH b\eTH\eTR
\eTABLEhead
\bTABLEbody
  \bTR\bTD 1\eTD\bTD 2\eTD\eTR
  \bTR\bTD 3\eTD\bTD 4\eTD\eTR
\eTABLEbody
  \eTABLE

  Or even better:

  \bTABLE
\setupTABLE[width=broad]
\setupTABLE[header][bottomframe=on,rulethickness=2mm,align=middle]
\bTABLEhead
  \bTR\bTH a\eTH\bTH b\eTH\eTR
\eTABLEhead
\bTABLEbody
  \bTR\bTD 1\eTD\bTD 2\eTD\eTR
  \bTR\bTD 3\eTD\bTD 4\eTD\eTR
\eTABLEbody
  \eTABLE
\stoptext


As you can see, in both cases all header cells are surrounded by a thick 
border; but only the bottom border should be.

How to achieve it?

TIA.

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

t-TabHdr.mkiv
Description: Binary data


t-TabHdr.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] making horizontal space in luacode.

2012-10-22 Thread Jeong Dal
Dear Aditya, Hans

Both solutions work well.

It is really efficient to write matrix in ConTeXt + lua.
I am enjoying the benefit of lua in ConTeXt.

Thank you.

Best regards,

Dalyoung

> 
> \definehspace[skip][3em]
> \starttext
> \startluacode
>   context("Some text")
>   context.hspace{"skip"}
>   context("More text")
> \stopluacode
> \stoptext
> 
> 
> Aditya
> 
> 
> --
> 
> Message: 5
> Date: Mon, 22 Oct 2012 09:40:01 +0200
> From: Hans Hagen 
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] making horizontal space in luacode.
> Message-ID: <5084f851.7050...@wxs.nl>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> On 22-10-2012 07:15, Aditya Mahajan wrote:
>> On Mon, 22 Oct 2012, Jeong Dal wrote:
>> 
>>> Dear all,
>>> 
>>> 1. I'd like to make a horizontal space using \hspace[3em] inside luacode.
>>> 
>>> But  context.hspace({3em}), context.hspace({"3em"}),
>>> context.hspace("3em") don't work.
>>> And print("   ") doesn't work either.
>>> 
>>> How to make some horizontal space in luacode?
>> 
>> 
>> \hspace does not accept dimensions. The syntax for hspace is
>> 
>> \definehspace[whatever][3em]
>> 
>> \hspace[whatever].
>> 
>> So, you need:
>> 
>> \definehspace[skip][3em]
>> \starttext
>> \startluacode
>>   context("Some text")
>>   context.hspace{"skip"}
>>   context("More text")
>> \stopluacode
>> \stoptext
> 
> Indeed this is the best way. At some point I'll wrap primitives (maybe 
> in another namespace). If you really want to use context.hskip, you can 
> say context.hskip(false,"10pt plus 5pt") etc as a first false argument 
> will signal a drop of {}.
> 
> Hans

___
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] Color red:3

2012-10-22 Thread Philipp Gesang
·

> I don't use MkII, so I'll avoid using "red:3" with MkIV.

You don’t have to, these colors were upgraded to a superior way
of being defined (colo-imp-dem.mkiv):

·
\setupcolor[dem]

\starttext
\colored[red:3]{some text}

\showcolor[dem]
\stoptext
·

Regards
Philipp




> 
> Best regards,
> 
> Lukas
> 
> 
> -- 
> Ing. Lukáš Procházka [mailto:l...@pontex.cz]
> Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
> Bezová 1658
> 147 14 Praha 4
> 
> Tel: +420 244 062 238
> Fax: +420 244 461 038
> 
> ___
> 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
> ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpQy1j4rvwpk.pgp
Description: PGP signature
___
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] trimwhite utility

2012-10-22 Thread Hans Hagen

On 22-10-2012 12:26, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

On Mon, 22 Oct 2012 11:54:14 +0200, Mojca Miklavec
 wrote:


On Sun, Oct 21, 2012 at 10:14 PM, Procházka Lukáš wrote:


Btw: I didn't use/test the utility so far, but I believe it really
removes
the content out of the trimming area;


Do you mean that it removes *white space* around the trimming area?


Hello,

I mean the whatever space around the trimming area.

This out-of-trimming-area may content lines, texts, colored areas,
whatever; and the intention is to remove them permanently (=
unrestorable) by specifying crop-box.


Hard to so as outside stuff can have consequences for inside stuff. 
Putting stuff outside the boundingbox might even intentional.   Normally 
it boils down to clipping. Of course one can make a bitmap which can be 
clipped. It anyway depends on the tools used (often gs).


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] trimwhite utility (was: Current ConTeXt & wiki)

2012-10-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Mon, 22 Oct 2012 11:54:14 +0200, Mojca Miklavec 
 wrote:


On Sun, Oct 21, 2012 at 10:14 PM, Procházka Lukáš wrote:


Btw: I didn't use/test the utility so far, but I believe it really removes
the content out of the trimming area;


Do you mean that it removes *white space* around the trimming area?


Hello,

I mean the whatever space around the trimming area.

This out-of-trimming-area may content lines, texts, colored areas, whatever; 
and the intention is to remove them permanently (= unrestorable) by specifying 
crop-box.

Lukas



From my experience pdftrimwhite sometimes even removed the content
*inside* the area, so I ended up with a blank PDF and thus stopped
using it (pdfcrop was usually more reliable than pdftrimwhite).

Mojca



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] Color red:3

2012-10-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Ah ok , it was an image. The text says
"You find lists of predefined colors in the files colo-xxx.tex,.."
but colo*tex it's an old file -- it should be colo-rgb.mkii , ie pdftex

So
%%test.mkii
\setupcolors[state=start]
\starttext
  \showcolor[rgb]

  \color[red]{AAA}
  \color[red:3]{AAA}
\stoptext

and
# texexec test.mkii
works



OK, thx for explanation.

I don't use MkII, so I'll avoid using "red:3" with MkIV.

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] trimwhite utility (was: Current ConTeXt & wiki)

2012-10-22 Thread Mojca Miklavec
On Sun, Oct 21, 2012 at 10:14 PM, Procházka Lukáš wrote:
>
> Btw: I didn't use/test the utility so far, but I believe it really removes
> the content out of the trimming area;

Do you mean that it removes *white space* around the trimming area?

From my experience pdftrimwhite sometimes even removed the content
*inside* the area, so I ended up with a blank PDF and thus stopped
using it (pdfcrop was usually more reliable than pdftrimwhite).

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Color red:3

2012-10-22 Thread luigi scarso
On Mon, Oct 22, 2012 at 11:23 AM, Procházka Lukáš Ing. - Pontex s. r. o. <
l...@pontex.cz> wrote:

> On Mon, 22 Oct 2012 11:11:08 +0200, luigi scarso 
> wrote:
>
>  On Mon, Oct 22, 2012 at 11:10 AM, Procházka Lukáš Ing. - Pontex s. r. o. <
>> l...@pontex.cz> wrote:
>>
>>  Hello,
>>>
>>> there is a color "red:3" noticed at http://wiki.contextgarden.net/**
>>> **Colors >> contextgarden.net/Colors >
>>>
>>> .
>>>
>>> However, the following code doesn't work with color "red:3"
>>> specification:
>>>
>>> 
>>> \starttext
>>>   \showcolor[rgb]
>>>
>>>   \color[red]{AAA}
>>>   \color[red:3]{AAA}
>>> \stoptext
>>> 
>>>
>>> So, how it the matter with using "red:3" correctly?
>>>
>>> I don't see it -- where do you see "red:3" ?
>>>
>>
> Wiki at 
> http://wiki.contextgarden.net/**Colors
> :
>
> "
> ...
> Using predefined colors: \setupcolor
> ...
> \setupcolors[state=start]
> \showcolor[rgb]
>
> yields this:
>
><- The 3rd line from the bottom of the generated output:
> "0.790 1.000 0.700 0.700 red:3"
>
> Defining colors: \definecolor
> ...
>
> "
>
> Lukas
>

Ah ok , it was an image. The text says
"You find lists of predefined colors in the files colo-xxx.tex,.."
but colo*tex it's an old file -- it should be colo-rgb.mkii , ie pdftex

So
%%test.mkii
\setupcolors[state=start]
\starttext
  \showcolor[rgb]

  \color[red]{AAA}
  \color[red:3]{AAA}
\stoptext

and
# texexec test.mkii
works

-- 
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] Color red:3

2012-10-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Mon, 22 Oct 2012 11:11:08 +0200, luigi scarso  wrote:


On Mon, Oct 22, 2012 at 11:10 AM, Procházka Lukáš Ing. - Pontex s. r. o. <
l...@pontex.cz> wrote:


Hello,

there is a color "red:3" noticed at 
http://wiki.contextgarden.net/**Colors
.

However, the following code doesn't work with color "red:3" specification:


\starttext
  \showcolor[rgb]

  \color[red]{AAA}
  \color[red:3]{AAA}
\stoptext


So, how it the matter with using "red:3" correctly?

I don't see it -- where do you see "red:3" ?


Wiki at http://wiki.contextgarden.net/Colors:

"
...
Using predefined colors: \setupcolor
...
\setupcolors[state=start]
\showcolor[rgb]

yields this:

   <- The 3rd line from the bottom of the generated output: "0.790 1.000 
0.700 0.700 red:3"

Defining colors: \definecolor
...
"

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] Color red:3

2012-10-22 Thread luigi scarso
On Mon, Oct 22, 2012 at 11:10 AM, Procházka Lukáš Ing. - Pontex s. r. o. <
l...@pontex.cz> wrote:

> Hello,
>
> there is a color "red:3" noticed at 
> http://wiki.contextgarden.net/**Colors
> .
>
> However, the following code doesn't work with color "red:3" specification:
>
> 
> \starttext
>   \showcolor[rgb]
>
>   \color[red]{AAA}
>   \color[red:3]{AAA}
> \stoptext
> 
>
> So, how it the matter with using "red:3" correctly?
>
> I don't see it -- where do you see "red:3" ?


-- 
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] Color red:3

2012-10-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

there is a color "red:3" noticed at http://wiki.contextgarden.net/Colors.

However, the following code doesn't work with color "red:3" specification:


\starttext
  \showcolor[rgb]

  \color[red]{AAA}
  \color[red:3]{AAA}
\stoptext


So, how it the matter with using "red:3" correctly?

TIA.

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

t-Col.mkiv
Description: Binary data


t-Col.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] making horizontal space in luacode.

2012-10-22 Thread Hans Hagen

On 22-10-2012 07:15, Aditya Mahajan wrote:

On Mon, 22 Oct 2012, Jeong Dal wrote:


Dear all,

1. I'd like to make a horizontal space using \hspace[3em] inside luacode.

But  context.hspace({3em}), context.hspace({"3em"}),
context.hspace("3em") don't work.
And print("   ") doesn't work either.

How to make some horizontal space in luacode?



\hspace does not accept dimensions. The syntax for hspace is

\definehspace[whatever][3em]

\hspace[whatever].

So, you need:

\definehspace[skip][3em]
\starttext
\startluacode
   context("Some text")
   context.hspace{"skip"}
   context("More text")
\stopluacode
\stoptext


Indeed this is the best way. At some point I'll wrap primitives (maybe 
in another namespace). If you really want to use context.hskip, you can 
say context.hskip(false,"10pt plus 5pt") etc as a first false argument 
will signal a drop of {}.


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
___