csp logo

Instructions for using this documentation

Issue XML Requirements

Article XML Requirements

Article Objects

ID Syntaxes

File-Naming Conventions

Full-text Examples

DTD

Article object

Computer algorithms

Element or context:

<fig><code>

Requirements:

  1. Use <fig> as the wrapper element with @fig-type="algorithm" and id="al{some number}"
  2. Set any label ("Algorithm 1.") in <label>
  3. Use <caption><p> to contain the caption (if it exists)
  4. Contain the content of the algorithm within <code>

Example 1 (regular figure):

<Fig fig-type="algorithm" id="al1">
<label>Algorithm 1.</label>
<code>
Function DECODE(c1,c2,…cn, θ)
01: for i = 1 to m do
02: ->Cycle self-training
03: for i = 1 to n do
04: -> Generate Candidate Label
05: YS←Ø
06: YS = generic-segmenter-Procedure(c[1:n])
07: end for
08: -> Different Compare based on manual intervention
09: for j = 1 to n do
10: if YS ≠ Yj
11: delete Xj.
12: update X , Y_j^s
13: end for
14: end for
15: obtain the X , Y_j^s and go to step 03 </code> </fig>