Typing glyphs: Difference between revisions

Jump to navigation Jump to search
392 bytes added ,  14:04, 19 October 2020
move rendered doc
(move rendered doc)
(4 intermediate revisions by 2 users not shown)
Line 88: Line 88:
=== LaTeX ===
=== LaTeX ===


In order to typeset APL using <span class="texhtml" style="font-family: 'CMU Serif', cmr10, LMRoman10-Regular, 'Latin Modern Math', 'Nimbus Roman No9 L', 'Times New Roman', Times, serif;">L<span style="text-transform: uppercase; font-size: 0.75em; vertical-align: 0.25em; margin-left: -0.36em; margin-right: -0.15em; line-height: 1ex;">a</span>T<span style="text-transform: uppercase; vertical-align: -0.5ex; margin-left: -0.1667em; margin-right: -0.125em; line-height: 1ex;">e</span>X</span>, the following template can be used:
In order to typeset APL using LaTeX, you need to be sure your LaTeX engine has full Unicode support. At the time of writing, LuaLaTeX and XeLaTeX are two of the most popular such alternatives, both included with TeX Live.
 
After ensuring you have a LaTeX engine that is Unicode capable, you need to make sure your .tex document is using a [[Fonts|font]] that has the APL glyphs you want to type. One way to do this is through the fontspec package, as seen in the example template below.
 
To check your setup is fully functional you can try compiling the following template:
[[File:LaTeX APL template.png|thumb|right|Screenshot of the typeset document]]
<source lang=latex>
<source lang=latex>
\documentclass[11pt]{article}
\documentclass[11pt]{article}
Line 104: Line 109:
\end{document}
\end{document}
</source>
</source>
Depending on whether you want the whole document to use the APL font or not, you may remove the command to set the main font. If you do so, APL glyphs will be rendered correctly inside code listings and similar environments, but not in the main body of the document.
== Hardware ==


[[File:Dyalog US keyboard.jpg|thumb|right|US keyboard with [[Dyalog APL]] glyphs]]
[[File:Dyalog US keyboard.jpg|thumb|right|US keyboard with [[Dyalog APL]] glyphs]]


== Hardware ==
A couple of keyboards are being sold with APL symbols pre-printed onto the key caps:
A couple of keyboards are being sold with APL symbols pre-printed onto the key caps:


Navigation menu