2010-05-15 14 views
1

兩個(希望快速)約LaTeX的問題:基本LaTeX的問題

  1. 你如何號碼選擇的功能呢?如果有問題,我正在documentclass{article}工作。我想要編號的某些功能如

    function1 
    function2 (1) 
    function3 
    function4 (2) 
    
  2. 你如何做一個標誌來評估積分?我知道如何使用括號,但是有可能僅僅在函數的右邊向右一個燈光提供整合界限?我無法弄清楚如何做到這一點。

回答

3

我做了什麼,你問LyX的出口和乳膠:

\begin{document} 
\L{\begin{equation} 

\int_{0}^{1}x^{2}=\left.\frac{1}{3}x^{3}\right|_{0}^{1}=\frac{1}{3}\end{equation} 
} 

\L{\[ 
a=b+c\] 
} 

\L{\begin{equation} 
1+1=2\end{equation} 
} 
\end{document} 

編輯:哦,當你沒有問 - 退房Detexify,因爲你」在將來肯定需要查找符號:)

6

答案(1)。

\begin{eqnarray} 
function1 \nonumber \\ 
function2   \\ 
function3 \nonumber \\ 
function4 
\end{eqnarray} 

答案(2)。

$\left. \frac 12 \right|_1^2$ 
+0

eqnarray的環境真的不該使用 - 作爲AMS注意簡短數學指南(ftp://ftp.ams.org/pub/tex/doc/amsmath/short-math-guide.pdf),它們「會產生等號間距不一致,並且不會嘗試防止疊印 方程體和方程號「。 但是,如果您使用對齊環境,則您的解決方案效果很好! – 2010-05-18 20:23:03

2

如果您希望將註釋添加到一段文字,以使其呈現類似以下內容:

The fox[1] jumped over the fence 
... 

[1] A fox is a clever mythical creature 

,那麼你可以使用\footnote{}命令,就像這樣:

The fox\footnote{A fox is a clever mythical creature} jumped over the fence 

如果您希望爲方程編號,以便稍後在文本中引用它,以便呈現如下內容:

f(x,y)=3π (1) 

is numbered 1. 

,那麼你可以使用\equation{}環境與\label

\begin{equation} 
\label{f} 
f(x,y)=3\pi 
\end{equation} 
is numbered \ref{f}. 

最後,作爲整合:

\[\int \frac{sin(x)}{cos(x)}dx\] 
from 0 to 1, 
\[\left.\frac{sin(x)}{cos(x)}\right|_0^1\] 
+0

明確標註方程式可能也是我會這麼做的 - 正如Wilhelm所說,它允許您自動回溯到它們,這很方便,並且即使所有方程式都相互正確(儘管它們處於你的榜樣,這是很好的知道將來的參考!) – 2010-05-18 20:29:35