| to_latex | R Documentation |
Renders a CVXR Problem, Expression, or Constraint
as a LaTeX string. Problem-level output uses the optidef package
(mini*/maxi* environments) and atom macros from
dcp.sty (shipped as system.file("sty", "dcp.sty", package = "CVXR")).
to_latex(x, ...)
x |
A |
... |
Reserved for future options. |
A character string containing LaTeX code.
x <- Variable(3, name = "x")
cat(to_latex(p_norm(x, 2)))
# \cvxnorm{x}_2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.