From d8e407917e49cf98619405fa7cd0660f92a99a58 Mon Sep 17 00:00:00 2001 From: EthanDeng Date: Sun, 18 Sep 2022 20:01:29 +0800 Subject: [PATCH] brackets problem --- elegantpaper-cn.tex | 2 +- elegantpaper-en.tex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/elegantpaper-cn.tex b/elegantpaper-cn.tex index 8c77615..5f0565b 100644 --- a/elegantpaper-cn.tex +++ b/elegantpaper-cn.tex @@ -51,7 +51,7 @@ 此模板定义了一个语言选项 \lstinline{lang},可以选择英文模式 \lstinline{lang=en}(默认)或者中文模式 \lstinline{lang=cn}。当选择中文模式时,图表的标题引导词以及参考文献,定理引导词等信息会变成中文。你可以通过下面两种方式来选择语言模式: \begin{lstlisting} \documentclass[lang=cn]{elegantpaper} % or -\documentclass{cn}{elegantpaper} +\documentclass[cn]{elegantpaper} \end{lstlisting} \textbf{注意:} 英文模式下,由于没有添加中文宏包,无法输入中文。如果需要输入中文,可以通过在导言区引入中文宏包 \lstinline{ctex} 或者加入 \lstinline{xeCJK} 宏包后自行设置字体。 diff --git a/elegantpaper-en.tex b/elegantpaper-en.tex index 91c4cf7..0427366 100644 --- a/elegantpaper-en.tex +++ b/elegantpaper-en.tex @@ -45,7 +45,7 @@ This template is based on the standard \LaTeX{} article class, hence the argumen Language mode option \lstinline{lang} allows two alternative inputs, \lstinline{lang=en} (default) for English or \lstinline{lang=cn} for Chinese. \lstinline{lang=cn} will make the caption of figure/table, abstract name, refname etc. Chinese. You can use this option as \begin{lstlisting} \documentclass[lang=cn]{elegantpaper} % or -\documentclass{cn}{elegantpaper} +\documentclass[cn]{elegantpaper} \end{lstlisting} \textbf{Note:} Under the English mode \lstinline{lang=en}, Chinese characters are not allowed. To type in Chinese, please load \lstinline{ctex} or \lstinline{xeCJK} package at the preamble as: \begin{lstlisting}