registor / boxiesty

这是一个从 "https://github.com/latexstudio/ChenLaTeXBookTemplate" 中提取出来的基于tcolorbox宏包和minted 宏包或listings宏包排版代码的宏包。另外,结合原代码中的排版Ubuntu终端窗口的代码,我进一步完善了用于排版Ubuntu、Mac、Windows终端窗口的环境和从文件中加载终端窗口内容的排版命令。 可以用:\usepackage{boxie}加载该宏包。
15 stars 7 forks source link

请问取消了代码行交替高亮后还有办法使能吗?非常感谢! #1

Closed Freed-Wu closed 4 years ago

registor commented 4 years ago

暂时我还没有时间进行研究,过后我抽时间研究。

muzimuzhi commented 4 years ago

@Freed-Wu 没懂你说的意思。举个例子可能更容易说清楚。

Freed-Wu commented 4 years ago

原先代码背景是奇数行灰色偶数行白色

2020-02-19 17-38-26 的屏幕截图

现在都是白色了

2020-02-19 17-37-12 的屏幕截图

所以请教有没有恢复的方法。。。

另外使用\documentclass{mcmthesis}后代码的数字无法显示,你可以测试一下这个错误能不能复现

\documentclass{mcmthesis}
\usepackage{boxie}
\begin{document}
    \langCVfile[python][lst:main.py][python]{main.py}{lst/main.py}
\end{document}

main.py随便输点什么就好:)

muzimuzhi commented 4 years ago

在当前项目中,代码交替高亮是在 https://github.com/registor/boxiesty/commit/24bebfef36bb9ff153d6d02eb626118669058d87 中取消的,同时取消的还有对 fvextra 宏包的依赖。

在加载 fvextra 宏包的前提下,我之前的提交 https://github.com/muzimuzhi/fvextra/commit/867c371b9c2ef0e49c49140a3483aae4db191580 直接实现了它。相关讨论见 https://github.com/gpoore/fvextra/issues/8

registor commented 4 years ago

目前我还没有研究这一个问题,对不起,我最近工作的事太多。

Freed-Wu commented 4 years ago

另外使用\documentclass{mcmthesis}后代码的数字无法显示,你可以测试一下这个错误能不能复现

mcmthesis 从 6.2.2 升级到6.3 后该错误消失了。(虽然我用的texlive2019还没更新到这个版本:( )