[pstricks] FYI: Stella maris on nautical chart (Example, minor questions)
TeXnicer
texnicer at web.de
Sun Feb 19 10:07:38 CET 2017
Am 19.02.2017 um 09:40 schrieb Patrice MEGRET:
> Dear Carsten,
>
> I recommand you to use the siunitx package for writing angles: \ang{degree;nim;sec}
>
Dear Patrice,
thanks for taking a look at my code. Indeed, I was wondering about the
proper way setting nautical datums. As I learned from your proposal,
\ang:
- sets no blank behind degree
- degree is composed of simple ° (\textdegree of pakage textcomp)
- minute/second-signs are composed of $\prime$
I will take a closer look at that package, since I remember only siunits.
Kind regards,
Carsten
% ---
\documentclass[]{minimal}
\usepackage[utf8]{inputenc}
\usepackage{siunitx}
\sisetup{detect-all}
\usepackage{textcomp}
\usepackage{xcolor}
\parindent=0pt
\newcommand{\myFont}{\fontsize{6pt}{8pt}\color{magenta}\sffamily}
\begin{document}
42\textdegree\,42'\,N~52\textdegree\,13'\,W\\
42$^\circ$\,42$^\prime$\,N~52$^\circ$\,13$^\prime$\,W\\
42\textdegree42$^\prime$\,N~52\textdegree13$^\prime$\,W\\
\ang{42;42;}\,N~\ang{52;13;}\,W\\
\myFont
42\textdegree\,42'\,N~52\textdegree\,13'\,W\\
42$^\circ$\,42$^\prime$\,N~52$^\circ$\,13$^\prime$\,W\\
42\textdegree42$^\prime$\,N~52\textdegree13$^\prime$\,W\\
\ang{42;42;}\,N~\ang{52;13;}\,W\\
\end{document}
More information about the PSTricks
mailing list