Re: [NTG-context] \=i

2004-06-03 Thread Hans Hagen
At 21:45 02/06/2004, you wrote:
I'd prefer (at least a variant) that does it based on fontstyle as well:
\unprotect
\definesystemvariable{sx}
\def\definestylecollection
   {\dotripleargument\dodefinestylecollection}
\def\dodefinestylecollection[#1][#2][#3][#4]%
   {\unexpanded\setvalue{#1}{\styleinstance[#1]}%
\setvalue{\??sx#1:#2:#3}{#4}}
\unexpanded\def\styleinstance[#1]%
   {\executeifdefined{\??sx#1:\fontstyle:\fontalternative}{\getvalue{\?
?sx#1:\fontstyle:\s!default}}}
\protect
\definestylecollection[caps][ss][default][\sc]
\definestylecollection[caps][ss][bf][\bc]
\definestylecollection[caps][ss][bi][\bc]
\definestylecollection[caps][ss][bs][\bc]
% \definestylecollection[mine]
% \definestyleinstance[mine][default][sorry]
% \definestyleinstance[mine][tt][bs][ttbs:\rm\sl]
% \definestyleinstance[mine][tt][bf][ttbf:\rm\sl]
% \definestyleinstance[mine][bf][\sl]
% \definestyleinstance[mine][sl][\tt]
% {\bf test \mine test \sl test \mine test \bs oeps \mine oeps {\tt test 
\mine \bf test}}

\definesystemvariable{sx}
\def\definestylecollection
  {\dosingleargument\dodefinestylecollection}
\def\dodefinestylecollection[#1]%
  {\iffirstargument
 \unexpanded\setvalue{#1}{\styleinstance[#1]}%
 \def\docommand##1%
   {\def\dodocommand1{\letbeundefined{\??sx##1:1:\commalistelement}}%
\processcommacommand[\alternativelist,\s!default]\dodocommand}%
 \processcommacommand[\stylelist,\s!default]\docommand
   \fi}
\def\definestyleinstance
  {\doquadrupleargument\dodefinestyleinstance}
\def\dodefinestyleinstance[#1][#2][#3][#4]% [name] [rm|ss|tt|..] 
[sl|bf|...] [whatever]
  {\iffirstargument
 \doifundefined{#1}{\definestylecollection[#1]}%
   \fi
   \iffourthargument
 \setvalue{\??sx#1:#2:#3}{#4}%
   \else\ifthirdargument
 \setvalue{\??sx#1::#2}{#3}%
   \else\ifsecondargument
 \letvalue{\??sx#1::#2}\empty
   \fi\fi\fi}

\unexpanded\def\styleinstance[#1]% will be faster
  {%\begingroup\expanded{\infofont[#1:\fontstyle:\fontalternative]}\endgroup
   \executeifdefined{\??sx#1:\fontstyle:\fontalternative}%
  {\executeifdefined{\??sx#1:\fontstyle:\s!default}%
  {\executeifdefined{\??sx#1::\fontalternative}
  {\getvalue{\??sx#1::\s!default}
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] %%BoundingBox: (atend)

2004-06-03 Thread Peter Mnster
On Thu, 3 Jun 2004, Taco Hoekwater wrote:

  But how is texutil used in this situation?
 
 with 
   texutil --figures

I tried this too, but still the same error. Perhaps something wrong with my
installation? I would be glad if someone could help.
The file example.eps is in the attachment.
Here is test.tex:
\starttext
\externalfigure[example][width=10cm]
\stoptext

After executing texutil --figures example.eps the file texutil.tuf is
created:
%
% TeXUtil 8.2 - ConTeXt / PRAGMA ADE 1992-2004 / Figures
%
\thisisfigureversion{1996.06.01}
%
\presetfigure[example.eps][e=eps,w=22.754cm,h=16.051cm
,x=2.258cm,y=2.540cm,t={Untitled},c={Grace-5.1.14},s=9396]

And then, after texexec test the attached log-file is created.

I tried to move away the eps-file just before executing texexec and move it
back just before dvips, but then, I get a corrupted ps-file.

Greetings, Peter

-- 
http://pmrb.free.fr/contact/
_
FilmSearch engine: http://f-s.sf.net/

example.eps
Description: eps-file
This is pdfeTeX, Version 3.14159-1.10b-2.1 (Web2C 7.4.5) (format=cont-en 2004.6.2)  3 
JUN 2004 18:42
entering extended mode
**cont-en test.tex
(./test.tex{/var/lib/texmf/pdftex/config/pdftex.cfg}

ConTeXt  ver: 2004.4.9  fmt: 2004.6.2  int: english  mes: english

language   : language en is active
protectionstate 0
system : cont-new loaded
(/usr/share/texmf/tex/context/base/cont-new.tex
systems: beware: some patches loaded from cont-new.tex!
color  : palette rollover is available
system (E-TEX) : [line 278] 
system (E-TEX) : [line 333] 
)
system : cont-old loaded
(/usr/share/texmf/tex/context/base/cont-old.tex
loading: Context Old Macros
)
system : cont-fil loaded
(/usr/share/texmf/tex/context/base/cont-fil.tex
loading: Context File Synonyms
)
system : cont-sys loaded
(/var/lib/texmf/tex/context/config/cont-sys.tex)
system : macros of module tryout loaded
(/usr/share/texmf/tex/context/base/m-tryout.tex
\openout2 = `test.tui'.

)
bodyfont   : 12pt rm is loaded
language   : patterns 2:2-en-2 3:2-uk-2 4:2-de-2 5:2-fr-2 6:2-es-2 7:2-it-2
 8:2-nl-2 loaded
specials   : tex,postscript,rokicki loaded
\openout2 = `test.tui'.

system : test.top loaded
(./test.top)
\openout0 = `test-mpgraph.mp'.

\openout0 = `mpgraph.mp'.


fonts  : needs map file: ec-public-lm.map
fonts  : needs map file: original-base.map
systems: begin file test at line 1
! Missing number, treated as zero.
to be read again 
   (
\EPSllx -(
   atend)
\dogetEPSboundingbox ...m \EPSfound 0 #2=\EPSllx 
  bp#4=\EPSurx bp#3=\EPSlly ...

\getfiguredimensionsA ...heightb } \executedfalse 
  \ifexecuted \donetrue \ifd...
argument \getfiguredimensionsA 
 \getfiguredimensionsB \getfiguredimensionsC 
\firstoftwoarguments #1#2-#1
 
...
l.3 \stoptext
 
? x
 
Here is how much of TeX's memory you used:
 888 strings out of 66597
 9826 string characters out of 727591
 4409401 words of memory out of 5504447
 32118 multiletter control sequences out of 1+5
 10284 words of font info for 34 fonts, out of 50 for 1000
 62 hyphenation exceptions out of 1000
 27i,1n,40p,149b,714s stack positions out of 1500i,500n,5000p,20b,5000s
 0 PDF objects out of 30
 0 named destinations out of 131072
 0 words of extra memory for PDF output out of 65536
No pages of output.


[NTG-context] Floating Long Tables

2004-06-03 Thread Nigel King
Dear ConTeXtnicians,
Is there a way in which floating tables can span more than one page 
using \bTABLE..\eTABLE?

--
Nigel
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context