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 4:09 PM, Wolfgang Schuster wrote:



Am 18.04.2015 um 13:51 schrieb Hans Hagen mailto:pra...@wxs.nl>>:

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


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)


Fallbacks don’t work when you use \iffontchar to check if the character
is in the font
even though it is available in the fallback font.

\definefallbackfamily [testfont] [rm] [DejaVu Serif] [range=0x25C6]
\definefontfamily [testfont] [rm] [TeX Gyre Pagella]

\setupbodyfont[dejavu]

\starttext

◆ : \checkedtextchar{"25C6}{{\tttf ??}}

\switchtobodyfont[testfont]

◆ : \checkedtextchar{"25C6}{{\tttf ??}}

\stoptext


ok, i'll include the fallback sin the test (next beta)

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:51 schrieb Hans Hagen :
> 
> On 4/18/2015 1:21 PM, Csikos Bela wrote:
>> 
>> 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)


Fallbacks don’t work when you use \iffontchar to check if the character is in 
the font
even though it is available in the fallback font.

\definefallbackfamily [testfont] [rm] [DejaVu Serif] [range=0x25C6]
\definefontfamily [testfont] [rm] [TeX Gyre Pagella]

\setupbodyfont[dejavu]

\starttext

◆ : \checkedtextchar{"25C6}{{\tttf ??}}

\switchtobodyfont[testfont]

◆ : \checkedtextchar{"25C6}{{\tttf ??}}

\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 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] 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'
>  | 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
> mk

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-regular.otf, lmroman12-regular.otf
mkiv lua stats  > fonts load time: 0.653 seconds for 5 fonts, 2 shared in 
backend, 2 common vectors, 0 common hashes
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.80.0 (tex live 
2015/dev) (rev 5195)
mkiv lua stats  > control sequences: 38352 of 65536 + 10
mkiv lua stats  > current memory usage: 49 MB (ctx: 49 MB)
mkiv lua stats  > runtime: 6.433 second

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
___