diff --git a/doc/api/hubs_ev3brick.inc b/doc/api/hubs_ev3brick.inc index fe2db67..5c4f8ba 100644 --- a/doc/api/hubs_ev3brick.inc +++ b/doc/api/hubs_ev3brick.inc @@ -163,8 +163,16 @@ **Example: Say hello... in several ways.** + .. raw:: latex + + \begin{CJK}{UTF8}{gbsn} + .. literalinclude:: ../../pybricks-projects/snippets/ev3/screen_print/main.py + .. raw:: latex + + \end{CJK} + .. automethod:: pybricks.hubs::EV3Brick.screen.set_font **Example:** See example in :meth:`print`. diff --git a/doc/common/conf.py b/doc/common/conf.py index 87ef2b6..8bbfaa3 100644 --- a/doc/common/conf.py +++ b/doc/common/conf.py @@ -199,6 +199,7 @@ latex_elements = { # Additional stuff for the LaTeX preamble. # 'preamble': r''' + \usepackage{CJKutf8} \makeatletter \fancypagestyle{normal}{ \fancyhf{}