在书类文档上写一些汉字

Write some chinese characters on a book type document

提问人:Tatan Godoy 提问时间:10/7/2023 最后编辑:Tatan Godoy 更新时间:10/7/2023 访问量:29

问:

我正在尝试写一本书类型的文档,我需要在里面放一些汉字。我在此页面中阅读了问题的答案,但它对我不起作用。文件语言为西班牙语。

我的系统是 TeXstudio 4.6.3 (git 4.6.3) usingo Qt 版本 6.5.2,使用 Qt 6.5.2 R 编译。

我使用的编译器是pdflatex

小米代码是这样的:

\documentclass{book}
\usepackage\[spanish\]{babel}
\usepackage\[latin1\]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}

\usepackage{CJKutf8} %chinese characters
\usepackage{fancyhdr}

\title{Titulo}
\author{Autor}
\date{}

\usepackage{enumerate}

\begin{document}
\maketitle
\frontmatter

\input{prologo.tex}
\tableofcontents

\input{prologo.tex}
\tableofcontents

\mainmatter

\begin{CJK}{UTF8}{bsmi}你好吗 李爽\\end{CJK}

\end{document}

我正在尝试在我的章节文档中放入一些汉字,并在生成的 pdf 文档中查看它。

LaTeX CJK PDFLATEX TexStudio 西班牙语

评论

0赞 TomBen 10/7/2023
您可以尝试使用package在文档中写入汉字:ctan.org/pkg/ctexctex

答: 暂无答案