Re: [NTG-context] widow and orphan control

2005-03-30 Thread Vit Zyka
Paul Tremblay wrote:
What I would need is some type of macro that can determine how much
space is left on the page. If the space is less than some small,
pretermined amount (say, 24 points, for example), then put the title on
the next page, or put in a \blank[24pt, flexible]
You can use the trick (untested):
\penalty50
\vskip3\baselineskip plus1fil
\nobreak
\vskip-3\baselineskip plus-1fil
It is useful before section title etc. I believe it is implemented to 
ConTeXt, but I do not know the interface.

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


Re: [NTG-context] widow and orphan control

2005-03-30 Thread Vit Zyka
Hans Hagen wrote (8:53):
Paul Tremblay wrote:
What I would need is some type of macro that can determine how much
space is left on the page. If the space is less than some small,
pretermined amount (say, 24 points, for example), then put the title on
the next page, or put in a \blank[24pt, flexible]
I know nothing about writing macros, or if this is possible. 
\testpage[24pt]
Vit Zyka wrote (11:35):
\penalty50
\vskip3\baselineskip plus1fil
\nobreak
\vskip-3\baselineskip plus-1fil

It is useful before section title etc. I believe it is implemented to 
ConTeXt, but I do not know the interface.

Whawgh! Hans had answered the question before I sent it. Sorry, my 
homing pigeon was too lazy... Although Hasselt-to-Prague way in 2.5 hrs 
it is not so bad :)

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


[NTG-context] Re: Greek in ConTeXt

2005-03-30 Thread Patrick Gundlach
Hello Hans,

 my browser says: file does not begin with %pdf ...

this is strange. I just checked with my browser (safari, firefox) and
they downloaded the file well. And 'file' gives me:

$ file GreekInContext.pdf 
GreekInContext.pdf: PDF document, version 1.5

Anybody else having trouble?

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Greek in ConTeXt

2005-03-30 Thread Taco Hoekwater
This has happened to me sometimes (not on this file though),
and is usually caused by Mozilla's cache-ing the document
in memory. You could try restarting the browser, that usually
works for me.
Patrick Gundlach wrote:
Hello Hans,

my browser says: file does not begin with %pdf ...

this is strange. I just checked with my browser (safari, firefox) and
they downloaded the file well. And 'file' gives me:
$ file GreekInContext.pdf 
GreekInContext.pdf: PDF document, version 1.5

Anybody else having trouble?
Patrick
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Greek in ConTeXt

2005-03-30 Thread Matthias Weber
I have no time right now to check what server you are running,
but I had this type  of  problem on my Suse/Apache server with some 
MS/Acrobat combinations.
It works well with Linux/OS-X.

I had to change the mime settings of pdf files to xpdf for Apache
to make things work.
Matthias
On Mar 30, 2005, at 7:55 AM, Patrick Gundlach wrote:
Hello Hans,
my browser says: file does not begin with %pdf ...
this is strange. I just checked with my browser (safari, firefox) and
they downloaded the file well. And 'file' gives me:
$ file GreekInContext.pdf
GreekInContext.pdf: PDF document, version 1.5
Anybody else having trouble?
Patrick
--
ConTeXt wiki: http://contextgarden.net
___
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] Re: Greek in ConTeXt

2005-03-30 Thread Tobias Burnus
Hello,
my browser says: file does not begin with %pdf ...
   
this is strange. I just checked with my browser (safari, firefox) and
they downloaded the file well. And 'file' gives me:
 
I have also the same problems. In FireFox 1.0.2/Linux with AR7pre
plugin, the AR plugin starts and states:
File does not begin with '%PDF-'. But using telnet, it looks quite ok
(see below); and using wget and then acroread, I have no problems at all.
Tobias
~ telnet dl.contextgarden.net 80
Trying 83.151.29.228...
Connected to dl.contextgarden.net.
Escape character is '^]'.
GET /myway/GreekInContext.pdf HTTP/1.1
Host: dl.contextgarden.net
HTTP/1.1 200 OK
Date: Wed, 30 Mar 2005 13:02:10 GMT
Server: Apache
Last-Modified: Wed, 30 Mar 2005 11:17:00 GMT
ETag: 3b348-6c94d-ea770300
Accept-Ranges: bytes
Content-Length: 444749
Vary: Accept-Encoding,User-Agent
Content-Type: application/pdf
X-Pad: avoid browser bug
%PDF-1.5
1 0 obj 
[...]
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Greek in ConTeXt

2005-03-30 Thread Patrick Gundlach
Hello Matthias,

 I have no time right now to check what server you are running,

debian/apache 2

 but I had this type  of  problem on my Suse/Apache server with some
 MS/Acrobat combinations.
 It works well with Linux/OS-X.


 I had to change the mime settings of pdf files to xpdf for Apache
 to make things work.

xpdf or x-pdf? I have set the mime type of the file to
application/x-pdf for now. Is this the correct way?

Patrick (clueless)

-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Greek in ConTeXt

2005-03-30 Thread Matthias Weber
x-pdf should work fine. I am still clueless about this problem, too.
In my class of 30, only some Windows users had exactly this problem.
I could never reproduce it on our Campus machines, and never on a Mac 
either.

I only know that changing the mime type has fixed it since. Maybe Hans 
or Tobias can retry now?

Matthias
On Mar 30, 2005, at 8:48 AM, Patrick Gundlach wrote:
Hello Matthias,
I have no time right now to check what server you are running,
debian/apache 2
but I had this type  of  problem on my Suse/Apache server with some
MS/Acrobat combinations.
It works well with Linux/OS-X.

I had to change the mime settings of pdf files to xpdf for Apache
to make things work.
xpdf or x-pdf? I have set the mime type of the file to
application/x-pdf for now. Is this the correct way?
Patrick (clueless)
--
ConTeXt wiki: http://contextgarden.net
___
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] Re: Greek in ConTeXt

2005-03-30 Thread Hans Hagen
Matthias Weber wrote:
x-pdf should work fine. I am still clueless about this problem, too.
In my class of 30, only some Windows users had exactly this problem.
I could never reproduce it on our Campus machines, and never on a Mac 
either.

I only know that changing the mime type has fixed it since. Maybe Hans 
or Tobias can retry now?
doesn't work (yet); the message comes pretty fast (i use firefox); i just tried 
ie and it first downloads the file and then acrobat bombs; maybe byteserving is 
not working ok in the garden

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] Re: Greek in ConTeXt

2005-03-30 Thread Hans Hagen
Matthias Weber wrote:
x-pdf should work fine. I am still clueless about this problem, too.
In my class of 30, only some Windows users had exactly this problem.
I could never reproduce it on our Campus machines, and never on a Mac 
either.

I only know that changing the mime type has fixed it since. Maybe Hans 
or Tobias can retry now?
i cleared all caches and now the document open sin a separate acrobat window (no 
browser integration)

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] bibmodule: two small questions

2005-03-30 Thread Stefano
Thomas,

I was able to set the spacing between items in the publications list by
using

\placepublications[before={\setupwhitespace[5pt]}]

Using \setupwhitespace before \placepublications did not work for me.


Stefano

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Behalf Of Thomas A.Schmitz
 Sent: Tuesday, March 29, 2005 15:16
 To: mailing list for ConTeXt users
 Subject: Re: [NTG-context] bibmodule: two small questions


 Thanks Taco!

 Actually, the \switchtobodyfont works even with \completepublications.

 But the spacing seems to have a problem even in newer versions --I use
 the latest and greatest:

 TeXExec 5.2.5 - ConTeXt / PRAGMA ADE 1997-2005

 texexec : TeXExec 5.2.5 - ConTeXt / PRAGMA ADE 1997-2005
 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
 tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4)
 context : ver: 2005.03.16
 cont-en : ver: 2005.03.16  fmt: 2005.3.23  mes: english

 Nevertheless, the space between items in the publicationlist is
 slightly smaller than between normal lines. You can observe it best if
 you set the interlinespace to something like 5ex.

 I tried something like

 \setuppublicationlist
  [after={\vskip2pt}]

 but this is just a guesstimate and will have to be adapted when I
 change the bodyfont or the interlinespace.

 On an unrelated note: A couple of months ago, somebody posted about
 problems with cross-references. You supplied a workaround then:

 \setbox0\vbox{\placepublications}
 \completepublications

 This still works, but any chance that the bug will be fixed?

 But most importantly: thanks for providing this wonderful tool!

 Best

 Thomas

 On Mar 29, 2005, at 6:05 PM, Taco Hoekwater wrote:

 
  Hi Thomas,
 
 
  Thomas A.Schmitz wrote:
  I've been playing with Taco's bibmodule, and I'm absolutely thrilled
  how easy it is to customize things. Once you've groked how things
  work, you can simply copy code from bibl-apa.tex and modify, it's
  just wonderful (OT: what does apa stand for in this abbreviation?
  For me, it's the American Philological Association, but I guess
  that's not meant here.)
 
  American Psychological Association, http://www.apastyle.org
 
  1. Is  there a general option to have the publicationlist typeset in
  a smaller font size? The default seems to be the general bodyfont,
  but I couldn't see where this could be modified.
 
  The easiest solution is not to use \completepublications, but
  \placepublications, something like this (untested):
 
\section{References}
\switchtobodyfont[8pt]
\placepublications
 
 
  2. The space between the items does not follow the normal
  interlinespace, but is fixed to a somewhat smaller value, which looks
  a bit bizarre. Is there any way to modify this behavior.
 
  I believe this may depend a bit on your ConTeXt  bib module
  version(s).
 
  The current one looks fine (I think), but I know for a fact that there
  have been some problems with older versions, and perhaps they have
  not been resolved properly. See the options to \setuplist in texshow,
  if you want to tweak the spacing between items, you can use all those
  options inside a \setuppublicationlist command.
 
  Greetings, 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

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


[NTG-context] Re: Greek in ConTeXt

2005-03-30 Thread Patrick Gundlach
Hello again,

 I have no time right now to check what server you are running,
 but I had this type  of  problem on my Suse/Apache server with some
 MS/Acrobat combinations.
 It works well with Linux/OS-X.

you put me on the right track. It looks as if there is some bug with
acrobat (reader) plugin/chunked web server responses.

http://issues.apache.org/bugzilla/show_bug.cgi?id=25960

Patrick
(it should work now, I have disabled pdf compression on server)
-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] widow and orphan control

2005-03-30 Thread phthenry


From: Vit Zyka [EMAIL PROTECTED]
  Hans Hagen wrote (8:53):
  Paul Tremblay wrote:
  What I would need is some type of macro that can determine how much
  space is left on the page. If the space is less than some small,
  pretermined amount (say, 24 points, for example), then put the
 title on
  the next page, or put in a \blank[24pt, flexible]
 
  I know nothing about writing macros, or if this is possible. 
  
  \testpage[24pt]
 
 Vit Zyka wrote (11:35):
  \penalty50
  \vskip3\baselineskip plus1fil
  \nobreak
  \vskip-3\baselineskip plus-1fil
  
  It is useful before section title etc. I believe it is implemented to
  ConTeXt, but I do not know the interface.
 
 Whawgh! Hans had answered the question before I sent it. Sorry, my 
 homing pigeon was too lazy... Although Hasselt-to-Prague way in 2.5 hrs
 it is not so bad :)
 

Actually, no! Both your responses help me out.

Could you explain your snippet of code? I don't quite know what 
the \penalty50 means. I know TeX applies a penalty to each line,
but I'm confused if the penalty is for fitting the line 
horizontally or vertically, or both. 

I know what vskip does, but I'm not sure about the other commands,
or the strategy. Incidently, I do very much want code that acts
on titles for sections and subsections. That is my exact problem 
right now. I believe that ConTeXt will generally handle widows
if they just occur in a regular paragraph.

Hans provided a very useful tidbit in \testpage[24pt], but I'm not 
sure if I should use this in a macro. I have never written a 
macro in TeX before. I was hoping I would not have to write macros,
but maybe I should just learn the basics?

I guess there is a section on macros in the big manual. But that 
is sitting at home next to my computer that has the ConTeXt on it!

Thanks

Paul

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


Re: [NTG-context] bibmodule: two small questions

2005-03-30 Thread Thomas A . Schmitz
Stefano,
thanks for the reply. This command has a very weird behavior: when I 
set it to

\placepublications[before={\setupwhitespace[0pt]}]
I still get too little whitespace between items. When I set it to any 
value, like

\placepublications[before={\setupwhitespace[.1pt]}]
I get a blank of approx. half a line. But I can't achieve what I want: 
exactly the same interlinespace within items and between items. So it 
must be something hidden somewhere in the macros.

All best
Thomas
On Mar 30, 2005, at 4:18 PM, Stefano wrote:
Thomas,
I was able to set the spacing between items in the publications list by
using
\placepublications[before={\setupwhitespace[5pt]}]
Using \setupwhitespace before \placepublications did not work for me.
Stefano
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Thomas A.Schmitz
Sent: Tuesday, March 29, 2005 15:16
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] bibmodule: two small questions
Thanks Taco!
Actually, the \switchtobodyfont works even with \completepublications.
But the spacing seems to have a problem even in newer versions --I use
the latest and greatest:
TeXExec 5.2.5 - ConTeXt / PRAGMA ADE 1997-2005
texexec : TeXExec 5.2.5 - ConTeXt / PRAGMA ADE 
1997-2005
texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 
1992-2004
tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4)
context : ver: 2005.03.16
cont-en : ver: 2005.03.16  fmt: 2005.3.23  mes: 
english

Nevertheless, the space between items in the publicationlist is
slightly smaller than between normal lines. You can observe it best if
you set the interlinespace to something like 5ex.
I tried something like
\setuppublicationlist
 [after={\vskip2pt}]
but this is just a guesstimate and will have to be adapted when I
change the bodyfont or the interlinespace.
On an unrelated note: A couple of months ago, somebody posted about
problems with cross-references. You supplied a workaround then:
\setbox0\vbox{\placepublications}
\completepublications
This still works, but any chance that the bug will be fixed?
But most importantly: thanks for providing this wonderful tool!
Best
Thomas
On Mar 29, 2005, at 6:05 PM, Taco Hoekwater wrote:
Hi Thomas,
Thomas A.Schmitz wrote:
I've been playing with Taco's bibmodule, and I'm absolutely thrilled
how easy it is to customize things. Once you've groked how things
work, you can simply copy code from bibl-apa.tex and modify, it's
just wonderful (OT: what does apa stand for in this abbreviation?
For me, it's the American Philological Association, but I guess
that's not meant here.)
American Psychological Association, http://www.apastyle.org
1. Is  there a general option to have the publicationlist typeset in
a smaller font size? The default seems to be the general bodyfont,
but I couldn't see where this could be modified.
The easiest solution is not to use \completepublications, but
\placepublications, something like this (untested):
  \section{References}
  \switchtobodyfont[8pt]
  \placepublications

2. The space between the items does not follow the normal
interlinespace, but is fixed to a somewhat smaller value, which 
looks
a bit bizarre. Is there any way to modify this behavior.
I believe this may depend a bit on your ConTeXt  bib module
version(s).
The current one looks fine (I think), but I know for a fact that 
there
have been some problems with older versions, and perhaps they have
not been resolved properly. See the options to \setuplist in texshow,
if you want to tweak the spacing between items, you can use all those
options inside a \setuppublicationlist command.

Greetings, 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
___
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


[NTG-context] run external programs from tex

2005-03-30 Thread Eckhart Guthöhrlein
Hi,

I wonder what would be the best way to use programs inline like it is
possible for metapost. Are there already macros to set this up easily?
I would like to use gnuplot, so something like
[start|stop]GNUPLOTgraphic would be fine. Has anybody tried this or
something similar?

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


[NTG-context] bibmodule requests

2005-03-30 Thread Stefano
I have been using the bibmodule for a couple of weeks now, and it works
great!  ... but, I have run into some situations that are not considered.

(1) It would be nice to visually distinguish the cited author using a
different font or style in the text.  I was able to add \c!authorstyle to
\setupcite and make changes to the appropriate areas in the t-bib.tex
module.  I suppose I could also add a \c!yearstyle as well to allow for old
style figures.  In my case, I set \c!authorstyle={\em}

(2) Another situation arises when dealing with multiple references from the
same author in the same year.  The years have a lower case letter added,
such as 1995a, 1995b, 1995c, etc.

For example, let's say I have three entries:

article1 ... 1995a
article2 ... 1995b
article3 ... 1995c

These entries are labelled a,b,c when using BibTeX to process the .bib file
to the .bbl file.  Unfortunately, the .bbl file contains all entries, since
the .aux file contains the line \citation{*}.  If I cite article2 and
article3 in my document, the publication list uses 1995b and 1995c and my
citations use the same years, and doesn't start with 'a'.  The only way I
have found to remedy this situation is to create a .bbl file that only
contains the BibTeX entries which I have cited.  These cited entries are
listed in the .tui file that texexec creates.  Unfortunately, the .tui file
requires the entire .bbl file in order to list the entries cited ... so I
have devised the following process ...

step 1) run BibTeX using an .aux file that contains the line \citation{*}
step 2) run texexec document --once (this creates .tui with the list of
cited entries)
step 3) rename the .aux to ._au file
step 4) use the ._au and .tui files to create a new .aux which only lists
the entries cited instead of \citation{*} ... for example ...
\citation{Smith2001}
\citation{Jones1995}
\citation{Smith1999}
... etc.
step 5) run BibTeX again ... this will create a .bbl which only contains the
cited entries, ensuring that the years are labelled correctly i.e. 1995a,
1995b, etc.
step 6) run texexec document to create the final document

Is there any consideration to having .aux file created by texexec based on
the entries cited in the document?  I ended up creating a batch file to do
this so it's not really an issue for me.  Is there a better way to do this?

(3) Another issue I found is when using the
\cite[year][label1,label2,label3,etc.] and I have years such as 1995a,
1995b, 1995c, etc. only one of those years is listed, while if I use
\cite[author] or \cite[authoryear] or \cite[authoryears], all the required
years are listed.  Unfortunately, the grouped years are not in order i.e.
1995b before 1995a, but it looks like this depends on the ordering of the
labels.

(4) Another issue is with regards to the author names in the publication
list.  The first author is typically inverted (last name before first name),
but all subsequent authors are normal (first name before last name) ... for
example ... Smith, A.B, C.D. Jones, E.J. Doe, and J.T. Morgan ... The use of
author styles such as \normalauthor \invertedshortauthor, etc. applies to
the entire list of authors.  Is there any way to specify one style for the
first author and a different style for the second and subsequent authors?

(5) Is it possible to have additional annotations with a citation?  For
example, if I want to refer to page 27 from Smith et al., I would have
(Smith et al., 1995a, p. 27).  Another possibility is to have (e.g. Smith et
al., 1995a, p.27).  I suppose I could blank out the brackets in \setupcite
and do the following ... (e.g. \cite[smith1995], p.27) or create a custom
\def such as

\def\Cite[#1][#2][#3]{(#1 \cite[#2], #3)} and use it as such ...
\Cite[e.g.][smith1995][p. 27]

Any information is appreciated.


Sincerely,

Stefano

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


[NTG-context] \= in tables

2005-03-30 Thread Idris Samawi Hamid
Just in case this was missed-)
On Sat, 26 Mar 2005 09:05:19 -0700, [EMAIL PROTECTED] wrote:
Dear cartel,
\= does not work in tables (I think that the TABLE macros define \= 
differently; why on earth would someone do that?!?). Is there a workaround?

Idris
===
% output=pdf interface=en
\starttext
\setupinterlinespace
\setupfloats[location=center]
\placetable
[here][tab:test]{Test.}
\starttable{|c|c|}
\HL
\VL macron  ({\=a})  \VL accents ({\=a}) \VL\FR
\HL
\VL do  not ({\=a})  \VL work({\=a})\VL\NR
\HL
\VL in  ({\=a})  \VL tables  ({\=a})  \VL\LR
\HL
\stoptable
\stoptext
===
log:
===
systems : begin file test4 at line 3
! Misplaced \omit.
\!ttLongHrule -\omit
   \span \omit \span \!ttShortHrule l.11 \VL macron  
({\=
  a})  \VL accents ({\=i}) \VL\FR
===

--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \= in tables

2005-03-30 Thread Hans Hagen
Idris Samawi Hamid wrote:
\= does not work in tables (I think that the TABLE macros define \= 
differently; why on earth would someone do that?!?). Is there a workaround?
\amacron
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] run external programs from tex

2005-03-30 Thread Hans Hagen
Eckhart Guthöhrlein wrote:
Hi,
I wonder what would be the best way to use programs inline like it is
possible for metapost. Are there already macros to set this up easily?
I would like to use gnuplot, so something like
[start|stop]GNUPLOTgraphic would be fine. Has anybody tried this or
something similar?
you can have a look at m-pstric
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] Problem with the bib module (yeah, so what else is new)

2005-03-30 Thread Nikolai Weibull
OK, another one of those hey, the bib module has an issue-kind of
mails.  The problem is that \bibdoif and its relatives don't work.
They always evaluate to true.  I have tried to figure out why this is
so, but I'm just not good enough at reading TeX macros (yet).  The main
problem is that I want to do something like this for my
\setuppublicationlist:

\doglobal\newif\ifBIBLoutputbeforesurname
\global\BIBLoutputbeforesurnamefalse

\def\BIBLwholename#1#2#3#4#5%
  
{\bibdoif{#1}{#1\unskip\bibalternative\c!firstnamesep\BIBLoutputbeforesurnametrue}%
   
\bibdoif{#4}{#4\unskip\bibalternative\c!firstnamesep\BIBLoutputbeforesurnametrue}%
   \bibdoif{#2}{#2\unskip\bibalternative\c!vonsep\BIBLoutputbeforesurnametrue}%
   \ifBIBLoutputbeforesurname \else
 \unskip%
 \BIBLoutputbeforesurnamefalse%
   \fi
   #3\bibalternative\c!surnamesep%
   \bibdoif{#5}{#5\unskip}}

The problem is that one can't have

\author[]{}[]{}{Organization}

without extra spaces appearing before the Organization.  Another issue is that
extra spaces occur between the first and last name in the \normalauthor
style,
nikolai

-- 
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: minimalistic.org   :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \typebuffer with typing name

2005-03-30 Thread Vit Zyka
Hi everybody, please consider:
---
\definetyping[TEX]
\setuptyping[TEX][option=TEX]
\starttext
\startbuffer[A]
  \somemacro[bla][obla=vbla]
\stopbuffer
\typebuffer[A]
\stoptext
---
It works perfectly. I would like to type buffer with options for typing, 
e.g.
  \typebuffer[A][TEX]
but the second param is ignored. It seems to me, the definition of 
\typebuffer is preprepared for that, but not finnished.

Or is there some solution that I omitted?
(It is not crutial since I solved it by calling
  \typefile[TEX][]{\jobname-A.tmp}
)
Thanks
vit
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \= in tables

2005-03-30 Thread Idris Samawi Hamid
On Wed, 30 Mar 2005 18:13:56 +0200, Hans Hagen [EMAIL PROTECTED] wrote:
Idris Samawi Hamid wrote:
\= does not work in tables (I think that the TABLE macros define \= 
differently; why on earth would someone do that?!?). Is there a 
workaround?
\amacron
I actually already did that for the tables;-) In any case is this behavior 
of TABLES a necessary feature or a bug? In cases of extensive 
transliteration (like my journal) using \*macron etc consistently 
throughout when editing will be a real pain (it's already a pain enforcing 
consistent transliteration between authors)...

But thnx as always:-)
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Multiple image directories

2005-03-30 Thread Gerben Wierda
I tried to use two image directories, but that does not work. Can I do  
something like that? E.g.

\setupexternalfigures[directory=../images,directory=../ 
mp,maxwidth=\textwidth]

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


[NTG-context] Another directories question (to avoid littering)

2005-03-30 Thread Matthias Weber
When using metapost (like when doing backgrounds), the directory in 
which my
project file resides is being littered by a few dozed files all named 
...-mpgraph.

Is there a way to have these files written in some directory ./junk so 
that I can keep my working directory
tidy?

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


Re: [NTG-context] Multiple image directories

2005-03-30 Thread Willi Egger
Hi Gerben,
If you need to add more than one parameter to one option then use {...}
% \setupexternalfigures [\c!gebied={e:/fig/eps,t:/mine/figs}]
from cont-sys.tex
Groet Willi
Gerben Wierda wrote:
I tried to use two image directories, but that does not work. Can I do  
something like that? E.g.

\setupexternalfigures[directory=../images,directory=../ 
mp,maxwidth=\textwidth]

G
___
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] Another directories question (to avoid littering)

2005-03-30 Thread Willi Egger
Hi Matthias,
I don't know. But you can use
texutil --purge (will keep the *.tuo files)
texutil --purgeall (will delete all auxiliary files from the directory)
Willi
Matthias Weber wrote:
When using metapost (like when doing backgrounds), the directory in 
which my
project file resides is being littered by a few dozed files all named 
...-mpgraph.

Is there a way to have these files written in some directory ./junk so 
that I can keep my working directory
tidy?

Thanks,
Matthias
___
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


[NTG-context] Re: good-looking tables in context

2005-03-30 Thread Patrick Gundlach
Hi Eckhart,

 - There are rules of different thickness for top, bottom, and middle
   rules.

[...]

One day I hacked my own code around some tabulate material to get this
(rulethickness) done. I whish this feature would be in the kernel.

I sometimes do heavy tabulate typesetting. This is one of the last
reasons using LaTeX for me. 

Sorry of not being of any help.

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] run external programs from tex

2005-03-30 Thread Peter Münster
On Wed, 30 Mar 2005, Eckhart Guthöhrlein wrote:

 I wonder what would be the best way to use programs inline like it is
 possible for metapost. Are there already macros to set this up easily?

Just a small example (can be put to the wiki):
http://pmrb.free.fr/work/OS/ConTeXt/createFig/

If you use teTeX, you should verify, that shell_escape = t in texmf.cnf.

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] widow and orphan control

2005-03-30 Thread speter
On 3/29/2005, Paul Tremblay [EMAIL PROTECTED] wrote:

I've hunted around the web quite a bit, and there doesn't seem to be an
easy way to do this. I tried:

clubpenalty=-600
widowpenalty=-600

But this had no effect.

You just told TeX that it's a good idea to have widows and orphans.
Negative numbers mean there's less of a penalty for widows and orphans.
Try assigning a high positive number (up to 1). (150 is the default
in Plain TeX.)

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


Re: [NTG-context] widow and orphan control

2005-03-30 Thread Hans Hagen
Paul Tremblay wrote:
On Wed, Mar 30, 2005 at 08:53:31AM +0200, Hans Hagen wrote:
What I would need is some type of macro that can determine how much
space is left on the page. If the space is less than some small,
pretermined amount (say, 24 points, for example), then put the title on
the next page, or put in a \blank[24pt, flexible]
I know nothing about writing macros, or if this is possible. 
\testpage[24pt]


This produces an unwanted pt in my text.
But if I use:
\testpage[3] 

I get some very interesting result. It almost seems from my tests that
ConTeXt will break if it can't put 3 more lines on the page. Almost,
anyway. If I have spaces as in:
\testpage[3]
Title\par
\blank[24pt]
The code doesn't quite work. It might even make an ugly orphan of poor
title. In that case I have to increase the option in \testpage to 5 or 6
to work. 
actually it's
\testpage[noflines][dimensions]
normally you will indeed use a value of 5 or 6 (whitespacee + title of two lines 
+ whitespace + first line of paragraph)

i don't know how you place titles, but why not:
\definesection[mytitle][subsubsubsubsubject]
\mytitle{...}
because that takes care of most situations
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] Beginnner's question: fumbling with font finding failures.

2005-03-30 Thread Paul R Martin
Dear ConTeXters,
I'm a newcomer to ConTeXt and to this congenial and obviously active  
list:  please bear with me and read my story. I'll be much more  
succinct in future.

Last week, I installed TeTex and ConTeXt [Mac OS X 10.3 Panther]. I'm  
working my way through the Excursion and This Way/ My Way  
documents. They are great documents, ConTeXt is a great  package, and  
I've had some timely tips from Hans Hagen (Hail thee, Hans!). I've made  
some good progress. I have learned the difference between a  _Hasselter  
juffer_ and a _Hasselter bitter_, but I'm still not sure what one does  
with a _foekepot_. I suspect that it's a percussion instrument, but  
that's beside the point.

I have a history of user-level LaTeX formatting in my distant past.  
I've mostly been stuck in the dark, ragged, dreary, world of MS Office  
for the past decade, so you can understand my joy to see beautiful,  
colourful .pdf pages rolling up my screen, as a result of typing  
straightforward, comprehensible formatting commands in a plain text  
ascii file. As my fellow Australians would say: ** You little ripper!  
**

Now, I've managed to side-step some menacing signs of absent fonts as I  
progressed. My goals are straightforward (technical documentation and  
scientific writing), so I've been happy to accept the font  
fallback/replacement routines. Further, my glimpses into the pages and  
pages of information about font handling make me think that it's a kind  
of bad neighbourhood for a person like me to enter, just as it was when  
TeX and I were young.

But now I've struck the following blockade in my quest to produce a 'My  
Way' document, which I did by simply

	1) cutting and pasting the source code from the page 3 of My Way #0  
[mag-.pdf]
	2) changing the author name, and
	3) saving the resultant text as [mwy-000-Test.tex],  then
	4) running the perl texexec script on it.

OK, don't snicker, it may not be such a silly thing to try. I'm sure  
there are other people who might try this kind of approach. Here is the  
gist of the result -- ellipses mark my deletions.

--START---
[nvri-hayden:~/Documents/ConTEXt/MyWay] paulm% texexec --color --pdf  
mwy-000-Test

 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
...
system  : macros of module mag-01 loaded
...
(/usr/local/teTeX/share/texmf.tetex/tex/context/base/type- 
akb.tex)kpathsea: Running mktextfm uplr8t
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1;  
nonstopmode; input uplr8t
This is METAFONT, Version 2.71828 (Web2C 7.5.3)

kpathsea: Running mktexmf uplr8t
! I can't find file `uplr8t'.
* ...:=ljfour; mag:=1; nonstopmode; input uplr8t
Please type another input file name
! Emergency stop.
* ...:=ljfour; mag:=1; nonstopmode; input uplr8t
Transcript written on mfput.log.
grep: uplr8t.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode;  
input uplr8t' failed to make uplr8t.tfm.
kpathsea: Appending font creation commands to missfont.log.

...
! Font \*palatino12ptrmtf*:=uplr8t at 12.0pt not loadable: Metric (TFM)  
file no
t found.

...
-FINISH---
[etc etc, I think that 'nonstopmode' might have been why this loop  
continued for the next 120 seconds. BTW I typed 'Q' in response to the  
input file name request  above].

Now, it's obvious from the ContextGarden that I've probably missed some  
step in font configuration. But when I start to look in the numerous  
sources of advice, I strike the usual frustration. There are lots of  
statements (lots and lots of 'em!) about checking and un-commenting and  
configuring, but I can find no list of *prioritised* things for  
beginners to try, in the order which they should be tried, in order to  
solve what looks to be a simple and typical problem. Without such a set  
of instructions, I'm loath to change anything in my configuration, for  
fear that the cure might be worse than the disease.

I'd love to try to understand the source of the error, and how to  
handle fonts professionally, and lots of other things as well. But I'm  
a busy scientist with many other commitments. As long as ConText is  
working I'm happy, but  I can't devote much time to delving into  
errors. So I may not be a typical participant in this list. But if you  
help me,  you will help to make ConTeXt more accessible to others like  
me, and this will be good for the cause, _nes pas?_  I'd be happy to  
write a my way document or contribute a Wiki page on this topic to  
encapsulate any good advice for myself and other neophytes.

Yours,
P.
Paul R Martin
National Vision Research Institute of Australia
Tel: +613 9349 7481
[EMAIL PROTECTED]
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] presentation in ConTeXt

2005-03-30 Thread 정 달영
Hi all,
It is my first mail to this list.
I am using XeTeX and XeTeX + ConTeXt environment for my most files for 
sometime. It worked fine and the output is really great.
I'd like to use it to create a presentation instead of using LaTeX + 
beamer.
I have seen many output samples of the presentation styles like 
s-pre-#.tex. But I didn't find how to use it in the ConTeXt manual. 
Recently, I googled and found some files for presentation including 
Hraban's source, but I didn't succeed.

I try to compile it in the pure ConTeXt environment,
texexec --pdf project_pdf-info.tex
and got some error messages.
.
bodyfont: bodyfont 16pt is defined (can better be done global)
bodyfont: bodyfont 16pt is defined (can better be done global)
system  : macros of module chart loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/m-chart.tex
XML : loading flowchart support
))
systems : end file env_pdf-info at line 3
systems : begin file prd_grundlagen at line 46
(./prd_grundlagen.tex
! Undefined control sequence.
\StartTitlePage ...lign [right] \stelinterliniein
  \vfil \let \\=\vfil
l.4 \StartTitlePage
? x
No pages of output.
.
Now I am using OS X 10.3.8 and Gerben's installation.
What should I do to remove this error?
Is there any place or samples  to show how to create presentation?
I am sorry if it is too well known subject.
Regards,
Dalyoung
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] widow and orphan control

2005-03-30 Thread Paul Tremblay
On Wed, Mar 30, 2005 at 08:53:31AM +0200, Hans Hagen wrote:
 What I would need is some type of macro that can determine how much
 space is left on the page. If the space is less than some small,
 pretermined amount (say, 24 points, for example), then put the title on
 the next page, or put in a \blank[24pt, flexible]
 
 I know nothing about writing macros, or if this is possible. 
 
 \testpage[24pt]
 
 

This produces an unwanted pt in my text.

But if I use:

\testpage[3] 

I get some very interesting result. It almost seems from my tests that
ConTeXt will break if it can't put 3 more lines on the page. Almost,
anyway. If I have spaces as in:

\testpage[3]
Title\par
\blank[24pt]

The code doesn't quite work. It might even make an ugly orphan of poor
title. In that case I have to increase the option in \testpage to 5 or 6
to work. 

So what exactly does the argument stand for? This command might be
really useful.

Thanks

Paul

-- 


*Paul Tremblay *
[EMAIL PROTECTED]*

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


Re: [NTG-context] widow and orphan control

2005-03-30 Thread Paul Tremblay
On Wed, Mar 30, 2005 at 11:53:49AM +0200, Vit Zyka wrote:
 Vit Zyka wrote (11:35):
 \penalty50
 \vskip3\baselineskip plus1fil
 \nobreak
 \vskip-3\baselineskip plus-1fil
 
 It is useful before section title etc. I believe it is implemented to 
 ConTeXt, but I do not know the interface.
 

This didn't work for me. I did some of the other suggestions to work,
though. Thanks!

Paul

-- 


*Paul Tremblay *
[EMAIL PROTECTED]*

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


Re: [NTG-context] Re: widow and orphan control

2005-03-30 Thread Paul Tremblay
On Wed, Mar 30, 2005 at 09:31:07AM +0200, Patrick Gundlach wrote:
 
  \clubpenalty=-600
  \widowpenalty=-600
 
  But this had no effect.
 
 
 try inserting things like these after \starttext. There was a problem
 on the mailinglist like this some time ago.
 

Yes, that did the trick. Can anyone tell me if -600 is a reasonable
value? My tests seem to say so. There are at least 3 lines on the bottom
of my test page.

Thanks

Paul

-- 


*Paul Tremblay *
[EMAIL PROTECTED]*

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


Re: [NTG-context] Re: widow and orphan control

2005-03-30 Thread Paul Tremblay
On Wed, Mar 30, 2005 at 09:24:53AM +0200, Patrick Gundlach wrote:
 
  ConTeXt has not \flushbottom command. The \flushbottom gives the heigh
  flexibility.
 
 what about looking in the wiki for \flushbottom?
 

Yes, I see:

\setupalign[line]

Though it turns out I don't need to use this to get the penalties to
work. Still, it is nice to know how to do this. I wasn't even aware that
ConTeXt wasn't pushing my text to the bottom of the page. 

I wonder how 

\pagesetup[width=middle] 

is going to affect all this? I hope not at all.

Paul


-- 


*Paul Tremblay *
[EMAIL PROTECTED]*

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


Re: [NTG-context] widow and orphan control

2005-03-30 Thread Vit Zyka
[EMAIL PROTECTED] wrote:
From: Vit Zyka [EMAIL PROTECTED]
Hans Hagen wrote (8:53):
Paul Tremblay wrote:
What I would need is some type of macro that can determine how much
space is left on the page. If the space is less than some small,
pretermined amount (say, 24 points, for example), then put the
title on
the next page, or put in a \blank[24pt, flexible]
I know nothing about writing macros, or if this is possible. 
\testpage[24pt]
Vit Zyka wrote (11:35):
\penalty50
\vskip3\baselineskip plus1fil
\nobreak
\vskip-3\baselineskip plus-1fil

It is useful before section title etc. I believe it is implemented to
ConTeXt, but I do not know the interface.

Actually, no! Both your responses help me out.
Could you explain your snippet of code? I don't quite know what 
the \penalty50 means.
Penalty works for both vertical and horizontal mode.
Penalty is place where a break can occure (with some panalization).
Border values have these meanings:
  \penalty1 = \nobreak,
  \penalty-1 = force \break,
  \penalty0 = neutral value (same penalty as \par or space)
But, forget my 'solution', next example shows it does not work in 
ConTeXt (glues and penalty are not discarded at the top of next page). 
And in addition it has to cooperate with output routine (needs 
\raggedbotom).

Actually, Hans's \testpage is based on another trick (as I look up, it 
is defined by comparing \pagegoal and \pagetotal registers) and it is 
more general.

vit
-
\setuplayout[lines=10]
\showgrid
\starttext
  \dorecurse{9}{Line \recurselevel\hfill\break}%
  \par
  \penalty50
  \vskip 3\baselineskip
  \nobreak\vskip-3\baselineskip
  Hallo
\stoptext
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context