[NTG-context] Problem with \mainlanguage[fr] and javascript

2005-04-27 Thread Denis Pinsard
Hello,
The following code doesn't work with the fr option.
It seems that there is interferences with javascript features.
Any idea to solve this problem is welcome.
Thank you in advance.
\mainlanguage[fr]
\setupinteraction[state=start]
\definefield [Help] [check] [HelpSetup] [helpinfo] [helpinfo]
\setupfields[reset]
\setupfield[HelpSetup][option={readonly,hidden}]
\definesymbol [helpinfo] [SomeHelpText]
\starttext
\fitfield[Help]
\goto {Help} [JS(Toggle_Hide{Help})].
\stoptext
--
Denis.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] paragraph enumeration

2005-04-27 Thread Adam Lindsay
Taco Hoekwater said this at Tue, 26 Apr 2005 12:42:05 +0200:

>piskala upendran wrote:
>> The paragraph enumeration is useful for only for
>
>You mean that hack with \startParagraphs I posted a week
>or so ago on this list?

I'm seeing this thread, and think about \setupparagraphnumbering. It
doesn't have the configuration options that allow the numbers to be set
in the text, but it strikes me as a good departure. You don't have to
turn it off for headings, either:

\starttext
\showframe
\setupcolors[state=start]
\setupparagraphnumbering[state=start,style=italic,distance=0pt]
%\startlinenumbering
\section{bloo}
\input knuth 
\section{blah}
\input knuth \par 
\setupparagraphnumbering[state=stop]
\input tufte \par
\setupparagraphnumbering[state=start,color=red]
\dorecurse{4}{\input tufte \par}
\stoptext

 
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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


Re: [NTG-context] Right way to load hyphenation patterns

2005-04-27 Thread Hans Hagen
Ville Voipio wrote:
I want to use a non-standard hyphenation pattern (Finnish)
in some of my documents. I have been able to make it work
by:
  editing cont-usr.tex (removing a % from the \installlanguage)
  remaking formats (texexec --make)
  copying the format wile to the .../web2c directory
This works. However, I read in the Wiki that "It is generally 
better to add local settings to a run-time included file like 
cont-sys.tex instead, so unless your stuff does absolutely 
have to become part of the format file, you are better off 
leaving this file well alone."

So, where should I put the \installlanguage directive for
it to be in the right place? Is it something that really has
to be there when the formats are being built, or could it
be loaded afterwards (i.e. at run-time)? Could it be put in
the cont-sys.tex?
texexec --make --all
will add all patterns
also, you can download a zip with patterns from our website (since you can never 
be sure what is on your system)

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] Postscript fonts (was: gwTeX and missing PS fonts)

2005-04-27 Thread Idris Samawi Hamid
Hi Ville,

>= Original Message From mailing list for ConTeXt users 

>  I want to make documents with Times/Helvetica/Courier
>  combination (as was done with "pos"). I do not have the
>  commercial fonts, but I do have the TeX Live (or teTeX)
>  distribution. What is the right way to get to use the
>  fonts?

The following works for me in the latest official Context (3-16-05):

\starttext

\definetypeface [helvetica] [ss] [sans] [helvetica] [default] [encoding=ec]
\switchtotypeface [helvetica] [12pt,ss]

Helvetica

\input tufte.tex

\definetypeface [times] [rm] [serif] [times] [default] [encoding=ec]
\switchtotypeface [times] [14.4pt,rm]

Times

\input tufte.tex

\stoptext

Best
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] Right way to load hyphenation patterns

2005-04-27 Thread Ville Voipio
I want to use a non-standard hyphenation pattern (Finnish)
in some of my documents. I have been able to make it work
by:

  editing cont-usr.tex (removing a % from the \installlanguage)
  remaking formats (texexec --make)
  copying the format wile to the .../web2c directory

This works. However, I read in the Wiki that "It is generally 
better to add local settings to a run-time included file like 
cont-sys.tex instead, so unless your stuff does absolutely 
have to become part of the format file, you are better off 
leaving this file well alone."

So, where should I put the \installlanguage directive for
it to be in the right place? Is it something that really has
to be there when the formats are being built, or could it
be loaded afterwards (i.e. at run-time)? Could it be put in
the cont-sys.tex?

TIA,

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


[NTG-context] Postscript fonts (was: gwTeX and missing PS fonts)

2005-04-27 Thread Ville Voipio
> However, something else broke when I upgraded. I cannot get the 
> Postscript fonts working anymore. Here is what I have in the file:
>
>\usetypescript[adobekb][\defaultencoding]
>\setupbodyfont[pos,11pt]

By some grepping into the sources I found the problem. It seems
that the file type-pre.tex has changed between the versions I
have been using. Now there is the extra line:

  \starttypescriptcollection[previous]

which seems to cause the problem of "unknown variant: pos". Without
knowing anything more, a simple "usetypescriptcollection" or
something similar would be my guess.

However, I am a bit afraid of the word "previous" and the comments
in the beginning of the file.

So, a question follows:

  I want to make documents with Times/Helvetica/Courier
  combination (as was done with "pos"). I do not have the
  commercial fonts, but I do have the TeX Live (or teTeX)
  distribution. What is the right way to get to use the
  fonts?

I'm sorry but I do not like the Computer Modern in my reports and
brochures. I want to have something else, and that something
should be easy to use in any distribution.

TIA,

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


Re: [NTG-context] start*matter adding page

2005-04-27 Thread Stuart Jansen
On Tue, 2005-04-26 at 19:59 -0400, David Munger wrote:
> I use to have the same problem some time ago, and I've found the
> solution on the wiki:
> 
> http://contextgarden.net/Empty_page_at_the_end

Thanks. Unfortunately, I'm still having problems with the following
example:

\setupsectionblock[frontpart][page=no]
\setupsectionblock[bodypart][page=no]
\setupsectionblock[appendix][page=no]
\setupsectionblock[backpart][page=no]
\starttext
\startbodymatter
\startcolumns[balance=no]
Lorem ipsum.
\stopcolumns
\stopbodymatter
\stoptext

-- 
Stuart Jansen <[EMAIL PROTECTED]>
Guru Labs, L.C.


signature.asc
Description: This is a digitally signed message part
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Old-style figures throughout the document

2005-04-27 Thread William F. Adams
Idris asked me about this during the previous thread, before I'd joined 
this list.

Here's a slightly edited version of my reply about osf in documents 
with math:

Well, I did the second-pass macros, and most of the math markup / 
editing of a recent translation of Thomas Harriot's _Artis Analyticae 
Praxis_ from 1631 or so, and it (of course) uses old style figures 
exclusively, pre-dating them, as would any mathematics (or other) text 
before the latter part of the 19th century.

Old-style figures are named thusly since the now standard alternative 
lining figures are a fairly recent invention --- a Victorian (some 
would say debased) convention born out of expedience and a desire for 
better looking tabular material --- many railed against them, Charles 
Babbage being a notable example of the opposition to them (noting that 
in tables of logarithms, when used in difficult circumstances (I 
believe the example was an artillery officer doing ballistic 
calculations) absolute unambiguous representation could be a matter of 
life and death and that the extra differentiation provided by ascenders 
and descenders in numbers was highly desirable --- can't recall if Dr. 
Asaf Degani revisited this with his NASA reports on typography or no 
--- if not, he should've).

Bringhurst's prescription (in his _Elements of Typographic Style) is 
perhaps a bit simplistic and doesn't acknowledge the typographical 
palette which has since become readily available in newer fonts 
(Hoefler Text in Mac OS X for example affords one proportional lining 
figures, monospaced lining figures, proportional old-style figures and 
lining old-style figures --- a text typeface I've been working on goes 
this even better, adding three-quarter height proportional and 
monospaced figures, and French versions of the old-style figure 
versions as well).

Bringhurst's rule 3.2.3 would seem a better arbiter, ``Refer 
typographical disputes to the higher courts of speech and thinking.''.

Knuth, in ``Typesetting Concrete Mathematics'' (_Digital Typography_, 
pg. 369) has a cogent observation when he writes, ``This experience 
proved to be worthwhile because it taught me that there is a useful and 
meaningful distinction between text numerals and mathematical 
numbers.''

There's been some discussion of old-style figures for mathematics on 
comp.text.tex, but I don't think any absolute statement could 
reasonably be made. It's certainly valid that using lining figures for 
mathematics does provide a useful distinction (and it also greatly 
eases typographic issues such as the placement of super and 
sub-scripts), but the counter-argument that mathematics is a valid 
textual discussion form is certainly appropriate as well.

Arguably this would be a good place to use Bruce Roger's ``allusive 
typography'' principle. Anything set in a design more recent than 
Baskerville should use of lining figures in the absence of a reason 
not, while older texts could consider the use of old-style figures if 
concerns such as super and sub script placement can be worked out. But 
perhaps even that's too simplistic and formulaic.

A far more productive thing probably would be to look at actual sample 
pages to consider things in context (sorry, couldn't resist the pun).

Anyway, I hope this helps somewhat and is of use in your consideration.
William
--
William Adams, publishing specialist
voice - 717-731-6707 | Fax - 717-731-6708
www.atlis.com
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Old-style figures throughout the document

2005-04-27 Thread Viktor Varheit

> We just had a discussion about this. Maybe
> http://archive.contextgarden.net/thread/20050413.132347.43f37eb6.html
> will be of help.

Thanks, Eckhart. Shame on me, I did not find this thread. I've just
tried the example but it does not work here. I still get ordinary
numbers.

I am using teTeX 3.0, and my ConText is:
ConTeXt  ver: 2005.01.31  fmt: 2005.4.27  int: english  mes: english

Maybe I have to set up anything else?

Viktor


\usetypescript[adobekb][\defaultencoding]
\usetypescript [modern][\defaultencoding]
\usetypescript [map] [latin-modern-os] [\defaultencoding]
\setupbodyfont[modern]

\starttext 

test 1234 test

\stoptext

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++

10 GB Mailbox, 100 FreeSMS  http://www.gmx.net/de/go/topmail
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Old-style figures throughout the document

2005-04-27 Thread Eckhart Guthöhrlein
On Wed, 27 Apr 2005 at 13:52:40+0200, [EMAIL PROTECTED] wrote:
> Is there any way, to change the numbering style globally?

We just had a discussion about this. Maybe
http://archive.contextgarden.net/thread/20050413.132347.43f37eb6.html
will be of help.

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


Re: [NTG-context] new beta (again)

2005-04-27 Thread Hans Hagen
Eckhart Guthöhrlein wrote:
On Fri, 22 Apr 2005 at 20:51:18+0200, Hans Hagen wrote:
Does somebody know which patches still have to be applied to texexec to
get it working?
in texexec.ini/rme set the engine switch to false

As mentioned before, that didn't help.
can you try todays alpha release?

I did, it does not work. Each 'texexec --pdf' run fails with:
Sorry, I can't find the format `cont-en.efmt'; will try `context.efmt'.
I can't find the format file `context.efmt'!
No difference wether I set UseEnginePath to true or false in
texexec.ini.
locate texmf.cnf and check
TEXFORMATS= .;$TEXMF/web2c/{$ENGINE,}
MFBASES   = .;$TEXFORMATS
MPMEMS= .;$TEXFORMATS
TEXPOOL   = .;$TEXFORMATS
MFPOOL= .;$TEXFORMATS
MPPOOL= .;$TEXFORMATS
are you running old binaries?
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] table questions

2005-04-27 Thread Eckhart Guthöhrlein
On Fri, 22 Apr 2005 at 10:21:52+0200, Hans Hagen wrote:
> I'm fighting deadlines right now, but later i'll try to get a look at the 
> current table thread (maybe someone can summarize the problem)

As discussed, I will remind you in a fortnight or so and sum up what is
missing about natural tables. Probably, there will be even more points
until then.

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


Re: [NTG-context] TABLE: spacing, before/after

2005-04-27 Thread Eckhart Guthöhrlein
On Fri, 22 Apr 2005 at 23:09:35+0200, Hans Hagen wrote:
> if you want a hook, try something:
> 
> \def\TBLcharalign#1#2{hooked {\bf #2} on tables}

Not bad for the moment. Well, it interferes with alignemntcharachter,
and of course one would like to use a certain hook for a selection of
cells only. But...

> if you remind me in a couple of weeks i can see if i can generalize it; 
> hooks are a bit tricky because one also needs to know in what pass on is 
> (there are multiple passes in constructing the table)

I will remind you, as well as of the other points.

> before ... after cell, is probably doable but need some thinking (keep in 
> mind that these tables need to span and such; not really complex but needs 
> to be done carefully
> 
> between rows ... tricky since that may interfere with splitting; maybe 
> doable when some limitations are accepted

Thanks a lot so far,
-- 
Eckhart
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Old-style figures throughout the document

2005-04-27 Thread varheit
Hello,

I am experimenting with old-style figures (or text figures, as they are
also called). Basically, I would like every number in my source document
to be typeset in old-style figures (OSF) by default unless stated
otherwise. This means: I want to reverse the mechanism so that I can
explicitly say where NOT to use OSF.

As a work-around I found the following on the list:

\defineconversion[number][\os]
\defineconversion[numbers][\os]

This does not work for plain digits in the text, but it works for
generated numbers like page numbers, and, to some degree, for the
generated numbers of floats. 

\starttext
  \chapter[sample]{Sample}
  \placefigure[here][a]{cap}{test}
  Reference: \in{figure}[a]
  \section[test]{Test}
\stoptext

In this setup, chapter numbers do not use OSF, and the numbers of
figures (as well as references to them) use a mixed form, which
looks rather odd.

I can add

  \setuphead[chapter,section][numberstyle=\os]

which makes heading numbers use OSF, but then again, references like
\in[sample] do not work. Also, the numbering of the section changes
from 1.1 to 1>1 (where > is a right pointing triangle).

To see the results, you can process this:

 cut here -
\defineconversion[number][\os]
\defineconversion[numbers][\os]
\setuphead[chapter,section][numberstyle=\os]
\starttext

\chapter[sample]{Sample}

This is chapter \in[sample].
Below is \in{section}[test].

Here is \in{figure}[a] on \at{page}[a]

\placefigure[here][a]{Caption}{FIGURE}

\section[test]{Test}
\stoptext
 cut here -


Is there any way, to change the numbering style globally?

Thanks,
Viktor


-- 
+++ GMX - die erste Adresse für Mail, Message, More +++

10 GB Mailbox, 100 FreeSMS  http://www.gmx.net/de/go/topmail
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new beta (again)

2005-04-27 Thread Eckhart Guthöhrlein
On Fri, 22 Apr 2005 at 20:51:18+0200, Hans Hagen wrote:
> >>>Does somebody know which patches still have to be applied to texexec to
> >>>get it working?
> >>
> >>in texexec.ini/rme set the engine switch to false
> >
> >
> >As mentioned before, that didn't help.
> 
> can you try todays alpha release?

I did, it does not work. Each 'texexec --pdf' run fails with:

Sorry, I can't find the format `cont-en.efmt'; will try `context.efmt'.
I can't find the format file `context.efmt'!

No difference wether I set UseEnginePath to true or false in
texexec.ini.

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


Re: [NTG-context] XYpic

2005-04-27 Thread Vit Zyka
Henning Hraban Ramm wrote:
Am 26.04.2005 um 17:35 schrieb luigi.scarso:
[OT] Can XYpic be used under Context ? I will try .
At least for  me this works:
\input xy
\xyoption{frame}
\starttext
\framed[offset=10pt]{%
\xy
(0,0) *++=\hbox{text} *\frm{--} ;
(50,0) *++=\hbox{text} *\frm{..} ;
(100,0) *++=\hbox{text} *\frm{=} ;
\endxy}
\stoptext
It can be a way to add some frame style without using metapost.

I don't know XYpic, but it looks interesting.
Would you write a wiki page about it?
Dear Henning,
before I started to use context I had prepared some diagrams in xypic. 
It was the only way I knew for creating vector graphics for both tex and 
pdftex with text and graphics interaction possibility.

For that experience I strongly discourage for using it with context:
1) Xypic has the most obscure syntax I have ever seen.
2) Nobody knows if there are not some name-space problems (redefinitions).
3) Metapost is naturaly incorporated to context, strongly supported, 
higher possibilities and (my opinion) much more intuitive.

So I think that such a contextgarden xypic page would be only confusing.
vit
P.S. If you are still interesting google for xypic manual.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Step repeat pdf in overlay

2005-04-27 Thread Hans Hagen
Randall Skelton wrote:
Hi all,
I've created a small (15x15 mm) tile image (actually a vector PDF)
that I'd like repeat on a cover page but I'm at a bit of a loss as to
how to step repeat* the image.  Here is what I have:
\useexternalfigure[cover][background]
\defineoverlay[cover][{\externalfigure[cover][repeat=yes]}]
\starttext
\setupbackgrounds[page][background=cover]
\startstandardmakeup
My title goes here
\stopstandardmakeup
\stoptext
As one might expect, I get a tiny tile in the centre of the page.  Any ideas?
undocumented (needed for x-fo):
\backgroundimage{1}{\hsize}{\vsize}{\externalfigure[cow][width=3cm]}
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