Re: [NTG-context] A doubt while compiling modules

2007-03-06 Thread luigi scarso
On 3/7/07, Taco Hoekwater <[EMAIL PROTECTED]> wrote:
> luigi scarso wrote:
> > With
> > $>texmfstart texexec --pdf --modules font-chi
> > But, the cover is... well, white: ie there are no more 'random box' I
> > was used to see.

> Probably your system has a configuration error with metapost. I
> cannot compile the file due to missing fonts,
www.logosrl.it/context/modules/chinesecontext.zip

>but the first page looks ok here, including graphics.
Here too with 2007-02-20

> What is your metapost version?
$>mpost
This is MetaPost, Version 0.901 (Web2C 7.5.5)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lm update+ gyre and ctxtools doesn't work

2007-03-06 Thread Taco Hoekwater
Dalyoung Jeong wrote:
> Dear all,
> 
> After updating ConTeXt to the newest version, I still have font error  
> which was not the problem in the previous version.
> 
> After downloading new version of LM fonts, I copied the files in the  
> corresponding folder under .../gwTeX/texmf.texlive/.
> 
> To use them in XeConTeXt, I tried
> 
> "ctxtools --dpx --force /usr/local/gwTeX/texmf.texlive",
> 
> Then it asked to use proper texmfroot tree like
> 
> "CtxTools | proper texmfroot".
> 
> Does someone have any idea to resolve this problem?

This message has only one cause: ctxtools cannot find the map files
in has to use as input. It expects map files to be in

fonts/map/pdftex/context

and it very likely that instead the file are in

fonts/map/dvips/lm

A manual copy is needed before running ctxtools.

Good luck,

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


Re: [NTG-context] A doubt while compiling modules

2007-03-06 Thread Taco Hoekwater
luigi scarso wrote:
> With
> $>texmfstart texexec --pdf --modules font-chi
> I have font-chi.pdf and no errors.
> But, the cover is... well, white: ie there are no more 'random box' I
> was used to see.

Probably your system has a configuration error with metapost. I
cannot compile the file due to missing fonts, but the first page
looks ok here, including graphics.

What is your metapost version?

Cheers, Taco

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


Re: [NTG-context] lm update+ gyre and ctxtools doesn't work

2007-03-06 Thread Dalyoung Jeong
Dear all,

After updating ConTeXt to the newest version, I still have font error  
which was not the problem in the previous version.

After downloading new version of LM fonts, I copied the files in the  
corresponding folder under .../gwTeX/texmf.texlive/.

To use them in XeConTeXt, I tried

"ctxtools --dpx --force /usr/local/gwTeX/texmf.texlive",

Then it asked to use proper texmfroot tree like

"CtxTools | proper texmfroot".

Does someone have any idea to resolve this problem?

Thank you for reading.

best regards,

Dalyoung

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


Re: [NTG-context] Some questions about context

2007-03-06 Thread luigi scarso
On 3/6/07, Aditya Mahajan <[EMAIL PROTECTED]> wrote:
> On Tue, 6 Mar 2007, luigi scarso wrote:
>
> >> PS: Yes, I refer to xyfig.
> > Some time ago there was something about this.
> > I think than xypic has very little chances to become part of context;
> > I used it and I find it useful , but metapost is better (abd perhaps pgf 
> > too).
>
> I have never used xypic. I looked at its page at
> http://www.tug.org/applications/Xy-pic/ and it says that it works with
> plain tex. Then it should also work with ConTeXt. Has anyone tried
> using it with ConTeXt?

search in mail list for
Re: XYpic
Vit Zyka <[EMAIL PROTECTED]> (2005-04-29 08:16:55 GMT)

I think the definitive word about XYpic and context .
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Some questions about context

2007-03-06 Thread Oliver Buerschaper
>> For your headers try this:
>>
>> ---
>>
>> \setupheader
>>  [text]
>>  [after=\hrule]
>>
>> \starttext
>> \input tufte
>> \stoptext
>>
>> ---
>>
>> You can change the actual content of your headers via
>> \setupheadertexts ...
>>
>> Instead of the \hrule command above you could also resort to
>> \thinrule. The global behaviour of \thinrule can then be customized
>> via \setupthinrules ... However, this comes at the cost of
>> introducing additional vertical space between your header text and
>> the rule. On the contrary \hrule sticks to the text. Choose whatever
>> suits you best.
>>
>> (To the experts: is this \thinrule behaviour intended?)
>
> A better way is to use \setupbackgrounds. You can specify the exact
> region of the page that you want, and it accepts all the parameters of
> framed, so you can change the rule thickness, background, etc. And for
> a really fancy layout, you can use a metapost background.

I didn't think of that ... however, suppressing the header on certain  
pages via e.g.

\setuphead[chapter][header=empty]

doesn't turn off the header background :-(

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


Re: [NTG-context] printing problem

2007-03-06 Thread Alan Bowen
Aditya—

I am using character protrusion.

So far as printing goes, TexShop still prints long files with  
protrusion turned on and still fails with the question file when I  
turn it off.

But, as for not being able to open the file, I will check to see what  
the recipient is using to read it. That is a good tip. Many thanks.

Alan


On Mar 6, 2007, at 11:29 AM, Aditya Mahajan wrote:

> On Tue, 6 Mar 2007, Alan Bowen wrote:
>
>> Though I can print the thing, the problem is still somewhat pressing.
>> I sent the file to two people who usually have no difficulty with my
>> PDFs. But this time one could not open the file—it was reported as
>> damaged.
>
> Do you by any chance use character protrusion. I had trouble with
> character protrusion with pdf-1.4. It works correctly on my computer
> (WinXP+Acrobat 7.0) but, I could not open the file on Solaris+Acroread
> 5.0. Acroread 7.0 opened the file correctly on Solaris, so I assumed
> that acroread 5.0 does not support the new method of character
> protrusion of pdftex.
>
> I sent the file to someone on a Mac. If they double clicked on the
> file, acrobat 7 reported the file was damaged. If they opened the file
> from File->Open menu, it opened correctly. Since it was not my
> computer, and the file was opening correctly, I assumed it was a
> problem with the configuration on the Mac. (As you can see, I am very
> confident that pdftex is doing the right thing :). Disable character
> protrusion got rid of the problem with acroread 5.0 and Mac, so I did
> not worry about it more (there were other things to worry about, like
> the content of the pdf)
>
> Aditya
> ___
> 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] Some questions about context

2007-03-06 Thread Aditya Mahajan
On Tue, 6 Mar 2007, luigi scarso wrote:

>> PS: Yes, I refer to xyfig.
> Some time ago there was something about this.
> I think than xypic has very little chances to become part of context;
> I used it and I find it useful , but metapost is better (abd perhaps pgf too).

I have never used xypic. I looked at its page at 
http://www.tug.org/applications/Xy-pic/ and it says that it works with 
plain tex. Then it should also work with ConTeXt. Has anyone tried 
using it with ConTeXt?

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


Re: [NTG-context] printing problem

2007-03-06 Thread Aditya Mahajan
On Tue, 6 Mar 2007, Alan Bowen wrote:

> Though I can print the thing, the problem is still somewhat pressing.
> I sent the file to two people who usually have no difficulty with my
> PDFs. But this time one could not open the file—it was reported as
> damaged.

Do you by any chance use character protrusion. I had trouble with 
character protrusion with pdf-1.4. It works correctly on my computer 
(WinXP+Acrobat 7.0) but, I could not open the file on Solaris+Acroread 
5.0. Acroread 7.0 opened the file correctly on Solaris, so I assumed 
that acroread 5.0 does not support the new method of character 
protrusion of pdftex.

I sent the file to someone on a Mac. If they double clicked on the 
file, acrobat 7 reported the file was damaged. If they opened the file 
from File->Open menu, it opened correctly. Since it was not my 
computer, and the file was opening correctly, I assumed it was a 
problem with the configuration on the Mac. (As you can see, I am very 
confident that pdftex is doing the right thing :). Disable character 
protrusion got rid of the problem with acroread 5.0 and Mac, so I did 
not worry about it more (there were other things to worry about, like 
the content of the pdf)

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


Re: [NTG-context] printing problem

2007-03-06 Thread Alan Bowen
Hans—

The problem appears to be the Bonum font from the TeX Gyre  
distribution. If I change the font to GFSDidot, all is well.

Too bad—Bonum is a good font, I think, for papers that are to be  
presented by reading.

Alan


On Mar 6, 2007, at 10:30 AM, Alan Bowen wrote:

> On Mar 6, 2007, at 8:00 AM, Hans Hagen wrote:
>
>> Alan Bowen wrote:
>>> I have a 24 page PDF file produced using ConTeXt  ver: 2007.02.21
>>> 11:55 MKII and the latest TeXShop. I can only print pp. 1-3 of this
>>> file with TeXShop. Acrobat Pro, however, has no trouble printing the
>>> entire file (mercifully�this paper is for a conference for which I
>>> leave tomorrow) and TeXShop has no problem with my other files, some
>>> of which are quite long.
>>>
>>> So I do I figure out what the problem is? It seems to be with the
>>> file, but I have no idea what. The encoding is hardly weird or
>>> unusual.
>>>
>>> Though I can print the thing, the problem is still somewhat  
>>> pressing.
>>> I sent the file to two people who usually have no difficulty with my
>>> PDFs. But this time one could not open the file�it was reported as
>>> damaged.
>>>
>> hm, can you preflight the document?
>>
>> also, take the latest pdftex since there has been font bugs recently
>>
>> Hans
>
> Hans—
>
> I am not sure what you mean but I am now against the wall. I
> continued to edit the document and now the PDF is not printable (past
> page 3) at all—Acrobat Pro 8, TeXShop, PDFView are all stymied.
>
> How do I preflight the document  and where is the latest pdftex? (Is
> it not in the latest ConTeXt?)
>
> Alan
> ___
> 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] A doubt while compiling modules

2007-03-06 Thread luigi scarso
With
$>texmfstart texexec --pdf --modules font-chi
I have font-chi.pdf and no errors.
But, the cover is... well, white: ie there are no more 'random box' I
was used to see.
Nothing to wrong "di per se" (time to make pdf is lesser so it's good), but
I usually see it  as a configuration error.
(see
www.logosrl.it/context/modules/2007-02-21/singles/font-chi.pdf )
I use last pdftex, last lm fonts, last context distro.
luigi



PS [OT]
font-chi has some chines fonts (cfr
www.logosrl.it/context/modules/chinesecontext.zip)
Is there any example of arabic  under base/ ?
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Some questions about context

2007-03-06 Thread Aditya Mahajan
On Tue, 6 Mar 2007, Xan wrote:

> En/na Aditya Mahajan ha escrit:
>> On Mon, 5 Mar 2007, Xan wrote:
>>
>>> Another question: how get the equivalent of ams theorem package?
>>> Sorry for no ask this before and another time, thanks
>>
>> enumerations. This is what I ususally do
>>
>> \defineenumeration[theorem][style=italic,text=Theorem,location=hanging]
>>
>> \starttheorem
>> This is an important theorem
>> \stoptheorem
>>
>> They do almost everything on what is needed for theorems. I am working
>> on providing missing features, so if you find something is missing,
>> feel free to ask.
>
> Thank you very much for give me this opportunity.
> Enumerations work but I need more customization:
>
> 1) How can you change the style of the text (Theorem in our example)?

\defineenumeration[theorem][headstyle=normal|bold|italic|(any font 
commnad)]

> 2) How can you change the position of the counter: "1 Theorem" rather
> than "Theorem 1"

No simple way right now. It is possible to do that using left and 
right keys. So, something like

\defineenumeration[theorem][text=,right={ Theorem}]

If you do not want the dot after the number, say stopper=, above.

> 3) Is it possible to change the counter? In LaTeX, with much effort and
> help, I could write some code for displaying something like:
>
> Theorem [number of theorem].[numberofpageitappears]. 
>
> If you want to see the code, I could give you

In ConTeXt this is much easier.

\defineenumeration[theorem][conversion=myconversion]

so, you can do something like

\def\withpagenumbercommand#1{\numbers{#1}.blah\currentpage}

\defineconversion [withpagenumber] [\withpagenumbercommand]

\defineenumeration[test][conversion=withpagenumber]

(I tested this, and this is not working. In fact conversion is not 
working with enumerations). This will be fixed soon. If you need it 
immediately, there is just a one line change as a workaround.

> 4) What about the indentation of the "body" of the theorem?. If you put:
>
> \starttheorem
> This is an important theorem skjdskad sda sdas dsad asdas das dsafs f
> dsfsdfsdf dfsdf sdf dsfsd fsdfsd fds fdsf ds fsd fds fsdfsdfs fdsfsd f
> \stoptheorem
>
> the text is indented a little bit after the begginning of the line. We
> could have a normal indentation (like AMS theorem do)?

Did I say, that is the way I like it ;) It you do not, do not say 
location=hanging.

> 5) Is there an equivalent to \newenvironment in latex? I think about the
> demostration:
>
> \newenvironment{demo}{\medskip Demostració.}{\hfill $\Box$}
>

Wolfgang answered the equivalent way to do it in ConteXt.

> And another question (in other topic): how we can do lines at header and
> footer like fancyheaders in latex?

\setupbackgrounds[header][text][topframe=on,rulethickness=1pt]

etc.

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


Re: [NTG-context] Some questions about context

2007-03-06 Thread Aditya Mahajan
On Tue, 6 Mar 2007, Oliver Buerschaper wrote:

>> And another question (in other topic): how we can do lines at
>> header and
>> footer like fancyheaders in latex?
>
>
> For your headers try this:
>
> ---
>
> \setupheader
>   [text]
>   [after=\hrule]
>
> \starttext
> \input tufte
> \stoptext
>
> ---
>
> You can change the actual content of your headers via
> \setupheadertexts ...
>
> Instead of the \hrule command above you could also resort to
> \thinrule. The global behaviour of \thinrule can then be customized
> via \setupthinrules ... However, this comes at the cost of
> introducing additional vertical space between your header text and
> the rule. On the contrary \hrule sticks to the text. Choose whatever
> suits you best.
>
> (To the experts: is this \thinrule behaviour intended?)

A better way is to use \setupbackgrounds. You can specify the exact 
region of the page that you want, and it accepts all the parameters of 
framed, so you can change the rule thickness, background, etc. And for 
a really fancy layout, you can use a metapost background.

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


Re: [NTG-context] printing problem

2007-03-06 Thread Alan Bowen

On Mar 6, 2007, at 10:33 AM, Martin Schröder wrote:

> 2007/3/6, Alan Bowen <[EMAIL PROTECTED]>:
>> How do I preflight the document  and where is the latest pdftex? (Is
>> it not in the latest ConTeXt?)
>
> Get the last TeX Live (http://www.tug.org/tex-live/); the ConTeXt in
> it is quite recent.
>
> Best
>Martin
> ___

Hi, Martin—

I am running the final TeXLive 2007 (from http://www.tug.org/mactex/)  
with ConTeXt  ver: 2007.02.21 11:55 MKII.

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


Re: [NTG-context] Theorems, etc with ConTeXt

2007-03-06 Thread Aditya Mahajan
On Tue, 6 Mar 2007, Oliver Buerschaper wrote:

> Hi Aditya,
>
>> I have rudimentary support for titled theorems and end of proof
>> markers working. It also takes care of your bug-report.
>
> That's great news! My fingers are itching to test it ;-)
>
>> I have patched core-des so that stopper is also honored when number=no
>> is set.
>
> Does this mean that your patch has already been merged with the
> official release?

No, it will be a while before it will be merged in the official 
release. I will make all changes that I want and then ask Hans to look 
at it --- don't want to waste Hans time for including each different 
thing individually.

>> I have a very basic end of proof marker working. Basically, it will
>> handle the marker correctly for proofs that end with paragraphs, and
>> works hard to avoid a page break when the proof ends with a formula or
>> an itemize (in this case, the end of proof marker is in a line of its
>> own). The main macro for putting the proof marker on the right is from
>> Paul Taylor's qed.sty. If you want to test this, I can send you the
>> file offlist. This file is not in a state to be merged into the core
>> right now.
>
> Please send it to me ...

Will do.

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


Re: [NTG-context] printing problem

2007-03-06 Thread Martin Schröder
2007/3/6, Alan Bowen <[EMAIL PROTECTED]>:
> How do I preflight the document  and where is the latest pdftex? (Is
> it not in the latest ConTeXt?)

Get the last TeX Live (http://www.tug.org/tex-live/); the ConTeXt in
it is quite recent.

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


Re: [NTG-context] quotation

2007-03-06 Thread Jörg Hagmann
Thanks a lot. I'm actually using them in this direction: <>.

On Mar 6, 2007, at 4:07 PM, Steffen Wolfrum wrote:

> Do you mean a result like this?
>
> ›Zitat‹
> »Zitation«
>
> Using gwTeX too, I would't change cont-sys.tex or lang-ger.tex.
> If needed I would do it like this:
>
> \setuplanguage[de]
> [leftquote=\guilsingleright,rightquote=\guilsingleleft,
> leftquotation=\rightguillemot,rightquotation=\leftguillemot]
>
> \mainlanguage[de]
>
> \starttext
> \quote{Zitat}
>
> \quotation{Zitation}
> \stoptext
>
>
> Steffen
>
>
>
>
> On Tue, 6 Mar 2007 15:15:40 +0100, Jörg Hagmann wrote:
>> Hi,
>>
>> I need guillemots instead of lowerleftdouble- and
>> upperrightdoublequotes in the German environment.
>> On my minimal installation (Linux) I managed to change that by
>> editing the cont-sys.tex file in texmf-local/tex/context/user.
>>
>> At work, on a Mac with gwTeX, nothing I tried had any effect:
>>
>> editing the cont-sys.tex file (in texmf.pkgs/tex/context/user)
>> copying cont-sys.tex to texmf.texlive/tex/context/user
>> editing the lang-ger.tex files (in texmf.pkgs or texmf.texlive)
>>
>> Thanks for the help, Jörg
>>
>> PS 1: I didn't forget texhash
>> PS 2: It's the first time I have to use the German environment. Are
>> lowerleftquotes and quotations really still used? To me they look
>> strange -- at least in a scientific text. And my publisher doesn't
>> want them either (ok, he is Swiss).
>>
>>
>> ___
>> 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


Re: [NTG-context] printing problem

2007-03-06 Thread Alan Bowen
On Mar 6, 2007, at 8:00 AM, Hans Hagen wrote:

> Alan Bowen wrote:
>> I have a 24 page PDF file produced using ConTeXt  ver: 2007.02.21
>> 11:55 MKII and the latest TeXShop. I can only print pp. 1-3 of this
>> file with TeXShop. Acrobat Pro, however, has no trouble printing the
>> entire file (mercifully�this paper is for a conference for which I
>> leave tomorrow) and TeXShop has no problem with my other files, some
>> of which are quite long.
>>
>> So I do I figure out what the problem is? It seems to be with the
>> file, but I have no idea what. The encoding is hardly weird or  
>> unusual.
>>
>> Though I can print the thing, the problem is still somewhat pressing.
>> I sent the file to two people who usually have no difficulty with my
>> PDFs. But this time one could not open the file�it was reported as
>> damaged.
>>
> hm, can you preflight the document?
>
> also, take the latest pdftex since there has been font bugs recently
>
> Hans

Hans—

I am not sure what you mean but I am now against the wall. I  
continued to edit the document and now the PDF is not printable (past  
page 3) at all—Acrobat Pro 8, TeXShop, PDFView are all stymied.

How do I preflight the document  and where is the latest pdftex? (Is  
it not in the latest ConTeXt?)

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


Re: [NTG-context] quotation

2007-03-06 Thread Steffen Wolfrum
Do you mean a result like this?

›Zitat‹
»Zitation«

Using gwTeX too, I would't change cont-sys.tex or lang-ger.tex.
If needed I would do it like this:

\setuplanguage[de] 
[leftquote=\guilsingleright,rightquote=\guilsingleleft,
leftquotation=\rightguillemot,rightquotation=\leftguillemot]

\mainlanguage[de]

\starttext
\quote{Zitat}

\quotation{Zitation}
\stoptext


Steffen




On Tue, 6 Mar 2007 15:15:40 +0100, Jörg Hagmann wrote:
> Hi,
> 
> I need guillemots instead of lowerleftdouble- and  
> upperrightdoublequotes in the German environment.
> On my minimal installation (Linux) I managed to change that by  
> editing the cont-sys.tex file in texmf-local/tex/context/user.
> 
> At work, on a Mac with gwTeX, nothing I tried had any effect:
> 
> editing the cont-sys.tex file (in texmf.pkgs/tex/context/user)
> copying cont-sys.tex to texmf.texlive/tex/context/user
> editing the lang-ger.tex files (in texmf.pkgs or texmf.texlive)
> 
> Thanks for the help, Jörg
> 
> PS 1: I didn't forget texhash
> PS 2: It's the first time I have to use the German environment. Are  
> lowerleftquotes and quotations really still used? To me they look  
> strange -- at least in a scientific text. And my publisher doesn't  
> want them either (ok, he is Swiss).
> 
> 
> ___
> 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] quotation

2007-03-06 Thread Jörg Hagmann
Hi,

I need guillemots instead of lowerleftdouble- and  
upperrightdoublequotes in the German environment.
On my minimal installation (Linux) I managed to change that by  
editing the cont-sys.tex file in texmf-local/tex/context/user.

At work, on a Mac with gwTeX, nothing I tried had any effect:

editing the cont-sys.tex file (in texmf.pkgs/tex/context/user)
copying cont-sys.tex to texmf.texlive/tex/context/user
editing the lang-ger.tex files (in texmf.pkgs or texmf.texlive)

Thanks for the help, Jörg

PS 1: I didn't forget texhash
PS 2: It's the first time I have to use the German environment. Are  
lowerleftquotes and quotations really still used? To me they look  
strange -- at least in a scientific text. And my publisher doesn't  
want them either (ok, he is Swiss).


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


Re: [NTG-context] Some questions about context

2007-03-06 Thread Robin Kirkham
Hi all,

Moreover, how do you get a rule in the header that extends from the  
left of the left margin, right across to the right of the right  
margin (including the gaps in between)?

Cheers,

Robin

On 06/03/2007, at 10:00 PM, [EMAIL PROTECTED] wrote:

> From: Oliver Buerschaper <[EMAIL PROTECTED]>
> Date: 6 March 2007 9:19:23 PM
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] Some questions about context
>
>> And another question (in other topic): how we can do lines at  
>> header and
>> footer like fancyheaders in latex?
>
> For your headers try this:
>
> \setupheader
>   [text]
>   [after=\hrule]

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


Re: [NTG-context] printing problem

2007-03-06 Thread Hans Hagen
Alan Bowen wrote:
> I have a 24 page PDF file produced using ConTeXt  ver: 2007.02.21  
> 11:55 MKII and the latest TeXShop. I can only print pp. 1-3 of this  
> file with TeXShop. Acrobat Pro, however, has no trouble printing the  
> entire file (mercifully�this paper is for a conference for which I  
> leave tomorrow) and TeXShop has no problem with my other files, some  
> of which are quite long.
>
> So I do I figure out what the problem is? It seems to be with the  
> file, but I have no idea what. The encoding is hardly weird or unusual.
>
> Though I can print the thing, the problem is still somewhat pressing.  
> I sent the file to two people who usually have no difficulty with my  
> PDFs. But this time one could not open the file�it was reported as  
> damaged.
>   
hm, can you preflight the document? 

also, take the latest pdftex since there has been font bugs recently 

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] An Index problem (repost II)

2007-03-06 Thread luigi scarso
On 3/6/07, Hans Hagen <[EMAIL PROTECTED]> wrote:
> luigi scarso wrote:
> > I have the following
> > \starttext
> > %%\placemaincontent
> > \chapter{AAA}
> > \section{Hause one} Foo one \page
> > \section{Hause two} Foo  two \page
> > \section{Hause three} Foo  three \page
> > \section{Hause four} Foo  four\page
> > \section{Dog boo} Koo   \page
> > \section{Dog foo} Boo \page
> > \section{Money ba} Boo \page
> > \section{Mail bee} Ugh \page
> > \stoptext
> > In main content I should like to have
> > \bf{AAA} %% no problem here
> > \bf{HAUSE} one . page x
> >  Hause two ..page x
> >  Hause threepage x
> >  Hause four ..page x
> > \bf{DOG} boo ...page x
> >  Dog foo.page x
> > \bf{MONEY} ba.page x
> > \bf{MAIL} bee.page x
> >
> > ie, the very first word in bold face and upper case,
> > the following in normal face if and only of the very first word was
> > equal to the first
> > word of actual item (I know, it's strange).
> >
> \let\LastSectionEntry\empty
>
> \def\ChapterEntry#1%
>   {\global\let\LastSectionEntry\empty
>#1}
>
> \def\SectionEntry#1%
>   {\splitstring#1\at{ }\to\PartA\and\PartB
>\doifelse\PartA\LastSectionEntry
>  {#1}
>  {\global\let\LastSectionEntry\PartA
>   {\bf\PartA} \PartB}}
>
> \setuplist[chapter][style=bold,textcommand=\ChapterEntry]
> \setuplist[section][textcommand=\SectionEntry]
>
> \starttext
> \placelist[chapter,section]
> \chapter{AAA}
> \section{Hause one} Foo one \page
> \section{Hause two} Foo  two \page
> \section{Hause three} Foo  three \page
> \section{Hause four} Foo  four\page
> \section{Dog boo} Koo   \page
> \section{Dog foo} Boo \page
> \section{Money ba} Boo \page
> \section{Mail bee} Ugh \page
> \chapter{BBB}
> \section{Mail bee} Ugh \page
> \section{Mail bee} Ugh \page
> \section{Mail bee} Ugh \page
> \stoptext

yes, it is.
Many thanks Hans.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] printing problem

2007-03-06 Thread Alan Bowen
I have a 24 page PDF file produced using ConTeXt  ver: 2007.02.21  
11:55 MKII and the latest TeXShop. I can only print pp. 1-3 of this  
file with TeXShop. Acrobat Pro, however, has no trouble printing the  
entire file (mercifully—this paper is for a conference for which I  
leave tomorrow) and TeXShop has no problem with my other files, some  
of which are quite long.

So I do I figure out what the problem is? It seems to be with the  
file, but I have no idea what. The encoding is hardly weird or unusual.

Though I can print the thing, the problem is still somewhat pressing.  
I sent the file to two people who usually have no difficulty with my  
PDFs. But this time one could not open the file—it was reported as  
damaged.

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


Re: [NTG-context] Headers for natural tables.

2007-03-06 Thread Wolfgang Schuster
On Mon,  5 Mar 2007 11:24:23 -0800
"JOHN CULLETON" <[EMAIL PROTECTED]> wrote:

> I hve determined by trial and error that the multiline feature [nr=2] of 
> Natural Tables does not work well, if at all, in the TABLEhead area. But the 
> TABLEhead area is necessary for readable split tables. Currently I use single 
> lines in the header area and suppress some of the rules to create a multiline 
> effect thus: 

Hi John,

> 
> \bTABLE [option=stretch,split=repeat]
> \setupTABLE[r][1][height=0cm,width=0cm,frame=off]
> \setupTABLE[c][1][width=1.7in]
> \setupTABLE[r][2][bottomframe=off]
> \setupTABLE[r][3][topframe=off]
> \bTABLEhead
> \bTR  %dummy row
> \bTH \eTH
> \bTH \eTH
> \bTH \eTH
> \eTR
> \bTR %first visible row
> \bTH  
> {\bf Investment} \eTH

\bTH .. \eTH is only a abbreviation for \bTD[style=bold] ... \eTD, this
means your \bf is not neccessary.

> \bTH 
> {\bf Portfolio } \eTH
> \bTH 
> {\bf Average Stock } \eTH
> \eTR
> \bTR
> \bTH  
> {\bf Category} \eTH
> \bTH 
> {\bf Allocation} \eTH
> \bTH 
> {\bf  Market Exposure} \eTH
> \eTR
> \eTABLEhead
> ...
> This example also uses the (apparently) obligatory dummy row as described by 
> others.
> 
> Natural Tables have been around for a while. It is unfortunate that no one 
> has come up with a real manual for these tables. All that exists are "learn 
> by example" documents, which do not describe limitations such as the one I 
> worked around in the above code. 
> 
> 
> John Culleton
> 

I rewrote your example in a better way

\starttext

\bTABLE [option=stretch,split=repeat]
\setupTABLE[c][first][width=1.7in]
\setupTABLE[r][first][style=bold]
\bTABLEhead
  \bTR
\bTD Investment\\ Category \eTD
\bTD Portfolio\\ Allocation \eTD
\bTD Average Stock\\ Market Exposure \eTD
  \eTR
\eTABLEhead
\bTABLEbody
  \dorecurse{100}{\bTR\bTD text \eTD\bTD text \eTD\bTD text \eTD\eTR}
\eTABLEbody
\eTABLE

\stoptext

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


Re: [NTG-context] Some questions about context

2007-03-06 Thread Wolfgang Schuster
On Tue, 06 Mar 2007 10:26:49 +0100
Xan <[EMAIL PROTECTED]> wrote:

> En/na Aditya Mahajan ha escrit:
> > On Mon, 5 Mar 2007, Xan wrote:
> > 
> >> Another question: how get the equivalent of ams theorem package?
> >> Sorry for no ask this before and another time, thanks
> > 
> > enumerations. This is what I ususally do
> > 
> > \defineenumeration[theorem][style=italic,text=Theorem,location=hanging]
> > 
> > \starttheorem
> > This is an important theorem
> > \stoptheorem
> > 
> > They do almost everything on what is needed for theorems. I am working 
> > on providing missing features, so if you find something is missing, 
> > feel free to ask.
> 
> Thank you very much for give me this opportunity.
> Enumerations work but I need more customization:
> 
> 1) How can you change the style of the text (Theorem in our example)?
> 2) How can you change the position of the counter: "1 Theorem" rather
> than "Theorem 1"
> 3) Is it possible to change the counter? In LaTeX, with much effort and
> help, I could write some code for displaying something like:
> 
> Theorem [number of theorem].[numberofpageitappears]. 
> 
> If you want to see the code, I could give you
> 
> 4) What about the indentation of the "body" of the theorem?. If you put:
> 
> \starttheorem
> This is an important theorem skjdskad sda sdas dsad asdas das dsafs f
> dsfsdfsdf dfsdf sdf dsfsd fsdfsd fds fdsf ds fsd fds fsdfsdfs fdsfsd f
> \stoptheorem
> 
> the text is indented a little bit after the begginning of the line. We
> could have a normal indentation (like AMS theorem do)?
> 
> 5) Is there an equivalent to \newenvironment in latex? I think about the
> demostration:
> 
> \newenvironment{demo}{\medskip Demostració.}{\hfill $\Box$}
> 

\definestartstop
  [demo]
  [before={\blank[medium]Demostració.},
   after=\hfill\mathematics{\Box}]

\starttext

\startdemo
text text text \unknown
\stopdemo

\stoptext

Wolfgang

> 
> 
> I'm sure all of that is possible to do with context
> 
> 
> And another question (in other topic): how we can do lines at header and
> footer like fancyheaders in latex?
> 
> Thanks another time,
> Xan.
> 
> > 
> > Aditya
> > ___
> > 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


Re: [NTG-context] An Index problem (repost)

2007-03-06 Thread luigi scarso
On 3/6/07, Taco Hoekwater <[EMAIL PROTECTED]> wrote:
>
> Hi Luigi,
>
> Sorry, no time right now for an elaborate example.
>
> luigi scarso wrote:
> >
> > ie, the very first word in bold face and upper case,
> > the following in normal face if and only of the very first word was
> > equal to the first
> > word of actual item (I know, it's strange).
>
> I would propose you create your own combined list
> (\definecombinedlist) and use that instead of the TOC.
> You have to write the items to that list explicitly then,
> but it would be reasonably straightforward.
>
>
> Another option is to create a dummy macro that you
> redefine where it is needed.
>
>
> \unexpanded \def\tocbf#1{{\bf #1}}
> vs
> \unexpanded \def\tocbf#1{#}
>
> and
> \section{\tocbf{Bold} ..}
>
> Best, Taco

OK.

\def\SectionCommand#1#2#3{%
%% something like this ??
%% (check for #1)
%% if #1 == 1
%% then
%%   put bold+CAP #2
%%   store #2 in LastSecTitle
%% else
%%   if #2 == LastSecTile
%%   then
%%  put normal #2
%%   else
%%  put bold+CAP #2
%%  store #2 in LastSecTitle
%%
}%
\setuplist[section]
  [alternative=none,
   sectionnumber=no, partnumber=no,
   command={\SectionCommand}]
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Theorems, etc with ConTeXt

2007-03-06 Thread Oliver Buerschaper
Hi Aditya,

> I have rudimentary support for titled theorems and end of proof
> markers working. It also takes care of your bug-report.

That's great news! My fingers are itching to test it ;-)

> I have patched core-des so that stopper is also honored when number=no
> is set.

Does this mean that your patch has already been merged with the  
official release?

> I have a very basic end of proof marker working. Basically, it will
> handle the marker correctly for proofs that end with paragraphs, and
> works hard to avoid a page break when the proof ends with a formula or
> an itemize (in this case, the end of proof marker is in a line of its
> own). The main macro for putting the proof marker on the right is from
> Paul Taylor's qed.sty. If you want to test this, I can send you the
> file offlist. This file is not in a state to be merged into the core
> right now.

Please send it to me ...

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


Re: [NTG-context] Some questions about context

2007-03-06 Thread Oliver Buerschaper
> And another question (in other topic): how we can do lines at  
> header and
> footer like fancyheaders in latex?


For your headers try this:

---

\setupheader
[text]
[after=\hrule]

\starttext
\input tufte
\stoptext

---

You can change the actual content of your headers via  
\setupheadertexts ...

Instead of the \hrule command above you could also resort to  
\thinrule. The global behaviour of \thinrule can then be customized  
via \setupthinrules ... However, this comes at the cost of  
introducing additional vertical space between your header text and  
the rule. On the contrary \hrule sticks to the text. Choose whatever  
suits you best.

(To the experts: is this \thinrule behaviour intended?)

Best wishes,
Oliver
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] An Index problem (repost II)

2007-03-06 Thread Hans Hagen
luigi scarso wrote:
> I have the following
> \starttext
> %%\placemaincontent
> \chapter{AAA}
> \section{Hause one} Foo one \page
> \section{Hause two} Foo  two \page
> \section{Hause three} Foo  three \page
> \section{Hause four} Foo  four\page
> \section{Dog boo} Koo   \page
> \section{Dog foo} Boo \page
> \section{Money ba} Boo \page
> \section{Mail bee} Ugh \page
> \stoptext
> In main content I should like to have
> \bf{AAA} %% no problem here
> \bf{HAUSE} one . page x
>  Hause two ..page x
>  Hause threepage x
>  Hause four ..page x
> \bf{DOG} boo ...page x
>  Dog foo.page x
> \bf{MONEY} ba.page x
> \bf{MAIL} bee.page x
>
> ie, the very first word in bold face and upper case,
> the following in normal face if and only of the very first word was
> equal to the first
> word of actual item (I know, it's strange).
>   
\let\LastSectionEntry\empty

\def\ChapterEntry#1%
  {\global\let\LastSectionEntry\empty
   #1}

\def\SectionEntry#1%
  {\splitstring#1\at{ }\to\PartA\and\PartB
   \doifelse\PartA\LastSectionEntry
 {#1}
 {\global\let\LastSectionEntry\PartA
  {\bf\PartA} \PartB}}

\setuplist[chapter][style=bold,textcommand=\ChapterEntry]
\setuplist[section][textcommand=\SectionEntry]

\starttext
\placelist[chapter,section]
\chapter{AAA}
\section{Hause one} Foo one \page
\section{Hause two} Foo  two \page
\section{Hause three} Foo  three \page
\section{Hause four} Foo  four\page
\section{Dog boo} Koo   \page
\section{Dog foo} Boo \page
\section{Money ba} Boo \page
\section{Mail bee} Ugh \page
\chapter{BBB}
\section{Mail bee} Ugh \page
\section{Mail bee} Ugh \page
\section{Mail bee} Ugh \page
\stoptext



-
  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] An Index problem (repost)

2007-03-06 Thread Taco Hoekwater

Hi Luigi,

Sorry, no time right now for an elaborate example.

luigi scarso wrote:
> 
> ie, the very first word in bold face and upper case,
> the following in normal face if and only of the very first word was
> equal to the first
> word of actual item (I know, it's strange).

I would propose you create your own combined list
(\definecombinedlist) and use that instead of the TOC.
You have to write the items to that list explicitly then,
but it would be reasonably straightforward.


Another option is to create a dummy macro that you
redefine where it is needed.


\unexpanded \def\tocbf#1{{\bf #1}}
vs
\unexpanded \def\tocbf#1{#}

and
\section{\tocbf{Bold} ..}

Best, Taco


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


Re: [NTG-context] Some questions about context

2007-03-06 Thread Xan
En/na Aditya Mahajan ha escrit:
> On Mon, 5 Mar 2007, Xan wrote:
> 
>> Another question: how get the equivalent of ams theorem package?
>> Sorry for no ask this before and another time, thanks
> 
> enumerations. This is what I ususally do
> 
> \defineenumeration[theorem][style=italic,text=Theorem,location=hanging]
> 
> \starttheorem
> This is an important theorem
> \stoptheorem
> 
> They do almost everything on what is needed for theorems. I am working 
> on providing missing features, so if you find something is missing, 
> feel free to ask.

Thank you very much for give me this opportunity.
Enumerations work but I need more customization:

1) How can you change the style of the text (Theorem in our example)?
2) How can you change the position of the counter: "1 Theorem" rather
than "Theorem 1"
3) Is it possible to change the counter? In LaTeX, with much effort and
help, I could write some code for displaying something like:

Theorem [number of theorem].[numberofpageitappears]. 

If you want to see the code, I could give you

4) What about the indentation of the "body" of the theorem?. If you put:

\starttheorem
This is an important theorem skjdskad sda sdas dsad asdas das dsafs f
dsfsdfsdf dfsdf sdf dsfsd fsdfsd fds fdsf ds fsd fds fsdfsdfs fdsfsd f
\stoptheorem

the text is indented a little bit after the begginning of the line. We
could have a normal indentation (like AMS theorem do)?

5) Is there an equivalent to \newenvironment in latex? I think about the
demostration:

\newenvironment{demo}{\medskip Demostració.}{\hfill $\Box$}



I'm sure all of that is possible to do with context


And another question (in other topic): how we can do lines at header and
footer like fancyheaders in latex?

Thanks another time,
Xan.

> 
> Aditya
> ___
> 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] Some questions about context

2007-03-06 Thread Xan
En/na luigi scarso ha escrit:
>> PS: Yes, I refer to xyfig.

Sorry (double): xypic!!
Sorry

> Some time ago there was something about this.
> I think than xypic has very little chances to become part of context;
> I used it and I find it useful , but metapost is better (abd perhaps pgf too).
> 
> btw
> grep -i  xypic  in latest distro give
> 
> fonts/map/pdftex/context/original-base.map:% xypic
> tex/context/base/s-abr-01.tex:\logo [XYPIC]  {XYPIC} % wrong logo
> 

Thank you very much for this links.
I saw the MetaPost and MetaFun and it's incredible what we can do with 
these!. I'm impressed.

Thanks,
Xan-
> 
> luigi
> ___
> 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] An Index problem (repost II)

2007-03-06 Thread luigi scarso
I have the following
\starttext
%%\placemaincontent
\chapter{AAA}
\section{Hause one} Foo one \page
\section{Hause two} Foo  two \page
\section{Hause three} Foo  three \page
\section{Hause four} Foo  four\page
\section{Dog boo} Koo   \page
\section{Dog foo} Boo \page
\section{Money ba} Boo \page
\section{Mail bee} Ugh \page
\stoptext
In main content I should like to have
\bf{AAA} %% no problem here
\bf{HAUSE} one . page x
 Hause two ..page x
 Hause threepage x
 Hause four ..page x
\bf{DOG} boo ...page x
 Dog foo.page x
\bf{MONEY} ba.page x
\bf{MAIL} bee.page x

ie, the very first word in bold face and upper case,
the following in normal face if and only of the very first word was
equal to the first
word of actual item (I know, it's strange).

Many thanks in advance
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] An Index problem (repost)

2007-03-06 Thread luigi scarso
I have the following
\starttext
%%\placemaincontent
\chapter{AAA}
\section{Hause one} Foo one \page
\section{Hause two} Foo  two \page
\section{Hause three} Foo  three \page
\section{Hause four} Foo  four\page
\section{Dog boo} Koo   \page
\section{Dog foo} Boo \page
\section{Money ba} Boo \page
\section{Mail bee} Ugh \page
\stoptext
In main content I should like to have
\bf{AAA} %% no problem here
\bf{HAUSE} one . page x
 Hause two ..page x
 Hause threepage x
 Hause four ..page x
\bf{DOG} boo ...page x
 Dog foo.page x
\bf{MONEY} ba.page x
\bf{MAIL} bee.page x

ie, the very first word in bold face and upper case,
the following in normal face if and only of the very first word was
equal to the first
word of actual item (I know, it's strange).

Many thanks in advance
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] free space under floatings

2007-03-06 Thread Hans Hagen
Gerhard Kugler wrote:
> On Sun, Mar 04, 2007 at 08:04:18PM +0100, Hans Hagen wrote:
>  
>   
>> also, penalties may influence the way a paragraph is broken across pages
>>
>> 
>
> Hans,
>
> which sorts of penalties?
>
>   
page break related penalties like clubpenalty and widowpenalty, but  penalties 
that determine linebreaks may influence things as well (conflicting 
constraints) 

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