Comments (5)
你好,algorithm的问题是属于LaTeX一般性的问题,并非ucasthesis需要去承担的功能。list选项调用的是listing宏包,其功能是能将你的源代码与tex代码独立开来,每个源代码可单独成一个文件,然后在tex内调用即可,而且其排版可以自动分页,详见 https://en.wikibooks.org/wiki/LaTeX/Source_Code_Listings
至于伪代码这样的,你可以详细阅读其相应的宏包说明文档,还有 https://en.wikibooks.org/wiki/LaTeX/Algorithms ,我并不推荐调用这类的,因为你还得针对它的语法去写算法,更推荐listing宏包的理念。
from ucasthesis.
你好,上面那两个链接我都看了,
listing这种抄录环境,简洁是简洁了,但是问题是listing环境似乎无法嵌套公式了,而 algorithm环境是可以的:
- 比如根号、幂、下标、求和符号之类的
- 还有些特殊的:$\mathcal{Q}$之类的
好吧,感觉抄录环境确实不大可能嵌套公式,我还是再试试怎么让algorithm跨页吧。
你要知道的话能否回一个,不知道的话我就自己再想想招吧
谢谢了~~
from ucasthesis.
那样的话建议你阅读algorithm的用户文档,祝一切顺利
from ucasthesis.
已经解决,祝后来人一切顺利!!
https://tex.stackexchange.com/questions/29816/algorithm-over-2-pages
https://tex.stackexchange.com/questions/33866/algorithm-tag-and-page-break
也谢谢莫同学!!
from ucasthesis.
Wikibook https://en.wikibooks.org/wiki/LaTeX/Algorithms 里就有讲到 Typesetting using the algorithmicx package, 然后 https://ctan.org/pkg/algorithmicx?lang=en 有其官方文档。 stackexchange 是比较现成,但可能被国内屏蔽了,还有就是信息分散。绝大多数时候还是更建议看用户文档的。
from ucasthesis.
Related Issues (20)
- 没有对模板做改动,使用numbers编码制,article类型的参考文献编译出来的文献类型是J/OL,是怎么回事? HOT 1
- 如何只改动使得author-year格式英文引用为 et.al 而不改动中文 等 以符合最新要求 HOT 5
- 图表目录中标题过长,首行带有缩进效果 HOT 1
- bicaption生成的中英文图标标题时,其中一个较短,另一个较长,能否设置为短的居中,长的居左? HOT 5
- 怎么把图目录和表目录分开,而不是图目录下接着生成表目录啊 HOT 9
- 每章的标题如何取消加粗,例如”第2章 xxxx“这段文本如何取消加粗 HOT 2
- 中文参考文献中标题和文献标识存在空格 HOT 2
- 论文类别设置 HOT 3
- 参考文献的姓无法实现全大写 HOT 2
- 如何取消正文章之间的空白页? HOT 2
- 页眉分割线和第一行之间的距离太小了,请问有什么方法可以放大吗? HOT 2
- 声明页如何插入多段内容 HOT 2
- 定理的字体怎么改成宋体呢 HOT 1
- 2023版要求更改了参考文献字号,求问如何更改。急 HOT 1
- 使用algorithm2e包编辑算法 HOT 2
- 如何去掉目录页的页码
- 脚注如何设置每页重新编号,且取消自带的首行缩进?
- 引用仅有两个作者的文献,编译结果文中还是显示Yang 等,2020,而非Yang 和 Zhang,2020. HOT 5
- 采用(著者—出版年制)格式,参考文献处字符第二行只缩进1个字不是缩进两个字,不清楚在哪里可以修改缩进的字 HOT 5
- 文中引用(作者年格式) (姓,年)与(名,姓年)的混杂出现 HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ucasthesis.