【问题标题】:Space between rows Rmarkdown行间距 Rmarkdown
【发布时间】:2020-05-04 11:52:58
【问题描述】:

我不想有 10 行方程式解释,我想将它减少到 5 行,这样我在一行上有两个解释,它们之间有足够的空间,这样它在 PDF 上看起来不错。 现在当我将它们放在同一行时,我似乎无法强制它们之间有空格,并且它出现在 PDF 上只有一个空格。

有什么建议吗?

The formula for a three asset portfolios variance is:  

\begin{equation}
  \sigma_p^2 = w_a^2 \sigma_a^2 + w_b^2 \sigma_b^2 + w_c^2 \sigma_c^2 + 2w_aw_b \sigma_{ab} + 2w_a w_c\sigma_{ac} + 2w_b w_c \sigma_{bc}
\end{equation}

Where:

  $\sigma_p^2$ = The portfolios variance 

  $w_a^2$      = The weight of asset a            

  $\sigma_a^2$ = The variance in asset a         

  $w_b^2$      = The weight of asset b           

  $\sigma_b^2$ = The variancde in asset b        

  $w_c^2$      = The weight of asset c

  $\sigma_c^2$ = The variance in asset c

  $\sigma_{ab}$= The covariance between asset a and b

  $\sigma_{ac}$= The covariance between asset a and c 

  $\sigma_{bc}$= The covariance between asset b and c

【问题讨论】:

  • 这看起来像一个 LaTeX 问题。和 RMarkdown 有什么关系?

标签: pdf r-markdown


【解决方案1】:

你必须在markdown处输入LaTeX代码

\begin{equation*}
\begin{aligned}[l]
\sigma_p^2 = The portfolios variance\\
w_a^2      = The weight of asset a\\
\sigma_a^2 = The variance in asset a\\
w_b^2      = The weight of asset b\\
\sigma_b^2 = The variancde in asset b\\
\end{aligned}
\qquad\qquad
\begin{aligned}[l]
w_c^2      = The weight of asset c\\
\sigma_c^2 = The variance in asset c\\
\sigma_{ab}= The covariance between asset a and b\\
\sigma_{ac}= The covariance between asset a and c\\
\sigma_{bc}= The covariance between asset b and c\\
\end{aligned}
\end{equation*}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-01-18
    • 1970-01-01
    • 1970-01-01
    • 2015-10-07
    • 2019-09-21
    • 2010-10-29
    • 2017-08-28
    相关资源
    最近更新 更多