Skip to Content.
Sympa Menu

coq-club - [Coq-Club] coqdoc printing tokens

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] coqdoc printing tokens


Chronological Thread 
  • From: Jason Gross <jasongross9 AT gmail.com>
  • To: coq-club <coq-club AT inria.fr>
  • Subject: [Coq-Club] coqdoc printing tokens
  • Date: Sat, 23 Feb 2013 16:33:26 -0500

Is there a way to figure out what a line of Coq code parses to, in terms of tokens?  For example, if I have [Notation "i ⁻¹" := (isomorphism_inverse i) (at level 10).], how do I figure out what the right set of printing directives to give to coqdoc is?  None of the following work:

(** printing i ⁻¹ %\ensuremath{i^{-1}}% #i<sup>-1</sup># *)
(** printing 'i ⁻¹' %\ensuremath{i^{-1}}% #i<sup>-1</sup># *)
(** printing "i ⁻¹" %\ensuremath{i^{-1}}% #i<sup>-1</sup># *)
(** printing ⁻¹ %\ensuremath{^{-1}}% #<sup>-1</sup># *)
(** printing '⁻¹' %\ensuremath{^{-1}}% #<sup>-1</sup># *)
(** printing '⁻' %\ensuremath{^{-}}% #<sup>-</sup># *)
(** printing '¹' %\ensuremath{^{1}}% #<sup>1</sup># *)
(** printing ⁻ %\ensuremath{^{-}}% #<sup>-</sup># *)
(** printing ¹ %\ensuremath{^{1}}% #<sup>1</sup># *)

Thanks.

-Jason


  • [Coq-Club] coqdoc printing tokens, Jason Gross, 02/23/2013

Archive powered by MHonArc 2.6.18.

Top of Page