0

I want the text to be laid out exactly as it appears here in the monospaced code environment:

\documentclass[a4paper,12pt]{article}
\usepackage[left=0.7in,right=0.7in,top=0.7in,bottom=0.7in]{geometry}
\usepackage{xcolor}
\usepackage{fontspec}\setmainfont{font.otf}
\definecolor{light}{HTML}{111111}
\newcommand{\cc}[1]{\textcolor{light}{#1}}
\begin{document}

\cc{第一章}

道可道,非恆道
名可名,非恆名。
無名天地之始;

\cc{第一章}

道可道,非恆道
名可名,非恆名。
無名天地之始;

\cc{第一章}

道可道,非恆道
名可名,非恆名。
無名天地之始;

...

\begin{verbatim}

How do I do this? Right now it's giving me indents for every new block, and the newlines within each block don't work (I would need to add \\ or \newline everywhere). How can I leave it as is and get it to render without indents and with new lines?

It would also be nice to know how to set the font size of the Chinese characters. I am using the CJK Noto font.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.