ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Csikos Bela <bcsikos425@freemail.hu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: how to insert symbols into document?
Date: Mon, 13 Apr 2015 13:14:30 +0200 (CEST)	[thread overview]
Message-ID: <freemail.20150413131430.86797.1@fmxmldata02.freemail.hu> (raw)
In-Reply-To: <91C87538-D30F-4E65-B843-657F28495A45@gmail.com>

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
))</usr/local/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf></usr/local/context/tex/texmf/fonts/opentype/public/lm/lmmono12-regular.otf></usr/local/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>

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 + 100000
mkiv lua stats  > current memory usage: 49 MB (ctx: 49 MB)
mkiv lua stats  > runtime: 6.433 seconds, 1 processed pages, 1 shipped pages, 0.155 pages/second

mtx-context     | fatal error: return code: 1


How can fix this?



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

  reply	other threads:[~2015-04-13 11:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-12 23:29 Csikos Bela
2015-04-13  4:15 ` Otared Kavian
2015-04-13 11:14   ` Csikos Bela [this message]
2015-04-13 12:04     ` Otared Kavian
2015-04-13 20:51 ` Wolfgang Schuster
2015-04-18 11:21   ` Csikos Bela
2015-04-18 11:43     ` Wolfgang Schuster
2015-04-23 14:26       ` Csikos Bela
2015-04-18 11:51     ` Hans Hagen
2015-04-18 14:09       ` Wolfgang Schuster
2015-04-18 14:53         ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=freemail.20150413131430.86797.1@fmxmldata02.freemail.hu \
    --to=bcsikos425@freemail.hu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).