Skip to content

Inconsistency between mymath.js and mymath.sty #16989

@albert-github

Description

@albert-github
System information (version)
  • OpenCV => 4.3.0-dev
Detailed description

In the file: https://github.com/opencv/opencv/blob/master/doc/mymath.js I see:

          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],

Which looks Ok to me.
Though in the file: https://github.com/opencv/opencv/blob/master/doc/mymath.sty I see:

\newcommand{\forkthree}[6]{
  \left\{
  \begin{array}{l l}
  #1 & \mbox{#2}\\
  #3 & \mbox{#4}\\
  #5 & \mbox{#6}\\
  \end{array} \right.}
\newcommand{\forkthree}[8]{
  \left\{
  \begin{array}{l l}
  #1 & \mbox{#2}\\
  #3 & \mbox{#4}\\
  #5 & \mbox{#6}\\
  #7 & \mbox{#8}\\
  \end{array} \right.}

thus twice defining forkthree, I think the second time this should be forkfour

Metadata

Metadata

Assignees

Labels

Hackathonhttps://opencv.org/opencv-hackathon-starts-next-week/bugcategory: documentationDocumentation fix or update

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions