Giter Site home page Giter Site logo

ntu-thesis's Introduction

臺灣大學碩博士論文 XeLaTeX 模版

前言

這個模版的前身是 LaTeX+CJK 的模版,如果您還是想用 LaTeX+CJK,請參考這篇文章

下載

您可以直接 clone 這個 git repository,或者您可以在這裡下載發行版本。

說明

請參考 wiki 的說明。

Changelog

  • v1.3
    • Enable fake bold/italic font by default, thanks to alan23273850.
  • v1.2
    • Refine the certification page.
  • v1.1
    • New switch to turn on/off the watermark and DOI for the first page, thanks to louis2889184.
  • v1.0
    • Do not show watermark in the cover pages, thanks to louis2889184.
  • v0.9
    • Support inserting certification pdf file, thanks to dragonkao730.
  • v0.8
    • Support watermark with transparent background, thanks to zipong.
  • v0.7
    • Add keywords and PDF properties supports, thanks to moneycat.
  • v0.6
  • v0.5.1
    • Avoid removing pdf files mistakenly.
  • v0.5
    • Fix a typo, thanks to dyinpao.
    • Support watermark and password setting, thanks to shaform and qcl.
  • v0.4
    • Rename \year, \month and \day to avoid the conflicts. Thanks to shaform.
  • v0.3.1
  • v0.3
    • Fix issue #1, thanks to simonxander.
    • Set doublespacing by default, add singlespacing and onehalfspacing support.
    • Refine the cover page and the certification.
  • v0.2
    • Add proposal support
  • v0.1
    • The first release

Tz-Huan Huang

ntu-thesis's People

Contributors

alan23273850 avatar kevin1kevin1k avatar liagm avatar moneycat avatar shaform avatar tzhuan avatar weitang114 avatar ylsung avatar zipong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ntu-thesis's Issues

似乎無法使用 DOI 碼?

我在台大這篇「二、加入 DOI 碼」看到,在封面右下角需要有 doi 碼,但是即便我按照最初的設定,在 ntuvars.tex 中放入底下程式碼,也還是沒有在封面看到 doi 碼。

\doi{doi:10.6342/NTU2017XXXXX}

螢幕快照 2019-08-02 下午9 54 20

螢幕快照 2019-08-02 下午9 56 03

還請大大幫忙一下...真的很感謝您。LaTeX 真的省了我很多很多的排版功夫!

關於 certification

有鑒於最後繳交的時候大家用的都是掃描的 certification,

\makecertification

可以改成:

\ifdefined\withcertification
  \includepdf[angle=0]{certification.pdf}
\else
  \makecertification
\fi

並且在 Makefile 加:

ifdef CERTIFICATION
TEXFLAG+="\def\withcertification{1} "
endif

好像會比較方便?

似乎無法使用浮水印

您好,我在這裡下載台大論文浮水印並將其放置在 latex 目錄下編譯後,還是沒有看到浮水印。我有在 thesis.tex 中找到以下指令

\ifdefined\withwatermark \newwatermark*[allpages,xpos=6.1725cm,ypos=10.5225cm,scale=0.5]{\includegraphics{watermark.pdf}} \fi

螢幕快照 2019-08-02 下午8 52 43

不曉得是不是得按照您的 wiki 說的,另外下載程式才能放上浮水印呢?感謝您

gnu make: 如果您的系統有 gnu make,您可以直接使用本模版提供的 Makefile.
pdftk: 如果您要為論文加密,您可以安裝此軟體。
wget/curl/php/fetch: 如果您要為論文加上臺大浮水印,請您安裝上述其中一項軟體以下載臺大提供的浮水印 pdf 檔。

DOI does not show up

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...

Workaround

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.

浮水印會蓋到圖片

照原先的code浮水印可能會蓋到圖片上
改成下面這樣(只是把*去掉)就可以讓浮水印放到背景,不會蓋到圖片
\newwatermark[allpages,xpos=6.1725cm,ypos=10.5225cm,scale=0.5]{\usebox\mybox}
圖書館說這樣是OK的
http://web.lib.ntu.edu.tw/question//node/626

不過這樣會讓審定書那頁沒有浮水印就是了

行距與圖書館規定不同

臺大學位論文格式規範
http://web.lib.ntu.edu.tw/question//node/619

原則上中文以12號楷書(細明體及標楷體為主),英文以12號Times New Roman打字,中文撰寫以1.5間距,英文則以雙行間距,本文留白上3公分、下2公分、左右各3公分,字體顏色為黑色,文內要加標點,全文不得塗汙刪節,不得使用複寫紙,各頁正下方應置中註明頁碼。

但現在看起來中英文都是預設行距
英文是否加上
\renewcommand{\baselinestretch}{1.6}

! Extra \endgroup

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.

wiki勘誤

make WATERMARK=1 DOT=1 FIRSTPAGE=1: 產生包含首頁有浮水印和 DOI 的 thesis.dpf

make WATERMARK=1 DOT=1 FIRSTPAGE=1: 產生包含首頁有浮水印和 DOI 的 thesis.pdf

nkai字型下載鏈接失效

nkai字型下載鏈接失效,且網上抓不到。然後texmaker一直報錯,請問在哪裡還可以下載nkai或者修改哪裡可以讓模板的latex跑通QAQ?

上下margin與圖書館規定不同

臺大學位論文格式規範
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}

Linux 下編譯錯誤

在 textlive 環境下使用 textlive 的 xelatex 編譯時會出現錯誤

原因是在 ntuthesis.cls 的 第148, 157 的中文字和指令compiler無法分辨

所以只要把中文加上 {} 即可,修正過後 windows 上應該也可以編譯

使用 \makespine 會出現編譯錯誤

...

\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

?

浮水印連結已變更

目前 Makefile 中的 http://etds.lib.ntu.edu.tw/files/watermark.pdf 已經沒東西了,新的連結是 https://www.lib.ntu.edu.tw/doc/CL/watermark.pdf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.