[心得] 在windows使用miktex2.9+texmaker4.1

看板LaTeX (論文排版)作者 (燢)時間11年前 (2013/11/10 23:02), 編輯推噓2(202)
留言4則, 4人參與, 最新討論串1/1
windows環境下, 中文latex 使用者的福音 1. 先安裝 miktex2.9 (http://miktex.org/) 2. 再安裝 texmaker 4.1 (http://www.xm1math.net/texmaker/download.html#windows) 例 在texmaker中貼入 mytest.tex 兩步即可產生 pdf 文件 \documentclass{article} \usepackage{fontspec} %加這個就可以設定字體 \setmainfont{微軟正黑體} %直接設定Windows中的字型 \XeTeXlinebreaklocale "zh" %這兩行一定要加,中文才能自動換行 \XeTeXlinebreakskip = 0pt plus 1pt %這兩行是texWorks範例中所缺少的 %加了這四行後,就可以隨意的打中文,接下來的跟一般的LeTeX都一樣 \title{我是標題} \author{我是作者} \date{} %不要日期 \begin{document} \maketitle 中文測試中文測試中文測試中文測試中文測試中文測試,中文測試中文測試,中文 測試中文測試中文測試中文測試中文測試中文測試,中文測試中文測試。 English Test. This is a simple template for a XeLaTeX document using the article class, with the fontspec package to easily select fonts. \end{document} -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 1.34.214.171

11/10 23:29, , 1F
建議併用xeCJK可以中西文分開設定.
11/10 23:29, 1F

11/12 15:52, , 2F
謝謝大大
11/12 15:52, 2F

11/29 15:07, , 3F
請問是哪個版本的windows?
11/29 15:07, 3F

11/29 18:03, , 4F
XP以上版本不都可以用?
11/29 18:03, 4F
文章代碼(AID): #1IVw04TH (LaTeX)
文章代碼(AID): #1IVw04TH (LaTeX)