ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: how to insert symbols into document?
Date: Mon, 13 Apr 2015 22:51:54 +0200	[thread overview]
Message-ID: <B3D1E8B0-DE30-4B8C-85FD-D8377B56C94E@gmail.com> (raw)
In-Reply-To: <freemail.20150413012912.632.1@fmxmldata06.freemail.hu>


> Am 13.04.2015 um 01:29 schrieb Csikos Bela <bcsikos425@freemail.hu>:
> 
> 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
___________________________________________________________________________________

  parent reply	other threads:[~2015-04-13 20:51 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
2015-04-13 12:04     ` Otared Kavian
2015-04-13 20:51 ` Wolfgang Schuster [this message]
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=B3D1E8B0-DE30-4B8C-85FD-D8377B56C94E@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --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).