摘要: MathType偏好里设置成Moodle:TeX filter,输出为Katex格式但包括$$,插入行内公式时不方便autohotkey代码:#If WinActive("ahk_exe MathType.exe") ^c:: SendInput, ^c Sleep 500 ;ToolTip %cl 阅读全文
posted @ 2023-07-02 16:32 思所匪夷 阅读(15) 评论(0) 推荐(0)
摘要: children():返回包含直接子模块的迭代器 for module in model.children(): print(module) GRU(34, 144, num_layers=2, batch_first=True, bidirectional=True) Sequential( (0 阅读全文
posted @ 2023-06-27 21:39 思所匪夷 阅读(30) 评论(0) 推荐(0)
摘要: Mathtype插入引用的编号转PDF后不能单机跳转的原因:Mathtype引用采用的是GOTOBUTTON(域代码)。右键切换域代码如下:要是PDF能单击跳转需要引用是超链接类型,单个引用可以右键编辑域代码,批量操作的话需要用到宏。再编一个宏事后运行的话多一个步骤有些不便捷,于是从Mathtype 阅读全文
posted @ 2023-06-27 21:29 思所匪夷 阅读(856) 评论(4) 推荐(0)
摘要: 首先使用“编辑文本和图形”查看字体大小和名称字体Adobe Thai,大小8。然后在印刷制作-印前检查-选项-创建修正" data-caption="" data-size="normal" data-rawwidth="935" data-rawheight="551" class="origin 阅读全文
posted @ 2023-03-11 12:09 思所匪夷 阅读(381) 评论(0) 推荐(0)
摘要: 没用cmap时的方法需要循环设置label,例如for color, i, target_name in zip(colors, [0, 1, 2], target_names): plt.scatter( X_r2[y == i, 0], X_r2[y == i, 1], alpha=0.8, c 阅读全文
posted @ 2023-03-07 17:32 思所匪夷 阅读(86) 评论(0) 推荐(0)
摘要: 报错如下,原因是Gradle JVM的Java版本与build.gradle中sourceCompatibility和targetCompatibility不一致,。兼容版本为11时,Gradle JVM需要选择Java11版本。sourceCompatibility = 11 targetComp 阅读全文
posted @ 2022-12-27 13:22 思所匪夷 阅读(197) 评论(0) 推荐(0)
摘要: 网上各种git config不起作用,除非git config --global core.pager more,但这样less改成了more一下子显示太多记录。最后发现原因是conda里有一个git包,而其优先权还高于系统安装的git,可以卸载前一个git或环境变量里切换系统git到高处。 阅读全文
posted @ 2022-10-31 18:09 思所匪夷 阅读(30) 评论(0) 推荐(0)
摘要: 解决:网上其他方案大都不管用。Ctrl+Alt+F4进入终端,输入,记得带^,会安装缺少的桌面应用等sudo apt-get install ubuntu-desktop^参考:Only background is there, no icons, blank screen 阅读全文
posted @ 2022-10-01 19:13 思所匪夷 阅读(34) 评论(0) 推荐(0)
摘要: word VBA实现三个功能:① 自动定位上次位置;② 打开后自动缩放指定比例;③ 缩放后自动居中(可调节)。Public Sub AutoOpen() '自动定位上次位置 On Error Resume Next ActiveDocument.ReturnToLastReadPosition '打 阅读全文
posted @ 2022-09-13 14:47 思所匪夷 阅读(73) 评论(0) 推荐(0)
摘要: 表格如果带有一些复制格式,这时复制表格再粘贴选择“粘贴为图片”,图片里表格的格式会错乱(下半图):格式错乱解决:打开PPT,选择第三个“嵌入”粘贴,作为Document对象嵌入“嵌入”粘贴后一开始显示也同样错乱:初始然后点击该嵌入对象,会进入Word,然后再关闭Word,返回PPT发现嵌入对象的格式 阅读全文
posted @ 2022-09-09 21:23 思所匪夷 阅读(640) 评论(0) 推荐(0)