2016-01-29 12 views
0

我試圖用乳膠設置以下列表:LaTeX新手。無法打印以下列表

1. An arrival rate \lambda\\ 
    2. Upper bound of the server rate \& the waiting buffer, denoted by \mu u \& Nb \\ 
    3. Cost parameters (C0, C1, C2, C3, C4, C5, C6)\\ 
    4. A response time guarantee x. \\ 
    5. System parameters \{\theta i, \theta d, \theta s\} used by the ISN policy \\ 
    6. System parameter \{k\} used by the SN policy \\ 
    7. System parameters \{\theta, N=1\} used by the SI policy\\ 
     Output: \mu*, N* and Fc (\mu*, N*) \\ 

這提供了以下錯誤信息:

Errors: Missing $ inserted // on point 1. 
Too many }'s at end of list and Missing } inserted. 

感謝您的幫助......

+1

我不明白,你的問題的一部分,是你的實際問題...是編號列表乳膠打算?如果是這樣,'\ lambda \'不需要第二個反斜槓,並且也應該在數學環境中,如下所示:'$ \ lambda $' – wesanyer

+1

我有打印特殊字符的問題。我不知道$ \ lambda $和數學環境。也是我第一次使用stackoverflow。 @wesanyar您的評論有幫助!錯誤解決謝謝! –

+0

@VarunJoshi, - 你應該接受下面的wesanyers答案。 (這也將有助於你的名聲;-)) – MortenSickel

回答

1

任何當您在LaTeX中使用特殊字符時,例如\lambda,您需要確保將其放置在數學環境中。您可以通過它環繞在美元的符號做這個「一致」:也

\begin{math} 
    \lambda = \mu * \frac{2}{3} 
\end{math} 

,因爲你是新的:

$\lambda$ 

另外,對於較大的數學文本塊,你可以這樣做乳膠,我將指出使用\text,如果你需要在你的公式一些非數學字符這是很方便:

$\lambda = \text{MyVariable} * x_{\text{a_long_description}}$ 

更新:爲dlfri指出,你會婉噸至使用enumerate環境,而不是手動輸入你的號碼:

\begin{enumerate} 
    \item First item 
    \item Second item 
    \begin{enumerate} 
     \item First sub-item 
     \item Second sub-item 
    \end{enumerate} 
    \item Third Item 
\end{enumerate} 
2

而是然後手工輸入號碼的枚舉列表,你可以最好使用enumerate環境。如果以明文形式使用數學命令和符號,請記住將它們包裝在$...$中。

\documentclass{article} 
\usepackage[a4paper]{geometry} 

\begin{document} 

\begin{enumerate} 
    \item An arrival rate $\lambda$ 
    \item Upper bound of the server rate \& the waiting buffer, denoted by $\mu$, $u$, \& $N_b$ 
    \item Cost parameters $(C_0, C_1, C_2, C_3, C_4, C_5, C_6)$ 
    \item A response time guarantee $x$ 
    \item System parameters $\{\theta_i, \theta_d, \theta_s\}$ used by the ISN policy 
    \item System parameter $\{k\}$ used by the SN policy 
    \item System parameters $\{\theta, N=1\}$ used by the SI policy 
    \item Output: $\mu^*$, $N^*$ and $F_c(\mu^*, N^*)$ 
\end{enumerate} 

\end{document} 

息率

enter image description here