From mboxrd@z Thu Jan 1 00:00:00 1970 From: Skip Collins Subject: Re: latex checkboxes Date: Thu, 16 Jun 2011 21:37:05 -0400 Message-ID: References: <16191.1308264765@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXNzh-0005xK-Gh for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 21:37:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXNzf-000362-2l for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 21:37:09 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:53623) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXNze-00035w-OU for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 21:37:06 -0400 Received: by ewy9 with SMTP id 9so864242ewy.0 for ; Thu, 16 Jun 2011 18:37:05 -0700 (PDT) In-Reply-To: <16191.1308264765@alphaville.dokosmarshall.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org On Thu, Jun 16, 2011 at 6:52 PM, Nick Dokos wrote: > I like it! Well, almost all of it: I'd vote for \large, rather than \LARGE, > but otherwise it looks good to me. Can we compromise on \Large ? :-) > ,---- > | \item [{\parbox[][][c]{\wd0}{\LARGE$\square$}}] a > `---- I tried the optional preamble for \item in a very naive fashion. LaTeX threw an error. Maybe I did it wrong. Or maybe the preamble is fragile. Regardless, there is probably a simple solution. Even for enumerated lists, it makes sense to place the checkbox with the list number rather than with the item text. Regarding the extra square brackets after \parbox, I was just using the documentation I found at http://www.tug.org/tutorials/latex2e/$5cparbox.html : \parbox[position][height][inner-pos]{width}{text} A parbox is a box whose contents are created in paragraph mode. The \parbox has two mandatory arguments: width - specifies the width of the parbox, and text - the text that goes inside the parbox. LaTeX will position a parbox so its centre lines up with the centre of the text line. The optional position argument allows you to line up either the top or bottom line in the parbox (default is top). If the height argument is not given, the box will have the natural height of the text. The inner-pos argument controls the placement of the text inside the box. If it is not specified, position is used. t --- text is placed at the top of the box. c --- text is centred in the box. b --- text is placed at the bottom of the box. s --- stretch vertically. The text must contain vertically stretchable space for this to work. A \parbox command is used for a parbox containing a small piece of text, with nothing fancy inside. In particular, you shouldn't use any of the paragraph-making environments inside a \parbox argument. For larger pieces of text, including ones containing a paragraph-making environment, you should use a minipage environment See minipage.