Re: [NTG-context] Error while compiling : ! String contains an invalid utf-8 sequence.

2011-11-28 Thread Alexandre Krispin
Yes for sure, thanks to the script Wolfgang Schuster pointed out to me
earlier in the discussion :
\setscript[hanzi]

2011/11/28 S Barmeier severinbarme...@googlemail.com

 On 11/27/2011 11:44 PM, ntg-context-requ...@ntg.nl wrote:
  Send ntg-context mailing list submissions to
ntg-context@ntg.nl
 
  To subscribe or unsubscribe via the World Wide Web, visit
http://www.ntg.nl/mailman/listinfo/ntg-context
  or, via email, send a message with subject or body 'help' to
ntg-context-requ...@ntg.nl
 
  You can reach the person managing the list at
ntg-context-ow...@ntg.nl
 
  When replying, please edit your Subject line so it is more specific
  than Re: Contents of ntg-context digest...
 
 
  Today's Topics:
 
 1. error with \showlayout and export (Henning Hraban Ramm)
 2. Re: error with \showlayout and export (Wolfgang Schuster)
 3. page number in margin (Henning Hraban Ramm)
 4. Export to epub (Keith McKay)
 5. Re: Error while compiling : ! String contains an invalid
utf-8 sequence. (Mojca Miklavec)
 6. Re: Export to epub (Hans Hagen)
 
 
  --
 
  Message: 1
  Date: Sun, 27 Nov 2011 12:11:36 +0100
  From: Henning Hraban Ramm hra...@fiee.net
  To: mailing ConTeXt users list for ntg-context@ntg.nl
  Subject: [NTG-context] error with \showlayout and export
  Message-ID: 4670b7fc-970f-4698-b676-9f8c31ae8...@fiee.net
  Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
 
  Hi wizards,
 
  if I use \showlayout in a project where I setup export=yes, ConTeXt
  stops with a fatal error.
 
  Minimal failing example:
 
  \setupbackend[export=yes]
  \starttext
  \showlayout
  \stoptext
 
 
  Ixchel:konzept hraban$ context --purge context_test.tex
 
  mtx-context | run 1: luatex --fmt=/Users/hraban/Library/texmf/tex/
  texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/
  formats/cont-en --lua=/Users/hraban/Library/texmf/tex/texmf-cache/
  luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-
  en.lui --backend=pdf ./context_test.tex \stoptext
  This is LuaTeX, Version beta-0.70.1-2011051908 (rev 4277)
\write18 enabled.
  (context_test.tex
 
  ConTeXt  ver: 2011.11.24 15:52 MKIV  fmt: 2011.11.25  int: english/
  english
 
  system   cont-new.mkiv loaded
  (/Users/hraban/Library/texmf/tex/texmf-context/tex/context/base/cont-
  new.mkiv
  system   beware: some patches loaded from cont-new.mkiv
  )
  system   context_test.top loaded
  (context_test.top)
  fontslatin modern fonts are not preloaded
  languageslanguage en is active
  backend  export  enabling export to xml
  {/Users/hraban/Library/texmf/tex/texmf-context/fonts/map/pdftex/
  context/mkiv-base.map}
  fontspreloading latin modern fonts (second stage)
  (/Users/hraban/Library/texmf/tex/texmf-context/tex/context/base/type-
  siz.mkiv) (/Users/hraban/Library/texmf/tex/texmf-context/tex/context/
  base/type-otf.mkiv)
  filesreadfile  asked name: 'loc', not found
  {/Users/hraban/Library/texmf/tex/texmf-fonts/fonts/map/dvips/lm/lm-
  math.map}{/Users/hraban/Library/texmf/tex/texmf-fonts/fonts/map/dvips/
  lm/lm-rm.map}
  fontsvirtual math  unable to resolve name mapsfromchar
  fontsfallback modern rm 12pt is loaded
  (/Users/hraban/Library/texmf/tex/texmf-context/tex/context/base/page-
  run.mkiv
  loading  ConTeXt Page Macros / Runtime Macros
  )
  interfaceinitialization  loading interface definitions from
  'mult-def.lua'
  interfaceinitialization  loading interface messages from
  'mult-mes.lua'
  metapost initializing instance 'metafun' using format 'metafun'
  metapost loading 'metafun': /Users/hraban/Library/texmf/tex/
  texmf-context/metapost/context/base/metafun.mpiv
  backend  xmp  using file '/Users/hraban/Library/texmf/tex/
  texmf-context/tex/context/base/lpdf-pdx.xml'
  pagesflushing realpage 1, userpage 1, subpage 1
  pagesflushing realpage 2, userpage 2
  pagesflushing realpage 3, userpage 3
  pagesflushing realpage 4, userpage 4
  pagesflushing realpage 5, userpage 5
)/Users/hraban/Library/texmf/tex/texmf/fonts/opentype/public/lm/
  lmmono10-regular.otf/Users/hraban/Library/texmf/tex/texmf/fonts/
  opentype/public/lm/lmmono12-regular.otf/Users/hraban/Library/texmf/
  tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
  ! LuaTeX error ...exmf/tex/texmf-context/tex/context/base/back-exp.lua:
  1203: attempt to index global 'c' (a nil value).
 
  system   tex  error on line 0 in file : LuaTeX error  ...
 
  empty file
 
  * ./context_test.tex
  \stoptext
  ?
 
 
 
  Greetlings from Lake Constance!
  Hraban
  ---
  http://www.fiee.net/texnique/
  http://wiki.contextgarden.net
  https://www.cacert.org (I'm an assurer)
 
 
 
  

Re: [NTG-context] Resetting references or local references?

2011-11-28 Thread Otared Kavian
Hi Wolfgang,

Many thanks for your attention and the link you sent.
I looked up the chapter on references of the main manuel written by Hans, but 
unfortunately I could not find a solution, or could not adapt what is said 
there. 
It can be that I have to change my approach of defining my « exercises », for 
instance by defining each exercise as a section or subsection? 
Up to now I have two ways of defining an « exercise »: 
• one is with \defineenumeration[Exo] (when using mkii), 
• the other one is with \defineannotation[Exo] and your annotation 
module when using mkiv.

In neither case the command
\setupreferencing[prefix=+]
or
\setupannotation[Exo][prefix=+]
seems to generate local tags. 

Just in case, below is a minimal file, which shows how I use the annotation 
module.

Best regards: OK
%% begin
\setupinteraction[state=start]

\usemodule[annotation] % Wolfgang's module

\define[2]\ExoSetup
{\resetnumber[formula]
\setupframedtext[
width=\textwidth,
frame=off,
leftframe=on]
 \textrule{#1}%
 \startframedtext
 #2%
 \stopframedtext}
 
\defineannotation[Exo]
[alternative=command,
command=\ExoSetup,
text=Exercise ,
number=yes,
headcolor=darkred,
]

% \setupannotation[Exo][prefix=+]
\setupreferencing[prefix=+]

\starttext

\startExo[exo:CharacTwo] Prove that if $ab=ba$ and $2ab=0$ then
\placeformula[eq:1]
\startformula
(a+b)^2 = a^2 + b^2.
\stopformula
Using the identity (\in[eq:1]) prove that $(a=b)^{2n} = a^{2n} + b^{2n}$.
\stopExo

\page

\startExo[exo:Moivre]{Moivre's formula} Prove that for any integer $n$
\placeformula[eq:2] % I would like the reference to be [eq:1]
\startformula
(\cos(x) + {\rm i}\sin(x))^n = \cos(nx) + {\rm i} \sin(nx).
\stopformula
Using the identity (\in[eq:2]) % I would like here to say [eq:1]
 compute $\cos{3x}$.
\stopExo

\stoptext
%% end

On 28 nov. 2011, at 00:10, Wolfgang Schuster wrote:

 
 Am 27.11.2011 um 23:27 schrieb Otared Kavian:
 
 Dear all,
 
 Is it possible to have a sort of « local references for formulas » or else 
 to clear previous references to formulas at a certain point?
 In a chapter where a certain number of exercices and formulas are to be 
 numbered, assume I have the following minimal example
 
 % begin
 \starttext
 
 Exercice 1. Prove that if $ab=ba$ and $2ab=0$ then
 \placeformula[eq:1]
 \startformula
 (a+b)^2 = a^2 + b^2.
 \stopformula
 Using the identity (\in[eq:1]) prove that $(a=b)^{2n} = a^{2n} + b^{2n}$.
 
 \blank[big]
 \hrule
 \blank[big]
 
 Exercice 2. Prove that for any integer $n$
 \resetnumber[formula]
 %\reset[formulas][references]
 \placeformula[eq:2] % I would like the reference to be [eq:1]
 \startformula
 (\cos(x) + {\rm i}\sin(x))^n = \cos(nx) + {\rm i} \sin(nx).
 \stopformula
 Using the identity (\in[eq:2]) % I would like here to say [eq:1]
 compute $\cos{3x}$.
 
 \stoptext
 % end
 
 I would like to be able to have the equations numbered within each exercise 
 (which is in fact defined through an enumeration environment), and be able 
 to have the reference to each formula « local » within that exercise.
 The resaon is that the execises and problems may have several equations 
 which are referenced to with [eq:1] through [eq:10] (say…), and have been 
 prepared and given previously to students on independent sheets. When I want 
 to give out a booklet of all the exercises, then it would be handy to have 
 such a feature.
 
 I understand that I am not being very clear… Hope someone would understand 
 what I mean and need :-)
 
 Look at page 168: http://pragma-ade.com/general/manuals/cont-enp.pdf
 
 Wolfgang
 ___
 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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




___
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] Error while compiling : ! String contains an invalid utf-8 sequence.

2011-11-28 Thread Wolfgang Schuster

Am 26.11.2011 um 00:56 schrieb Alexandre Krispin:

 Now that japanese display correctly, there is still another problem. Japanese 
 sentences (long titles in bibliography) don't break at the end of line. I 
 have tested the behavior of japanese with entire paragraphs, and I get the 
 same problem as in the bibliography, lines don't break and go through the 
 page.

As I already told you need “\setscript[hanzi]” to enable linbreaks for chinese 
and japanese.

Instead of a global setting you can also write

\startscript[hanzi]
…
\stopscript

to enable linebreaking for a area.

Another valid form for \setscript[hanzi] is the command \hanzi which is a 
shortcut for the longer definition.

 Though I have looked to documentation about chinese on the wiki, none helped 
 me to solve this problem. Does someone have any idea ?
 
 Here is a minimal example with a paragraph sample in japanese :
 %beginning of file%%
 \usemodule[simplefonts]
 \setmainfont[HeiseiMinStd-W3]
 \definesimplefonttypeface[jpn][HeiseiMinStd-W3]
 \setupbodyfont[12pt]
 \setuptolerance[\v!verytolerant,\v!stretch]

Don’t use the “\v!” prefix for settings in your document, in this case it’s 
harmless but there can be cases
where you don’t get the expected result of this because in normal text “\v” is 
a command to place a accent
over the next character (here the “!”).

 \enableregime[utf]

This is not necessary because MkIV use UTF-8 by default.

 \usemodule[typearea]
 \setupTypeArea[bcor=30mm,alphabets=2.6,oneside]

You can’t mix keywords and assignments in the same argument of a setup command,
to use the onside option you have to write “oneside=yes”.

Wolfgang
___
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] Text in margin

2011-11-28 Thread Wolfgang Schuster

Am 28.11.2011 um 06:07 schrieb Kip Warner:

 On Sun, 2011-11-27 at 22:43 +0100, Wolfgang Schuster wrote:
 Search for \setupmargindata and \setupmarginframed, you can see all keys for 
 commands in my reference: https://bitbucket.org/wolfs/commands/downloads
 
 Wolfgang
 
 Hey Wolfgang. I took a look at the command reference you linked me to
 and it unfortunately isn't descriptive enough for me.
 
 All I want to do is to make the font small, italicized, and not start
 off the side of the page like it is now.
 
 I'm using the following. The colours are fine, but the rest is not:
 
 \setupmargindata[
style={smallitalic\switchtobodyfont[3pt]}]
 
 \setupinmargin[
background=color, 
color=colour_text,
backgroundcolor=colour_page]


Make next time a complete example with some text.

\setupmargindata
  [inmargin]
  [style={\switchtobodyfont[8pt,ss]},
   color=red]

\setupmarginframed
  [inmargin]
  [background=color,
   backgroundcolor=yellow]

\starttext
\input knuth
\inmargin{\input ward }
\input tufte
\stoptext

Wolfgang
___
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] Sequentially number figures (even over chapters)

2011-11-28 Thread Wolfgang Schuster

Am 28.11.2011 um 07:58 schrieb Mikael P. Sundqvist:

 Dear list,
 
 I want to number my figures sequentially, even over chapters. With the
 code below (late(st) minimals and mkiv)
 
 %%% Begin example
 \setuphead[chapter][
 page=no,
 ]
 
 \setupcaptions[
 way=bytext,
 prefixsegments=none,
 ]

\setupcaption
  [figure]
  [way=bytext,
   prefixsegments=none]

Wolfgang
___
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] Resetting references or local references?

2011-11-28 Thread Wolfgang Schuster

Am 28.11.2011 um 10:18 schrieb Otared Kavian:

 Hi Wolfgang,
 
 Many thanks for your attention and the link you sent.
 I looked up the chapter on references of the main manuel written by Hans, but 
 unfortunately I could not find a solution, or could not adapt what is said 
 there. 
 It can be that I have to change my approach of defining my « exercises », for 
 instance by defining each exercise as a section or subsection? 
 Up to now I have two ways of defining an « exercise »: 
   • one is with \defineenumeration[Exo] (when using mkii), 
   • the other one is with \defineannotation[Exo] and your annotation 
 module when using mkiv.
 
 In neither case the command
   \setupreferencing[prefix=+]
 or
   \setupannotation[Exo][prefix=+]
 seems to generate local tags. 
 
 Just in case, below is a minimal file, which shows how I use the annotation 
 module.

There are a few fixes needed in the mechanism but as you can see below it works 
when you know what’s wrong
but to complete the function for MkIV Hans needs a shorter example.

\setupinteraction[state=start]

\usemodule[annotation]

\define[2]\ExoSetup
  
{%doifsomething{\annotationparameter{prefix}}{\setupreferencing[prefix=\annotationparameter{prefix}]}%
   
\doifsomething{\annotationparameter{prefix}}{\setupreferenceprefix[\annotationparameter{prefix}]}%
   
\doifsomething{\annotationparameter{prefix}}{\setupformulas[referenceprefix=\annotationparameter{prefix}]}%
   \resetnumber[formula]
   \textrule{#1}%
   \startframedtext[width=\textwidth,frame=off,leftframe=on]%
   #2%
   \stopframedtext}
 
\defineannotation
  [Exo]
  [alternative=command,
   command=\ExoSetup,
   text=Exercise ,
   number=yes,
   headcolor=darkred]

\starttext

\startExo[prefix=CharacTwo] Prove that if $ab=ba$ and $2ab=0$ then
\placeformula[eq:1]
\startformula
(a+b)^2 = a^2 + b^2.
\stopformula
Using the identity (\in[eq:1]) prove that $(a=b)^{2n} = a^{2n} + b^{2n}$.
\stopExo

\page

\startExo[prefix=Moivre]{Moivre's formula} Prove that for any integer $n$
\placeformula[eq:1]
\startformula
(\cos(x) + {\rm i}\sin(x))^n = \cos(nx) + {\rm i} \sin(nx).
\stopformula
Using the identity (\in[eq:1]) compute $\cos{3x}$.
\stopExo

\page

\starttabulate[|Tl|l|]
\NC eq:1   \NC \in{Equation}[eq:1]\NC\NR
\NC CharacTwo:eq:1 \NC \in{Equation}[CharacTwo eq:1]  \NC\NR
\NC CharacTwo:eq:1 \NC \def\referenceprefix{CharacTwo}\in{Equation}[eq:1] \NC\NR
\NC Moivre:eq:1\NC \in{Equation}[Moivre eq:1] \NC\NR
\NC Moivre:eq:1\NC \def\referenceprefix{Moivre}\in{Equation}[eq:1]\NC\NR
\stoptabulate

\stoptext

Wolfgang

___
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] FLOW chart module broken

2011-11-28 Thread Willi Egger
Hi Otared,

thanks for your testing!

hm, yes without \starttext and stoptext ... (this file is loaded in a larger 
context with \input), so I missed this, BAD!

Still this is very strange. I use the same version of Context as you did. Still 
I do not get the flowchart breaking over pages. I can restrict the number of 
cells in the \setupflowcharts command and get then accordingly a shorter piece 
of the chart but no following pages (the chart is about 2 pages long).
When setting the nx to some large number the flowchart is compiled, but there 
is only a single page of cells which is typeset beyond the lower margin.

Kind regards

Willi


On 27 Nov 2011, at 21:27, Otared Kavian wrote:

 Hi Willy,
 
 I compiled your tex file: if you add \starttext and \stoptext, your file is 
 compiled correctly… (both in mkii and mkiv, ConTeXt  ver: 2011.11.25 13:29 
 MKIV  fmt: 2011.11.25  int: english/english).
 
 Best regards: OK
 
 On 27 nov. 2011, at 16:15, Willi Egger wrote:
 
 Hi Hans,
 
 
 unfortunately the FLOWchart module is broken. The breaking over pages does 
 not seem to work. If there are too many cells for a page the compilation 
 stops with a fatal error.
 
 i installed the latest beta: ConTeXt  ver: 2011.11.25 21:29 MKIV  fmt: 
 2011.11.27  
 
 \@@vars:flowcell:text:text -Randje $\leq $
   1mm maken
 argument ...]{\getvariable {flowcell:text}{text}
 }
 \firstoftwoarguments #1#2-#1
 
 \@@su:flowcell:text:place:indeed ...:text}{text}}}
 \endgroup 
 \@@su:flowcell:text:place ...ll:text:place:indeed}
 \fi \fi \endgroup 
 \next1 #1,-\dosetups {#1}
 \do_process_comma_item 
 ...
 l.428 
 
 ? 
 ! Emergency stop.
 
 I include the file I was trying to compile.
 
 Kind regards
 
 Willi
 
 singlesectionbinding-flowchart.tex___
 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
 ___
 
 %%
 Otared Kavian
 Département de Mathématiques
 Université de Versailles Saint-Quentin
 Bâtiment Fermat
 45 avenue des Etats Unis
 78035 Versailles cedex
 
 Téléphone: +33 1 39 25 46 42
 Secrétariat: +33 1 39 25 46 44 
 Secrétariat: +33 1 39 25 46 46
 
 e-mail: otared.kav...@math.uvsq.fr
 
 
 
 
 ___
 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
___


Re: [NTG-context] FLOW chart module broken

2011-11-28 Thread Hans Hagen

On 28-11-2011 11:50, Willi Egger wrote:

Hi Otared,

thanks for your testing!

hm, yes without \starttext and stoptext ... (this file is loaded in a larger 
context with \input), so I missed this, BAD!

Still this is very strange. I use the same version of Context as you did. Still 
I do not get the flowchart breaking over pages. I can restrict the number of 
cells in the \setupflowcharts command and get then accordingly a shorter piece 
of the chart but no following pages (the chart is about 2 pages long).
When setting the nx to some large number the flowchart is compiled, but there 
is only a single page of cells which is typeset beyond the lower margin.


What makes you expect that a chart breaks over pages?

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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
___


Re: [NTG-context] FLOW chart module broken

2011-11-28 Thread Willi Egger
Hans,

there is in the original version of this module a command \setupfFLOWsplit 
which precisely is meant for this. When calling the flow chart with 
\FLOWcharts[Eenkaternbinding] instead of \FLOWchart[Eenkaternbinding] it 
splitted over pages.

\setupFLOWsplit
[x=1,
y=1,
nx=6,
ny=7,
dx=1,
dy=1,
before=,
after=\page,
marking=off]

Willi
On 28 Nov 2011, at 12:48, Hans Hagen wrote:

 On 28-11-2011 11:50, Willi Egger wrote:
 Hi Otared,
 
 thanks for your testing!
 
 hm, yes without \starttext and stoptext ... (this file is loaded in a larger 
 context with \input), so I missed this, BAD!
 
 Still this is very strange. I use the same version of Context as you did. 
 Still I do not get the flowchart breaking over pages. I can restrict the 
 number of cells in the \setupflowcharts command and get then accordingly a 
 shorter piece of the chart but no following pages (the chart is about 2 
 pages long).
 When setting the nx to some large number the flowchart is compiled, but 
 there is only a single page of cells which is typeset beyond the lower 
 margin.
 
 What makes you expect that a chart breaks over pages?
 
 Hans
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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
___


[NTG-context] starting cambria font?

2011-11-28 Thread Hans van der Meer
Maybe someone more knowledgeable about fonts can tell what is amiss.
I typeset my documents in Lucida Bright with Lucida Math from the old pfb's 
(the orf version not being available). But there are some gaps in Lucida's math 
fonts and its implementation in ConTeXt.
So I started to switch to another one, at least for the time being, and thought 
cambria would be the one as I have seen some people on this list about it.
But changing t{lucida,sans,12pt} to {cambria,sans,12pt} doesn't work for me. I 
get an error:

! Missing font identifier.
system   tex  error on line 35 in file syllabus-test.tex: Missing 
font identifier …
..
to be read again 
   \*cambria7ptmmmr33* 
\@@ff:cambria:12pt:mm:mr: ... \*cambria7ptmmmr33* 
  \scriptfont \mrfam \*cambr...
\dosetmathfamily ...c!mm :#2:\fontsize \endcsname 
  \else \dosetmathfamilyinde...

I have downloaded the beta: ConTeXt  ver: 2011.11.23 18:58 MKIV
Is this one incomplete? Or are the cambria fonts not free?
I would appreciate some enlightment.

Hans van der Meer



___
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] starting cambria font?

2011-11-28 Thread Willi Egger
Hi HAns,

for sure Cambria is not in the distro because it is a MIcrosoft font. They 
distribute this one with Office and other programmes. May  be that you will be 
able to get the font through a viewer for Powepoint.

Willi
On 28 Nov 2011, at 13:48, Hans van der Meer wrote:

 Maybe someone more knowledgeable about fonts can tell what is amiss.
 I typeset my documents in Lucida Bright with Lucida Math from the old pfb's 
 (the orf version not being available). But there are some gaps in Lucida's 
 math fonts and its implementation in ConTeXt.
 So I started to switch to another one, at least for the time being, and 
 thought cambria would be the one as I have seen some people on this list 
 about it.
 But changing t{lucida,sans,12pt} to {cambria,sans,12pt} doesn't work for me. 
 I get an error:
 
 ! Missing font identifier.
 system   tex  error on line 35 in file syllabus-test.tex: Missing 
 font identifier …
 ..
 to be read again 
   \*cambria7ptmmmr33* 
 \@@ff:cambria:12pt:mm:mr: ... \*cambria7ptmmmr33* 
  \scriptfont \mrfam \*cambr...
 \dosetmathfamily ...c!mm :#2:\fontsize \endcsname 
  \else \dosetmathfamilyinde...
 
 I have downloaded the beta: ConTeXt  ver: 2011.11.23 18:58 MKIV
 Is this one incomplete? Or are the cambria fonts not free?
 I would appreciate some enlightment.
 
 Hans van der Meer
 
 
 
 ___
 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
___


[NTG-context] Too much space in fractions

2011-11-28 Thread Mikael P. Sundqvist
Dear list,

With

\starttext
$a/b$ and $1/2$
\stoptext

I get too much space between a and /, and betwen / and b (and between
1 and /, and between / and 2). This was not so in earlier versions of
ConTeXt (not sure when it first appeared). Is there some option I
should change or is it a bug?

Best regards, Mikael

PS I attach the output I get, together with the similar LaTeX output
(which looks like I (as a mathematician) am used to)
attachment: latexfraction.pngattachment: contextfraction.png___
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] Too much space in fractions

2011-11-28 Thread Mikael P. Sundqvist
On Mon, Nov 28, 2011 at 9:01 PM, Mikael P. Sundqvist mic...@gmail.com wrote:
 Dear list,

 With

 \starttext
 $a/b$ and $1/2$
 \stoptext

 I get too much space between a and /, and betwen / and b (and between
 1 and /, and between / and 2). This was not so in earlier versions of
 ConTeXt (not sure when it first appeared). Is there some option I
 should change or is it a bug?

 Best regards, Mikael

 PS I attach the output I get, together with the similar LaTeX output
 (which looks like I (as a mathematician) am used to)


It seems that the space after the integral sign is also too big. A
small example that shows both these problems:
\starttext
$a/b$ and $1/2$. See also
\startformula
\int f(x)\, dx.
\stopformula
\stoptext

Best regards, Mikael
attachment: space.png___
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] Text in margin

2011-11-28 Thread Kip Warner
On Mon, 2011-11-28 at 10:39 +0100, Wolfgang Schuster wrote:
 Am 28.11.2011 um 06:07 schrieb Kip Warner:
 
  On Sun, 2011-11-27 at 22:43 +0100, Wolfgang Schuster wrote:
  Search for \setupmargindata and \setupmarginframed, you can see all keys 
  for commands in my reference: 
  https://bitbucket.org/wolfs/commands/downloads
  
  Wolfgang
  
  Hey Wolfgang. I took a look at the command reference you linked me to
  and it unfortunately isn't descriptive enough for me.
  
  All I want to do is to make the font small, italicized, and not start
  off the side of the page like it is now.
  
  I'm using the following. The colours are fine, but the rest is not:
  
  \setupmargindata[
 style={smallitalic\switchtobodyfont[3pt]}]
  
  \setupinmargin[
 background=color, 
 color=colour_text,
 backgroundcolor=colour_page]
 
 
 Make next time a complete example with some text.
 
 \setupmargindata
   [inmargin]
   [style={\switchtobodyfont[8pt,ss]},
color=red]
 
 \setupmarginframed
   [inmargin]
   [background=color,
backgroundcolor=yellow]
 
 \starttext
 \input knuth
 \inmargin{\input ward }
 \input tufte
 \stoptext
 
 Wolfgang

Hey Wolfgang. It still isn't italicized and it is starting a little bit
off of the side of the page. For at least the italicization, I tried the
following and ConTeXt seems to just ignore the italic flag:

\setupmargindata
  [inmargin]
  [style={\switchtobodyfont[7pt,it]},
   color=colour_text]

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] Text in margin

2011-11-28 Thread Wolfgang Schuster

Am 29.11.2011 um 00:13 schrieb Kip Warner:

 On Mon, 2011-11-28 at 10:39 +0100, Wolfgang Schuster wrote:
 Am 28.11.2011 um 06:07 schrieb Kip Warner:
 
 On Sun, 2011-11-27 at 22:43 +0100, Wolfgang Schuster wrote:
 Search for \setupmargindata and \setupmarginframed, you can see all keys 
 for commands in my reference: 
 https://bitbucket.org/wolfs/commands/downloads
 
 Wolfgang
 
 Hey Wolfgang. I took a look at the command reference you linked me to
 and it unfortunately isn't descriptive enough for me.
 
 All I want to do is to make the font small, italicized, and not start
 off the side of the page like it is now.
 
 I'm using the following. The colours are fine, but the rest is not:
 
 \setupmargindata[
   style={smallitalic\switchtobodyfont[3pt]}]
 
 \setupinmargin[
   background=color, 
   color=colour_text,
   backgroundcolor=colour_page]
 
 
 Make next time a complete example with some text.
 
 \setupmargindata
  [inmargin]
  [style={\switchtobodyfont[8pt,ss]},
   color=red]
 
 \setupmarginframed
  [inmargin]
  [background=color,
   backgroundcolor=yellow]
 
 \starttext
 \input knuth
 \inmargin{\input ward }
 \input tufte
 \stoptext
 
 Wolfgang
 
 Hey Wolfgang. It still isn't italicized and it is starting a little bit
 off of the side of the page. For at least the italicization, I tried the
 following and ConTeXt seems to just ignore the italic flag:
 
 \setupmargindata
  [inmargin]
  [style={\switchtobodyfont[7pt,it]},

style={\switchtobodyfont[7pt]\it}

or set “foregroundstyle=italic” for \setupmarginframed.

To show the complete text you have to increase the backspace.

\setuplayout[backspace=3.5cm]

Wolfgang

___
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] mptopdf missing

2011-11-28 Thread Ernesto Posse
Hi. I have a fresh installation of ConTeXt on Ubuntu 11.10, straight
from Ubuntu's repository (version 2011.05.18.20110627-1) but the
mptopdf script seems to be missing, and mtxrun doesn't show any
available scripts. What could be the problem?

[eposse@flamenco:~/Tests/latex]  mptopdf
mptopdf: command not found
[eposse@flamenco:~/Tests/latex]  mtxrun --script

[eposse@flamenco:~/Tests/latex] 

In synaptic's package manager I can see that the following files where
installed, but not the actual script...

/usr/share/texmf/tex/mptopdf
/usr/share/texmf/tex/mptopdf/config
/usr/share/texmf/tex/mptopdf/config/mptopdf.ini

Thanks

-- 
Ernesto Posse

Modelling and Analysis in Software Engineering
School of Computing
Queen's University - Kingston, Ontario, Canada
___
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
___