caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Johannes Kanig <johannes.kanig@gmail.com>
To: Alexandre Pilkiewicz <alexandre.pilkiewicz@polytechnique.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] [MLPost] Curly brances
Date: Sat, 6 Mar 2010 10:06:41 +0100	[thread overview]
Message-ID: <926565e51003060106s41693f1fqe24b862d42c3b656@mail.gmail.com> (raw)
In-Reply-To: <9020d4c51003050851xe9f2a7ftf9fd2cc9deae40d6@mail.gmail.com>

Hi,

On Fri, Mar 5, 2010 at 5:51 PM, Alexandre Pilkiewicz
<alexandre.pilkiewicz@polytechnique.org> wrote:
> I'm sorry if that's the wrong list, but mlpost doesn't seem to have
> it's own list.

You can either use the mlpost-users list on mlpost's ocamlforge site -
it hasn't seen much use yet, but this shouldn't hold you off - or
simply send an email to one of the developers.

> I would like to draw variable size curly braces,

Unfortunately, this is trickier than one might think. TeX itself makes
use of some special characters in the font to do it. However, there
still are several possibilities.

The first is to simply scale the "{" character to the right size,
using either Picture.tex or Box.tex and the corresponding xscale /
yscale functions. However, it's difficult to get it right, it never
has quite the right proportions, and rarely looks good.

The second option is to obtain the intended size (using Box.height /
Box.width etc.), get a float value of this size using the
Concrete.float_of_num function and generate the curly brace using the
corresponding latex macro.

The third option would be to use the same trick as latex does
(aligning several characters of the font) in mlpost, but off the top
of my head I couldn't do it right now.

We really should put such a function in the interface ...

Johannes

-- 
Johannes Kanig
johannes.kanig@lri.fr


  reply	other threads:[~2010-03-06  9:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-05 16:51 Alexandre Pilkiewicz
2010-03-06  9:06 ` Johannes Kanig [this message]
2010-03-06 11:45   ` [Caml-list] " Alexandre Pilkiewicz
2010-03-06 15:22     ` Johannes Kanig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=926565e51003060106s41693f1fqe24b862d42c3b656@mail.gmail.com \
    --to=johannes.kanig@gmail.com \
    --cc=alexandre.pilkiewicz@polytechnique.org \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).