Re: [NTG-context] Google Chart URL

2011-04-19 Thread Reviczky, Adam
 Do you have “\enabledirectives[schemes.cleanmethod=md5]” in your preamble?
Silly me, I've forgot that.

Thanks again for your help!

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

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


Re: [NTG-context] rules with different thickness

2011-04-19 Thread Reviczky, Adam
 It’s the same as in the past, use MetaPost but there are better ways to 
 change values of certain borders:
As much as I like and prefer this solution, I can't get it to work as the old 
one.

With the old one I had a frame 1pt, and just made a 2pt metapost frame around 
the last row.

With the new example of yours I've came up with a minimal example that I've 
attached.
I have to do the table setups, since I'm making the table via a macro, but for 
the simplicity I left that out from the minimal example.
The problem is, that every even row seems to have thicker right/left and top 
borders, why is that?

With both solution if I just draw a thicker bottom line it goes off on the 
right and left side. Can this be solved somehow?

Thanks,
Adam
\startuseMPgraphic{tableborders}
draw leftboundary OverlayBox withpen pensquare scaled \frameddimension{leftrulethickness};
draw rightboundary OverlayBox withpen pensquare scaled \frameddimension{rightrulethickness};
draw topboundary OverlayBox withpen pensquare scaled \frameddimension{toprulethickness};
draw bottomboundary OverlayBox withpen pensquare scaled \frameddimension{bottomrulethickness};
setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic
\defineoverlay[tableborders][\useMPgraphic{tableborders}]

\setupTABLE
  [background={color,tableborders},
   frame=off,
   leftrulethickness=\framedparameter{rulethickness},
   rightrulethickness=\framedparameter{rulethickness},
   toprulethickness=\framedparameter{rulethickness},
   bottomrulethickness=\framedparameter{rulethickness}]

\starttext
\setupTABLE[row][odd][background={color,tableborders},backgroundcolor=lightgray]
\setupTABLE[row][first][background={color,tableborders},backgroundcolor=gray,bottomrulethickness=2pt]
\setupTABLE[row][last][background={color,tableborders},toprulethickness=2pt,bottomrulethickness=2pt]
\setupTABLE[first][last][background={color,tableborders},leftrulethickness=2pt]
\setupTABLE[last][last][background={color,tableborders},rightrulethickness=2pt]

\bTABLE
\bTR
\bTD 1One \eTD
\bTD 1Two \eTD
\bTD 1Three \eTD
\eTR
\bTR
\bTD 2One \eTD
\bTD 2Two \eTD
\bTD 2Three \eTD
\eTR
\bTR
\bTD 3One \eTD
\bTD 3Two \eTD
\bTD 3Three \eTD
\eTR
\bTR
\bTD 4One \eTD
\bTD 4Two \eTD
\bTD 4Three \eTD
\eTR
\bTR
\bTD 5One \eTD
\bTD 5Two \eTD
\bTD 5Three \eTD
\eTR
\bTR
\bTD 5One \eTD
\bTD 5Two \eTD
\bTD 5Three \eTD
\eTR
\bTR
\bTD 6One \eTD
\bTD 6Two \eTD
\bTD 6Three \eTD
\eTR
\bTR
\bTD 7One \eTD
\bTD 7Two \eTD
\bTD 7Three \eTD
\eTR
\eTABLE
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Displaying text on a page in several steps

2011-04-19 Thread Cecil Westerhof
Something went wrong and I posted the rest to Hans Hagen instead of to the list.

I have the attached tex-file which should be correct I think. But it
goes wrong: see the attached log-file. Anybody an idea what is
happening?

-- 
Cecil Westerhof
___
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] Displaying text on a page in several steps

2011-04-19 Thread Cecil Westerhof
Now with the files attached. :-{

2011/4/19 Cecil Westerhof cldwester...@gmail.com:
 Something went wrong and I posted the rest to Hans Hagen instead of to the 
 list.

 I have the attached tex-file which should be correct I think. But it
 goes wrong: see the attached log-file. Anybody an idea what is
 happening?

 --
 Cecil Westerhof




-- 
Cecil Westerhof


test2.tex
Description: TeX document
(test2.tex

ConTeXt  ver: 2011.04.03 22:32 MKIV  fmt: 2011.4.5  int: english/english

system   cont-new.mkiv loaded
(/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   test2.top loaded
system   options  begin of optionfile
system   options 
system   options  % runtime options files (command line driven)
system   options  \unprotect
system   options  % feedback and basic job control
system   options  % handy for special styles
system   options  \startluacode
system   options  document = document or { }
system   options  document.arguments={
system   options  }
system   options  document.files={
system   options   test2,
system   options  }
system   options  \stopluacode
system   options  % process info
system   options  \setupsystem[inputfile=test2]
system   options  \setupsystem[\c!n=1,\c!m=1]
system   options  % modes
system   options  % options (not that important)
system   options  \startsetups *runtime:options
system   options  \stopsetups
system   options  % styles and modules
system   options  \startsetups *runtime:modules
system   options  \stopsetups
system   options  % done
system   options  \protect \endinput
system   options 
system   options  end of optionfile
(test2.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
resolversmodules  loaded: 'pre-61'
(/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/s-pre-61.tex
resolversmodules  loaded: 'pre-60'
(/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/s-pre-60.mkiv
fontsbeware: no fonts are loaded yet, using 'lm mono' in box
(/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/java-imp-stp.mkiv)
interactions javascripts  loaded: library 'stp'
metapost loaded: library 'nav' (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/meta-imp-nav.mkiv)) (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-otf.mkiv) (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-hgz.mkiv (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-ghz.mkiv))
fontspreloading latin modern fonts (math)
{/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/home/cecil/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontsfallback modern mm 18pt is loaded
fontspreloading latin modern fonts (mono)
fontsfallback modern tt 18pt is loaded
fontsdefining  font with asked name 'lt55483' is not found using lookup 'file'
fontsdefining  unknown font lt55483, loading aborted
fontsdefining  unable to define lt55483 as \*mainface18ptsstfss*
fontsvirtual math  unable to resolve name mapsfromchar
fontsdefining  font with asked name 'lt55483' is not found using lookup 'file'
fontsdefining  unknown font lt55483, loading aborted
fontsdefining  unable to define lt55483 as \*mainface18ptsstf*
){/home/cecil/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-px.map}
fontsvirtual math  the mapping is incomplete for 'pxmath' at 9pt
system   begin file test2 at line 5
! Missing number, treated as zero.

system   tex  error on line 17 in file test2.tex: Missing number, treated as zero ...

 7 \StartSteps
 8 
 9 \starttabulate
10 \NC test \FlushStep \NC test \FlushStep \NC \NR
11 \NC test \FlushStep \NC test \FlushStep \NC \NR
12 \NC test \FlushStep \NC test \FlushStep \NC \NR
13 \stoptabulate
14 
15 \StopSteps
16 
17   \stoptext
18 

to be read again 
   o
\@@ambottomoffset -o
 verlay
\scrn_menu_set_used ...uparameter \c!bottomoffset 
  \scrn_menu_asked_width \in...
\scrn_menu_packager -\scrn_menu_set_used 
  \vskip \scrn_menu_next_distance \s...
\scrn_menu_action ...\v!start \scrn_menu_packager 
  \else \ifx \currentinterac...
\@@am:menu:horizontal ...dinteractionmenulocation 
  

[NTG-context] Centerd table?

2011-04-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

why this code doesn't give a centered table?

---

\starttext
  \startalignment[middle]
\dontleavehmode
\starttable[|c|c|c|]
  \HL
  \VL a \VL b \VL c \VL\AR
  \HL
  \VL a \VL b \VL c \VL\AR
  \HL
\stoptable
  \stopalignment
\stoptext

---

How to achieve it?

Thanks in advance.

Kind 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-Table.mkiv
Description: Binary data


t-Table.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
___

[NTG-context] externalfigure error in current mkiv beta

2011-04-19 Thread Lutz Haseloff
Hi all,

with the current Context beta
ConTeXt  ver: 2011.04.13 09:23 MKIV  fmt: 2011.4.19  int: english/english
and a recent luatex
LuaTeX, Version beta-0.66.0-2011041617 (rev 4160) (Win 7 64bit)

the externalfigure macro breaks with following message:

metapost loading 'metafun.mp' (experimental metapost version two)
metapost terminal:  picture
! Isolated expression.
to be read again
   ;
* externalfigure hacker.png ;
  ;


metapost error: unknown, no error, terminal or log messages
metapost terminal: [1]

metapost error: unknown, no error, terminal or log messages
metapost terminal:

metapost error: unknown, no error, terminal or log messages
metapost terminal:

metapost error: unknown, no error, terminal or log messages
metapost terminal: (Please type a command or say `end')

metapost error: unknown, no error, terminal or log messages
metapost terminal:

metapost error: unknown, no error, terminal or log messages
metapost terminal:

metapost error: unknown, no error, terminal or log messages
metapost terminal:  picture
! Isolated expression.
to be read again
   ;
* externalfigure hacker.png ;
  ;

My code:

\starttext
\startMPcode
externalfigure hacker.png ;
\stopMPcode
\stoptext

The current current from
http://www.pragma-ade.com/context/current/cont-tmf.zip

works ok.


Greetings Lutz
___
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] Centerd table?

2011-04-19 Thread Wolfgang Schuster

Am 19.04.2011 um 11:32 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

 Hello,
 
 why this code doesn't give a centered table?
 
 ---
 
 \starttext
  \startalignment[middle]
\dontleavehmode
\starttable[|c|c|c|]
  \HL
  \VL a \VL b \VL c \VL\AR
  \HL
  \VL a \VL b \VL c \VL\AR
  \HL
\stoptable
  \stopalignment
 \stoptext
 
 ---
 
 How to achieve it?

\placetable[force,none]{}
  {\starttable[|c|c|c|]
   …
   \stoptable}

When you want less space before and after the table
you can define your own float with reduced spacing.

\definefloat[fixedtable][table]

\setupfloat[fixedtable][spacebefore=,spaceafter=,default={force,none}]

\starttext

\placefixedtable{}
  {\starttable[|c|c|c|]
   …
   \stoptable}

\stoptext

Wolfgang

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

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


Re: [NTG-context] externalfigure error in current mkiv beta

2011-04-19 Thread luigi scarso
On Tue, Apr 19, 2011 at 2:06 PM, Lutz Haseloff
lutz.hasel...@googlemail.com wrote:
 Hi all,

 with the current Context beta
 ConTeXt  ver: 2011.04.13 09:23 MKIV  fmt: 2011.4.19  int: english/english
 and a recent luatex
 LuaTeX, Version beta-0.66.0-2011041617 (rev 4160) (Win 7 64bit)

 the externalfigure macro breaks with following message:

 metapost         loading 'metafun.mp' (experimental metapost version two)
 metapost         terminal:  picture
 ! Isolated expression.
 to be read again
                   ;
 * externalfigure hacker.png ;
                                  ;


 metapost         error: unknown, no error, terminal or log messages
 metapost         terminal: [1]

 metapost         error: unknown, no error, terminal or log messages
 metapost         terminal:

 metapost         error: unknown, no error, terminal or log messages
 metapost         terminal:

 metapost         error: unknown, no error, terminal or log messages
 metapost         terminal: (Please type a command or say `end')

 metapost         error: unknown, no error, terminal or log messages
 metapost         terminal:

 metapost         error: unknown, no error, terminal or log messages
 metapost         terminal:

 metapost         error: unknown, no error, terminal or log messages
 metapost         terminal:  picture
 ! Isolated expression.
 to be read again
                   ;
 * externalfigure hacker.png ;
                                  ;

 My code:

 \starttext
 \startMPcode
 externalfigure hacker.png ;
 \stopMPcode
 \stoptext
confirmed
-- 
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] section headings

2011-04-19 Thread Willi Egger
Herbert,

I tried to find out. I remembered that there was this discussion already 
earlier on this list.

on  2010-08-30 Hans Hagen wrote the following:

...
 while it should keep A.1 instead of 1.1 for the section numbering. 

The new way is: 

\definestructureconversionset[MySet][numbers,Characters][numbers] % [per 
level] [default] 

\setupsection 
[chapter] 
[sectionconversionset=MySet] 

\starttext 

\chapter{first} 
\section{subfirst} 

\stoptext
...

I thought that it must be found along these lines. However I could not get the 
example working properly.

Willi

(This is LuaTeX, Version beta-0.66.0-2011041318 (rev 4144) 
/Users/willi/Documents/TEXdata/TEST/test-sectionnumbeconversion.tex}




test-sectionnumbeconversion.tex
Description: Binary data


On 18 Apr 2011, at 11:05, Herbert Voss wrote:

 no one has an idea?
 
 Am 09.04.2011 20:55, schrieb Herbert Voss:
 With the following code I get
 
 1. Teil foo
 § 1 1 bar
 i baz
 
 but I need
 
 1. Teil foo
 § 1 A. bar
 I. baz
 
 I cannot get the needed information from the wiki and the documentation.
 
 \def\PartNo#1{#1.\,Teil}
 \def\ChapterNo#1{§ \headnumber[part]
 \determineheadnumber[chapter]\currentheadnumber}
 \def\SectionNo#1{\determineheadnumber[section]\romannumeral\currentheadnumber}
 
 \setuphead[part][number=yes,after=\blank,numbercommand=\PartNo,
 style={\tfc\ss\bf},placehead=yes]
 \setuphead[chapter][before=\blank,after=\blank,conversion=Characters,
 numbercommand=\ChapterNo,
 continue=yes,style={\tfb\ss\bf}]
 \setuphead[section][conversion=Romannumerals,
 numbercommand=\SectionNo,style={\tfb\ss\bf}]
 
 \starttext
 
 \part{foo}
 \chapter{bar}
 \section{baz}
 \stoptext
 
 
 Herbert
 ___
 
 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
 ___
 
 ___
 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
 ___

___
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 add metapost 3rd party modules

2011-04-19 Thread Joshua Lee
Hi All,
I would like to use metauml modules with context, but context can 
not find it from ~/texmf/metapost/metauml directory. What the context
search path for the 3rd party metapost modules?

Thanks in advance.
Br/JL

-- 
Joshua Lee

___
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] Displaying text on a page in several steps

2011-04-19 Thread Wolfgang Schuster

Am 19.04.2011 um 11:03 schrieb Cecil Westerhof:

 Now with the files attached. :-{

For the moment add \setupinteraction[menu=off] to your document.

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] Displaying text on a page in several steps

2011-04-19 Thread Cecil Westerhof
2011/4/19 Wolfgang Schuster schuster.wolfg...@googlemail.com:
 Now with the files attached. :-{

 For the moment add \setupinteraction[menu=off] to your document.

That works. I can continue. ;-}

Why is this statement needed.?

Shall I change the wiki page, or is this only temporally needed?

-- 
Cecil Westerhof
___
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] Displaying text on a page in several steps

2011-04-19 Thread Wolfgang Schuster

Am 19.04.2011 um 15:59 schrieb Cecil Westerhof:

 2011/4/19 Wolfgang Schuster schuster.wolfg...@googlemail.com:
 Now with the files attached. :-{
 
 For the moment add \setupinteraction[menu=off] to your document.
 
 That works. I can continue. ;-}
 
 Why is this statement needed.?

Invalid setting in s-pre-61.tex

\setupinteractionmenu
  [bottom]
  [offset=overlay]

The offset key accepts only dimensions but not keywords like it did in mkii.

 Shall I change the wiki page, or is this only temporally needed?

To use the stepper only you don’t need this because it
comes from the file s-pre-60.mkiv (or “pre-stepwise”).

\usemodule[pre-stepwise]

\setupinteraction[state=start,click=off]

\setupbodyfont[palatino]

\starttext

\StartSteps

\starttabulate
\NC test \FlushStep \NC test \FlushStep \NC \NR
\NC test \FlushStep \NC test \FlushStep \NC \NR
\NC test \FlushStep \NC test \FlushStep \NC \NR
\stoptabulate

\StopSteps

\stoptext

The module pre-61 (or “pre-stepper”) is only the presentation style.

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] externalfigure error in current mkiv beta

2011-04-19 Thread Hans Hagen

On 19-4-2011 2:26, luigi scarso wrote:


\starttext
\startMPcode
externalfigure hacker.png ;
\stopMPcode
\stoptext

confirmed


in mkiv the functionality has changed:

draw externalfigure somefile scaled 10cm ;

so, beter scaling etc

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] externalfigure error in current mkiv beta

2011-04-19 Thread luigi scarso
On Tue, Apr 19, 2011 at 4:36 PM, Hans Hagen pra...@wxs.nl wrote:
 On 19-4-2011 2:26, luigi scarso wrote:

 \starttext
 \startMPcode
 externalfigure hacker.png ;
 \stopMPcode
 \stoptext

 confirmed

 in mkiv the functionality has changed:

 draw externalfigure somefile scaled 10cm ;

 so, beter scaling etc
right: this works ok now.
\starttext
\startMPcode
draw externalfigure hacker.jpg scaled 10cm ;
\stopMPcode
\stoptext


-- 
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] rules with different thickness

2011-04-19 Thread Wolfgang Schuster

Am 19.04.2011 um 09:30 schrieb Reviczky, Adam:

 It’s the same as in the past, use MetaPost but there are better ways to 
 change values of certain borders:
 As much as I like and prefer this solution, I can't get it to work as the old 
 one.
 
 With the old one I had a frame 1pt, and just made a 2pt metapost frame around 
 the last row.
 
 With the new example of yours I've came up with a minimal example that I've 
 attached.
 I have to do the table setups, since I'm making the table via a macro, but 
 for the simplicity I left that out from the minimal example.
 The problem is, that every even row seems to have thicker right/left and top 
 borders, why is that?
 
 With both solution if I just draw a thicker bottom line it goes off on the 
 right and left side. Can this be solved somehow?


I slightly modified the code and the output is now better than before, please 
add it to the wiki.

\startuseMPgraphic{tableborders}

draw leftboundary   OverlayBox withpen pensquare scaled \frameddimension  
{leftrulethickness} ;
draw rightboundary  OverlayBox withpen pensquare scaled \frameddimension 
{rightrulethickness} ;
draw topboundaryOverlayBox withpen pensquare scaled \frameddimension   
{toprulethickness} ;
draw bottomboundary OverlayBox withpen pensquare scaled 
\frameddimension{bottomrulethickness} ;

clip currentpicture to OverlayBox
leftenlarged   (\frameddimension  {leftrulethickness}/2)
rightenlarged  (\frameddimension {rightrulethickness}/2)
topenlarged(\frameddimension   {toprulethickness}/2)
bottomenlarged (\frameddimension{bottomrulethickness}/2) ;

setbounds currentpicture to OverlayBox ;

\stopuseMPgraphic

\defineoverlay[tableborders][\useMPgraphic{tableborders}]

\startsetups tableborders

\setupTABLE
  [ background={color,tableborders},
 frame=off,
  backgroundoffset=0pt,
 leftrulethickness=\framedparameter{rulethickness},
rightrulethickness=\framedparameter{rulethickness},
  toprulethickness=\framedparameter{rulethickness},
   bottomrulethickness=\framedparameter{rulethickness}]

\setupTABLE[row]  [odd]  [backgroundcolor=lightgray]
\setupTABLE[row]  [first][backgroundcolor=gray,bottomrulethickness=2pt]
\setupTABLE[row]  [last] [toprulethickness=2pt,bottomrulethickness=2pt]
\setupTABLE[first][last] [leftrulethickness=2pt]
\setupTABLE[last] [last] [rightrulethickness=2pt]

\stopsetups

\starttext

\bTABLE
\dorecurse{7}{\bTR\dorecurse{3}{\bTD#1-##1\eTD}\eTR}
\eTABLE

\blank

\bTABLE[setups=tableborders]
\dorecurse{7}{\bTR\dorecurse{3}{\bTD#1-##1\eTD}\eTR}
\eTABLE

\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
___


[NTG-context] Strange bug with arranging

2011-04-19 Thread Aditya Mahajan

Hi,

I am using MkIV 2011.03.30, and arranging is not working correctly. For 
example,


\setuppapersize[A5][A4,landscape]
\setuparranging[2SIDE]


\starttext
\subject{One}
\dorecurse{4}{\input knuth\relax}

\subject{Two}
\dorecurse{4}{\input tufte\relax}
\stoptext

which gives the attached output. Notice that page 4 (right hand page of 
actual page 2) is empty and the text is moved to page 5. Any idea what is 
going on?


Aditya


test.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] How to add metapost 3rd party modules

2011-04-19 Thread Mojca Miklavec
On Tue, Apr 19, 2011 at 15:12, Joshua Lee wrote:
 Hi All,
 I would like to use metauml modules with context, but context can
 not find it from ~/texmf/metapost/metauml directory. What the context
 search path for the 3rd party metapost modules?

The search path is defined inside texmf/web2c/texmfcnf.lua (variable MPINPUTS).

Did you run
   luatools --generate
or
   mktexlsr
(depending on the mark you use)?

It works here, but only after I regenerate the database (which should
not be the case - files in ~/texmf should be searched automatically
without being present in the database).

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] writing a label with a subscript in MetaFun.

2011-04-19 Thread Jeong Dalyoung
Dear all,

I'd like to write a label with a subscript in MetaFun where the subscript is a 
variable.

I tried in several way but not succeed. The best which I made is

for i= 0 upto 8:
label( z  decimal i, z[i]);
endfor;

So the output is z1, z2, z3, ...
And, the following commands are not working.

label(btex z_i etex, z[i]);  no error but the value of i is not listed. 
label(btex z_\MPvar{i} etex, z[i]);  error
 
Is there a good way to do that?

Thank you for reading.

Best regards,

Dalyoung

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

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


Re: [NTG-context] writing a label with a subscript in MetaFun.

2011-04-19 Thread Zhichu Chen
try

label (textext($z_{  decimal (i)  }$ ), z[i]) ;

On Wed, Apr 20, 2011 at 10:03 AM, Jeong Dalyoung hak...@me.com wrote:

 Dear all,

 I'd like to write a label with a subscript in MetaFun where the subscript
 is a variable.

 I tried in several way but not succeed. The best which I made is

 for i= 0 upto 8:
 label( z  decimal i, z[i]);
 endfor;

 So the output is z1, z2, z3, ...
 And, the following commands are not working.

 label(btex z_i etex, z[i]);  no error but the value of i is not listed.
 label(btex z_\MPvar{i} etex, z[i]);  error

 Is there a good way to do that?

 Thank you for reading.

 Best regards,

 Dalyoung


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

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

 ___




-- 
Best Regards
Chen
___
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] Strange bug with arranging

2011-04-19 Thread Otared Kavian
Hi Aditya,

Your code gives the ame result here both in mkii and mkiv with ConTeXt version 
2011.04.13 09:23 (from the minimals, LuaTeX version beta-0.65.0-2010121316, on 
MacOS 10.6.7)

I remember some time ago an analogous issue was reported on the list, but it 
seems that the problem is solved by now.

Best regards: OK

On 19 avr. 2011, at 22:55, Aditya Mahajan wrote:

 Hi,
 
 I am using MkIV 2011.03.30, and arranging is not working correctly. For 
 example,
 
 \setuppapersize[A5][A4,landscape]
 \setuparranging[2SIDE]
 
 
 \starttext
 \subject{One}
 \dorecurse{4}{\input knuth\relax}
 
 \subject{Two}
 \dorecurse{4}{\input tufte\relax}
 \stoptext
 
 which gives the attached output. Notice that page 4 (right hand page of 
 actual page 2) is empty and the text is moved to page 5. Any idea what is 
 going on?
 
 Aditya
 test.pdf___
 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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




___
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] Strange bug with arranging

2011-04-19 Thread Aditya Mahajan

Hi Otared,

Thanks for testing. I am in the middle of a project and did not want to 
upgrade, but it seems that now I will have to.


Aditya

On Wed, 20 Apr 2011, Otared Kavian wrote:


Hi Aditya,

Your code gives the ame result here both in mkii and mkiv with ConTeXt version 
2011.04.13 09:23 (from the minimals, LuaTeX version beta-0.65.0-2010121316, on 
MacOS 10.6.7)

I remember some time ago an analogous issue was reported on the list, but it 
seems that the problem is solved by now.

Best regards: OK

On 19 avr. 2011, at 22:55, Aditya Mahajan wrote:


Hi,

I am using MkIV 2011.03.30, and arranging is not working correctly. For example,

\setuppapersize[A5][A4,landscape]
\setuparranging[2SIDE]


\starttext
\subject{One}
\dorecurse{4}{\input knuth\relax}

\subject{Two}
\dorecurse{4}{\input tufte\relax}
\stoptext

which gives the attached output. Notice that page 4 (right hand page of actual 
page 2) is empty and the text is moved to page 5. Any idea what is going on?

Aditya
test.pdf___
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
___


%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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



--
Aditya Mahajan | Assistant Professor, McGill University
http://www.mcgill.ca/~amahaj1 | Ph: (514)-398-8088___
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] writing a label with a subscript in MetaFun.

2011-04-19 Thread Aditya Mahajan

On Wed, 20 Apr 2011, Jeong Dalyoung wrote:


Dear all,

I'd like to write a label with a subscript in MetaFun where the subscript is a 
variable.

I tried in several way but not succeed. The best which I made is

for i= 0 upto 8:
label( z  decimal i, z[i]);
endfor;


Untested:

label(textext($z_{  decimal i  }$), z[i]) ;

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] How to add metapost 3rd party modules??

2011-04-19 Thread Aditya Mahajan

On Wed, 20 Apr 2011, Joshua Lee wrote:


Hi Mojca,
Thanks for you reply.

It can found the metauml module after regenerating the database with
luatools --generate
But it run into compiling error. For you convenience, append the
sources for mpost and context.

joshua@josh-dev ~/tmp $ cat activity.tex
\startMPinclusions
  input metauml;
\stopMPinclusions


\startMPpage
  Activity.A(Learn MetaUML -,
 the MetaPost UML library);
  drawObject(A);
\stopMPpage

\stoptext


I don't know the internal details of metaUML, but it could be the same 
problem as with MetaObj. See: 
http://wiki.contextgarden.net/MetaObj_and_Labels


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] Fastcolor and linenumbering in MkII

2011-04-19 Thread Aditya Mahajan

Hi,

In MkII, linenumbering stops working if \dostartattributes with a color is 
used inside; for example:


\setupcolors[state=start]
\getparameters[test][color=red,style=]

\starttext
\startlinenumbering
\dostartattributes{test}{style}{color}
Why no number?
\dostopattributes
\stoplinenumbering
\stoptext

The output of the above does not have a line number. I have been able to 
reduce it to the following minimal example.


\setupcolors[state=start]
\starttext
\startlinenumbering
\faststartcolor[red]
Why no number?
\faststopcolor
\stoplinenumbering
\stoptext

It works if I add any text before \faststartcolor

\setupcolors[state=start]
\starttext
\startlinenumbering
Got it now!
% or \strut
\faststartcolor[red]
Why no number?
\faststopcolor
\stoplinenumbering
\stoptext

What is going on here?

Of course, everything works correctly in MkIV.

Aditya

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

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


Re: [NTG-context] externalfigure error in current mkiv beta

2011-04-19 Thread Lutz Haseloff
Thanks

Is there a recent Metafun manual?
I would even buy it (like the Fonts in ConTeXt).

Greetings Lutz


2011/4/19 Hans Hagen pra...@wxs.nl:
 in mkiv the functionality has changed:

 draw externalfigure somefile scaled 10cm ;

 so, beter scaling etc

 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
___