kks32 / phd-thesis-template

A LaTeX / XeLaTeX / LuaLaTeX PhD thesis template for Cambridge University Engineering Department (CUED)
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/
MIT License
833 stars 400 forks source link

algpseucode #244

Open aloparedes opened 2 years ago

aloparedes commented 2 years ago

Hello,

I am trying to write an algorithm using this template. I uncommented \usepackage{algpseudocode} in the preamble and started to write the desired algorithm in the corresponding chapter \begin{algorithmic}.... However, I am not able to do it.

Could you please advise?

BR, Alvaro.

GR8DAN commented 1 year ago

I've had problems with algpseudocode, I switched to algorithm2e. In the preamble.tex file switch line 49 to:

\usepackage[ruled,vlined]{algorithm2e}

Details on options here: http://tug.ctan.org/macros/latex/contrib/algorithm2e/doc/algorithm2e.pdf

Another alternative would be the algorithmic package, or the listings package (https://texdoc.org/serve/listings.pdf/0) for plain source code and text.