sppmg / TW_Thesis_Template

The LaTeX Template for TW Thesis 台灣碩博士 LaTeX 論文樣板
MIT License
147 stars 39 forks source link

Bookspine.tex bug and \input{bibliography} #6

Closed Q-cat closed 5 years ago

Q-cat commented 5 years ago

Hi, sppmy, Thanks for your code. When I use main.tex to produce PDF files. These are two issues:

  1. using \addBookSpineThisPage, the add bookspine is okay. The bookspine.tex appear a bug when run it: Package fontspec Warning: Font "MingLiU" does not contain requested Script (fontspec) "CJK".

Package fontspec Warning: OpenType feature 'Vertical=RotatedGlyphs' (vrt2) not (fontspec) available for font 'MingLiU' with script (fontspec) 'CustomDefault' and language 'Default'.

! Undefined control sequence. \vCJK #1->\vCJKBL \vCJKFamily \rotatebox {270}{#1} l.109 }

?

  1. In main.tex, the \input{bibliography} doesn't work. I try many times, but don't fix this bug.

Thanks

sppmg commented 5 years ago

Hi, thank you use this :D

I checked again releases v1.8.2, see a little bug, but it's will not cause error.

That bug at NTU_thesis.cls Line 92. It should change to below

\newCJKfontfamily{\vCJKFamily}[Vertical=RotatedGlyphs,RawFeature=vertical]{\CJKsansfont}
% Fix base line of Vertical CJK

But it's only cause a lower base line and can't rotate character. (I'll fix it later, but maybe not soon. It's not important.)


  1. First, Can you give me your environment include below info?
    • OS (Linux, Mac, Win10, Win7 ...)
    • Which language for OS( e.g. English windows.) and please check do you have MingLiU (細明體)
    • TeX distribution ( MikTeX / TeX Live )
    • Which version of my TW_Thesis_Template. (latest / v1.8.2 / ...)

I tested v1.8.2 on Win10 (zh-TW)/MikTeX , it's normal.

But.... You don't need \addBookSpineThisPage actually. :D NTU give a fake cover in template XD . You CAN'T ADD BOOKSPINE ON COVER!! At least my friend tried it.

And when you print paper, The store around university usually did it, you don't need do it by yourself.

Finally, If you still want create by yourself, you can compile TW_Thesis_Template/NTU_patch/bookspine.tex. It's a standalone tex file, so change variable inside and compile it.

Anyway, if you want help me find bug and fix it, you are welcome.

  1. What happened when you think it doesn't work ? No error and no content ? How do you compile your tex? Did you use biber ? The common compile step is xelatex -> biber -> xelatex -> xelatex. You can read my book (If you understand Chinese ?!) or other LaTeX guide/web side, e.g. LaTeX - Wikibooks .
Q-cat commented 5 years ago

Sppmy,你好 非常感谢你的回复。我的环境如下:

报错如下:

Package fontspec Warning: Font "MingLiU" does not contain requested Script

(fontspec) "CJK".

Package fontspec Warning: OpenType feature 'Vertical=RotatedGlyphs' (vrt2) not

(fontspec) available for font 'MingLiU' with script

(fontspec) 'CustomDefault' and language 'Default'.

! Undefined control sequence.

\vCJK #1->\vCJKBL \vCJKFamily \rotatebox

{270}{#1}

l.109 }

?

debug:

\usepackage{graphicx} 图形包缺少

问题二:

就是我运行Main.tex 没法加载 “参考文献”,我还是没有找到什么原因,其它运行都没有问题。

祝好!

GWP

On Mon, Apr 29, 2019 at 9:14 PM sppmg notifications@github.com wrote:

Hi, thank you use this :D

I checked again releases v1.8.2 https://github.com/sppmg/TW_Thesis_Template/archive/v1.8.2.zip, see a little bug, but it's will not cause error.

That bug at NTU_thesis.cls Line 92 https://github.com/sppmg/TW_Thesis_Template/blob/29a9ec0e2608c9c1770d986dc22a8709bef57676/NTU_patch/NTU_thesis.cls#L92. It should change to below

\newCJKfontfamily{\vCJKFamily}[Vertical=RotatedGlyphs,RawFeature=vertical]{\CJKsansfont} % Fix base line of Vertical CJK

But it's only cause a lower base line and can't rotate character. (I'll fix it later, but maybe not soon. It's not important.)

  1. First, Can you give me your environment include below info?

    • OS (Linux, Mac, Win10, Win7 ...)
    • Which language for OS( e.g. English windows.) and please check do you have MingLiU (細明體)
    • TeX distribution ( MikTeX / TeX Live )
    • Which version of my TW_Thesis_Template. (latest / v1.8.2 / ...)

I tested v1.8.2 on Win10 (zh-TW)/MikTeX , it's normal.

But.... You don't need \addBookSpineThisPage actually. :D NTU give a fake cover in template XD . You CAN'T ADD BOOKSPINE ON COVER!! At least my friend tried it.

And when you print paper, The store around university usually did it, you don't need do it by yourself.

Finally, If you still want create by yourself, you can compile TW_Thesis_Template/NTU_patch/bookspine.tex. It's a standalone tex file, so change variable inside and compile it.

Anyway, if you want help me find bug and fix it, you are welcome.

  1. What happened when you think it doesn't work ? No error and no content ? How do you compile your tex? Did you use biber ? The common compile step is xelatex -> biber -> xelatex -> xelatex. You can read my book https://github.com/sppmg/LaTeX_tutorial_for_thesis (If you understand Chinese ?!) or other LaTeX guide/web side, e.g. LaTeX - Wikibooks https://en.wikibooks.org/wiki/LaTeX .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sppmg/TW_Thesis_Template/issues/6#issuecomment-487574827, or mute the thread https://github.com/notifications/unsubscribe-auth/AEZ7XPAW32A3V2OFPO4FSA3PS3YFBANCNFSM4HI6TWTA .

-- Regards

GWP

sppmg commented 5 years ago

啊!抱歉,完全會錯意了!

Font "MingLiU" does not contain requested Script

這可能只是 warning 而已,或許不會造成 error 停下。(搜尋過此錯誤,有人是直接關訊息輸出)

造成 error 的

! Undefined control sequence.

\vCJK

讓我猜測會不會是你誤刪了一些命令? 你試過編譯原始未修改的 bookspine.tex 嗎?

\usepackage{graphicx} 图形包缺少

Miktex 應該會自動下載所需的套件,graphicx 已經寫在 cls檔裡面了,照理說會自動安裝。

文獻的話就如我之前所說,你編譯序列中必須包含 biber 指令,如果你是用 texwork/texstudio等編輯環境,須要檢查按鈕所調用的命令。 可能只調用一次 xelatex,或是使用傳統處理 bib檔的 bibtex(須要替換成 biber)。

Ibmerguo notifications@github.com 於 2019年4月29日 週一 下午11:51 寫道:

Sppmy,你好 非常感谢你的回复。我的环境如下:

  • OS ( Win10)
  • OS( English windows.),为了测试我在main.tex 用 \addBookSpineThisPage 尝试是没有问题的,但是单独的bookspine.tex 会报错,应该MingLiu 字体有的
  • TeX distribution ( MikTeX 2.9 )
  • (latest / v1.8.2 / ...)

报错如下:

Package fontspec Warning: Font "MingLiU" does not contain requested Script

(fontspec) "CJK".

Package fontspec Warning: OpenType feature 'Vertical=RotatedGlyphs' (vrt2) not

(fontspec) available for font 'MingLiU' with script

(fontspec) 'CustomDefault' and language 'Default'.

! Undefined control sequence.

\vCJK #1->\vCJKBL \vCJKFamily \rotatebox

{270}{#1}

l.109 }

?

debug:

\usepackage{graphicx} 图形包缺少

问题二:

就是我运行Main.tex 没法加载 “参考文献”,我还是没有找到什么原因,其它运行都没有问题。

祝好!

GWP

On Mon, Apr 29, 2019 at 9:14 PM sppmg notifications@github.com wrote:

Hi, thank you use this :D

I checked again releases v1.8.2 https://github.com/sppmg/TW_Thesis_Template/archive/v1.8.2.zip, see a little bug, but it's will not cause error.

That bug at NTU_thesis.cls Line 92 < https://github.com/sppmg/TW_Thesis_Template/blob/29a9ec0e2608c9c1770d986dc22a8709bef57676/NTU_patch/NTU_thesis.cls#L92 . It should change to below

\newCJKfontfamily{\vCJKFamily}[Vertical=RotatedGlyphs,RawFeature=vertical]{\CJKsansfont} % Fix base line of Vertical CJK

But it's only cause a lower base line and can't rotate character. (I'll fix it later, but maybe not soon. It's not important.)

  1. First, Can you give me your environment include below info?
  • OS (Linux, Mac, Win10, Win7 ...)
  • Which language for OS( e.g. English windows.) and please check do you have MingLiU (細明體)
  • TeX distribution ( MikTeX / TeX Live )
  • Which version of my TW_Thesis_Template. (latest / v1.8.2 / ...)

I tested v1.8.2 on Win10 (zh-TW)/MikTeX , it's normal.

But.... You don't need \addBookSpineThisPage actually. :D NTU give a fake cover in template XD . You CAN'T ADD BOOKSPINE ON COVER!! At least my friend tried it.

And when you print paper, The store around university usually did it, you don't need do it by yourself.

Finally, If you still want create by yourself, you can compile TW_Thesis_Template/NTU_patch/bookspine.tex. It's a standalone tex file, so change variable inside and compile it.

Anyway, if you want help me find bug and fix it, you are welcome.

  1. What happened when you think it doesn't work ? No error and no content ? How do you compile your tex? Did you use biber ? The common compile step is xelatex -> biber -> xelatex -> xelatex. You can read my book https://github.com/sppmg/LaTeX_tutorial_for_thesis (If you understand Chinese ?!) or other LaTeX guide/web side, e.g. LaTeX - Wikibooks https://en.wikibooks.org/wiki/LaTeX .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/sppmg/TW_Thesis_Template/issues/6#issuecomment-487574827 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AEZ7XPAW32A3V2OFPO4FSA3PS3YFBANCNFSM4HI6TWTA

.

-- Regards

GWP

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sppmg/TW_Thesis_Template/issues/6#issuecomment-487635384, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOQ4IN6V2BNBV566ALO5UTPS4KRLANCNFSM4HI6TWTA .

Q-cat commented 5 years ago

sppmg,你好

  1. \ bookspine.tex 原文件编译的时候一直报错的,我安装一个 \usepackage{graphicx}就没有问题的;
  2. \bibliography.tex 还是有问题的,我现在使用的Miktex的xelatex+makeindex+bibtex; 我参考你wiki的介绍安装了一次新的biber (最新版本v2.12) 但还是不行: 报错:

No pages of output.

Transcript written on bibliography.log.

Sorry, but "MiKTeX Compiler Driver" did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

C:\Users\User\AppData\Local\MiKTeX\2.9\miktex\log\texify.log

应该还是biber 有问题

Thanks

GWP

On Tue, Apr 30, 2019 at 12:12 PM sppmg notifications@github.com wrote:

啊!抱歉,完全會錯意了!

Font "MingLiU" does not contain requested Script

這可能只是 warning 而已,或許不會造成 error 停下。(搜尋過此錯誤,有人是直接關訊息輸出)

造成 error 的

! Undefined control sequence.

\vCJK

讓我猜測會不會是你誤刪了一些命令? 你試過編譯原始未修改的 bookspine.tex 嗎?

\usepackage{graphicx} 图形包缺少

Miktex 應該會自動下載所需的套件,graphicx 已經寫在 cls檔裡面了,照理說會自動安裝。

文獻的話就如我之前所說,你編譯序列中必須包含 biber 指令,如果你是用 texwork/texstudio等編輯環境,須要檢查按鈕所調用的命令。 可能只調用一次 xelatex,或是使用傳統處理 bib檔的 bibtex(須要替換成 biber)。

Ibmerguo notifications@github.com 於 2019年4月29日 週一 下午11:51 寫道:

Sppmy,你好 非常感谢你的回复。我的环境如下:

  • OS ( Win10)
  • OS( English windows.),为了测试我在main.tex 用 \addBookSpineThisPage 尝试是没有问题的,但是单独的bookspine.tex 会报错,应该MingLiu 字体有的
  • TeX distribution ( MikTeX 2.9 )
  • (latest / v1.8.2 / ...)

报错如下:

Package fontspec Warning: Font "MingLiU" does not contain requested Script

(fontspec) "CJK".

Package fontspec Warning: OpenType feature 'Vertical=RotatedGlyphs' (vrt2) not

(fontspec) available for font 'MingLiU' with script

(fontspec) 'CustomDefault' and language 'Default'.

! Undefined control sequence.

\vCJK #1->\vCJKBL \vCJKFamily \rotatebox

{270}{#1}

l.109 }

?

debug:

\usepackage{graphicx} 图形包缺少

问题二:

就是我运行Main.tex 没法加载 “参考文献”,我还是没有找到什么原因,其它运行都没有问题。

祝好!

GWP

On Mon, Apr 29, 2019 at 9:14 PM sppmg notifications@github.com wrote:

Hi, thank you use this :D

I checked again releases v1.8.2 https://github.com/sppmg/TW_Thesis_Template/archive/v1.8.2.zip, see a little bug, but it's will not cause error.

That bug at NTU_thesis.cls Line 92 <

https://github.com/sppmg/TW_Thesis_Template/blob/29a9ec0e2608c9c1770d986dc22a8709bef57676/NTU_patch/NTU_thesis.cls#L92

. It should change to below

\newCJKfontfamily{\vCJKFamily}[Vertical=RotatedGlyphs,RawFeature=vertical]{\CJKsansfont}

% Fix base line of Vertical CJK

But it's only cause a lower base line and can't rotate character. (I'll fix it later, but maybe not soon. It's not important.)

  1. First, Can you give me your environment include below info?
  • OS (Linux, Mac, Win10, Win7 ...)
  • Which language for OS( e.g. English windows.) and please check do you have MingLiU (細明體)
  • TeX distribution ( MikTeX / TeX Live )
  • Which version of my TW_Thesis_Template. (latest / v1.8.2 / ...)

I tested v1.8.2 on Win10 (zh-TW)/MikTeX , it's normal.

But.... You don't need \addBookSpineThisPage actually. :D NTU give a fake cover in template XD . You CAN'T ADD BOOKSPINE ON COVER!! At least my friend tried it.

And when you print paper, The store around university usually did it, you don't need do it by yourself.

Finally, If you still want create by yourself, you can compile TW_Thesis_Template/NTU_patch/bookspine.tex. It's a standalone tex file, so change variable inside and compile it.

Anyway, if you want help me find bug and fix it, you are welcome.

  1. What happened when you think it doesn't work ? No error and no content ? How do you compile your tex? Did you use biber ? The common compile step is xelatex -> biber -> xelatex -> xelatex. You can read my book https://github.com/sppmg/LaTeX_tutorial_for_thesis (If you understand Chinese ?!) or other LaTeX guide/web side, e.g. LaTeX - Wikibooks https://en.wikibooks.org/wiki/LaTeX .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <

https://github.com/sppmg/TW_Thesis_Template/issues/6#issuecomment-487574827

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/AEZ7XPAW32A3V2OFPO4FSA3PS3YFBANCNFSM4HI6TWTA

.

-- Regards

GWP

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/sppmg/TW_Thesis_Template/issues/6#issuecomment-487635384>,

or mute the thread < https://github.com/notifications/unsubscribe-auth/ABOQ4IN6V2BNBV566ALO5UTPS4KRLANCNFSM4HI6TWTA>

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sppmg/TW_Thesis_Template/issues/6#issuecomment-487816366, or mute the thread https://github.com/notifications/unsubscribe-auth/AEZ7XPCRBVNNV7MKKCQHIATPS7BLXANCNFSM4HI6TWTA .

-- Regards

GWP

Q-cat commented 5 years ago

sppmg,感谢之前耐心解答。我的biber环境问题,如下设置就可以了

\def\bibManType{0} % {0}/{1}/{2} 0 = Embedded, 1 = BibTeX, 2 = biber / BibLaTeX

多谢!

GWP

On Tue, Apr 30, 2019 at 4:21 PM Nanolaser Eagle nanolasereagle@gmail.com wrote:

sppmg,你好

  1. \ bookspine.tex 原文件编译的时候一直报错的,我安装一个 \usepackage{graphicx}就没有问题的;
  2. \bibliography.tex 还是有问题的,我现在使用的Miktex的xelatex+makeindex+bibtex; 我参考你wiki的介绍安装了一次新的biber (最新版本v2.12) 但还是不行: 报错:

No pages of output.

Transcript written on bibliography.log.

Sorry, but "MiKTeX Compiler Driver" did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

C:\Users\User\AppData\Local\MiKTeX\2.9\miktex\log\texify.log

应该还是biber 有问题

Thanks

GWP

On Tue, Apr 30, 2019 at 12:12 PM sppmg notifications@github.com wrote:

啊!抱歉,完全會錯意了!

Font "MingLiU" does not contain requested Script

這可能只是 warning 而已,或許不會造成 error 停下。(搜尋過此錯誤,有人是直接關訊息輸出)

造成 error 的

! Undefined control sequence.

\vCJK

讓我猜測會不會是你誤刪了一些命令? 你試過編譯原始未修改的 bookspine.tex 嗎?

\usepackage{graphicx} 图形包缺少

Miktex 應該會自動下載所需的套件,graphicx 已經寫在 cls檔裡面了,照理說會自動安裝。

文獻的話就如我之前所說,你編譯序列中必須包含 biber 指令,如果你是用 texwork/texstudio等編輯環境,須要檢查按鈕所調用的命令。 可能只調用一次 xelatex,或是使用傳統處理 bib檔的 bibtex(須要替換成 biber)。

Ibmerguo notifications@github.com 於 2019年4月29日 週一 下午11:51 寫道:

Sppmy,你好 非常感谢你的回复。我的环境如下:

  • OS ( Win10)
  • OS( English windows.),为了测试我在main.tex 用 \addBookSpineThisPage 尝试是没有问题的,但是单独的bookspine.tex 会报错,应该MingLiu 字体有的
  • TeX distribution ( MikTeX 2.9 )
  • (latest / v1.8.2 / ...)

报错如下:

Package fontspec Warning: Font "MingLiU" does not contain requested Script

(fontspec) "CJK".

Package fontspec Warning: OpenType feature 'Vertical=RotatedGlyphs' (vrt2) not

(fontspec) available for font 'MingLiU' with script

(fontspec) 'CustomDefault' and language 'Default'.

! Undefined control sequence.

\vCJK #1->\vCJKBL \vCJKFamily \rotatebox

{270}{#1}

l.109 }

?

debug:

\usepackage{graphicx} 图形包缺少

问题二:

就是我运行Main.tex 没法加载 “参考文献”,我还是没有找到什么原因,其它运行都没有问题。

祝好!

GWP

On Mon, Apr 29, 2019 at 9:14 PM sppmg notifications@github.com wrote:

Hi, thank you use this :D

I checked again releases v1.8.2 https://github.com/sppmg/TW_Thesis_Template/archive/v1.8.2.zip, see a little bug, but it's will not cause error.

That bug at NTU_thesis.cls Line 92 <

https://github.com/sppmg/TW_Thesis_Template/blob/29a9ec0e2608c9c1770d986dc22a8709bef57676/NTU_patch/NTU_thesis.cls#L92

. It should change to below

\newCJKfontfamily{\vCJKFamily}[Vertical=RotatedGlyphs,RawFeature=vertical]{\CJKsansfont}

% Fix base line of Vertical CJK

But it's only cause a lower base line and can't rotate character. (I'll fix it later, but maybe not soon. It's not important.)

  1. First, Can you give me your environment include below info?
  • OS (Linux, Mac, Win10, Win7 ...)
  • Which language for OS( e.g. English windows.) and please check do you have MingLiU (細明體)
  • TeX distribution ( MikTeX / TeX Live )
  • Which version of my TW_Thesis_Template. (latest / v1.8.2 / ...)

I tested v1.8.2 on Win10 (zh-TW)/MikTeX , it's normal.

But.... You don't need \addBookSpineThisPage actually. :D NTU give a fake cover in template XD . You CAN'T ADD BOOKSPINE ON COVER!! At least my friend tried it.

And when you print paper, The store around university usually did it, you don't need do it by yourself.

Finally, If you still want create by yourself, you can compile TW_Thesis_Template/NTU_patch/bookspine.tex. It's a standalone tex file, so change variable inside and compile it.

Anyway, if you want help me find bug and fix it, you are welcome.

  1. What happened when you think it doesn't work ? No error and no content ? How do you compile your tex? Did you use biber ? The common compile step is xelatex -> biber -> xelatex -> xelatex. You can read my book https://github.com/sppmg/LaTeX_tutorial_for_thesis (If you understand Chinese ?!) or other LaTeX guide/web side, e.g. LaTeX - Wikibooks https://en.wikibooks.org/wiki/LaTeX .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <

https://github.com/sppmg/TW_Thesis_Template/issues/6#issuecomment-487574827

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/AEZ7XPAW32A3V2OFPO4FSA3PS3YFBANCNFSM4HI6TWTA

.

-- Regards

GWP

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/sppmg/TW_Thesis_Template/issues/6#issuecomment-487635384>,

or mute the thread < https://github.com/notifications/unsubscribe-auth/ABOQ4IN6V2BNBV566ALO5UTPS4KRLANCNFSM4HI6TWTA>

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sppmg/TW_Thesis_Template/issues/6#issuecomment-487816366, or mute the thread https://github.com/notifications/unsubscribe-auth/AEZ7XPCRBVNNV7MKKCQHIATPS7BLXANCNFSM4HI6TWTA .

-- Regards

GWP

-- Regards

GWP

sppmg commented 5 years ago

你直接編譯 bibliography.tex 嗎? 這檔案應該不含文獻插入點,也就是直接編譯此檔不會生成任何內容。 Biber 不只是要安裝,還要放到編譯序列中。你如果用 xelatex+makeindex+bibtex 那就是誤用 bibtex 做文獻處理,要修改設定成 biber

\bibManType{0}

是不用外部程式處理文獻的方式(也就是你根本沒用到bibtex/biber),雖然一樣可以用,但很手工。諸如文獻格式、排序等等要自己處理。 這部分我那「書」裡面有些解釋。

等等,我想到了一個可能性…… 你的文獻是製作成 .bib 檔(文獻資料庫),還是直接打在 bibliography.tex ?


\usepackage{graphicx} 不應該出問題的,.cls裡面有,miktex 也應該自動安裝。 不過這應該是環境問題就是了。現在沒問題就好。

lbmerguo notifications@github.com 於 2019年4月30日 週二 下午8:50 寫道:

sppmg,感谢之前耐心解答。我的biber环境问题,如下设置就可以了

\def\bibManType{0} % {0}/{1}/{2} 0 = Embedded, 1 = BibTeX, 2 = biber / BibLaTeX

多谢!

GWP

On Tue, Apr 30, 2019 at 4:21 PM Nanolaser Eagle nanolasereagle@gmail.com wrote:

sppmg,你好

  1. \ bookspine.tex 原文件编译的时候一直报错的,我安装一个 \usepackage{graphicx}就没有问题的;
  2. \bibliography.tex 还是有问题的,我现在使用的Miktex的xelatex+makeindex+bibtex; 我参考你wiki的介绍安装了一次新的biber (最新版本v2.12) 但还是不行: 报错:

No pages of output.

Transcript written on bibliography.log.

Sorry, but "MiKTeX Compiler Driver" did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

C:\Users\User\AppData\Local\MiKTeX\2.9\miktex\log\texify.log

应该还是biber 有问题

Thanks

GWP

On Tue, Apr 30, 2019 at 12:12 PM sppmg notifications@github.com wrote:

啊!抱歉,完全會錯意了!

Font "MingLiU" does not contain requested Script

這可能只是 warning 而已,或許不會造成 error 停下。(搜尋過此錯誤,有人是直接關訊息輸出)

造成 error 的

! Undefined control sequence.

\vCJK

讓我猜測會不會是你誤刪了一些命令? 你試過編譯原始未修改的 bookspine.tex 嗎?

\usepackage{graphicx} 图形包缺少

Miktex 應該會自動下載所需的套件,graphicx 已經寫在 cls檔裡面了,照理說會自動安裝。

文獻的話就如我之前所說,你編譯序列中必須包含 biber 指令,如果你是用 texwork/texstudio等編輯環境,須要檢查按鈕所調用的命令。 可能只調用一次 xelatex,或是使用傳統處理 bib檔的 bibtex(須要替換成 biber)。

Ibmerguo notifications@github.com 於 2019年4月29日 週一 下午11:51 寫道:

Sppmy,你好 非常感谢你的回复。我的环境如下:

  • OS ( Win10)
  • OS( English windows.),为了测试我在main.tex 用 \addBookSpineThisPage 尝试是没有问题的,但是单独的bookspine.tex 会报错,应该MingLiu 字体有的
  • TeX distribution ( MikTeX 2.9 )
  • (latest / v1.8.2 / ...)

报错如下:

Package fontspec Warning: Font "MingLiU" does not contain requested Script

(fontspec) "CJK".

Package fontspec Warning: OpenType feature 'Vertical=RotatedGlyphs' (vrt2) not

(fontspec) available for font 'MingLiU' with script

(fontspec) 'CustomDefault' and language 'Default'.

! Undefined control sequence.

\vCJK #1->\vCJKBL \vCJKFamily \rotatebox

{270}{#1}

l.109 }

?

debug:

\usepackage{graphicx} 图形包缺少

问题二:

就是我运行Main.tex 没法加载 “参考文献”,我还是没有找到什么原因,其它运行都没有问题。

祝好!

GWP

On Mon, Apr 29, 2019 at 9:14 PM sppmg notifications@github.com wrote:

Hi, thank you use this :D

I checked again releases v1.8.2 https://github.com/sppmg/TW_Thesis_Template/archive/v1.8.2.zip, see a little bug, but it's will not cause error.

That bug at NTU_thesis.cls Line 92 <

https://github.com/sppmg/TW_Thesis_Template/blob/29a9ec0e2608c9c1770d986dc22a8709bef57676/NTU_patch/NTU_thesis.cls#L92

. It should change to below

\newCJKfontfamily{\vCJKFamily}[Vertical=RotatedGlyphs,RawFeature=vertical]{\CJKsansfont}

% Fix base line of Vertical CJK

But it's only cause a lower base line and can't rotate character. (I'll fix it later, but maybe not soon. It's not important.)

  1. First, Can you give me your environment include below info?
  • OS (Linux, Mac, Win10, Win7 ...)
  • Which language for OS( e.g. English windows.) and please check do you have MingLiU (細明體)
  • TeX distribution ( MikTeX / TeX Live )
  • Which version of my TW_Thesis_Template. (latest / v1.8.2 / ...)

I tested v1.8.2 on Win10 (zh-TW)/MikTeX , it's normal.

But.... You don't need \addBookSpineThisPage actually. :D NTU give a fake cover in template XD . You CAN'T ADD BOOKSPINE ON COVER!! At least my friend tried it.

And when you print paper, The store around university usually did it, you don't need do it by yourself.

Finally, If you still want create by yourself, you can compile TW_Thesis_Template/NTU_patch/bookspine.tex. It's a standalone tex file, so change variable inside and compile it.

Anyway, if you want help me find bug and fix it, you are welcome.

  1. What happened when you think it doesn't work ? No error and no content ? How do you compile your tex? Did you use biber ? The common compile step is xelatex -> biber -> xelatex -> xelatex. You can read my book https://github.com/sppmg/LaTeX_tutorial_for_thesis (If you understand Chinese ?!) or other LaTeX guide/web side, e.g. LaTeX - Wikibooks https://en.wikibooks.org/wiki/LaTeX .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <

https://github.com/sppmg/TW_Thesis_Template/issues/6#issuecomment-487574827

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/AEZ7XPAW32A3V2OFPO4FSA3PS3YFBANCNFSM4HI6TWTA

.

-- Regards

GWP

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/sppmg/TW_Thesis_Template/issues/6#issuecomment-487635384 ,

or mute the thread <

https://github.com/notifications/unsubscribe-auth/ABOQ4IN6V2BNBV566ALO5UTPS4KRLANCNFSM4HI6TWTA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/sppmg/TW_Thesis_Template/issues/6#issuecomment-487816366 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AEZ7XPCRBVNNV7MKKCQHIATPS7BLXANCNFSM4HI6TWTA

.

-- Regards

GWP

-- Regards

GWP

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sppmg/TW_Thesis_Template/issues/6#issuecomment-487939363, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOQ4IKQWPWLC4AQL3HZM7DPTA6BTANCNFSM4HI6TWTA .

Q-cat commented 4 years ago

Hi, sppmg,

一个问题请教您,我在main.tex 种加了 \startWatermark 水印,但是输出并没有显示,也没有报错,不知道是哪里的问题?

我参考你的例子,PDF上是有水印的,但是main.tex 中没有找到 \startWatermark 命令。

谢谢

gwp

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon Virus-free. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Tue, Apr 30, 2019 at 8:50 PM Nanolaser Eagle nanolasereagle@gmail.com wrote:

sppmg,感谢之前耐心解答。我的biber环境问题,如下设置就可以了

\def\bibManType{0} % {0}/{1}/{2} 0 = Embedded, 1 = BibTeX, 2 = biber / BibLaTeX

多谢!

GWP

On Tue, Apr 30, 2019 at 4:21 PM Nanolaser Eagle nanolasereagle@gmail.com wrote:

sppmg,你好

  1. \ bookspine.tex 原文件编译的时候一直报错的,我安装一个 \usepackage{graphicx}就没有问题的;
  2. \bibliography.tex 还是有问题的,我现在使用的Miktex的xelatex+makeindex+bibtex; 我参考你wiki的介绍安装了一次新的biber (最新版本v2.12) 但还是不行: 报错:

No pages of output.

Transcript written on bibliography.log.

Sorry, but "MiKTeX Compiler Driver" did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

C:\Users\User\AppData\Local\MiKTeX\2.9\miktex\log\texify.log

应该还是biber 有问题

Thanks

GWP

On Tue, Apr 30, 2019 at 12:12 PM sppmg notifications@github.com wrote:

啊!抱歉,完全會錯意了!

Font "MingLiU" does not contain requested Script

這可能只是 warning 而已,或許不會造成 error 停下。(搜尋過此錯誤,有人是直接關訊息輸出)

造成 error 的

! Undefined control sequence.

\vCJK

讓我猜測會不會是你誤刪了一些命令? 你試過編譯原始未修改的 bookspine.tex 嗎?

\usepackage{graphicx} 图形包缺少

Miktex 應該會自動下載所需的套件,graphicx 已經寫在 cls檔裡面了,照理說會自動安裝。

文獻的話就如我之前所說,你編譯序列中必須包含 biber 指令,如果你是用 texwork/texstudio等編輯環境,須要檢查按鈕所調用的命令。 可能只調用一次 xelatex,或是使用傳統處理 bib檔的 bibtex(須要替換成 biber)。

Ibmerguo notifications@github.com 於 2019年4月29日 週一 下午11:51 寫道:

Sppmy,你好 非常感谢你的回复。我的环境如下:

  • OS ( Win10)
  • OS( English windows.),为了测试我在main.tex 用 \addBookSpineThisPage 尝试是没有问题的,但是单独的bookspine.tex 会报错,应该MingLiu 字体有的
  • TeX distribution ( MikTeX 2.9 )
  • (latest / v1.8.2 / ...)

报错如下:

Package fontspec Warning: Font "MingLiU" does not contain requested Script

(fontspec) "CJK".

Package fontspec Warning: OpenType feature 'Vertical=RotatedGlyphs' (vrt2) not

(fontspec) available for font 'MingLiU' with script

(fontspec) 'CustomDefault' and language 'Default'.

! Undefined control sequence.

\vCJK #1->\vCJKBL \vCJKFamily \rotatebox

{270}{#1}

l.109 }

?

debug:

\usepackage{graphicx} 图形包缺少

问题二:

就是我运行Main.tex 没法加载 “参考文献”,我还是没有找到什么原因,其它运行都没有问题。

祝好!

GWP

On Mon, Apr 29, 2019 at 9:14 PM sppmg notifications@github.com wrote:

Hi, thank you use this :D

I checked again releases v1.8.2 https://github.com/sppmg/TW_Thesis_Template/archive/v1.8.2.zip, see a little bug, but it's will not cause error.

That bug at NTU_thesis.cls Line 92 <

https://github.com/sppmg/TW_Thesis_Template/blob/29a9ec0e2608c9c1770d986dc22a8709bef57676/NTU_patch/NTU_thesis.cls#L92

. It should change to below

\newCJKfontfamily{\vCJKFamily}[Vertical=RotatedGlyphs,RawFeature=vertical]{\CJKsansfont}

% Fix base line of Vertical CJK

But it's only cause a lower base line and can't rotate character. (I'll fix it later, but maybe not soon. It's not important.)

  1. First, Can you give me your environment include below info?
  • OS (Linux, Mac, Win10, Win7 ...)
  • Which language for OS( e.g. English windows.) and please check do you have MingLiU (細明體)
  • TeX distribution ( MikTeX / TeX Live )
  • Which version of my TW_Thesis_Template. (latest / v1.8.2 / ...)

I tested v1.8.2 on Win10 (zh-TW)/MikTeX , it's normal.

But.... You don't need \addBookSpineThisPage actually. :D NTU give a fake cover in template XD . You CAN'T ADD BOOKSPINE ON COVER!! At least my friend tried it.

And when you print paper, The store around university usually did it, you don't need do it by yourself.

Finally, If you still want create by yourself, you can compile TW_Thesis_Template/NTU_patch/bookspine.tex. It's a standalone tex file, so change variable inside and compile it.

Anyway, if you want help me find bug and fix it, you are welcome.

  1. What happened when you think it doesn't work ? No error and no content ? How do you compile your tex? Did you use biber ? The common compile step is xelatex -> biber -> xelatex -> xelatex. You can read my book https://github.com/sppmg/LaTeX_tutorial_for_thesis (If you understand Chinese ?!) or other LaTeX guide/web side, e.g. LaTeX - Wikibooks https://en.wikibooks.org/wiki/LaTeX .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <

https://github.com/sppmg/TW_Thesis_Template/issues/6#issuecomment-487574827

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/AEZ7XPAW32A3V2OFPO4FSA3PS3YFBANCNFSM4HI6TWTA

.

-- Regards

GWP

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/sppmg/TW_Thesis_Template/issues/6#issuecomment-487635384>,

or mute the thread < https://github.com/notifications/unsubscribe-auth/ABOQ4IN6V2BNBV566ALO5UTPS4KRLANCNFSM4HI6TWTA>

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sppmg/TW_Thesis_Template/issues/6#issuecomment-487816366, or mute the thread https://github.com/notifications/unsubscribe-auth/AEZ7XPCRBVNNV7MKKCQHIATPS7BLXANCNFSM4HI6TWTA .

-- Regards

GWP

-- Regards

GWP

-- Regards

GWP

sppmg commented 4 years ago

Hi 能的話還是希望你可以另外開一個 new issue 喔!(不然有點難搜尋)

水印設置是 config.tex 裡面的

\def\wmContent{} % 圖檔名或文字 | image filename or text.

上面是 NCU 版(不加水印),要加的像 NTU 版就填入檔名(會搜尋 ./figures/ 目錄,直接丟那裡就好)。

\def\wmContent{watermark.pdf}

我参考你的例子,PDF上是有水印的,但是main.tex 中没有找到 \startWatermark 命令。

如果你看的是最新版,那是因為最新版將 \startWatermark 自動化了 :D 見 CHANGELOG.md 如果要手動指定水印起始位置的話, 可修改 config.tex 內的 \wmStartPage{}