Giter Site home page Giter Site logo

Comments (5)

mohuangrui avatar mohuangrui commented on May 11, 2024

你好,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.

tangjie1992 avatar tangjie1992 commented on May 11, 2024

你好,上面那两个链接我都看了,
listing这种抄录环境,简洁是简洁了,但是问题是listing环境似乎无法嵌套公式了,而 algorithm环境是可以的:

- 比如根号、幂、下标、求和符号之类的
- 还有些特殊的:$\mathcal{Q}$之类的

好吧,感觉抄录环境确实不大可能嵌套公式,我还是再试试怎么让algorithm跨页吧。
你要知道的话能否回一个,不知道的话我就自己再想想招吧

谢谢了~~

from ucasthesis.

mohuangrui avatar mohuangrui commented on May 11, 2024

那样的话建议你阅读algorithm的用户文档,祝一切顺利

from ucasthesis.

tangjie1992 avatar tangjie1992 commented on May 11, 2024

已经解决,祝后来人一切顺利!!

https://tex.stackexchange.com/questions/29816/algorithm-over-2-pages

https://tex.stackexchange.com/questions/33866/algorithm-tag-and-page-break

也谢谢莫同学!!

from ucasthesis.

mohuangrui avatar mohuangrui commented on May 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.