Saturday, August 8, 2009

Large letter beginning paragraph

I have been trying to figure out how to add that large and nice looking first letter of a paper that some journals use (much like how it is in books for children). This is what I came up with and I would appreciate any feedback.

[The picture below is from code appearing in a later comment in the post.]

6 comments:

  1. \setlength{\parindent}{0pt}
    \begin{wrapfigure}{l}{8pt}
    \raisebox{-6pt}[0pt][-25pt]{\Huge{T}}
    \end{wrapfigure}
    his is here to illustrate how you can write with over sized introductory paragraph letters in case you are interested.

    ReplyDelete
  2. ... wooops. You need to add the "wrapfig" package

    ReplyDelete
  3. This worked fine for me, but kept giving me a Bad Box.

    Can you also make a storybook style big letter? The really fancy drawn ones? Do you know what I'm talking about? There is maybe a bunch of image files of them somewhere on the web. Those always look kind of cool.

    ReplyDelete
  4. a general, non-rhetorical, question. Why should we care about bad boxes?

    ReplyDelete
  5. 1) Todd: This is sort of by default a bad box as it is breaking into a line that it "shouldn't".
    2) Nelson: Technically we don't need to care, but it just means that we are abusing the preset paper options. I would imagine that a lot of journals wouldn't accept bad boxes.
    3) Story telling font example:

    Assuming that you have installed a font by the name "ArtNouv":

    In the preamble:
    \input ArtNouv.fd

    ...

    \begin{wrapfigure}{l}{18pt}
    \raisebox{-10pt}[0pt][-25pt]{\fontsize{32pt}{72pt}\usefont{U}{ArtNouv}{xl}{n} T}
    \end{wrapfigure}

    ReplyDelete