Skip to content

add support for algorithm environment in bicaption package

We hope to have bilingual captions for algorithm environment (provided by the algorithm package). For example, use the \captionsetup command:

\captionsetup[algorithm][bi-first]{  % Chinese caption
    subrefformat=parens,
    labelsep=Twospace,
    font=CapFont,
    skip=1bp,
    name=算法  % Chinese characters meaning "algorithm"
}
\captionsetup[algorithm][bi-second]{  % English caption
    subrefformat=parens,
    labelsep=Twospace,
    font=CapFont,
    skip=1bp,
    name=Algo.
}

Now the \bicaption{示例算法}{Example} looks like this:

image

Edited by Saltsmart