[NTG-context] SciTE under Windows and Metapost

2007-09-28 Thread Michal Kvasnička
Good morning (or whatever you have in Europe now).

Two or three week ago I've installed the minimal ConTeXt distribution under
Windows. My first use of TeX under Windows, many thanks for the
distribution, it's great!

However, when I try to compile a metapost/metafun source from the SciTE
editor, it fails. It tries to run mpost directly, and it's not found. I can
run texmfstart texexec --mptex ... in the SciTE's command promt, and it
works, but it's annoying. Can I somehow reconfigure the SciTE to run the
metapost properly (I mean to run texexec --mptex)?

Many thanks.
Michal Kvasnicka

P.S. Hans, would it be possible to add the Metafont into the minimal
distribution? I like it so much I'd like to make it my major distribution
even in Linux, but I need the Metafont since from time to time I still use
some bitmapped font (like Concrete Math). Many thanks.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] luatex "success story"

2007-09-28 Thread Mojca Miklavec
On 9/28/07, Vyatcheslav Yatskovsky wrote:
> Hello all,
>
> Let me share my luatex "success story".   I teach computer science, and 
> current topics I deliver are Numbering Systems and Data Representation. 
> Yesterday, I needed to prepare about twenty test papers with 10 questions per 
> a paper. Examples: "1. convert Dec 36 into Hex",  "2. convert Bin 10010101 
> into Dec", etc. The wording of every question has not to be changed through 
> papers, only numbers had.

Nice :)

> Then I copied my finished test text and pasted it many-many times. (It was 
> probably not very wise approach, but I'm not familiar with looping TeX 
> commands at the moment.) Luatex did the rest of the job perfectly, and in 
> minute I had test papers with identical questions but all different figures! 
> I only had to cut papers apart and hand out to my students.

\dorecurse{30}{\page
... problems ...
}

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] luatex "success story"

2007-09-28 Thread Vyatcheslav Yatskovsky
Hello all,

Let me share my luatex "success story".   I teach computer science, and current 
topics I deliver are Numbering Systems and Data Representation. Yesterday, I 
needed to prepare about twenty test papers with 10 questions per a paper. 
Examples: "1. convert Dec 36 into Hex",  "2. convert Bin 10010101 into Dec", 
etc. The wording of every question has not to be changed through papers, only 
numbers had.

Instead of filling in numbers manually, I took more intelligent approach and 
(with Hans' help) wrote simple lua scripts to generate random numbers right 
inside my document:

% question involving random decimal number 
 Convert \ctxlua{n=math.random(30,60) ; tex.print(n) ;}\low{10} into Bin.
 
% question involving random binary number 
 Convert  
  \startluacode 
for c = 1, 16 do
  n = math.random(0,1)
  tex.sprint(n) 
end
  \stopluacode\low{2} into Hex.

and so on... I specified the lower and upper limits as two arguments of random 
function, and that was very easy indeed.

Then I copied my finished test text and pasted it many-many times. (It was 
probably not very wise approach, but I'm not familiar with looping TeX commands 
at the moment.) Luatex did the rest of the job perfectly, and in minute I had 
test papers with identical questions but all different figures! I only had to 
cut papers apart and hand out to my students.

Best regards,
Vyatcheslav Yatskovsky

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Completelistoffigures, help needed!

2007-09-28 Thread Peter Rolf
G.C.H.M. Verhaag schrieb:
>   Dear ConTeXt Users,
> 
> Thanks to those that contributed to this thread! The code
> 
> \setupcaption[figure][distance=\zeropoint]
> \defineconversion[gobble][\gobbleoneargument]
> \setupnumber[figure][conversion=gobble]
> \setuplabeltext[figure=]
> 
> just did the trick, but I don't understand why! Maybe I shouldn't bother 
> at the moment! By the way, am I right in saying that the interaction 
> feature of the list doesn't work when using this trick?
> 
> Well, I've one more question related to the list of figures.
> Is there a way to truncate a long caption to a maximum of just no more 
> than a fraction of the length of a textline and indicate the truncation 
> by for example a few dots (...)?
> Something like:
> 
> A very long figure caption truncated just here...   
>  pagenumber
>
http://wiki.contextgarden.net/Cropping_text

Best wishes, Peter

> Regards,
>  Gerard
> 

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Completelistoffigures, help needed!

2007-09-28 Thread G.C.H.M. Verhaag
  Dear ConTeXt Users,

Thanks to those that contributed to this thread! The code

\setupcaption[figure][distance=\zeropoint]
\defineconversion[gobble][\gobbleoneargument]
\setupnumber[figure][conversion=gobble]
\setuplabeltext[figure=]

just did the trick, but I don't understand why! Maybe I shouldn't bother 
at the moment! By the way, am I right in saying that the interaction 
feature of the list doesn't work when using this trick?

Well, I've one more question related to the list of figures.
Is there a way to truncate a long caption to a maximum of just no more 
than a fraction of the length of a textline and indicate the truncation 
by for example a few dots (...)?
Something like:

A very long figure caption truncated just here...   
 pagenumber

Regards,
 Gerard

-- 
Geert C.H.M. Verhaag
St. Jorisstraat 29
5954 AN Beesel
NETHERLANDS

Tel.: +31-(0)774742493, E-mail: [EMAIL PROTECTED]



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Arabic/English typesetter needed.

2007-09-28 Thread Arthur Reutenauer
Hello,


  I think I qualify: I have been studying Arabic during 5 years as a
third language (although I've never had the opportunity to use it, so
sadly enough, I can't really speak it).

  In the past few months I have used ConTeXt to typeset a lot of things
(and before that, LaTeX for many years), but no book yet.

  Anyway, this is to say I'm interested in the project.

Yours,

Arthur
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Arabic/English typesetter needed.

2007-09-28 Thread John Culleton
A poster on the self-publishing list is looking for a typesetter who can 
handle a dual language book, Arabic and English.  I don't qualify :<) This 
list with its international membership seemed a good place to inquire.  

If interested please drop me a line and I will forward to the other poster.
-- 
John Culleton
http://wexfordpress.com
http://wexfordpress.com/tex/shortlist.pdf


_
Need personalized email and website? Look no further. It's easy
with Doteasy $0 Web Hosting! Learn more at www.doteasy.com
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] How to include animation into pdf

2007-09-28 Thread WN
Hello All,

I made a little animation with Asymptote 
(http://asymptote.sourceforge.net) which
is self contained in a single pdf. The reason of using Asymptote is, 
that it produces a single
pdf  without having to combine the resulting pdf's files myself.

I now want to include this animation into my main document
with the help of \externalfigure[animation.pdf]

\setupcolors[state=start]
\setupinteraction[state=start]
\starttext
\externalfigure[animation.pdf]
\stoptext

Alas I don't see my animation, to be honest I did not expect it to work, 
but I thought I give it a try.

Thanks
Wim


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___