Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] A question on format strings

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] A question on format strings


Chronological Thread 
  • From: Ralf Jung <jung AT mpi-sws.org>
  • To: coq-club AT inria.fr, christian.doczkal AT ens-lyon.fr
  • Subject: Re: [Coq-Club] A question on format strings
  • Date: Mon, 21 Oct 2019 13:37:43 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=jung AT mpi-sws.org; spf=Pass smtp.mailfrom=jung AT mpi-sws.org; spf=None smtp.helo=postmaster AT jupiter.mpi-klsb.mpg.de
  • Ironport-phdr: 9a23:QgR2rBfQGkMhr4GsZYhtMayrlGMj4u6mDksu8pMizoh2WeGdxcu9Zh7h7PlgxGXEQZ/co6odzbaP6OawBCdcvd6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCybL9vIhi6twbcu8kZjYZtJas61wfErGZPd+lK321jOEidnwz75se+/Z5j9zpftvc8/MNeUqv0Yro1Q6VAADspL2466svrtQLeTQSU/XsTTn8WkhtTDAfb6hzxQ4r8vTH7tup53ymaINH2QLUpUjms86tnVBnlgzoBOjUk8m/Yl9ZwgbpGrhy/qRxxw43abo+bO/VxfKzSYdwUSHFdXstSTSFNHp+wYoUNAucHIO1Wr5P9p1wLrRamGQejHufvyjFVjXHywK061eshGhzB0QwiAtIOtnvUoc7wNKcKUOC51bLIzDvYb/9M3jf98ofIfwknrPqRU7xwds/RxlMuFwPDlliQrJTlPzKM2uQWvWmb9PBsVeW1i24orQx6vzuhxt80h4XUiI8YzkrI+Th9zYovJtC1SVR3bcOkHZdIqi2XOY97Ttk/T2xsoio217wLtJ2hcCUIy5kqwQPUZeadfIiS+B3jUf6cITdmi3Jhf7KynxSy8VW4yu39Ssm7zkxKojBAktnUt3ABzh/T6sycSvRm5Euh3C6P1w/J5u5ZP084javbK5g/zb4sjpcfrErOEyvslEnriKKabEYp9+my5+j6YrjqvpqcOJV1igH6PKQugMu/AeEgPwgMQmib/+u82abm/U3hQbVGl+Y2k6fCsJzAIsQbvKG5DxdP0ok/8xa/Eyum0NMAkHYbK1JFYQuLgJTtO1HTO//1Fuy/glSpkDdz3f/KJLzhApPXLnjCirjtZ7h961QPgDY0mNtY/tdfDqwLCPP1QE748tLCSlcyMxa12PrmAdM72oQVS2GGBoeUNriXtU6P4KQhObqifogQ7Qz0L/ZtxePogjdtm0IbcoGsxZpSc2+jWPN8LBPKMjLXnt4dHDJS7UIFR+vwhQjaCG8BVzOJR6s5owoDJsejBIbHSJqqheXajiKjH9hNeXsADUqDQy6xK9e0HswUYSfXGfdP1yQeXOH6GYo51FS1qxS8zKBofLKNp38o8Kn73d0w3NX90BE/8TsuUpafznmMU2xu2GYQRno12Lt150llxRGP3Pogjg==

Hi Christian,

Interesting question! I've played quite a bit with the printing boxes to make
Hoare triples print nicely, but I think what you want is outside of their
current scope... you basically want indentation "for the first line only", or
*negative* indentation for the second line.

I would not know of a way to do that with the tools provided currently, but
maybe the underlying OCaml formatting machinery has a way? I am not familiar
with that, unfortunately. Might be worth submitting a feature request on GH?

; Ralf

On 03.09.19 12:50, Christian Doczkal wrote:
> Hi,
>
> I have been toying around with format strings and I am wondering if it is
> possible to craft a notation exhibiting the following behavior for some
> relation symbol (e.g., ≡ )
>
> - short expressions are printed on one line: u ≡ v
> - if the whole expression does not fit on a single line, it is indented as
> follows:
>
> <some long expression>
> ≡ <another long expression>
>
> That is, I would like to have the relation symbol at the start of the
> second line and indent the first line such that both long expressions start
> on the same column.
>
> Thanks in advance.
>
> Best,
> Christian
>

--
Website: https://people.mpi-sws.org/~jung/


  • Re: [Coq-Club] A question on format strings, Ralf Jung, 10/21/2019

Archive powered by MHonArc 2.6.18.

Top of Page