tzhuan / ntu-thesis Goto Github PK
View Code? Open in Web Editor NEWNTU thesis template for XeLaTeX
NTU thesis template for XeLaTeX
臺大學位論文格式規範
http://web.lib.ntu.edu.tw/question//node/619
原則上中文以12號楷書(細明體及標楷體為主),英文以12號Times New Roman打字,中文撰寫以1.5間距,英文則以雙行間距,本文留白上3公分、下2公分、左右各3公分,字體顏色為黑色,文內要加標點,全文不得塗汙刪節,不得使用複寫紙,各頁正下方應置中註明頁碼。
但現在看起來中英文都是預設行距
英文是否加上
\renewcommand{\baselinestretch}{1.6}
...
\setCJKmainfont{AR PL UMing TW}
\setCJKfamilyfont{sidepagefont}[Vertical=RotatedGlyphs]{AR PL UMing TW} %額外定義 makespine 需要 的 sidepagefont 資訊
...
\makecover
\makespine
...
編譯時會出現以下錯誤
! LaTeX Error: There's no line here to end.
See the LaTeX manual or LaTeX Companion for explanation.
Type H for immediate help.
...l.71 \makespine
?
make WATERMARK=1 DOT=1 FIRSTPAGE=1
當中的 DOT
應該是 DOI
a typo may cause make error:
l.12: \collage should be \college
我在台大這篇「二、加入 DOI 碼」看到,在封面右下角需要有 doi 碼,但是即便我按照最初的設定,在 ntuvars.tex 中放入底下程式碼,也還是沒有在封面看到 doi 碼。
\doi{doi:10.6342/NTU2017XXXXX}
還請大大幫忙一下...真的很感謝您。LaTeX 真的省了我很多很多的排版功夫!
when I compile the project using xelatex thesis.tex
,show error:
(fontspec) - 'italic small caps' (m/scit) with NFSS spec.:
(fontspec) - 'bold italic' (b/it) with NFSS spec.: <->"AR PL
(fontspec) KaitiM
(fontspec) Big5/OT:script=hani;language=dflt;embolden=4;slant=0.167
;mapping=tex-text;"
(fontspec) - 'bold italic small caps' (b/scit) with NFSS spec.:
! Extra \endgroup.
\document ->\endgroup
\let \BeforeStartOfDocument \@firstofone \cpt@beforest...
l.52 \begin{document}
?
! Emergency stop.
\document ->\endgroup
\let \BeforeStartOfDocument \@firstofone \cpt@beforest...
l.52 \begin{document}
End of file on the terminal!
Here is how much of TeX's memory you used:
28748 strings out of 476760
605135 string characters out of 5807904
1845482 words of memory out of 5000000
48507 multiletter control sequences out of 15000+600000
513325 words of font info for 50 fonts, out of 8000000 for 9000
1348 hyphenation exceptions out of 8191
130i,0n,132p,540b,245s stack positions out of 10000i,1000n,20000p,200000b,200000s
Am I missing something? what should I do to fixed this error.
目前 Makefile 中的 http://etds.lib.ntu.edu.tw/files/watermark.pdf
已經沒東西了,新的連結是 https://www.lib.ntu.edu.tw/doc/CL/watermark.pdf
make WATERMARK=1 DOT=1 FIRSTPAGE=1
: 產生包含首頁有浮水印和 DOI 的 thesis.dpf
make WATERMARK=1 DOT=1 FIRSTPAGE=1
: 產生包含首頁有浮水印和 DOI 的 thesis.pdf
照原先的code浮水印可能會蓋到圖片上
改成下面這樣(只是把*去掉)就可以讓浮水印放到背景,不會蓋到圖片
\newwatermark[allpages,xpos=6.1725cm,ypos=10.5225cm,scale=0.5]{\usebox\mybox}
圖書館說這樣是OK的
http://web.lib.ntu.edu.tw/question//node/626
不過這樣會讓審定書那頁沒有浮水印就是了
In thesis.tex, if one directly put a \chapter{} after the \appendix, it will not be numbered since \backmatter disables chapter numbering. Currently I remove \backmatter to solve this problem, but perhaps there are more elegant solutions.
Contents
List of Figures
这些还是英文的,
如果有时间的话,可以更新一下☻
您好,我在這裡下載台大論文浮水印並將其放置在 latex 目錄下編譯後,還是沒有看到浮水印。我有在 thesis.tex 中找到以下指令
\ifdefined\withwatermark \newwatermark*[allpages,xpos=6.1725cm,ypos=10.5225cm,scale=0.5]{\includegraphics{watermark.pdf}} \fi
不曉得是不是得按照您的 wiki 說的,另外下載程式才能放上浮水印呢?感謝您
gnu make: 如果您的系統有 gnu make,您可以直接使用本模版提供的 Makefile.
pdftk: 如果您要為論文加密,您可以安裝此軟體。
wget/curl/php/fetch: 如果您要為論文加上臺大浮水印,請您安裝上述其中一項軟體以下載臺大提供的浮水印 pdf 檔。
臺大學位論文格式規範
http://web.lib.ntu.edu.tw/question//node/619
原則上中文以12號楷書(細明體及標楷體為主),英文以12號Times New Roman打字,中文撰寫以1.5間距,英文則以雙行間距,本文留白上3公分、下2公分、左右各3公分,字體顏色為黑色,文內要加標點,全文不得塗汙刪節,不得使用複寫紙,各頁正下方應置中註明頁碼。
但geometry看起來上面是2公分,下面是3公分
\RequirePackage[top=2cm,left=3cm,bottom=3cm,right=3cm]{geometry}
請問是否改成
\RequirePackage[top=3cm,left=3cm,bottom=2cm,right=3cm]{geometry}
I can not access the university internal network, is there any public download source?
不好意思,我按照了下面這個教學來Build Latex。
http://www.teeboneding.com/blog/2013/06/01/write-ntu-master-thesis-with-xelatex-template-on-mac/
但是做到最後在Build的時候會跑出下面這個錯誤:
https://dl.dropboxusercontent.com/u/6400586/Error.png
不知道是不是哪邊我沒注意到QQ?
有鑒於最後繳交的時候大家用的都是掃描的 certification,
Line 50 in 13cfc8a
可以改成:
\ifdefined\withcertification
\includepdf[angle=0]{certification.pdf}
\else
\makecertification
\fi
並且在 Makefile 加:
ifdef CERTIFICATION
TEXFLAG+="\def\withcertification{1} "
endif
好像會比較方便?
在 textlive 環境下使用 textlive 的 xelatex 編譯時會出現錯誤
原因是在 ntuthesis.cls 的 第148, 157 的中文字和指令compiler無法分辨
所以只要把中文加上 {} 即可,修正過後 windows 上應該也可以編譯
The DOI just does not show up on the front page, no errors, no nothing (and yes, I did define doi
and withdoi
) 🤷♀️
I'm sure, its something I did that must be incompatible with something else, as always with LaTeX...
Or maybe it just won't actually work correctly with xelatex
... who knows...
Instead, I manipulated the watermark pdf
to also include the doi
:
\newsavebox\mybox
\savebox{\mybox}{
\tikz\node[scale=0.5,opacity=0.5, pin={[pin edge={white},pin distance=28.1cm,scale=0.8]270:doi\text{:}10.6342/NTUABCDEFG}]{\includegraphics{img/watermark.pdf}};%
}
\newwatermark*[allpages,xpos=6.1725cm,ypos=-0.7225cm]{\usebox\mybox}
NOTE: Sadly, I could not even use the \@doi
variable (since that caused more errors), and thus had to resort to hardcoding the actual number.
nkai字型下載鏈接失效,且網上抓不到。然後texmaker一直報錯,請問在哪裡還可以下載nkai或者修改哪裡可以讓模板的latex跑通QAQ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.