ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How to define your own math character (MK-IV)
@ 2010-04-11 12:45 gummybears
  2010-04-11 15:53 ` Hans Hagen
  2010-04-11 16:26 ` Aditya Mahajan
  0 siblings, 2 replies; 4+ messages in thread
From: gummybears @ 2010-04-11 12:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 165 bytes --]

Hi,

How to use definemathcommand to setup some of the missing math symbols ?
Some of these symbols are defined in char-def.lua but missing in
math-vfu.lua.

Thanks

[-- Attachment #1.2: Type: text/html, Size: 193 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to define your own math character (MK-IV)
  2010-04-11 12:45 How to define your own math character (MK-IV) gummybears
@ 2010-04-11 15:53 ` Hans Hagen
  2010-04-11 16:26 ` Aditya Mahajan
  1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2010-04-11 15:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 11-4-2010 2:45, gummybears wrote:
> Hi,
>
> How to use definemathcommand to setup some of the missing math symbols ?
> Some of these symbols are defined in char-def.lua but missing in
> math-vfu.lua.

if they are in the regular tex fonts, then we need to extend the vfu ... 
keep in mind that the vfu approach is just a placeholder for real math 
fonts ... we're not going to waste much time on hacks when eventually we 
will have proper uinicode math fonts.

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
-----------------------------------------------------------------
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to define your own math character (MK-IV)
  2010-04-11 12:45 How to define your own math character (MK-IV) gummybears
  2010-04-11 15:53 ` Hans Hagen
@ 2010-04-11 16:26 ` Aditya Mahajan
  1 sibling, 0 replies; 4+ messages in thread
From: Aditya Mahajan @ 2010-04-11 16:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, 11 Apr 2010, gummybears wrote:

> Hi,
>
> How to use definemathcommand to setup some of the missing math symbols ?
> Some of these symbols are defined in char-def.lua but missing in
> math-vfu.lua.

math-vfu does not use definecommand. You need to find the font that 
contains that symbol, create a math vector containing mappings like

[uncode slot] = [font slot]

and add the math vector to define_math_font (don't remember the exact 
name).

It may be faster if you tell which symbolsare missing (or wrong) in 
math-vfu and the name of the font that contains them (if you know that). 
If you give the list of missing symbols in small installments, I can 
update math-vfu to include them. Finding the missing symbols/mappings is 
the more time consuming step.

Aditya
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to define your own math character (MK-IV)
@ 2010-04-12 15:19 gummybears
  0 siblings, 0 replies; 4+ messages in thread
From: gummybears @ 2010-04-12 15:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1028 bytes --]

Hi Hans & Aditya

Please be patient as I am not a developer just someone who writes
documents.

I discovered the integral symbols starting at the double integral
are now composed by repeating the normal integral symbol
n-times. However in an earlier email I commented that they didn't
look right (something to do with setting the displaystyle (I think))

Then I discovered the Asana math font which has "correct" glyphs
The missing symbols for math-vfu.lua are

Asana math font
0x222B normal integral \int
0x222C double integral \iint
0x222D triple integral \iiint
0x222E contour integral \oint
0x222F surface integral \oiint
0x2230 volume integral \oiiint

I also need the space-time integral \iiiint (4 i's) but could
not find it in the Asana font

Note for the other math stuff the Asana math font does not work
like vectors and such. For $\vec{r}, \vec{R}$ the vector symbol is shifted
to the right and not aligned above the character (hope this make some sense
otherwise
forget it for the moment).

Kind regards
gummybears

[-- Attachment #1.2: Type: text/html, Size: 1154 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-04-12 15:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-11 12:45 How to define your own math character (MK-IV) gummybears
2010-04-11 15:53 ` Hans Hagen
2010-04-11 16:26 ` Aditya Mahajan
2010-04-12 15:19 gummybears

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).