Tag Info

New answers tagged

2

All you need is to create the block, which can be done using simply something like \SetKwProg{Fn}{Function}{}{} to have ready to use arguments. Then, in your algorithm you would say, for example, \Fn{BuildOLD (directory)}{ <contents> } A complete example in which I also changed the fonts used to sans serif and the color of the rules so as to ...


3

The procedure environment is a special form of the algorithm environment. Passing the option procnumbered to algorithm2e numbers procedures using the same counter as algorithms: \documentclass{article} \usepackage[procnumbered,ruled]{algorithm2e} \begin{document} \begin{procedure} \caption{myproc()} This is a procedure \end{procedure} ...


1

I don't see any difference in the List of Algorithms size and that of Contents - they're both set as a \chapter* and therefore should look the same. In terms of the label reference, you're setting the \labelformat for a non-existent counter. In fact, algorithm2e uses the counter algocf rather than algorithm. \documentclass{report} \usepackage{varioref} ...


2

If you really want to break it evenly, you can put it into a single column and use \clipbox from the adjustbox package to literally cut it in half. \documentclass[10pt,twoside]{report} \usepackage[utf8]{inputenc} \usepackage[a4paper,width=150mm,top=25mm,bottom=25mm,bindingoffset=6mm]{geometry} \usepackage{fancyhdr} \pagestyle{fancy} ...


2

It appeared that removing the ulem package, which I once used for strikeouts, did the trick. It now typesets with the expected format.


2

Package algorithm2e does not allow H in twocolumn mode, regardless if single or double float. A little excerpt from the package file: \if@twocolumn\@latex@error{[H] in two columns mode is not allowed for algorithms}\fi% TODO: SCREAM if H in two colums! Bad thing is, for some reason two captions in an algorithm environment don't work. The solution can ...



Top 50 recent answers are included