El jue., 30 ago. 2018 a las 18:42, Saša Janiška (<[email protected]>)
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{"XXXX}}


where XXXX 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.
>

Reply via email to