Re: [NTG-context] Recapitulating

2006-08-25 Thread Hans Hagen
Pepe Barbe wrote:
 After jumping through hoops, with some help I managed to get XeTeX
 running and using TTF fonts directly with pdfTeX.

 But before I go any further I would like to know what is your opinion
 in using one or the other. When researching a bit on XeTeX I read
 there were several caveates vs. using pdfTeX with LaTeX.

 Is this the same? In ConTeXt. What can I expect to work and what not?
 If TTF can be used with pdfTeX (with some effort) what is the
 advantage of using XeTeX with ConTeXt?
   
by the end of the year / begin next year, pdftex will support open type
natively 

xetex uses libraries and hooks into platform font support; pdftex will stay 
independent of libraries and focus on extendibility and configurability (think 
of scripts that demand complex solutions and different ones as well, like 
arab); of course the question is if in the end it makes much difference for the 
average user 

concerning context and these two ... we may end up with a common core and 
different subsystems and levels of support; graphics for instance can be dealt 
with in a way hidden from the user, as can input encodings; fonts and font 
features may differ but i'll try to offer a kind of generic interface to for 
instance open type features since the definition and control of fonts will 
differ per engine

of course it also depends on what i use (most) and what users demand -) 

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] Recapitulating

2006-08-25 Thread Hans Hagen
Mojca Miklavec wrote:
 Apart from that the only thing that comes to my mind is the usage of
 (math) fonts in general. XeTeX has not been around for such a long
 time as pdfTeX, so if you want to set up your own font for math or
 whatever, you might need slightly more patience. (Latin Modern hasn't
 been set up yet to work in the same was as it does in pdfTeX for
 example.) And if you want to use the old TeX fonts, you might come
 accross some problems with accented letters (XeTeX doesn't know that a
 certain font is ec-encoded) ... etc.
   
math is a different story

- more that 16 families
- unicode access  64K (where math is located)
- additional (and alternative) symbol definitions
- new (!) math features built into the engine

pdftex and xetex are currently more or less the same; things may become 
different when open type math fonts show up

i also expect pdftex 2 (aka luatex aka metatex) to provide new 
functionality, but much of that is hidden for the user and aimed at 
better output

so, when you use pdftex and xetex mixed, you must keep in mind that the 
same text may be typeset diffferently due to different font handling and 
features
 To conclude it in two sentences: concentrate on content instead. You
 would have to think twice if you would have to decide between LaTeX
 and ConTeXt. The difference between documents in pdfTeX and XeTeX is
 only a matter of a couple of lines in setup, nothing more.

   
yet -) 

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] XeTeX and \placefigure

2006-08-25 Thread Hans Hagen
Jeff Smith wrote:
 On 8/24/06, Mojca Miklavec [EMAIL PROTECTED] wrote:
   
 - You need to install ImageMagic if you don't have it yet.

 - My files didn't want to compile either. I deleted everything and
 installed ConTeXt from scratch (mswintex.zip, justtex.zip, XeTeX from
 W32TeX + ctxtools --update + remake formats for XeTeX). Don't ask me
 why it didn't work before (complained as in your case) - now it works
 perfectly.
 

 I've followed this thread with interest What about the windows
 stand-alone distribution, here? Would it be any different? I installed
 ImageMagick and enabled the shell-escape, but I still get the dummy
 boxes.
   
hm, i only test xetex on windows (two broken macs now) and it works ok; is 
rlxtools called ? if not you can try 

rlxtools --ident somefile.jpg 

to see what happens 

btw, make sure that you use 

texexec --xtx somefile

i.e. use dvipdfmx and not the other one 

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


[NTG-context] Problem with \placefloatcaption

2006-08-25 Thread Renaud AUBIN




Hi all,

\placefigure
 [none]
 {}
 {\startcombination
 {\externalfigure[hylos]}{\placefloatcaption[figure]{Hylos}}
 {\externalfigure[shrimp]}{\placefloatcaption[figure]{Shrimp III}}
 \stopcombination}

returns

./src/images/hylos.jpg
figures : dimensions of ./src/images/hylos.jpg loaded from
figurefile i
tself
(./prd_phd.tuo)
! Undefined control sequence.
argument \preparednumber

\preparefullnumber #1#2#3-\analyzenumber {#1}#2#3
 \ifx \numberseparator
\emp...

[EMAIL PROTECTED]@[EMAIL PROTECTED] ...e [EMAIL PROTECTED]@[EMAIL PROTECTED]
 \doattributes {\??kj
figur...

\doplacefloatcaption ...placefloatcaptiontext [#1]

\placefloatcaptionreferenc...
l.107 ...hylos]}{\placefloatcaption[figure]{Hylos}
 }
?

Is there a bug or a misuse of \placefloatcaption ?

Renaud



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


Re: [NTG-context] XeTeX and \placefigure

2006-08-25 Thread Jeff Smith
Huh...lo and behold! This morning, it works. But I have done nothing?!
That's really strange... but I sure won't complain. :-)

One thing...

 But what exactly do you mean by I enabled the shell-escape? Isn't it
 enabled by default already (contrary to other distributions such as
 MikTeXt)?

Yes, well... actually I just wanted to say that I had _checked_ if it
were enabled, but somehow it got worded very poorly. Sorry!

Anyway thanks again all, you're very helpful.
Jeff Smith
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Strange math error (bug ??)

2006-08-25 Thread WN
Hello,

The following is quit strange, in the first formula the [{Q}, {R} ] on the
left hand side of the \rightarrow is not processed but on the right hand 
side of
the \rightarrow it is processed (?)

\starttext
The left side with $[Q,R]$ does not show, but the
right side with $[Q,R]$ does show, what is happening here ???
\startformula
[ {Q} , {R} ] \rightarrow \frac{1}{i \hslash} [ {Q} , {R} ]
\stopformula
\stoptext

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


Re: [NTG-context] Strange math error (bug ??)

2006-08-25 Thread Aditya Mahajan
On Fri, 25 Aug 2006, WN wrote:

 Hello,

 The following is quit strange, in the first formula the [{Q}, {R} ] on the
 left hand side of the \rightarrow is not processed but on the right hand
 side of
 the \rightarrow it is processed (?)

 \starttext
 The left side with $[Q,R]$ does not show, but the
 right side with $[Q,R]$ does show, what is happening here ???
 \startformula

\relax

 [ {Q} , {R} ] \rightarrow \frac{1}{i \hslash} [ {Q} , {R} ]
 \stopformula
 \stoptext

\startformula, like most commands in context, accepts an optional 
argument, so [...] immediately after \startformula is gobbled. Just 
add a \relax after \startformula and you should be fine.

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


Re: [NTG-context] Strange math error (bug ??)

2006-08-25 Thread Mojca Miklavec
On 8/25/06, WN wrote:
 Hello,

 The following is quit strange, in the first formula the [{Q}, {R} ] on the
 left hand side of the \rightarrow is not processed but on the right hand
 side of
 the \rightarrow it is processed (?)

 \starttext
 The left side with $[Q,R]$ does not show, but the
 right side with $[Q,R]$ does show, what is happening here ???
 \startformula
 [ {Q} , {R} ] \rightarrow \frac{1}{i \hslash} [ {Q} , {R} ]
 \stopformula
 \stoptext

Not a bug, but a price that you have to pay for having optional
parameters. Adding \relax after \startformula solves the problem.

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


Re: [NTG-context] Problem with \placefloatcaption

2006-08-25 Thread Renaud AUBIN




Renaud AUBIN a crit:

  
  
  Hi all,
  
\placefigure
 [none]
 {}
 {\startcombination
 {\externalfigure[hylos]}{\placefloatcaption[figure]{Hylos}}
 {\externalfigure[shrimp]}{\placefloatcaption[figure]{Shrimp III}}
 \stopcombination}
  
returns
  
./src/images/hylos.jpg
figures : dimensions of ./src/images/hylos.jpg loaded from
figurefile i
tself
(./prd_phd.tuo)
! Undefined control sequence.
argument \preparednumber
  
\preparefullnumber #1#2#3-\analyzenumber {#1}#2#3
 \ifx \numberseparator
\emp...
  
[EMAIL PROTECTED]@[EMAIL PROTECTED] ...e [EMAIL PROTECTED]@[EMAIL PROTECTED]
 \doattributes {\??kj
figur...
  
\doplacefloatcaption ...placefloatcaptiontext [#1]

\placefloatcaptionreferenc...
l.107 ...hylos]}{\placefloatcaption[figure]{Hylos}
 }
?
  
Is there a bug or a misuse of \placefloatcaption ?
  
Renaud
  
  

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

Problem solved in the beta release




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


Re: [NTG-context] Strange math error (bug ??)

2006-08-25 Thread WN
[EMAIL PROTECTED] wrote:
 On Fri, 25 Aug 2006, WN wrote:

   
 Hello,

 The following is quit strange, in the first formula the [{Q}, {R} ] on the
 left hand side of the \rightarrow is not processed but on the right hand
 side of
 the \rightarrow it is processed (?)

 \starttext
 The left side with $[Q,R]$ does not show, but the
 right side with $[Q,R]$ does show, what is happening here ???
 \startformula
 

 \relax

   
 [ {Q} , {R} ] \rightarrow \frac{1}{i \hslash} [ {Q} , {R} ]
 \stopformula
 \stoptext
 
Should have seen this coming. Thanks.
 \startformula, like most commands in context, accepts an optional 
 argument, so [...] immediately after \startformula is gobbled. Just 
 add a \relax after \startformula and you should be fine.

 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] Mixed Case Abbreviations

2006-08-25 Thread Pepe Barbe
Hello,

Is it possible to have different cases in an abbreviation? For example mRNA.

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


Re: [NTG-context] \definesomething?

2006-08-25 Thread Aditya Mahajan
On Wed, 23 Aug 2006, Pepe Barbe wrote:

 In the ConTeXt manuales there is a reference to \definesomething as a
 way to create new commands(?)/variables(?). The truth is that I
 haven't bee able to truly understand if this is a generic example or I
 can define my own commands with this and how the syntax would be used.
 I would appreciate if anyone can clarify this to me.

You can use if for almost anything you want. This is how \define is 
defined :)

\def\define#1%
   {\ifx#1\undefined
  \expandafter\def
\else
  \message{[\noexpand#1is already defined]}%
  \expandafter\def\expandafter\gobbleddefinition
\fi#1}

Which basically means that

\define\mymacro#1 is equivalent to

\def\mymacro#1 but also checks if mymacro has already been defined. 
In general, it is a good idea to use \define for all your private 
macros to make sure that you do not redefine one of context's internal 
macros. Another way to ensure the same thing is to use CAPS for all 
your private macros. If you really want to redefine a macro that is 
already defined, you should use

\redefine\macro

you can also use \def\macro but \redefine gives you a warning 
message.

Aditya


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