this is my first post on tex.stackexchange, so please forgive any violations on proper question-asking.
I'm currently writting a thesis about a project that contains a lot of coding. I would like to add the most important (and "genius") parts of the code as pseudo-code into the thesis and would like to have them listed in my regular \listoffigures
, ideally with a hint that those are pseudo-code pieces.
What I intend is something similar to this:
List Of Figures
- someNormalFigure
- anotherNormalFigure
- beautifulAlgorithm (PseudoCode)
The name of the pseudo-code piece should be "beautifulAlgorithm" and not "beautifulAlgorithm (PseudoCode)".
I'm using TexMaker, MikTex and the article
environment. (just in case this in necessary or useful information to anyone)
Best Answer
The pseudo code is taken from somewhere else on this side. As you have not given an MWE, I had to guess something. The package
caption
helps you by imitating captions from other environments. The default behaviour (layout) of the pseudo code is not changed (at least not in my example).