透過您的圖書館登入
IP:18.117.186.171
  • 學位論文

使用Shell腳本自動處理LATEX文稿之設計

A Design Using a Shell Script to Automatic Processing of the LATEX Document

指導教授 : 王德譽
若您是本文的作者,可授權文章由華藝線上圖書館中協助推廣。

摘要


LATEX文書排版系統穩定,且排版版面非常美觀。LATEX排版不像一般所見即所得的排版系統, 而是一種高階的排版語言,其原始文稿由ASCII碼字元組成,就如同撰寫程式一樣,只要更改文稿內容,就可改變文件排版及內容。Shell是LATEX的文字界面環境,本身功能就非常強大,再配合比較判斷及流程控制,Shell腳本可以像其他程式語言一樣,完成龐大複雜的工作。因此,本論文提出以shell腳本自動處理LATEX文稿的構想,只要先規劃好LATEX版面,再經由腳本的處理,就可以大量產生版面統一又美觀的文件。為進行實際系統設計,本論文以微積分出題及考題講義同步兩個系統進行設計並展示。微積分出題系統先建立微積分試題題庫,並於題庫中設定章節、題型及難易度等標記。再將授課班級、考試進度、出題難易度、考卷頁數等參數編輯成授課班級參數檔。最後,撰寫shell腳本依難易度、考試範圍等參數從題庫中隨機抽取題目,自動產生LATEX考卷及答案卷。講義考題同步系統設計則是一套不需獨立題庫之自動出題系統。只要講義以LATEX語法編寫且各節附有練習題,腳本會自動判讀講義章節,再依考試範圍抽取考題,不但不必建立題庫,亦可讓考題隨講義同步更新。講義中的練習題即是考試題庫,題庫永遠與講義同步更新,當講義練習題更改或章節變動,都不用擔心考題錯亂,可省去很多校正的時間。實際設計的兩套出題系統,都只要設定基本參數,就可以一個腳本命令完成整學期的所有作業或考卷出題。目前系統已實際使用在教學上,不但大大的節省出題的人工作業,出題腳本更配合linux系統crontab例行性工作的設定,於每週繳交作業或考完試後,自動上傳答案至教學平台供學生參考,達到全自動化出題之目的。

關鍵字

自動出題 LATEX Linux Shell腳本

並列摘要


LATEX typesetting system is stable, and can be edited out of a very beautiful mathematical symbols and equations. LATEX unlike general WYSIWYG typesetting system, but a highend typesetting language. LATEX manuscript form for the ASCII character code can be changed by the syntax and content of the manuscript to change the output layout. Shell is a very powerful Linux command line environment, coupled with the judgment and process control, shell scripts can be like any other programming language to complete the large and complex work. Therefor, this paper proposes the idea of using shell scripts to automatically deal with LATEX document. The first plans for the LATEX layout, through the processing of the script, a large number of the layout unity and beautiful file. In order to confirm the idea is feasible, this paper designs two quiz system to verify. Calculus quiz system must use the LATEX syntax to create a question bank containing chapters, types and difficulty tags. Then edit the class parameter file contains a question the range and difficulty parameters. Finally, write a shell script to randomly selected from the questions in the exam according to these parameters, and automatically generate the examination papers. The notes exam synchronization system is a no independent question bank automatically system. As long as notes written in LATEX syntax to join the exercisexs in the sections, the script automatically interpret the notes section taken in accordance with the exam range, not only do not need to create the question bank, and also allow exam synchronized with the notes. Notes exercises is the question bank, the question bank always aynchronized with the notes, notes even chapters to change, do not worry about the exam disorder, can save a lot of correction time. The actual design of the two quiz xystems, setting out the basic parameters of the question, can a script command to complete whole semester all the papers out of the question. The current systems have actually been used in teaching, but also proven to greatly reduce the manual work. The design of the script with the linux system crontab routine work setting, a week after the exam, and automatically upload the answer to the teaching platform to provide students with inquiries, to achieve the purpose of fully automated.

並列關鍵字

Shell script Linux LATEX quiz system.

參考文獻


[1]C. Wright,“Technical writing tools for engineers and scientists,” Computing in Science & Engineering, vol. 12, pp. 98-103. 2010.
[3]P. Flynn, Formatting information An introduction to typesetting with LATEX. Cork: Silmaril, 5th ed., 2011.
[11]陳佳吟,柯明憲,吳紫葦,張俊盛,“電腦輔助英文文法出題系統,”in 第十七屆自然語言與語音處理研討會,pp. 155-163, september 2005.
[12]林玥,“設計幫助學童學習之自動出題資訊系統,”Master''s thesis, 暨南大學, 2010.
[13]張維高,“基於文法剖析之英語輔助學習系統,”Master''s thesis, 成功大學, 2010.

被引用紀錄


廖建凱(2009)。支援播放設備平移之串流多媒體播放機制〔碩士論文,朝陽科技大學〕。華藝線上圖書館。https://www.airitilibrary.com/Article/Detail?DocID=U0078-1111200915522012
謝帛勳(2014)。Linux 實機操作測驗與評分系統設計〔碩士論文,朝陽科技大學〕。華藝線上圖書館。https://www.airitilibrary.com/Article/Detail?DocID=U0078-2611201410182002

延伸閱讀