[問題] 請教一些問題、使用習慣優劣
抱歉最近剛接觸tex 可能是智障問題 可以隨便罵我沒關係 我會虛心接受....
問題一:theorem 與 proof 的間距
最近用到用 amsthm 的 thm package
用到 proof 的時候 發現proof的 headspace 最小大概30pt左右
就算我在 \newtheoremstyle{theorem} 裡面改成 0pt 他還是那麼大
還是要在其他地方改?
前面設定是這樣:
\newtheoremstyle{theorem}
{0pt}%above space
{0pt}%below space
{}%body font
{}%indent (empty=0pt)
{\bfseries}%head font
{\\}%head punct
{0pt}%head space
{}%custom head space
\theoremstyle{theorem}
\newtheorem{Thm}{Theorem}[section]
\newtheorem{Def}[Thm]{Definition}
\newtheorem{Lem}[Thm]{Lemma}
\newtheorem{Ex}[Thm]{Example}
\newtheorem{Note}[Thm]{Note}
\newtheorem{Exercise}[Thm]{Exercise}
內文是這樣:
\begin{Thm}
blabla...
\end{Thm}
\begin{Thm}
blabla...
\end{Thm}
\begin{proof}
blabla...
\end{proof}
\begin{Def}
blabla...
\end{Def}
\begin{Thm}
blabla...
\end{Thm}
\begin{proof}
blabla...
\end{proof}
編譯出來是這樣:(png)
http://cl.ly/PCMk
是我改錯了嗎?
問題二:習慣問題
以前寫程式的時候總是會有一些個人習慣,有好有壞,壞的當然努力改
現在寫tex也因為偷懶...
就是我把左右括號newcommand成這樣
\newcommand\Sb[1]{\left(#1\right)}
\newcommand\Mb[1]{\left[#1\right]}
\newcommand\Bb[1]{\left\{#1\right\}}
\newcommand\Abs[1]{\left|{#1}\right|}
\Sb代表small bracket
\Mb代表middle bracket
\Bb代表big bracket
\Abs代表絕對值
不過只有看到我這樣用 我看到許多人還是直接用left right
我會這樣用除了懶惰 還有我個人認為這樣比較清楚
我要問的是,除去我個人因素,這樣用會有什麼後遺症嗎?(壞習慣要改阿)
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.43.164.54
推
05/31 15:38, , 1F
05/31 15:38, 1F
討論串 (同標題文章)
完整討論串 (本文為第 1 之 2 篇):
LaTeX 近期熱門文章
PTT數位生活區 即時熱門文章