Re: [NTG-context] gfs neohellenic typescript

2009-01-22 Thread Antoine Junod
Thomas A. Schmitz thomas.schm...@uni-bonn.de writes:

 On Jan 21, 2009, at 5:41 PM, Antoine Junod wrote:

 Hello list,

 Has anyone already written a typescript for the beautiful gfs
 neohellenic (for mkii)?

 If you want to use this font with mkii, you'll need much more than
 just a typescript, at the least tfms + encodings + mapfiles. That's
 the reason why luatex so much more convenient. Also depends on how
 you want to use the font: which parts are you interested in, Greek,
 Latin, ?

Hi Thomas, thanks for the reply. I was just a bit afraid to compile my
document with --luatex. But I tried and it seems my nasty code and
tricks are just showing fine :)

So, lets go for mkiv. I just need the latin part, in fact. And I've
seen that there is a good example on the wiki of a typescript for
luatex. I'll just try that by myself :)

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


Re: [NTG-context] Questions about tables

2009-01-22 Thread Cecil Westerhof
2009/1/22 Cecil Westerhof cldwester...@gmail.com:
 There are two problems with it:
 - The horizontal line at the top disappears because of the color. Is
 there a way to get it back?

That is only on screen. When printed, it is there.


 - The table is on the right side of the paper. How can I get it
 centered on the page?

With a lot of experimenting, I am a lot further further. See the atached file.


 Also is it possible to let the rows fill the complete page? I mean: if
 there is room for 40 rows, that there are automatically 40 rows.

There is even room for 43 rows. I do need to place them all by hand? I
tried \dorecurse, but that did not work.
Especially when the highlight is changed (now every five rows) this
would be a lot of work.

It is a little strange. The second page is reasonably placed. But the
first page not. Why is the layout of the first page different?

Tips to get the tables better in the middle and use more of the
available space are welcome.

I have a strange problem. When printing the first page, or the second
page, there is no problem. Put when I try to print the complete
document. The printer is busy a long time. At a certain point the
printer is 'ready', but does not have printed the document. Anybody
knows what could be happening?
I am working with openSUSE and a HP Color LaserJet 1600.

I also tried to make the document singlesided. But when I then placed
two tables, they got on different pages instead of beside eachother.
How would I place two tables beside eachother on singlesided paper?

-- 
Cecil Westerhof


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


[NTG-context] van context naar rtf

2009-01-22 Thread Liesbeth van der Plas
Via de volgende link: http://www.ctan.org/tex-archive/support/latex2rtf/ kan
een programmaatje gedownload worden dat LaTex bestanden omzet naar Rich Text
Format, waar Word mee overweg kan. Bestaat er ook iets dergelijks voor
ConText?

Liesbeth van der Plas

-- 
liesbethvanderp...@gmail.com
www.liesbethvanderplas.nl
www.wiskunde-interactief.nl
www.bonrekenhulp.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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Merging background

2009-01-22 Thread Cecil Westerhof
2009/1/22 Peter Münster pmli...@free.fr:
 But I was wondering if it could be generalized. I was thinking about
 the following. A variable backgroundList is defined and in every
 template where layers are defined, those layers are added to
 backgroundList. And then the following statement is used:
 \setupbackgrounds[page][backgroun...@backgroundlist]

 Is something like this possible?

 Perhaps you're looking for something like this:
 http://archive.contextgarden.net/message/20060115.080349.8efe83be.en.html
 That means: a template adds a background.

Works like a charm. In t-defaults.tex I have:
\setupbackgrounds[page][state=start]

In t-watermark.tex I have:
\expandparameters
\setupbackgrounds[page][background={\currentvalue,WatermarkOverlay}]

In t-privebrief.tex I have:
\expandparameters
\setupbackgrounds[page][background={\currentvalue,myAddr}]

And in my document I have:
\usemodule[defaults]
\usemodule[watermark]
\usemodule[privebrief]

And both backgrounds are displayed.

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


Re: [NTG-context] van context naar rtf

2009-01-22 Thread Hans Hagen

Liesbeth van der Plas wrote:
Via de volgende link: http://www.ctan.org/tex-archive/support/latex2rtf/ 
kan een programmaatje gedownload worden dat LaTex bestanden omzet naar 
Rich Text Format, waar Word mee overweg kan. Bestaat er ook iets 
dergelijks voor ConText?


full acrobat kan een pdf naar rtf omzetten


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] number of lines ?

2009-01-22 Thread Alan Stone
Hi,

Is there a command which returns the number of lines for a given portion of
text ?

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


Re: [NTG-context] number of lines ?

2009-01-22 Thread Wolfgang Schuster
On Thu, Jan 22, 2009 at 12:02 PM, Alan Stone
software.list.1e...@gmail.com wrote:
 Hi,

 Is there a command which returns the number of lines for a given portion of
 text ?

\starttext

\setbox\scratchbox\vbox{\input knuth\par}

\getnoflines\htdp\scratchbox

Your text has \noflines\ lines.

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


Re: [NTG-context] van context naar rtf

2009-01-22 Thread Liesbeth van der Plas
Beste Hans,

Heb ik daar volledige (commerciële) programma van Acrobat voor nodig?

Liesbeth

Op 22 januari 2009 11:54 schreef Hans Hagen pra...@wxs.nl het volgende:

 Liesbeth van der Plas wrote:

 Via de volgende link: http://www.ctan.org/tex-archive/support/latex2rtf/kan 
 een programmaatje gedownload worden dat LaTex bestanden omzet naar Rich
 Text Format, waar Word mee overweg kan. Bestaat er ook iets dergelijks voor
 ConText?


 full acrobat kan een pdf naar rtf omzetten


 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

 ___




-- 
liesbethvanderp...@gmail.com
www.liesbethvanderplas.nl
www.wiskunde-interactief.nl
www.bonrekenhulp.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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Choosing ConTeXt install method on Mac

2009-01-22 Thread Andrea Valle

Hi,

I've MacTeX + Minimals.
I use minimals with Smultron.
http://wiki.contextgarden.net/ConTeXt_Minimals/Mac_Installation

Best

-a-


On 21 Jan 2009, at 23:20, Mojca Miklavec wrote:


On Wed, Jan 21, 2009 at 9:09 PM, David Rogers wrote:

Hello all

I'm going to do a clean re-install of my machine (Tiger on PPC)  
soon, and
I'd like guidance on methods of installing ConTeXt. I assume that  
(a) TeX
Live 2008 with its tlmgr utility, or (b) ConTeXt minimals, are the  
two

realistic possibilities - is this correct?

What I'd like:

- A clear way of keeping ConTeXt mkiv usable and up to date with  
Hans's

latest version

- An installation method that will continue to be maintained, and  
that is
expected to be used by the majority of ordinary users of ConTeXt  
in the

future


...So should I go for TeX Live, or the minimals, or something else  
I don't

know about yet?


I would suggest MacTeX 2008 + minimals.

I have both, with manually slightly updated ConTeXt in MacTeX 2008.
MacTeX is nice since it always works (includes LaTeX and dozens of
fonts and other packages that might be missing in minimals) and you
have a backup system in case that the latest alpha in minimals gets
broken.

I have this in ~/.bash_profile:
#. context/tex/setuptex context/tex

and I keep commenting/uncommenting it as needed (or just execute that
line in bash). The nice thing about minimals is that it doesn't
interfere with other TeX distributions, so you can have it installed
in parallel and it doesn't take too much space when compared with TeX
Live.

You need some additional hacks to get the minimals working in gui
applications. Oliver started writing an installer that could simplify
matters a bit, but got stuck with some external bugs at some point and
didn't publically release anything yet.

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


--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- http://www.myspace.com/andreavalle
-- andrea.va...@unito.it
--

The objectives of SuperCollider have been taken a stage further with  
the development of SAOL, the fruits of a research project based at  
MIT, launched in 1998
(P. Manning, Electronic and Computer Music, revised and expanded  
edition, 2004)


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


Re: [NTG-context] van context naar rtf

2009-01-22 Thread Hans Hagen

Liesbeth van der Plas wrote:

Beste Hans,

Heb ik daar volledige (commerciële) programma van Acrobat voor nodig?


ja, maar misschien zijn er ook wel gratis tools (nooit echt naar gezocht)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] for the brave

2009-01-22 Thread Wolfgang Schuster


Am 22.01.2009 um 05:03 schrieb Aditya Mahajan:


\setupsectionblock is not defined.


Use \setupstructureblock.

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


Re: [NTG-context] number of lines ?

2009-01-22 Thread Alan Stone
On Thu, Jan 22, 2009 at 12:22 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:

 On Thu, Jan 22, 2009 at 12:02 PM, Alan Stone
 software.list.1e...@gmail.com wrote:
  Hi,
 
  Is there a command which returns the number of lines for a given portion
 of
  text ?

 \starttext

 \setbox\scratchbox\vbox{\input knuth\par}

 \getnoflines\htdp\scratchbox


\getnoflines{\htdp\scratchbox}  % this works


 Your text has \noflines\ lines.


or: Your text has \noflines lines.


 \stoptext


\scratchingmyhair...  ;O)

! Missing number, treated as zero.
to be read again
   l
l.7 Your text has \noflines\ l
  ines.

Alan

-- 
Best,
Alan

* TeX engine = LuaTeX
*ConTeXt  minimals ver: 2009.01.18 14:39 MKIV  fmt: 2009.1.22  int:
english/english
* Ubuntu 8.04 Hardy Heron, Windows XP SP3 Home
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] number of lines ?

2009-01-22 Thread Otared Kavian


On 22 janv. 09, at 15:39, Alan Stone wrote:

On Thu, Jan 22, 2009 at 12:22 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com 
 wrote:

On Thu, Jan 22, 2009 at 12:02 PM, Alan Stone
software.list.1e...@gmail.com wrote:
 Hi,

 Is there a command which returns the number of lines for a given  
portion of

 text ?

\starttext

\setbox\scratchbox\vbox{\input knuth\par}

\getnoflines\htdp\scratchbox

\getnoflines{\htdp\scratchbox}  % this works


Your text has \noflines\ lines.

or: Your text has \noflines lines.


Try: Your text has {\the\noflines} lines.


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


Re: [NTG-context] number of lines ?

2009-01-22 Thread Alan Stone

 Try: Your text has {\the\noflines} lines.


Your text has \the\noflines\ lines.  % works also

Thanks.

-- 
Best,
Alan

* TeX engine = LuaTeX
* ConTeXt  minimals ver: 2009.01.18 14:39 MKIV  fmt: 2009.1.22  int:
english/english
* Ubuntu 8.04 Hardy Heron, Windows XP SP3 Home
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] van context naar rtf

2009-01-22 Thread J.A.J. Pater

Zie hier:
http://www.freewaregenius.com/2008/03/28/how-to-convert-pdf-to-word-doc-for-free-a-comparative-test/
voor een overzichtje van gratis tools.

Hopelijk komt er nog een keer een route via Tex4ht
http://wiki.contextgarden.net/Tex4ht

Groet,

Adriaan


Liesbeth van der Plas wrote:

Beste Hans,

Heb ik daar volledige (commerciële) programma van Acrobat voor nodig?


ja, maar misschien zijn er ook wel gratis tools (nooit echt naar gezocht)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] number of lines ?

2009-01-22 Thread Alan Stone
On Thu, Jan 22, 2009 at 3:54 PM, Alan Stone
software.list.1e...@gmail.comwrote:

 Try: Your text has {\the\noflines} lines.


 Your text has \the\noflines\ lines.  % works also

 Thanks.


How do you substract/add a number from/to \noflines ?

I tried

\thinrules[n=\advance\the\noflines by -2]
\thinrules[n=\advance\noflines by -2]
\thinrules[n={\advance\the\noflines by -2}]
\thinrules[n={\advance\noflines by -2}]

neither works.

-- 
Best,
Alan

* TeX engine = LuaTeX
* ConTeXt  minimals ver: 2009.01.18 14:39 MKIV  fmt: 2009.1.22  int:
english/english
* Ubuntu 8.04 Hardy Heron, Windows XP SP3 Home
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] number of lines ?

2009-01-22 Thread Wolfgang Schuster


Am 22.01.2009 um 17:20 schrieb Alan Stone:

On Thu, Jan 22, 2009 at 3:54 PM, Alan Stone software.list.1e...@gmail.com 
 wrote:

Try: Your text has {\the\noflines} lines.

Your text has \the\noflines\ lines.  % works also

Thanks.

How do you substract/add a number from/to \noflines ?

I tried

\thinrules[n=\advance\the\noflines by -2]
\thinrules[n=\advance\noflines by -2]
\thinrules[n={\advance\the\noflines by -2}]
\thinrules[n={\advance\noflines by -2}]


\thinrules[n=\number\numexpr\noflines-2\relax]

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


Re: [NTG-context] Minimals and dvipng

2009-01-22 Thread Jean Magnan de Bornier
Le 21 janvier à 23:32:07 Mojca Miklavec mojca.miklavec.li...@gmail.com écrit 
notamment:

| On Wed, Jan 21, 2009 at 6:10 PM, Jean Magnan de Bornier wrote:
| 
|  I wish I could use dvipng whenever I need to.

| So you are plannig to release/improve the emacs module and document it for 
Maps?

Well, I had not used the math mode in muse for a while and then having
installed the last texlive + context minimals I found out the problem with
dvipng; no improvement, I'm afraid! 

Documentation on the contextgarden wiki is already there. Now what is
Maps again?


| I'll take a look at the end of the week to see if we can make it work
| with minimals.

That would be GREAT Mojca!

Thanks to you and Aditya
-- 
Jean
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] number of lines ?

2009-01-22 Thread Alan Stone
How do you make the attached example work (see comments at the beginning of
the file) ?

{Thus, I came to the conclusion that the designer of a new system mus\ETC.
! Paragraph ended before \makelines was complete.
to be read again
   \par
l.22

?

Alan

On Thu, Jan 22, 2009 at 3:46 PM, Otared Kavian ota...@gmail.com wrote:


 On 22 janv. 09, at 15:39, Alan Stone wrote:

 On Thu, Jan 22, 2009 at 12:22 PM, Wolfgang Schuster 
 schuster.wolfg...@googlemail.com wrote:

 On Thu, Jan 22, 2009 at 12:02 PM, Alan Stone
 software.list.1e...@gmail.com wrote:
  Hi,
 
  Is there a command which returns the number of lines for a given portion
 of
  text ?

 \starttext

 \setbox\scratchbox\vbox{\input knuth\par}

 \getnoflines\htdp\scratchbox


 \getnoflines{\htdp\scratchbox}  % this works




 Your text has \noflines\ lines.


 or: Your text has \noflines lines.


 Try: Your text has {\the\noflines} lines.


 Best regards: OK



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


Re: [NTG-context] number of lines ?

2009-01-22 Thread Wolfgang Schuster


Am 22.01.2009 um 19:35 schrieb Alan Stone:

How do you make the attached example work (see comments at the  
beginning of the file) ?


\long\def\makelines#1{%
  ...}

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


Re: [NTG-context] number of lines ?

2009-01-22 Thread Alan Stone
Thanks a lot Wolfgang the Wise Wizard of TeX.  :O)

Alan

On Thu, Jan 22, 2009 at 7:53 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 22.01.2009 um 19:35 schrieb Alan Stone:

  How do you make the attached example work (see comments at the beginning
 of the file) ?


 \long\def\makelines#1{%
  ...}


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

 ___




-- 
Best,
Alan

* TeX engine = LuaTeX
* ConTeXt  minimals ver: 2009.01.18 14:39 MKIV  fmt: 2009.1.22  int:
english/english
* Ubuntu 8.04 Hardy Heron, Windows XP SP3 Home
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Questions about tables

2009-01-22 Thread Willi Egger

Hi Cecil,

You could use \showframe before starttext, then you will see the  
relations of the areas. Here I do not see that the placement of the  
table is incorrect.


I tried to use \doerecurse with the table-environment and I also did  
not get a result.


A possibility is to use another table environment:

\bTABLE
\bTR
\bTD  ... \eTD
\eTR
\eTABLE

This environment has more possibilities than \starttable. Herein  
\dorecurse does work. Moreover support for colouring is more  
advanced. Look for details in the enattab.pdf


I suggest you to use buffers for the content that the loops typeset.

A sample is in your fuel.tex

Willi


fuel.tex
Description: Binary data



On Jan 22, 2009, at 10:43 AM, Cecil Westerhof wrote:


2009/1/22 Cecil Westerhof cldwester...@gmail.com:

There are two problems with it:
- The horizontal line at the top disappears because of the color. Is
there a way to get it back?


That is only on screen. When printed, it is there.



- The table is on the right side of the paper. How can I get it
centered on the page?


With a lot of experimenting, I am a lot further further. See the  
atached file.



Also is it possible to let the rows fill the complete page? I  
mean: if

there is room for 40 rows, that there are automatically 40 rows.


There is even room for 43 rows. I do need to place them all by hand? I
tried \dorecurse, but that did not work.
Especially when the highlight is changed (now every five rows) this
would be a lot of work.

It is a little strange. The second page is reasonably placed. But the
first page not. Why is the layout of the first page different?

Tips to get the tables better in the middle and use more of the
available space are welcome.

I have a strange problem. When printing the first page, or the second
page, there is no problem. Put when I try to print the complete
document. The printer is busy a long time. At a certain point the
printer is 'ready', but does not have printed the document. Anybody
knows what could be happening?
I am working with openSUSE and a HP Color LaserJet 1600.

I also tried to make the document singlesided. But when I then placed
two tables, they got on different pages instead of beside eachother.
How would I place two tables beside eachother on singlesided paper?

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


Re: [NTG-context] Questions about tables

2009-01-22 Thread Bart C. Wise
On Wednesday 21 January 2009 06:16:36 pm Cecil Westerhof wrote:
 I have the following table:
 \starttable[|cp(.12\textwidth)|cp(.12\textwidth)|cp(.18\textwidth)|cp(.18\t
extwidth)|cp(.12\textwidth)|cp(.12\textwidth)|cp(.12\textwidth)|] \HL
 \CL[darkyellow]\SR
 \VL Verwerkt \VL Datum \VL Km-stand \VL Kilometers \VL c/l \VL Liter
 \VL Prijs \VL \SR
 \HL
 \VL  \VL   \VL  \VL\VL \VL
 \VL   \VL \SR
 \HL
 \stoptable

 There are two problems with it:
 - The horizontal line at the top disappears because of the color. Is
 there a way to get it back?
 - The table is on the right side of the paper. How can I get it
 centered on the page?

 Also is it possible to let the rows fill the complete page? I mean: if
 there is room for 40 rows, that there are automatically 40 rows.

Cecil,

Here's a stab.  It uses a macro that Wolfgang wrote on getting the line count 
to automatically populate the page.  However, there's one caveat, I could not 
start the table at the beginning of the page, I had to put a .\par in first.  
Other than that, it works.

\setupcolors[state=start]   
\showframe  

\def\TEntry#1#2#3#4#5#6{
\bTR
\bTD #1 \eTD
\bTD #2 \eTD
\bTD #3 \eTD
\bTD #4 \eTD
\bTD #5 \eTD
\bTD #6 \eTD
\eTR
}   

\setupTABLE[c][each][align=middle,height=\lineheight]
\setupTABLE[r][1][background=color,backgroundcolor=darkyellow]
\setupTABLE[c][each][width=0.12\textwidth]
\setupTABLE[c][3,4][width=0.18\textwidth]

\starttext
.\par
\startalignment[middle]
\dontleavehmode
\bTABLE
\bTR
\bTD Verwerkt \eTD
\bTD Datum \eTD
\bTD Km-stand \eTD
\bTD Kilometers \eTD
\bTD c/l \eTD
\bTD Liter \eTD
\eTR
\getnoflines{\dimexpr\pagegoal-\pagetotal-3\lineheight\relax}%
\dorecurse{\noflines}{\TEntry{}{}{}{}{}{}}
\eTABLE
\stopalignment
\stoptext

Bart

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


Re: [NTG-context] Questions about tables

2009-01-22 Thread Wolfgang Schuster


Am 22.01.2009 um 21:27 schrieb Bart C. Wise:

Here's a stab. It uses a macro that Wolfgang wrote on getting the  
line count to automatically populate the page. However, there's one  
caveat, I could not start the table at the beginning of the page, I  
had to put a .\par in first. Other than that, it works.


\starttext
.\par



Use the following to remove the gap at the top of the page.

\dontleavehmode\vskip-\dimexpr\lineheight+\topskip\relax\par

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


Re: [NTG-context] number of lines ?

2009-01-22 Thread Alan Stone
On Thu, Jan 22, 2009 at 5:54 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 22.01.2009 um 17:20 schrieb Alan Stone:

  On Thu, Jan 22, 2009 at 3:54 PM, Alan Stone 
 software.list.1e...@gmail.com wrote:
 Try: Your text has {\the\noflines} lines.

 Your text has \the\noflines\ lines.  % works also

 Thanks.

 How do you substract/add a number from/to \noflines ?

 I tried

 \thinrules[n=\advance\the\noflines by -2]
 \thinrules[n=\advance\noflines by -2]
 \thinrules[n={\advance\the\noflines by -2}]
 \thinrules[n={\advance\noflines by -2}]


 \thinrules[n=\number\numexpr\noflines-2\relax]


And how do you make a division of \number\numexpr\noflines-2, for ex. by 2 ?

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


[NTG-context] lua questions

2009-01-22 Thread Thomas A. Schmitz

Hi all,

this is a bit OT and should probably go to a lua list, but since some  
people here are very proficient in lua and I feel less embarrassed  
about noob questions here... I have a half-functioning python script  
to convert entries from a classics database into the bibtex format. I  
want to rewrite it in lua and make it more functional. Three little  
problems/questions:


1. I found a script to convert Roman numerals via lpeg here: http://lua-users.org/wiki/LpegRecipes 
 but it uses the syntax lpeg.Ca which my lpeg doesn't recognize and  
which I can't find in the lpeg manual. According to a talk by Roberto  
Ierusalimschy, lpeg.Ca(patt) - accumulates the nested captures. (http://www.inf.puc-rio.br/~roberto/lpeg/slides-lpeg-workshop2008.pdf 
) Is this obsolete, has it been replaced by anything?


2. How can I check if a string begins with a class of words (Der |Die  
|Das |The |An ) etc. and strip these words from the string? I do it  
with a compiled regexp in python, but Programming in lua has this to  
say: Unlike some other systems, in Lua a modifier can only be applied  
to a character class; there is no way to group patterns under a  
modifier. For instance, there is no pattern that matches an optional  
word (unless the word has only one letter). Usually you can circumvent  
this limitation using some of the advanced techniques that we will see  
later. I haven't found these techniques yet.


3. How can I compare strings with utf8 characters? My naive approach
   if string.find(record, Résumé)
doesn't appear to work (while the same method does work if the string  
has only ASCII characters).


Sorry if this is OT, and I'll be grateful for any pointers.

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


Re: [NTG-context] number of lines ?

2009-01-22 Thread Wolfgang Schuster


Am 22.01.2009 um 22:23 schrieb Alan Stone:

And how do you make a division of \number\numexpr\noflines-2, for  
ex. by 2 ?


\numexpr\noflines/2\relax

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