Re: [NTG-context] Filling a box

2009-04-08 Thread Bostjan Vesnicer
An almost identical solution is given on the wiki (http://wiki.contextgarden.net/Cropping_text) Bostjan \starttext \def\breakeverywhere#1{\if#1\normalspace\space\else#1\allowbreak\fi} \framed [width=4cm,align=normal] {\handletokens i want a framed where the text flushes to the next line

Re: [NTG-context] new beta

2009-04-08 Thread وفا خلیقی
Hi Hans Thanks for the code so that we can use fonts in Plain and LaTeX. I just had two questions 1- I got the code from Khaled. How can I get the beta myself from your repository? I just joined ConTeXt mailing list. 2- Your code works fine but if in LaTeX, I compile a document like

Re: [NTG-context] how to make a coverpage?

2009-04-08 Thread Wolfgang Schuster
Am 08.04.2009 um 01:10 schrieb Jos van Gisbergen: Hi, I'm experimenting with context for a few weeks now and am impressed by its possibilities and clean results. However, everything I want to try out seems to take a lot of trial and error to get right. Especially creating a titlepage for a

Re: [NTG-context] new beta

2009-04-08 Thread Hans Hagen
وفا خلیقی wrote: Hi Hans Thanks for the code so that we can use fonts in Plain and LaTeX. I just had two questions 1- I got the code from Khaled. How can I get the beta myself from your repository? I just joined ConTeXt mailing list. in most cases it's the same as on the website (the ftp is

Re: [NTG-context] new beta

2009-04-08 Thread وفا خلیقی
Thanks. So to use font-dum.lua, Should I have \directlua { dofile(kpse.find_file(fonts-dum.lua,tex)) } ? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

Re: [NTG-context] new beta

2009-04-08 Thread Hans Hagen
وفا خلیقی wrote: Thanks. So to use font-dum.lua, Should I have \directlua { dofile(kpse.find_file(fonts-dum.lua,tex)) no, just put that file in tex/context/base as it is already loaded -

Re: [NTG-context] new beta

2009-04-08 Thread وفا خلیقی
Thanks. But it still gives error and that is (/home/vafa/texmf/tex/luabidi/luabidi.sty) luatex-fonts.lua loaded in 0.023 se conds ) (test.aux) ! Font \OT1/cmr/m/n/17.28=cmr17 at 17.28pt not loadable: metric data not found or bad. to be read again relax l.10 \section{مقدمه} ? The error

Re: [NTG-context] new beta

2009-04-08 Thread وفا خلیقی
Thanks heaps Hans. It is working. ___ 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 :

Re: [NTG-context] Multi-line headers

2009-04-08 Thread Wolfgang Schuster
Am 08.04.2009 um 02:26 schrieb Design Department: I need a multi-line header in the right page corner, with content right-aligned. \setupheadertexts[nothing on left][line 1 \par line 2] doesn't work. Is using a \vbox the correct method of handling this? If so, how?

Re: [NTG-context] new beta

2009-04-08 Thread وفا خلیقی
In ConTeXt, How do you make page numbers Arabic/Persian? Do you do that by some mappings? Thanks ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

Re: [NTG-context] new beta

2009-04-08 Thread Hans Hagen
وفا خلیقی wrote: In ConTeXt, How do you make page numbers Arabic/Persian? Do you do that by some mappings? there are numerous converters that you can hook into the numbering mechanisms but i leave it to the arabic experts to tell which one is best suited

Re: [NTG-context] new beta

2009-04-08 Thread وفا خلیقی
ُ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 /

Re: [NTG-context] new beta

2009-04-08 Thread وفا خلیقی
Tested with luaTeX, Version snapshot-0.38.0-2009040820 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] new beta

2009-04-08 Thread Hans Hagen
وفا خلیقی wrote: Hi again. This is a sample Plain document. with Iran Nastaliq font Arabic alphabets are isolated. but in XB Zar font, we obtain the desired results. this works ok

Re: [NTG-context] new beta

2009-04-08 Thread وفا خلیقی
Hi again. This is a sample Plain document. with Iran Nastaliq font Arabic alphabets are isolated. but in XB Zar font, we obtain the desired results. test.tex Description: TeX document test.pdf Description: Adobe PDF document

Re: [NTG-context] new beta

2009-04-08 Thread وفا خلیقی
Thanks. What I did that. But still that does not get the desired output. (pdf attached.). Maybe it is my fault. Do you get the correct output? test.pdf Description: Adobe PDF document ___ If your question is of

[NTG-context] new mp feature

2009-04-08 Thread Hans Hagen
Hi, especially for mojca (gnuplot) ... multiple isolated mp intances ... predefined are: \defineMPformat[metafun] [\s!format=metafun,\s!extensions=\v!yes,\s!initializations=\v!yes] \defineMPformat[extrafun][\s!format=metafun,\s!extensions=\v!yes,\s!initializations=\v!yes]

Re: [NTG-context] TikZ, MKIV and font switching

2009-04-08 Thread Mojca Miklavec
On Tue, Apr 7, 2009 at 20:13, Renaud Aubin wrote: Hi folks, \usetypescript[helvetica][texnansi] \setupbodyfont[helvetica,12pt] Unrelated: MKIV is not supposed to use texnansi, but MKII returns ! Font \*helvetica7ptmmmrss*:=Helvetica-MathRoman at 7.0pt not loadable: Metric (TFM) file not

Re: [NTG-context] new beta

2009-04-08 Thread Hans Hagen
وفا خلیقی wrote: Thanks. But it still gives error and that is (/home/vafa/texmf/tex/luabidi/luabidi.sty) luatex-fonts.lua loaded in 0.023 se conds ) (test.aux) ! Font \OT1/cmr/m/n/17.28=cmr17 at 17.28pt not loadable: metric data not found or bad. to be read again relax l.10

Re: [NTG-context] TikZ, MKIV and font switching

2009-04-08 Thread Mojca Miklavec
On Wed, Apr 8, 2009 at 13:49, au...@nibua-r.org wrote: Considering \enableregime[utf8] \useencoding[ffr] \mainlanguage[fr] \usetypescript[helvetica][ec] \setupbodyfont[helvetica,12pt] \setupcolors[state=start] \usemodule[tikz] \usetikzlibrary[mindmap] \starttext \input knuth

Re: [NTG-context] TikZ, MKIV and font switching

2009-04-08 Thread Wolfgang Schuster
Am 08.04.2009 um 13:59 schrieb Mojca Miklavec: On Tue, Apr 7, 2009 at 20:13, Renaud Aubin wrote: Hi folks, \usetypescript[helvetica][texnansi] \setupbodyfont[helvetica,12pt] Unrelated: MKIV is not supposed to use texnansi, but MKII returns I'll remove the math part from the helvetica

Re: [NTG-context] new beta

2009-04-08 Thread Hans Hagen
وفا خلیقی wrote: Thanks. What I did that. But still that does not get the desired output. (pdf attached.). Maybe it is my fault. Do you get the correct output? i don't read arabic so maybe others can comment ... i'll upload a new zip later this afternoon (does ik work ok in context?) Hans

Re: [NTG-context] identation question

2009-04-08 Thread frantisek holop
hmm, on Wed, Apr 08, 2009 at 03:25:32PM +0200, frantisek holop said that hi there, this is a quickie for the gurus: i would like to get an inverted identation, where the first line is not inverted but all indented of course... -f -- the cow is a

[NTG-context] identation question

2009-04-08 Thread frantisek holop
hi there, this is a quickie for the gurus: i would like to get an inverted identation, where the first line is not inverted but all the others are: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque nibh ipsum, consectetur sit amet, pellentesque eget, egestas ac,

Re: [NTG-context] new beta

2009-04-08 Thread وفا خلیقی
Thanks Can you also if you can prepare a short document explaining the syntaxt of the font command and options in the font argument? I thought ConTeXt reference should be a starting point. Can you also once you upload it, announce it so that I know? and the link will be

Re: [NTG-context] new beta

2009-04-08 Thread Khaled Hosny
On Wed, Apr 08, 2009 at 09:39:22PM +1000, وفا خلیقی wrote: Thanks. What I did that. But still that does not get the desired output. (pdf attached.). Maybe it is my fault. Do you get the correct output? You need '+curs' as well, since the font relays on cursive attachments extensively. Regards,

Re: [NTG-context] identation question

2009-04-08 Thread Aditya Mahajan
On Wed, 8 Apr 2009, frantisek holop wrote: hi there, this is a quickie for the gurus: i would like to get an inverted identation, where the first line is not inverted but all the others are: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque nibh ipsum, consectetur

Re: [NTG-context] new beta

2009-04-08 Thread وفا خلیقی
You need '+curs' as well, since the font relays on cursive attachments extensively. Regards, Khaled Yes. That works. Thanks ___ If your question is of interest to others as well, please add an entry to the

Re: [NTG-context] Multi-line headers

2009-04-08 Thread Design Department
On Wed, Apr 8, 2009 at 2:42 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: \setupheadertexts[nothing on left][{\framed[frame=off,width=fit,align=right]{line1\\line2}}] Wolfgang Thanks Wolfgang. Not quite correct yet, though. The individual lines in your example are aligned

Re: [NTG-context] Multi-line headers

2009-04-08 Thread Wolfgang Schuster
Am 08.04.2009 um 16:19 schrieb Design Department: On Wed, Apr 8, 2009 at 2:42 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: \setupheadertexts[nothing on left] [{\framed[frame=off,width=fit,align=right]{line1\\line2}}] The individual lines in your example are aligned

[NTG-context] setup/startnarrower question

2009-04-08 Thread frantisek holop
hi there, what would be the equivalent of the following \startnarrower[2*left,0*right] \stopnarrower using \setupnarrower ? my problem is that \setupnarrower takes dimensions, while \startnarrower takes... i am not sure what actually... \startnarrower[..,...,..] ... \stopnarrower ...

Re: [NTG-context] identation question

2009-04-08 Thread frantisek holop
hmm, on Wed, Apr 08, 2009 at 10:11:36AM -0400, Aditya Mahajan said that There may be better ways to do this, but you can always fake it by negative indentation. \setupindenting[-2cm,yes] \starttext \input knuth \stoptext the problem is, that this messes with the margin... the first lines

Re: [NTG-context] Multi-line headers

2009-04-08 Thread Design Department
\setupheadertexts[][{\framed[frame=off,width=fit,align=flushright]{line1\\line 2.}}] Thks. Works now. A further minor question: One of the lines sometimes ends with a period and it would be nice to have it optically aligned. Is this possible? The document is a tabular report, so this is a minor

Re: [NTG-context] Multi-line headers

2009-04-08 Thread Aditya Mahajan
On Wed, 8 Apr 2009, Design Department wrote: \setupheadertexts[][{\framed[frame=off,width=fit,align=flushright]{line1\\line 2.}}] Thks. Works now. A further minor question: One of the lines sometimes ends with a period and it would be nice to have it optically aligned. Is this possible? The

Re: [NTG-context] Multi-line headers

2009-04-08 Thread Wolfgang Schuster
Am 08.04.2009 um 16:57 schrieb Design Department: \setupheadertexts[][{\framed[frame=off,width=fit,align=flushright] {line1\\line 2.}}] Thks. Works now. A further minor question: One of the lines sometimes ends with a period and it would be nice to have it optically aligned. Is this

Re: [NTG-context] identation question

2009-04-08 Thread Wolfgang Schuster
Am 08.04.2009 um 16:11 schrieb Aditya Mahajan: On Wed, 8 Apr 2009, frantisek holop wrote: hi there, this is a quickie for the gurus: i would like to get an inverted identation, where the first line is not inverted but all the others are: Lorem ipsum dolor sit amet, consectetur adipiscing

Re: [NTG-context] How to get the number of lines of a paragraph?

2009-04-08 Thread Wei-Wei Guo
Hi Wolfgang, I tried many ways, but could not make the following effect: Title Head: Here is text, blur blur blur blur blur blur --- blur blur blur blur --- I tried

Re: [NTG-context] identation question

2009-04-08 Thread frantisek holop
hmm, on Wed, Apr 08, 2009 at 05:12:26PM +0200, Wolfgang Schuster said that There may be better ways to do this, but you can always fake it by negative indentation. Tricky, it's possible with \hangindent/after but ... heh, i must admit i really thought this will be a quickie :] this is when

Re: [NTG-context] How to get the number of lines of a paragraph?

2009-04-08 Thread Wolfgang Schuster
Am 08.04.2009 um 17:30 schrieb Wei-Wei Guo: Hi Wolfgang, I tried many ways, but could not make the following effect: Title Head: Here is text, blur blur blur blur blur blur --- blur blur blur blur

Re: [NTG-context] identation question

2009-04-08 Thread Wolfgang Schuster
Am 08.04.2009 um 17:23 schrieb frantisek holop: hmm, on Wed, Apr 08, 2009 at 05:12:26PM +0200, Wolfgang Schuster said that There may be better ways to do this, but you can always fake it by negative indentation. Tricky, it's possible with \hangindent/after but ... heh, i must admit i

Re: [NTG-context] new beta

2009-04-08 Thread Ulrike Fischer
Am Mon, 06 Apr 2009 19:16:52 +0200 schrieb Hans Hagen: I'm not using the minimals or texlive but miktex. To use luatex I have made a small texmf tree and a texmf.cnf which includes my miktex texmf-trees. This works fine with normal files like tfm, sty etc. But my system seems not to find

Re: [NTG-context] new beta

2009-04-08 Thread Hans Hagen
Ulrike Fischer wrote: Am Mon, 06 Apr 2009 19:16:52 +0200 schrieb Hans Hagen: I'm not using the minimals or texlive but miktex. To use luatex I have made a small texmf tree and a texmf.cnf which includes my miktex texmf-trees. This works fine with normal files like tfm, sty etc. But my system

[NTG-context] Multiple Page Backgrounds

2009-04-08 Thread Design Department
I have a need for multiple repeating page backgrounds: an imported PDF document and one or more dynamically generated items that are layered on top. I've found a discussion in the archives from January 2006, but it hasn't helped.

Re: [NTG-context] new beta

2009-04-08 Thread Hans Hagen
Ulrike Fischer wrote: Am Wed, 08 Apr 2009 18:54:08 +0200 schrieb Hans Hagen: It works partly: After I called luatools --generate mtxrun now finds also fonts in my various texmf-trees (and not only the one in the system folder), but mtxrun works only if I move first font-syn.lua in the folder

Re: [NTG-context] TikZ, MKIV and font switching

2009-04-08 Thread Renaud Aubin
Mojca Miklavec a écrit : I don't know about helvetica since it's broken at the moment, but with \usetypescript[palatino] \setupbodyfont[palatino,12pt] the labels inside the mindmap are already typeset in gyre palatino here. What version of ConTeXt/LuaTeX/TikZ do you use? In MKII the

Re: [NTG-context] TikZ, MKIV and font switching

2009-04-08 Thread Wolfgang Schuster
Am 08.04.2009 um 20:25 schrieb Renaud Aubin: I have processed the test file with \startMPenvironment[global] \usetypescript[postscript] \setupbodyfont[postscript,ss,12pt] \stopMPenvironment what happens with \definetypeface[helvetica][ss][sans][heros][default] \setupbodyfont[helvetica]

Re: [NTG-context] new beta

2009-04-08 Thread Ulrike Fischer
Am Wed, 08 Apr 2009 19:58:19 +0200 schrieb Hans Hagen: Ulrike Fischer wrote: Am Wed, 08 Apr 2009 18:54:08 +0200 schrieb Hans Hagen: It works partly: After I called luatools --generate mtxrun now finds also fonts in my various texmf-trees (and not only the one in the system folder), but

Re: [NTG-context] TikZ, MKIV and font switching

2009-04-08 Thread Wolfgang Schuster
Am 08.04.2009 um 20:25 schrieb Renaud Aubin: I have processed the test file with \startMPenvironment[global] \usetypescript[postscript] \setupbodyfont[postscript,ss,12pt] \stopMPenvironment and the mindmap labels are in Termes... Any idea about a workaround to obtain my labels in Heros ?

Re: [NTG-context] new beta

2009-04-08 Thread Mohamed Bana
hi all, on that tangent, is it possible to get command line completion for the rest of the options for example something like mtxrun tabscripts --tabfonts --tabreload etc. Hans Hagen wrote: Ulrike Fischer wrote: Am Wed, 08 Apr 2009 19:58:19 +0200 schrieb Hans Hagen: Ulrike Fischer

[NTG-context] hyphenation in latest

2009-04-08 Thread Thomas A. Schmitz
Hi all, Hans, I get no hyphenation for ancient Greek with the latest beta (and, as I have seen, a couple of betas before that). Test file (I hope this doesn't get butchered in the mail): \usetypescriptfile[type-gentium] \usetypescript[gentium] \setupbodyfont[gentium,12pt] \starttext

Re: [NTG-context] new beta

2009-04-08 Thread Aditya Mahajan
On Wed, 8 Apr 2009, Mohamed Bana wrote: hi all, on that tangent, is it possible to get command line completion for the rest of the options for example something like mtxrun tabscripts --tabfonts --tabreload This usually depends on tab-completion of the shell and has nothing to do with

Re: [NTG-context] hyphenation in latest

2009-04-08 Thread Hans Hagen
Thomas A. Schmitz wrote: Hi all, Hans, I get no hyphenation for ancient Greek with the latest beta (and, as I have seen, a couple of betas before that). Test file (I hope this doesn't get butchered in the mail): \usetypescriptfile[type-gentium] \usetypescript[gentium]

Re: [NTG-context] How to get the number of lines of a paragraph?

2009-04-08 Thread Wei-Wei Guo
Thanks! The p solves my problem. Wei-Wei Wolfgang Schuster 写道: You can need a p column in table/tabulate. The wrong position of the line is a bug, make a bug report and use Li Yanruis fix for the moment. \definetextbackground [underline] [location=paragraph, alternative=1,

[NTG-context] How to use MPgraphic with options?

2009-04-08 Thread Wei-Wei Guo
Dear all, I need to use many rules with different lengths. Is there any way to implement function like below: \startuniqueMPgraphic{ARule}{length} draw origin -- (\MPvar{length},0) ; \stopuniqueMPgraphic \uniqueMPgraphic[length=5mm]{ARule} The example cannot be run. I only use it to