honglonglong
V2EX  ›  问与答

MacTex如何显示中文

  •  
  •   honglonglong · Mar 22, 2011 · 8475 views
    This topic created in 5580 days ago, the information mentioned may be changed or developed.
    我google了一下,有教程,但是跟着做了还是无法显示中文。。。中文的地方依然是问好。不知道有谁知道可用的方法让它可以排中文的?谢啦
    我用的MacTex2010
    3 replies    1970-01-01 08:00:00 +08:00
    wlxiong
        1
    wlxiong  
       Mar 22, 2011
    我也是MacTeX2010 所有中文都这样处理的:
    1) 首先 \usepackage{CJK}
    2) 然后在要出现中文的地方用CJK环境:

    \begin{document}
    % Using CJK package
    \begin{CJK*}{UTF8}{gbsn}

    % the main body

    \end{CJK*}
    \end{document}
    hengly
        2
    hengly  
       May 27, 2012
    关键要在tex文件头指定编码方式:

    %!TEX encoding = UTF-8 Unicode

    这样再使用1F的方法就可以显示中文了。
    guoquan
        3
    guoquan  
       May 27, 2012
    CJK吧 1楼+1
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5910 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 03:01 · PVG 11:01 · LAX 20:01 · JFK 23:01
    ♥ Do have faith in what you're doing.