We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question

Drop caps not working with variables [closed]

asked 2018-06-25 17:38:21 +0200

updated 2021-05-30 02:00:01 +0200

Alex Kemp gravatar image


In a book I'm writing I'm using a number of variables (fields/variables) to define the name of characters - this is because I could need to change them later in a consistent way. Everything works but drop caps: whenever a paragraph starts with a variable, drop caps don't work even though the style has been properly defined (drop caps work fine when the paragraph starts with plain text).

Is it a bug? A known limitation? Any workaround?


edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2020-07-24 12:38:53.518824

1 Answer

Sort by » oldest newest most voted

answered 2018-06-25 21:34:15 +0200

Jim K gravatar image

updated 2018-06-25 21:56:38 +0200

Looks like a limitation. The same behavior occurs with cross-references. Does not work in AOO 4.1.3 either, so probably that functionality was never implemented. Report at https://bugs.documentfoundation.org/e....

I do not see any workaround beyond the obvious: Avoid using variables in paragraphs where drop caps is needed.

Instead of variables for names, perhaps it would be enough to use Edit -> Find & Replace -> Replace All to manage them. So for example if your character is named "Bladorthin" then replace all occurrences with "Gandalf".

More Find/Replace capability is provided by AltSearch. Try setting a character style for the names to make searching more precise. Maybe even create a different character style for each name.

edit flag offensive delete link more


Since styles may vary for the same "variable" in different paragraphs (thus replace will not work correctly) better use some scrambled name. Example use Bla1dort2hin.

Xoristzatziki gravatar imageXoristzatziki ( 2018-06-26 22:17:08 +0200 )edit

Thanks Jim for confirming it's a limitation. Not a big trouble: at a certain point I'll "freeze" the character names and I'll replace the relevant variables with their contents. It will fix the thing.

Thanks for the tip about AltSearch.

Fabius Dieciscudi gravatar imageFabius Dieciscudi ( 2018-06-28 19:32:54 +0200 )edit

Question Tools

1 follower


Asked: 2018-06-25 17:38:21 +0200

Seen: 91 times

Last updated: Jun 25 '18