[NTG-context] Mixing math fonts, help ?

2010-06-21 Thread gummybears
Hi,

On http://wiki.contextgarden.net/Bold_Math section Mixing Math Fonts
I tried to mix in the Asana Math font for the missing integral symbols.

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

However I don't want to switch to the whole Asana Math, because the math
looks ugly, just want to get to the missing symbols in math mode.

To all the experts on the list, please be patient with me. I am just some
one
who documents math and physics texts but I am not a programmer or Tex
wizard.
My knowledge of Context is ok, but still beginners level. I really don't
know how to
get it to work and it's stopping me.

Using the latest Context/Luatex version
ConTeXt version 2010.06.20 00:01
LuaTeX date stamp 2010061909

I tried a modified version
\starttypescript [math]
  \definefontsynonym [MathSymbol]   [Asana-Math]
  \definefontsynonym [MathRoman][ComputerModernMath-Roman]
  \definefontsynonym [MathExtension][ComputerModernMath-Extension]
\stoptypescript
\usetypescript[math]

\starttext
\startlines
0x222B normal integral  $\int_{a}^{b}$
0x222C double integral  $\iint_{a}^{b}$
0x222D triple integral  $\iiint_{a}^{b}$
0x222E contour integral $\oint_{a}^{b}$
0x222F surface integral $\oiint_{a}^{b}$
0x2230 volume integral  $\oiiint_{a}^{b}$
0x2A0C space time $\nt_{a}^{b}$
\stoplines

This file has been typeset on \currentdate{}  at \currenttime,  with
\doifmodeelse{mkiv}
{mkiv,
LuaTeX version \the\luatexversion,
LuaTeX revision \luatexrevision,
(LuaTeX date stamp \luatexdatestamp),
using the command: \par
\type{context test-luatex.tex}\par}
{mkii,
using the command: \par
\type{texexec test-luatex.tex}\par}
\blank
ConTeXt version \contextversion.

\stoptext
___
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
___


[NTG-context] Anyone ?? (Math symbols missing)

2010-05-23 Thread gummybears
Anyone ?

The glyphs are present in the Asana Math font.

-- Forwarded message --
From: gummybears oracle...@gmail.com
Date: Thu, May 13, 2010 at 5:03 PM
Subject: Math symbols missing
To: mailing list for ConTeXt users ntg-context@ntg.nl


Hi

The following math symbols are missing,

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 \nt (4 i's)

Kind regards

PS Using latest stable context (MK-IV)
___
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
___


[NTG-context] Math symbols missing

2010-05-13 Thread gummybears
Hi

The following math symbols are missing,

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 \nt (4 i's)

Kind regards

PS Using latest stable context (MK-IV)
___
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
___


[NTG-context] Bug in latest context (MK-IV) ?

2010-05-13 Thread gummybears
Hi,

Running the following test with the latest context (MK-IV 2010.05.13 12:15)
gives the following error.
Compiled fine with version MK-IV 2010.04.29 22:30 (side note : integral
symbols still not displaying correctly)

I was just wondering, is there a ConText test suite which I can use to test
the stability of a version ?
It is difficult to determine between versions, what is working. I have some
small test files
myself, but they only serve as a minimal test to see if I can at least run
them without getting errors.

! Missing $$ inserted.
to be read again
   \Ustopdisplaymath
\stopdisplaymath ...opinnermath \Ustopdisplaymath
  \par \afterdisplayspace
\p...
\dostopformula ...eter \c!alternative \v!formula }
  \nonoindentation
\checknex...
l.24 \stopformula

Test file
\starttext
$\int_{a}^{b}   $
$\iint_{a}^{b}  $
$\iiint_{a}^{b} $
$\oint_{a}^{b}  $
$\oiint_{a}^{b} $
$\oiiint_{a}^{b}$
\startformula[-]
\startalign
\NC \text{integral} \NC \int_{a}^{b}\NR
\NC \text{double integral}  \NC \iint_{a}^{b}   \NR
\NC \text{triple integral}  \NC \iiint_{a}^{b}  \NR
\NC \text{contour integral} \NC \oint_{a}^{b}   \NR
\NC \text{surface integral} \NC \oiint_{a}^{b}  \NR
\NC \text{volume integral}  \NC \oiiint_{a}^{b} \NR
\stopalign
\stopformula
\blank
This file has been typeset on \currentdate{}  at \currenttime,  with
\doifmodeelse{mkiv}
{mkiv,
LuaTeX version \the\luatexversion,
LuaTeX revision \luatexrevision,
(LuaTeX date stamp \luatexdatestamp),
using the command: \par
\type{context mathtest.tex}\par}
{mkii,
using the command: \par
\type{texexec mathtest.tex}\par}
\blank
ConTeXt version \contextversion.
\stoptext
___
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
___


Re: [NTG-context] 3D annotations

2010-05-04 Thread gummybears
On Sun, 2 May 2010, gummybears wrote:

I read your email (17 april 2010) on the mailing list and applied the two
patches to my Context minimal distro
(the very latest version). When I run your test.tex through context the
preview image test.png is not shown.


did you recreate formats after patch
(context -make if memory serves me right)?
I will test with current minimals today.

Probably not (my mistake), but now I did make the formats and with the
current minimals
I got the following error (when running your test.tex file)
bodyfont: 12pt rm is loaded
language: language en is active
systems : begin file test.tex at line 3
floatblocks : 1 placed
! LuaTeX error ...text/tex/texmf-context/tex/context/base/lpdf-mis.lua:163:
attempt to call field 'timestamp' (a nil value)
stack traceback:
...text/tex/texmf-context/tex/context/base/lpdf-mis.lua:163: in function
'setupidentity'
main ctx instance:1: in main chunk.
\synchronizebackendidentity ...akeyword \!!es , }}

\actualshipout ...lio \or \the \everyfirstshipout
  \global
\everyfirstshipout...
\myshipout ...\@@ppmethod }\gobbleoneargument {#1}
  \setnextrealpageno
\afters...
\dofinaloutput ...hbox {\vbox {\dopagebody #1#2}}}
  \the \everyaftershipout
\a...
\finaloutput ...EAEAEA \dofinaloutput \fi \fi #1#2
  \resetselectiepagina
\incr...
\sidefloatoutput ...e \else \finalsidefloatoutput
  \global \sidefloatvsize
\n...
...
l.23 \stopTEXpage
___
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
___


Re: [NTG-context] 3D annotations

2010-05-02 Thread gummybears
Hi Michail,

I read your email (17 april 2010) on the mailing list and applied the two
patches to my Context minimal distro
(the very latest version). When I run your test.tex through context the
preview image test.png
is not shown.

Which version of ConText should I use to make it work

Thanks in advance
___
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
___


Re: [NTG-context] How to define your own math character (MK-IV)

2010-04-12 Thread gummybears
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 \nt (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
___
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
___


[NTG-context] How to define your own math character (MK-IV)

2010-04-11 Thread gummybears
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
___
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
___


[NTG-context] Missing math symbols (MK-IV)

2010-03-22 Thread gummybears
Hi,

In a previous email I commented that the integral symbols, when using the
unicode font Cambria or Asana,
don't look ok. It has to do with the way e.g \iint, \iiint etc are
constructed. Whether or
not the symbol is present in the unicode font, the tex macro \repeatintegral
is used
(fallback option). I don't want to use the Cambria or Asana font entirely,
as the other math typesetting
doesn't look nice. Just for the missing symbols.

Found an earlier post (Thomas A. Schmitz titled symbols in luatex date
2008-01-02) where
a solution was presented by Wolfgang Schuster. Basically I am using his
solution
and came up with the following (only works ok in text mode). Also looked at
definemathcharacter
but not sure how to make it work with unicode fonts (could not find any
documentation,
looked at the source files, but don't know what to fill in for the 6
parameters to definemathcharacter)

Question : what is the right way I can make this work (definemathcharacter,
something else) ?
Question : some of these symbols are defined in char-def.lua but missing in
math-vfu.lua.
What is needed to make them active ? Can I do it myself and send a list of
missing symbols with their unicode value ?

Thanks for the help.

% test of some math symbols
\starttypescript[serif][mathsymbols][name]
  \definefontsynonym [Serif] [name:asana][features=default]
\stoptypescript
\starttypescript[MathSymbols]
\definetypeface [MathSymbols] [rm] [serif] [mathsymbols] [default]
\stoptypescript
\usetypescript[MathSymbols]

% undefine iint, iiint, nt
\definemathcommand [iint]   {}
\definemathcommand [iiint]  {}
\definemathcommand [nt] {}
% define my own
\definecharacter integral
{\bgroup\switchtobodyfont[MathSymbols]\char222B\egroup}
\definecharacter dblintegral
{\bgroup\switchtobodyfont[MathSymbols]\char222C\egroup}
\definecharacter tripleintegral
{\bgroup\switchtobodyfont[MathSymbols]\char222D\egroup}
\definecharacter contourintegral
{\bgroup\switchtobodyfont[MathSymbols]\char222E\egroup}
\definecharacter surfaceintegral
{\bgroup\switchtobodyfont[MathSymbols]\char222F\egroup}
\definecharacter volumeintegral
{\bgroup\switchtobodyfont[MathSymbols]\char2230\egroup}
\starttext
integral \integral double integral \dblintegral triple integral
\tripleintegral
\startformula
\startalign[n=2]
\NC \text{integral} \NC \text{\integral}_{a}^{b} \NR
\NC \text{double integral} \NC \text{\dblintegral}_{a}^{b}\NR
\NC \text{triple integral} \NC \text{\tripleintegral}\NR
\NC \text{contour integral} \NC \text{\contourintegral}_{a}^{b} \NR
\NC \text{surface integral} \NC \text{\surfaceintegral}_{a}^{b} \NR
\NC \text{volume integral}  \NC \text{\volumeintegral}_{a}^{b} \NR
\stopalign
\stopformula
\stoptext
___
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
___


[NTG-context] Numbered enumerations in MK-IV (howto) ?

2010-03-16 Thread gummybears
Hi,

In MK-II the following enumeration worked, sadly in MK-IV they don't. I
browsed the internet,
tried the proclaim solution and searched the mailing list for an solution,
found
that several people experiencing the same problem with different numbering
schemes.
Tried several of the proposed solution but no success.

I hope someone can help to fix this.

Test file

\defineenumeration[artikel][location=left,text=Artikel,headstyle=bold,stopper=.,distance=5pt,width=broad,before=\blank,after=\blank]
\setupenumerations[subartikel][text=,location=left,stopper=.,width=broad,distance=5pt,before=,after=]
\setupenumerations[subsubartikel][text=,location=left,stopper=.,width=broad,distance=5pt,before=,after=]
\starttext
%\startcolumns[n=2]
\startartikel  Number should be 1. \stopartikel
\startsubartikel Number should be 1.1. \stopsubartikel
\startsubartikel Number should be 1.2. \stopsubartikel
\startsubsubartikel Number should be 1.2.1. \stopsubsubartikel
\startsubsubartikel Number should be 1.2.2. \stopsubsubartikel

\startartikel  Number should be 2. \stopartikel
\startsubartikel Number should be 2.1. \stopsubartikel
\startsubartikel Number should be 2.2. \stopsubartikel
\startsubsubartikel Number should be 2.2.1. \stopsubsubartikel
\startsubsubartikel Number should be 2.2.2. \stopsubsubartikel

\startartikel  Number should be 3. \stopartikel
\startsubartikel Number should be 3.1. \stopsubartikel
\startsubartikel Number should be 3.2. \stopsubartikel
\startsubsubartikel Number should be 3.2.1. \stopsubsubartikel
\startsubsubartikel Number should be 3.2.2. \stopsubsubartikel
%\stopcolumns
\stoptext
___
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
___


Re: [NTG-context] Numbered enumerations in MK-IV (howto) ?

2010-03-16 Thread gummybears
@Bernard , thanks for your help, it works.
___
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
___


[NTG-context] Math integral symbols (cambria) , MK-IV

2010-03-02 Thread gummybears
Hi,

When using font Cambria, the integral symbols \iint and \iiint look funny
compared to \int.
The contour, surface and volume integrals look fine.

Version ConText version 2010.02.25 19:46.
LuaTeX version 50,0

Test file
\usetypescript[cambria]
\setupbodyfont[cambria]
\starttext
\startformula
\startalign[n=2]
\NC \text{integral} \NC \int_{a}^{b} \NR
\NC \text{double integral} \NC \iint_{a}^{b} \NR
\NC \text{triple integral} \NC \iiint_{a}^{b} \NR
\NC \text{contour integral} \NC \oint_{a}^{b} \NR
\NC \text{surface integral} \NC \oiint_{a}^{b} \NR
\NC \text{volume integral} \NC \oiiint_{a}^{b} \NR
\stopalign
\stopformula
\stoptext
___
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
___


Re: [NTG-context] MK-II to MK-IV

2010-03-01 Thread gummybears
Hi,

In reply to Hans, I am using the latest beta (ConTeXt version 2010.02.25
19:46.
mkiv, LuaTeX version 50, LuaTeX revision 0, (LuaTeX date stamp 2009122521))

As Hans requested a small test file,

\setupnumbering[way=bysection] % --- this used to work, but does not
\setupformulas[numbercolor=blue,numberstyle=bold]
\starttext
\chapter{Math formulae numbering}
\section{Does not work}
Numbering formulae by section
\placeformula
\startformula
a^2 + b^2 = c^2
\stopformula
\section{More ...}
\stoptext

Also tried the solution from Contextgarden (
http://wiki.contextgarden.net/Math/Display) by using
\setupnumber[formula][way=bysection] instead of \setupnumbering[way=bysection]

But alas, this does not work either



On Sun, Feb 28, 2010 at 3:47 AM, gummybears oracle...@gmail.com wrote:

 Hi,
 A couple of years ago, I decided to switch from LaTex to ConText. Now
 I have compiled a lot of documents (Physics syllabi's) which compiles fine
 in MK-II.

 I thought I would try to make a switch to MK-IV, mainly because I
 want to include 3D PRC figures in my documents.

 I made some test cases to test MK-IV in order to get a handle on the
 differences between MK-II and MK-IV

 Some of my observations are
 *) Numbered formulas, numbered by section, don't seem to work
 *) I am getting a lot of warnings of identifiers, apparently used more than
 once, which they are not
 LuaTeX warning (ext4): destination with the same identifier
 (name{km1_chapter1_sec1}) has been already used, duplicate ignored

 Question
 Are these observations correct, someone else can confirm them ?
 Question
 If so, is there a fix, patch, or change in ConText commands/options I am
 not aware of ?

 TIA

___
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
___


Re: [NTG-context] MK-II to MK-IV

2010-03-01 Thread gummybears
At Wolfgang

Tried
\definestructureprefixset[section][section-3][]
\setupformulas[numbercolor=blue,numberstyle=bold,prefixset=section]
alas it doesn't work.

What version of Context are you using ?

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


Re: [NTG-context] MK-II to MK-IV

2010-03-01 Thread gummybears
At saptarshi

With MK-II the formula numbers came out (1.1.1), (1.1.2), numbered by
section.

Chapter 1, section 1, formula 1 - (1.1.1)
Chapter 1, section 1, formula 2 - (1.1.2)

The above is what I want.

Now in MK-IV they come out numbered like
Chapter 1, section 1, formula 1 - (1.1)
Chapter 1, section 1, formula 2 - (1.2)

This is not numbered by section but by chapter, as you confirmed.

The problem still persists.


On Mon, Mar 1, 2010 at 6:17 PM, gummybears oracle...@gmail.com wrote:

 At Wolfgang

 Tried
 \definestructureprefixset[section][section-3][]
 \setupformulas[numbercolor=blue,numberstyle=bold,prefixset=section]
 alas it doesn't work.

 What version of Context are you using ?

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


Re: [NTG-context] MK-II to MK-IV

2010-03-01 Thread gummybears
Wolfgang, works for me too. Thanks for your time.
___
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
___


Re: [NTG-context] MK-II to MK-IV

2010-03-01 Thread gummybears
To all interested

I found a simpler solution, not knowing how prefixsegments really work, but
mainly understand
from this example, is

\setupformulas[prefixsegments=chapter:section]

instead of using

\setupformulas[prefixsegments=1:100]

Both setups gives the same numbering scheme of the formula numbers.
Both setups also don't reset the formula number after a new section, it just
keeps numbering the formulas

I know I saw a code snippet which does some sort of reset, I think
prefixreset or reset, but
I cannot find it anymore.
___
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
___


Re: [NTG-context] MK-II to MK-IV

2010-03-01 Thread gummybears
With the help of Wolfgang (thanks) the solution is (tested)

\setupformulas[prefix=yes,prefixsegments=chapter:section,way=bysection]



On Mon, Mar 1, 2010 at 10:40 PM, gummybears oracle...@gmail.com wrote:

 To all interested

 I found a simpler solution, not knowing how prefixsegments really work, but
 mainly understand
 from this example, is

 \setupformulas[prefixsegments=chapter:section]

 instead of using

 \setupformulas[prefixsegments=1:100]

 Both setups gives the same numbering scheme of the formula numbers.
 Both setups also don't reset the formula number after a new section, it
 just
 keeps numbering the formulas

 I know I saw a code snippet which does some sort of reset, I think
 prefixreset or reset, but
 I cannot find it anymore.


___
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
___


[NTG-context] MK-II to MK-IV

2010-02-27 Thread gummybears
Hi,
A couple of years ago, I decided to switch from LaTex to ConText. Now
I have compiled a lot of documents (Physics syllabi's) which compiles fine
in MK-II.

I thought I would try to make a switch to MK-IV, mainly because I
want to include 3D PRC figures in my documents.

I made some test cases to test MK-IV in order to get a handle on the
differences between MK-II and MK-IV

Some of my observations are
*) Numbered formulas, numbered by section, don't seem to work
*) I am getting a lot of warnings of identifiers, apparently used more than
once, which they are not
LuaTeX warning (ext4): destination with the same identifier
(name{km1_chapter1_sec1}) has been already used, duplicate ignored

Question
Are these observations correct, someone else can confirm them ?
Question
If so, is there a fix, patch, or change in ConText commands/options I am not
aware of ?

TIA
___
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
___


[NTG-context] Math formula numbering by section in MK-IV

2010-02-26 Thread gummybears
In MK-II I use \setupnumbering[way=section] to number math formulae by
section.

What is the equivalent for MK-IV ?
___
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
___


[NTG-context] U3D inclusion

2010-01-23 Thread gummybears
In november last year Hans Hagen was so kind to send me a copy of
back-u3d.mkiv which is
now included in the latest beta. As Hans mentioned the code he gave me is
untested.

After a couple of tests here are my findings

*) The preview does not work at this moment. I only see a light blue square
which can be activated.
After which the 3d viewer shows the embedded 3d image
*) Specifying several views as shown in back-u3d.mkiv shows up in the
resulting pdf as unknown view
*) I also experimented with different values for coo, c2c, roll etc. When
not specifying any of these settings
the embedded 3d is always shown with the incorrect roll i.e the roll is
always 90 degrees off

For anyone interested, the 3d file was produced with Asymptote 1.91 (
http://asymptote.sourceforge.net/)

=== Context sample code ==
\starttext
\startluaparameterset [u3d:myset:display:1]
toolbar=false,
preview=prcu3d/loading.png,
view = {
name = 'default',
bg = {1,1,1},
mag = 25,
coo = {2,2,2},
c2c = {0,0,1},
rot = {40,0,60},
roo = 2,
lights = 'CAD'
}
\stopluaparameterset
\useexternalfigure  [cubes]  [prcu3d/cubes.prc]  [width=\textwidth,
height=0.5\textwidth, display=u3d:myset:display:1]
\placefigure[here]{3d cube}{\externalfigure[cubes]}
\stoptext
== end of Context sample code
===
___
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
___


[NTG-context] 3d prc

2009-11-26 Thread gummybears
How to include 3d prc pdf (produced with Asymptote) with Context ?
___
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
___


Re: [NTG-context] 3d prc

2009-11-26 Thread gummybears
On Thu, Nov 26, 2009 at 5:44 PM, Hans Hagen pra...@wxs.nl wrote:

 gummybears wrote:

 How to include 3d prc pdf (produced with Asymptote) with Context ?


 see the comments in back-u3d.mkiv for an experimental interface


File back-u3d.mkiv is not included in the Context distribution (minimal
Context).




 -
  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

 ___

___
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
___