Using Drop Caps on single line of paragraph

I have a manuscript where drop caps would like to be used to begin each paragraph. Some paragraphs begin like so:

The first sentence is not long enough to wrap and hard return is done.
–>[indent] The second sentence begins here. Notice how there are 2 lines to drop cap with but the 2nd line is not a result of words being wrapped from the first line because there was a hard return before the beginning of the 2nd line?

In novels off the book shelf, drop caps is used in such single line situations where there is a 2nd line below after a hard return on the line above. How do publishers do this? Is this something that can only be done on Windows or Mac and not LibreOffice?

What do you call a hard return? Is it a manual Shift+Enter linebreak?

Drop caps in traditional typography are implemented with special decorated characters in a larger (fixed) font size. The special character top edge is aligned with top edge of characters in the first line. Thus, the drop cap “drops” down to extend over as many lines as dictated by its height.

Writer implements drop caps differently. The setting tells the maximum number of lines for drop cap height. If the paragraph is below this maximum (as in your case), only the effective number of lines is used. Writer computes dynamically the height pf the drop cap. Consequently if your paragraph has only one line, drop cap height is exactly the same as the paragraph font size, i.e. no drop cap at all.

The reason for this behaviour is “paragraph locality”. Drop cap is a paragraph property. As such, it should impact only the paragraph it is in. If this weren’t the case, the drop cap could interfere with the subsequent paragraph(s).

If this is your design, you can create a fixed size drop cap. Note that increasing the size of the first character does not give the same effect: the base line of the first character remains aligned with paragraph base line and your initial extends above instead of below.

The solution is to “detach” your initial from main text so that it is no longer managed with standard justification and layout methods. This means the initial goes into a frame.

For that, I create a custom frame style Dropcap. Its properties are:

  • Type tab
    • Anchor To paragraph (it is attached to the first character of the paragraph.
    • Size: AutoSize with a minimum of 0.5cm so that it is easy to insert text inside)
    • Position horizontal Left relative to Paragraph text area so that it aligns with left paragraph indent
      Note: There is a bug in Writer when your left indent is not zero; the indent is used twice (!): once to create the indent, and erroneously a second time after the frame.
    • Position vertical From top by -0.2cm relative to Paragraph text area
      This distance may need to be adjusted depending in the font metrics so that top of drop cap aligns nicely with top of characters in first line.
    • tick Keep inside text boundaries so that the drop cap does not bleed into the bottom margin if you dropcap a paragraph low in the page (it will be flushed automatically to next page to avoid this)
  • Wrap tab
    • Settings After
    • Spacing Right 0.1cm to separate the drop cap from text (more relevant for lines 2+ than for first line)
    • Options: untick Allow overlap; if you want to limit the impact of the drop cap to its paragraph (in case you have a single-line or small paragraph smaller that drop cap height and you don’t want interference with subsequent paragraph), tick First paragraph

I created a custom paragraph style Dropcap derived from Body Text so that it inherits the properties of Body Text, notably font face (you change font face in Body Text, it also changes in Dropcap; if your design chose is for a totally different face, create Dropcap as an independent style, only inheriting from Default Paragraph Style).

  • Indents & Spacing: set all indents and spacing to 0
  • Alignment: Left is selected by default, but make sure notably if Body Text is Justify
  • Font: set Size (e.g. 36pt or 300% if you want a constant ratio to Body Text) and optionally Style
    DON’T touch Family if you want to be in sync with Body Text, even to set it to the same value.

Your tools are now ready.

  1. at start of paragraph, Insert>Frame>Frame
    A default Graphics frame is create, positioned apparently randomly.
  2. apply frame style Dropcap
  3. deselect the frame and click inside it
  4. type the initial
  5. apply paragraph style Dropcap
  6. click outside (in the paragraph)
  7. type your paragraph without the initial

You can automate part of the procedure by creating an AutoText entry. It is left as an exercise.

Example file: AskLOFixedDropCap.odt (46.3 KB)

Note how the dropcap on the single line paragraph interferes with the next one.

Here: LO 24.8.4.2 under Fedora 41, KDE Plasma desktop

PS: when asking here, always mention OS name, LO version and save format. Note that the recipe is valid only for .odt documents because there are no frame styles in other formats.

1 Like

Using Debian 12 with Gnome Desktop and LibreOffice Writer v7.4.7.2

By “hard return” I meant simply tapping the “Enter” key.

@ajlittoz, thank you kindly for your detailed description and explanation of why the drop cap is not working how I expected. My first impression is that this sounds very complicated to do, leaving me thinking that I am just not able to accomplish this goal. I am concerned it will result in problems with the publisher.

For clarification sake of the problem I am encountering in case others view this thread in the future, I have attached a screenshot demonstrating the problem.
Screenshot-dropcap

Enter is a paragraph break. It creates a paragraph boundary and thus delimits the context for the drop cap.

You may try to fool Writer with a contorted key sequence. The idea is to replace the paragraph break by a line break so that your two paragraphs merge.

  1. delete the paragraph break (the Enter)
  2. press Tab
  3. type Shift+Enter

The Tab is optional if you don’t justify your lines (which seems to be the case according to your screenshot). This Tab is there only to disable *Justify/ alignment on this line.

The line break does not terminate the paragraph. It only requests to continue on next line. Therefore your “technical” paragraph is the union of the tow “logical” paragraphs.

Since you seem to use Writer like a mechanical typewriter (vertical spacing with empty paragraphs, indenting with Tab), ther should not be any unexpected side effects.