Re: [NTG-context] how to insert symbols into document?

2015-04-23 Thread Csikos Bela
Wolfgang Schuster írta:
>
>> Am 18.04.2015 um 13:21 schrieb Csikos Bela:
>> 
>>> When you need characters like the mentioned losenge you should better look 
>>> for a font
>>> which contains it and create a new typeface for it or set a fallback font 
>>> which add the
>>> characters to the main font of your document.
>> 
>> Before answering I wanted to find out how to make this fallback: Using a 
>> given font
>> and fall back to only one (or a few) specific characters in another font. 
>> For example
>> using Tex Gyre Pagella and fall back to Dejavu's black diamond, but not to 
>> any other
>> characters.
>> 
>> To learn how to do this, in the last few days I read most of (if not all) 
>> the related pages on
>> the wiki site, and browsed the indicated pdf documents too. Unfortunately I 
>> find the wiki
>> pages confusing, and I couldn't find out how to solve the problem yet, but I 
>> did not want
>> to wait longer with the answer. I will study further the docs.
>
>\definefallbackfamily [documentfont] [rm] [DejaVu Serif] [range=0x25C6]
>\definefontfamily [documentfont] [rm] [TeX Gyre Pagella]
>\definefontfamily [documentfont] [tt] [Latin Modern Mono] [features=none]
>\definefontfamily [documentfont] [mm] [TeX Gyre Pagella Math]
>
>\setupbodyfont[documentfont]
>
>% \setupsymbolset[text]
>%
>% Using the predefined symbol for "blackdiamond" doesn’t work
>% because context tests if the symbol exists in the text font
>% before it displays it but we take it from the fallback font
>% and therefore nothing is shown. To avoid this you can define
>% your own symbol or just put the character in your document
>% without the \symbol command.
>
>\definesymbol[blackdiamond][◆]
>
>\starttext
>
>direct input: ◆
>
>\type{\symbol[blacktriangle]}: \symbol[blackdiamond]
>
>\stoptext

Thank you very much. Both approaches work on my system.

bcsikos
___
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 insert symbols into document?

2015-04-18 Thread Hans Hagen

On 4/18/2015 1:21 PM, Csikos Bela wrote:

Wolfgang Schuster írta:



Am 13.04.2015 um 01:29 schrieb Csikos Bela:


LONG CUT - See previous messages

Otared, Wolfgang:

Thank you for your suggestions.


The symbols in the file symb-imp-mis.mkiv are loaded by default because context 
uses
them for the itemise environment but a few of them have to be enabled before 
you can
use them and even then you need a font which contains them, e.g. DejaVu.

 begin example
\setupbodyfont[dejavu]

\setupsymbolset[text]

\starttext

\starttabulate[|l|c|]
\NC \bf Name  \NC \bf Symbol  \NC\NR
\TB
\NC bullet\NC \symbol [bullet]\NC\NR
\NC dash  \NC \symbol [dash]  \NC\NR
\NC star  \NC \symbol [star]  \NC\NR
\NC triangle  \NC \symbol [triangle]  \NC\NR
\NC circle\NC \symbol [circle]\NC\NR
\NC square\NC \symbol [square]\NC\NR
\NC diamond   \NC \symbol [diamond]   \NC\NR
\TB
\NC blacktriangle \NC \symbol [blacktriangle] \NC\NR
\NC blacksquare   \NC \symbol [blacksquare]   \NC\NR
\NC blackdiamond  \NC \symbol [blackdiamond]  \NC\NR
\TB
\NC 1 \NC \symbol [1] \NC\NR
\NC 2 \NC \symbol [2] \NC\NR
\NC 3 \NC \symbol [3] \NC\NR
\NC 4 \NC \symbol [4] \NC\NR
\NC 5 \NC \symbol [5] \NC\NR
\NC 6 \NC \symbol [6] \NC\NR
\NC 7 \NC \symbol [7] \NC\NR
\NC 8 \NC \symbol [8] \NC\NR
\stoptabulate

\stoptext
 end example


OK, I see that neither the default font nor Tex Gyre Pagella has black diamod 
symbol, therefore it can't be shown.


When you need characters like the mentioned losenge you should better look for 
a font
which contains it and create a new typeface for it or set a fallback font which 
add the
characters to the main font of your document.


Before answering I wanted to find out how to make this fallback: Using a given 
font
and fall back to only one (or a few) specific characters in another font. For 
example
using Tex Gyre Pagella and fall back to Dejavu's black diamond, but not to any 
other
characters.

To learn how to do this, in the last few days I read most of (if not all) the 
related pages on
the wiki site, and browsed the indicated pdf documents too. Unfortunately I 
find the wiki
pages confusing, and I couldn't find out how to solve the problem yet, but I 
did not want
to wait longer with the answer. I will study further the docs.


search for 'fallbacks' in the test suite

(you can have fallback ranges but also individual characters)

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] how to insert symbols into document?

2015-04-18 Thread Wolfgang Schuster

> Am 18.04.2015 um 13:21 schrieb Csikos Bela :
> 
>> When you need characters like the mentioned losenge you should better look 
>> for a font
>> which contains it and create a new typeface for it or set a fallback font 
>> which add the
>> characters to the main font of your document.
> 
> Before answering I wanted to find out how to make this fallback: Using a 
> given font
> and fall back to only one (or a few) specific characters in another font. For 
> example
> using Tex Gyre Pagella and fall back to Dejavu's black diamond, but not to 
> any other
> characters.
> 
> To learn how to do this, in the last few days I read most of (if not all) the 
> related pages on
> the wiki site, and browsed the indicated pdf documents too. Unfortunately I 
> find the wiki
> pages confusing, and I couldn't find out how to solve the problem yet, but I 
> did not want
> to wait longer with the answer. I will study further the docs.

\definefallbackfamily [documentfont] [rm] [DejaVu Serif] [range=0x25C6]
\definefontfamily [documentfont] [rm] [TeX Gyre Pagella]
\definefontfamily [documentfont] [tt] [Latin Modern Mono] [features=none]
\definefontfamily [documentfont] [mm] [TeX Gyre Pagella Math]

\setupbodyfont[documentfont]

% \setupsymbolset[text]
%
% Using the predefined symbol for "blackdiamond" doesn’t work
% because context tests if the symbol exists in the text font
% before it displays it but we take it from the fallback font
% and therefore nothing is shown. To avoid this you can define
% your own symbol or just put the character in your document
% without the \symbol command.

\definesymbol[blackdiamond][◆]

\starttext

direct input: ◆

\type{\symbol[blacktriangle]}: \symbol[blackdiamond]

\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] how to insert symbols into document?

2015-04-18 Thread Csikos Bela
Wolfgang Schuster írta:
>
>> Am 13.04.2015 um 01:29 schrieb Csikos Bela:

LONG CUT - See previous messages

Otared, Wolfgang:

Thank you for your suggestions.

>The symbols in the file symb-imp-mis.mkiv are loaded by default because 
>context uses
>them for the itemise environment but a few of them have to be enabled before 
>you can
>use them and even then you need a font which contains them, e.g. DejaVu.
>
> begin example
>\setupbodyfont[dejavu]
>
>\setupsymbolset[text]
>
>\starttext
>
>\starttabulate[|l|c|]
>\NC \bf Name  \NC \bf Symbol  \NC\NR
>\TB
>\NC bullet    \NC \symbol [bullet]\NC\NR
>\NC dash  \NC \symbol [dash]  \NC\NR
>\NC star      \NC \symbol [star]  \NC\NR
>\NC triangle  \NC \symbol [triangle]  \NC\NR
>\NC circle    \NC \symbol [circle]\NC\NR
>\NC square\NC \symbol [square]\NC\NR
>\NC diamond   \NC \symbol [diamond]   \NC\NR
>\TB
>\NC blacktriangle \NC \symbol [blacktriangle] \NC\NR
>\NC blacksquare   \NC \symbol [blacksquare]   \NC\NR
>\NC blackdiamond  \NC \symbol [blackdiamond]  \NC\NR
>\TB
>\NC 1 \NC \symbol [1]     \NC\NR
>\NC 2 \NC \symbol [2] \NC\NR
>\NC 3 \NC \symbol [3]     \NC\NR
>\NC 4 \NC \symbol [4] \NC\NR
>\NC 5 \NC \symbol [5] \NC\NR
>\NC 6 \NC \symbol [6] \NC\NR
>\NC 7 \NC \symbol [7] \NC\NR
>\NC 8 \NC \symbol [8] \NC\NR
>\stoptabulate
>
>\stoptext
> end example

OK, I see that neither the default font nor Tex Gyre Pagella has black diamod 
symbol, therefore it can't be shown. 

>When you need characters like the mentioned losenge you should better look for 
>a font
>which contains it and create a new typeface for it or set a fallback font 
>which add the
>characters to the main font of your document.

Before answering I wanted to find out how to make this fallback: Using a given 
font
and fall back to only one (or a few) specific characters in another font. For 
example
using Tex Gyre Pagella and fall back to Dejavu's black diamond, but not to any 
other
characters.

To learn how to do this, in the last few days I read most of (if not all) the 
related pages on
the wiki site, and browsed the indicated pdf documents too. Unfortunately I 
find the wiki
pages confusing, and I couldn't find out how to solve the problem yet, but I 
did not want
to wait longer with the answer. I will study further the docs.

Thanks once more for your help,

bcsikos

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

2015-04-16 Thread Aditya Mahajan

On Thu, 16 Apr 2015, Thangalin wrote:


\define\thinrule\fancybreak


Or

\definefancybreak[thinrule][symbol=star]

I wish there was a custom context-writer for pandoc, where markdown 
elements were mapped to semantic commands rather than visual commands 
(pandoc maps **text** to {\bf text}, which is worse).


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
___

Re: [NTG-context] setupthinrules

2015-04-16 Thread Thangalin
Thank you.

Here is an example that changes the \thinrule to something fancier:

\usemodule[fancybreak]

\setupfancybreak[symbol=star]
\define\thinrule\fancybreak
___
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 insert symbols into document?

2015-04-13 Thread Wolfgang Schuster

> Am 13.04.2015 um 01:29 schrieb Csikos Bela :
> 
> Hello context users:
> 
> I would like to insert symbols into my document, especially black-diamond and 
> losenge
> symbols. I read symbols page at contextgarden but still don't know how to do 
> it.
> 
> I also tried \showsymbolset[was] etc but the symbols but I did not find these 
> (and many
> other symbols either) in the output pages.
> 
> I found that symb-imp-mis.mkiv file defines this symbol (line 49) but I don't 
> know how to
> make it show. Do I have to load specific symbol fonts? If yes how can I find 
> out which font has the given symbols? 
> 
> What I tried so far included:
> 
> % begin code
> \usesymbols[imp-mis]
> \starttext
> 
> ◆
> 
> \blackdiamond
> 
> \symbol [blackdiamond]
> % end code
> 
> None of these show anything.

The symbols in the file symb-imp-mis.mkiv are loaded by default because context 
uses
them for the itemise environment but a few of them have to be enabled before 
you can
use them and even then you need a font which contains them, e.g. DejaVu.

 begin example
\setupbodyfont[dejavu]

\setupsymbolset[text]

\starttext

\starttabulate[|l|c|]
\NC \bf Name  \NC \bf Symbol  \NC\NR
\TB
\NC bullet\NC \symbol [bullet]\NC\NR
\NC dash  \NC \symbol [dash]  \NC\NR
\NC star  \NC \symbol [star]  \NC\NR
\NC triangle  \NC \symbol [triangle]  \NC\NR
\NC circle\NC \symbol [circle]\NC\NR
\NC square\NC \symbol [square]\NC\NR
\NC diamond   \NC \symbol [diamond]   \NC\NR
\TB
\NC blacktriangle \NC \symbol [blacktriangle] \NC\NR
\NC blacksquare   \NC \symbol [blacksquare]   \NC\NR
\NC blackdiamond  \NC \symbol [blackdiamond]  \NC\NR
\TB
\NC 1 \NC \symbol [1] \NC\NR
\NC 2 \NC \symbol [2] \NC\NR
\NC 3 \NC \symbol [3] \NC\NR
\NC 4 \NC \symbol [4] \NC\NR
\NC 5 \NC \symbol [5] \NC\NR
\NC 6 \NC \symbol [6] \NC\NR
\NC 7 \NC \symbol [7] \NC\NR
\NC 8 \NC \symbol [8] \NC\NR
\stoptabulate

\stoptext
 end example

When you need characters like the mentioned losenge you should better look for 
a font
which contains it and create a new typeface for it or set a fallback font which 
add the
characters to the main font of your document.

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] how to insert symbols into document?

2015-04-13 Thread Otared Kavian
Hi,

There is no \blackdiamond defined beforehand, but there is \diamondsuit (as 
well as \heartsuit, \spadesuit, \clubsuit):

If you want a filled black diamond, you may use \blacklozenge, or find its 
corresponding UTF code and then insert it with a special command:

 begin diamond.tex
\define\blackdiamond{\utfchar{"2666}}
\starttext
This is \type{$\diamondsuit$} $\diamondsuit$

This is \type{$\diamond$} $\diamond$

This is \type{$\blackdiamond$} $\blackdiamond$
\stoptext
 end diamond.tex

Best regards: OK

> On 13 Apr 2015, at 13:14, Csikos Bela  wrote:
> 
> Otared Kavian  írta:
> 
>>> On 13 Apr 2015, at 01:29, Csikos Bela  wrote:
>>> 
>>> Hello context users:
>>> 
>>> I would like to insert symbols into my document, especially black-diamond 
>>> and losenge
>>> symbols. I read symbols page at contextgarden but still don't know how to 
>>> do it.
>>> 
>>> I also tried \showsymbolset[was] etc but the symbols but I did not find 
>>> these (and many
>>> other symbols either) in the output pages.
>>> 
>>> I found that symb-imp-mis.mkiv file defines this symbol (line 49) but I 
>>> don't know how to
>>> make it show. Do I have to load specific symbol fonts? If yes how can I 
>>> find out which font has the given symbols? 
>>> 
>>> What I tried so far included:
>>> 
>>> % begin code
>>> \usesymbols[imp-mis]
>>> \starttext
>>> 
>>> ◆
>>> 
>>> \blackdiamond
>>> 
>>> \symbol [blackdiamond]
>>> % end code
>>> 
>>> None of these show anything.
> 
>> Hi,
>> 
>> You can use the mathmode to access those characters, as in the following 
>> example:
>> 
>> \starttext
>> This is \type{$\blacklozenge$} $\blacklozenge$
>> 
>> This is \type{$\lozenge$} $\lozenge$
>> \stoptext
> 
> Hi,
> 
> The above example works.
> But if I try it with \blackdiamond, I get error and context stops:
> 
> This is the tex file:
> 
> % begin code
> \starttext
> This is \type{$\blackdiamond$} $\blackdiamond$
> 
> This is \type{$\diamond$} $\diamond$
> \stoptext
> % end code
> 
> And the compilation:
> 
>> context symbols.tex
> 
> mtx-context | run 1: luatex 
> --fmt="/usr/local/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
>  --jobname="symbols" 
> --lua="/usr/local/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
>  --no-parse-first-line --c:currentrun=1 --c:fulljobname="./symbols.tex" 
> --c:input="./symbols.tex" --c:kindofrun=1 --c:maxnofruns=8 "cont-yes.mkiv"
> This is LuaTeX, Version beta-0.80.0 (TeX Live 2015/dev) (rev 5195)
> \write18 enabled.
> (/usr/local/context/tex/texmf-context/tex/context/base/cont-yes.mkiv
> 
> ConTeXt  ver: 2014.01.03 00:40 MKIV current  fmt: 2015.3.31  int: 
> english/english
> 
> system  > 'cont-new.mkiv' loaded
> (/usr/local/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
> system  > files > jobname 'symbols', input './symbols', result 
> 'symbols'
> fonts   > latin modern fonts are not preloaded
> languages   > language 'en' is active
> (/symbols.tex{/usr/local/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
> fonts   > preloading latin modern fonts (second stage)
> fonts   > typescripts > unknown library 'loc'
> {/usr/local/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/local/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
> fonts   > 'fallback modern rm 12pt' is loaded
> fonts   > treatment > fixing some wrong widths
> ! Undefined control sequence
> 
> system  > tex > error on line 4 in file .../symbols.tex: 
> Undefined control sequence ...
> 
> 1
> 2
> 3 \starttext
> 4 >>  This is \type{$\blackdiamond$} $\blackdiamond$
> 5
> 6 This is \type{$\diamond$} $\diamond$
> 7 \stoptext
> 8
> 9
> 
> 
> ?
> backend > xmp > using file 
> '/usr/local/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
> pages   > flushing realpage 1, userpage 1
> ))
> 
> mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
> mkiv lua stats  > used cache path: readable: 
> '/usr/local/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e&

Re: [NTG-context] how to insert symbols into document?

2015-04-13 Thread Csikos Bela
Otared Kavian  írta:

>> On 13 Apr 2015, at 01:29, Csikos Bela  wrote:
>> 
>> Hello context users:
>> 
>> I would like to insert symbols into my document, especially black-diamond 
>> and losenge
>> symbols. I read symbols page at contextgarden but still don't know how to do 
>> it.
>> 
>> I also tried \showsymbolset[was] etc but the symbols but I did not find 
>> these (and many
>> other symbols either) in the output pages.
>> 
>> I found that symb-imp-mis.mkiv file defines this symbol (line 49) but I 
>> don't know how to
>> make it show. Do I have to load specific symbol fonts? If yes how can I find 
>> out which font has the given symbols? 
>> 
>> What I tried so far included:
>> 
>> % begin code
>> \usesymbols[imp-mis]
>> \starttext
>> 
>> ◆
>> 
>> \blackdiamond
>> 
>> \symbol [blackdiamond]
>> % end code
>> 
>> None of these show anything.

>Hi,
>
>You can use the mathmode to access those characters, as in the following 
>example:
>
>\starttext
>This is \type{$\blacklozenge$} $\blacklozenge$
>
>This is \type{$\lozenge$} $\lozenge$
>\stoptext

Hi,

The above example works.
But if I try it with \blackdiamond, I get error and context stops:

This is the tex file:

% begin code
\starttext
This is \type{$\blackdiamond$} $\blackdiamond$

This is \type{$\diamond$} $\diamond$
\stoptext
% end code

And the compilation:

> context symbols.tex

mtx-context | run 1: luatex 
--fmt="/usr/local/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
 --jobname="symbols" 
--lua="/usr/local/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
 --no-parse-first-line --c:currentrun=1 --c:fulljobname="./symbols.tex" 
--c:input="./symbols.tex" --c:kindofrun=1 --c:maxnofruns=8 "cont-yes.mkiv"
This is LuaTeX, Version beta-0.80.0 (TeX Live 2015/dev) (rev 5195)
 \write18 enabled.
(/usr/local/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2014.01.03 00:40 MKIV current  fmt: 2015.3.31  int: 
english/english

system  > 'cont-new.mkiv' loaded
(/usr/local/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
system  > files > jobname 'symbols', input './symbols', result 'symbols'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
(/symbols.tex{/usr/local/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts   > preloading latin modern fonts (second stage)
fonts   > typescripts > unknown library 'loc'
{/usr/local/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/local/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts   > 'fallback modern rm 12pt' is loaded
fonts   > treatment > fixing some wrong widths
! Undefined control sequence

system  > tex > error on line 4 in file .../symbols.tex: Undefined 
control sequence ...

1
2
3 \starttext
4 >>  This is \type{$\blackdiamond$} $\blackdiamond$
5
6 This is \type{$\diamond$} $\diamond$
7 \stoptext
8
9


?
backend > xmp > using file 
'/usr/local/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1
))

mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: readable: 
'/usr/local/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e'
 | readable+writable: 
'/tmp/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e'
mkiv lua stats  > resource resolver: loadtime 0.019 seconds, 1 scans with 
scantime 0.002 seconds, 5 shared scans, 14 found files, scanned paths: 
/texmf
mkiv lua stats  > stored bytecode data: 338 modules (0.450 sec), 69 tables 
(0.010 sec), 407 chunks (0.460 sec)
mkiv lua stats  > cleaned up reserved nodes: 42 nodes, 9 lists of 442
mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 9 attribute, 28 
glue_spec, 3 attribute_list
mkiv lua stats  > node list callback tasks: 6 unique task lists, 6 instances 
(re)created, 45 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.000 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: 145 direct, 174 indirect, 319 total
mkiv lua stats  > result saved in file: symbols.pdf, compresslevel 3, 
objectcompreslevel 3
mkiv lua stats  > loaded fonts: 3 files: latinmodern-math.otf, 
lmmono12-regul

Re: [NTG-context] how to insert symbols into document?

2015-04-12 Thread Otared Kavian
Hi,

You can use the mathmode to access those characters, as in the following 
example:

\starttext
This is \type{$\blacklozenge$} $\blacklozenge$

This is \type{$\lozenge$} $\lozenge$
\stoptext

If you want to know the name of some specific characters you can use the 
following code, typeset in mkii.
(Unfortunately in mkiv the command \showmathcharacters is made unavailable… 
There is another command which gives a huge amount of informations on all such 
characters, but not a simple table like the one you get in mkii).

 begin show-math-mkii.tex
% To see all the math characters available in a font
% typeset this in mkii
\starttext
\showmathcharacters
\stoptext
 begin show-math-mkii.tex


Best regards: OK


> On 13 Apr 2015, at 01:29, Csikos Bela  wrote:
> 
> Hello context users:
> 
> I would like to insert symbols into my document, especially black-diamond and 
> losenge
> symbols. I read symbols page at contextgarden but still don't know how to do 
> it.
> 
> I also tried \showsymbolset[was] etc but the symbols but I did not find these 
> (and many
> other symbols either) in the output pages.
> 
> I found that symb-imp-mis.mkiv file defines this symbol (line 49) but I don't 
> know how to
> make it show. Do I have to load specific symbol fonts? If yes how can I find 
> out which font has the given symbols? 
> 
> What I tried so far included:
> 
> % begin code
> \usesymbols[imp-mis]
> \starttext
> 
> ◆
> 
> \blackdiamond
> 
> \symbol [blackdiamond]
> % end code
> 
> None of these show anything.
> 
> Thanks in advance,
> 
> bcsikos
> ___
> 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] how to insert symbols into document?

2015-04-12 Thread Csikos Bela
Hello context users:

I would like to insert symbols into my document, especially black-diamond and 
losenge
symbols. I read symbols page at contextgarden but still don't know how to do it.

I also tried \showsymbolset[was] etc but the symbols but I did not find these 
(and many
other symbols either) in the output pages.

I found that symb-imp-mis.mkiv file defines this symbol (line 49) but I don't 
know how to
make it show. Do I have to load specific symbol fonts? If yes how can I find 
out which font has the given symbols? 

What I tried so far included:

% begin code
\usesymbols[imp-mis]
\starttext

◆

\blackdiamond

\symbol [blackdiamond]
% end code

None of these show anything.

Thanks in advance,

bcsikos
___
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] Request: Numbercommand key for \setupcaption

2015-04-11 Thread Hans Hagen

On 4/11/2015 9:07 AM, Wolfgang Schuster wrote:



Am 10.04.2015 um 15:22 schrieb Hans Hagen mailto:pra...@wxs.nl>>:

On 4/10/2015 12:38 PM, Wolfgang Schuster wrote:

Hi Hans,

can you add a number command key to \setupcaption because when you
use a language which uses left and right labels for the number
the numberstopper key can’t be used anymore to put a symbol after the
float counter without misusing the label texts.


For example the following example should print

LEFT 1 RIGHT: Dummy figure

as figure caption but it shows only

LEFT 1 RIGHT Dummy figure

without the color after “RIGHT”.


 begin example
\useMPlibrary[dum]

\setuplabeltext[en][figure={LEFT , RIGHT}]

\definereferenceformat[infigure][label=*]

\setupcaption[figure][numbercommand=\groupedcommand{}{:}]

\starttext

\startplacefigure[reference=fig:dummy,title=Dummy figure]
\externalfigure[dummy]
\stopplacefigure

See \infigure[fig:dummy].

\stoptext
 end example


beta:

\useMPlibrary[dum]

\setuplabeltext[en][figure={LEFT , RIGHT}]

\definereferenceformat[infigure][label=*]

\setupcaption
 [figure]
 [textcommand=\groupedcommand{<}{>},
  numbercommand=\groupedcommand{[}{]}]

\starttext

   \startplacefigure[reference=fig:dummy,title=Dummy figure]
   \externalfigure[dummy]
   \stopplacefigure

   See \infigure[fig:dummy].

\stoptext


The numbercommand key should include the labels.

\unprotect
\unexpanded\def\thecurrentfloatnumber
   {\ifnofloatcaption \else \ifnofloatnumber \else
  \ifx\currentfloatnumber\relax\else
\floatcaptionparameter\c!numbercommand
  {\namedtaggedlabeltexts
\t!floatlabel \currentfloat
\t!floatnumber\currentfloat

  {\clf_savedlistprefixednumber{\currentfloat}\currentfloatnumber\relax
   \thecurrentfloatnumbersuffix}}%
  \fi
\fi \fi}
\protect

\useMPlibrary[dum]

\setuplabeltext[en][figure={LEFT , RIGHT}]

\definereferenceformat[infigure][label=*]

\setupcaption
  [figure]
  [textcommand=\groupedcommand{<}{>},
   numbercommand=\groupedcommand{[}{]}]

\starttext

\startplacefigure[reference=fig:dummy,title=Dummy figure]
\externalfigure[dummy]
\stopplacefigure

See \infigure[fig:dummy].

\stoptext


hm, tricky as then the part wrapped around the number will not get 
tagged properly ... needs a bit more work


-
  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] Request: Numbercommand key for \setupcaption

2015-04-11 Thread Wolfgang Schuster

> Am 10.04.2015 um 15:22 schrieb Hans Hagen :
> 
> On 4/10/2015 12:38 PM, Wolfgang Schuster wrote:
>> Hi Hans,
>> 
>> can you add a number command key to \setupcaption because when you use a 
>> language which uses left and right labels for the number
>> the numberstopper key can’t be used anymore to put a symbol after the float 
>> counter without misusing the label texts.
>> 
>> 
>> For example the following example should print
>> 
>> LEFT 1 RIGHT: Dummy figure
>> 
>> as figure caption but it shows only
>> 
>> LEFT 1 RIGHT Dummy figure
>> 
>> without the color after “RIGHT”.
>> 
>> 
>>  begin example
>> \useMPlibrary[dum]
>> 
>> \setuplabeltext[en][figure={LEFT , RIGHT}]
>> 
>> \definereferenceformat[infigure][label=*]
>> 
>> \setupcaption[figure][numbercommand=\groupedcommand{}{:}]
>> 
>> \starttext
>> 
>> \startplacefigure[reference=fig:dummy,title=Dummy figure]
>>  \externalfigure[dummy]
>> \stopplacefigure
>> 
>> See \infigure[fig:dummy].
>> 
>> \stoptext
>>  end example
> 
> beta:
> 
> \useMPlibrary[dum]
> 
> \setuplabeltext[en][figure={LEFT , RIGHT}]
> 
> \definereferenceformat[infigure][label=*]
> 
> \setupcaption
>  [figure]
>  [textcommand=\groupedcommand{<}{>},
>   numbercommand=\groupedcommand{[}{]}]
> 
> \starttext
> 
>\startplacefigure[reference=fig:dummy,title=Dummy figure]
>\externalfigure[dummy]
>\stopplacefigure
> 
>See \infigure[fig:dummy].
> 
> \stoptext

The numbercommand key should include the labels.

\unprotect
\unexpanded\def\thecurrentfloatnumber
  {\ifnofloatcaption \else \ifnofloatnumber \else
 \ifx\currentfloatnumber\relax\else
   \floatcaptionparameter\c!numbercommand
 {\namedtaggedlabeltexts
   \t!floatlabel \currentfloat
   \t!floatnumber\currentfloat
 
{\clf_savedlistprefixednumber{\currentfloat}\currentfloatnumber\relax
  \thecurrentfloatnumbersuffix}}%
 \fi
   \fi \fi}
\protect

\useMPlibrary[dum]

\setuplabeltext[en][figure={LEFT , RIGHT}]

\definereferenceformat[infigure][label=*]

\setupcaption
 [figure]
 [textcommand=\groupedcommand{<}{>},
  numbercommand=\groupedcommand{[}{]}]

\starttext

   \startplacefigure[reference=fig:dummy,title=Dummy figure]
   \externalfigure[dummy]
   \stopplacefigure

   See \infigure[fig:dummy].

\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] alphabetically ordered notes

2015-04-08 Thread Hans Hagen

On 4/5/2015 8:32 PM, Pablo Rodriguez wrote:

Hans,

as you told me to remind you latter, here you have the proposal for
alphabetically ordered footnotes:

 \setuplanguage[en][patterns={en,agr}]
 \setuppapersize[A7]
 \setupbodyfont[dejavu, 12pt]
 \definenote[dict]
 \setupnote[dict][n=2,rule=off, split=strict, inbetween=\hskip1.5em]
 \setupnotation[dict][width=broad, number=no]
 \starttext
 Πρῶτον δεῖ θέσθαι τί ὄνομα\dict{ὄνομα,
 -ατος, τό: noun} καὶ τί ῥῆμα\dict{ῥῆμα, -ατος, τό: verb},
 ἔπειτα τί ἐστιν
 ἀπόφασις\dict{ἀπόφασις, -εως, ἡ: negation}
 καὶ κατάφασις\dict{κατάφασις, εως, ἡ:
 affirmation} καὶ ἀπόφανσις\dict{ἀπόφανσις,
 -εως, ἡ: statement} καὶ λόγος.

 Ἔστι μὲν οὖν τὰ ἐν τῇ φωνῇ\dict{φωνή, -ῆς, ἡ: voice} τῶν ἐν τῇ
 ψυχῇ\dict{ψυχῇ, -ῆς, ἡ: soul} παθημάτων\dict{πάθημα, -ατος, τό:
 affections} σύμβολα\dict{σύμβολον, -ου, τό: symbol}, καὶ τὰ
 γραφόμενα\dict{γραφόμενον: written} τῶν ἐν τῇ φωνῇ.
 \page
 \title{Vocabulary}
 \placenotes[dict]
 \stoptext

BTW, it would be extremely useful to be able to place this kind of notes
on each page and also with a \placenotes command.


quite tricky due to synchronization issues


Many thanks for your help,


in next beta:

\placelist[dict][order=title]

(no language control yet .. no time now)

-
  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] itemize[n] and dejavu fonts

2015-04-07 Thread Alan BRASLAU
On Tue, 7 Apr 2015 13:37:54 +0200
Wolfgang Schuster  wrote:

> Can you show your output from the example and tell what you expect
> from the fit option.

For example:

\setupbodyfont [scola,10pt]
\startitemize [n]
...

yields a reasonable output:
10. X

\setupbodyfont [dejavu,10pt]
\startitemize [n]
...

the output is ugly:
10.X
where the period and the X almost touch.

AND if one goes to 100 items, then result is
100.X
where the 0 and the X overlap
(the period is in the right foot of the X).

Using the scola font, the result with 100 is similar to the result with
10 in dejavu, so going to a fourth digit would be just as horrible as
with three digits and dejavu.

\setupbodyfont [whatever]
\startitemize[n,fit]
yields
10.X
with no spacing in all fonts, and this is pretty ugly unless one also
specifies [distance=\spaceamount]. Perhaps this correct (with
distance=, by default) as fit should then fit with no spacing.

HOWEVER,
\startitemize [n]
with no other options should simply work correctly "out of the box" for
all fonts and not give such horrible results.

I understand now: the default is a fixed offset to the list body that
works OK for small itemizations (i.e. one digit) with most fonts and
more-or-less well with two digits, but not with dejavu. Choosing the
option "fit" and setting a "distance" gives a reasonable result, so we
cannot call this a bug, but the result by default is rather surprising.
Notice that \startitemize[R] works poorly with even less than 10 items.

May I suggest that the default spacing (i.e. the list setup) that is
used be enlarged a little bit, as two digit numbered itemizations are
not rare and dejavu is such a useful font. Indeed, this is obtained
with the option "broad". Indeed, in "the manual", broad (and
2*broad) is used in such examples. Perhaps the fixed spacing that is
presently tuned works well with simple symbol item lists and passably
with single digit numbered lists, which probably explains why this is
the default. Also, I suppose that there is some aesthetic value in
having item lists take a fixed, uniform distance by default in a
document which is why "fit" is not a default option. Thus, a design
choice (or compromise).

Moral: read the manual!

Alan
-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.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
___

[NTG-context] alphabetically ordered notes

2015-04-05 Thread Pablo Rodriguez
Hans,

as you told me to remind you latter, here you have the proposal for
alphabetically ordered footnotes:

\setuplanguage[en][patterns={en,agr}]
\setuppapersize[A7]
\setupbodyfont[dejavu, 12pt]
\definenote[dict]
\setupnote[dict][n=2,rule=off, split=strict, inbetween=\hskip1.5em]
\setupnotation[dict][width=broad, number=no]
\starttext
Πρῶτον δεῖ θέσθαι τί ὄνομα\dict{ὄνομα,
-ατος, τό: noun} καὶ τί ῥῆμα\dict{ῥῆμα, -ατος, τό: verb},
ἔπειτα τί ἐστιν
ἀπόφασις\dict{ἀπόφασις, -εως, ἡ: negation}
καὶ κατάφασις\dict{κατάφασις, εως, ἡ:
affirmation} καὶ ἀπόφανσις\dict{ἀπόφανσις,
-εως, ἡ: statement} καὶ λόγος.

Ἔστι μὲν οὖν τὰ ἐν τῇ φωνῇ\dict{φωνή, -ῆς, ἡ: voice} τῶν ἐν τῇ
ψυχῇ\dict{ψυχῇ, -ῆς, ἡ: soul} παθημάτων\dict{πάθημα, -ατος, τό:
affections} σύμβολα\dict{σύμβολον, -ου, τό: symbol}, καὶ τὰ
γραφόμενα\dict{γραφόμενον: written} τῶν ἐν τῇ φωνῇ.
\page
\title{Vocabulary}
\placenotes[dict]
\stoptext

BTW, it would be extremely useful to be able to place this kind of notes
on each page and also with a \placenotes command.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] Selecting fonts using the built-in simplefonts module

2015-03-29 Thread Wolfgang Schuster

> Am 29.03.2015 um 22:44 schrieb Pavneet Arora :
> 
> Dear Wolfgang,
> 
> I am using:
> 
>  ConTeXt  ver: 2015.03.28 22:37 MKIV beta  fmt: 2015.3.29  int: 
> english/english
> 
> After installing fontawesome, and running the MWE that you had enclosed, 
> I get the following error:
> 
>  fonts   > symbols > library 'fontawesome' is unknown
> 
> And no symbols are output.  'fontawesome' is loaded:
> 
>  $ mtxrun --script fonts --list --all --pattern=fontawesome
> 
>  resolvers   | trees | analyzing 'home:texmf'
>  resolvers   | caching | skipping 'files' for 'home:texmf' from 
>  
> '/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/54be04d87dd160089f572b19cb5c97e9'
>  (version mismatch)
>  fontawesome  fontawesome   
> /home/pavneet/.fonts/opentype/font-awesome-4.3.0/fonts/FontAwesome.otf
>  fontawesomenormalfontawesome   
> /home/pavneet/.fonts/opentype/font-awesome-4.3.0/fonts/FontAwesome.otf
>  fontawesomeregular   fontawesome   
> /home/pavneet/.fonts/opentype/font-awesome-4.3.0/fonts/FontAwesome.otf
> 
> Also, the '\mysymbol' directive results in an error:
> 
>  tex error   > error on line 24 in file test2.tex: ! Argument of \65> has 
> an extra }
> 
>   \par  }
>  \symb_place_indeed ...name \??symbol #1\endcsname \relax \endgroup 
>  \symb_place_retry ...name \symb_place_indeed {:#1}
>\else #1\fi 
>  \symb_place_normal_c ...lace_retry \currentsymbol \fi 
>  \symb_place_normal_b ...else \symb_place_normal_c \fi ...
>  l.24 \symbol[mysymbol]
> 
> 
>  14     \definesymbol
>  15   [mysymbol]
>  16   [\SymbolFrame{\directsymbol{fontawesome}{question}}]
>  17
>  18 \starttext
>  19
>  20 \startlines
>  21 \symbol[fontawesome][question]
>  22 \symbol[fontawesome][question-circle]
>  23 
> \framed[strut=no,width=1em,height=1em,background=color,backgroundcolor=black,corner=round,radius=.5ex,foregroundcolor=white]{\symbol[fontawesome][question]}
>  24 >>  \symbol[mysymbol]
>  25 \stoplines
>  26
>  27 \stoptext
>  28 
> 
> What might be the problem?

Put the attached file (symbol-fontawsome.mkiv) from my last mail in the same 
folder as your document.

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] Selecting fonts using the built-in simplefonts module

2015-03-29 Thread Pavneet Arora
Dear Wolfgang,

I am using:

  ConTeXt  ver: 2015.03.28 22:37 MKIV beta  fmt: 2015.3.29  int: english/english

After installing fontawesome, and running the MWE that you had enclosed, 
I get the following error:

  fonts   > symbols > library 'fontawesome' is unknown

And no symbols are output.  'fontawesome' is loaded:

  $ mtxrun --script fonts --list --all --pattern=fontawesome

  resolvers   | trees | analyzing 'home:texmf'
  resolvers   | caching | skipping 'files' for 'home:texmf' from 
  
'/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/54be04d87dd160089f572b19cb5c97e9'
 (version mismatch)
  fontawesome  fontawesome   
/home/pavneet/.fonts/opentype/font-awesome-4.3.0/fonts/FontAwesome.otf
  fontawesomenormalfontawesome   
/home/pavneet/.fonts/opentype/font-awesome-4.3.0/fonts/FontAwesome.otf
  fontawesomeregular   fontawesome   
/home/pavneet/.fonts/opentype/font-awesome-4.3.0/fonts/FontAwesome.otf

Also, the '\mysymbol' directive results in an error:

  tex error   > error on line 24 in file test2.tex: ! Argument of \65> has 
an extra }

   \par  }
  \symb_place_indeed ...name \??symbol #1\endcsname \relax \endgroup 
  \symb_place_retry ...name \symb_place_indeed {:#1}
\else #1\fi 
  \symb_place_normal_c ...lace_retry \currentsymbol \fi 
  \symb_place_normal_b ...else \symb_place_normal_c \fi ...
  l.24 \symbol[mysymbol]
  

  14 \definesymbol
  15   [mysymbol]
  16   [\SymbolFrame{\directsymbol{fontawesome}{question}}]
  17
  18 \starttext
  19
  20 \startlines
  21 \symbol[fontawesome][question]
  22 \symbol[fontawesome][question-circle]
  23 
\framed[strut=no,width=1em,height=1em,background=color,backgroundcolor=black,corner=round,radius=.5ex,foregroundcolor=white]{\symbol[fontawesome][question]}
  24 >>  \symbol[mysymbol]
  25 \stoplines
  26
  27 \stoptext
  28 

What might be the problem?

Many thanks.


On 29Mar15, Wolfgang Schuster wrote:
> > 2.  How does one switch fonts in-line for small snippets of text?  I 
> >used to use '{\simplefont[heydingsicons] 
q}123.345.67890', but this > >now results in an error.
> > 
> >tex error   > error on line 7 in file virtual://buffer.noname.1: ! 
> > Undefined control sequence
> > 
> >l.7 {\simplefont [heydingsicons] q}~123.456.7890 
> > {\simplefont[heydingsicons..
> 
> When you use a symbol font define a command for it with \definesymbol and 
> access it with \symbol.
> 
> The example below uses the Font Awesome [1] font for the symbols (the symbols 
> are defined in the attached file).
> 
> \usesymbols[fontawesome]
> 
> \defineframed
>   [SymbolFrame]
>   [strut=no,
>width=1em,
>height=1em,
>background=color,
>backgroundcolor=black,
>corner=round,
>    radius=.5ex,
>foregroundcolor=white]
> 
> \definesymbol
>   [mysymbol]
>   [\SymbolFrame{\directsymbol{fontawesome}{question}}]
> 
> \starttext
> 
> \startlines
> \symbol[fontawesome][question]
> \symbol[fontawesome][question-circle]
> \framed[strut=no,width=1em,height=1em,background=color,backgroundcolor=black,corner=round,radius=.5ex,foregroundcolor=white]{\symbol[fontawesome][question]}
> \symbol[mysymbol]
> \stoplines
> 
> \stoptext

--

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
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] Selecting fonts using the built-in simplefonts module

2015-03-29 Thread Jörg Weger



On 29.03.2015 19:47, Wolfgang Schuster wrote:



Am 29.03.2015 um 14:40 schrieb Pavneet Arora mailto:pavneet_ar...@waroc.com>>:

Hello everyone,

After a long time I have some typesetting work in front of me...yippeee!

I am struggling with adapting my templates to the new integrated
simplefonts module, and hope that someone can help.

The three issues I am having are:

1.  How does one find the proper expanded long name of the desired font.
   For this project, I am using some fonts from The League of Moveable
   Type (https://www.theleagueofmoveabletype.com/).

   I have reloaded the fonts, and can list them, in the traditional
   manner.  What I don't know is how to find the proper name for---say
   Junction Light---to use as the third argument in
   '\definefontfamily[mainface][ss][Junction Light]'

   The use of 'Junction Light' doesn't work, and neither does
   'Junction-Light', nor 'junctionlight', nor even 'Junction, Light'
   which I retrieve from Font Viewer under Linux.  MWE follows at the
   end of this email.  I reference Wolfgang's response stating that the
   expanded name must be used
   (http://www.ntg.nl/pipermail/ntg-context/2014/077321.html).


You need the familyname of the font, you use the font manager of your OS
to get the name.

\definefontfamily [junction] [rm] [Junction]
\definefontfamily [junction] [mm] [Latin Modern Math]

\definefontfamily [junction-light] [rm] [Junction]
[tf=style:light,bf=style:regular]


I just had it made working this way:

\definefontfamily[mainface]
[ss]
[EgalobhierFarinUrlaubodersonstwasoderwersteht] 
[tf=Junction Light, bf=Junction Regular]

It seems that as soon as you define your own weights (which you can mix 
from different font families) in the fourth pair of brackets, there can 
be anything in the third pair of brackets (family name).


\definefontfamily[mainface]
[sans]
[Anything]  
[regularfont=Junction Light, boldfont=Junction Regular]

works as well and is more self-explaining.

An advantage of your way

> \definefontfamily [junction-light] [rm] [Junction]
> [tf=style:light,bf=style:regular]

is that you have to type the family name only once if you re-define 
weights from the same family.


Are there any reasons why one should not use any of all those synonyms?


Greetings Jörg


\definefontfamily [junction-light] [mm] [Latin Modern Math]

\setupbodyfont[junction]

\starttext

\input ward \bf \input ward

\blank \switchtobodyfont[junction-light]

\tf \input ward \bf \input ward

\stoptext



2.  How does one switch fonts in-line for small snippets of text?  I
   used to use '{\simplefont[heydingsicons] q}123.345.67890', but this
   now results in an error.

   tex error   > error on line 7 in file
virtual://buffer.noname.1: ! Undefined control sequence

   l.7 {\simplefont [heydingsicons] q}~123.456.7890
{\simplefont[heydingsicons..


When you use a symbol font define a command for it with \definesymbol
and access it with \symbol.

The example below uses the Font Awesome [1] font for the symbols (the
symbols are defined in the attached file).

\usesymbols[fontawesome]

\defineframed
   [SymbolFrame]
   [strut=no,
width=1em,
height=1em,
background=color,
backgroundcolor=black,
corner=round,
radius=.5ex,
foregroundcolor=white]

\definesymbol
   [mysymbol]
   [\SymbolFrame{\directsymbol{fontawesome}{question}}]

\starttext

\startlines
\symbol[fontawesome][question]
\symbol[fontawesome][question-circle]
\framed[strut=no,width=1em,height=1em,background=color,backgroundcolor=black,corner=round,radius=.5ex,foregroundcolor=white]{\symbol[fontawesome][question]}
\symbol[mysymbol]
\stoplines

\stoptext



3.  This may be a more generic typescript mapping issue, but I still
   struggle with understanding font mappings.  I don't quite get how
   the default mappings are done.

   Look, for example, at Junction above.  'junction' is mapped to
   'junctionbold' rather than 'junctionregular'.  Is this just done by
   taking the first in the list in alphabetic order?

   Or how the League Gothic font is processed below.  How is it that
   leaguegothic is mapped to leaguegothiccondenseditalic by default?
   What is the recommended way in this new simplefont scheme to set the
   mappings for a document?

   $ mtxrun --script fonts --list --all --pattern=leaguegothic

   resolvers   | trees | analyzing 'home:texmf'
   resolvers   | caching | skipping 'files' for 'home:texmf' from
   
'/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/54be04d87dd160089f572b19cb5c97e9'
(version mismatch)
   leaguegothic   leaguegothiccondenseditalic
   
/home/pavneet/.fonts/opentype/TheLeagueOfMoveableType/theleagueof-league-go

Re: [NTG-context] Selecting fonts using the built-in simplefonts module

2015-03-29 Thread Wolfgang Schuster
Am 29.03.2015 um 14:40 schrieb Pavneet Arora <pavneet_ar...@waroc.com>:Hello everyone,After a long time I have some typesetting work in front of me...yippeee!I am struggling with adapting my templates to the new integrated simplefonts module, and hope that someone can help.The three issues I am having are:1.  How does one find the proper expanded long name of the desired font.      For this project, I am using some fonts from The League of Moveable     Type (https://www.theleagueofmoveabletype.com/).    I have reloaded the fonts, and can list them, in the traditional     manner.  What I don't know is how to find the proper name for---say     Junction Light---to use as the third argument in     '\definefontfamily[mainface][ss][Junction Light]'    The use of 'Junction Light' doesn't work, and neither does     'Junction-Light', nor 'junctionlight', nor even 'Junction, Light'     which I retrieve from Font Viewer under Linux.  MWE follows at the     end of this email.  I reference Wolfgang's response stating that the     expanded name must be used     (http://www.ntg.nl/pipermail/ntg-context/2014/077321.html).You need the familyname of the font, you use the font manager of your OS to get the name.\definefontfamily [junction] [rm] [Junction]\definefontfamily [junction] [mm] [Latin Modern Math]\definefontfamily [junction-light] [rm] [Junction] [tf=style:light,bf=style:regular]\definefontfamily [junction-light] [mm] [Latin Modern Math]\setupbodyfont[junction]\starttext\input ward \bf \input ward\blank \switchtobodyfont[junction-light]\tf \input ward \bf \input ward\stoptext2.  How does one switch fonts in-line for small snippets of text?  I     used to use '{\simplefont[heydingsicons] q}123.345.67890', but this     now results in an error.    tex error   > error on line 7 in file virtual://buffer.noname.1: ! Undefined control sequence    l.7 {\simplefont [heydingsicons] q}~123.456.7890 {\simplefont[heydingsicons..When you use a symbol font define a command for it with \definesymbol and access it with \symbol.The example below uses the Font Awesome [1] font for the symbols (the symbols are defined in the attached file).\usesymbols[fontawesome]\defineframed  [SymbolFrame]  [strut=no,   width=1em,   height=1em,   background="">   backgroundcolor=black,   corner=round,   radius=.5ex,   foregroundcolor=white]\definesymbol  [mysymbol]  [\SymbolFrame{\directsymbol{fontawesome}{question}}]\starttext\startlines\symbol[fontawesome][question]\symbol[fontawesome][question-circle]\framed[strut=no,width=1em,height=1em,background="">\symbol[mysymbol]\stoplines\stoptext3.  This may be a more generic typescript mapping issue, but I still     struggle with understanding font mappings.  I don't quite get how     the default mappings are done.    Look, for example, at Junction above.  'junction' is mapped to     'junctionbold' rather than 'junctionregular'.  Is this just done by     taking the first in the list in alphabetic order?    Or how the League Gothic font is processed below.  How is it that     leaguegothic is mapped to leaguegothiccondenseditalic by default?      What is the recommended way in this new simplefont scheme to set the     mappings for a document?    $ mtxrun --script fonts --list --all --pattern=leaguegothic    resolvers   | trees | analyzing 'home:texmf'    resolvers   | caching | skipping 'files' for 'home:texmf' from     '/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/54be04d87dd160089f572b19cb5c97e9' (version mismatch)    leaguegothic   leaguegothiccondenseditalic    /home/pavneet/.fonts/opentype/TheLeagueOfMoveableType/theleagueof-league-gothic-64c3ede/LeagueGothic-CondensedItalic.otf    leaguegothiccondenseditalic    leaguegothiccondenseditalic    /home/pavneet/.fonts/opentype/TheLeagueOfMoveableType/theleagueof-league-gothic-64c3ede/LeagueGothic-CondensedItalic.otf    leaguegothiccondensedregular   leaguegothiccondensedregular   /home/pavneet/.fonts/opentype/TheLeagueOfMoveableType/theleagueof-league-gothic-64c3ede/LeagueGothic-CondensedRegular.otf    leaguegothicitalic leaguegothicitalic /home/pavneet/.fonts/opentype/TheLeagueOfMoveableType/theleagueof-league-gothic-64c3ede/LeagueGothic-Italic.otf    leaguegothicregular    leaguegothicregular    /home/pavneet/.fonts/opentype/TheLeagueOfMoveableType/theleagueof-league-gothic-64c3ede/LeagueGothic-Regular.otfThere mappings are only relevant when you create your own typescripts where you access fontswith the name method, e.g. \definefontsynonym [Serif] [name:leaguegothic] but simplefonts doesn’tuse of them.[1] http://fontawesome.ioWolfgang

symb-fontawesome.mkiv
Description: Binary data
___

Re: [NTG-context] tagging heads and empty output

2015-03-28 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sat, 28 Mar 2015 07:34:32 -0600, Idris Samawi Hamid ادريس سماوي حامد  
 wrote:



Dear gang,
Two issues:

1. What is the proper way to tag heads in itemize? I do

==
\startitemize[n]
\starthead {Head 1}

Test 1
\stophead
\starthead {Head 2}

Test 2
\stophead
\stopitemize
==

but {Head 1} and {Head 2} are not tagged in the output *div.html. Is  
there

a special tagging command for the heads?

2. In a browser, everything within a 
symbol-n"> etc is ignored (tried different browers); nothing shows up at
all, so nothing to tweak in css.

==
  
   
1.
Head 1 
Test 1
   
   
2.
Head 2 
Test 2
   
  
==

Is there something wrong with context's xhtml output? test files attached


Ok, I figured it out. Attached are working files for the record, as well  
as sources below.


Also, it seems there is no tagging for the first argument to  
\start-stophead. A simple


\definestartstop[heading][style=]

does the trick, and may be worth adding to the distribution.

Best wishes
Idris

=
\setupexport[cssfile=itemize.css]
\setupbackend[export=yes]

\setupitemize[each][headstyle=bold]
\definestartstop[heading][style=]

\starttext
Text

\startitemize[n]
\starthead {\startheading Head 1 \stopheading}

Test 1
\stophead
\starthead {\startheading Head 2 \stopheading}

Test 2
\stophead
\stopitemize

\startitemize[n]
\startitem[] Text \stopitem
\startitem[] Text \stopitem
\stopitemize

\startitemize
\starthead {\startheading Head 1 \stopheading}

Test 3
\stophead
\starthead {\startheading Head 2 \stopheading}

Test 4
\stophead
\stopitemize
\stoptext
=
.itemgroup.itemize.level-1.symbol-n {
display   : block ;
margin-bottom : 0.5em ;
margin-top: 0.5em ;
}

.itemgroup.itemize.level-1.symbol-n > .item{
display   : block ;
}

.itemgroup.itemize.level-1.symbol-n > .item > .itemtag {
display   : inline ;
font-weight : normal ;
margin-right: 1em ;
}

.itemgroup.itemize.level-1.symbol-1 > .item{
display   : block ;
}

.itemgroup.itemize.level-1.symbol-1 > .item > .itemtag {
display   : inline ;
font-weight : normal ;
margin-right: 1em ;
}

.itemgroup.itemize.level-1.symbol-1 > .item > .itemcontent {
display   : inline ;
}

.construct.heading {
display   : inline ;
font-weight : bold ;
}

.itemgroup.itemize.level-1.symbol-n > .item > .itemcontent {
display   : inline ;
}
=

--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523

test-itemize-export.tex
Description: TeX document


test-itemize-export.pdf
Description: Adobe PDF document


test-itemize-export-div.xhtml
Description: application/xhtml
/*

	author: Idris Samawi Hamid (derived from Hans Hagen's example-export.css)
	copyright : 
	license   : 
	comment   : 

*/

/* ignore  : mixed   */
/* metadata: display */



body {
	font-family: "TeXGyreSchola", "DejaVu Serif", "Lucida Bright", serif ;
}


.itemgroup.itemize.level-1.symbol-n {
	display   : block ;
	margin-bottom : 0.5em ;
	margin-top: 0.5em ;
}

.itemgroup.itemize.level-1.symbol-n > .item{
	display   : block ;
}

.itemgroup.itemize.level-1.symbol-n > .item > .itemtag {
	display   : inline ;
	font-weight : normal ;
	margin-right: 1em ;
}

.itemgroup.itemize.level-1.symbol-1 > .item{
	display   : block ;
}

.itemgroup.itemize.level-1.symbol-1 > .item > .itemtag {
	display   : inline ;
	font-weight : normal ;
	margin-right: 1em ;
}

.itemgroup.itemize.level-1.symbol-1 > .item > .itemcontent {
	display   : inline ;
}

.construct.heading {
	display   : inline ;
	font-weight : bold ;
}

.itemgroup.itemize.level-1.symbol-n > .item > .itemcontent {
	display   : inline ;
}

.m:math {
	display: inline ;
}

.m:mo {
	display: inline ;
}
 ___
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] Adjusting vertical location of a margin figure

2015-03-24 Thread Wolfgang Schuster

> Am 24.03.2015 um 11:30 schrieb Mari Voipio :
> 
> Dear all,
> 
> in the user manuals I'm working with we'd like to put a graphic in the
> margin when the text includes a warning or other important
> information. I have found multiple ways of putting a graphic in the
> margin (see below), but none of them works perfectly. In some the
> graphic is placed to the baseline of the first row of the paragraph,
> in others it is placed lower down and in short paragraphs ends up by
> the next paragraph. What I want is a symbol in the margin aligned to
> the top of the paragraph. Is this possible?
> The graphic is always in the beginning of the paragraph, it doesn't
> appear in the middle.
> 
> This is what I have this far:
> 
> 
> \setupwhitespace[medium]
> 
> 
> \starttext
> 
> \inmargin{\externalfigure[warning]}
> \input tufte
> 
> \inmargin{\externalfigure[warning]}
> Really short paragraph.
> 
> 
> \inleft{
>\placefigure[none][]{}
>{\externalfigure[warning]}
>}

Don’t do this.

> \input tufte
> 
> 
> \placefigure[leftmargin,none]{}{\externalfigure[warning]}
> \input tufte
> 
> \placefigure
>[inleft,none]
>{}
>{\externalfigure[warning]}
> \input tufte
> 
> \placefigure
>[inleft,none]
>{}
>{\externalfigure[warning]}
> Really short paragraph.
> 
> \stoptext
> 
> Of course I have the option of making the symbols textheight, in which
> case \inmargin (aligning to baseline) would work. However, I'd rather
> keep them bigger if that is possible.


You can use the \tbox command for the alignment of the graphic.

\setuplayout[backspace=4cm,width=14cm]

\starttext

\inmargin{\tbox{\externalfigure[warning][width=\leftmarginwidth]}}
\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
___

[NTG-context] Adjusting vertical location of a margin figure

2015-03-24 Thread Mari Voipio
Dear all,

in the user manuals I'm working with we'd like to put a graphic in the
margin when the text includes a warning or other important
information. I have found multiple ways of putting a graphic in the
margin (see below), but none of them works perfectly. In some the
graphic is placed to the baseline of the first row of the paragraph,
in others it is placed lower down and in short paragraphs ends up by
the next paragraph. What I want is a symbol in the margin aligned to
the top of the paragraph. Is this possible?
The graphic is always in the beginning of the paragraph, it doesn't
appear in the middle.

This is what I have this far:


\setupwhitespace[medium]


\starttext

\inmargin{\externalfigure[warning]}
\input tufte

\inmargin{\externalfigure[warning]}
Really short paragraph.


\inleft{
\placefigure[none][]{}
{\externalfigure[warning]}
}
\input tufte


\placefigure[leftmargin,none]{}{\externalfigure[warning]}
\input tufte

\placefigure
[inleft,none]
{}
{\externalfigure[warning]}
\input tufte

\placefigure
[inleft,none]
{}
{\externalfigure[warning]}
Really short paragraph.

\stoptext

Of course I have the option of making the symbols textheight, in which
case \inmargin (aligning to baseline) would work. However, I'd rather
keep them bigger if that is possible.


Thanks,

Mari


warning.pdf
Description: Adobe PDF document
___
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] Exporting highlights

2015-03-15 Thread Idris Samawi Hamid ادريس سماوي حامد
;
}
	
highlight [detail="emphasis"]{
	font-weight : italic ;
}

highlight [detail="important"]{
	font-weight : bold ;
}

highlight [detail="regular"]{
	font-weight : regular ;
}

/* section: display */
/* sectiontitle   : mixed   */
/* sectionnumber  : mixed   */
/* sectioncontent : display */

section {
	display : block ;
}

sectioncontent {
	display   : block ;
	margin-top: 1em ;
	margin-bottom : 1em ;
}

section[detail="chapter"], section[detail="title"] {
	margin-top: 3em ;
	margin-bottom : 2em ;
}

section[detail="section"], section[detail="subject"] {
	margin-top: 2.5em ;
	margin-bottom : 2.5em ;
}

section[detail="subsection"], section[detail="subsubject"] {
	margin-top: 2em ;
	margin-bottom : 2em ;
}

section[detail="subsubsection"], section[detail="subsubsubject"] {
	margin-top: 1em ;
	margin-bottom : 0em ;
}

section[detail="summary"], section[detail="subsummary"] {
	margin-top: 1em ;
	margin-bottom : 1em ;
}

section[detail="chapter"]>sectionnumber {
	display  : inline-block ;
	margin-right : 1em ;
	font-size: 3em ;
	font-weight  : bold ;
}

section[detail="chapter"]>sectiontitle, section[detail="title"]>sectiontitle {
	font-size   : 3em ;
	font-weight : bold ;
}

section[detail="section"]>sectiontitle, section[detail="subject"]>sectiontitle {
	font-size   : 2.5em ;
	font-weight : bold ;
}

section[detail="subsection"]>sectiontitle, section[detail="subsubject"]>sectiontitle{
	font-size   : 2em ;
	font-weight : bold ;
}

section[detail="subsubsection"]>sectiontitle, section[detail="subsubsubject"]>sectiontitle{
	font-size   : 1em ;
	font-weight : bold ;
}

section[detail="section"]>sectionnumber {
	display  : inline-block ;
	margin-right : 1em ;
	font-size: 2.5em ;
	font-weight  : bold ;
}

section[detail="summary"]>sectiontitle {
	display : block ;
	margin-top  : 1em ;
	margin-bottom   : 1em ;
	font-weight : bold ;
	border-bottom-style : solid ;
	border-color: rgb(50%,50%,100%) ;
	border-width: .15em;
}

section[detail="subsection"]>sectionnumber {
	display  : inline-block ;
	margin-right : 1em ;
	font-size: 2em ;
	font-weight  : bold ;
}

section[detail="subsection"]>sectionnumber {
	display  : inline-block ;
	margin-right : 1em ;
	font-size: 1em ;
	font-weight  : bold ;
}

section[detail="subsummary"]>sectiontitle {
	display : block ;
	margin-top  : 1em ;
	margin-bottom   : 1em ;
	font-weight     : bold ;
	border-color: rgb(50%,50%,100%) ;
	border-bottom-style : dotted ;
	border-width: .15em ;
}

/* itemgroup   : display */
/* item    : display */
/* itemtag : mixed   */
/* itemcontent : mixed   */

itemgroup {
	display   : block ;
	margin-bottom : 0.5em ;
	margin-top: 0.5em ;
}

itemgroup[symbol="1"] { list-style-type : disc ; }
itemgroup[symbol="2"] { list-style-type : square ; }
itemgroup[symbol="3"] { list-style-type : square ; }
itemgroup[symbol="4"] { list-style-type : square ; }
itemgroup[symbol="5"] { list-style-type : circ ; }
itemgroup[symbol="a"] { list-style-type : lower-alpha ; }
itemgroup[symbol="A"] { list-style-type : alpha ; }
itemgroup[symbol="r"] { list-style-type : lower-roman ; }
itemgroup[symbol="R"] { list-style-type : upper-roman ; }
itemgroup[symbol="n"] { list-style-type : decimal ; }
itemgroup[symbol="g"] { list-style-type : lower-greek ; }
itemgroup[symbol="G"] { list-style-type : upper-greek ; }

item {
	display   : list-item ;
	margin-left   : 1em ;
	margin-bottom : 0.5em ;
	margin-top: 0.5em ;
}

itemtag {
	display: none ;
}

itemcontent {
}

/* description: display */
/* descriptiontag : mixed   */
/* descriptioncontent : mixed   */
/* descriptionsymbol  : inline  */

description {
	display   : block ;
	margin-bottom : 1em ;
	margin-top: 1em ;
}

descriptiontag {
float: left ;
clear: left ;
	margin-right : 1em ;
text-align   : left ;
font-weight  : bold ;
}

descriptioncontent {
}

descriptionsymbol {
}

/* verbatimblock  : display */
/* verbatimlines  : display */
/* verbatimline   : mixed   */
/* verbatim   : inline  */

verbatimblock {
	background-color : rgb(50%,50%,100%) ;
	display  : block ;
	padding  : 1em ;
	margin-bottom: 1em ;
	margin-top   : 1em ;
	font-family  : "Lucida Console", "DejaVu Sans Mono", monospace ;
}

verbatimlines+verbatimlines {
	display: block ;
	margin-top : 1em ;
}

verbatimline {
	display : bl

Re: [NTG-context] Unicode question

2015-03-12 Thread Hans Hagen

On 3/12/2015 9:41 PM, luigi scarso wrote:



On Thu, Mar 12, 2015 at 7:55 PM, Hans Hagen mailto:pra...@wxs.nl>> wrote:

it's actually a bug ... it is ok to map an invalid character in the
input to 0xFFFD, halt and continue when permitted, but the method
used in luatex thereby obscures a valid 0xFFFD in the input

  FFFD  REPLACEMENT CHARACTER
• used to replace an incoming character whose
value is unknown or unrepresentable in
Unicode


the question is not what to do when an invalid character comes in, in 
that case luatex can replace it by 0xFFFD and issue a error as now,


but when the input hasn't an 0xFFFD then luatex should just carry on as 
0xFFFD is a *valid* character


it is quite easy for a macro package to trigger an error as

  \catcode"FFFD=15

will do thatm but it's impossible for a macro package to intercept the 
weird interception by luatex's input handler



The meaning of FFFD is not "typeset a question mark on a black box" as in �
(which depends to font in anycase so in principle it's possible to see
something completely different in a new version of the font)
but to signal  something potentially wrong with a symbol that currently
in most cases is �.
Misusing the meaning  is not  bad di per se, but in this specific case
I think luatex is correct to be conservative and ask to the user what to do;
context --batchmode
typesets the document,
writes the messages on the log,
and ends with -1 , so an automatic agent is also alerted.


you cannot force a user to use \batchmode and -1 would abort a wrapper 
thereby leading to an invalid document; it means that luatex can never 
typeset a document where char 0xFFFD is being typeset and luatex should 
not be normative


not accepting 0xFFFD in the input is a bug

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] Unicode question

2015-03-12 Thread luigi scarso
On Thu, Mar 12, 2015 at 7:55 PM, Hans Hagen  wrote:

> it's actually a bug ... it is ok to map an invalid character in the input
> to 0xFFFD, halt and continue when permitted, but the method used in luatex
> thereby obscures a valid 0xFFFD in the input
>
>  FFFD  REPLACEMENT CHARACTER
• used to replace an incoming character whose
value is unknown or unrepresentable in
Unicode

The meaning of FFFD is not "typeset a question mark on a black box" as in �
(which depends to font in anycase so in principle it's possible to see
something completely different in a new version of the font)
but to signal  something potentially wrong with a symbol that currently in
most cases is �.
Misusing the meaning  is not  bad di per se, but in this specific case
I think luatex is correct to be conservative and ask to the user what to do;
context --batchmode
typesets the document,
writes the messages on the log,
and ends with -1 , so an automatic agent is also alerted.




-- 
luigi
___
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] Unicode question

2015-03-12 Thread Hans Hagen

On 3/12/2015 6:57 PM, Manfred Lotz wrote:

On Thu, 12 Mar 2015 16:41:59 +0100
Ulrike Fischer  wrote:


Am Thu, 12 Mar 2015 08:48:27 +0100 schrieb Manfred Lotz:


Hi all,
If I run this minimal example

\starttext

�

\stopluacode

\stoptext


I get

tex error   > error on line 3 in file /data/tmp/u1.tex: ! String
contains an invalid utf-8 sequence

and some more lines.


The character above is:

   Character: �
Character name: REPLACEMENT CHARACTER
 Charblock: Specials
  Category: Other symbol
   Unicode: U+fffd
  UTF8: 0xefbfbd

which is a valid utf8 character.

Questions:

1. Why is it considered to be invalid?


This is not a context question/problem but related to the binary
(you would get the same error with lualatex or plain)



Yes, I know.


The luatex code contains the lines (in unistring.w)

if (val == 0xFFFD)
 utf_error();
 return (val);

in a function str2uni. I didn't really try to understand the code
but it looks as if 0xFFFD is used as "invalid marker": If luatex
encounters something that isn't valid utf8 it maps val to 0xFFFD and
then test against 0xFFFD to rise an error.



Took me a while to find the repository but finally I got it.



2. Are there other valid utf8 characters which are considered
invalid?


The comment in the code says

/* the 5- and 6-byte UTF-8 sequences generate integers

that are outside of the valid UCS range, and therefore

unsupported
  */



Well, it is called REPLACEMENT CHARACTER, and it seems that this
character will be used to replace invalid characters.  Then it causes
  if (val == 0xFFFD)
 utf_error();

the error message
 tex_error("String contains an invalid utf-8 sequence", hlp);

to be displayed.

Ok, this answers my question.

Thanks for the pointer.


it's actually a bug ... it is ok to map an invalid character in the 
input to 0xFFFD, halt and continue when permitted, but the method used 
in luatex thereby obscures a valid 0xFFFD in the input


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] Unicode question

2015-03-12 Thread Manfred Lotz
On Thu, 12 Mar 2015 16:41:59 +0100
Ulrike Fischer  wrote:

> Am Thu, 12 Mar 2015 08:48:27 +0100 schrieb Manfred Lotz:
> 
> > Hi all,
> > If I run this minimal example
> > 
> > \starttext
> > 
> > �
> > 
> > \stopluacode
> > 
> > \stoptext
> > 
> > 
> > I get
> > 
> > tex error   > error on line 3 in file /data/tmp/u1.tex: ! String
> > contains an invalid utf-8 sequence
> > 
> > and some more lines.
> > 
> > 
> > The character above is:
> > 
> >   Character: �
> >Character name: REPLACEMENT CHARACTER
> > Charblock: Specials
> >  Category: Other symbol
> >   Unicode: U+fffd
> >  UTF8: 0xefbfbd
> > 
> > which is a valid utf8 character.
> > 
> > Questions:
> > 
> > 1. Why is it considered to be invalid?
> 
> This is not a context question/problem but related to the binary
> (you would get the same error with lualatex or plain)
> 

Yes, I know.

> The luatex code contains the lines (in unistring.w)
> 
> if (val == 0xFFFD)
> utf_error();
> return (val);
> 
> in a function str2uni. I didn't really try to understand the code
> but it looks as if 0xFFFD is used as "invalid marker": If luatex
> encounters something that isn't valid utf8 it maps val to 0xFFFD and
> then test against 0xFFFD to rise an error.
> 

Took me a while to find the repository but finally I got it.


> > 2. Are there other valid utf8 characters which are considered
> > invalid?
> 
> The comment in the code says 
> 
> /* the 5- and 6-byte UTF-8 sequences generate integers 
> 
> that are outside of the valid UCS range, and therefore
> 
> unsupported 
>  */
> 

Well, it is called REPLACEMENT CHARACTER, and it seems that this
character will be used to replace invalid characters.  Then it causes 
 if (val == 0xFFFD)
utf_error();

the error message 
tex_error("String contains an invalid utf-8 sequence", hlp);

to be displayed.

Ok, this answers my question. 

Thanks for the pointer.


-- 
Manfred








___
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] Unicode question

2015-03-12 Thread Ulrike Fischer
Am Thu, 12 Mar 2015 08:48:27 +0100 schrieb Manfred Lotz:

> Hi all,
> If I run this minimal example
> 
> \starttext
> 
> �
> 
> \stopluacode
> 
> \stoptext
> 
> 
> I get
> 
> tex error   > error on line 3 in file /data/tmp/u1.tex: ! String
> contains an invalid utf-8 sequence
> 
> and some more lines.
> 
> 
> The character above is:
> 
>   Character: �
>Character name: REPLACEMENT CHARACTER
> Charblock: Specials
>  Category: Other symbol
>   Unicode: U+fffd
>  UTF8: 0xefbfbd
> 
> which is a valid utf8 character.
> 
> Questions:
> 
> 1. Why is it considered to be invalid?

This is not a context question/problem but related to the binary
(you would get the same error with lualatex or plain)

The luatex code contains the lines (in unistring.w)

if (val == 0xFFFD)
utf_error();
return (val);

in a function str2uni. I didn't really try to understand the code
but it looks as if 0xFFFD is used as "invalid marker": If luatex
encounters something that isn't valid utf8 it maps val to 0xFFFD and
then test against 0xFFFD to rise an error.

> 2. Are there other valid utf8 characters which are considered invalid?

The comment in the code says 

/* the 5- and 6-byte UTF-8 sequences generate integers 

that are outside of the valid UCS range, and therefore

unsupported 
 */



-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

___
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] Unicode question

2015-03-12 Thread Manfred Lotz
Hi all,
If I run this minimal example

\starttext

�

\stopluacode

\stoptext


I get

tex error   > error on line 3 in file /data/tmp/u1.tex: ! String
contains an invalid utf-8 sequence

and some more lines.


The character above is:

  Character: �
   Character name: REPLACEMENT CHARACTER
Charblock: Specials
 Category: Other symbol
  Unicode: U+fffd
 UTF8: 0xefbfbd

which is a valid utf8 character.

Questions:

1. Why is it considered to be invalid?

2. Are there other valid utf8 characters which are considered invalid?


Just wanting to understand.


-- 
Manfred


___
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] \setupcaptions question

2015-03-10 Thread Wolfgang Schuster

> Am 13.02.2015 um 08:53 schrieb j. van den hoff :
> 
> On Fri, 13 Feb 2015 04:54:58 +0100, Wolfgang Schuster 
>  wrote:
> 
>> No, you’re right. I used the wrong command (\at is used to show the page 
>> where to float was placed)
> 
> understood.
> 
>> and so far there is only a workaround for this problem. What you can do
> 
> OK, does this require some sort of formal bug report or can the issue be
> now considered to be on the "to do" list?
> 
>> is to use the “suffix” key to set
>> a stopper for the caption which will only appear in the caption itself.
>> \setupexternalfigure[location=default]
>> \setupcaption[figure][suffix=:]
>> \starttext
>> Take a look at \in{picture}[fig:cow] below.
>> \startplacefigure[reference=fig:cow,title=A dutch cow]
>>  \externalfigure[cow]
>> \stopplacefigure
>> \stoptext
>> This solution is far from perfect because normally the suffix key is used 
>> for the internal counter
>> of split floats, e.g. when a numbered table is split over several tables and 
>> you get numbers label
>> „Table 3.a” etc.
> 
> I see. I think workaround will suffice for the present document, thank you. I 
> will
> do that (and hope for a timely fix so that I can revert to numberstopper 
> soon…)


The new beta let you change the stopper symbol which is shown in the reference,
to disable the stopper you have to use “numberstopper={\symbol[none]}”.

\setupexternalfigure[location=default]

\setupcaption[figure][numberstopper=:]
\setupreferencestructureprefix[figure][default][numberstopper={\symbol[none]}]

\starttext

Take a look at \in{picture}[fig:cow] below.

\startplacefigure[reference=fig:cow,title=A dutch cow]
  \externalfigure[cow]
\stopplacefigure

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

[NTG-context] jpeg problem: Dimension too large

2015-03-10 Thread Harald Koenig
ex/texmf-context/tex/context/base/cont-yes.mkiv

system  > structure > start used structure

used structure  > text: j1

system  > structure > stop used structure


system  > files > start used files

used file   >1: filename=cont-yes.mkiv filetype=tex 
foundname=/home/harald/tex/Indien-2015/ct/tex/texmf-context/tex/context/base/cont-yes.mkiv
 usedmethod=database
used file   >2: filename=publ-imp-apa.lua filetype=lua 
foundname=/home/harald/tex/Indien-2015/ct/tex/texmf-context/tex/context/base/publ-imp-apa.lua
 usedmethod=database
used file   >3: filename=cont-new.mkiv filetype=tex 
foundname=/home/harald/tex/Indien-2015/ct/tex/texmf-context/tex/context/base/cont-new.mkiv
 usedmethod=database
used file   >4: filename=lang-us.lua filetype=lua 
foundname=/home/harald/tex/Indien-2015/ct/tex/texmf-context/tex/context/patterns/lang-us.lua
 usedmethod=database
used file   >5: filename=/home/harald/tex/Indien-2015/j1.tex 
foundname=/home/harald/tex/Indien-2015/j1.tex usedmethod=direct
used file   >6: filename=lm.lfg filetype=tex 
foundname=/home/harald/tex/Indien-2015/ct/tex/texmf-context/tex/context/fonts/lm.lfg
 usedmethod=database
used file   >7: filename=lmroman12-regular filetype=otf format=otf 
foundname=/home/harald/tex/Indien-2015/ct/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
 usedmethod=database
used file   >8: filename=latinmodern-math.otf filetype=opentypefonts 
foundname=/home/harald/tex/Indien-2015/ct/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf
 usedmethod=database
used file   >9: filename=/home/harald/tex/Indien-2015/IMG_9712c1_ok.jpg 
format=tex foundname=/home/harald/tex/Indien-2015/IMG_9712c1_ok.jpg 
usedmethod=direct
used file   >   10: 
filename=/home/harald/tex/Indien-2015/IMG_9712c1_bad.jpg format=tex 
foundname=/home/harald/tex/Indien-2015/IMG_9712c1_bad.jpg usedmethod=direct
used file   >   11: filename=lpdf-pdx.xml filetype=tex 
foundname=/home/harald/tex/Indien-2015/ct/tex/texmf-context/tex/context/base/lpdf-pdx.xml
 usedmethod=database

system  > files > stop used files


system  > options > start commandline options

used option > currentrun="1"
used option > fulljobname="./j1.tex"
used option > input="./j1.tex"
used option > kindofrun="1"
used option > maxnofruns="8"
used option > no-parse-first-line="true"

system  > options > stop commandline options

system  > options > start commandline files

used file   >1: ./j1.tex

system  > options > stop commandline files


mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: 
/home/harald/tex/Indien-2015/ct/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.014 seconds, 0 scans with 
scantime 0.000 seconds, 0 shared scans, 11 found files, scanned paths: 
mkiv lua stats  > stored bytecode data: 364 modules (0.265 sec), 76 tables 
(0.007 sec), 440 chunks (0.272 sec)
mkiv lua stats  > running in nuts mode: yes
mkiv lua stats  > cleaned up reserved nodes: 44 nodes, 439 lists of 438
mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 9 attribute, 37 
glue_spec, 3 attribute_list, 2 temp
mkiv lua stats  > node list callback tasks: 6 unique task lists, 5 instances 
(re)created, 81 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.000 seconds saving, 0.001 seconds loading
mkiv lua stats  > callbacks: 273 direct, 243 indirect, 516 total
mkiv lua stats  > randomizer: resumed with value 0.91750514736283
mkiv lua stats  > result saved in file: j1.pdf, compresslevel 3, 
objectcompresslevel 3
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, 
lmroman12-regular.otf
mkiv lua stats  > fonts load time: 0.260 seconds 
mkiv lua stats  > graphics processing time: 11.089 seconds including tex, 2 
processed images, 2 unique asked, 2 bad names
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree: 
texmf-linux-64
mkiv lua stats  > luatex banner: this is luatex, version beta-0.79.3 (tex live 
2015/dev) (rev 5140)
mkiv lua stats  > control sequences: 40447 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua, used memory: 58 MB (ctx: 58 MB), 
hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 12.827 seconds, 2 processed pages, 2 shipped pages, 
0.156 pages/second

___
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] Change the dots of the macro \periods[n]

2015-03-06 Thread Hans Hagen

On 3/6/2015 8:18 PM, Wolfgang Schuster wrote:



Am 06.03.2015 um 20:02 schrieb Hans Hagen :

On 3/6/2015 6:42 PM, Fabrice Couvreur wrote:


Hi,
Is it possible to change the shape of the dots of macro \periods[n] to
be like the dots of macro \definefiller[dots][left=\dontleavehmode,
right=\hskip\ZeroPoint\par] ?


% in cont-new.mkiv :

\unprotect

\def\periodsymbol  {.}

\unexpanded\def\enco_periods[#1]%
  {\dontleavehmode
   \hbox\bgroup
   \enco_periods_indeed[#1,\periodsymbol,]}

\unexpanded\def\enco_periods_indeed[#1,#2,#3]%
  {\setbox\scratchbox\hbox to \periodswidth{\hss#2\hss}%
   \dorecurse{\iffirstargument#1\else\periodsdefault\fi}{\copy\scratchbox}%
   \egroup}

\protect

test:

\starttext
\startlines
x\periods x
x\periods[10]x
x\periods[10,{,}]x
x\periods[10,{!}]x
\stoplines
\stoptext


Why the weird syntax, something like \periods[n=10,symbol=!] would fit better.


ok, i'll make a nice one then

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] Change the dots of the macro \periods[n]

2015-03-06 Thread Wolfgang Schuster

> Am 06.03.2015 um 20:02 schrieb Hans Hagen :
> 
> On 3/6/2015 6:42 PM, Fabrice Couvreur wrote:
>> 
>> Hi,
>> Is it possible to change the shape of the dots of macro \periods[n] to
>> be like the dots of macro \definefiller[dots][left=\dontleavehmode,
>> right=\hskip\ZeroPoint\par] ?
> 
> % in cont-new.mkiv :
> 
> \unprotect
> 
> \def\periodsymbol  {.}
> 
> \unexpanded\def\enco_periods[#1]%
>  {\dontleavehmode
>   \hbox\bgroup
>   \enco_periods_indeed[#1,\periodsymbol,]}
> 
> \unexpanded\def\enco_periods_indeed[#1,#2,#3]%
>  {\setbox\scratchbox\hbox to \periodswidth{\hss#2\hss}%
>   \dorecurse{\iffirstargument#1\else\periodsdefault\fi}{\copy\scratchbox}%
>   \egroup}
> 
> \protect
> 
> test:
> 
> \starttext
>\startlines
>x\periods x
>x\periods[10]x
>x\periods[10,{,}]x
>x\periods[10,{!}]x
>\stoplines
> \stoptext

Why the weird syntax, something like \periods[n=10,symbol=!] would fit better.

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] siunitx feature in unit module

2015-03-03 Thread Hans Hagen

On 3/3/2015 6:47 PM, Andrea De Michele wrote:

Romain Diss  writes:


Hi,


with siunitx LaTeX package its possible to obtain physics units like m/s
printed in different way changing one option:
e.g.
\si{\metre\per\second} produce ms^{-1}

\unit{10 meter inverse second}


Thank you.



\si[per-mode=symbol]{\metre\per\second} produce m/s

\unit{10 meter per second}


\si[per-mode=fraction]{\metre\per\second} produce \frac{m}{s}

I think it is not possible with \unit{}


Do you know if there is the project to implement this feature?


currently not on the agenda

-
  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] siunitx feature in unit module

2015-03-03 Thread Andrea De Michele
Romain Diss  writes:

> Hi,
>
>> with siunitx LaTeX package its possible to obtain physics units like m/s
>> printed in different way changing one option:
>> e.g.
>> \si{\metre\per\second} produce ms^{-1}
> \unit{10 meter inverse second}

Thank you.
>
>> \si[per-mode=symbol]{\metre\per\second} produce m/s
> \unit{10 meter per second}
>
>> \si[per-mode=fraction]{\metre\per\second} produce \frac{m}{s}
> I think it is not possible with \unit{}
>
Do you know if there is the project to implement this feature?

> All the best.

-- 
Andrea De Michele

___
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] siunitx feature in unit module

2015-03-01 Thread Romain Diss
Hi,

> with siunitx LaTeX package its possible to obtain physics units like m/s
> printed in different way changing one option:
> e.g.
> \si{\metre\per\second} produce ms^{-1}
\unit{10 meter inverse second}

> \si[per-mode=symbol]{\metre\per\second} produce m/s
\unit{10 meter per second}

> \si[per-mode=fraction]{\metre\per\second} produce \frac{m}{s}
I think it is not possible with \unit{}

All the best.


-- 
Romain Diss
___
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] siunitx feature in unit module

2015-02-28 Thread Andrea De Michele
Hi,

with siunitx LaTeX package its possible to obtain physics units like m/s
printed in different way changing one option:
e.g.
\si{\metre\per\second} produce ms^{-1}
\si[per-mode=symbol]{\metre\per\second} produce m/s
\si[per-mode=fraction]{\metre\per\second} produce \frac{m}{s}

have the unit module the same feature? If yes how can obtain the effect
(I didn't find nothing on the manual)?

Thank you for help
-- 
Andrea De Michele

___
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] Epub format Was: Re: Context to epub: itemize

2015-02-17 Thread Hans Hagen

On 2/17/2015 8:24 AM, Keith J. Schultz wrote:

Hi Axel, All,

You have mentioned that most current ebook readers can not display MathML.

Well, the problem lies in the epub guidelines for the readers.

The problem is even worse. many readers do not even implement the full HTML5
standard. though that is the standard used in the latest epub stadnard.
The fact is to be considered epub readers the do not have to, it is a
problem
of the epub reader definition.

The problem is what should ConTeXt output?
Should it output code that implements according to the full epub standard
OR JUST
what is handled by most epub readers!

IMHO : ConTeXt should not output XHMTL for epub, but HMTL5.
Yes, yes, I know XHMTL is part of HMTL5.


And html 5 is just html with some extras (and assuming javascript i 
guess) ... marketing.



Another question for me is if ConTeXt should also output code for
the iBooks epub format, (Basicaly epub, but some extras).


Isn't a book supposed to be independent and kind of portable + long term 
visible? So no way that a context epub will be specific for a device. (I 
probably can't even get it on / test it on my outdated ipad 1 anyway.)



There are thing you can do in/with ConTeXt that would work with iBooks
that do not in „ordinary“ epub books.

Then, there is the Kindle format one might want to consider!


Another lock-in device.


Another, question which needs investigation is if the ConTeXt output for
epub,
also, implementing the fallbacks for missing features which is required?


Context outputs three varants: regular xml, xhtml, and stupified xhtml 
with div/class tagging. The last one is supposed to work on all devices 
as it doesn't demands anything beyond css.



Just some added thoughts.

Basically, you can only expect ConTeXts epub output to be a starting
point that
then has to be tweak.


Indeed, as it's all xml one can process it into something 'better'. 
There is no way we can adapt to every change in specs, so the best we 
can do is something generic.


Hans


regards
Keith.


Am 17.02.2015 um 07:11 schrieb Axel Kielhorn mailto:t...@axelkielhorn.de>>:

[...]
Yes I know.
Let me rephrase the question:

Should the symbols used in epub be identical to those used in the pdf
or should the css determine the look of the symbols?
Especially when one considers that most current ebook readers can't
display MathML.

Even if I substitute the Symbols:

\definesymbol[uni1][•]
\definesymbol[uni2][–]
\definesymbol[uni3][*]
\definesymbol[uni4][·]

\setupitemgroup [itemize] [1] [symbol=uni1]
\setupitemgroup [itemize] [2] [symbol=uni2]
\setupitemgroup [itemize] [3] [symbol=uni3]
\setupitemgroup [itemize] [4] [symbol=uni4]

I get a result that neither ADE nor Calibre interprets as a list.
(Wrapping it in   doesn't help.)





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




--

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

[NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-16 Thread Keith J. Schultz
Hi Axel, All,

You have mentioned that most current ebook readers can not display MathML.

Well, the problem lies in the epub guidelines for the readers.

The problem is even worse. many readers do not even implement the full HTML5
standard. though that is the standard used in the latest epub stadnard.
The fact is to be considered epub readers the do not have to, it is a problem
of the epub reader definition.

The problem is what should ConTeXt output?
Should it output code that implements according to the full epub standard 
OR JUST 
what is handled by most epub readers!

IMHO : ConTeXt should not output XHMTL for epub, but HMTL5.
Yes, yes, I know XHMTL is part of HMTL5.

Another question for me is if ConTeXt should also output code for
the iBooks epub format, (Basicaly epub, but some extras).
There are thing you can do in/with ConTeXt that would work with iBooks
that do not in „ordinary“ epub books.

Then, there is the Kindle format one might want to consider!

Another, question which needs investigation is if the ConTeXt output for epub,
also, implementing the fallbacks for missing features which is required?

Just some added thoughts.

Basically, you can only expect ConTeXts epub output to be a starting point that
then has to be tweak.

regards
Keith.

> Am 17.02.2015 um 07:11 schrieb Axel Kielhorn :
> 
> [...]
> Yes I know.
> Let me rephrase the question:
> 
> Should the symbols used in epub be identical to those used in the pdf or 
> should the css determine the look of the symbols?
> Especially when one considers that most current ebook readers can't display 
> MathML.
> 
> Even if I substitute the Symbols:
> 
> \definesymbol[uni1][•]
> \definesymbol[uni2][–]
> \definesymbol[uni3][*]
> \definesymbol[uni4][·]
> 
> \setupitemgroup [itemize] [1] [symbol=uni1]
> \setupitemgroup [itemize] [2] [symbol=uni2]
> \setupitemgroup [itemize] [3] [symbol=uni3]
> \setupitemgroup [itemize] [4] [symbol=uni4]
> 
> I get a result that neither ADE nor Calibre interprets as a list.
> (Wrapping it in   doesn't help.) 
> 

___
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] Context to epub: itemize

2015-02-16 Thread Axel Kielhorn

Am 16.02.2015 um 19:55 schrieb Hans Hagen :

> On 2/16/2015 5:17 PM, Axel Kielhorn wrote:
>> Hi,
>> 
>> I'm trying to generate epub from ConTeXt and I couldn't get the itemize 
>> environment to work.
>> 
>> I follow http://wiki.contextgarden.net/ePub and get the structure described 
>> but when I look into the xhtml, there is no itemize environment. (At least 
>> no with Safari, Firefox or Calibre.) When use vi I see something that looks 
>> like my items in a very complex form.
>> 
>> I was expecting something like
>> 
>> 
>>  
>>  
>> 
>> 
>> but i see
>> 
>> 
>>   
>> > xmlns:m="http://www.w3.org/1998/Math/MathML";>•
>> Listenpunkt 1
>>   
>>   
>> > xmlns:m="http://www.w3.org/1998/Math/MathML";>•
>> Listenpunkt 2
>>   
>>   
>>   > xmlns:m="http://www.w3.org/1998/Math/MathML";>−
>> Listenpunkt 2.1
>> 
>> > xmlns:m="http://www.w3.org/1998/Math/MathML";>−
>> Listenpunkt 2.2
>> 
>> 
>> Shouldn't the itemtag definition come from the default.css instead of using 
>> MathML?
>> 
>> itemgroup[symbol="1"], div.itemgroup.symbol-1 { list-style-type : disc ; }
>> 
>> I’m using: mtx-context | current version: 2015.02.03 23:55
>> 
>> and
>> 
>> context --script epub --make epub_mwe
>> 
>> to create the epub.
> 
> the bullets come from math fonts (currently, awaiting additional symbols in 
> the text fonts)


Yes I know.
Let me rephrase the question:

Should the symbols used in epub be identical to those used in the pdf or should 
the css determine the look of the symbols?
Especially when one considers that most current ebook readers can't display 
MathML.

Even if I substitute the Symbols:

\definesymbol[uni1][•]
\definesymbol[uni2][–]
\definesymbol[uni3][*]
\definesymbol[uni4][·]

\setupitemgroup [itemize] [1] [symbol=uni1]
\setupitemgroup [itemize] [2] [symbol=uni2]
\setupitemgroup [itemize] [3] [symbol=uni3]
\setupitemgroup [itemize] [4] [symbol=uni4]

I get a result that neither ADE nor Calibre interprets as a list.
(Wrapping it in   doesn't help.) 

Axel

___
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] \executesystemcommand dont work?

2015-02-16 Thread Jaroslav Hajtmar

Hi Luigi.
Thanx for reply. I am sending result from output console from your 
example ie:

\starttext
\immediate\write18{echo "OO"}
\stoptext

Output is below.
To be honest, I've never done such a thing and did not examine how many 
times ConTeXt runs. I have always relied on the default settings.


Thankx for attempt to solve my problem.
Jaroslav Hajtmar


C:\$~1da\ConTeXt\ConTeXt-Tests\my_way\ScanCSV\t-scancsv_ConTeXt_module\2PabloRod
riguez5\bbb>context test

mtx-context | warning: no (local) file './test', proceeding
mtx-context | run 1: luatex 
--fmt="C:/context/tex/texmf-cache/luatex-cache/c
ontext/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" 
--jobname="test"

 --lua="C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb
1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line 
--c:currentrun=1 --c:
fulljobname="./test" --c:input="./test" --c:kindofrun=1 --c:maxnofruns=8 
"cont-y

es.mkiv"
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 5064)
 \write18 enabled.
open source > 1 > 1 > 
C:/context/tex/texmf-context/tex/context/base/cont-yes

.mkiv
>
ConTeXt  ver: 2015.02.03 23:55 MKIV beta  fmt: 2015.2.16  int: 
english/english >


>
system  > 'cont-new.mkiv' loaded
open source > 2 > 2 > 
C:/context/tex/texmf-context/tex/context/base/cont-new

.mkiv
close source> 2 > 2 > 
C:/context/tex/texmf-context/tex/context/base/cont-new

.mkiv
system  > files > jobname 'test', input './test', result 'test'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > 2 > 3 > 
C:/$~1da/ConTeXt/ConTeXt-Tests/my_way/ScanCSV/t-scancs

v_ConTeXt_module/2PabloRodriguez5/bbb/test.tex
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
close source> 2 > 3 > 
C:/$~1da/ConTeXt/ConTeXt-Tests/my_way/ScanCSV/t-scancs

v_ConTeXt_module/2PabloRodriguez5/bbb/test.tex
close source> 1 > 3 > 
C:/context/tex/texmf-context/tex/context/base/cont-yes

.mkiv

mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: 
C:/context/tex/texmf-cache/luatex-cache/conte

xt/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.011 seconds, 0 scans 
with scanti

me 0.000 seconds, 0 shared scans, 8 found files, scanned paths: 
mkiv lua stats  > stored bytecode data: 364 modules (0.224 sec), 76 
tables (0.00

6 sec), 440 chunks (0.230 sec)
mkiv lua stats  > running in nuts mode: yes
mkiv lua stats  > cleaned up reserved nodes: 41 nodes, 439 lists of 438
mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 6 attribute, 20 
glue_spe

c, 2 attribute_list, 2 temp
mkiv lua stats  > node list callback tasks: 6 unique task lists, 2 
instances (re

)created, 3 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf 
output)


mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.003 seconds saving, 0.001 seconds loading
mkiv lua stats  > callbacks: 55 direct, 239 indirect, 294 total
mkiv lua stats  > randomizer: resumed with value 0.53962828455458
mkiv lua stats  > result saved in file: test.pdf, compresslevel 3, 
objectcompres

slevel 3
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, 
lmroman12-regular

.otf
mkiv lua stats  > fonts load time: 0.241 seconds
mkiv lua stats  > used platform: win64, type: windows, binary subtree: 
texmf-win

64
mkiv lua stats  > luatex banner: this is luatex, version beta-0.79.1 
(tex live 2

014/w32tex) (rev 5064)
mkiv lua stats  > control sequences: 40426 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua, used memory: 56 MB (ctx: 
56 MB),

hash type: lua, hash chars: min(64,40), symbol mask: utf (¤ä╬Á¤ç)
mkiv lua stats  > runtime: 0.643 seconds

system  | total runtime: 1.002 seconds
C:\$~1da\ConTeXt\ConTeXt-Tests\my_way\ScanCSV\t-scancsv_ConTeXt_module\2PabloRod
riguez5\bbb>


and here is log file:

open source > 1 > 1 > 
C:/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

>
ConTeXt  ver: 2015.02.03 23:55 MKIV beta  fmt: 2015.2.16  int: 
english/english >

>
system  > 'cont-new.mkiv' loaded
open source > 2 > 2 > 
C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv
close source> 2 > 2 > 
C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv

system  > files > jobname 'test', input './test', result 'test&

Re: [NTG-context] \executesystemcommand dont work?

2015-02-16 Thread Jaroslav Hajtmar

Hi Aditya.
Thanx for reply. I am sending result from output console from your 
example ie:

\starttext
\writestatus{test}{before calling shell command}
\immediate\write18{echo HELP}
\writestatus{test}{after calling shell command}
\stoptext

Output is below.
Regarding the call ConTeXt, I often calls it directly from the editor 
(PsPad) but when frequently repeated compilations, then I type commands 
directly from terminal (command line of windows)


Thankx for attempt to solve my problem.
Jaroslav Hajtmar


C:\$~1da\ConTeXt\ConTeXt-Tests\my_way\ScanCSV\t-scancsv_ConTeXt_module\2PabloRod
riguez5\bbb>context test

mtx-context | warning: no (local) file './test', proceeding
mtx-context | run 1: luatex 
--fmt="C:/context/tex/texmf-cache/luatex-cache/c
ontext/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" 
--jobname="test"

 --lua="C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb
1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line 
--c:currentrun=1 --c:
fulljobname="./test" --c:input="./test" --c:kindofrun=1 --c:maxnofruns=8 
"cont-y

es.mkiv"
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 5064)
 \write18 enabled.
open source > 1 > 1 > 
C:/context/tex/texmf-context/tex/context/base/cont-yes

.mkiv
>
ConTeXt  ver: 2015.02.03 23:55 MKIV beta  fmt: 2015.2.16  int: 
english/english >


>
system  > 'cont-new.mkiv' loaded
open source > 2 > 2 > 
C:/context/tex/texmf-context/tex/context/base/cont-new

.mkiv
close source> 2 > 2 > 
C:/context/tex/texmf-context/tex/context/base/cont-new

.mkiv
system  > files > jobname 'test', input './test', result 'test'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > 2 > 3 > 
C:/$~1da/ConTeXt/ConTeXt-Tests/my_way/ScanCSV/t-scancs

v_ConTeXt_module/2PabloRodriguez5/bbb/test.tex
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
test> before calling shell command
test> after calling shell command
close source> 2 > 3 > 
C:/$~1da/ConTeXt/ConTeXt-Tests/my_way/ScanCSV/t-scancs

v_ConTeXt_module/2PabloRodriguez5/bbb/test.tex
close source> 1 > 3 > 
C:/context/tex/texmf-context/tex/context/base/cont-yes

.mkiv

mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: 
C:/context/tex/texmf-cache/luatex-cache/conte

xt/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.012 seconds, 0 scans 
with scanti

me 0.000 seconds, 0 shared scans, 8 found files, scanned paths: 
mkiv lua stats  > stored bytecode data: 364 modules (0.231 sec), 76 
tables (0.00

6 sec), 440 chunks (0.237 sec)
mkiv lua stats  > running in nuts mode: yes
mkiv lua stats  > cleaned up reserved nodes: 41 nodes, 439 lists of 438
mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 6 attribute, 20 
glue_spe

c, 2 attribute_list, 2 temp
mkiv lua stats  > node list callback tasks: 6 unique task lists, 2 
instances (re

)created, 3 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf 
output)


mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.004 seconds saving, 0.001 seconds loading
mkiv lua stats  > callbacks: 55 direct, 241 indirect, 296 total
mkiv lua stats  > randomizer: resumed with value 0.53962828455458
mkiv lua stats  > result saved in file: test.pdf, compresslevel 3, 
objectcompres

slevel 3
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, 
lmroman12-regular

.otf
mkiv lua stats  > fonts load time: 0.267 seconds
mkiv lua stats  > used platform: win64, type: windows, binary subtree: 
texmf-win

64
mkiv lua stats  > luatex banner: this is luatex, version beta-0.79.1 
(tex live 2

014/w32tex) (rev 5064)
mkiv lua stats  > control sequences: 40426 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua, used memory: 59 MB (ctx: 
59 MB),

hash type: lua, hash chars: min(64,40), symbol mask: utf (¤ä╬Á¤ç)
mkiv lua stats  > runtime: 0.721 seconds

system  | total runtime: 1.095 seconds
C:\$~1da\ConTeXt\ConTeXt-Tests\my_way\ScanCSV\t-scancsv_ConTeXt_module\2PabloRod
riguez5\bbb>



And here is log file:


open source > 1 > 1 > 
C:/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

>
ConTeXt  ver: 2015.02.03 23:55 MKIV beta  fmt: 2015.2.16  int: 
english/english >

>
system  > 'cont-new.mkiv' loaded
open source > 2 > 2 > 
C:/context/tex/texmf-context/tex/context/base/cont-n

Re: [NTG-context] \executesystemcommand dont work?

2015-02-16 Thread Jaroslav Hajtmar

Thanx Aditya for reply.

I compile this ConTeXt file:

\starttext
\immediate\write18{context --version}
\stoptext

with last standalone version of ConTeXt (minimals). Below is the console 
output and log file.
I do not know whether this can decipher be from a reading. It seems that 
write18 is enabled. I do not know what could have happened and why it 
does not work. Can be a problem in collision TeXlive vs Standalone 
version (paths problem)? I do not know how to fix it. I tried again to 
install the standalone version, but it did not help. I hope that I have 
somehow smashed up Windows because reinstalling windows because of 
dysfunctional ConTeXt me quite a scare...


Thanx Jaroslav Hajtmar


C:\$~1da\ConTeXt\ConTeXt-Tests\my_way\ScanCSV\t-scancsv_ConTeXt_module\2PabloRod
riguez5\bbb>context test

mtx-context | warning: no (local) file './test', proceeding
mtx-context | run 1: luatex 
--fmt="C:/context/tex/texmf-cache/luatex-cache/c
ontext/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" 
--jobname="test"

 --lua="C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb
1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line 
--c:currentrun=1 --c:
fulljobname="./test" --c:input="./test" --c:kindofrun=1 --c:maxnofruns=8 
"cont-y

es.mkiv"
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 5064)
 \write18 enabled.
open source > 1 > 1 > 
C:/context/tex/texmf-context/tex/context/base/cont-yes

.mkiv
>
ConTeXt  ver: 2015.02.03 23:55 MKIV beta  fmt: 2015.2.16  int: 
english/english >


>
system  > 'cont-new.mkiv' loaded
open source > 2 > 2 > 
C:/context/tex/texmf-context/tex/context/base/cont-new

.mkiv
close source> 2 > 2 > 
C:/context/tex/texmf-context/tex/context/base/cont-new

.mkiv
system  > files > jobname 'test', input './test', result 'test'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > 2 > 3 > 
C:/$~1da/ConTeXt/ConTeXt-Tests/my_way/ScanCSV/t-scancs

v_ConTeXt_module/2PabloRodriguez5/bbb/test.tex
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
close source> 2 > 3 > 
C:/$~1da/ConTeXt/ConTeXt-Tests/my_way/ScanCSV/t-scancs

v_ConTeXt_module/2PabloRodriguez5/bbb/test.tex
close source> 1 > 3 > 
C:/context/tex/texmf-context/tex/context/base/cont-yes

.mkiv

mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: 
C:/context/tex/texmf-cache/luatex-cache/conte

xt/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.012 seconds, 0 scans 
with scanti

me 0.000 seconds, 0 shared scans, 8 found files, scanned paths: 
mkiv lua stats  > stored bytecode data: 364 modules (0.209 sec), 76 
tables (0.00

5 sec), 440 chunks (0.214 sec)
mkiv lua stats  > running in nuts mode: yes
mkiv lua stats  > cleaned up reserved nodes: 41 nodes, 439 lists of 438
mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 6 attribute, 20 
glue_spe

c, 2 attribute_list, 2 temp
mkiv lua stats  > node list callback tasks: 6 unique task lists, 2 
instances (re

)created, 3 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf 
output)


mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.003 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: 55 direct, 239 indirect, 294 total
mkiv lua stats  > result saved in file: test.pdf, compresslevel 3, 
objectcompres

slevel 3
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, 
lmroman12-regular

.otf
mkiv lua stats  > fonts load time: 0.239 seconds
mkiv lua stats  > used platform: win64, type: windows, binary subtree: 
texmf-win

64
mkiv lua stats  > luatex banner: this is luatex, version beta-0.79.1 
(tex live 2

014/w32tex) (rev 5064)
mkiv lua stats  > control sequences: 40425 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua, used memory: 60 MB (ctx: 
60 MB),

hash type: lua, hash chars: min(64,40), symbol mask: utf (¤ä╬Á¤ç)
mkiv lua stats  > runtime: 0.627 seconds

mtx-context | run 2: luatex 
--fmt="C:/context/tex/texmf-cache/luatex-cache/c
ontext/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" 
--jobname="test"

 --lua="C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb
1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line 
--c:currentrun=2 --c:
fulljobname="./test" --c:input="./test" --c:kindofrun=2 --c:maxnofruns=8 
"cont-y

es.mkiv"
This is LuaTeX, Version beta-0.79.1 (Te

Re: [NTG-context] Context to epub: itemize

2015-02-16 Thread Hans Hagen

On 2/16/2015 5:17 PM, Axel Kielhorn wrote:

Hi,

I'm trying to generate epub from ConTeXt and I couldn't get the itemize 
environment to work.

I follow http://wiki.contextgarden.net/ePub and get the structure described but 
when I look into the xhtml, there is no itemize environment. (At least no with 
Safari, Firefox or Calibre.) When use vi I see something that looks like my 
items in a very complex form.

I was expecting something like


  
  


but i see


   
 http://www.w3.org/1998/Math/MathML";>•
 Listenpunkt 1
   
   
 http://www.w3.org/1998/Math/MathML";>•
 Listenpunkt 2
   
   
   http://www.w3.org/1998/Math/MathML";>−
 Listenpunkt 2.1
 
 http://www.w3.org/1998/Math/MathML";>−
 Listenpunkt 2.2
 

Shouldn't the itemtag definition come from the default.css instead of using 
MathML?

itemgroup[symbol="1"], div.itemgroup.symbol-1 { list-style-type : disc ; }

I’m using: mtx-context | current version: 2015.02.03 23:55

and

context --script epub --make epub_mwe

to create the epub.


the bullets come from math fonts (currently, awaiting additional symbols 
in the text fonts)


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
___

[NTG-context] Context to epub: itemize

2015-02-16 Thread Axel Kielhorn
Hi,

I'm trying to generate epub from ConTeXt and I couldn't get the itemize 
environment to work.

I follow http://wiki.contextgarden.net/ePub and get the structure described but 
when I look into the xhtml, there is no itemize environment. (At least no with 
Safari, Firefox or Calibre.) When use vi I see something that looks like my 
items in a very complex form.

I was expecting something like


 
 


but i see


  
http://www.w3.org/1998/Math/MathML";>•
Listenpunkt 1
  
  
http://www.w3.org/1998/Math/MathML";>•
Listenpunkt 2 
  
  
  http://www.w3.org/1998/Math/MathML";>−
Listenpunkt 2.1 

http://www.w3.org/1998/Math/MathML";>−
Listenpunkt 2.2


Shouldn't the itemtag definition come from the default.css instead of using 
MathML?

itemgroup[symbol="1"], div.itemgroup.symbol-1 { list-style-type : disc ; }

I’m using: mtx-context | current version: 2015.02.03 23:55

and

context --script epub --make epub_mwe

to create the epub.

Axel



epub_mwe.tex
Description: Binary data



___
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 draw this picture?

2015-01-17 Thread Rob Heusdens
I am working on an economic book, which I convert from a paper edition
into a digital edition, which contains some figures I want to recreate
using context or other tool.

In logical terms, the picture represents some economic figures and
visualizes how some figure (e.g. "National income" and the amount) is the
sum of some other figures, in which it can be split up.

In logic terms the figure then explains that:

A can be split up into B and C. B can be split up into D and E. D is F. E
can be split into G,H,I and K.

Graphically this is depicted like a table containing 4 columns and 5 rows,
and the "split into" is drawn as two diagonal lines (one right-up and
another righ down) which shows how the element on the left column is split
up into the elements on the right column using the diagonal lines that
center in the left element, drawn to the right top and right bottom
element.

I worked this out into context as a simple table, and used instead of the
diagonal lines only vertical lines. Which is less expressive, but still
visualizes the splitting sufficiently I hope.

But I would like to rework this picture, using a brace instead of a
vertical line, similar to how in a formula one uses mathcases.

I tried to use mathcases, but it seems mathcases can't be nested??

I was thinking of other solutions, like replacing the vertical line with a
small column in which to put a vertical stretched brace symbol, at the
appriopriate lowered cell, but don't know how the vertical stretch a
glyph.

What is the best way to code this in ConText? (preferred is to use the
symbol left brace.)

Greetings,

Rob

---

context code now used:

\starttable[s0|cp(.2\textwidth)|cp(.2\textwidth)|cp(.2\textwidth)|cp(.25\textwidth)|]
\NC \NC \VL Variabel\\ kapitaal\\ 10 \VL Arbeidsloon v/d\\
productie-arbeiders\\ 10 \NC \AR
\NC \NC \VL  \NC \NC \AR
\NC \NC \VL  \NC \NC \AR
\NC \VL Nationaal\\ inkomen\\ 30 \VL \VL Winst van de\\ industriële
kapitalist\\ 10 \NC \AR
\NC \VL \VL  \VL \NC \AR
\NC \VL \VL \VL Commerciële\\ winst\\ 3 \NC \AR
\NC Totaal\\ maatschappelijk\\ product\\ 90 \VL \VL Meerwaarde\\ 20 \VL 
Rente\\ 2 \NC \AR
\NC \VL \VL  \VL Grondrente\\ 5 \NC \AR
\NC \VL \NC  \NC  \NC \AR
\NC \VL Vervanging \\ v/h verbruikte \\ constante\\ kapitaal\\ 60 \NC \NC 
\NC \AR
\stoptable

___
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] Primes again in math

2014-12-02 Thread Mikael P. Sundqvist
ns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.000 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: 153 direct, 235 indirect, 388 total
mkiv lua stats  > randomizer: resumed with value 0.94946519469352
mkiv lua stats  > result saved in file: diff.pdf, compresslevel 3, objectcompresslevel 3
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, lmroman12-regular.otf
mkiv lua stats  > fonts load time: 0.106 seconds 
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree: texmf-linux-64
mkiv lua stats  > luatex banner: this is luatex, version beta-0.79.1 (tex live 2014/dev) (rev 4972)
mkiv lua stats  > control sequences: 40334 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua, used memory: 57 MB (ctx: 57 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.350 seconds, 1 processed pages, 1 shipped pages, 2.857 pages/second



diff.pdf
Description: Adobe PDF document
___
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] nested itemize

2014-11-28 Thread Mikael P. Sundqvist
 44 nodes, 442 lists of 441
mkiv lua stats  > node memory usage: 13 hlist, 22 glue, 4 kern, 7 penalty, 16 glyph, 64 attribute, 38 glue_spec, 20 attribute_list, 2 temp, 2 local_par, 2 dir
mkiv lua stats  > node list callback tasks: 6 unique task lists, 5 instances (re)created, 81 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: 240 direct, 250 indirect, 490 total
mkiv lua stats  > randomizer: resumed with value 0.16052632087866
mkiv lua stats  > result saved in file: listor.pdf, compresslevel 3, objectcompresslevel 3
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, lmroman12-regular.otf
mkiv lua stats  > fonts load time: 0.113 seconds 
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree: texmf-linux-64
mkiv lua stats  > luatex banner: this is luatex, version beta-0.79.1 (tex live 2014/dev) (rev 4972)
mkiv lua stats  > control sequences: 40363 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua, used memory: 57 MB (ctx: 57 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.341 seconds, 1 processed pages, 1 shipped pages, 2.933 pages/second

___
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] prime accent not behaving properly

2014-11-25 Thread Hans Hagen

On 11/25/2014 1:39 PM, Mojca Miklavec wrote:

Hi,

The "prime" accent (a') doesn't work properly in ConTeXt MKIV.

I'm not sure when this became a problem, but it behaves differently in
TL 2014 as it does in the latest ConTeXt. And it behaved differently
on 9th November as is the version from 17th November. (In TL 2014 the
two example below produce accents of different sizes.)

Minimal example:

\starttext
\startformula
s_i' s'_i s_i^2 s^2_i
\stopformula
\stoptext

The first two symbols should look the same, but they don't. They
should also be treated in the same way as "^2". With ConTeXt from 17th
November the second example (s'_i) seems to behave OK (it was wrong in
the version of 9th November), but the first example is still wrong.


These primes are such a mess:

- old conventions
- inconsistent symbols between text/script/script font (also between 
old, new and different math fonts)

- using an accent instead of a symbol
- the need to collapse 2/3 primes
- it not being a superscript

I'll send you a file to test ... which of course might break other prime 
cases.



Should I switch back to MKII? ;)


YES!

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] IMHO there is a bug in itemgrops

2014-11-16 Thread Hans Hagen

On 11/13/2014 2:41 PM, Vasiliy Chirkov wrote:

Minimal example:

\starttext
\defineitemgroup[Enum][levels=3]
\setupitemgroup[Enum][each][fit][symbol=n]
\setupitemgroup[Enum][1][stopper={}]
\setupitemgroup[Enum][2][stopper={***}]
\setupitemgroup[Enum][3][stopper={**}]

\startEnum
\item item 1
\startEnum
\item item 1.1
\startEnum
\item item 1.1.1
\item item 1.1.2
\stopEnum
\item item 1.2
\stopEnum
\item item 2
\stopEnum
\stoptext

When option 'fit' is used with nested lists, calculated max item widths are 
saved in reverse order. Maxitemwidths are saved at first pass in \stopitemgrup 
in reverse order, while are read at second pass in \startitem grpoup in 
sequental order.

Am i right?


yes, i'll fix it (i didn't assume nested fixed usage)

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

[NTG-context] IMHO there is a bug in itemgrops

2014-11-14 Thread Vasiliy Chirkov
Minimal example:

\starttext
\defineitemgroup[Enum][levels=3]
\setupitemgroup[Enum][each][fit][symbol=n]
\setupitemgroup[Enum][1][stopper={}]
\setupitemgroup[Enum][2][stopper={***}]
\setupitemgroup[Enum][3][stopper={**}]

\startEnum
\item item 1
\startEnum
\item item 1.1
\startEnum
\item item 1.1.1
\item item 1.1.2
\stopEnum
\item item 1.2
\stopEnum
\item item 2
\stopEnum
\stoptext

When option 'fit' is used with nested lists, calculated max item widths are 
saved in reverse order. Maxitemwidths are saved at first pass in \stopitemgrup 
in reverse order, while are read at second pass in \startitem grpoup in 
sequental order.

Am i right?

Best regards,
Vasiliy
___
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] position of qed symbol in proofs

2014-11-11 Thread Hans Hagen

On 11/11/2014 2:55 PM, Mikael P. Sundqvist wrote:

On Mon, Nov 10, 2014 at 11:22 AM, Otared Kavian  wrote:



On 10 Nov 2014, at 10:58, Hans Hagen  wrote:
[…]
i'm not surprised: eqno only works in a formula and closecommand is not in the 
formula ... it would not align properly anyway


Oh… I see.
So there is not anymore the possibility to finish an enumeration (such as « 
proof » ine Mikael’s example) with aformula and automatically get the square of 
qed on the right? This was possible for quite a long time, although personnally 
I have used it seldom.

Thanks and best regards: OK
___
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
___


OK, so I will put the square there by hand from now on.


you can use it but not to put *anything* you like there and expect it to 
behave ... i really wonder if \eqno ever worked there as it's an 
"embedded in formulas" command ... if it did, it was definitely a side 
effect


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] position of qed symbol in proofs

2014-11-11 Thread Mikael P. Sundqvist
On Mon, Nov 10, 2014 at 11:22 AM, Otared Kavian  wrote:
>
>> On 10 Nov 2014, at 10:58, Hans Hagen  wrote:
>> […]
>> i'm not surprised: eqno only works in a formula and closecommand is not in 
>> the formula ... it would not align properly anyway
>
> Oh… I see.
> So there is not anymore the possibility to finish an enumeration (such as « 
> proof » ine Mikael’s example) with aformula and automatically get the square 
> of qed on the right? This was possible for quite a long time, although 
> personnally I have used it seldom.
>
> Thanks and best regards: OK
> ___
> 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
> ___

OK, so I will put the square there by hand from now on.

Best regards, Mikael
___
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] Create an item marker with a counter with Metapost

2014-11-10 Thread Aditya Mahajan

On Mon, 10 Nov 2014, Wolfgang Schuster wrote:




Am 10.11.2014 um 19:18 schrieb Fabrice Couvreur :

Hi,
With the book Metafun I created a marker with metapost. How to add a counter ?
Best regards,
Fabrice

\startuseMPgraphic{itemize:fuzzy}
numeric u;
u:=0.5cm;
save p; path p;
p := fullcircle xyscaled (u,u) randomized 2pt;
pickup pencircle scaled 1pt;
fill p withcolor green;
draw p withcolor blue;
\stopuseMPgraphic
\definesymbol[itemize:fuzzy][\useMPgraphic{itemize:fuzzy}]
\setupitemize[1][symbol=itemize:fuzzy]
\starttext
\startitemize
\item \input knuth
\item \input knuth
\stopitemize
\stoptext


You can use the visualcounter module, the documentation is included in the 
package
or you download it from the github [1] page.

[1] https://github.com/adityam/visualcounter 
<https://github.com/adityam/visualcounter>


Complete example attached. You can easily make the fill color and draw 
color to be configurable by a key-value interface.


The counter corresponding to itemgroups is called 
\v_strc_itemgroups_counter.


Aditya\usemodule[visualcounter]

\unprotect
\definevisualcounter
  [randomcircle]
  [
mp=visualcounter::randomcircle,
rulethickness=1pt,
  ]

\startuseMPgraphic{visualcounter::randomcircle}
  begingroup;

  \includeMPgraphic{visualcounter::initialization}

  if (last_counter > 0) and (current_counter > 0) :
newpicture countertext ; countertext := textext("\visualcounterparameter\c!text");
newpicture max_countertext ; max_countertext := textext("\visualcounterparameter{\c!max\c!text}");

newnumeric diameter;
diameter := 1.75 * max(bbwidth(max_countertext), bbheight(max_countertext)); 

newpath randomcircle; 
randomcircle := fullcircle xyscaled(diameter, diameter) randomized (diameter/20);

pickup pencircle scaled \visualcounterparameter\c!rulethickness ;
fill randomcircle withcolor green; % Can be made configurable
draw randomcircle withcolor blue;  % Can be made configurable

label (countertext, origin);


  fi;
  endgroup;
\stopuseMPgraphic
\protect

\definevisualcounter
  [fuzzyitem]
  [randomcircle]
  [counter=\getvalue{v_strc_itemgroups_counter}]

\definesymbol[fuzzy][{\framed[location=depth, frame=off, strut=no]{\usevisualcounter{fuzzyitem}}}]

\starttext
\startitemize[fuzzy]
\startitem \input knuth \stopitem
\startitem \input knuth \stopitem
\stopitemize
\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] Create an item marker with a counter with Metapost

2014-11-10 Thread Wolfgang Schuster

> Am 10.11.2014 um 19:18 schrieb Fabrice Couvreur :
> 
> Hi,
> With the book Metafun I created a marker with metapost. How to add a counter ?
> Best regards,
> Fabrice
> 
> \startuseMPgraphic{itemize:fuzzy}
> numeric u;
> u:=0.5cm;
> save p; path p;
> p := fullcircle xyscaled (u,u) randomized 2pt;
> pickup pencircle scaled 1pt;
> fill p withcolor green;
> draw p withcolor blue;
> \stopuseMPgraphic
> \definesymbol[itemize:fuzzy][\useMPgraphic{itemize:fuzzy}]
> \setupitemize[1][symbol=itemize:fuzzy]
> \starttext
> \startitemize
> \item \input knuth
> \item \input knuth
> \stopitemize
> \stoptext

You can use the visualcounter module, the documentation is included in the 
package
or you download it from the github [1] page.

[1] https://github.com/adityam/visualcounter 
<https://github.com/adityam/visualcounter>

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] Create an item marker with a counter with Metapost

2014-11-10 Thread Alan BRASLAU
On Mon, 10 Nov 2014 19:18:20 +0100
Fabrice Couvreur  wrote:

> Hi,
> With the book Metafun I created a marker with metapost. How to add a counter ?
> Best regards,
> Fabrice

The puzzler is for you to understand why I only increment by 1/2 ;-)
Perhaps someone else can suggest a better solution?

Alan

\startMPdefinitions
numeric counter; counter := 1;
\stopMPdefinitions

\startuseMPgraphic{itemize:fuzzy}
numeric u; u:=0.5cm;
save p; path p; p := fullcircle xyscaled (u,u) randomized 2pt;
pickup pencircle scaled 1pt;
fill p withcolor green;
draw p withcolor blue;
draw textext(decimal counter) withcolor red;
counter := counter + .5;
\stopuseMPgraphic

\definesymbol[itemize:fuzzy][\useMPgraphic{itemize:fuzzy}]
\setupitemize[1][symbol=itemize:fuzzy]

\starttext
\startitemize
\startitem \input knuth \stopitem
\startitem \input knuth \stopitem
\stopitemize
\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] Create an item marker with a counter with Metapost

2014-11-10 Thread Fabrice Couvreur
Hi,
With the book Metafun I created a marker with metapost. How to add a counter
?
Best regards,
Fabrice

\startuseMPgraphic{itemize:fuzzy}
numeric u;
u:=0.5cm;
save p; path p;
p := fullcircle xyscaled (u,u) randomized 2pt;
pickup pencircle scaled 1pt;
fill p withcolor green;
draw p withcolor blue;
\stopuseMPgraphic
\definesymbol[itemize:fuzzy][\useMPgraphic{itemize:fuzzy}]
\setupitemize[1][symbol=itemize:fuzzy]
\starttext
\startitemize
\item \input knuth
\item \input knuth
\stopitemize
\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] position of qed symbol in proofs

2014-11-10 Thread Otared Kavian

> On 10 Nov 2014, at 10:58, Hans Hagen  wrote:
> […]
> i'm not surprised: eqno only works in a formula and closecommand is not in 
> the formula ... it would not align properly anyway

Oh… I see.
So there is not anymore the possibility to finish an enumeration (such as « 
proof » ine Mikael’s example) with aformula and automatically get the square of 
qed on the right? This was possible for quite a long time, although personnally 
I have used it seldom.

Thanks and best regards: OK
___
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] position of qed symbol in proofs

2014-11-10 Thread Hans Hagen

On 11/10/2014 10:31 AM, Otared Kavian wrote:

Hi Hans,

Thanks for your attention. However the following doesn’t result in what is 
expected:

%% begin proof-qed.tex
\defineenumeration
  [proof]
  [number=no,
   closesymbol=\mathematics{\square},
   closecommand=\mathortext\eqno\wordright]

\starttext
\startproof
This is a simple proof.
\stopproof

\startproof
This is another simple proof that ends with a formula
\startformula
1+2=3.
\stopformula
\stopproof

\stoptext
%% end proof-qed.tex

Neither does the use of displaymath, that is
$$1+2=3.$$

Best regards: OK



On 10 Nov 2014, at 10:08, Hans Hagen  wrote:

On 11/10/2014 6:54 AM, Otared Kavian wrote:

Hi Mikael,

Actually I just tried your example with the ConTeXt version on TeX Live, as 
well as with a copy dating back to 2014-02-14, and both behaved in the same 
wrong way regarding the closesymbol and closecommand. So in

\setupenumeration[proof]
[number=no,
closesymbol=\mathematics{\square},
closecommand=\ifmmode\eqno\else\wordright\fi]

the \ifmmode is not honoured, and the change must have happened quite earlier 
than a few weeks.

Maybe we should open a new thread as a bug in closecommand?


it probably has to do with the if test and some checking on 'command' ...

\defineenumeration
  [proof]
  [number=no,
   closesymbol=\mathematics{\square},
   closecommand=\mathortext\eqno\wordright]


i'm not surprised: eqno only works in a formula and closecommand is not 
in the formula ... it would not align properly anyway


-
  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] position of qed symbol in proofs

2014-11-10 Thread Otared Kavian
Hi Hans,

Thanks for your attention. However the following doesn’t result in what is 
expected:

%% begin proof-qed.tex
\defineenumeration
 [proof]
 [number=no,
  closesymbol=\mathematics{\square},
  closecommand=\mathortext\eqno\wordright]

\starttext
\startproof
This is a simple proof.
\stopproof

\startproof
This is another simple proof that ends with a formula
\startformula
1+2=3. 
\stopformula
\stopproof

\stoptext
%% end proof-qed.tex

Neither does the use of displaymath, that is
$$1+2=3.$$

Best regards: OK


> On 10 Nov 2014, at 10:08, Hans Hagen  wrote:
> 
> On 11/10/2014 6:54 AM, Otared Kavian wrote:
>> Hi Mikael,
>> 
>> Actually I just tried your example with the ConTeXt version on TeX Live, as 
>> well as with a copy dating back to 2014-02-14, and both behaved in the same 
>> wrong way regarding the closesymbol and closecommand. So in
>> 
>> \setupenumeration[proof]
>>  [number=no,
>>  closesymbol=\mathematics{\square},
>>  closecommand=\ifmmode\eqno\else\wordright\fi]
>> 
>> the \ifmmode is not honoured, and the change must have happened quite 
>> earlier than a few weeks.
>> 
>> Maybe we should open a new thread as a bug in closecommand?
> 
> it probably has to do with the if test and some checking on 'command' ...
> 
> \defineenumeration
>  [proof]
>  [number=no,
>   closesymbol=\mathematics{\square},
>   closecommand=\mathortext\eqno\wordright]
> 
> 
> -
>  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
___

Re: [NTG-context] position of qed symbol in proofs

2014-11-10 Thread Hans Hagen

On 11/10/2014 6:54 AM, Otared Kavian wrote:

Hi Mikael,

Actually I just tried your example with the ConTeXt version on TeX Live, as 
well as with a copy dating back to 2014-02-14, and both behaved in the same 
wrong way regarding the closesymbol and closecommand. So in

\setupenumeration[proof]
[number=no,
closesymbol=\mathematics{\square},
closecommand=\ifmmode\eqno\else\wordright\fi]

the \ifmmode is not honoured, and the change must have happened quite earlier 
than a few weeks.

Maybe we should open a new thread as a bug in closecommand?


it probably has to do with the if test and some checking on 'command' ...

\defineenumeration
  [proof]
  [number=no,
   closesymbol=\mathematics{\square},
   closecommand=\mathortext\eqno\wordright]


-
  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] position of qed symbol in proofs

2014-11-09 Thread Otared Kavian
Hi Mikael,

Actually I just tried your example with the ConTeXt version on TeX Live, as 
well as with a copy dating back to 2014-02-14, and both behaved in the same 
wrong way regarding the closesymbol and closecommand. So in 

\setupenumeration[proof]
[number=no,
closesymbol=\mathematics{\square},
closecommand=\ifmmode\eqno\else\wordright\fi]

the \ifmmode is not honoured, and the change must have happened quite earlier 
than a few weeks.

Maybe we should open a new thread as a bug in closecommand?

Best regards: OK

> On 09 Nov 2014, at 21:29, Mikael P. Sundqvist  wrote:
> […]
> Hi Otared,
> 
> thank you for looking at this. It feels good that it is not only me
> who has this problem. As far as I remember, this issue was not present
> 3-4 weeks ago.
> 
> /Mikael

___
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] position of qed symbol in proofs

2014-11-09 Thread Mikael P. Sundqvist
On Sat, Nov 8, 2014 at 5:43 PM, Otared Kavian  wrote:
> Hi Mikael,
>
> In my files I have the following which used to work, but it doesn’t work as 
> expected anymore, as you point out
>
> \defineenumeration[proof][text=Proof.]
>
> \setupenumeration[proof]
> [number=no,
> closesymbol=\mathematics{\square},
> closecommand=\ifmmode\eqno\else\wordright\fi]
>
>
> \starttext
> \startproof
> This is a simple proof.
> \stopproof
>
> \startproof
> This is another simple proof that ends with a formula
> \startformula
> 1+1=2.
> \stopformula
> \stopproof
> \stoptext
>
> I don’t know when the change occurred, but at least it worked last year 
> (which for ConTeXt means pregistoric times… :—).
> As a temporary hack one can always say:
> \startformula
> 1+1=2. \eqno{\square}
> \stopformula
>
> Best regards: OK
>
>> On 08 Nov 2014, at 14:40, Mikael P. Sundqvist  wrote:
>>
>> On Mon, Nov 3, 2014 at 9:15 PM, Mikael P. Sundqvist  wrote:
>>> Hi,
>>>
>>> I once used
>>>
>>> \defineenumeration[proof][
>>> text=Proof,
>>> closesymbol=\mathematics{\square},
>>> closecommand=\ifmmode\eqno\else\wordright\fi,
>>> ]
>>>
>>> \starttext
>>> \startproof
>>> This is a simple proof.
>>> \stopproof
>>>
>>> \startproof
>>> This is another simple proof that ends with a formula
>>> \startformula
>>> 1+1=2.
>>> \stopformula
>>> \stopproof
>>> \stoptext
>>>
>>> to get the \square at the end of proofs, and it worked out well. But
>>> with the latest beta (and some previous one(s)), the \square is not
>>> placed at the same line as the formula in the second example. Is it
>>> broken? Or is there a new syntax?
>>>
>>> PDF with my result is attached.
>>>
>>> Best regards, Mikael
>>
>> I don't like to bump, but... Noone else has this problem?
>>
>> @Hans: Is it easily fixed?
>>
>> /Mikael
>> ___
>> 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
> ___

Hi Otared,

thank you for looking at this. It feels good that it is not only me
who has this problem. As far as I remember, this issue was not present
3-4 weeks ago.

/Mikael
___
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] position of qed symbol in proofs

2014-11-08 Thread Otared Kavian
Hi Mikael,

In my files I have the following which used to work, but it doesn’t work as 
expected anymore, as you point out

\defineenumeration[proof][text=Proof.]

\setupenumeration[proof]
[number=no,
closesymbol=\mathematics{\square},
closecommand=\ifmmode\eqno\else\wordright\fi]

  
\starttext
\startproof
This is a simple proof.
\stopproof

\startproof
This is another simple proof that ends with a formula
\startformula
1+1=2.
\stopformula
\stopproof
\stoptext

I don’t know when the change occurred, but at least it worked last year (which 
for ConTeXt means pregistoric times… :—).
As a temporary hack one can always say:
\startformula
1+1=2. \eqno{\square}
\stopformula

Best regards: OK

> On 08 Nov 2014, at 14:40, Mikael P. Sundqvist  wrote:
> 
> On Mon, Nov 3, 2014 at 9:15 PM, Mikael P. Sundqvist  wrote:
>> Hi,
>> 
>> I once used
>> 
>> \defineenumeration[proof][
>> text=Proof,
>> closesymbol=\mathematics{\square},
>> closecommand=\ifmmode\eqno\else\wordright\fi,
>> ]
>> 
>> \starttext
>> \startproof
>> This is a simple proof.
>> \stopproof
>> 
>> \startproof
>> This is another simple proof that ends with a formula
>> \startformula
>> 1+1=2.
>> \stopformula
>> \stopproof
>> \stoptext
>> 
>> to get the \square at the end of proofs, and it worked out well. But
>> with the latest beta (and some previous one(s)), the \square is not
>> placed at the same line as the formula in the second example. Is it
>> broken? Or is there a new syntax?
>> 
>> PDF with my result is attached.
>> 
>> Best regards, Mikael
> 
> I don't like to bump, but... Noone else has this problem?
> 
> @Hans: Is it easily fixed?
> 
> /Mikael
> ___
> 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] position of qed symbol in proofs

2014-11-08 Thread Mikael P. Sundqvist
On Mon, Nov 3, 2014 at 9:15 PM, Mikael P. Sundqvist  wrote:
> Hi,
>
> I once used
>
> \defineenumeration[proof][
> text=Proof,
> closesymbol=\mathematics{\square},
> closecommand=\ifmmode\eqno\else\wordright\fi,
> ]
>
> \starttext
> \startproof
> This is a simple proof.
> \stopproof
>
> \startproof
> This is another simple proof that ends with a formula
> \startformula
> 1+1=2.
> \stopformula
> \stopproof
> \stoptext
>
> to get the \square at the end of proofs, and it worked out well. But
> with the latest beta (and some previous one(s)), the \square is not
> placed at the same line as the formula in the second example. Is it
> broken? Or is there a new syntax?
>
> PDF with my result is attached.
>
> Best regards, Mikael

I don't like to bump, but... Noone else has this problem?

@Hans: Is it easily fixed?

/Mikael
___
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] Natural tables introduces spaces in \type

2014-11-06 Thread Christoph Reller
On 11/6/2014 9:58 AM, Hans Hagen wrote:
> we could have a specific filename cleaner but of course there will be
> users who have paths that have spaces after the \ ... okay, we could
> just not support evil paths like that
>
> Hans

A rigorous filename cleaner would have to treat a huge number of possible
Unicodes. This is overkill. I believe the best would be to have a cleaner
for all ascii "symbols". That would fit most purposes of writing file names
and URIs:

  !#"$%&'*()+,-./:;<=>?@[\]^_`{|}~

Of the above characters the following are disallowed on NTFS:

  "*/:<>?|

Still I think they should be included in the cleaner. If % or # pose
problems then they may be omitted.

With the current "absolute"-cleaner, a space after \ is preserved
correctly, so I don't understand your comment:

\definetype[ctype][compact=absolute]\starttext
\bTABLE\bTR\bTD \ctype{\a\ b} \eTD\eTR\eTABLE\stoptext

I would be glad if you could implement such a "ascii-symbol"-cleaner.

Thanks,

Christoph
___
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] pgfplots broken?

2014-11-04 Thread Akira Kakuto
re/texmf-dist/tex/generic/pgfplots/pgfplots.markers.code.tex
 usedmethod=database
used file   >   97: filename=pgfplotsticks.code.tex filetype=tex
foundname=c:/usr/local/share/texmf-dist/tex/generic/pgfplots/pgfplotsticks.code.tex
 usedmethod=database
used file   >   98: filename=pgfplots.paths.code.tex filetype=tex
foundname=c:/usr/local/share/texmf-dist/tex/generic/pgfplots/pgfplots.paths.code.tex
 usedmethod=database
used file   >   99: filename=tikzlibrarydecorations.code.tex filetype=tex
foundname=c:/usr/local/share/texmf-dist/tex/generic/pgf/frontendlayer/libraries/tikzlibrarydecorations.code.tex
 usedmethod=database
used file   >  100: filename=pgfmoduledecorations.code.tex filetype=tex
foundname=c:/usr/local/share/texmf-dist/tex/generic/pgf/modules/pgfmoduledecorations.code.tex
 usedmethod=database
used file   >  101: filename=tikzlibrarydecorations.pathmorphing.code.tex 
filetype=tex
foundname=c:/usr/local/share/texmf-dist/tex/generic/pgf/frontendlayer/libraries/tikzlibrarydecorations.pathmorphing.code.tex
usedmethod=database
used file   >  102: filename=pgflibrarydecorations.pathmorphing.code.tex 
filetype=tex
foundname=c:/usr/local/share/texmf-dist/tex/generic/pgf/libraries/decorations/pgflibrarydecorations.pathmorphing.code.tex
usedmethod=database
used file   >  103: filename=tikzlibrarydecorations.pathreplacing.code.tex 
filetype=tex
foundname=c:/usr/local/share/texmf-dist/tex/generic/pgf/frontendlayer/libraries/tikzlibrarydecorations.pathreplacing.code.tex
usedmethod=database
used file   >  104: filename=pgflibrarydecorations.pathreplacing.code.tex 
filetype=tex
foundname=c:/usr/local/share/texmf-dist/tex/generic/pgf/libraries/decorations/pgflibrarydecorations.pathreplacing.code.tex
usedmethod=database
used file   >  105: filename=lm.lfg filetype=tex 
foundname=c:/usr/local/share/texmf-dist/tex/context/fonts/lm.lfg
usedmethod=database
used file   >  106: filename=lmroman12-regular filetype=otf format=otf
foundname=c:/usr/local/share/texmf-dist/fonts/opentype/public/lm/lmroman12-regular.otf
 usedmethod=database
used file   >  107: filename=latinmodern-math.otf filetype=opentypefonts
foundname=c:/usr/local/share/texmf-dist/fonts/opentype/public/lm-math/latinmodern-math.otf
 usedmethod=database
used file   >  108: filename=lpdf-pdx.xml filetype=tex 
foundname=c:/usr/local/share/texmf-dist/tex/context/base/lpdf-pdx.xml
usedmethod=database

system  > files > stop used files


system  > options > start commandline options

used option > currentrun="1"
used option > fulljobname="./tt.tex"
used option > input="./tt.tex"
used option > kindofrun="1"
used option > maxnofruns="8"
used option > no-parse-first-line="true"

system  > options > stop commandline options

system  > options > start commandline files

used file   >1: ./tt.tex

system  > options > stop commandline files


mkiv lua stats  > used config file: 
c:/usr/local/share/texmf-dist/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: 
c:/usr/local/share/ctxdir/luatex-cache/context/ca675e2af2f11806418c5ce1dbbdb945
mkiv lua stats  > resource resolver: loadtime 0.070 seconds, 2 scans with 
scantime 0.080 seconds, 0 shared scans, 108 found files,
scanned paths: C:/Users/kakuto/texmf c:/windows/fonts
mkiv lua stats  > stored bytecode data: 357 modules (0.280 sec), 71 tables 
(0.010 sec), 428 chunks (0.290 sec)
mkiv lua stats  > running in nuts mode: yes
mkiv lua stats  > cleaned up reserved nodes: 44 nodes, 455 lists of 454
mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 9 attribute, 29 
glue_spec, 3 attribute_list, 2 temp
mkiv lua stats  > node list callback tasks: 6 unique task lists, 6 instances 
(re)created, 67 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded tex modules: 2 requested, all found (*-pgfplots *-tikz)
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.000 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: 5845 direct, 82287 indirect, 88132 total
mkiv lua stats  > randomizer: resumed with value 0.84267708365123
mkiv lua stats  > result saved in file: tt.pdf, compresslevel 3, 
objectcompresslevel 3
mkiv lua stats  > loaded fonts: 3 files: latinmodern-math.otf, 
lmmono10-regular.otf, lmroman12-regular.otf
mkiv lua stats  > fonts load time: 0.330 seconds
mkiv lua stats  > used platform: mswin, type: windows, binary subtree: local
mkiv lua stats  > luatex banner: this is luatex, version beta-0.79.1 (tex live 
2014/w32tex) (rev 5074)
mkiv lua stats  > control sequences: 58302 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua, used memory: 48 MB (ctx: 47 MB), 
hash type: lua, hash chars: min(64,40), symbol mask:
utf (τε
‡)
mkiv lua stats  > runtime: 2.220 seconds, 1 processed pages, 1 shipped pages, 
0.450 pages/second



tt.pdf
Description: Adobe PDF document
___
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] pgfplots broken?

2014-11-04 Thread Akira Kakuto
   >  101: filename=tikzlibrarydecorations.pathmorphing.code.tex 
filetype=tex
foundname=c:/usr/local/share/texmf-dist/tex/generic/pgf/frontendlayer/libraries/tikzlibrarydecorations.pathmorphing.code.tex
usedmethod=database
used file   >  102: filename=pgflibrarydecorations.pathmorphing.code.tex 
filetype=tex
foundname=c:/usr/local/share/texmf-dist/tex/generic/pgf/libraries/decorations/pgflibrarydecorations.pathmorphing.code.tex
usedmethod=database
used file   >  103: filename=tikzlibrarydecorations.pathreplacing.code.tex 
filetype=tex
foundname=c:/usr/local/share/texmf-dist/tex/generic/pgf/frontendlayer/libraries/tikzlibrarydecorations.pathreplacing.code.tex
usedmethod=database
used file   >  104: filename=pgflibrarydecorations.pathreplacing.code.tex 
filetype=tex
foundname=c:/usr/local/share/texmf-dist/tex/generic/pgf/libraries/decorations/pgflibrarydecorations.pathreplacing.code.tex
usedmethod=database
used file   >  105: filename=lm.lfg filetype=tex 
foundname=c:/usr/local/share/texmf-dist/tex/context/fonts/lm.lfg
usedmethod=database
used file   >  106: filename=lmroman12-regular filetype=otf format=otf
foundname=c:/usr/local/share/texmf-dist/fonts/opentype/public/lm/lmroman12-regular.otf
 usedmethod=database
used file   >  107: filename=latinmodern-math.otf filetype=opentypefonts
foundname=c:/usr/local/share/texmf-dist/fonts/opentype/public/lm-math/latinmodern-math.otf
 usedmethod=database
used file   >  108: filename=lpdf-pdx.xml filetype=tex 
foundname=c:/usr/local/share/texmf-dist/tex/context/base/lpdf-pdx.xml
usedmethod=database

system  > files > stop used files


system  > options > start commandline options

used option > currentrun="3"
used option > fulljobname="./t.tex"
used option > input="./t.tex"
used option > kindofrun="2"
used option > maxnofruns="8"
used option > no-parse-first-line="true"

system  > options > stop commandline options

system  > options > start commandline files

used file   >1: ./t.tex

system  > options > stop commandline files


mkiv lua stats  > used config file: 
c:/usr/local/share/texmf-dist/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: 
c:/usr/local/share/ctxdir/luatex-cache/context/ca675e2af2f11806418c5ce1dbbdb945
mkiv lua stats  > resource resolver: loadtime 0.075 seconds, 2 scans with 
scantime 0.084 seconds, 0 shared scans, 108 found files,
scanned paths: C:/Users/kakuto/texmf c:/windows/fonts
mkiv lua stats  > stored bytecode data: 357 modules (0.284 sec), 71 tables 
(0.004 sec), 428 chunks (0.288 sec)
mkiv lua stats  > running in nuts mode: yes
mkiv lua stats  > cleaned up reserved nodes: 44 nodes, 455 lists of 454
mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 9 attribute, 29 
glue_spec, 3 attribute_list, 2 temp
mkiv lua stats  > node list callback tasks: 6 unique task lists, 5 instances 
(re)created, 40 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded tex modules: 2 requested, all found (*-pgfplots *-tikz)
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.002 seconds saving, 0.001 seconds loading
mkiv lua stats  > callbacks: 5727 direct, 82255 indirect, 87982 total
mkiv lua stats  > randomizer: resumed with value 0.79924924466689
mkiv lua stats  > result saved in file: t.pdf, compresslevel 3, 
objectcompresslevel 3
mkiv lua stats  > loaded fonts: 3 files: latinmodern-math.otf, 
lmmono10-regular.otf, lmroman12-regular.otf
mkiv lua stats  > fonts load time: 0.346 seconds
mkiv lua stats  > used platform: mswin, type: windows, binary subtree: local
mkiv lua stats  > luatex banner: this is luatex, version beta-0.79.1 (tex live 
2014/w32tex) (rev 5074)
mkiv lua stats  > control sequences: 57880 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua, used memory: 48 MB (ctx: 47 MB), 
hash type: lua, hash chars: min(64,40), symbol mask:
utf (τε
‡)
mkiv lua stats  > runtime: 2.075 seconds, 1 processed pages, 1 shipped pages, 
0.482 pages/second

___
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] pgfplots broken?

2014-11-04 Thread Mikael P. Sundqvist
/pgf/libraries/luamath/pgflibraryluamath.code.tex usedmethod=database

system  > files > stop used files


system  > options > start commandline options

used option > currentrun="1"
used option > fulljobname="./t.tex"
used option > input="./t.tex"
used option > kindofrun="1"
used option > maxnofruns="8"
used option > no-parse-first-line="true"

system  > options > stop commandline options

system  > options > start commandline files

used file   >1: ./t.tex

system  > options > stop commandline files


mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: /home/mickep/ConTeXt/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.006 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 73 found files, scanned paths: 
mkiv lua stats  > stored bytecode data: 357 modules (0.119 sec), 71 tables (0.002 sec), 428 chunks (0.121 sec)
mkiv lua stats  > running in nuts mode: yes
mkiv lua stats  > cleaned up reserved nodes: 41 nodes, 454 lists of 453
mkiv lua stats  > node memory usage: 3 attribute, 19 glue_spec, 1 attribute_list, 2 temp, 7 if_stack, 1 open, 1 dir
mkiv lua stats  > node list callback tasks: 6 unique task lists, 1 instances (re)created, 1 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded tex modules: 2 requested, all found (*-pgfplots *-tikz)
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.035 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: 3858 direct, 36944 indirect, 40802 total
mkiv lua stats  > result saved in file: t.pdf, compresslevel 3, objectcompresslevel 3
mkiv lua stats  > loaded fonts: 1 files: lmmono10-regular.otf
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree: texmf-linux-64
mkiv lua stats  > luatex banner: this is luatex, version beta-0.79.1 (tex live 2014/dev) (rev 4972)
mkiv lua stats  > control sequences: 48046 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua, used memory: 30 MB (ctx: 29 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 150.161 seconds

___
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] pgfplots broken?

2014-11-04 Thread Mikael P. Sundqvist
ame=/home/mickep/ConTeXt/tex/texmf-modules/tex/generic/pgf/modules/pgfmodulematrix.code.tex usedmethod=database
used file   >   64: filename=tikzlibrarytopaths.code.tex filetype=tex foundname=/home/mickep/ConTeXt/tex/texmf-modules/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarytopaths.code.tex usedmethod=database
used file   >   65: filename=tikzlibraryplotmarks.code.tex filetype=tex foundname=/home/mickep/ConTeXt/tex/texmf-modules/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibraryplotmarks.code.tex usedmethod=database
used file   >   66: filename=pgflibraryplotmarks.code.tex filetype=tex foundname=/home/mickep/ConTeXt/tex/texmf-modules/tex/generic/pgf/libraries/pgflibraryplotmarks.code.tex usedmethod=database
used file   >   67: filename=pgfplots.code.tex filetype=tex foundname=/home/mickep/ConTeXt/tex/texmf-modules/tex/generic/pgfplots/pgfplots.code.tex usedmethod=database
used file   >   68: filename=pgfplotscore.code.tex filetype=tex foundname=/home/mickep/ConTeXt/tex/texmf-modules/tex/generic/pgfplots/pgfplotscore.code.tex usedmethod=database
used file   >   69: filename=pgfplotssysgeneric.code.tex filetype=tex foundname=/home/mickep/ConTeXt/tex/texmf-modules/tex/generic/pgfplots/sys/pgfplotssysgeneric.code.tex usedmethod=database
used file   >   70: filename=pgfplotslibrary.code.tex filetype=tex foundname=/home/mickep/ConTeXt/tex/texmf-modules/tex/generic/pgfplots/libs/pgfplotslibrary.code.tex usedmethod=database
used file   >   71: filename=pgfplotsoldpgfsupp_loader.code.tex filetype=tex foundname=/home/mickep/ConTeXt/tex/texmf-modules/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_loader.code.tex usedmethod=database
used file   >   72: filename=pgflibraryfpu.code.tex filetype=tex foundname=/home/mickep/ConTeXt/tex/texmf-modules/tex/generic/pgf/libraries/pgflibraryfpu.code.tex usedmethod=database
used file   >   73: filename=pgflibraryluamath.code.tex filetype=tex foundname=/home/mickep/ConTeXt/tex/texmf-modules/tex/generic/pgf/libraries/luamath/pgflibraryluamath.code.tex usedmethod=database

system  > files > stop used files


system  > options > start commandline options

used option > currentrun="1"
used option > fulljobname="./t.tex"
used option > input="./t.tex"
used option > kindofrun="1"
used option > maxnofruns="8"
used option > no-parse-first-line="true"

system  > options > stop commandline options

system  > options > start commandline files

used file   >1: ./t.tex

system  > options > stop commandline files


mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: /home/mickep/ConTeXt/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.006 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 73 found files, scanned paths: 
mkiv lua stats  > stored bytecode data: 357 modules (0.113 sec), 71 tables (0.002 sec), 428 chunks (0.115 sec)
mkiv lua stats  > running in nuts mode: yes
mkiv lua stats  > cleaned up reserved nodes: 41 nodes, 454 lists of 453
mkiv lua stats  > node memory usage: 3 attribute, 19 glue_spec, 1 attribute_list, 2 temp, 7 if_stack, 1 open, 1 dir
mkiv lua stats  > node list callback tasks: 6 unique task lists, 1 instances (re)created, 1 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded tex modules: 2 requested, all found (*-pgfplots *-tikz)
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.002 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: 3857 direct, 36942 indirect, 40799 total
mkiv lua stats  > result saved in file: t.pdf, compresslevel 3, objectcompresslevel 3
mkiv lua stats  > loaded fonts: 1 files: lmmono10-regular.otf
mkiv lua stats  > fonts load time: 0.032 seconds 
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree: texmf-linux-64
mkiv lua stats  > luatex banner: this is luatex, version beta-0.79.1 (tex live 2014/dev) (rev 4972)
mkiv lua stats  > control sequences: 48046 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua, used memory: 33 MB (ctx: 32 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 2.879 seconds

___
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] pgfplots broken?

2014-11-04 Thread Akira Kakuto
exmf-dist/tex/generic/pgf/frontendlayer/libraries/tikzlibrarydecorations.pathmorphing.code.tex
usedmethod=database
used file   >  102: filename=pgflibrarydecorations.pathmorphing.code.tex 
filetype=tex
foundname=c:/usr/local/share/texmf-dist/tex/generic/pgf/libraries/decorations/pgflibrarydecorations.pathmorphing.code.tex
usedmethod=database
used file   >  103: filename=tikzlibrarydecorations.pathreplacing.code.tex 
filetype=tex
foundname=c:/usr/local/share/texmf-dist/tex/generic/pgf/frontendlayer/libraries/tikzlibrarydecorations.pathreplacing.code.tex
usedmethod=database
used file   >  104: filename=pgflibrarydecorations.pathreplacing.code.tex 
filetype=tex
foundname=c:/usr/local/share/texmf-dist/tex/generic/pgf/libraries/decorations/pgflibrarydecorations.pathreplacing.code.tex
usedmethod=database
used file   >  105: filename=lm.lfg filetype=tex 
foundname=c:/usr/local/share/texmf-dist/tex/context/fonts/lm.lfg
usedmethod=database
used file   >  106: filename=lmroman12-regular filetype=otf format=otf
foundname=c:/usr/local/share/texmf-dist/fonts/opentype/public/lm/lmroman12-regular.otf
 usedmethod=database
used file   >  107: filename=latinmodern-math.otf filetype=opentypefonts
foundname=c:/usr/local/share/texmf-dist/fonts/opentype/public/lm-math/latinmodern-math.otf
 usedmethod=database
used file   >  108: filename=lpdf-pdx.xml filetype=tex 
foundname=c:/usr/local/share/texmf-dist/tex/context/base/lpdf-pdx.xml
usedmethod=database

system  > files > stop used files


system  > options > start commandline options

used option > currentrun="1"
used option > fulljobname="./t.tex"
used option > input="./t.tex"
used option > kindofrun="1"
used option > maxnofruns="8"
used option > no-parse-first-line="true"

system  > options > stop commandline options

system  > options > start commandline files

used file   >1: ./t.tex

system  > options > stop commandline files


mkiv lua stats  > used config file: 
c:/usr/local/share/texmf-dist/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: 
c:/usr/local/share/ctxdir/luatex-cache/context/ca675e2af2f11806418c5ce1dbbdb945
mkiv lua stats  > resource resolver: loadtime 0.080 seconds, 2 scans with 
scantime 0.080 seconds, 0 shared scans, 108 found files,
scanned paths: C:/Users/kakuto/texmf c:/windows/fonts
mkiv lua stats  > stored bytecode data: 357 modules (0.300 sec), 71 tables 
(0.000 sec), 428 chunks (0.300 sec)
mkiv lua stats  > running in nuts mode: yes
mkiv lua stats  > cleaned up reserved nodes: 44 nodes, 455 lists of 454
mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 9 attribute, 29 
glue_spec, 3 attribute_list, 2 temp
mkiv lua stats  > node list callback tasks: 6 unique task lists, 5 instances 
(re)created, 40 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded tex modules: 2 requested, all found (*-pgfplots *-tikz)
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.000 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: 5727 direct, 82254 indirect, 87981 total
mkiv lua stats  > randomizer: resumed with value 0.00088503677480392
mkiv lua stats  > result saved in file: t.pdf, compresslevel 3, 
objectcompresslevel 3
mkiv lua stats  > loaded fonts: 3 files: latinmodern-math.otf, 
lmmono10-regular.otf, lmroman12-regular.otf
mkiv lua stats  > fonts load time: 0.350 seconds
mkiv lua stats  > used platform: mswin, type: windows, binary subtree: local
mkiv lua stats  > luatex banner: this is luatex, version beta-0.79.1 (tex live 
2014/w32tex) (rev 5074)
mkiv lua stats  > control sequences: 57881 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua, used memory: 48 MB (ctx: 47 MB), 
hash type: lua, hash chars: min(64,40), symbol mask:
utf (τε
‡)
mkiv lua stats  > runtime: 2.010 seconds, 1 processed pages, 1 shipped pages, 
0.498 pages/second

___
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] position of qed symbol in proofs

2014-11-03 Thread Mikael P. Sundqvist
Hi,

I once used

\defineenumeration[proof][
text=Proof,
closesymbol=\mathematics{\square},
closecommand=\ifmmode\eqno\else\wordright\fi,
]

\starttext
\startproof
This is a simple proof.
\stopproof

\startproof
This is another simple proof that ends with a formula
\startformula
1+1=2.
\stopformula
\stopproof
\stoptext

to get the \square at the end of proofs, and it worked out well. But
with the latest beta (and some previous one(s)), the \square is not
placed at the same line as the formula in the second example. Is it
broken? Or is there a new syntax?

PDF with my result is attached.

Best regards, Mikael


qed.pdf
Description: Adobe PDF document
___
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] ConTeXt Standalone will not install

2014-10-22 Thread Jaroslav Hajtmar
scanti
me 0.031 seconds, 0 shared scans, 10 found files, scanned paths: 
C:/Users/Jarosl

av  Hajtmar/texmf c:/windows/fonts
mkiv lua stats  > stored bytecode data: 356 modules (0.218 sec), 71 
tables (0.00

0 sec), 427 chunks (0.218 sec)
mkiv lua stats  > running in nuts mode: yes
mkiv lua stats  > cleaned up reserved nodes: 44 nodes, 442 lists of 441
mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 9 attribute, 26 
glue_spe

c, 3 attribute_list, 2 temp
mkiv lua stats  > node list callback tasks: 6 unique task lists, 7 
instances (re

)created, 164 calls
mkiv lua stats  > h-node processing time: 0.016 seconds including kernel
mkiv lua stats  > used backend: pdf (backend for directly generating pdf 
output)


mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.016 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: 380 direct, 283 indirect, 663 total
mkiv lua stats  > result saved in file: sidefloat.pdf, compresslevel 3, 
objectco

mpresslevel 3
mkiv lua stats  > margin data: 1 entries, 0 pending
mkiv lua stats  > loaded fonts: 3 files: latinmodern-math.otf, 
lmroman12-bold.ot

f, lmroman12-regular.otf
mkiv lua stats  > fonts load time: 0.281 seconds
mkiv lua stats  > used platform: win64, type: windows, binary subtree: 
texmf-win

64
mkiv lua stats  > luatex banner: this is luatex, version beta-0.79.1 
(tex live 2

014/w32tex) (rev 5064)
mkiv lua stats  > control sequences: 39397 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua, used memory: 61 MB (ctx: 
61 MB),

hash type: lua, hash chars: min(64,40), symbol mask: utf (¤ä╬Á¤ç)
mkiv lua stats  > runtime: 0.811 seconds, 1 processed pages, 1 shipped 
pages, 1.

233 pages/second

mtx-context | run 2: luatex 
--fmt="C:/context/tex/texmf-cache/luatex-cache/c
ontext/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" 
--jobname="sidef
loat" 
--lua="C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde
776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line 
--c:currentrun=2
 --c:fulljobname="./sidefloat.mkiv" --c:input="./sidefloat.mkiv" 
--c:kindofrun=2

 --c:maxnofruns=8 "cont-yes.mkiv"
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 5064)
 \write18 enabled.
open source > 1 > 1 > 
C:/context/tex/texmf-context/tex/context/base/cont-yes

.mkiv

ConTeXt  ver: 2014.10.22 16:23 MKIV beta  fmt: 2014.10.22  int: 
english/english


system  > 'cont-new.mkiv' loaded
open source > 2 > 2 > 
C:/context/tex/texmf-context/tex/context/base/cont-new

.mkiv
close source> 2 > 2 > 
C:/context/tex/texmf-context/tex/context/base/cont-new

.mkiv
system  > files > jobname 'sidefloat', input './sidefloat.mkiv', 
result

'sidefloat'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > 2 > 3 > 
C:/$~1da/ConTeXt/ConTeXt-Tests/my_way/float/sidefloat.

mkiv
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
floatblocks > '1' placed
open source > 3 > 4 > 
C:/context/tex/texmf-context/tex/context/sample/tufte.

tex
close source> 3 > 4 > 
C:/context/tex/texmf-context/tex/context/sample/tufte.

tex
floatblocks > '2' placed
open source > 3 > 5 > 
C:/context/tex/texmf-context/tex/context/sample/tufte.

tex
close source> 3 > 5 > 
C:/context/tex/texmf-context/tex/context/sample/tufte.

tex

Overfull \hbox (0.51917pt too wide) in paragraph at lines 1--17
\3>modern-designsize-12pt-rm-tf-0--0 item-ize, re-view, dip into, flip 
through,

browse, glance into, leaf through,
backend > xmp > using file 
'C:/context/tex/texmf-context/tex/context/bas

e/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1
close source> 2 > 5 > 
C:/$~1da/ConTeXt/ConTeXt-Tests/my_way/float/sidefloat.

mkiv
close source> 1 > 5 > 
C:/context/tex/texmf-context/tex/context/base/cont-yes

.mkiv

mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: 
C:/context/tex/texmf-cache/luatex-cache/conte

xt/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.000 seconds, 2 scans 
with scanti
me 0.016 seconds, 0 shared scans, 10 found files, scanned paths: 
C:/Users/Jarosl

av  Hajtmar/texmf c:/windows/fonts
mkiv lua stats  > stored bytecode data: 356 modules (0.218 sec), 71 
tables (0.00

0 sec), 427 chunks (0.218 sec)
mkiv lua stats  > running in nuts mode: yes
mkiv lua stats  > cleaned up reserved nodes: 44 nodes, 442 lists of 441
mkiv lua stats  > node memory usage:

[NTG-context] Extra line in a list

2014-10-21 Thread Fabrice Couvreur
Hi,
In the code below, why is there an extra line in the first item ?
Best regards,
Fabrice

\usesymbols[mvs]
\setupsymbolset[europe]

\starttext

\startitemize[n][stopper={.},style=bold]
\item
\startitemize[a][stopper={.},style=bold]
\item On pose $P_A=9$ et $P_B=7$.

On a alors $\frac{1}{2}P_A+\frac{1}{2}P_B=4,5+3,5=8$.

Le prix du kilogramme de mélange $M_1$ dont la moitié est de variété A est
donc de 8 \symbol[EUR].
\item $\frac{1}{4}P_A+\frac{3}{4}P_B=2,25+5,25=7,5$.

Le prix du kilogramme de mélange $M_2$ contenant $\frac{1}{4}$ de variété A
est donc de 7,5 \symbol[EUR].
\item $\frac{3}{5}P_A+\frac{2}{5}P_B=5,4+2,8=8,2$.

Le prix du kilogramme de mélange $M_3$ contenant $\frac{2}{5}$ de variété B
est donc de 8,2 \symbol[EUR].
\stopitemize
\stopitemize
\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] Slanted, double-quoted quotations

2014-10-15 Thread Wolfgang Schuster

Am 15.10.2014 um 21:03 schrieb Rik Kabel :

> I am not sure I understand the need for symstyle and symcolor. The issue is 
> not that the symbols are not styled/colored, but that they do not appear at 
> all when a non-normal style is specified. What I see with the example I 
> posted is:
> 
> and I assume that Sander saw a similar issue.
> 
> Note that there are no square brackets present as defined for layer 2.
> 
> I realize that style=normal for level 3 should perhaps be style=\tf, since 
> normal is redefined to slanted within the scope of layer 2. With that change 
> to my example, I get
> 
> This still has the lack of square brackets, and now in addition lacks curly 
> braces for level 3.
> 
> If your fix is meant to repair that, all is well. If not, could you explain 
> why “it's deliberate and has always been the case in mkiv”?

When you use “location=text” context checks the value of the style key, when 
the value of the key is “normal”
the left and right arguments are used but when you use a different value (e.g. 
slanted) context applies only
the style and color values.


Another way to create quotation command is to use the annotation module:

\usemodule[annotation]

\defineannotation
  [quotationsl]
  [style=slanted,
   leftsymbol={\symbol[leftquotation]},
   rightsymbol={\symbol[rightquotation]},
   alternative=quotation]

\starttext
\quotationsl{This should be slanted and double-quoted.}
\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] Slanted, double-quoted quotations

2014-10-15 Thread Rik Kabel

On 2014-10-15 13:38, Hans Hagen wrote:

On 10/15/2014 4:58 PM, Rik Kabel wrote:

On 2014-10-15 09:06, Sander Maijers wrote:

Hi,

I'm using beta 2014.09.27. The code below produces a slanted, unquoted
quotation, whereas I intend to produce a slanted, double-quoted
quotation. How can I fix it?

\definedelimitedtext[quotationsl][
  style=slanted,
  left={\symbol[leftquotation]},
  right={\symbol[rightquotation]},
  location=text,
]

\setupdelimitedtext[quotationsl][style=slanted,left={\symbol[leftquotation]},right={\symbol[rightquotation]}] 



\starttext
\quotationsl{This should be slanted and double-quoted.}
\stoptext

Best,
Sander Maijers


Looks like a bug.


it's deliberate and has always been the case in mkiv


Modifying the parenthesis example at
http://wiki.contextgarden.net/Command/setupdelimitedtext demonstrates
that when a style other than normal is specified, the left and right
settings are ignored  and style settings in deeper levels ignored as
well. (There may be other keys that are ignored as well, and others that
set this off.) I tried a number of combinations. The following is one
that shows the problem. Without the style settings, it works as
described in the wiki.


well, i can do a different check (in next beta) but you deal with 
questions about incompatible behaviour ...



\definedelimitedtext[parenthesis][location=text]
\setupdelimitedtext [parenthesis:1] [left={(}, right={)}]
\setupdelimitedtext [parenthesis:2] [style=slanted, left={[}, 
right={]}]

\setupdelimitedtext [parenthesis:3] [style=normal, left={\{},
right={\}}]
\starttext
\parenthesis{My outer layer \parenthesis{my inner layer
\parenthesis{my innermost layer}}}
\stoptext


i'll add symstyle/color:

\definedelimitedtext[parenthesis]   [location=text]
\setupdelimitedtext [parenthesis:1] [left={(}, right={)}]
\setupdelimitedtext [parenthesis:2] 
[symcolor=red,symstyle=boldslanted,style=slanted, left={[}, right={]}]
\setupdelimitedtext [parenthesis:3] 
[symcolor=blue,symstyle=bold,style=normal, left={\{}, right={\}}]


\starttext
\parenthesis{My outer layer \parenthesis{my inner layer 
\parenthesis{my innermost layer}}}

\stoptext


Hans,

I am not sure I understand the need for symstyle and symcolor. The issue 
is not that the symbols are not styled/colored, but that they do not 
appear at all when a non-normal style is specified. What I see with the 
example I posted is:


and I assume that Sander saw a similar issue.

Note that there are no square brackets present as defined for layer 2.

I realize that style=normal for level 3 should perhaps be style=\tf, 
since normal is redefined to slanted within the scope of layer 2. With 
that change to my example, I get


This still has the lack of square brackets, and now in addition lacks 
curly braces for level 3.


If your fix is meant to repair that, all is well. If not, could you 
explain why “it's deliberate and has always been the case in mkiv”?


--
Rik Kabel
___
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] Slanted, double-quoted quotations

2014-10-15 Thread Hans Hagen

On 10/15/2014 4:58 PM, Rik Kabel wrote:

On 2014-10-15 09:06, Sander Maijers wrote:

Hi,

I'm using beta 2014.09.27. The code below produces a slanted, unquoted
quotation, whereas I intend to produce a slanted, double-quoted
quotation. How can I fix it?

\definedelimitedtext[quotationsl][
  style=slanted,
  left={\symbol[leftquotation]},
  right={\symbol[rightquotation]},
  location=text,
]

\setupdelimitedtext[quotationsl][style=slanted,left={\symbol[leftquotation]},right={\symbol[rightquotation]}]

\starttext
\quotationsl{This should be slanted and double-quoted.}
\stoptext

Best,
Sander Maijers


Looks like a bug.


it's deliberate and has always been the case in mkiv


Modifying the parenthesis example at
http://wiki.contextgarden.net/Command/setupdelimitedtext demonstrates
that when a style other than normal is specified, the left and right
settings are ignored  and style settings in deeper levels ignored as
well. (There may be other keys that are ignored as well, and others that
set this off.) I tried a number of combinations. The following is one
that shows the problem. Without the style settings, it works as
described in the wiki.


well, i can do a different check (in next beta) but you deal with 
questions about incompatible behaviour ...



\definedelimitedtext[parenthesis][location=text]
\setupdelimitedtext [parenthesis:1] [left={(}, right={)}]
\setupdelimitedtext [parenthesis:2] [style=slanted, left={[}, right={]}]
\setupdelimitedtext [parenthesis:3] [style=normal, left={\{},
right={\}}]
\starttext
\parenthesis{My outer layer \parenthesis{my inner layer
\parenthesis{my innermost layer}}}
\stoptext


i'll add symstyle/color:

\definedelimitedtext[parenthesis]   [location=text]
\setupdelimitedtext [parenthesis:1] [left={(}, right={)}]
\setupdelimitedtext [parenthesis:2] 
[symcolor=red,symstyle=boldslanted,style=slanted, left={[}, right={]}]
\setupdelimitedtext [parenthesis:3] 
[symcolor=blue,symstyle=bold,style=normal, left={\{}, right={\}}]


\starttext
\parenthesis{My outer layer \parenthesis{my inner layer 
\parenthesis{my innermost layer}}}

\stoptext


-
  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] Slanted, double-quoted quotations

2014-10-15 Thread Rik Kabel

On 2014-10-15 09:06, Sander Maijers wrote:

Hi,

I'm using beta 2014.09.27. The code below produces a slanted, unquoted 
quotation, whereas I intend to produce a slanted, double-quoted 
quotation. How can I fix it?


\definedelimitedtext[quotationsl][
  style=slanted,
  left={\symbol[leftquotation]},
  right={\symbol[rightquotation]},
  location=text,
]

\setupdelimitedtext[quotationsl][style=slanted,left={\symbol[leftquotation]},right={\symbol[rightquotation]}]

\starttext
\quotationsl{This should be slanted and double-quoted.}
\stoptext

Best,
Sander Maijers


Looks like a bug.

Modifying the parenthesis example at 
http://wiki.contextgarden.net/Command/setupdelimitedtext demonstrates 
that when a style other than normal is specified, the left and right 
settings are ignored  and style settings in deeper levels ignored as 
well. (There may be other keys that are ignored as well, and others that 
set this off.) I tried a number of combinations. The following is one 
that shows the problem. Without the style settings, it works as 
described in the wiki.


   \definedelimitedtext[parenthesis][location=text]
   \setupdelimitedtext [parenthesis:1] [left={(}, right={)}]
   \setupdelimitedtext [parenthesis:2] [style=slanted, left={[}, right={]}]
   \setupdelimitedtext [parenthesis:3] [style=normal, left={\{},
   right={\}}]
   \starttext
   \parenthesis{My outer layer \parenthesis{my inner layer
   \parenthesis{my innermost layer}}}
   \stoptext

--
rik
___
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] Slanted, double-quoted quotations

2014-10-15 Thread Sander Maijers
Hi,

I'm using beta 2014.09.27. The code below produces a slanted, unquoted
quotation, whereas I intend to produce a slanted, double-quoted quotation.
How can I fix it?

\definedelimitedtext[quotationsl][
  style=slanted,
  left={\symbol[leftquotation]},
  right={\symbol[rightquotation]},
  location=text,
]

\setupdelimitedtext[quotationsl][style=slanted,left={\symbol[leftquotation]},right={\symbol[rightquotation]}]

\starttext
\quotationsl{This should be slanted and double-quoted.}
\stoptext

Best,
Sander Maijers
___
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] frown in context 2

2014-09-30 Thread Xan
> On Tue, 29 Oct 2013, Xan wrote:
> 
> > Hi,
> >
> > I just want to make an arc to a word. I found that 
> > [http://tex.stackexchange.com/questions/15468/frown-and-mathop-stackrel-overset]
> >  but it's LaTeX or XeTeX centric.
> >
> > Is there any equivalent in ConTeXt?
> 
> $\overparent{MMM}$
> 
> Aditya

Can the symbol be more close to the MMM? There is so big space between the 
content and the frown symbol

Thanks,
Xan
___
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] math \prime with subscripts

2014-09-24 Thread Yuri Teixeira
Thank you. I gave up on using prime, it's not a good notation anyway. For
the record I'll leave here the tests I did.
I wanted alternatives 6, 7, 11, 12 but could not do it in context.
Alternatives 15, 21 are almost there, but the prime is clearly smaller than
the ones in 13, 19, and too small imo.

plain tex:

$$1T\prime + 2T^\prime + 3T\prime_{rs} + 4T_{rs}\prime +
5T^{{}^\prime}_{rs} + 6T_{rs}^\prime + 7T^\prime_{rs}$$

$$8T' + 9T^{'} + 10T^{'}_{rs} + 11T'_{rs} + 12T_{rs}' $$


context:

\starttext
\startformula
13T\prime + 14T^\prime + 15T\prime_{rs} + 16T^\prime_{rs} + 17T_{rs}\prime
+ 18T_{rs}^\prime
\stopformula

\startformula
19T' + 20T^' + 21T'_{rs} + 22T^'_{rs} + 23T_{rs}' + 24T_{rs}^'
\stopformula
\stoptext

YT



2014-09-22 17:48 GMT-03:00 Aditya Mahajan :

> On Sun, 21 Sep 2014, Yuri Teixeira wrote:
>
>  Hi
>> is there a way for \prime not get smaller when used with sub/superscripts?
>> Or realigned somehow? Without font changes would be nice.
>>
>> \starttext
>>
>> \startformula
>> \frac13T\prime_{rs}T\prime_{st}T\prime_{tr}
>> \stopformula
>>
>> \startformula
>> \frac13T_{rs}\prime T_{st}\prime T_{tr}\prime
>> \stopformula
>>
>> \stoptext
>>
>
> I always thought that one was supposed to use either
>
>T' or T^{\prime}
>
> So, if you want a bigger prime symbol, that is really a font design issue.
>
> Having said that, I believe that it should be possible to control the
> scaling of the prime using a font goodies file, but I do not know the
> details.
>
> 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
> 
> ___
>
___
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] math \prime with subscripts

2014-09-22 Thread Aditya Mahajan

On Sun, 21 Sep 2014, Yuri Teixeira wrote:


Hi
is there a way for \prime not get smaller when used with sub/superscripts?
Or realigned somehow? Without font changes would be nice.

\starttext

\startformula
\frac13T\prime_{rs}T\prime_{st}T\prime_{tr}
\stopformula

\startformula
\frac13T_{rs}\prime T_{st}\prime T_{tr}\prime
\stopformula

\stoptext


I always thought that one was supposed to use either

   T' or T^{\prime}

So, if you want a bigger prime symbol, that is really a font design issue.

Having said that, I believe that it should be possible to control the 
scaling of the prime using a font goodies file, but I do not know the 
details.


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
___


Re: [NTG-context] Remove left and right offset from nested frames?

2014-09-02 Thread Mica Semrick
Thanks Wolfgang, that worked well.

Are there more reasons to use start & stop over start{}?

On August 31, 2014 9:32:31 PM PDT, Wolfgang Schuster 
 wrote:
>
>Am 01.09.2014 um 00:18 schrieb Mica Semrick :
>
>> Hello!
>> 
>> Given: 
>> \starttext
>> 
>>
>\framed[frame=on,width=local,offset=0in,loffset=0in,roffset=0in,frameoffset=0in]{
>
>Add a % after the {.
>
>> \framed
>>  [frame=on,
>>   location=middle,
>>   align={flushleft,nothyphenated,verytolerant}] % maybe also stretch
>>  {%
>> {\tfd My Name Here}
>> }
>> \hfill
>> \framed
>>  [frame=on,
>>   location=middle,
>>   align={flushright,nothyphenated,verytolerant}] % maybe also stretch
>>  {%
>> 1234 Tree Ave. \#407, Beach City, CA 99876 \\
>> (123) 456-7890 \ \bullet \
>\goto{m...@email.com}[url(mailto:m...@email.com)]
>> }
>
>Add a % after the }.
>
>> }\stoptext
>> The two nested \framed commands are aligned as I'd like them, but I'd
>like to remove the small gaps so the text in the first nexted frame
>sits flush to the left of the text area and the second framed sits
>flush right to the text area. In other words, I'd like to remove the
>small gaps from the left and right of the frames. 
>> Is that possible?
>
>You forgot a few comment signs in your code which can be avoided when
>you \startframed … \stopframed instead of \framed{…}.
>
>\starttext
>
>\startframed[frame=on,width=local,offset=0pt]
>   
> \startframed[frame=on,location=middle,align={flushleft,nothyphenated,verytolerant},foregroundstyle=\tfd]
>   My Name Here
>   \stopframed
>   \hfill
>   
> \startframed[frame=on,location=middle,align={flushright,nothyphenated,verytolerant}]
>   1234 Tree Ave. \#407, Beach City, CA 99876\\
>   (123) 456-7890 \hspace[medium] \symbol[bullet] \hspace[medium]
>\goto{m...@email.com}[url(mailto:m...@email.com)]
>   \stopframed
>\stopframed
>
>\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
>___

___
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] Remove left and right offset from nested frames?

2014-08-31 Thread Wolfgang Schuster

Am 01.09.2014 um 00:18 schrieb Mica Semrick :

> Hello!
> 
> Given: 
> \starttext
> 
> \framed[frame=on,width=local,offset=0in,loffset=0in,roffset=0in,frameoffset=0in]{

Add a % after the {.

> \framed
>  [frame=on,
>   location=middle,
>   align={flushleft,nothyphenated,verytolerant}] % maybe also stretch
>  {%
> {\tfd My Name Here}
> }
> \hfill
> \framed
>  [frame=on,
>   location=middle,
>   align={flushright,nothyphenated,verytolerant}] % maybe also stretch
>  {%
> 1234 Tree Ave. \#407, Beach City, CA 99876 \\
> (123) 456-7890 \ \bullet \ \goto{m...@email.com}[url(mailto:m...@email.com)]
> }

Add a % after the }.

> }\stoptext
> The two nested \framed commands are aligned as I'd like them, but I'd like to 
> remove the small gaps so the text in the first nexted frame sits flush to the 
> left of the text area and the second framed sits flush right to the text 
> area. In other words, I'd like to remove the small gaps from the left and 
> right of the frames. 
> Is that possible?

You forgot a few comment signs in your code which can be avoided when you 
\startframed … \stopframed instead of \framed{…}.

\starttext

\startframed[frame=on,width=local,offset=0pt]

\startframed[frame=on,location=middle,align={flushleft,nothyphenated,verytolerant},foregroundstyle=\tfd]
My Name Here
\stopframed
\hfill

\startframed[frame=on,location=middle,align={flushright,nothyphenated,verytolerant}]
        1234 Tree Ave. \#407, Beach City, CA 99876\\
(123) 456-7890 \hspace[medium] \symbol[bullet] \hspace[medium] 
\goto{m...@email.com}[url(mailto:m...@email.com)]
\stopframed
\stopframed

\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] weird interference in xml processing

2014-08-20 Thread Hans Hagen

On 8/20/2014 1:28 PM, Thomas A. Schmitz wrote:

Hi,

I encounter a weird interference when setting xml entities. Minimal example:

\startbuffer[test]

   test ∼ test

\stopbuffer

\startxmlsetups xml:testsetups
\xmlsetsetup{\xmldocument}{a}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:testsetups}

\startxmlsetups xml:a
\xmlflush{#1}
\stopxmlsetups

\xmltexentity{sim}{\getglyph{name:texgyretermesmath}{\char"223C}}

\starttext
\xmlprocessbuffer{main}{test}{}

\stoptext

Instead of the expected symbol, I get a grave accent with recent context betas 
(it works with betas until mid-June). When I try the command 
\getglyph{name:texgyretermesmath}{\char”223C} in a normal context document, I 
get the expected output. What is happening here?


So what is the expected symbol?

 [0x223C]={
  adobename="tildeoperator",
  description="TILDE OPERATOR",

Hans



All best

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




--

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


[NTG-context] weird interference in xml processing

2014-08-20 Thread Thomas A. Schmitz
Hi, 

I encounter a weird interference when setting xml entities. Minimal example:

\startbuffer[test]

  test ∼ test

\stopbuffer

\startxmlsetups xml:testsetups
\xmlsetsetup{\xmldocument}{a}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:testsetups}

\startxmlsetups xml:a
\xmlflush{#1}
\stopxmlsetups

\xmltexentity{sim}{\getglyph{name:texgyretermesmath}{\char"223C}}

\starttext
\xmlprocessbuffer{main}{test}{}

\stoptext

Instead of the expected symbol, I get a grave accent with recent context betas 
(it works with betas until mid-June). When I try the command 
\getglyph{name:texgyretermesmath}{\char”223C} in a normal context document, I 
get the expected output. What is happening here? 

All best

Thomas
___
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] Custom breakpoints for \hyphenatedurl

2014-08-07 Thread Joshua Krämer
On 2014-08-07, 12:58, Wolfgang Schuster wrote:

> The position of the \hyphenatedurlseparator symbol depends currently
> on the breakpoint in the url, when the break is allowed after a
> character at the end of line but when the break is allowed before a
> character the symbol appears at the begin of the line.
> The question is now if this is intended or can it be changed.

I can hardly imagine this to be intended.  The reader should be
informed about a break as soon as he reaches the break, so he knows the
word/token is not finished yet.  As we read from top to bottom, the
end of the top line is where this information should be.


> Another thing where we can discuss is the way to set the separator,
> e.g. \sethypehantedurlseparator{…} seems more appropriate than
> \def\hyphenatedurlseparator{…} because we already have other \setXXX
> commands.

Agreed.

> > The second URL has a linebreak in front of the colon, which I do
> > not want.
> 
> The points where contexts is allowed to break a url at :/# etc. are
> predefined in the Lua code.
> 
> When you want to change this you have to use the three commands
> 
>   - \sethyphenatedurlbefore{…}
>   - \sethyphenatedurlafter{…}
>   - \sethyphenatedurlnormal{…}

Could you please change my minimal example (attached at the
end) accordingly? I want an URL like "http://optimist"; to be wrapped
after "://" only, not in front of the colon.  I couldn't find out how to
achieve this.  I also want no linebreak to occur between two slahes
(if this is possible with the current implementation).  By the way, I
also don't understand the meaning of \sethyphenatedurlnormal {...}.

Kind regards,
Joshua


\setuplayout[width=5cm]
\sethyphenatedurlafter {/}
\sethyphenatedurlbefore {}
\sethyphenatedurlnormal {}
\starttext

Word Word Word \hyphenatedurl {http://optimist.optimist}

Word Word Word W \hyphenatedurl {http://optimist.optimist}

Word Word Word Wo \hyphenatedurl {http://optimist.optimist}

(Only the first of these three linebreaks is desired.)

\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] Custom breakpoints for \hyphenatedurl

2014-08-07 Thread Wolfgang Schuster

Am 05.08.2014 um 23:36 schrieb Joshua Krämer :

> On 2014-08-05, 22:54, Wolfgang Schuster wrote:
> 
>> Can you provide a working minimal example?
> 
> Sorry, please find an example at the end.
> 
> The first URL has the right linebreaks, but the arrow should be at the
> end of the line.

The position of the \hyphenatedurlseparator symbol depends currently on the 
breakpoint in the url,
when the break is allowed after a character at the end of line but when the 
break is allowed before
a character the symbol appears at the begin of the line.

The question is now if this is intended or can it be changed. Another thing 
where we can discuss
is the way to set the separator, e.g. \sethypehantedurlseparator{…} seems more 
appropriate
than \def\hyphenatedurlseparator{…} because we already have other \setXXX 
commands.

> Interestingly, it shows another problem:  the # is repeated.

Has to be fixed.

> The second URL has a linebreak in front of the colon, which I do not want.

The points where contexts is allowed to break a url at :/# etc. are predefined 
in the Lua code.

When you want to change this you have to use the three commands

  - \sethyphenatedurlbefore{…}
  - \sethyphenatedurlafter{…}
  - \sethyphenatedurlnormal{…}

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] Custom breakpoints for \hyphenatedurl

2014-08-05 Thread Wolfgang Schuster

Am 05.08.2014 um 22:03 schrieb Joshua Krämer :

> Dear list,
> 
> I could successfully configure ConTeXt to introduce linebreaks /after/
> some characters in URLs with \sethyphenatedurlafter {...}
> 
> I would also like to disable linebreaks /before/ some of the predefined
> characters.  For example, no linebreak should occur before :
> 
> Is this possible?  \sethyphenatedurlbefore {} (with empty braces)
> does not work.
> 
> Unfortunately, usage of \sethyphenatedurlafter also introduced the
> following problem:  the \hyphenatedurlseparator symbol now appears
> after the linebreak, i.e. at the beginning of the new line.  Can I do
> something about it?

Can you provide a working minimal example?

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] Custom breakpoints for \hyphenatedurl

2014-08-05 Thread Joshua Krämer
Dear list,

I could successfully configure ConTeXt to introduce linebreaks /after/
some characters in URLs with \sethyphenatedurlafter {...}

I would also like to disable linebreaks /before/ some of the predefined
characters.  For example, no linebreak should occur before :

Is this possible?  \sethyphenatedurlbefore {} (with empty braces)
does not work.

Unfortunately, usage of \sethyphenatedurlafter also introduced the
following problem:  the \hyphenatedurlseparator symbol now appears
after the linebreak, i.e. at the beginning of the new line.  Can I do
something about it?

Thanks and kind regards,
Joshua


___
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] \definefallbackfamily and small h

2014-08-05 Thread Mikael P. Sundqvist
On Tue, Aug 5, 2014 at 12:18 PM, Wolfgang Schuster
 wrote:
> You have to change the symbol for the planck constant which is used
> by unicode for the mathematical small italic h, you can see in the unicode
> chart (http://www.unicode.org/charts/PDF/U1D400.pdf) there is a gap
> on the position of the h.
>
> \definefontfamily [myface] [rm] [TeX Gyre Pagella]
>
> \definefallbackfamily[myface][math][TeX Gyre 
> Heros][preset=math:lowercaseitalic]
> \definefallbackfamily[myface][math][TeX Gyre 
> Heros][tf=style:italic,range=0x68,offset=0x210E]
>
> \definefontfamily[myface][math][TeX Gyre Pagella Math]
>
> \setuppagenumbering[state=stop]
>
> \setupbodyfont[myface]
>
> \starttext
> $h$
> \stoptext
>
> Wolfgang

Thank you very much, that is it!

Mikael
___
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] \definefallbackfamily and small h

2014-08-05 Thread Wolfgang Schuster

Am 04.08.2014 um 20:58 schrieb Mikael P. Sundqvist :

> Dear list,
> 
> I have a problem with the small letter h when I do a
> \definefallbackfamily. Example:
> 
> \definefontfamily [myface] [rm] [TeX Gyre Pagella]
> \definefallbackfamily[myface][math][TeX Gyre
> Termes][preset=math:lowercaseitalic]
> \definefontfamily[myface][math][TeX Gyre Pagella Math]
> 
> \setuppagenumbering[state=stop]
> 
> \setupbodyfont[myface]
> 
> \starttext
> $h$
> \stoptext
> 
> I get the h set in Pagella. With any other letter I get Termes... In
> my real example I do not want to replace with Termes but with a font
> (FrutigerLTstd) that does not have a math version.
> 
> It seems (when I look with gnome character map), that the letter h is
> missing (or, probably, to be found elsewhere) from all fonts.
> 
> Is there any chance I can fix this substitution manually for the letter h?


You have to change the symbol for the planck constant which is used
by unicode for the mathematical small italic h, you can see in the unicode
chart (http://www.unicode.org/charts/PDF/U1D400.pdf) there is a gap
on the position of the h.

\definefontfamily [myface] [rm] [TeX Gyre Pagella]

\definefallbackfamily[myface][math][TeX Gyre Heros][preset=math:lowercaseitalic]
\definefallbackfamily[myface][math][TeX Gyre 
Heros][tf=style:italic,range=0x68,offset=0x210E]

\definefontfamily[myface][math][TeX Gyre Pagella Math]

\setuppagenumbering[state=stop]

\setupbodyfont[myface]

\starttext
$h$
\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] Bug with the integration with tikz

2014-08-03 Thread Otared Kavian
Hi Günter,

I updated to 
ConTeXt  ver: 2014.07.30 10:31 MKIV beta  fmt: 2014.8.4  int: 
english/english
and tested again your minimal example: it is typeset correctly without any 
error message nor warnings from ConTeXt mkiv.

I am sorry I cannot give you any help regarding the origin of the problem on 
your side. The only observation would be that on your side ConTeXt seems to 
look for files outside the stand alone ConTeXt directory, while on my side 
everything happens inside it (see below). 

Best regards: OK
PS: here is part of the log file I  get:

[…]
resolvers   > modules > 'tikz' is loaded
open source > 3 > 4 > 
/context-minimal/tex/texmf-modules/tex/context/pgf/frontendlayer/t-tikz.tex
loading > ConTeXt User Module / tikz
open source > 4 > 5 > 
/context-minimal/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgf.tex
loading > ConTeXt User Module / pgf
open source > 5 > 6 > 
/context-minimal/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgfcor.tex
loading > ConTeXt User Module / pgfcor
open source > 6 > 7 > 
/context-minimal/tex/texmf-modules/tex/context/pgf/systemlayer/t-pgfsys.tex
loading > ConTeXt User Module / pgfsys
open source > 7 > 8 > 
/context-minimal/tex/texmf-modules/tex/context/pgf/utilities/t-pgfrcs.tex
loading > ConTeXt User Module / pgfrcs
open source > 8 > 9 > 
/context-minimal/tex/texmf-modules/tex/context/pgf/utilities/t-pgfmod.tex
loading > ConTeXt User Module / pgfmodules
close source> 8 > 9 > 
/context-minimal/tex/texmf-modules/tex/context/pgf/utilities/t-pgfmod.tex
open source > 8 > 10 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common.tex
open source > 9 > 11 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common-lists.tex
close source> 9 > 11 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common-lists.tex
close source> 8 > 11 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common.tex
open source > 8 > 12 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-context.def
close source> 8 > 12 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-context.def
open source > 8 > 13 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfrcs.code.tex
close source> 8 > 13 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfrcs.code.tex
close source> 7 > 13 > 
/context-minimal/tex/texmf-modules/tex/context/pgf/utilities/t-pgfrcs.tex
open source > 7 > 14 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys.code.tex
open source > 8 > 15 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfkeys.code.tex
open source > 9 > 16 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex
close source> 9 > 16 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex
close source> 8 > 16 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfkeys.code.tex
open source > 8 > 17 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgf.cfg
close source> 8 > 17 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgf.cfg
open source > 8 > 18 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-pdftex.def
open source > 9 > 19 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def
close source> 9 > 19 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def
close source> 8 > 19 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-pdftex.def
close source> 7 > 19 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys.code.tex
open source > 7 > 20 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex
close source> 7 > 20 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex
open source > 7 > 21 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsysprotocol.code.tex
close source> 7 > 21 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsysprotocol.code.tex
close source> 6 > 21 > 
/context-minimal/tex/texmf-modules/tex/context/pgf/systemlayer/t-pgfsys.tex
open source > 6 > 22 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcore.code.tex
open source > 7 > 23 > 
/context-minimal/tex/texmf-modules/tex/generic/pgf/math/pgfmath.code.t

Re: [NTG-context] Hyphenatedurl: custom line-break symbol, disable stretching

2014-08-01 Thread Joshua Krämer
On 2014-07-31, 14:49, Wolfgang Schuster wrote:

> From what I can see in the code there is no option to disable the
> stretch values.

Thanks for checking.

Kind regards,
Joshua


___
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] Hyphenatedurl: custom line-break symbol, disable stretching

2014-07-31 Thread Wolfgang Schuster

Am 31.07.2014 um 14:45 schrieb Joshua Krämer :

> On 2014-07-31, 6:42, Wolfgang Schuster wrote:
>> \def\hyphenatedurlseparator{→}
> 
> Thanks, I've added it to the wiki.  Now only the question remains how
> to disable URL stretching.

From what I can see in the code there is no option to disable the stretch 
values.

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] Hyphenatedurl: custom line-break symbol, disable stretching

2014-07-31 Thread Joshua Krämer
On 2014-07-31, 6:42, Wolfgang Schuster wrote:
> \def\hyphenatedurlseparator{→}

Thanks, I've added it to the wiki.  Now only the question remains how
to disable URL stretching.

Kind regards,
Joshua


___
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] Hyphenatedurl: custom line-break symbol, disable stretching

2014-07-30 Thread Wolfgang Schuster

Am 30.07.2014 um 23:02 schrieb Joshua Krämer :

> Dear list,
> 
> I typeset URLs with \hyphenatedurl, and have two questions.
> 
> (1) Is there a feature available to insert a custom symbol when a
> line-break occurs, e.g. \hookleftarrow?

\setuplayout[width=4cm]

\starttext

\hyphenatedurl{http://optimist.optimist/optimist/optimist.optimist#optimist}

\def\hyphenatedurlseparator{→}

\hyphenatedurl{http://optimist.optimist/optimist/optimist.optimist#optimist}

\stoptext

> (2) How can I disable the stretching between characters?  I've tried
> the following without success:
> 
>  \setupurl [space=no]
> 
>  \setupurl [urlspace=no]
> 
>  \unprotect
>  \def\lang_url_space{}
>  \protect

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] Hyphenatedurl: custom line-break symbol, disable stretching

2014-07-30 Thread Joshua Krämer
Dear list,

I typeset URLs with \hyphenatedurl, and have two questions.

(1) Is there a feature available to insert a custom symbol when a
line-break occurs, e.g. \hookleftarrow?

(2) How can I disable the stretching between characters?  I've tried
the following without success:

  \setupurl [space=no]

  \setupurl [urlspace=no]

  \unprotect
  \def\lang_url_space{}
  \protect

Thanks and kind regards,
Joshua


___
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] Anyone could help me with this error in filter module?

2014-07-28 Thread Aditya Mahajan

On Mon, 28 Jul 2014, Wolfgang Schuster wrote:



Am 28.07.2014 um 16:15 schrieb Xan :


Hi,

Any hint on that [https://github.com/adityam/filter/issues/17], please?


Don’t use \doifmode{…}{…} etc. with buffers or environments which rely on a 
buffer because you disable the function to keep end of lines in the input.

What you have to do in this case is to use the \startmode or \startnotmode 
commands.

\usemodule[filter]

\defineexternalfilter
   [python]
   [filtercommand={python \externalfilterinputfile\space > 
\externalfilteroutputfile},cache=force]

\starttext

\startmode[solucions]

\starttextrule{Solucions}

\startpython

\stoppython

\stoptextrule

\stopmode

\stoptext


Another option is (untested):

\defineexternalfilter
  [python]
  [
filtercommand={...},
before={\starttextrule{Solutions}},
after={\stoptextrule},
  ]

\startmode[solutions]
\setupexternalfilter[python][state=stop, read=no]
\stopmode

\starttext

\startpython
...
\stoppython
\stoptext

BTW, you can simplify your setup using:

\startbuffer[sympy]
from sympy.solvers import solve
from sympy import Symbol
from sympy import Eq

x = Symbol('x')
\stopbuffer

\defineexternalfilter
  [python]
  [
filtercommand={...},
bufferbefore={sympy},
  ]

\starttext
\startpython
print(solve(Eq(3*x + 2, 35), x))
\stoppython
\stoptext

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
___

<    4   5   6   7   8   9   10   11   12   13   >