Skip to content

Instantly share code, notes, and snippets.

@aminophen
Created July 24, 2015 15:15
Show Gist options
  • Save aminophen/8fb49da1f0d6d29015c9 to your computer and use it in GitHub Desktop.
Save aminophen/8fb49da1f0d6d29015c9 to your computer and use it in GitHub Desktop.
論語をロンゴロンゴ組版してみる遊び
% * Boustrophedon & Rongorongo Package ``boustrophedon.sty''
% https://github.com/aminophen/boustrophedon.sty
% * 縦書きハック (by doraTeX):https://www.overleaf.com/read/qkvrbgzqrmrv
% * 論語原文:http://www5f.biglobe.ne.jp/~mind/knowledge/classic/rongo001.html
\documentclass[a5paper,papersize,landscape,dvipdfmx]{jsarticle}
\makeatletter
\AtBeginDocument{\tate\message{《縦組モード》}\adjustbaseline}
\setlength{\@tempdima}{\textheight}
\setlength{\textheight}{\textwidth}
\setlength{\textwidth}{\@tempdima}
\def\@maketitle{%
\newpage\null
\vskip 2em
\begin{center}%
{\huge \@title \par}%
\end{center}%
\par\vskip 1.5em
}
\makeatother
\pagestyle{empty}
\usepackage{boustrophedon}
\begin{document}
\title{論語 学而篇}
\maketitle
\begin{rongorongo}
子曰、学而時習之、不亦説乎、有朋自遠方来、不亦楽乎、人不知而不慍、不亦君子乎。
有子曰、其為人也、孝悌而好犯上者鮮矣、不好犯上而好作乱者、未之有也、君子務本、本立而道生、孝悌也者、其為仁之本与。
子曰、巧言令色、鮮矣仁。
曾子曰、吾日三省吾身、為人謀而忠乎、与朋友交言而不信乎、伝不習乎。
子曰、道千乗之国、敬事而信、節用而愛人、使民以時。
子曰、弟子入則孝、出則弟、謹而信、汎愛衆而親仁、行有余力、則以学文。
子夏曰、賢賢易色、事父母能竭其力、事君能致其身、与朋友交、言而有信、雖曰未學、吾必謂之学矣。
子曰、君子不重則不威、学則不固、主忠信、無友不如己者、過則勿憚改。
\end{rongorongo}
\end{document}
@aminophen
Copy link
Author

サブブログ「牛耕式とロンゴロンゴ」より。偶然見つけたパッケージをちょっと弄って遊んでみただけ。パッケージ本体は改善の余地がかなりある…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment