Re: using unicode instead of marvosym symbols

2018-09-02 Thread Saša Janiška
On Thu, 30 Aug 2018 19:05:00 +0200
Ricardo Berlasso  wrote:

> After setting your document to use XeTeX and choosing an appropriate
> font, in the Preamble write something like this
> 
> \newcommand{\Name}{\symbol{"}}
> 
> 
> where  is the corresponding Unicode hex code. Now, on your
> document open a TeX box (Ctrl-L) and type \Name in it. That's all.

Perfect!! It works nicely with \input{symbols}, so I can define all the
required commands in a single file for re-use...and I use it with LuaTeX
engine. For quite some time I was considering to learn/use ConTeXt, but the
fact is that LyX/LaTeX are simply enjoying more (community) support.


Sincerely,
Gour

-- 
The spirit soul bewildered by the influence of false ego thinks
himself the doer of activities that are in actuality carried out
by the three modes of material nature.


pgpYv1NCy2GYP.pgp
Description: OpenPGP digital signature


Re: using unicode instead of marvosym symbols

2018-08-30 Thread Ricardo Berlasso
El jue., 30 ago. 2018 a las 18:42, Saša Janiška ()
escribió:

>
> Hello,
>
> I plan to start using LyX for writing my study notes where the content
> requires
> lot of astro symbols. In the past I was using marvosym font/package and
> writing
> e.g. \Sun \Aries etc.
>
> Now I'd like to use Unicode symbols instead of marvosym and wonder what
> would
> be the optimal way to do it *without* the need to type Unicode character's
> hex
> code, iow. via some shortcut like above (\Sun...)?
>

It's possible by using XeTeX, a good font, and a bit of code in the
preamble. But be aware you'll need to find an OpenType font with ALL the
symbols you need, otherwise you'll be dealing with a lot of compilation
errors!

After setting your document to use XeTeX and choosing an appropriate font,
in the Preamble write something like this

\newcommand{\Name}{\symbol{"}}


where  is the corresponding Unicode hex code. Now, on your document
open a TeX box (Ctrl-L) and type \Name in it. That's all.

Regards,
Ricardo



>
>
> Sincerely,
> Gour
>
> --
> A person is said to be established in self-realization and is called a
> yogī [or mystic] when he is fully satisfied by virtue of acquired
> knowledge and realization. Such a person is situated in transcendence
> and is self-controlled. He sees everything — whether it be pebbles,
> stones or gold — as the same.
>


using unicode instead of marvosym symbols

2018-08-30 Thread Saša Janiška

Hello,

I plan to start using LyX for writing my study notes where the content requires
lot of astro symbols. In the past I was using marvosym font/package and writing
e.g. \Sun \Aries etc.

Now I'd like to use Unicode symbols instead of marvosym and wonder what would
be the optimal way to do it *without* the need to type Unicode character's hex
code, iow. via some shortcut like above (\Sun...)?


Sincerely,
Gour

-- 
A person is said to be established in self-realization and is called a
yogī [or mystic] when he is fully satisfied by virtue of acquired
knowledge and realization. Such a person is situated in transcendence
and is self-controlled. He sees everything — whether it be pebbles,
stones or gold — as the same.


pgpgu25XIASL1.pgp
Description: OpenPGP digital signature