Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

節置中 #13

Closed
wenhsinhu opened this issue Jun 1, 2016 · 9 comments
Closed

節置中 #13

wenhsinhu opened this issue Jun 1, 2016 · 9 comments

Comments

@wenhsinhu
Copy link

您好,想請教一個問題。
想請問是否有辦法在哪個地方調整,讓節可以置中呢?
例如以下圖這樣
2016-06-01 15 15 37

@wengan-li
Copy link
Owner

嗯~
有趣的想法, 但v1.4.4還未能提供呢.
我在新一版提供這個設定.

wengan-li added a commit that referenced this issue Jun 2, 2016
Mention in Issuse #13
<https://github.com/wengan-li/ncku-thesis-template-
latex/issues/13#issue-157839778>
@wengan-li
Copy link
Owner

請參考v1.4.5\SetNumberingFormat中的TextAlign設定, 看這個有沒有令你滿意.

@wenhsinhu
Copy link
Author

您好,謝謝,我喜歡這個設定方法。
另外想請問章節的字體大小是否是可以改的呢?

@wengan-li
Copy link
Owner

這真的沒有在預期的功能設定中.

如果你想自行修改
你可到ncku/command/cmd-chapter.tex中的
\DisplayXXXXXHeader, 例如 \DisplaySectionHeader
修改在第189,192行 這2行前面加入你要的字型大小,
\Large之類.
(可參考\DisplayChapterHeader)

你覺得這功能十分需要 ?

@wenhsinhu
Copy link
Author

謝謝,我覺得這個功能不需放在模版中,只是我個人需要修改而已。因為其他人未必有這個需求,只是我老闆有提到要改字體大小這部分這樣。

@wenhsinhu
Copy link
Author

您好,請問在1.4.6版中若要修改節的字體大小的話,也是在同樣的地方修改嗎?我今日試圖修改1.4.6版的相對位置(144-146),但似乎沒什麼反應。我的寫法如下
\ifthenelse{\equal{#1}{\empty}}%
{%
\parindent 0pt \large \textbf{#2} \par%
}%
{%
\textbf{#1\hspace{0.5cm}#2} \par%
}%

@wengan-li
Copy link
Owner

嗯~
我不知道你做錯什麼,
但你的code我看不到任何設定字體大小的command.
這邊提供你考慮.

方法1: 2行都寫

{%
  \LARGE \parindent 0pt \textbf{#2} \par%
}%
{%
  \LARGE \textbf{#1\hspace{0.5cm}#2} \par%
}%

方法2: 寫在\ifthenelse上面, 不用擔心影響到內文, 因為上下有一個environment block包住.

\LARGE
\ifthenelse{\equal{#1}{\empty}}%
{%
  \parindent 0pt \textbf{#2} \par%
}%
{%
  \textbf{#1\hspace{0.5cm}#2} \par%
}%

@wenhsinhu
Copy link
Author

你好
應該是我誤解了你的意思
我以為字形是加在\parindent 0pt \large \textbf{#2} \par%這行
裡面的\large就是我錯加進去以為會有效果的指令
而且在之前的版本這樣是可以的
應該是因為我對這邊的語法不熟悉的關係
謝謝您的建議
我已經用方法2解決了

@wengan-li
Copy link
Owner

呀~
我眼殘沒看到那個\large.

嗯 那我猜應該是沒太明顯而沒發現有改變而已,
可參考這邊的Reference guide.
\large\normalsize其實要單獨有對比才會比較明顯, 大量文字下可能沒發現有變.
而你可參考第30~32行的chapter寫法是使用\Large, 所以比較明顯.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants