Ann

Results 80 comments of Ann

有的论文模板定义了摘要环境,还区分中英文,如何灵活适配?

参考这个issue:https://github.com/Microsoft/vscode/issues/4651

- [ ] https://github.com/liantze/AltaCV - [ ] https://github.com/James5979/EleganceCV - [x] https://github.com/TheMartianLife/TheMartianResume

- [ ] https://github.com/classysoftware/classycv - [ ] https://github.com/GironsLopez/gironslopez-cv

- [ ] https://github.com/zzh2616/CV_LaTeX

因为`listings`的 `float=htbp`导致 modules/boo/book.sh ```bash # 以下2行是干嘛的? sed -i -E "/begin\{lstlisting.*label.*\]/ s/caption=(.*)?,\s*label=(.*)\]/caption=\1, label=\2, float=htbp\]/" $TEX_OUTPUT sed -i -E "/begin\{lstlisting.*label.*\]/ s/\[label=(.*)?\]/\[label=\1, caption=\1, float=htbp\]/" ```

删除 `float=htbp` 之后`listings`存在跨页问题。 ![image](https://user-images.githubusercontent.com/4145852/58855208-0f551880-86d2-11e9-9dca-d41c4bc54289.png) 参见:https://tex.stackexchange.com/questions/88134/stop-listings-going-over-page-breaks

## 是longtable的bug - https://www.latex-project.org/cgi-bin/ltxbugs2html.new?pr=tools/3512 - https://gist.github.com/muzimuzhi/ba7fab51f235b8a59af9461e0c5e05ac - https://github.com/CTeX-org/forum/issues/40 - https://tex.stackexchange.com/questions/324227/pagebreak-doesnt-work-with-floats-and-longtabu - https://github.com/latex3/latex2e/issues/137

> 可以加上 latex2e 项目里的相关 bug report: > > * [latex3/latex2e#137](https://github.com/latex3/latex2e/issues/137) > > 虽然那个 issue 里提供的 MWE,无关信息也非常多。 非常感谢!

多个`float`复现代码 ```latex \documentclass{article} \usepackage{longtable} % helper pkg \usepackage[pass, showframe]{geometry} \usepackage{lipsum} \usepackage{listings} \begin{document} \begin{lstlisting}[float=htbp] hello \end{lstlisting} \begin{figure}[t] a\\b\\c\\d \end{figure} \begin{lstlisting}[float=htbp] hello2 \end{lstlisting} \lipsum[1] % optional \begin{lstlisting}[float=htbp] hello3 \end{lstlisting} \begin{longtable}{l} cell \end{longtable}...