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
827 stars 398 forks source link

algpseucode #244

Open aloparedes opened 1 year ago

aloparedes commented 1 year 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.