Skip to content

Instantly share code, notes, and snippets.

@oxUnd
Last active April 6, 2019 14:52
Show Gist options
  • Save oxUnd/5da20ceaa903b821a300628f49d326b6 to your computer and use it in GitHub Desktop.
Save oxUnd/5da20ceaa903b821a300628f49d326b6 to your computer and use it in GitHub Desktop.
XeLaTeX + fontspec
\documentclass[a4paper]{article}
% force auto wrap
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt
\usepackage{fontspec}
\setmainfont{STKaiti}
\title{宋词序录}
\author{竹园笔者 \footnote{宋词序录}}
\date{锦元三年}
\begin{document}
\maketitle
\LaTeX
\section{大学}
大学
\section{论语}
子曰:有朋自远方来,不亦乐乎? \newline
酌酒與君君自寬,人情翻覆似波瀾。 白首相知猶按劍,朱門先達笑彈冠。 \\
草色全經細雨濕,花枝欲動春風寒。 世事浮雲何足問,不如高臥且加餐。
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment