吳聰敏老師的討論區 首頁 吳聰敏老師的討論區
經濟學與 cwTeX 討論區
 
 常見問題常見問題   搜尋搜尋   會員列表會員列表   會員群組會員群組   會員註冊會員註冊 
 個人資料個人資料   登入檢查您的私人訊息登入檢查您的私人訊息   登入登入 

剛開始使用上的一些問題

 
發表新主題   回覆主題    吳聰敏老師的討論區 首頁 -> cwTeX 討論區
上一篇主題 :: 下一篇主題  
發表人 內容
jkbolten3



註冊時間: 2018-06-23
文章: 4

發表發表於: 星期六 六月 23, 2018 10:35 pm    文章主題: 剛開始使用上的一些問題 引言回覆

安裝完成後按使用說明書 打開Texstudio 依據說明書開啟範本,成
功以ctrl+shift+X 跑example1.ctx

接著如下圖處點擊新增後,我把新增的檔按存為example1.tex 內容完
全仿造example1.ctx 結果出現圖二的結果。

https://imgur.com/dLTfmC9 圖一

https://imgur.com/xZQoHQv 圖二

請問是因為我用Texstudio新增的當按只能存為tex檔嗎?

我不是程式高手 只注意到 無法存為 ctx檔的差異

如果是因為這個原因,請問ctx 檔如何生成呢?

感謝您


另外,

我試著以ctrl+shift+X 執行exmaple 資料夾/book內的

示範檔"CXbook-ps.ctx"

結果出現以下錯誤

https://imgur.com/X2rK9nR 圖三

message的部分Confused

Process started: cwps-py.bat "CXbook-ps"

CConfused\Program Files\cwtex5\tex\examples\book>rem For TeXstudio

CConfused\Program Files\cwtex5\tex\examples\book>rem cwtex5.txsprofile setup as follows, (Confused filename without extension)

CConfused\Program Files\cwtex5\tex\examples\book>rem

CConfused\Program Files\cwtex5\tex\examples\book>rem Tools\Commands\user0=cwpdf-py.bat

CConfused\Program Files\cwtex5\tex\examples\book>rem

CConfused\Program Files\cwtex5\tex\examples\book>if not exist CXbook-ps.ctx if exist CXbook-ps.tex latexmk.exe -ps -silent -synctex=1 CXbook-ps.tex

CConfused\Program Files\cwtex5\tex\examples\book>if exist CXbook-ps.ctx pypy.exe "cConfused\Program Files\cwtex5\bin\cwpdf.py" -ts_win -ps CXbook-ps.ctx

This is cwtex5, version 5.1 beta Copyright (c) Tsong-Min Wu and Tsong-Huey Wu

'CXbook-ps.ctx' processed [19] Done. 0.117000 seconds

lualatex: warning: running with administrator privileges

This is LuaTeX, Version 1.07.0 (MiKTeX 2.9.6630 64-bit)
system commands enabled.
(./CXbook-ps.tex

LaTeX2e <2017-04-15>

(using cache: CConfused/Users/user/AppData/Local/MiKTeX/2.9/luatex-cache/generic)

luaotfload | main Confused initialization completed in 0.563 seconds
Babel <3.18> and hyphenation patterns for 1 language(s) loaded.

(./xcinput.tex

)

("CConfused/Program Files/MiKTeX 2.9/tex/latex/base/book.cls"
Document Class: book 2014/09/29 v1.4h Standard LaTeX document class

("CConfused/Program Files/MiKTeX 2.9/tex/latex/base/bk12.clo"

(load luc: CConfused/Users/user/
AppData/Local/MiKTeX/2.9/luatex-cache/generic/fonts/otl/lmroman12-regular.luc)

)

)

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.2 .
..
?

Error: Command crashed: cwps-py.bat "CXbook-ps"

Process exited with error(s)


錯誤的部分.. 請問老師該如何修正方能正常執行?

以Texstudio執行 CXbook-ps.ctx 時

右上方編輯視窗內第15,16,18,19 行出現紅色底背字的部分

這是嚴重的問題嗎?

因為我在試執行example 3-6時也曾出現,

但是

這些example檔似乎可以產出pdf檔沒問題的。


希望老師指點了 。
回頂端
檢視會員個人資料 發送私人訊息
tmwu
Site Admin


註冊時間: 2003-03-03
文章: 1535

發表發表於: 星期一 六月 25, 2018 10:24 am    文章主題: Re: 剛開始使用上的一些問題 引言回覆

> 請問是因為我用Texstudio新增的當按只能存為tex檔嗎?

檔案儲存時, 請用 Save As, 自行加入 .ctx
如存為 .tex, 排版程式將假設文稿內未使用中文,
故結果不會正確。

請先看以上是否解決問題。
若可以, 再來處理以下問題。
回頂端
檢視會員個人資料 發送私人訊息 發送電子郵件
jkbolten3



註冊時間: 2018-06-23
文章: 4

發表發表於: 星期一 六月 25, 2018 2:52 pm    文章主題: 引言回覆

可以 目前第一個問題解決了 以save as 在檔名新增.ctx
回頂端
檢視會員個人資料 發送私人訊息
tmwu
Site Admin


註冊時間: 2003-03-03
文章: 1535

發表發表於: 星期二 六月 26, 2018 1:46 pm    文章主題: Re: 剛開始使用上的一些問題 引言回覆

我試著以ctrl+shift+X 執行exmaple 資料夾/book內的
示範檔"CXbook-ps.ctx"

結果出現以下錯誤

...
This is cwtex5, version 5.1 beta Copyright (c) Tsong-Min Wu and Tsong-Huey Wu

'CXbook-ps.ctx' processed [19] Done. 0.117000 seconds

...
************
正確結果如下Confused

This is cwtex5, version 5.1 beta Copyright (c) Tsong-Min Wu and Tsong-Huey Wu

'cx-macro.ctx' processed [379]

'cx-intro.ctx' processed [252]

'cx-gdp.ctx' processed [2287]

'CXbook-ps.ctx' processed [79] Done. 0.780000 seconds

我目前猜測, 你可能沒有系統管理員身分,
請試
http://homepage.ntu.edu.tw/~ntut019/cwtex/cwtex5-guide.pdf
第1.5節說明, 看能否解決問題。
回頂端
檢視會員個人資料 發送私人訊息 發送電子郵件
jkbolten3



註冊時間: 2018-06-23
文章: 4

發表發表於: 星期三 六月 27, 2018 8:46 pm    文章主題: 引言回覆

win10使用權限已經打開了,其他example檔可運行有輸出結果的,但是那個檔案還是不行。

不過,thesis裡面的例子,是可以跑的,我可以先參考thesis裡面的例子,問題算是有緩解了,感激老師提的軟體和回復。
回頂端
檢視會員個人資料 發送私人訊息
從之前的文章開始顯示:   
發表新主題   回覆主題    吳聰敏老師的討論區 首頁 -> cwTeX 討論區 所有的時間均為 台灣時間 (GMT + 8 小時)
1頁(共1頁)

 
前往:  
無法 在這個版面發表文章
無法 在這個版面回覆文章
無法 在這個版面編輯文章
無法 在這個版面刪除文章
無法 在這個版面進行投票


Powered by phpBB © 2001, 2005 phpBB Group
正體中文語系由 phpbb-tw 維護製作