# Drop caps not working with variables

Hello.

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?

Thanks.

edit retag close merge delete

Sort by » oldest newest most voted

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.

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.

( 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.

( 2018-06-28 19:32:54 +0200 )edit

## Stats

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

Seen: 60 times

Last updated: Jun 25 '18