Skip to content

Instantly share code, notes, and snippets.

@wtsnjp
Created March 4, 2018 07:50
Show Gist options
  • Select an option

  • Save wtsnjp/df27584e1ca5a7258a3263ce5ddcd89c to your computer and use it in GitHub Desktop.

Select an option

Save wtsnjp/df27584e1ca5a7258a3263ce5ddcd89c to your computer and use it in GitHub Desktop.
%#!lualatex
\documentclass[uplatex]{jsarticle}
\usepackage[utf8]{inputenc}
\usepackage[prefercjkvar]{pxcjkcat}
\cjkcategory{cjk12}{noncjk}
\usepackage{okumacro}
\usepackage{newunicodechar}
\makeatletter
\def\x@my@ruby#1《#2》{\ruby{#1}{#2}}
\newunicodechar{|}{\x@my@ruby}
\makeatother
\begin{document}
|\TeX 言語《アレ》
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment