Re: [NTG-context] [XeTeX] XeTeX, ConTeXt, and utf-8 hyphenation patterns. / GREEK

2006-06-15 Thread Hans Hagen
Peter Heslin wrote:
 Hans Hagen [EMAIL PROTECTED] writes:

   
 ctxtools --pat [en nl agr ...]
 ctxtools --pat --utf[en nl agr ...]

 the greek conversions were done with the help of a greek language users 
 on the context list, so in case of troubles, so i cc there; bugs need to 
 be fixed indeed
 

 Thanks for the tips.  I have taken a closer look at the Greek patterns,
 and it seems as though they have not only small problems, but also major
 problems.  (They will fail to find most hyphenation points before
 accented vowels.)  I will try to come up with a patch, but I don't know
 any Ruby, so it will be an interesting challenge -- the changes required
 go beyond tweaking the existing code.

 The characters in the file lang-agr.pat are precomposed, Unicode
 normalization form D.  But I'd like to support both normalization forms
 C and D, if possible, in the same pattern file.  Is that goal compatible
 with Context?

   
this is more related to (xe)tex than to context; i leave that to the 
greek experts on the context list

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] CoNTeXt on Mac OS X with iinstaller still broken

2006-06-15 Thread Matthias Weber
Dear Mac-ConTeXt users (and other experts),

I typically upgrade my least used Mac (my laptop)  to the newest  
ConTeXt release first, and
only go ahead with the desktop when my projects compile fine.
Otherwise, I usually wait until the more proficient users have sorted  
things out.

Now, for a while, the iinstaller ConTeXt version has been broken.  
While there have been
numerous  reports and workaround and fixes on this list, it would be  
most convenient
to have iinstaller working again (or another foolproof solution).

For reference, I attach the log file for

\starttext
ffi
\stoptext

which shows that ligatures aren't shown.

Thanks in advance!

Matthias



This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)  
(format=cont-en 2006.6.13)  13 JUN 2006 11:26
entering extended mode
(/usr/local/teTeX/share/texmf.local/web2c/natural.tcx)
**cont-en test.tex
(./test.tex

ConTeXt  ver: 2006.06.07 23:34  fmt: 2006.6.13  int: english  mes:  
english

language: language en is active
protectionstate 0
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
color   : palette rollover is available
)
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-exa.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex))
bodyfont: 12pt rm is loaded
language: patterns en-ec:ec-1-2:3 uk-ec:ec-2-2:3 de- 
 texnansi:tex
nansi-3-2:3 de-ec:ec-4-2:3 fr-texnansi:texnansi-5-2:3 fr- 
 ec:ec-6-2:3
es-ec:ec-7-2:3 pt-texnansi:texnansi-8-2:3 pt-ec:ec-9-2:3 it- 
 texnansi
:texnansi-10-2:3 it-ec:ec-11-2:3 nl-texnansi:texnansi-12-2:3  
nl-ec:ec-
 13-2:3 cz-il2:il2-14-2:3 cz-ec:ec-15-2:3 sk-il2:il2-16- 
 2:3 sk-ec:ec
-17-2:3 pl-pl0:pl0-18-2:3 pl-ec:ec-19-2:3 pl-qx:qx-20-2:3  
loaded
specials: tex,postscript,rokicki loaded
\openout2 = `test.tui'.

system  : test.top loaded
(./test.top
specials: loading definition file tpd
(/usr/local/teTeX/share/texmf.local/tex/context/base/spec-tpd.tex
specials: loading definition file fdf
(/usr/local/teTeX/share/texmf.local/tex/context/base/spec-fdf.tex)
specials: fdf loaded
)
specials: fdf,tpd loaded
)
\openout0 = `test-mpgraph.mp'.

\openout0 = `mpgraph.mp'.


systems : system commands are disabled
(./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./ 
test.tuo)
(./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo)
(/usr/local/teTeX/share/texmf.local/tex/context/base/sort-def.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/sort-lan.tex) (./ 
test.tuo)
(./test.tuo)
systems : begin file test at line 3
fonts   : resetting map file list
fonts   : using map file: original-base
fonts   : using map file: ec-public-lm
fonts   : using map file: ec-base
fonts   : using map file: 8r-base
fonts   : using map file: t5-base
fonts   : using map file: original-ams-base
fonts   : using map file: original-ams-euler
fonts   : using map file: original-public-lm
(/usr/local/teTeX/share/texmf.local/tex/context/base/pdfr-ec.tex) [1.1 
{/usr/loc
al/teTeX/share/texmf.local/fonts/map/dvipdfm/context/original- 
empty.map}{/usr/l
ocal/teTeX/share/texmf.local/fonts/map/dvipdfm/context/original-base.map
Warning: pdfetex (file /usr/local/teTeX/share/texmf.local/fonts/map/ 
dvipdfm/con
text/original-base.map): invalid entry for `fmvr8x': font file missing

Warning: pdfetex (file /usr/local/teTeX/share/texmf.local/fonts/map/ 
dvipdfm/con
text/original-base.map): invalid entry for `xycmat11': font file missing

Warning: pdfetex (file /usr/local/teTeX/share/texmf.local/fonts/map/ 
dvipdfm/con
text/original-base.map): invalid entry for `xycmbt11': font file missing

Warning: pdfetex (file /usr/local/teTeX/share/texmf.local/fonts/map/ 
dvipdfm/con
text/original-base.map): invalid entry for `xyeuat11': font file missing

Warning: pdfetex (file /usr/local/teTeX/share/texmf.local/fonts/map/ 
dvipdfm/con
text/original-base.map): invalid entry for `xyeubt11': font file missing

Warning: pdfetex (file /usr/local/teTeX/share/texmf.local/fonts/map/ 
dvipdfm/con
text/original-base.map): invalid entry for `xycmat12': font 

Re: [NTG-context] # in MPinclusions

2006-06-15 Thread Aditya Mahajan
On Tue, 13 Jun 2006, Hans Hagen wrote:

 Aditya Mahajan wrote:
 Hi,
   How can I make MPinclusions consider # as a normal character.

 try \string# (or \#)

Thanks, that does the trick.

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Specifying maximum width of a frame

2006-06-15 Thread Aditya Mahajan
Hi,

  I want to specify the maximum width of a frame. If the size of the 
box is smaller than the maximum width, I want a tight box. Something 
like

\frame[maxwidth=5cm,align=middle]{Small} should give

+-+
|small|
+-+

while \frame[maxwidth=5cm,align=middle]{A very very long line that is 
split at 5cm} should give

+--+
|   A very very long   |
|  line that is split  |
|  at 5cm  |
+--+

Is there something builtin that does this, or do I need to play with 
scratchbox cum suis.

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] mathsize

2006-06-15 Thread Hans van der Meer
When doing inline math I see that the mathsize does adapt when \tfa, \tfb, etc are used, but not for \tfx and \tfxx. That seems strange to me, because in the manual in the font table \tfx \tfxx \tfa etc. are advertised as equivalent operations. It also accounts for a lot more typing (and mistakes).Why is the behaviour different? And if it is not on purpose, can it be remedied then?A minimal example:\starttext	{\tfc tfc 123 and \$ tfc: $123$ \$}\crlf{\tfb tfb 123 and \$ tfb: $123$ \$}\crlf{\tfa tfa 123 and \$ tfa: $123$ \$}\crlf{normal 123 en \$ normal: $123$ \$}\crlf{\tfx tfx 123 and \$ not tfx: $123$ \$}\crlf         % math does not adapt size{\tfx tfx 123 and \$ again tfx: $\tfx 123$ \$}\crlf{\tfxx tfxx 123 and \$ not tfxx: $123$ \$}\crlf      % math does not adapt size{\tfxx tfxx 123 and \$ again tfxx: $123$ \$}\crlf% the next does work as expected:\def\smallsize{\switchtobodyfont[9pt]}{\smallsize smallsize 123 and \$ smallsize: $123$ \$}\crlf Hans van der Meer ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] how to let context suppose chinese via utf-8 ?

2006-06-15 Thread Mojca Miklavec

盛劲松 wrote:
Hi, evergyone
I found a instruction in context wiki 
(http://wiki.contextgarden.net/Chinese)

 in this page , it says:

If you have Context 2005.12.19, you only have to get the fonts.


Must be understood as: [Someone has forgotten to delete this note.] If
your ConTeXt is older than a month don't even try to ask questions
about why something doesn't work ;)


1.You need some Chinese (TrueType) fonts; you may want to get FangSong, HeiTi, 
KaiTi and SongTi. Put those e.g. into  $TEXMF/fonts/truetype/chinese/.



3.You may now need to update the hash TeX uses to find the files; using teTeX 
this is done by running texhash.


(often called) mktexlsr


4.How you can run your Hello World program:

could anyone be kindly to offer me a list of detail instructions about how to 
do?

thank you!


I don't know anything about Chineese, but which platform and which
distribution are you using? Because it might be far easier to get
Chineese working with XeTeX than with pdfTeX. In that case you don't
need dozens of those (soon-to-become-obsolete) .map, .tfm and .enc
files. (and you don't need that ruby script)

XeTeX is runnung on Mac OS X for quite some time now, on Linux since
end of April and on Windows for some days or weeks (not officially
released yet).

If you have Mac you can use i-Installer for installing XeTeX, on Linux
it might be easiest to use linuxtex.zip and justtex.zip from
pragma-ade.com. If you're on Windows I can send you some instructions
how to install it (you basically only need to copy binaries and
configuration files from xetex-w32.tar.bz to the proper place in the
TeX tree), but I guess that XeTeX could (will?) be included in the
standalone ConTeXt distribution without much trouble.

In that case the whole story reduces to installing the fonts to your
system (you probably already have them installed) and:

   texexec --xtx --make --all
   fc-cache -v -f

and the Hello-world example being just something like

% typescripts should be used here, but for hello-world this should suffice
\font\MyFont=Arial Unicode MS % or name of some other font that you
want to use
\MyFont

\starttext
your-chineese-text
\stoptext

texexec --xtx yourfile

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] textext error

2006-06-15 Thread Hans van der Meer
I am afraid a serious error has been introduced into textext in the last update(s).This used to work in metapost for typesetting text with a %-sign:	label(textext("66\%"), origin);Now the % somewhere ends a line prematurely because the job aborts with:! mpx file ended unexpectedly.Can Hans please repair this, suddenly a lot of my typesetting is broken. Hans van der Meer___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Using metapost figures in context (offlist)

2006-06-15 Thread Hans Hagen
Aditya Mahajan wrote:
 On Tue, 13 Jun 2006, Hans Hagen wrote:

 Aditya Mahajan wrote:
 On Tue, 13 Jun 2006, Hans Hagen wrote:

 Aditya Mahajan wrote:

  n lines deleted

 I added to texexec:

 texexec --mpgraphic somefile.mp

 which will run mp and make a pdf file.

 Something is wrong with the new beta. I downloaded the zip and 
 regenerated the formats, but only metafun format is created. I am 
 attaching the output of

 texmfstart --verbose texexec --verbose --make --all
 actually, the problem is that the latest pdfetex is not called 
 pdftex; can you remove all traces or pdftex[.exe] in your bin path 
 and see what happens then?

 No pdftex is in the path.

 I call context by using
 set PATH=E:\Ruby\bin
 call E:\isoimage\usr\local\context\tex\setuptex.bat 
 E:\isoimage\usr\local\context\tex

 so there should not be any mismatched executables.
ah ... typo in base/tex.rb:

@@pdftex = 'pdftex' # new default, pdfetex is gone

ENV['PATH'].split(File::PATH_SEPARATOR).each do |p|
 ^^

Can you test that? 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Ugly hack for multiple MSWord docs.

2006-06-15 Thread John R. Culleton
Frequently I find myself in the position of needing to combine
several MSWord and/or rtf documents into a single file for either
pdftex or Context. I have settled on this strategy. 

1. If necessary I convert the documents to rtf with Open Ofice
Writer. 
2. I convert the resulting  rtf documents to LaTeX using rtf2latex2e.
3. I need to rename some of the LaTeX commands to their plain 
TeX or Context equivalents, and simply ignore others. Instead of
editing each and every occurrence, I add the following to my
macros.tex file which heads up the document:

\def\documentclass{}
\def\newcommand{}
\def\usepackage{}
\def\tab{}
\def\hspace{}
\def\begin{}
\def\end{}
\def\textbf#1{\bf #1}
\def\nobreakspace{~}
\def\underline{}
\def\newpage{}
\def\textmd#1{\rm #1}
\def\textit#1{\it #1}
\def\large{\tfb}
\def\reg{\rm\char174\ }
\def\textregistered{\reg}
--

I create a master file that calls in each of the .tex files
and compile the whole goulash. If I missed a latex tag then I add
it to my \defs shown above and recompile until I get a
clean run. Now I have a readable pdf file and can start correcting
the format. 

The scattered Latex tags give me hints where centering etc. might
be needed even though the tags are inoperative in Context, thanks
to my nullifying \def statements shown above.  

Someday there will be an elegant solution to the MSWord to
Context problem. For now there is my ugly hack as described here.

-- 
John Culleton




___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Using metapost figures in context (offlist)

2006-06-15 Thread Aditya Mahajan
On Tue, 13 Jun 2006, Hans Hagen wrote:

 Aditya Mahajan wrote:
 On Tue, 13 Jun 2006, Hans Hagen wrote:
 
 Aditya Mahajan wrote:
 On Tue, 13 Jun 2006, Hans Hagen wrote:
 
 Aditya Mahajan wrote:
 
  n lines deleted
 
 I added to texexec:
 
 texexec --mpgraphic somefile.mp
 
 which will run mp and make a pdf file.
 
 Something is wrong with the new beta. I downloaded the zip and 
 regenerated the formats, but only metafun format is created. I am 
 attaching the output of
 
 texmfstart --verbose texexec --verbose --make --all
 actually, the problem is that the latest pdfetex is not called pdftex; can 
 you remove all traces or pdftex[.exe] in your bin path and see what 
 happens then?
 
 No pdftex is in the path.
 
 I call context by using
 set PATH=E:\Ruby\bin
 call E:\isoimage\usr\local\context\tex\setuptex.bat 
 E:\isoimage\usr\local\context\tex
 
 so there should not be any mismatched executables.
 ah ... typo in base/tex.rb:

   @@pdftex = 'pdftex' # new default, pdfetex is gone

   ENV['PATH'].split(File::PATH_SEPARATOR).each do |p|
^^

 Can you test that?

Yes, this works. The formats are generated correctly. However,
texmfstart texexec --mpgraphic file.mp

does not give me a pdf file. I do understand why this is happening. I 
will dig into it a bit more and see what is going wrong.

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Using metapost figures in context (offlist)

2006-06-15 Thread Aditya Mahajan
On Tue, 13 Jun 2006, Aditya Mahajan wrote:

 On Tue, 13 Jun 2006, Hans Hagen wrote:

 Aditya Mahajan wrote:
 On Tue, 13 Jun 2006, Hans Hagen wrote:
 
 Aditya Mahajan wrote:
 On Tue, 13 Jun 2006, Hans Hagen wrote:
 
 Aditya Mahajan wrote:
 
  n lines deleted
 
 I added to texexec:
 
 texexec --mpgraphic somefile.mp
 
 which will run mp and make a pdf file.
 
 Something is wrong with the new beta. I downloaded the zip and 
 regenerated the formats, but only metafun format is created. I am 
 attaching the output of
 
 texmfstart --verbose texexec --verbose --make --all
 actually, the problem is that the latest pdfetex is not called pdftex; 
 can you remove all traces or pdftex[.exe] in your bin path and see what 
 happens then?
 
 No pdftex is in the path.
 
 I call context by using
 set PATH=E:\Ruby\bin
 call E:\isoimage\usr\local\context\tex\setuptex.bat 
 E:\isoimage\usr\local\context\tex
 
 so there should not be any mismatched executables.
 ah ... typo in base/tex.rb:

   @@pdftex = 'pdftex' # new default, pdfetex is gone

   ENV['PATH'].split(File::PATH_SEPARATOR).each do |p|
^^
 
 Can you test that?

 Yes, this works. The formats are generated correctly. However,
 texmfstart texexec --mpgraphic file.mp

 does not give me a pdf file. I do understand why this is happening. I will 
 dig into it a bit more and see what is going wrong.

In tex.rb

  def processmpgraphic
  ...
  if data =~ /output files written\:\s*(.*)$/mois then
  

However, if the mp file contains only one figure, the output in the 
log is

1 output file written: figures-axis.1

Notice /file/ instead of /files/. So the regex should be changed 
according. Then everything works.


Aditya


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Using metapost figures in context (offlist)

2006-06-15 Thread Hans Hagen
Aditya Mahajan wrote:
 On Tue, 13 Jun 2006, Aditya Mahajan wrote:

 On Tue, 13 Jun 2006, Hans Hagen wrote:

 Aditya Mahajan wrote:
 On Tue, 13 Jun 2006, Hans Hagen wrote:

 Aditya Mahajan wrote:
 On Tue, 13 Jun 2006, Hans Hagen wrote:

 Aditya Mahajan wrote:

  n lines deleted

 I added to texexec:

 texexec --mpgraphic somefile.mp

 which will run mp and make a pdf file.

 Something is wrong with the new beta. I downloaded the zip and 
 regenerated the formats, but only metafun format is created. I am 
 attaching the output of

 texmfstart --verbose texexec --verbose --make --all
 actually, the problem is that the latest pdfetex is not called 
 pdftex; can you remove all traces or pdftex[.exe] in your bin path 
 and see what happens then?

 No pdftex is in the path.

 I call context by using
 set PATH=E:\Ruby\bin
 call E:\isoimage\usr\local\context\tex\setuptex.bat 
 E:\isoimage\usr\local\context\tex

 so there should not be any mismatched executables.
 ah ... typo in base/tex.rb:

   @@pdftex = 'pdftex' # new default, pdfetex is gone

   ENV['PATH'].split(File::PATH_SEPARATOR).each do |p|
^^

 Can you test that?

 Yes, this works. The formats are generated correctly. However,
 texmfstart texexec --mpgraphic file.mp

 does not give me a pdf file. I do understand why this is happening. I 
 will dig into it a bit more and see what is going wrong.

 In tex.rb

  def processmpgraphic
  ...
  if data =~ /output files written\:\s*(.*)$/mois then
  

 However, if the mp file contains only one figure, the output in the 
 log is

 1 output file written: figures-axis.1

 Notice /file/ instead of /files/. So the regex should be changed 
 according. Then everything works.

if data =~ /output files* written\:\s*(.*)$/mois then

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Using metapost figures in context (offlist)

2006-06-15 Thread Aditya Mahajan
On Tue, 13 Jun 2006, Hans Hagen wrote:

 Aditya Mahajan wrote:
 On Tue, 13 Jun 2006, Hans Hagen wrote:
 
 Aditya Mahajan wrote:
 
  n lines deleted
 
 I added to texexec:
 
 texexec --mpgraphic somefile.mp
 
 which will run mp and make a pdf file.
 
 Something is wrong with the new beta. I downloaded the zip and regenerated 
 the formats, but only metafun format is created. I am attaching the output 
 of
 
 texmfstart --verbose texexec --verbose --make --all
 actually, the problem is that the latest pdfetex is not called pdftex; can 
 you remove all traces or pdftex[.exe] in your bin path and see what happens 
 then?

No pdftex is in the path.

I call context by using
set PATH=E:\Ruby\bin
call E:\isoimage\usr\local\context\tex\setuptex.bat 
E:\isoimage\usr\local\context\tex

so there should not be any mismatched executables.

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] metafun color broken?

2006-06-15 Thread Hans van der Meer
I used to draw in transparent color in MetaFun with:   newinternal tfill_mode; tfill_mode := 1;	% transparency mode for inside   newinternal tfill_fact;	tfill_fact := 1;	% transparency factor for inside   def withFillColor = withcolor transparent(tfill_mode, tfill_fact, fillcolor_) enddef;   fill somepath withFillColor;Suddenly (since the june update I guess) this fails.Because   fill somepath withcolor fillcolor_;is still working I wonder if something has done to this transparency business.If there was a change, why? It brings me trouble. Hans van der Meer ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] texmfstart trouble

2006-06-15 Thread Hans van der Meer
Recently I reported 2 problems related to metapost usage:1. the loss of transparent color handling2. textext not being able to handle %'s as in textext("15\%")The source of both problems can be nailed down to the one change in supp-mps.tex:\ifx\TEXEXECcommand \undefined \def\TEXEXECcommand{texmfstart texexec} \fiIf I understand correctly, this effectuates a change from the perl to the ruby scripts.Removing the texmfstart solves the problem.I compared two runs for the transparency problem in order to see if there is some clue:1. Both mp-files turn out being the same (except for the random seed).2. The mpgraph.1 files differ only slightly, except for a few roundoff differences:	new format extra lines: (but not a problem, I would guess)	%%MetaPostSpecials: 2.0 123 1000	%%HiResBoundingBox: -5.66927 -5.66927 359.9991 119.05481	%%MetaPostSpecial: 7 1 1 1 1 0.94118 1 3I had in my .bashrc:CONTEXT_RUBYSCRIPTS=/usr/local/teTeX/share/texmf-local/scripts/context/ruby/export CONTEXT_RUBYSCRIPTSand had CONTEXT_RUBYSCRIPTS in my path.Carefully had the executable and read-allowance bits set on all the ruby scripts.I guess it must have something to do with the ruby scripts, probably MacOSX unique, I fear.Something done differently with regard to the perl scripts perhaps?Taco already hinted at the possibility of some end-of-line problem. Alas, my knowledge of ruby is nonexistent, so I have no idea what and where to look for.I tried hard to find a solution, but I really have no firm idea what could cause these problems.Hans van der Meer ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Calligraphic Font with palatino and euler

2006-06-15 Thread Aditya Mahajan
On Sat, 8 Apr 2006, Aditya Mahajan wrote:

 Hi,
  When I use palatino and euler, I do not get calligraphic font. How
 can I define a typescript to use the calligraphic font from lm.

 This is my setup

 \definetypeface [pal] [rm] [serif] [palatino]
 [default] [encoding=texnansi]

 \definetypeface [pal] [tt] [mono]  [modern]
 [default] [encoding=texnansi,rscale=1.1]

 \definetypeface [pal] [ss] [sans]  [modern]
 [default] [encoding=texnansi,rscale=1.1]

 \definetypeface [pal] [mm] [math]  [euler]
 [euler]   [rscale=1.03]

 \setupbodyfont[pal,10pt]
 \starttext
 ${\cal A}A {\cal B}B$
 \stoptext

I still do not know what is why calligraphic letters do not come out 
correctly with euler, but the following definition works

\usetypescript[palatino] [ec]
\definetypeface [palatino] [mm] [math] [euler] [euler] [rscale=1.03]
\setupbodyfont[palatino,11pt]

\def\mathcal#1{\text{\definedfont[cmsy10]#1\/}}

and then I can use \mathcal{A} etc.

Aditya

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Open Type fonts and Context

2006-06-15 Thread Henning Hraban Ramm
Am 2006-06-12 um 19:39 schrieb John R. Culleton:

 It may be attributable to the fact that texfont tries to update
 maps that are particular to my login name rather than the
 original ones in /usr/local/texlive/2005/texmf
 I tried specifying the /usr/local/texlive/2005/texmf path but
 that doesn't help either.

Maybe you must enable your local (user) texmf tree in texm.cnf.
Additionally I must always sudo texhash, because the main texmf  
trees are owned by root.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Using metapost figures in context (offlist)

2006-06-15 Thread Hans Hagen
Aditya Mahajan wrote:
 On Tue, 13 Jun 2006, Hans Hagen wrote:

 Aditya Mahajan wrote:

  n lines deleted

 I added to texexec:

 texexec --mpgraphic somefile.mp

 which will run mp and make a pdf file.

 Something is wrong with the new beta. I downloaded the zip and 
 regenerated the formats, but only metafun format is created. I am 
 attaching the output of

 texmfstart --verbose texexec --verbose --make --all
actually, the problem is that the latest pdfetex is not called pdftex; can you 
remove all traces or pdftex[.exe] in your bin path and see what happens then? 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Using metapost figures in context (offlist)

2006-06-15 Thread Aditya Mahajan
On Wed, 14 Jun 2006, Hans Hagen wrote:

 Aditya Mahajan wrote:
 On Tue, 13 Jun 2006, Aditya Mahajan wrote:
 
 On Tue, 13 Jun 2006, Hans Hagen wrote:
 
 Aditya Mahajan wrote:
 On Tue, 13 Jun 2006, Hans Hagen wrote:
 
 Aditya Mahajan wrote:
 On Tue, 13 Jun 2006, Hans Hagen wrote:
 
 Aditya Mahajan wrote:
 
  n lines deleted
 
 I added to texexec:
 
 texexec --mpgraphic somefile.mp
 
 which will run mp and make a pdf file.
 
 Something is wrong with the new beta. I downloaded the zip and 
 regenerated the formats, but only metafun format is created. I am 
 attaching the output of
 
 texmfstart --verbose texexec --verbose --make --all
 actually, the problem is that the latest pdfetex is not called pdftex; 
 can you remove all traces or pdftex[.exe] in your bin path and see what 
 happens then?
 
 No pdftex is in the path.
 
 I call context by using
 set PATH=E:\Ruby\bin
 call E:\isoimage\usr\local\context\tex\setuptex.bat 
 E:\isoimage\usr\local\context\tex
 
 so there should not be any mismatched executables.
 ah ... typo in base/tex.rb:

   @@pdftex = 'pdftex' # new default, pdfetex is gone

   ENV['PATH'].split(File::PATH_SEPARATOR).each do |p|
^^
 
 Can you test that?
 
 Yes, this works. The formats are generated correctly. However,
 texmfstart texexec --mpgraphic file.mp
 
 does not give me a pdf file. I do understand why this is happening. I will 
 dig into it a bit more and see what is going wrong.
 
 In tex.rb

  def processmpgraphic
  ...
  if data =~ /output files written\:\s*(.*)$/mois then
  
 
 However, if the mp file contains only one figure, the output in the log is
 
 1 output file written: figures-axis.1
 
 Notice /file/ instead of /files/. So the regex should be changed according. 
 Then everything works.

   if data =~ /output files* written\:\s*(.*)$/mois then

That does the trick. --mpgraphic is working correctly. However, there 
is no message on the console saying that a pdf file is created. Can 
you add
   report ({#name}.#{number} converted to #{filename}.#{number}.pdf)
and
  report (#{name}.#{number} converted to #{filename}.pdf)

after File.silentrename lines.

Aditya

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Using metapost figures in context

2006-06-15 Thread Aditya Mahajan
On Tue, 13 Jun 2006, Hans Hagen wrote:

 Aditya Mahajan wrote:
 I have right now kept the command as MPfigure.

 grep MPfigure in  meta-fig -)


Now I am using staticMPfigure. This is the final version

\def\startstaticMPfigure#1#2\stopstaticMPfigure
   {\bgroup
 \setMPrandomseedfalse
 %Otherwise randomseed := number line always differ
 \doifmodeelse{*pdf}
 {\def\executeMPTEX##1%
 {texmfstart --verbose --ifchanged=##1.mp texexec --mpgraphic 
##1.mp}
 \let\executeMPOST=\executeMPTEX}
 {\def\executeMPOST##1%
 {texmfstart --verbose --ifchanged=##1.mp bin:mpost

\ifcase\interactionmode\MPOSTbatchswitch\or\MPOSTnonstopswitch\fi
   \space\ifuseMETAFUNformat \MPOSTformatswitch metafun \fi ##1}
\def\executeMPTEX##1% slower, due to nested texexec call
{texmfstart --verbose --ifchanged=##1.mp texexec
--batch \ifcase\interactionmode --logfile='mptex.log' \fi
--output=\MPOSTdriver\space
\ifuseMETAFUNformat --mpformat=metafun \fi --mptex --nomp 
--once ##1}}
 \def\MPgraphicfile{\jobname-#1}
 \newcount\currentMPgraphic
 \startMPgraphic
   #2
 \stopMPgraphic\egroup\deallocateMPslot\currentMPgraphic}

\def\usestaticMPfigure{\dosingleempty\dousestaticMPfigure}

\def\dousestaticMPfigure[#1]%
   {\doifmodeelse{*pdf}
   {\externalfigure[\jobname-#1.pdf]}
   {\externalfigure[\jobname-#1.1]}}

\starttext

\startstaticMPfigure{circle}
   fill fullcircle scaled 10cm;
\stopstaticMPfigure

\startstaticMPfigure{axis}
   drawarrow (0,0)--(1cm,0) ;
   drawarrow (0,0)--(0,1cm) ;
   label.llft(textext((0,0)) ,origin) ;
\stopstaticMPfigure

\hbox to \hsize  \bgroup
\hss \usestaticMPfigure[circle][width=1cm] \hss 
\usestaticMPfigure[axis] \hss \egroup
\stoptext

Thanks,
Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] keeping output

2006-06-15 Thread Hans van der Meer
This question must have been asked before, but I cannot find it.Running texexec a number of messages flash by:  	error in metapost run : syllabus-s-mpgraph.mp:397Alas, al the intermediate results disappear, especially the mpgraph files.And of the metapost logs also one only survives.How does one preserve all these for debugging purposes? Hans van der Meer ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] [Fwd: Re: Using metapost figures in context]

2006-06-15 Thread Hans Hagen


--

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

---BeginMessage---

Aditya Mahajan wrote:




this feature (but slightly changed) will be available in the next 
release (given that AM will wikify its usage -)


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
-


---End Message---
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Aleph queries

2006-06-15 Thread Duncan Hothersall
Hello all (especially Idris :-) )

Using the fantastic resources from Idris' messages on this list, and the
Aleph page on the Wiki, I have managed to start producing Arabic PDF
output directly from UTF-8 sources using Aleph and dvipdfmx. This is
great, thanks so much.

I have just one or two queries and things I wasn't able to make work. I
hope someone can help.

My test file is here:
http://www.capdm.com/public/context/omarab-queries1.tex
And the output it generates is here:
http://www.capdm.com/public/context/omarab-queries1.pdf


First question - how do I get italic text? The first three paragraphs in
the test are identical content, but the second has {\it ...} around it
and the third has {\bf ...} around it. The third para comes out
perfectly in bold, but the second para looks the same as the first. How
can I get italics?

Second question - that same first para contains 5 ligatures. They don't
seem to match the rest of the font. Is this a set-up issue, or is it the
way the font is designed? If it is a set-up issue, is there a way to fix it?

Third and final question - I inserted a section and two subsections to
demonstrate that the numbering of subsections is left-to-right. How can
I make it right-to-left? (Explanation: the PDF shows section 1, and
then subsections 1-1 and 1-2; reading the numbers from
right-to-left, I need it to show as section 1 and then subsections
1-1 and 2-1. In the subsection the 1 should come first when
reading rtl.)


Thanks very much for any help.

Bests,

Duncan
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] International ConTeXt User Meeting 2007

2006-06-15 Thread Taco Hoekwater


On March 24 and March 25 2007, the first international ConTeXt user
meeting will take place in Epen, The Netherlands.

For those of you who are already familiar with ConTeXt, this meeting is
an excellent opportunity to learn some new tricks, meet fellow users
from the ConTeXt mailing list, talk to developers and hackers, and
promote your feature request list.

If you are not already using ConTeXt, this is the ideal place to
acquaint yourself with our beautiful macro package and meet your
potential new friends.

More information is available on the web site:

   http://context.aanhet.net/epen2007/index.htm

Hope to see you there!

Taco Hoekwater  Hans Hagen

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] textext error

2006-06-15 Thread Taco Hoekwater
Hans van der Meer wrote:
 I am afraid a serious error has been introduced into textext in the last 
 update(s).
 
 This used to work in metapost for typesetting text with a %-sign:
 
 label(textext(66\%), origin);
 
 Now the % somewhere ends a line prematurely because the job aborts with:
 ! mpx file ended unexpectedly.
 
 Can Hans please repair this, suddenly a lot of my typesetting is broken.

Verified.

Thanks for analizing this, I was wondering where those
   ! mpx file ended unexpectedly.
messages came from in a document Mojca sent me.

Taco


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] texmfstart trouble

2006-06-15 Thread Taco Hoekwater
Hans van der Meer wrote:
 2. The mpgraph.1 files differ only slightly, except for a few roundoff 
 differences:
 new format extra lines: (but not a problem, I would guess)
 %%MetaPostSpecials: 2.0 123 1000
 %%HiResBoundingBox: -5.66927 -5.66927 359.9991 119.05481
 %%MetaPostSpecial: 7 1 1 1 1 0.94118 1 3

Believe it or not, but this is a known problem within web2c.
It is triggered by an interaction between the new texexec
and having two different entries in texmf.cnf for Metaposts
memory size, for example like this:

   main_memory.mpost= 50
   main_memory.metafun  = 300

Now, the metafun format is generated as mpost, but the
graphics are created as metafun, and the different memory
sizes make the specials go disappear.

Strangely, I thought Hans and I had fixed by that a few weeks
back by changing the mpost commandlines, but apparently we didn't.

A workaround (while we sort this out) is to make sure that the
.mpost and .metafun settings use the same (highest) number.

Taco


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] extra white in framedtext

2006-06-15 Thread Nikolai Weibull
On 6/12/06, Hans Hagen [EMAIL PROTECTED] wrote:

  |� �� �� �� �� �� �� �|� with \null in first line
  |� �� �first line� � �|
  |� �� �second line � �|
  ---
 
  ---
  |� �� �first line� � �|� without \null in first line
  |� �� �second line � �|
  ---

Is it only me, or do you really need to do somethnig about your
encoding settings, Hans?

  nikolai
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] ConTeXt 2006.06.09 released

2006-06-15 Thread Taco Hoekwater
Hello all,

I am pleased to announce that the new ConTeXt release from Hans Hagen
can be downloaded as of now from the Pragma ADE website or one of its
mirrors.

The current release has version 2006.06.09, and it is on the wiki as

http://wiki.contextgarden.net/Context_2006.06.09

This is a relatively minor release, with some optimizations and
a few bugfixes.

More importantly, there is a new beta/latest, with support for
the pdftex 1.40 releases (currently in beta).

Happy TeXing,

Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Math: Matrix question

2006-06-15 Thread Tobias Burnus
Hello,

maybe someone has an idea how to typeset the following

c d
 a [E F]
 b [G H]

Where EFGH is a matrix surrounded by ( ) and with a b c d I want to
label the columns and rows.
I especially struggle with aligning c and d and having the parenteses.

Any ideas are highly welcome.

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] CoNTeXt on Mac OS X with iinstaller still broken

2006-06-15 Thread Taco Hoekwater


Matthias Weber wrote:
 Dear Mac-ConTeXt users (and other experts),
 
 I typically upgrade my least used Mac (my laptop)  to the newest  
 ConTeXt release first, and
 only go ahead with the desktop when my projects compile fine.
 Otherwise, I usually wait until the more proficient users have sorted  
 things out.

Cutpaste from an old reply by Hans himself:

 hm, this is due to the fact that context finds the dvipdfmx map files 
 first [maybe it's time to get rid of map files altogether and switch to 
 maplines]; either delete the files from the dvipdfmx pathm, or adapt 
 yout texmf.cnf file
 
 this is what it should be
 
 TEXFONTMAPS.dvipdfm  = .;$TEXMF/fonts/map/{dvipdfm,dvips,}//
 TEXFONTMAPS.dvipdfmx = .;$TEXMF/fonts/map/{dvipdfm,dvips,}//
 TEXFONTMAPS.pdftex   = .;$TEXMF/fonts/map/{pdftex,dvips,}//
 TEXFONTMAPS.pdfetex  = .;$TEXMF/fonts/map/{pdftex,dvips,}//
 TEXFONTMAPS.xetex= .;$TEXMF/fonts/map/{xetex,pdftex,dvips,}//
 TEXFONTMAPS.dvips= .;$TEXMF/fonts/map/{dvips,pdftex,}//
 
 TEXFONTMAPS   = 
 .;$TEXMF/fonts/map/{$progname,pdftex,dvips,}//;$TEXMF/{$progname,pdftex,dvips}/{config,}//
 

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] extra white in framedtext

2006-06-15 Thread Hans Hagen
Nikolai Weibull wrote:
 On 6/12/06, Hans Hagen [EMAIL PROTECTED] wrote:

   
 |� �� �� �� �� �� �� �|� with \null in first line
 |� �� �first line� � �|
 |� �� �second line � �|
 ---

 ---
 |� �� �first line� � �|� without \null in first line
 |� �� �second line � �|
 ---
   

 Is it only me, or do you really need to do somethnig about your
 encoding settings, Hans?
   
i dunno, this what i got; normally utf8 works ok; i use thunderbird 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Ugly hack for multiple MSWord docs.

2006-06-15 Thread Hans Hagen
John R. Culleton wrote:
 Someday there will be an elegant solution to the MSWord to
 Context problem. For now there is my ugly hack as described here.
   
maybe the word xml output, since that can be parsed

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] keeping output

2006-06-15 Thread Hans Hagen
Hans van der Meer wrote:
 This question must have been asked before, but I cannot find it.

 Running texexec a number of messages flash by:�

 � error in metapost run : syllabus-s-mpgraph.mp:397

 Alas, al the intermediate results disappear, especially the mpgraph files.
 And of the metapost logs also one only survives.

 How does one preserve all these for debugging purposes?
some data is saved in a copy of the log file; alternatively, process the mp 
file independently: 

texexec --mptex somefile-mpgraph.mp 

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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Another 2 index bugs

2006-06-15 Thread Richard Gabriel




Hello Hans,I've just noticed another two bugs in index sorting.1. Numbers are sorted under A2. Symbols are sorted under the first letter which follows.See the attached test file.Both these issues are independent on language and on the expansion type.Proposed solution:1. Sort numbers into separate divisions2. Sort symbols to a special division called "Symbols"Thanks,Richard

test.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Math: Matrix question

2006-06-15 Thread Otared Kavian
Hi Tobias,

Probably it is possible to do want with mathalign stuff developped in  
ConTeXt, but the following gives a reasonable result (using only  
Plain TeX commands...):

$$\eqalign{
\matrix{ \hphantom{\left({E}\right.} c  d \cr} \cr
\matrix{
a\cr
b\cr}\; \pmatrix{
E  F \cr
G  H \cr} \cr
}$$

\bye

Best regards: OK

On 15 juin 2006, at 13:30, Tobias Burnus wrote:

 Hello,

 maybe someone has an idea how to typeset the following

 c d
  a [E F]
  b [G H]

 Where EFGH is a matrix surrounded by ( ) and with a b c d I  
 want to
 label the columns and rows.
 I especially struggle with aligning c and d and having the parenteses.

 Any ideas are highly welcome.

 Tobias
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Specifying maximum width of a frame

2006-06-15 Thread Hans Hagen
Aditya Mahajan wrote:
 Hi,

   I want to specify the maximum width of a frame. If the size of the 
 box is smaller than the maximum width, I want a tight box. Something 
 like

 \frame[maxwidth=5cm,align=middle]{Small} should give

 +-+
 |small|
 +-+

 while \frame[maxwidth=5cm,align=middle]{A very very long line that is 
 split at 5cm} should give

 +--+
 |   A very very long   |
 |  line that is split  |
 |  at 5cm  |
 +--+

 Is there something builtin that does this, or do I need to play with 
 scratchbox cum suis.
   
that's a braindead extension; however, it will be 'autowidth=force' (default 
value is yes) because otherwise we get conflicts with existing maxwidth usage 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Math: Matrix question

2006-06-15 Thread Tobias Burnus
Otared Kavian schrieb:
 Hi Tobias,

 Probably it is possible to do want with mathalign stuff developped in  
 ConTeXt, but the following gives a reasonable result (using only  
 Plain TeX commands...):
   
Well, this was the work-around I used, however, if I replace E by
, then the alignment gets lost.
(I worked around with \,\\quad\qquad etc., but this is not so nice.)

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Math: Matrix question

2006-06-15 Thread Aditya Mahajan
On Thu, 15 Jun 2006, Tobias Burnus wrote:

 Hello,

 maybe someone has an idea how to typeset the following

c d
 a [E F]
 b [G H]

 Where EFGH is a matrix surrounded by ( ) and with a b c d I want to
 label the columns and rows.
 I especially struggle with aligning c and d and having the parenteses.

Plain tex provides \bordermatrix. Not configurable, but will suit your 
needs.

\startformula
\bordermatrix{
   a  b  c  d \cr
   e  f  g  h \cr
   i  j  k  l \cr}
\stopformula

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] mathsize

2006-06-15 Thread Taco Hoekwater


Hans van der Meer wrote:
 When doing inline math I see that the mathsize does adapt when \tfa, 
 \tfb, etc are used, but not for \tfx and \tfxx. That seems strange to 
 me, because in the manual in the font table \tfx \tfxx \tfa etc. are 
 advertised as equivalent operations. It also accounts for a lot more 
 typing (and mistakes).
 
 Why is the behaviour different? And if it is not on purpose, can it be 
 remedied then?

   \starttext
   {\tfx\dosetcurrentfontsize{x} tfx 123 and \$ tfx: $123$ \$} }
   \stoptext

But I am not sure there is not more to it than that.

Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] CoNTeXt on Mac OS X with iinstaller still broken

2006-06-15 Thread Matthias Weber
Thanks Taco (and Hans),

replacing the

TEXFONTMAPS =

line

in /usr/local/teTeX/texmf.cnf

by all the stuff below does indeed work (even with today's beta). Is  
there an incantation I could use
so that Gerben's iinstaller does this automatically? I want to talk  
somebody into using ConTeXt
(on a Mac), and this person is even less educated in this kind of  
surgery than I am.

Matthias

On Jun 15, 2006, at 8:24 AM, Taco Hoekwater wrote:



 Matthias Weber wrote:
 Dear Mac-ConTeXt users (and other experts),

 I typically upgrade my least used Mac (my laptop)  to the newest
 ConTeXt release first, and
 only go ahead with the desktop when my projects compile fine.
 Otherwise, I usually wait until the more proficient users have sorted
 things out.

 Cutpaste from an old reply by Hans himself:

 hm, this is due to the fact that context finds the dvipdfmx map files
 first [maybe it's time to get rid of map files altogether and  
 switch to
 maplines]; either delete the files from the dvipdfmx pathm, or adapt
 yout texmf.cnf file

 this is what it should be

 TEXFONTMAPS.dvipdfm  = .;$TEXMF/fonts/map/{dvipdfm,dvips,}//
 TEXFONTMAPS.dvipdfmx = .;$TEXMF/fonts/map/{dvipdfm,dvips,}//
 TEXFONTMAPS.pdftex   = .;$TEXMF/fonts/map/{pdftex,dvips,}//
 TEXFONTMAPS.pdfetex  = .;$TEXMF/fonts/map/{pdftex,dvips,}//
 TEXFONTMAPS.xetex= .;$TEXMF/fonts/map/{xetex,pdftex,dvips,}//
 TEXFONTMAPS.dvips= .;$TEXMF/fonts/map/{dvips,pdftex,}//

 TEXFONTMAPS   =
 .;$TEXMF/fonts/map/{$progname,pdftex,dvips,}//;$TEXMF/ 
 {$progname,pdftex,dvips}/{config,}//


 Cheers, Taco
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Aleph queries

2006-06-15 Thread Idris Samawi Hamid
Hi Duncan,

On Thu, 15 Jun 2006 02:30:15 -0600, Duncan Hothersall [EMAIL PROTECTED] wrote:

 Using the fantastic resources from Idris' messages on this list, and the
 Aleph page on the Wiki, I have managed to start producing Arabic PDF
 output directly from UTF-8 sources using Aleph and dvipdfmx. This is
 great, thanks so much.

Glad you liked it:-)

 I have just one or two queries and things I wasn't able to make work. I
 hope someone can help.

 My test file is here:
 http://www.capdm.com/public/context/omarab-queries1.tex
 And the output it generates is here:
 http://www.capdm.com/public/context/omarab-queries1.pdf


 First question - how do I get italic text? The first three paragraphs in
 the test are identical content, but the second has {\it ...} around it
 and the third has {\bf ...} around it. The third para comes out
 perfectly in bold, but the second para looks the same as the first. How
 can I get italics?

There is no italic font, only regular and bold, so \it just maps to the  
default regular font.

 Second question - that same first para contains 5 ligatures. They don't
 seem to match the rest of the font. Is this a set-up issue, or is it the
 way the font is designed? If it is a set-up issue, is there a way to fix  
 it?

Both :-) You could edit the cuni2oar otp (and recompile it) so that it  
ignores the ligatures you don't like, or you could put a kashidah between  
the two letters whose ligature you want to break. Better is to define an  
empty kashidah so that you can manually break the ligature without  
stretching the word. I'll look into this in the next few days (busy right  
now) if you remind me-)

 Third and final question - I inserted a section and two subsections to
 demonstrate that the numbering of subsections is left-to-right. How can
 I make it right-to-left? (Explanation: the PDF shows section 1, and
 then subsections 1-1 and 1-2; reading the numbers from
 right-to-left, I need it to show as section 1 and then subsections
 1-1 and 2-1. In the subsection the 1 should come first when
 reading rtl.)

Add \reversesectionnumberstrue to your Arabic definition:

\def\ArabicUTF{\ArabicDirGlobal\usefiltersequence[UTFArabic]
 \reversesectionnumberstrue\switchtobodyfont[omarb]}

Ideally when one selects global RL this should happen automatically. This  
is being planned for the future :-)

Best
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Ugly hack for multiple MSWord docs.

2006-06-15 Thread Bob Kerstetter

On Jun 13, 2006, at 5:29 PM, John R. Culleton wrote:

 Frequently I find myself in the position of needing to combine
 several MSWord and/or rtf documents into a single file for either
 pdftex or Context. I have settled on this strategy.



 snip

 Someday there will be an elegant solution to the MSWord to
 Context problem. For now there is my ugly hack as described here.


MEMORY DISCLAIMER: In these examples none of the function names are  
really what they are in Word or VB for Word. The functions are  
available in VB for Word, but it's been some time since I've done  
this, i don't have the macros these days and don't really know the  
real names anymore. So they are just representative of the functions  
available.

STYLE COMMENT: These methods should work even if styles are not being  
used. For example the primary heading may be Arial, 18pt, bold and  
not the Heading 1 style. That's okay because you can search for font  
attributes in Word. If the document is not consistent, well, convert  
to text and markup manually. :)



MORE OR LESS CURRENT EXAMPLE

It's not particularly elegant, but I used to convert from MSWord to  
whatever by writing VB find/replace macros based on styles and  
formatting. In newer versions of Word (at least on OS X), Replace has  
a function that includes what you found, plus you can add other text.

Example:

Find: Heading 1%find stuff formatted with heading 1 style

Replace: \subject{WhatItFound}   %replaces what it found and  
wraps \subject{} around it.


Because Word stores its formatting in the line feed/carriage return,  
for paragraph styles you end up with something like this:

\subject{Some TeX
}

So my last VB find/replace removes the carriage returns globally:

Find: ^p}
Replace: }


When done with all find/replace functions, save as text.

That's it.


Not being much of a script writer, I record the first find/replace,  
then edit the macro and duplicate the find/replace as needed.

The VB find/replace function has options for starting at the top of  
the file, replacing globally, continuing if nothing is found and that  
sort of thing.

The macro looks something like this:

Find: Heading 1%find stuff formatted with heading 1 style
Replace: \subject{WhatItFound}   %replaces what it found and  
wraps \subject{} around it.

Find: Heading 2%find stuff formatted with heading 2 style
Replace: \subsubject{WhatItFound}   %replaces what it found and  
wraps \subsubject{} around it.

Find: Heading 3%find stuff formatted with heading 3 style
Replace: \subsubject{WhatItFound}   %replaces what it found and  
wraps \subsubsubject{} around it.


The above method uses global replacement and it's pretty zippy, for  
Word.



ANOTHER OLDER METHOD

Another method I used before Find/Replace had the WhatItFound  
function was to put the found string into a variable, then use that  
variable for the replacement text, plus any TeX control sequences  
wrapped around it.

In summary:

1. Put your finds and replaces in an array:
ArrayFind(0) Heading 1; ArrayReplace(0) \subject{
ArrayFind(1) Heading 2; ArrayReplace(1) \subsubject{
ArrayFind(2) Heading 3; ArrayReplace(2) \subsubsubject{
Note the closing } is missing. It is hardcoded in the replacement code.

2. Find the first array item starting from the top of the document.  
This highlights the text in Word:
Find = $ArrayFind(n)

3. Put the highlighted text into a variable. Maybe you can even strip  
the CR's from formatted pagagraphs:
stripCarriageReturns($FoundThisStuff) = CurrentSelection


4. Put the variable and the first replace item in the Word Replace  
function. Note the hard coded closing bracket. And the CR assuming  
you stripped the CR in step 3:
Replace = $ArrayReplace(n)+$FoundThisStuff+}+CR

5. Repeatedly use Replace and Find Next until nothing else is found.
Replace and Find Next
.
.
.

6. Repeatedly find the next array item to the end of the array.
n = n + 1
Find = $ArrayFind(n)
.
.
.

7. Save the file as text.
FilesSaveAs using the text option


Hum. After thinking about this and typing it in, maybe I should still  
use the OLD method. It appears to be a little easier to manage. Maybe  
a lot easier.
Oh well, not a real programmer.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Ugly hack for multiple MSWord docs.

2006-06-15 Thread John R. Culleton
On Thursday 15 June 2006 08:50, Hans Hagen wrote:
 John R. Culleton wrote:
  Someday there will be an elegant solution to the MSWord to
  Context problem. For now there is my ugly hack as described here.

 maybe the word xml output, since that can be parsed

 Hans
Interesting suggestion. I don't have a copy of MSWord. And my
clients are naive so that asking them to save in exotic formats
is likely to be unproductive. 

Open Office does not save as xml. Abiword, however does. In a
simplistic test case (Now is the time for all good men.)
Abiword saved the document as xml with a little coaxing and
texexec compiled it clean. So at least there is something there
to experiment with. 

Next I will try a real MSWord document, save it as xml from
Abiword, and see what Context does with it.

One question: How do I mix in the necessary Context commands such
as papersize, font selection etc.? What are the rules and no-nos
for blending Context commands into an xml document?

-- 
John Culleton
Books with answers to marketing and publishing questions:
http://wexfordpress.com/tex/shortlist.pdf

Book coaches, consultants and packagers:
http://wexfordpress.com/tex/packagers.pdf

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Ugly hack for multiple MSWord docs.

2006-06-15 Thread Hans Hagen
John R. Culleton wrote:
 On Thursday 15 June 2006 08:50, Hans Hagen wrote:
   
 John R. Culleton wrote:
 
 Someday there will be an elegant solution to the MSWord to
 Context problem. For now there is my ugly hack as described here.
   
 maybe the word xml output, since that can be parsed

 Hans
 
 Interesting suggestion. I don't have a copy of MSWord. And my
 clients are naive so that asking them to save in exotic formats
 is likely to be unproductive. 

 Open Office does not save as xml. Abiword, however does. In a
   
hm, open offices uses xml as storage format, just save in oo format and 
unzip the file and you will end up with xml files

(however, the xml is typical office xml, complete with tab elements that 
spoil the idea)
 One question: How do I mix in the necessary Context commands such
 as papersize, font selection etc.? What are the rules and no-nos
 for blending Context commands into an xml document?
   
just set up a style 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] metafun color broken?

2006-06-15 Thread Hans van der Meer
After posting this problem I did probe a lot further in this and a  
similar problem.
As I reported shortly, the problem goes away when solely replacing in  
supp-mps.tex the line
\ifx\TEXEXECcommand \undefined \def\TEXEXECcommand{texmfstart  
texexec} \fi
by
\ifx\TEXEXECcommand \undefined \def\TEXEXECcommand{texexec} \fi
This gives me the impression it might not be in context itself,  
especially since to my (inexperienced) eye there are no or few  
changes between the working and nonworking versions that might  
explain the problem.
It might be the change from the perl to the ruby scripts with a  
problem in one of the latter.

I expect Hans or Taco to react soon with there usual speed and will  
await for their comments first.

Hans van der Meer


On Jun 15, 2006, at 17:52, Mojca Miklavec wrote:

 Replying off-list since I have no place to test anything and no  
 time righ now:

 I know that Hans has played with transparency at the beginning of May
 in order to enable it in XeTeX (but that should happen/break already
 earlier then), but I can't help you any further. Normar with color
 transparent worked a couple of days ago as far as I can remember, but
 I might have had an older version installed (from May).


 However: I would like to ask you to commit such examples (you have
 much more bug reports everywhere) to contexttest suite, see

I usually do this when in doubt if my code is right.
But in this case formerly perfectly working code is suddenly broken.
And of course I need to run my production and development runs on my  
own machine, so I have to solve it for that one.

 http://wiki.contextgarden.net/Test.

 Mojca


 On 6/13/06, Hans van der Meer  wrote:

 I used to draw in transparent color in MetaFun with:

newinternal tfill_mode; tfill_mode := 1; % transparency mode  
 for inside
newinternal tfill_fact; tfill_fact := 1; % transparency factor  
 for inside
def withFillColor = withcolor transparent(tfill_mode, tfill_fact,
 fillcolor_) enddef;
fill somepath withFillColor;

 Suddenly (since the june update I guess) this fails.
 Because

fill somepath withcolor fillcolor_;

 is still working I wonder if something has done to this transparency
 business.
 If there was a change, why? It brings me trouble.


 Hans van der Meer



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] metafun color broken?

2006-06-15 Thread Taco Hoekwater

Hi Hans,

Hans van der Meer wrote:
 
 I expect Hans or Taco to react soon with there usual speed and will  
 await for their comments first.

Perhaps you missed the post below. The current problem is just
a different symptom of the same problem.

Greetings, Taco

Taco Hoekwater wrote:
  Hans van der Meer wrote:
 
  2. The mpgraph.1 files differ only slightly, except for a few roundoff
  differences:
  new format extra lines: (but not a problem, I would guess)
  %%MetaPostSpecials: 2.0 123 1000
  %%HiResBoundingBox: -5.66927 -5.66927 359.9991 119.05481
  %%MetaPostSpecial: 7 1 1 1 1 0.94118 1 3
 
 
  Believe it or not, but this is a known problem within web2c.
  It is triggered by an interaction between the new texexec
  and having two different entries in texmf.cnf for Metaposts
  memory size, for example like this:
 
main_memory.mpost= 50
main_memory.metafun  = 300
 
  Now, the metafun format is generated as mpost, but the
  graphics are created as metafun, and the different memory
  sizes make the specials go disappear.
 
  Strangely, I thought Hans and I had fixed by that a few weeks
  back by changing the mpost commandlines, but apparently we didn't.
 
  A workaround (while we sort this out) is to make sure that the
  .mpost and .metafun settings use the same (highest) number.
 
  Taco
 
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] metafun color broken?

2006-06-15 Thread Hans Hagen
Taco Hoekwater wrote:
 Hi Hans,

 Hans van der Meer wrote:
   
 I expect Hans or Taco to react soon with there usual speed and will  
 await for their comments first.
 

 Perhaps you missed the post below. The current problem is just
 a different symptom of the same problem.
   

part of the problem is that when no progname is given, the format should 
determine the progname (at least that was the case soem tiem ago) but 
then, mpost is behaving weird with respect to mem vars anyway; the 
current (context) approach is 'use metafun everywhere a prognam eis 
needed' [a problem, at least in the past, is that there were tetex 
versions with no metafun entries in texmf.cnf so we went back to mpost 
as progname for a while]

 Greetings, Taco

 Taco Hoekwater wrote:
   Hans van der Meer wrote:
  
   2. The mpgraph.1 files differ only slightly, except for a few roundoff
   differences:
   new format extra lines: (but not a problem, I would guess)
   %%MetaPostSpecials: 2.0 123 1000
   %%HiResBoundingBox: -5.66927 -5.66927 359.9991 119.05481
   %%MetaPostSpecial: 7 1 1 1 1 0.94118 1 3
  
  
   Believe it or not, but this is a known problem within web2c.
   It is triggered by an interaction between the new texexec
   and having two different entries in texmf.cnf for Metaposts
   memory size, for example like this:
  
 main_memory.mpost= 50
 main_memory.metafun  = 300
  
   Now, the metafun format is generated as mpost, but the
   graphics are created as metafun, and the different memory
   sizes make the specials go disappear.
  
   Strangely, I thought Hans and I had fixed by that a few weeks
   back by changing the mpost commandlines, but apparently we didn't.
  
   A workaround (while we sort this out) is to make sure that the
   .mpost and .metafun settings use the same (highest) number.
  
   Taco
  
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
   


-- 

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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] metafun color broken?

2006-06-15 Thread Hans Hagen
Hans van der Meer wrote:
 I expect Hans or Taco to react soon with there usual speed and will  
 await for their comments first.
   
as taco mentioned, it's in the mem values; mpost does not store them with the 
format (in the past this even could give segfaults and worse); tex does not 
have this problem 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] CoNTeXt on Mac OS X with iinstaller still broken

2006-06-15 Thread Hans Hagen
Matthias Weber wrote:
 Thanks Taco (and Hans),

 replacing the

 TEXFONTMAPS =

 line

 in /usr/local/teTeX/texmf.cnf

 by all the stuff below does indeed work (even with today's beta). Is  
 there an incantation I could use
 so that Gerben's iinstaller does this automatically? I want to talk  
 somebody into using ConTeXt
 (on a Mac), and this person is even less educated in this kind of  
 surgery than I am.
   
Just tell Gerben what is needed and what works ... this map directive has to be 
set anyway (it was discussed soem time ago with KB and it will / has ended up 
in tex live already) 

gerben: these lines make running multiple tex engines in parallel less 
troublesome (esp since xetex now provides two backends) 

TEXFONTMAPS.dvipdfm  = .;$TEXMF/fonts/map/{dvipdfm,dvips,}//
TEXFONTMAPS.dvipdfmx = .;$TEXMF/fonts/map/{dvipdfm,dvips,}//
TEXFONTMAPS.pdftex   = .;$TEXMF/fonts/map/{pdftex,dvips,}//
TEXFONTMAPS.pdfetex  = .;$TEXMF/fonts/map/{pdftex,dvips,}//
TEXFONTMAPS.xetex= .;$TEXMF/fonts/map/{xetex,pdftex,dvips,}//
TEXFONTMAPS.dvips= .;$TEXMF/fonts/map/{dvips,pdftex,}//

is a more verbose variant of: 

TEXFONTMAPS   = .;$TEXMF/fonts/map/{$progname,pdftex,dvips,}//

(given that the prognames are set) 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Ugly hack for multiple MSWord docs.

2006-06-15 Thread John R. Culleton
On Thursday 15 June 2006 13:55, Hans Hagen wrote:
 John R. Culleton wrote:
  On Thursday 15 June 2006 08:50, Hans Hagen wrote:
  John R. Culleton wrote:
  Someday there will be an elegant solution to the MSWord to
  Context problem. For now there is my ugly hack as described here.
 
  maybe the word xml output, since that can be parsed
 
  Hans
 
  Interesting suggestion. I don't have a copy of MSWord. And my
  clients are naive so that asking them to save in exotic formats
  is likely to be unproductive.
 
  Open Office does not save as xml. Abiword, however does. In a

 hm, open offices uses xml as storage format, just save in oo format and
 unzip the file and you will end up with xml files

 (however, the xml is typical office xml, complete with tab elements that
 spoil the idea)

The abiword xml is neat and parsimonious thus:

--

!DOCTYPE book PUBLIC -//OASIS//DTD DocBook XML V4.2//EN
http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd;

book
!-- 

 
--
!-- This DocBook file was created by AbiWord.  
--
!-- AbiWord is a free, Open Source word processor. 
   --
!-- You may obtain more information about AbiWord at www.abisource.com 
   
--
!-- 

 
--


chapter
title/title
section role=unnumbered
title/title
paraNow is the time for all good men./para
/section
/chapter
/book


The Open Office file unzipped is a lot more verbose and  a lot
less readable. There are five files in fact. The file content.xml
will in fact compile correctly via texexec and yield the expected
result. The character count in that file alone is three times
that of the corresponding Abiword xml output shown above.  

The experiments continue...
-- 
John Culleton
Books with answers to marketing and publishing questions:
http://wexfordpress.com/tex/shortlist.pdf

Book coaches, consultants and packagers:
http://wexfordpress.com/tex/packagers.pdf

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] error? in ConTeXt+XeTeXt

2006-06-15 Thread 박내엽(NY Park)









HiI using ConTeXt+XeTeX for utf-8After XeTeX new version installedtexexec -xtx below\starttext1122 $times$ 121\stoptextand error times symbol with message*** fontmap psfonts.map not found; texmf.cnf may be broken*** font ec-lmr12 not found in psfonts.map or host system; will substitute Helvetica glyphs*** fontmap psfonts.map not found; texmf.cnf may be broken*** font cmsy10 not found in psfonts.map or host system; will substitute Helvetica glyphsBut if without -xtx complile (only ConTeXt ) ,OKThank you









NAVER Korea's No.1 search portal







___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context