[NTG-context] How can I reset the height of a row in \bTABLE..\eTABLE?

2006-01-31 Thread Pearson, Mark (Capita Symonds)
Hello All,

The example below shows two tables. The first table has the height
of its 1st row explicitly set, which then carries over to the second
table causing the content to overflow the boundaries of the table. 

My question: Is there a way to either a) reset the row height for the
second table using something like \setupTABLE[r][1][height=auto] or 
b) set the minimum height of a row e.g. \setupTABLE[r][1][minheight=3ex]
so that the height is able to expand if necessary?

I found a macro named \resetallTABLEparameters but it doesn't seem
to have the desired effect.


Thanks in advance,

Mark Pearson


\starttext

\setupTABLE[r][1][height=1.5\lineheight]

\bTABLE
\bTR 
\bTD 
Cell 1
\eTD
\bTD 
Cell 2
\eTD
\eTR
\eTABLE

\blank[2*big]

\bTABLE
\bTR 
\bTD 
This is a table cell with a long section of text in it which I 
sincerely hope is going to force the table to resize accordingly
\eTD
\bTD 
This is another table cell with some text in it too
\eTD
\eTR
\eTABLE

\stoptext


**
This email and any files transmitted with it are confidential, and may be 
subject to legal privilege, and are intended solely for the use of the 
individual or entity to whom they are addressed.  
If you have received this email in error or think you may have done so, you may 
not peruse, use, disseminate, distribute or copy this message. Please notify 
the sender immediately and delete the original e-mail from your system.

Computer viruses can be transmitted by e-mail. Recipients should check this 
e-mail for the presence of viruses. The Capita Group and its subsidiaries 
accept no liability for any damage caused by any virus transmitted by this 
e-mail.
***
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Placing a scaled symbol within the flow of text

2005-12-02 Thread Pearson, Mark (Capita Symonds)
Hi all,

I am attempting to insert a symbol at a reduced size within the
text flow but I'm not sure how to achieve this.

I've included my test script below. 

\starttext

\definefontsynonym[Dingbats][uzdr]
\definesymbol[filledSq][\getglyph{Dingbats}{\char110}]

\def\FilledSq{\symbol[filledSq]}
\def\FilledSquare{\scale[height=0.5ex]{\symbol[filledSq]}}

\switchtobodyfont[20pt]

\startlines
\FilledSq Here is a line
This is one line
and this should be another
\FilledSq Hello again 
\FilledSquare and again!!
and here are some more lines
this is the last one
\stoplines

\stoptext

When a \FilledSq is inserted, the text which follows appears 
on the same line but when a \FilledSquare is inserted the text 
which follows appears on the line below. I'm probably using 
\scale in an inappropriate way and I'm sure don't know my
\vbox's from my \hbox's!

Any examples of how to reduce the size of a glyph whilst
still being able to insert it as a normal character in the 
text flow would be greatly appreciated.

Thanks,

Mark Pearson


**
This email and any files transmitted with it are confidential, and may be 
subject to legal privilege, and are intended solely for the use of the 
individual or entity to whom they are addressed.  
If you have received this email in error or think you may have done so, you may 
not peruse, use, disseminate, distribute or copy this message. Please notify 
the sender immediately and delete the original e-mail from your system.

Computer viruses can be transmitted by e-mail. Recipients should check this 
e-mail for the presence of viruses. The Capita Group and its subsidiaries 
accept no liability for any damage caused by any virus transmitted by this 
e-mail.
***
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Paper size, MediaBox, CropBox and cropping

2005-11-23 Thread Pearson, Mark (Capita Symonds)
Hi all,

Does anyone know if it is possible to force the PDF output from ConTeXt
to contain both a /MediaBox and /CropBox, having set up a document in
the following manner:

\definepapersize
[BusinessCard]
[width=85mm,height=54mm]

\setuppapersize
[BusinessCard]
[A5,landscape]

\setuplayout
[location=middle,
 marking=on,
 header=0mm,
 footer=3mm,
 topspace=0mm,
 leftmargin=0mm,
 rightmargin=0mm,
 width=85mm,
 height=54mm,
 backspace=0mm]

When I look at the PDF output I can only find the following box
definition:

/MediaBox [0 0 595.2756 419.5276]

which works out to the size of the A5 sheet (595pt ~= 210mm, 419 ~=
148mm).

However what I want to be able to encode in the PDF file is the
size/position of the 'BusinessCard', or to put it another way, the
positions of the crop marks, so that I can act upon that information
using an external tool (specifically to generate a PNG image preview
of the business card PDF with correct cropping)

Many thanks,

Mark.


---
Mark Pearson BSc (hons) MSc DPhil
IT Consultant
Capita Symonds
The Capita Building, Kingmoor Business Park
Carlisle. CA6 4SJ.  

Tel: 01228 673023
Fax: 01228 673111
Web: www.capitasymonds.co.uk

**
This email and any files transmitted with it are confidential, and may be 
subject to legal privilege, and are intended solely for the use of the 
individual or entity to whom they are addressed.  
If you have received this email in error or think you may have done so, you may 
not peruse, use, disseminate, distribute or copy this message. Please notify 
the sender immediately and delete the original e-mail from your system.

Computer viruses can be transmitted by e-mail. Recipients should check this 
e-mail for the presence of viruses. The Capita Group and its subsidiaries 
accept no liability for any damage caused by any virus transmitted by this 
e-mail.
***
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Color Separation with external figures and spot colors

2005-11-16 Thread Pearson, Mark (Capita Symonds)
Hi All,

Does anyone know if/how I can take a grayscale JPG external
figure and assign it to a spot colour channel.

The Color Separation manual gives the following example:

\externalfigure[graphic][split=c]

for assigning such an image to the Cyan channel but I want
to say something like:

\definecolor
[Spot1]
[c=1,m=.05,y=0,k=.47,e=PANTONE 308 CV]

\definecolor
[Spot2]
[c=.69,m=.07,y=0,k=0,e=PANTONE 298 CV]
.
.

\externalfigure[graphic][split=Spot1]

Is this possible?

Thanks in advance for any help anyone can offer :)

Mark Pearson.


**
This email and any files transmitted with it are confidential, and may be 
subject to legal privilege, and are intended solely for the use of the 
individual or entity to whom they are addressed.  
If you have received this email in error or think you may have done so, you may 
not peruse, use, disseminate, distribute or copy this message. Please notify 
the sender immediately and delete the original e-mail from your system.

Computer viruses can be transmitted by e-mail. Recipients should check this 
e-mail for the presence of viruses. The Capita Group and its subsidiaries 
accept no liability for any damage caused by any virus transmitted by this 
e-mail.
***
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


RE: [NTG-context] Mini-survey: What do you do with ConTeXt?

2005-11-09 Thread Pearson, Mark (Capita Symonds)
Hi All,

I'm currently working in a team which is building a system for
the automatic production of office stationery (business cards,
letterheads and compliment slips) with ConTeXt at its heart. 

The system provides a web-application front end for selected
users to create stationery orders. These orders are then 
processed to produce .tex files, which are processed by 
ConTeXt to produce press-ready PDFs. The PDFs are sent with
order details straight to our in-house printing department.

I was tasked with creating the PDF engine and chose ConTeXt
because (a) I have a lot of experience with LaTeX and hence a
great deal of respect for TeX's capabilities but (b) knew that
controlling the layouts in LaTeX would be a pain.

The following features of ConTeXt are used in this project:

* Native support for OpenType fonts
* Support for creation of high quality press-ready PDFs
* Fine control over document layout, page design etc.
* Support for embedding JPG, TIFF, PNG amd PDF images
* Support for the use of named (PANTONE) spot colours

The choice of ConTeXt was not an easy one having never used
it before but my gut feeling was that it is a very powerful
and flexible piece of software. It has met all my requirements
so far but not without a fight, as the documentation can be
very sparse! 

I will certainly contribute what documentation I can when I
have more time.

Mark

**
This email and any files transmitted with it are confidential, and may be 
subject to legal privilege, and are intended solely for the use of the 
individual or entity to whom they are addressed.  
If you have received this email in error or think you may have done so, you may 
not peruse, use, disseminate, distribute or copy this message. Please notify 
the sender immediately and delete the original e-mail from your system.

Computer viruses can be transmitted by e-mail. Recipients should check this 
e-mail for the presence of viruses. The Capita Group and its subsidiaries 
accept no liability for any damage caused by any virus transmitted by this 
e-mail.
***
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Undefined control sequence \starttypescriptcollection

2005-09-07 Thread Pearson, Mark (Capita Symonds)
Having successfully installed the latest ConTeXt within TeTeX 3.0
I'm having trouble getting a simple file to process. My test file
simple.tex contains:

 \starttext
 Hello World
 \stoptext

Invoking texexec with 'texexec simple.tex' produces the following:

- START OUTPUT -
$ texexec simple.tex

  TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

 fixing engine variable : pdfetex
 executable : pdfetex
 format : cont-en
  inputfile : simple
 output : standard
  interface : en
   current mode : none
TeX run : 1

 This is pdfeTeX, Version 3.141592-1.30.2-2.2 (Web2C 7.5.5)
  \write18 enabled.
  (/usr/local/teTeX/share/texmf-local/web2c/natural.tcx)
 entering extended mode
 (./simple.tex

 ConTeXt  ver: 2005.01.31  fmt: 2005.9.6  int: english  mes: english

 language: language en is active
 
 system  : cont-new loaded
 (/usr/local/teTeX/share/texmf-local/tex/context/base/cont-new.tex
 systems : beware: some patches loaded from cont-new.tex
 system (E-TEX) : [line 69]
 color   : palette rollover is available
 system (E-TEX) : [line 1166]
 system (E-TEX) : [line 1221]
 )
 system  : cont-old loaded
 (/usr/local/teTeX/share/texmf-local/tex/context/base/cont-old.tex
 loading : Context Old Macros
 )
 system  : cont-fil loaded
 (/usr/local/teTeX/share/texmf-local/tex/context/base/cont-fil.tex
 loading : Context File Synonyms
 )
 system  : cont-sys.rme loaded
 (/usr/local/teTeX/share/texmf-local/tex/context/user/cont-sys.rme
 (/usr/local/teTeX/share/texmf-local/tex/context/base/type-syn.tex
 ! Undefined control sequence.
 l.14 \starttypescriptcollection
[synonyms]
 ?
-- END OUTPUT --

texexec --version gives:

- START OUTPUT -
$ texexec --version

  TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
tex : pdfeTeX, 3.141592-1.30.2-2.2 (Web2C 7.5.5)
context : ver: 2005.08.31
cont-en : ver: 2005.01.31  fmt: 2005.9.6  mes: english
cont-nl : ver: 2005.01.31  fmt: 2005.9.6  mes: dutch

 total run time : 4 seconds

-- END OUTPUT --

Any ideas what could be wrong?

Thanks in advance,

Mark Pearson BSc (hons) MSc DPhil
IT Consultant
Capita Symonds
The Capita Building, Kingmoor Business Park
Carlisle. CA6 4SJ.  

Tel: 01228 673023
Fax: 01228 673111
Web: www.capitasymonds.co.uk
 

**
This email and any files transmitted with it are confidential, and may be 
subject to legal privilege, and are intended solely for the use of the 
individual or entity to whom they are addressed.  
If you have received this email in error or think you may have done so, you may 
not peruse, use, disseminate, distribute or copy this message. Please notify 
the sender immediately and delete the original e-mail from your system.

Computer viruses can be transmitted by e-mail. Recipients should check this 
e-mail for the presence of viruses. The Capita Group and its subsidiaries 
accept no liability for any damage caused by any virus transmitted by this 
e-mail.
***
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Installation of ConTeXt within TeTeX 3.0

2005-09-06 Thread Pearson, Mark (Capita Symonds)
I've been trying to install ConTeXt (ver 2005.08.31) within teTeX 3.0,
installed from source exactly as described in 

http://wiki.contextgarden.net/TeTeX_3.0_installation

but have run into problems.

Everything goes smoothly until I get to the section entitled 'Install
the zip archive'.

When I type 'texexec -make -all'  I get the following error (after much
other output):

language: patterns da for da loaded (n=6)

(/usr/local/teTeX/share/texmf-local/tex/context/patterns/lang-da.pat
! Nonletter.
l.24 .s[
aring]3
?

I tried simply responding 'R' to continue running silently but when I
come to the next step:

cp -a /root/.texmf-var/web2c/*
/usr/local/teTeX/share/texmf-var/web2c

The .texmf-var/web2c folder is empty, so nothing useful gets copied.

Currently, typing 'texexec --version' gives me the following:

TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005

   texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-
2005
   texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-
2004
kpathsea: Running mktexfmt cont-en.fmt
fmtutil: no info for format `cont-en'.
kpathsea: Running mktexfmt context.fmt
fmtutil: no info for format `context'.
   tex : unknown
   context : ver: 2005.01.31
   cont-en : unknown

which indicates to me that I should start again from scratch.

I have followed the instructions in the above-mentioned Wiki page to the
letter (although I wouldn't necessarily know if something had gone
astray
along the way given the complexity of TeX/ConTeXt etc.) This includes:

* removing the default TeTeX installation in Fedora Core 4
* installing TeTeX from the latest source package
* installing pdfetex update
* installing MetaPost update
* installing Latin Modern Font update

Could anyone point me in the right direction please?

Thanks in advance.

Mark Pearson BSc (hons) MSc DPhil
IT Consultant
Capita Symonds
The Capita Building, Kingmoor Business Park
Carlisle. CA6 4SJ.  
United Kingdom.

Tel: +44 1228 673023
Fax: +44 1228 673111
Web: www.capitasymonds.co.uk
 

**
This email and any files transmitted with it are confidential, and may be 
subject to legal privilege, and are intended solely for the use of the 
individual or entity to whom they are addressed.  
If you have received this email in error or think you may have done so, you may 
not peruse, use, disseminate, distribute or copy this message. Please notify 
the sender immediately and delete the original e-mail from your system.

Computer viruses can be transmitted by e-mail. Recipients should check this 
e-mail for the presence of viruses. The Capita Group and its subsidiaries 
accept no liability for any damage caused by any virus transmitted by this 
e-mail.
***
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context