Re: [NTG-context] typesetting in Cyrillic with Times

2006-12-17 Thread gnwiii
On 12/16/06, Vyatcheslav Yatskovsky [EMAIL PROTECTED] wrote:

 How can I typeset in Cyrillic while using the Adobe Times or Utopia fonts? I
 don't believe that they contain no cyrillic glyphs. It is very disappointing
 to be limited to weird-looking computer modern.

I don't believe that they contain no cyrillic glyphs. can be taken as:

1.  I do believe they contain some cyrillic glyphs, or
2.  I believe they contain no cyrillic glyphs.

In fact, while statement 2. may be true for the origial Adobe fonts,
many systems can produce Cyrillic glyphs when asked for Times
(because they substitute an augmented version of a free URW font), so
statement 1 may also be close to the truth.

 (I work with MikTeX).

I don't know about Utopia, but for the LaserWriter 35 fonts, most
free software actually uses URW fonts that have been scaled so the
metrics match the real Adobe fonts.   As well, many additional glyphs
have been added to the URW fonts used, e.g., for linux distros that
want to support more languages.   A modern TeX system should be able
to typeset Cyrillic with the URW font that resembles Adobe Times (and
may even call this Times). CTAN, however, has the original URW fonts
(lacking the added glyphs commonly found on linux), so this route
probably isn't widely used.  It should also be possible, even
straightforward, to install the fonts and supporting files from linux
to a local texmf tree for use with MikTeX.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] context under miktex (2)

2006-11-27 Thread gnwiii
On 11/27/06, Hans Hagen [EMAIL PROTECTED] wrote:
 [EMAIL PROTECTED] wrote:
  Thanks Hans, for your quick reply.
 
  My MikTeX installation contains a natural.tcx file.
  I am afraid that I do not quite grasp the rest of your reply. What do you
  suggest me to do?
 
 ask christian schenk to either obey or ignore the --8bit flag

Already done for ver 2.5 during pre-release testing (see miktex bug: [
1532430 ] 2.5rc1 tex.rb uses pdfetex --8bit).  Don't use MikTeX 2.4.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new bib module

2006-11-05 Thread gnwiii
On 11/4/06, Taco Hoekwater [EMAIL PROTECTED] wrote:
 Thomas A. Schmitz wrote:
  On Nov 4, 2006, at 8:28 PM, [EMAIL PROTECTED] wrote:
 
 
 $ texmfstart texexec try-ctx
 [...]
 Completed box being shipped out [1.1]
 Memory usage before: 1751690230; after: 397690074; still
 untouched: 939301
 title   : - References
 )
 ! Incomplete \iffalse; all text was ignored after line 23.
 inserted text
 \fi
 * try-ctx.tex
 emergencyend
 ?
 
 
 
  I got the same error; I think a \fi is missing in line 935?
 

 Absolutely correct, sorry again. Not my best day, this.

 New version uploaded

Now I get (running on linux):

$ texmfstart texexec try-ctx texmfstart.log 21
[EMAIL PROTECTED] bibtex]$ grep bibtex texmfstart.log
publications: file try-ctx.bbl not found, waiting for bibtex
TeXUtil | running bibtex\ try-ctx
sh: bibtex try-ctx: command not found
publications: file try-ctx.bbl not found, waiting for bibtex
publications: file try-ctx.bbl not found, waiting for bibtex
[EMAIL PROTECTED] bibtex]$ bibtex try-ctx
This is BibTeX, Version 0.99c (Web2C 7.5.5)
The top-level auxiliary file: try-ctx.aux
The style file: cont-no.bst
Database file #1: xampl.bib

It seems that linux looks for the program bibtex try-ctx due to the
escaped space.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new bib module

2006-11-05 Thread gnwiii
On 11/5/06, Taco Hoekwater [EMAIL PROTECTED] wrote:
 [EMAIL PROTECTED] wrote:
 
  It seems that linux looks for the program bibtex try-ctx due to the
  escaped space.

 Never give up, never surrender!

 (new release uploaded)

Thanks.  If you haven't had days like that you haven't done enough
programming yet.

I've already tested

\expanded{\installprogram{\@@pbbibtex\ \jobname --
\expanded{\installprogram{\@@pbbibtex\space\jobname

and it works for me with the defaults and with

\setupbibtex[database=xampl,bibtex=bibtex8]

on linux, but it will be a couple weeks before I'm near Win32 long
enough for further tests.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Specifying BibTeX engine

2006-11-04 Thread gnwiii
On 11/4/06, Philipp Reichmuth [EMAIL PROTECTED] wrote:
 Hi,

 texexec has been doing the necessary BibTeX calls for some time now, but
 is there a way to configure which BibTeX engine is being called?  I am
 using BibTeX 8 (because of Unicode in my bibliography) and have been
 renaming the executable so far, but it seems there should be a better way.

I've been editing the installprogram line found with:

 $ grep bibtex $(kpsewhich t-bib.tex)
%D \item bibtex is now registered as a program to be run by texexec (8/8/2006)
%D \item support mlbibtex
2: file -- not found, waiting for bibtex
\def\setupbibtex{\dosingleempty\dosetupbibtex}
\def\dosetupbibtex[#1]%
 \installprogram{bibtex \jobname}}}
%D This is the result of bibtex's `language' field.

to replace bibtex with ctxbibtex, which is a shell script I can edit
to use bibtex8, etc. with appropriate arguments (e.g., for very
large .bib files) as well as encoding tricks.  A dirty hack is to put an

   \installprogram{ctxbibtex \jobname}}}

line in your file (after the other setup).  The job runs bibtex and
then ctxbibtex, so you end up with the results of whatever is in your
script.
In MiKTeX-2.5 this works using ctxbibtex.cmd scripts.

 (Incidentally, I've been using a Python script to convert BibTeX files
 between Unicode and {\=a}-style accent notation and am currently
 thinking of putting in ConTeXt {\adiaeresis}-style accents as well;
 would this be of interest to anyone?)

I use GNU recode for this, but not with ConTeXt, where
\enableregime[utf] has been working with my utf8 bibliography, so
I haven't needed ConTeXt {\adiaeresis}-style accents.  My main concern
is searchable .pdf files, where the default Adobe Reader configuration
at work (Win32) seems to use plain old a in searches when I enter á,
etc. (search for xáy finds xay, xày, etc.).

I'd prefer to see a context encoding added to GNU recode for the
benefit of future archeologists trying to decipher ancient documents.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new bib module

2006-11-04 Thread gnwiii
On 11/4/06, Taco Hoekwater [EMAIL PROTECTED] wrote:
 Thomas A. Schmitz wrote:
  Thanks Taco! Right now, I get a 404 error when I try to download.

 Sorry, re-uploaded (I gave the wrong revision id). Should be ok now.

I was able to download the new version, but it is failing on the simple
example document from the wiki (I called it try-ctx) -- does it need a
very recent context (I have ConTeXt  ver: 2006.08.08 21:51  fmt:
2006.11.4  int: english  mes: english)?

$ texmfstart texexec try-ctx
[...]
Completed box being shipped out [1.1]
Memory usage before: 1751690230; after: 397690074; still untouched: 939301
title   : - References
)
! Incomplete \iffalse; all text was ignored after line 23.
inserted text
\fi
* try-ctx.tex
emergencyend
?



-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] color question

2006-10-10 Thread gnwiii
On 10/10/06, Alan Bowen [EMAIL PROTECTED] wrote:
 If this is OT, my apologies to all.

 I am currently using ConTEXt to produce PDFs with a colored
 background which I specify using R G B settings. Unfortunately, this
 background does not look the same when others open the files on their
 computers. Is there anything I can do at my end to correct this?

There are well-known differences between various computer brands, and
individual PC's generally vary widely. If you need really good
agreement, then all the systems need to be viewed under similar light
conditions and calibrated (e.g., using a colorimeter, or at least the
GretagMacbeth ColorChecker, a printed chart) and you want to generate
PDF's with a specific colorspace (not just deviceRGB).  For most
purposes, it seems to work to use a rough sRGB setting where you
adjust the monitor (brightness, contrast) to approximate gamma=2.2.
Check this with:
http://www.normankoren.com/makingfineprints1A.html#Monitor_test_pattern.

Many LCD's and worn-out CRT's like the ancient NCD on my desk will
fail even this simple test.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Problem with ConTeXt installation

2006-10-02 Thread gnwiii
On 10/1/06, Mojca Miklavec [EMAIL PROTECTED] wrote:

 On 9/29/06, Taco Hoekwater wrote:
  Steve Peter wrote:
   There is now a MikTeX package manager for Linux.
 
  And it is best not to use it since it ships a context that
  believes it is running on windows...

ConTeXt should adjust to the differences (see ruby/tex.rb), but
someone may need to
search out the bugs and report them.

 But then it has to be fixed, not thrown away ... I bet that the main
 reason is one of the many if (MikTeX) switches in the source code
 assuming that MikTeX is running on windows. Are there any MikTeX/Lunux
 users around? (I work on windows 99% of time, but if I manage to
 install MikTeX on the linux partition, I'll give it a try.)

 The other thing is: I have no idea how the executables are created. I
 sent quite a few requests, so that now finally the ruby scripts are
 used instead of the old perl-based ones. But I don't have the
 slightest idea how they work under Linux.

I have ConTeXt under MikTeX and also on Fedora Core 5 both using the
Aug. 8 release from a separate texmf-cont tree, so I didn't install
the MikTeX version at all (I did steal
texmfstart.exe from W32tex).

There were some problems in the MikTeX-2.5 betas due to different
command-line switches in linux (and W32TeX) versions of pdftex, but I
thought that had been fixed in the
final version.  There are some system specific flags set in
base/tex.rb to deal with any lingering differences, so if there are
problems I'd compare the options for pdftex and see if they are
reflected in tex.rb.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] A new manual

2006-09-29 Thread gnwiii
On 9/28/06, John R. Culleton [EMAIL PROTECTED] wrote:

 What is needed now for greater acceptance of Context is not new
 features but a new manual, perhaps a multi volume set with a
 common index. The 2001 manual is great, but many of the features
 discussed daily here are not in it. One must chase around the
 wiki and the individual manuals like details, and that is not
 satisfactory from the point of view of the new user. Most of us
 have memorized the locations of key information but newcomers
 have not.

I don't agree that lack of a current manual is a big problem for
potential users of ConteXt. In my experience, the biggest problem is
with the 3rd party tools (perl, ghostscript, ruby) on Win32 and legacy
commercial unix (where ruby is not provided and the system perl will
be a very old version).

You can write simple LaTeX documents without working 3rd party tools
(MikTeX-2.5 seems to provide ghostscript), but you need perl and ruby
before you can format anything in ConTeXt.  There should be some tools
to check the functioning and versions of ghostscript, perl, and ruby.
A VMWare player appliacance might be helpful for people with current
Win32 systems (e.g., ample CPU, disk, and RAM).

 If a consolidated manual set were offered for sale there would be a
 lot of customers. Or an abridged version, something like the
 1999 Excursion manual but expanded and updated, would be a
 possibility.

Any printed manual will soon become stale.  What is needed is an
introductory manual
for new users together with an ongoing process to provide current
information.  The wiki is a good start, but there needs to be more
effort to ensure that the sources can be used as the definitive
manual.  The introductory manual should devote considerable space to
explaining how to find current information in the wiki and or using
the source files.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] counting the words in a TeX document

2006-08-05 Thread gnwiii
On 8/5/06, Mojca Miklavec [EMAIL PROTECTED] wrote:
 Hello,

 I would like to ask how difficult it would be to count the number of
 words in a TeX/ConTeXt document. If it's too complex, please ignore
 the rest of the message.

It wasn't too complex for Michael Downes using LaTeX:

\ProvidesFile{wordcount.tex}[2000/09/27 v1.5 Michael Downes]
% Copyright 2000 Michael John Downes
% This file has no restrictions on its use, distribution, or sale.
%
% If you run LaTeX on wordcount.tex it will prompt you for the name of a
% document to be counted. For most people, however, it will be more
% convenient to run the shell script wordcount.sh, giving the document
% name as the first argument. The comments in wordcount.sh
% give further information about the usage and limitations of this tool.

% The fundamental idea is to mark each character and interword space
% with a unique tag that will show up in TeX showbox output. Then
% arrange to make the output routine trigger a TeX overfull vbox message
% for the page box so that everything gets reported in the TeX log.
% Then run grep -c (or an equivalent text search utility, e.g., perl) on
% the log file to count the occurrences.
% []

 Most recipes for LaTeX say that it's best to do something like
 pdftotext and then issue wc to count the words in the resulting
 text file, but windows users don't have wc and sometimes you only
 need to know the length of the abstract or so ...

Many GNU utilities have been ported (GNUWin32), or can be implemented
in perl/ruby which context uses anyway.

 Some time ago Hans mentioned that he counts the number of appearance
 of single charactres, but I don't know how difficult it would be to
 extend it to count the number of words.

 The problem is not that well defined (how to handle equations, some
 would probably want to exclude headers, footers, buttons, ...), but it
 only needs to be an approximation and backward compatibility (in the
 sense that counter would have to result in the same number after some
 years) is not needed at all since algorithms might improve with time
 and the resulting document doesn't really depend on that number, it
 would only be written to the log file.

 My idea for the interface would be something like

 \startwordcount[abstract]
 \startframedtext
 Bla bla.
 \stopframedtext
 \stopwordcount

 which would write something like abstract: 2 words to the log file

 or

 \startstatistics[abstract][words]
 \startframedtext
 Bla bla.
 \stopframedtext
 \stopstatistics

 But this is really a low priority. I'm currently using Acrobat to copy
 the text, then I paste it into Office and take a look at statistics
 there when I need to obey some limitations.

 So, if there's a simple solution, I would be glad to use it, but if it
 takes too much time to implement it, it's probably not worth the
 effort.

ConTeXt already analyzes the scratch files with perl or ruby, so if
you can adapt MD's idea it shouldn't be a big deal to have texexec
print the result.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Linux upgrade

2006-07-05 Thread gnwiii
On 6/23/06, Taco Hoekwater [EMAIL PROTECTED] wrote:

 John R. Culleton wrote:
 
  Let me start all over. Assuming a working TeX installation
  (either tetex or texlive 2005) what incantation must I perform to
 [...]
 After following those instructions, everything should be ok except
 for the new ruby script links and texmfstart's warning. For
 that, do the following:

* make sure you have ruby installed. If not, do that first

* go to the scripts/context/stubs/unix/ directory in your
  freshly unpacked ConTeXt distribution, make sure you
  have write permissions to the TeX binaries directory,
  and run something like the shell script that follows.
 [...]

This script creates copies of the scripts and has to be run each time
the scripts are updated.
Whenever you make copies Murphy's law says the two versions will diverge.
I'd suggest creating wrapper scripts, one each for perl, ruby, and
java scripts in the directory with the texexec, etc. scripts as
follows:

   - runtexmfrb 
#! /bin/sh
# runtexmfrb -- run ruby scripts with ruby pathtexmfstart.rb ..
# Author: George N. White III [EMAIL PROTECTED]
# Date: 2006-06-25
# to use: link (ln -s) to the names of ConTeXt scripts in your tex bin
# directory, e.g.,
# cd .../bin/arch
# for f in texmfstart texexec pstopdf textools texutil ctxtools
pdftools rlxtools texsync ; do ln -s runtexmfrb $f ; done
#
# requires:
# ruby, sed, kpsewhich

what=`echo $0 | sed '[EMAIL PROTECTED]/@@'`

p=`kpsewhich -format=texmfscripts texmfstart.rb`
{ test -n $p  test -f $p; } \
   || { echo \`texmfstart.rb' not found.; exit 1; }

# for texmfstart just
case $what in
texmfstart)
exec ruby $p ${1+$@}
  ;;
*)
q=`kpsewhich -format=texmfscripts $what.rb`
{ test -n $q  test -f $q; } \
   || { echo \`$what.rb' not found.; exit 1; }
exec ruby $p $what.rb ${1+$@}
 ;;
esac
   - end runtexmfrb --

   - runtexmfjar 
#!/bin/sh
# runtexmfjar -- run texmf Java app
# Author: George N. White III [EMAIL PROTECTED]
# Date: 2006-06-25
# to use: link to the names of the apps:
# e.g., ln -s runtexmfjar JabRef

java=/usr/java/jre1.5.0/bin/java
what=`echo $0 | sed '[EMAIL PROTECTED]/@@'`

p=`kpsewhich -format=texmfscripts $what.jar`
{ test -n $p  test -f $p; } \
  || { echo \`$what.jar' not found.; exit 1; }
exec $java -jar $p ${1+$@}
   - end runtexmfjar --

   - runtexmfpl 
#!/bin/sh
# runtexmfpl -- run texmf perl script
# to use: link to the names of the apps:
# e.g., ln -s runtexmfpl epstopdf

what=`echo $0 | sed '[EMAIL PROTECTED]/@@'`

p=`kpsewhich -format=texmfscripts $what.pl`
{ test -n $p  test -f $p; } \
  || { echo \`$what.pl' not found.; exit 1; }
exec perl $p ${1+$@}
   - end runtexmfpl --

The advantage of this approach is that you run the latest script
versions after a new cont-tmf is installed without having to copy
updated scripts to the bin directory.  I use runtexmfjar for
JabRef.jar, which lives in texmf-local/scripts.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] texmfstart newbie

2006-06-27 Thread gnwiii
On 6/27/06, David Arnold [EMAIL PROTECTED] wrote:
 OK,

 I've updated to the latest context via Gerben's i-installer on my mac
 osx 10.4.6.

 I have no idea what texmfstart is nor do I understand its purpose.

 I imagine the first thing I have to do is configure, because it is
 certainly not found on my system.

 tmp $ which texmfstart
 tmp $ texmfstart
 -bash: texmfstart: command not found


 Here is my path:

 tmp $ echo $PATH
 /sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/
 local/teTeX/bin/powerpc-apple-darwin-current:/opt/local/bin:/usr/
 local/mysql/bin:/usr/X11R6/bin

 For example:

 tmp $ 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.1 - ConTeXt / PRAGMA ADE 1992-2006
 tex : pdfeTeX, 3.141592-1.30.4-2.2 (Web2C 7.5.5)
 context : ver: 2006.06.23 20:39
 cont-en : ver: 2006.06.23 20:39  fmt: 2006.6.27  mes:
 english
 cont-nl : ver: 2006.06.23 20:39  fmt: 2006.6.27  mes:
 dutch

  total run time : 3 seconds

 warning : use 'texmfstart texexec' instead


 tmp $ which texexec
 /usr/local/teTeX/bin/powerpc-apple-darwin-current/texexec

 Which appears to be some sort of shell script.

Yes, it is a wrapper that uses kpsewhch to search for what.pl and
then fires up perl with the full path to the script.  The same trick
works for ruby (.rb) and java (.jar).  I've made 3 scripts, called
runtexmfXX, where XX={pl,rb,jar}:

  - runtexmfrb 
#! /bin/sh
# runtexmfrb -- run ruby scripts with ruby pathtexmfstart.rb ..
# Author: George N. White III [EMAIL PROTECTED]
# Date: 2006-06-25
# to use: link (ln -s) to the names of ConTeXt scripts in your tex bin
# directory.
# cd .../bin/arch
# for f in texmfstart texexec pstopdf textools texutil ctxtools
pdftools rlxtools texsync ; do ln -s runtexmfrb $f ; done
#
# requires:
# ruby, sed, kpsewhich

what=`echo $0 | sed '[EMAIL PROTECTED]/@@'`

p=`kpsewhich -format=texmfscripts texmfstart.rb`
{ test -n $p  test -f $p; } \
   || { echo \`texmfstart.rb' not found.; exit 1; }

# for texmfstart just
case $what in
texmfstart)
exec ruby $p ${1+$@}
  ;;
*)
q=`kpsewhich -format=texmfscripts $what.rb`
{ test -n $q  test -f $q; } \
   || { echo \`$what.rb' not found.; exit 1; }
exec ruby $p $what.rb ${1+$@}
 ;;
esac
   - end runtexmfrb --

   - runtexmfjar 
#!/bin/sh
# runtexmfjar -- run texmf Java app
# Author: George N. White III [EMAIL PROTECTED]
# Date: 2006-06-25
# to use: link to the names of the apps:
# e.g., ln -s runtexmfjar JabRef

java=/usr/java/jre1.5.0/bin/java
what=`echo $0 | sed '[EMAIL PROTECTED]/@@'`

p=`kpsewhich -format=texmfscripts $what.jar`
{ test -n $p  test -f $p; } \
  || { echo \`$what.jar' not found.; exit 1; }
exec $java -jar $p ${1+$@}
   - end runtexmfjar --

   - runtexmfpl 
#!/bin/sh
# runtexmfpl -- run texmf perl script
# to use: link to the names of the apps:
# e.g., ln -s runtexmfpl epstopdf

what=`echo $0 | sed '[EMAIL PROTECTED]/@@'`

p=`kpsewhich -format=texmfscripts $what.pl`
{ test -n $p  test -f $p; } \
  || { echo \`$what.pl' not found.; exit 1; }
exec perl $p ${1+$@}
   - end runtexmfpl --


 [...]

 Ruby is installed:

 tmp $ which ruby
 /usr/bin/ruby
 tmp $ ruby --version
 ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0]

 And here is the location of texmfstart:

 /usr/local/teTeX/share/texmf.local/scripts/context/ruby/texmfstart.rb
 /usr/local/teTeX/share/texmf.local/scripts/context/stubs/lib/texmfstart
 /usr/local/teTeX/share/texmf.local/scripts/context/stubs/lib/
 texmfstart/base
 /usr/local/teTeX/share/texmf.local/scripts/context/stubs/lib/
 texmfstart/base/kpse


 Now for questions:

 1. How do I configure my system to use texmstart?

in the bin directory with texexec, rename texexec to texexec.orig, create the
2 or 3 scripts you want to use, do chmod +x runtexmf*, and decide
which names are perl (.pl) and which are ruby (.rb).  Create symbolic
links:  ln -s runtexmfrb texmfstart, etc. for the ruby scripts.  You
can also do this for other perl scripts such as epstopdf, but be
careful, as the bin directory may contain newer versions than the
texmf trees.

 2. What are some of the usual uses I should be employing of
 texmfstart? How will it improve performance? How will it simplify my
 work? Etc? I.e what are the advantages?

Performance for scripts like this is not much af an issue these days
-- if you want performance, buy better hardware.  What is an issue is
the ability of the developers to find and fix bugs.  Perl is old and
tricky.  There are lots of old buggy perl versions installed.
Hopefully ruby will turn out to be more robust (lessons learned,
etc.).

The advantages to us are that you will use it and report bugs before we do.


Re: [NTG-context] keeping output

2006-06-16 Thread gnwiii
On 6/14/06, Hans van der Meer [EMAIL PROTECTED] 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.

In such cases I find it helpful to run texexec in an emacs shell window.
Some unix/linux terminals can save a complete log of a session, e.g.,
xterm -l.

 How does one preserve all these for debugging purposes?

Once you know where the problems occur you can make simpler documents
to debug one problem at a time (also helpful when you need to post an
example for others to examine).

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Fonts problem

2006-06-01 Thread gnwiii
On 6/1/06, Hans Hagen [EMAIL PROTECTED] wrote:
 Thomas A. Schmitz wrote:

  Thanks, that was a very interesting read! Personally, if it weren't
  for the really bad tex installation, I would favor gentoo over most
  other linux distros I have tried (the new SUSE 10.1 is a disaster,
 
 hm, i could install 10.1 ok here (but i never take tex's from linux
 distributions; one can always download tex live, so i actually wonder
 why there are derived tex distributions in linxu anyway)

Many packages need TeX for their documentation.  For that you want a
compact, stable, very robust TeX package with support for many
languages.  Red Hat uses teTeX (with
Japanese support, e.g., ptex added).   Distros will want all the
libraries dynamically linked to save space and so that security
updates to thinks like libpng and libtiff don't require new TeX
binaries.  Distros will want to use the Type1 fonts from the system
for space and because they have added glyphs for more languages.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Another texmfstart question

2006-05-29 Thread gnwiii
On 5/29/06, Jean Magnan de Bornier [EMAIL PROTECTED] wrote:
 Hi all,
 I just made on my linux-gentoo box a fresh install using (exactly)
 this howto:

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

 But using texmfstart texexec toto gives texmfstart not found; I tried
 with the full path of texmfstart.rb and  get permission denied; so I go
 into the directory /usr/local/teTeX/share/texmf-local/scripts/context/ruby
 and see that many scripts are not executable for others (regular users);
 so I say chmod +x * in that directory and then texmfstart texexec toto
 still doesn't work but it actually works with the full path; however my
 path is correctly set for context afaik.

On my systems, teTeX-3 does not include a texmfstart executable.  One approach
is to copy the texmfstart.rb script to texmfstart in a directory on your PATH.

Earlier, I posted a script I have been testing to the list.  The
script uses kpsewhich
to find the .rb or .pl script corresponding to the name used to invoke
the script, and then runs perl or ruby with the full path to the
script.  This saves having to copy the scripts everytime you update
context.

 I tried to set $RUBYLIB to this directory but it doesn't change anything.

RUBYLIB is set in the setuptex script from the minimal linux.  For
my simple tasks
it doesn't appear to be needed, but setting it shouldn't hurt.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] A question for you

2006-05-27 Thread gnwiii
On 5/26/06, Idris Samawi Hamid [EMAIL PROTECTED] wrote:

 Which typesetting tasks do you NOT do in ConTeXt, and what do you prefer
 to use for those tasks?

I'm involved with a report series for a small scientific organization.
 Years ago the organization hired a designer who knew PageMaker.  A
couple reports were done in PM, but the next one had losts of math and
a plain TeX version of the MS.  We used ConTeXt to duplicate his
design, with better results than you can get from PM.  Meanwhile,
other authors want to use LaTeX, the  designer moved on, and the
organization couldn't find a contractor willing to learn ConTeXt, so I
ended up creating a LaTeX style.

My feeling is that ConTeXt is good for creating one-off designs, but
for scientific work LaTeX is unavoidable.  Few people are willing to
invest time in ConTeXt when they are already familiar with LaTeX and
use it routinely for journal articles, proceedings, etc.  In
particular, it is easy to cut and paste equations between reports and
articles.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Installation Problem

2006-05-26 Thread gnwiii
On 5/25/06, Neal Lester [EMAIL PROTECTED] wrote:
 How I installed Context in /usr/local on Redhat EL WS v4 using BASH:

 Verify that the native RedHat version of tetex is not installed on
 your system; it is not compatible with Contex:

Actually, it is possible to have both without resorting to
virtualizaton, and tetex is required by other packages (to build
documentation).  TeX Live and the minimal ConTeXt you installed are
both structured so all the files are under a single top-level
directory (but, because some installs may put the files on a read-only
filesystem, some generated files may end up under the user's home
directory).  For TeX Live all you have to do is make sure the
bin/arch directory is before /usr/bin in the PATH, while the minimal
ConTeXt uses the variables set by setuptex.  I use the  environment
modules package to switch between distros (e.g., Red Hat's teTeX when
building packages from .src.rpm's, TeX Live for my documents, and one
or more test distributions).

 George, taco, thank you for the help.

You are very welcome.  Not everyone is as persistent or willing to
provide adequate detail so they can be helped.

I'm sure that there are dozens of people who have encountered the
unzip -a problem in mktexlsr and either got around it without
reporting the problem or just gave up on ConTeXt.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Stuck in texmfstart

2006-05-26 Thread gnwiii
On 5/26/06, Neal Lester [EMAIL PROTECTED] wrote:
 This morning, when I try to run texexec, texmfstart gets stuck in the
 loop at line 262.

 It seems that in my thrashing around yesterday I made some transient
 change to the environment (I shut this system down at night).  Any
 idea what that is?  I also applied a kernel patch, so I suppose that
 could also be the problem.

If a kernel patch breaks TeX I'd expect lots of other stuff to break as well.

It is easy to manually set one of the variables from texsetup and
forget to record the change somewhere that will survive reboots.  Did
you source texsetup manually (in the tex directory?

What do you get for ruby `kpsewhich -format=texmfscripts texexec.rb`
..., which bypasses
texmfstart.rb, where you can try ...=--check, etc.?

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Stuck in texmfstart

2006-05-26 Thread gnwiii
On 5/26/06, Neal Lester [EMAIL PROTECTED] wrote:
 At 09:17 AM 5/26/2006, you wrote:
 This morning, when I try to run texexec, texmfstart gets stuck in the
 loop at line 262.

 Placing

 puts f

 below line 266 ( f.gsub(...) do

 prints:

 $TEXROOT/texmf/{-local,}/web2c/texmf.cnf

 (over and over again)

Mine doesn't seem to enter this loop -- nothing is printed.   The
above line looks
like the entry from texsetup with an extra /:

set TEXMFCNF=%TEXPATH%texmf{-local,}/web2c


-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Installation Problem

2006-05-25 Thread gnwiii
On 5/24/06, Neal Lester [EMAIL PROTECTED] wrote:
 At 09:07 AM 5/24/2006, you wrote:
 Hans mentioned the minimal context linux distribution.

 OK, I deleted everything I did yesterday and started over.  This time
 I (think) I tried the minimal contex distribution.  Things still
 aren't working.  I am on Redhat Enterprise Linux v4.  Thanks again
 for the help.

 - Neal

 Here is what I did today:

 download http://www.pragma-ade.nl/context/install/justtex.zip
 download http://www.pragma-ade.nl/context/install/linuxtex.zip
 move both files to /usr/local
 cd /usr/local
 unzip -a justtex.zip
 unzip -a linuxtex.zip
 Set up environment:

 export TEXROOT=/usr/local/tex
 [...]

What about just . setuptex?   Are you running a shell other than bash?

 create the directory specified by $VARTEXMF
 cd $TEXMFOS/bin
 chmod +x *

On my system the permissions look sensible without manual
adjustment.

 chmod -x xpdfsuite.zip
 download http://www.pragma-ade.nl/context/current/cont-tmf.zip
 mv cont-tmp.zip to $TEXROOT/texmf
 cd $TEXROOT/texmf
 unzip -ao cont-tmf.zip
 copy texmf/context/config/texexec.rme texexec.ini

 texexec --verbose

 Output:

 TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD

 TeXExec | --checkcheck versions
 TeXExec | --figures  generate overview of figures
 TeXExec | --listing  list of file content
 TeXExec | --make make formats
 TeXExec | --modules  generate module documentation
 TeXExec | --mptexprocess mp file
 TeXExec | --mpxtex   process mpx file
 TeXExec | --pdfarrange   impose pages (booklets)
 TeXExec | --pdfcombine   combine multiple pages
 TeXExec | --pdfcopy  copy pages from file(s)
 TeXExec | --pdfselectselect pages from file(s)
 TeXExec | --pdftrim  trim pages from file(s)
 TeXExec | --process  process file
 TeXExec |
 TeXExec | --help --all   shows all switches

Looks good so far.

 texexec --make en de nl

 Output:

 TeXExec | using search method 'kpsefast'
 TeXExec | updating file database
 sed: -e expression #1, char 3: unterminated `s' command
 sed: -e expression #1, char 3: unterminated `s' command

I don't get these sed errors using Fedora Core 4.  I suspect these come
from mktexlsr.  I have:
$ rpm -q sed
sed-4.1.4-1
$ sed --version
GNU sed version 4.1.4
$ which sed
/bin/sed

Try runing mktexlsr from the command line.

 mktexlsr: /usr/local/tex/texmf/ls-R lacks magic string. Skipping...
 mktexlsr: Done.
 TeXExec | using tex engine pdfetex
 TeXExec | using tex format path /usr/local/tex/texmf-linux/web2c/pdfetex
 TeXExec | generating tex format cont-en
 This is pdfeTeXk, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) (INITEX)
   %-line parsing enabled.
   (/usr/local/tex/texmf/web2c/natural.tcx)
 entering extended mode
 ! I can't find file `cont-en'.
 * *cont-en

 Please type another input file name:

 I'm stuck because I can't find a file 'cont-en' either.

You should get:
$ kpsewhich cont-en
/usr/local/tex/texmf-local/tex/context/base/cont-en.tex

Check for bug reports against your sed.

You could hack at mktexlsr to replace the sed lines with constants and see if
you get further.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Installation Problem

2006-05-25 Thread gnwiii
On 5/25/06, Neal Lester [EMAIL PROTECTED] wrote:

 I renamed my input file to temp.tex.

 Now I get:

 kpathsea: Running mktexfmt cont-en.fmt
 mktexfmt: No such file or directory
 I can't find the format file `cont-en.fmt'

 The file cont-en.fmt is in

 texmf-linux/web2c/pdfetex

 I added the following line to texmf/context/config/texexec.ini

 TeXFormatPath texmf-linux/web2c/pdfetex fmt files

When you run . setuptex your_texroot_path you should end up with

TEXFORMATS='$TEXMFOS/web2c/{$engine,}'

If this is OK, then try texexec --check and texexec --verbose test
to see if you get some hints.

 That didn't help, so I copied texexec.ini to

 texmf-linux/bin

 but that didn't help either.

The kpsewhich utility is used to search the ls-R databases and can
also display the values of variables.  Unfortunately, the documentation
is probably not in the minimal configuration you have.  If you can
find another system with TeX, try info kpsewhich.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Installation Problem

2006-05-25 Thread gnwiii
On 5/25/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 The '-a' option shouldn't hurt.  I don't see any files flagged as text
 in the archives.

Hmm.  I expected a 't' in the 'unzip -l' or 'unzip -lv', but clearly
unzip -a thinks mktexlsr is a text file and (since it is run on linux)
is deleting the '^M' characters.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Installation Problem

2006-05-25 Thread gnwiii
On 5/25/06, Neal Lester [EMAIL PROTECTED] wrote:
 At 05:20 AM 5/25/2006, you wrote:
 I don't get these sed errors using Fedora Core 4.  I suspect these come
 from mktexlsr.  I have:
 $ rpm -q sed
 sed-4.1.4-1
 $ sed --version
 GNU sed version 4.1.4
 $ which sed
 /bin/sed

 The problem was in mktexlsr.  I am running sed 4.1.2, but that
 apparently wasn't the problem.  The problem was using the -a option
 to unzip.  When I refreshed mktexlsr from the archive without the -a
 option (inadvertently)  it worked fine.  So now

The '-a' option shouldn't hurt.  I don't see any files flagged as text
in the archives.

$ mv tex/texmf-linux/bin/mktexlsr tex/texmf-linux/bin/mktexlsr.orig
$ unzip -a linuxtex.zip tex/texmf-linux/bin/mktexlsr
Archive:  linuxtex.zip
  inflating: tex/texmf-linux/bin/mktexlsr  [text]
$ ls -l tex/texmf-linux/bin/mktexlsr tex/texmf-linux/bin/mktexlsr.orig
-rw-r--r--  1 gwhite bod 5310 May 18 15:15 tex/texmf-linux/bin/mktexlsr
-rwxr-xr-x  1 gwhite bod 5310 May 18 15:15 tex/texmf-linux/bin/mktexlsr.orig

so, permissions are lost, but:

$ diff tex/texmf-linux/bin/mktexlsr tex/texmf-linux/bin/mktexlsr.orig
115,118c115,116
 test x`sed '1s/
 $//;1q' \$db_file\` != x$ls_R_magic \
 test x`sed '1s/
 $//;1q' \$db_file\` != x$old_ls_R_magic; then
---
$//;1q' \$db_file\` != x$ls_R_magic \
$//;1q' \$db_file\` != x$old_ls_R_magic; then

an embedded ^M in a sed rule is being munged.  This should be changed
to use '\r' in place of '^M'.

 texexec --make en de nl
 texexec --make metafun

 Both seem to run fine (output attached in a separate post).

 But when I try

 texexec -pdf temp

 I get:

 TeXExec | processing document 'temp'

I see Taco has answered this.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Installation Problem

2006-05-24 Thread gnwiii
On 5/24/06, Neal Lester [EMAIL PROTECTED] wrote:
 At 12:49 AM 5/24/2006, you wrote:


 Neal Lester wrote:
   I am trying to verify my installation.
  
   When I try to run texexec against the test file given in the
   installation instructions I don't get a dvi or pdf file.  The output is:
 
 What instructions did you follow, precisely? I see some problems in
 your output, but it will be easier to explain using those instructions.

 I followed the instructions at:

 http://www.pragma-ade.nl/general/manuals/minstall.pdf

 First I used the TeX that came with my Linux distribution (RedHat
 Enterprise Linux v4) but that didn't work (perhaps it was too
 old).  Then I installed teTeX ( http://www.tug.org/tetex/ ) which
 came with an old version of context that got in the way.  I removed
 that old version and installed the version from here (
 http://www.pragma-ade.nl/context/current/cont-tmf.zip ).

The cont-tmf.zip archive doesn't (directly) update programs
(texmfstart, texexec, etc.)
Tetex's texexec is a script that runs perl on the result of 'kpsewhich
-format=texmfscripts texexec.pl'.  You need to make sure kpsewhich
finds the new texexec.pl.  You can also try the version I posted
recently that looks for the ruby scripts.

I like to keep context in a separate tree, texmf-cont, so it is easy
to see what files comes from cont-tmf in logs, etc.

 Thomas Esser has (apparently just) announced that he will no longer
 be maintaining teTeX.  Which version of TeX do you recommend I install?

Hans mentioned the minimal context linux distribution.

Red Hat will have to make a decision about TeX.  In the interim, you
may have to do a bit of extra work to stay current.  The nice thing
about teTeX and TeX Live is that they have been designed so they can
be self-contained, with texmf trees and binaries under one top-level
directory so you can add and remove them without the need for a
package manager to keep things sorted.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Wrong image size evaluation

2006-05-18 Thread gnwiii
On 5/18/06, Taco Hoekwater [EMAIL PROTECTED] wrote:
  What about a new pdftex primitive: \pdfimagepixel, which would force
  using a unit.  Then the above would be done by \pdfimagepixel=1bp

 You can (as always) propose it on the pdftex list, but i personally
 do not see the point. Bear in mind that the png spec is extremely
 clear on the use pHYs:

If this ancillary chunk is not present, pixels are assumed to be
square, and the physical size of each pixel is unknown.

 So the problem was created way before pdftex came into play.

Pdftex's image inclusion should be viewed as a convenience feature
that is nice when it works, but it is no substitute for using good
external software to create good images (preferrably in pdf format so
no conversions are needed).  Once you have support for
including images you have to deal with questions of what should be
supported, and to which the only good answer is any image George's
boss wants to use.  By offloading such questions onto the authors of
sam2p, imagemagick, netpbm, gimp, cinepaint, Photoshop, etc. there is
time for more texy questions that those authors won't address.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Missing space in gs.rb from recent con-tmf.zip

2006-05-17 Thread gnwiii
The line in scripts/context/ruby/graphics/gs.rb with -dSAFER needs a
space before the closing quote.  The corrected line is:

arguments  -q -sDEVICE=pdfwrite -dNOPAUSE -dNOCACHE -dBATCH -dSAFER 

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] First hack at new ruby-aware texexec script for linux/unix

2006-05-17 Thread gnwiii
There are two classes of users:

1) most error messages are ignored up to and including the ones that
promise global thermonuclear war if you click on Yes, or

2) minor warnings bring all work to a halt until explained.

In honor of the latter class, who ask about the suggestion to use
texstart texexec.rb ...
when running context, the following script may be helpful.

TeX Live on linux runs texexec, etc. via a shell script that is linked
to the names of various
perl utilities.  Here is my first cut at a version that tries to use
the ruby scripts:

 --
#!/bin/sh
# use ruby and texmfstart.rb or perl
# to use: link to the names of ConTeXt scripts

what=`echo $0 | sed '[EMAIL PROTECTED]/@@'`

case $what in
texmfstart|texexec|pstopdf|textools|texutil)
  p=`kpsewhich -format=texmfscripts $what.rb`
  { test -n $p  test -f $p; } \
   || { echo \`$what.rb' not found.; exit 1; }
  RUBYLIB=${RUBYLIB:-${p%/*}}
  export RUBYLIB
  exec ruby $p ${1+$@}
  ;;
*)
  p=`kpsewhich -format=texmfscripts $what.pl`
  { test -n $p  test -f $p; } \
   || { echo \`$what.pl' not found.; exit 1; }
  exec perl $p ${1+$@}
  ;;
esac
 ---

This version runs the ruby scripts directly, rather than the suggested
form, e.g., texfmstart pstopdf.rb file.ps.  I have no idea if that
is intended to work -- it did in my very simple tests .  I'm not sure
the RUBYLIB line is needed.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context