Re: [NTG-context] ' doesn't make a prime in math mode (solved)

2007-05-07 Thread Ricard Roca
Solved! It was a bad written own macro that enabled mathpunctuation 
(decimal comma) automatically depending on the language on every 
mathematics. I have rewritten it and now all works.

Sorry for the noise. I thought it could be that, but when I tried the 
live context in the garden I wasn't so sure.

Thanks

Ricard
___
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] ' doesn't make a prime in math mode

2007-05-06 Thread Ricard Roca
Hi,

In the lastest conTeXt, typing a ' in math mode typesets nothing and 
gives an error (undefined control sequence). You have to use ^\prime, 
instead.

Thanks,

Ricard Roca
___
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] ' doesn't make a prime in math mode

2007-05-06 Thread Ricard Roca
I'm using the last version, installed with ctxtools. My system is TeXlive.

I thought it happened because of some config file or macro in my system, 
so I tested

\starttext
$f'(x)$
\stoptext

with the live conTeXt in the garden, and it gives an error too.

Ricard
___
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] XeTeX opentype features don't work

2007-04-23 Thread Ricard Roca
Hi,

I can't use opentype font features with XeTeX, e.g. Palatino 
Linotype:+smcp for small caps. It works with plain XeTeX or ConTeXt 
with \font, e.g.

\font\PALA=Palatino Linotype:+smcp at 12pt
\PALA some text...

but not with typescripts, like

\starttypescript[serif][PalatinoLinotype][uc]
  ...
  \definefontsynonym[PalatinoLinotypeCaps][Palatino 
Linotype:+smcp][encoding=uc]
  ...
\stoptypescript
\starttypescript[serif][PalatinoLinotype][name]
  ...
  \definefontsynonym[SerifCaps][PalatinoLinotypeCaps]
  ...
\stoptypescript
\starttypescript[PalatinoLinotype]
  
\definetypeface[PalatinoLinotype][rm][serif][PalatinoLinotype][default][encoding=uc]
\stoptypescript
\usetypescript[PalatinoLinotype]
\setupbodyfont[PalatinoLinotype]

so it must be a ConTeXt problem, not a XeTeX one.

It works well with the font name alone, without any colon plus features, 
like Palatino Linotype.

With ConTeXt versions released some months ago all opentype features 
worked perfectly, and there wasn't any problem.

Thanks in advance,

Ricard
___
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] XeTeX opentype features don't work [solved]

2007-04-23 Thread Ricard Roca
I have read this thread in the mailing list 
(http://archive.contextgarden.net/message/20070413.171025.c375278f.en.html) 
and understood the problem.

Sorry for the noise.

Ricard
___
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] Microsoft Word - Context

2007-04-02 Thread Ricard Roca
Hi,

There are many Word to LaTeX converters, but no Word to ConTeXt 
converters. Some LaTeX converters, however, are highly configurable, and 
you can teach them to write {\em instead of \emph{, or \startitemize 
instead of \begin{itemize}, and so.

If you use a MS operating system, with Word-to-LaTeX (only for Windows) 
you can get a very clean output file with a format that is almost pure 
ConTeXt, only changing the configuration file of the application. You 
can download the program from http://kebrt.webz.cz/programs/word-to-latex/

The mail server does not accept attached my config file. I'll put it in 
the garden in a new page. It's not a definitive solution, however. You 
can play with the multiple options.

Best,

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


Re: [NTG-context] Footnote bug(?) with columns and vertical stretch

2007-02-08 Thread Ricard Roca
Hi,

This is a test file that shows the possible bug I posted yesterday:

\setupalign[height]
\setupinterlinespace[stretch=0.05]
\setupfootnotes[location=columns]
\starttext
\startcolumns
\dorecurse{5}{\input knuth}\footnote{bla bla bla bla bla bla bla bla}
\dorecurse{5}{\input knuth}
\stopcolumns
\stoptext

Thanks,

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


[NTG-context] Footnote bug(?) with columns and vertical stretch

2007-02-07 Thread Ricard Roca
Hi to all,

With \start/\stopcolumns (not columnsets) footnotes work well if grid is
enabled. If grid is not enabled and vertical stretch is wanted, with

\setupalign[height]
\setupinterlinespace[stretch=some value]

footnotes disappear. It remains the reference mark in the middle of the
text and the space left at the end of the column, but there is no
footnote. Changing
\setupfootnotes[location=columns, page, etc] does nothing, but endnotes
do work.

Is this a bug?

Thanks in advance,

Ricard Roca



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


Re: [NTG-context] dashed or dotted lines in tables

2006-10-27 Thread Ricard Roca
Yes, more or less.

I meant drawing the normal horizontal and vertical rules that separate 
rows and columns dashed or dotted instead of continuous, but using TeX 
itself, i.e. with an option or command from one of the table packages, 
redefining some internal macro, etc. But I see that's not (easily) 
doable, and one has to use Metapost.

Thanks

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


[NTG-context] dashed or dotted lines in tables

2006-10-26 Thread Ricard Roca
Hi to all,

is there any way to make dashed or dotted lines in a table (instead of 
continuous) with ConTeXt?

Thanks,

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


Re: [NTG-context] A new manual

2006-09-29 Thread Ricard Roca
And me too. No doubt!

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


Re: [NTG-context] XeTeX and \placefigure

2006-08-24 Thread Ricard Roca
It works with jpg, pdf and png, with ConTeXt 2006-08-16 (beta).

Thanks,

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


[NTG-context] footnotes and variable rules

2006-08-22 Thread Ricard Roca
Hi to all,

In some countries it is traditional that footnote rules have the following 
behaviour:

When a footnote doesn't fit entirely in one page, and has to be continued in 
the next one, the footnote rule in the second page has to be longer, to show 
that the footnote doesn't start there, but in the preceeding page. So, if you 
normally use a e.g. 20%\textwidth rule, the rule in the following page has to 
be longer, typically 100%\textwidth; if you don't use footnote rule, the 
following page has to have a e.g. 20%\textwidth rule.

In LaTeX this can be done with the footmisc package.

Can this be done with ConTeXt, e.g. redefining \normalnoterule?

Thanks in advance,

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


Re: [NTG-context] feature request: external figures with XeTeX

2006-08-17 Thread Ricard Roca
Hi,

I think \externalfigure support is the only \special feature that still 
doesn't work with XeTeX. It seems that color, paper sizes and pdf interaction 
work well. This is not a big problem, because you can use \XeTeXpicfile (for 
jpg, png and bmp) and \XeTeXpdffile (you can specify width, scale, angle, 
etc., and with pdf files, the page). The documentation is in the file 
XeTeX-notes.pdf, available with the Mac OS X XeTeX package (available options 
are 'width', 'height', 'scaled', 'xscaled', 'yscaled', 'rotated', and 'page' 
for pdf files). So you can do all the normal graphic manipulations without 
knowing box dimensions, etc., like with \externalfigure.

But their syntax is a bit strange from the conTeXt point of view (too TeXy), 
and it would be nice to use the same syntax than with pdfTeX input.

Thanks,

Ricard

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


Re: [NTG-context] A few questions (mostly about fonts)

2006-08-16 Thread Ricard Roca
Hi!

Quick answers:

 a) Somehow I can't come up with small caps in a Times font. Is this
 normal? This happens either by using \sc or \setupcapitals[sc=yes]
 along with \cap.

Times font that comes with TeX distros doesn't have real small caps, but \cap 
should work, as with any font. The only Times with real small caps is sold by 
Adobe (and others, probably).

 b) LaTeX has a package for the International Phonetic Alphabet called
 tipa. Is it possible to use it in ConTeXt? If not, can anybody point
 me to the relevant manuals that will help me incorporate official IPA
 fonts (say, the TTF version) in my ConTeXt installation? I'm using the
 stand-alone Windows distribution, btw.

Well, some time ago an experimental tipa module for Context was posted in this 
list, but it was never finished. It works only for simple characters (no 
accents, diacritics, tonal marks, etc.; this part was not adapted). I can 
send you it if you want to test a bit. Using non-tipa (computer modern like) 
ipa fonts is difficult, because you would have to write encoding files for 
dvips, ConTeXt, etc. (if you don't understand this terms, better forget 
that). But this happens with pdfTeX...
 I think the way to do ipa typesetting with ConTeXt is using XeTeX. With XeTeX 
you can use ipa *unicode* fonts (not old fonts), like Gentium, Lucida Sans, 
new versions of Doulos, etc., using directly unicode ipa input in your text 
which was not possible with tipa.

 Two language related issues:

 c) There was a French language specific package in LaTeX that made
 possible the direct use of accented characters in the source text
 (like é, à, ô) without using the explicit commands themselves. Can
 this be achieved in ConTeXt (because right now their direct use simply
 halts the compiling)? I would believe so, since the manual for French
 documents by Peter Münster shows how to set up automatic spacing
 before the strong punctuation marks (! ? ; :) without explicit
 commands every time. I'm guessing the strategy would be the same with
 accented characters, but so far I haven't been able to make it work.

You can use accented characters in the source with latin1 or utf8 encodings 
(use \enableregime[il1] or [utf]). You can get colon spacing using 
\useencoding[ffr] *before* \mainlanguage[fr] or \fr.

 d) Is it possible to build some sort of macro that would automatically
 make \quotation marks different when inside another \quotation
 command? Basically, we use « » (the French guillemets) as standard
 quotation marks, but we use single quotes instead inside another
 quotation. At this point, I'd only need a yes or no answer. It would
 ease my mind to know there can be a way to streamline this usage of
 quotation marks, thereby simplifying greatly the input text.

Don't know. Possibly, but I'm not a TeX guru.

 And finally, a silly question:

 e) If purists say that LaTeX is to be pronounced latek, is ConTeXt to
 be pronounced contekt? :-)

I think it is correct to pronounce ['leiteks] too.

 Thanks for your help!
 Jeff Smith
 Québec, Canada
 ___
 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] infinite paper height

2006-07-18 Thread Ricard Roca
I think that's not possible because of TeX. TeX limits any dimension to 2^30 
scaled points (~5.75 m).

But that's only the TeX part. I don't know if dvi drivers can combine several 
TeX pages in one printer page infinitely. Possibly any of the PostScript 
tools?

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


Re: [NTG-context] Math encoding in XeTeX

2006-05-21 Thread Ricard Roca

 I'm sorry for not being precise enough, the thread was on the XeTeX
 mailing list, not here. (How to use EC font encoding in XeTeX?)

Don't worry. I am subscribed to that list too :)

Thanks a lot

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


[NTG-context] Math encoding in XeTeX

2006-05-20 Thread Ricard Roca
Hi,

With ConTeXt and pdfTeX you can use \enableregime[utf] (utf8 encoding) with 
normal mode and math mode (no need to write \pm, \alpha or \times). But with 
ConTeXt and XeTeX you don't have to specify utf8 regime, because XeTeX can 
read utf8 directly. However, math mode in XeTeX is a different story ( 256 
character tfm's are needed and so, and the encoding has to be ascii, so you 
have to write \pm, and ± doesn't work). 

It would be nice if utf8 regime (using uni-xxx files) could be enabled only 
for math mode when using XeTeX, and so you would be able to input unicode 
characters in all modes (normal and math).

Thanks in advance,

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


[NTG-context] ConTeXt, XeTeX for Linux and xdvipdfmx

2006-05-16 Thread Ricard Roca
Hi,

It seems that some things doesn't work well with ConTeXt and XeTeX for Linux. 
For example image inclusion (jpg, png, pdf) with \externalfigure or 
\useexternalfigure doesn't work, but does with xdvipdfmx \special's 
(\special{pdf: image ...}). Also, \setuppapersize doesn't work (e. g. 
\setuppapersize[A5][A5]  does the same as \setuppapersize[A5][A4], being A4 
the default).

But \color seems to work well.

Are these ConTeXt bugs (related to \special's) or Linux XeTeX-xdvipdfmx bugs?

Thanks in advance,

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