提问于:
浏览数:
1622
## 编译环境
操作系统
* [* ] Windows 7/8/10
* [ ] macOS
* [ ] Linux
`若需勾选,请把[ ]改成[x]`
Tex发行版
* [* ] TexLive `年份`
* [ ] MikTeX `版本号`
* [ ] CTeX
`若需勾选,请把[ ]改成[x]`
## 我的问题
在此输入你遇到的问题...
如何改为两倍行间距的同时使得有大括号的公式上下方空格较小?
```
\documentclass{article}
\usepackage{geometry}
\renewcommand{\baselinestretch}{2.0}
\usepackage{bm,amsfonts,amssymb,amsmath,float}\usepackage{sectsty}
\begin{document}
Portfolio optimization aims to obtain an investment with low risk and high
return by distributing money among candidate securities.
\begin{equation}
f(\alpha) =
\left\{
\begin{array}{cl}
2\alpha +3, & \text{if} \ \alpha < 0.5 \\
4\alpha +2, & \text{if} \ \alpha \geq 0.5, \\
\end{array}
\right.
\end{equation}
Markowitz first proposed mean-variance model into portfolio optimization by
minimizing variance to reduce volatility.
\end{document}
```
1 回答
0
> 如何改为两倍行间距
这是 word 中的两倍行距
> 使得有大括号的公式上下方空格较小
谁叫你要空行?空行不就换段了?换段了还要别人间距小?
```tex
\documentclass{article}
\usepackage{amsmath}
\usepackage[
UseMSWordMultipleLineSpacing,
MSWordLineSpacingMultiple=2
]{zhlineskip}
\begin{document}
Portfolio optimization aims to obtain an investment with low risk and high
return by distributing money among candidate securities.
\begin{equation}
f(\alpha) =
\begin{cases}
2\alpha +3, & \text{if }\alpha < 0.5 \\
4\alpha +2, & \text{if }\alpha \geq 0.5, \\
\end{cases}
\end{equation}
Markowitz first proposed mean-variance model into portfolio
\end{document}
```
-
试过了,好用,非常感谢! – 七七 2020-08-01 23:03 回复
你的回答
请登录后回答
你的回答将会帮助更多人,请务必认真回答问题。