Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/soulmachine/acm-cheat-sheet

Acm Cheat Sheet
https://github.com/soulmachine/acm-cheat-sheet

Last synced: about 2 months ago
JSON representation

Acm Cheat Sheet

Awesome Lists containing this project

README

        

# ACM Cheat Sheet

## PDF下载

ACM Cheat Sheet(C).pdf

ACM Cheat Sheet(C++).pdf

C 文件夹下是C版,内容一摸一样,代码是用纯C写的,

C++ 文件夹下是C++版,内容一摸一样,代码是用C++写的,

Java 文件夹下是Java版,内容一摸一样,代码是用Java写的

## 如何编译PDF

### 命令行编译

```bash
docker run -it --rm -v $(pwd)/C++:/project -w /project soulmachine/texlive xelatex -interaction=nonstopmode ACM-cheat-sheet.tex
```

### vscode下编译

本项目已经配置好了vscode devcontainer, 可以在 Windows, Linux 和 macOS 三大平台上编译。

用 vscode 打开本项目,选择右下角弹出的 `"Reopen in Container"`,就会在容器中打开本项目,该容器安装了 Tex Live 2022 以及所需要的10个字体。

点击vscode左下角的齿轮图标,选择 `Command Palette`,输入`tasks`, 选择 `Run Task`, 选择 `PDF C++ version`,即可启动编译。

## LaTeX模板

本书使用的是陈硕开源的[模板](https://github.com/chenshuo/typeset)。这个模板制作精良,感谢陈硕 :)

这个LaTex模板总共使用了10个字体,下载地址 。有的字体Windows自带了,有的字体Ubuntu自带了,但都不全,还是一次性安装完所有字体比较方便。

也可以参考 [Dockerfile](https://github.com/soulmachine/docker-images/blob/master/texlive/Dockerfile) 去学习如何安装所有字体。

## 贡献代码

欢迎给本书添加内容或纠正错误,在自己本地编译成PDF,预览没问题后,就可以发pull request过来了。