Tag Info

New answers tagged

3

From the algorithm2e documentation (section 11.4 to define comments, p 35): \SetKwComment{Comment}{<start>}{<end>} defines a macro \Comment{text comment} which writes text comment between <start> and <end>. Note that <start> or <end> can be empty. It defines also \Comment*{side comment text} macro which allows to ...


2

You need to use C_{\hat{i}} instead of C_\hat{i}, because \hat doesn't open a group. Typographical advice: Because \hat{i} is too high and looks weird, LaTeX provides a dotless i \imath. It is favourable to use \hat{\imath} instead of \hat{i}. I replaced every occurrence in the example below. \documentclass{article} \usepackage{algorithm2e} ...


1

Easiest would be to let \chapter be equivalent to \section: \begingroup \let\chapter\section% Make \chapter equivalent to \section \listofalgorithms \endgroup The \chapter update is temporary until \listofalgorithms is complete.


2

Your code uses nothing involving the algorithm2e package and the use of the packages conflict with one another. Instead add the algorithm package to your preamble. \documentclass{article} \usepackage{algorithm,algpseudocode} \begin{document} \begin{algorithm} \caption{Euclid's algorithm}\label{euclid} \begin{algorithmic}[1] ...


3

The minimal example below uses code from the answer to algorithm2e: Exclude functions from \listofalgorithms with the addition of \renewcommand{\addcontentsline}[3]{} in the appropriate location where contents is written to the List of Algorithms: \documentclass{scrreprt} \usepackage{algorithm} \usepackage[ruled,algosection,algo2e]{algorithm2e} ...



Top 50 recent answers are included