An Expr
presenter is similar to a delaborator but outputs HTML trees instead of syntax, and
the output HTML can contain elements which interact with the original Expr
in some way. We call
interactive outputs with a reference to the original input presentations.
- userName : String
A user-friendly name for this presenter. For example, "LaTeX".
- layoutKind : ProofWidgets.LayoutKind
Whether the output HTML has inline (think something which fits in the space normally occupied by an
Expr
, e.g. LaTeX) or block (think large diagram which needs dedicated space) layout. - present : Lean.Expr → Lean.MetaM ProofWidgets.Html
Instances For
@[implemented_by _private.ProofWidgets.Presentation.Expr.0.ProofWidgets.evalExprPresenterUnsafe]
opaque
ProofWidgets.evalExprPresenter
(env : Lean.Environment)
(opts : Lean.Options)
(constName : Lean.Name)
:
Instances For
instance
ProofWidgets.ProofWidgets.GetExprPresentationsParams.instRpcEncodableGetExprPresentationsParams :
Equations
- One or more equations did not get rendered due to their size.
- name : Lean.Name
- userName : String
- html : ProofWidgets.Html
Instances For
Equations
- One or more equations did not get rendered due to their size.
- presentations : Array ProofWidgets.ExprPresentationData
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
ProofWidgets.getExprPresentations.addPresenterIfApplicable
(expr : ProofWidgets.ExprWithCtx)
(nm : Lean.Name)
(ps : Array ProofWidgets.ExprPresentationData)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
- name : Lean.Name
Name of the presenter to use.
Instances For
instance
ProofWidgets.ProofWidgets.GetExprPresentationParams.instRpcEncodableGetExprPresentationParams :
Equations
- One or more equations did not get rendered due to their size.
@[deprecated]
Equations
- One or more equations did not get rendered due to their size.
Instances For
Instances For
Equations
- One or more equations did not get rendered due to their size.
This component shows a selection of all known and applicable ProofWidgets.ExprPresenter
s which
are used to render the expression when selected. The one with highest precedence (TODO) is shown by
default.
Equations
- One or more equations did not get rendered due to their size.