Ask Your Question
0

Character style background feature doesn't save in .docx format

asked 2017-11-08 19:58:59 +0200

moraito gravatar image

updated 2017-11-09 09:01:11 +0200

I'm developing a wiki in Libre Office Writen for a postgraduate course about data-journalism and I have created my own style sheet. I'm really happy with the potential of this tool but I'm facing a little issue when I save a character style.

I achieved to save the font-family and the font-size of that style but don't the background one. I customize it but when I close the document or send it to another person this feature disappears. I have created a style to emulate the <code></code> html look (monospace font and a gray background) so this feature really worths.

I am in Ubuntu 16.04 LTS.

Has someone managed to solve this problem? Thanks in advance

edit retag flag offensive close merge delete

Comments

Hi @moraito

In which document format do you save (odt or other)?

regards

pierre-yves samyn gravatar imagepierre-yves samyn ( 2017-11-09 07:49:26 +0200 )edit

Hi Pierre, thanks for your answer. I'm saving in .docx format.

moraito gravatar imagemoraito ( 2017-11-09 08:03:08 +0200 )edit

M$ Office has no notion of character style, so theses styles are translated into convoluted direct formattings. When you open your document again, you won't recover character styles because they do not exist. Save in .odt. "Recent" Word versions can read Open Document Format files. They will translate character styles for their own purpose without spoiling the file (at least if they don't modify and save it).

ajlittoz gravatar imageajlittoz ( 2017-11-09 08:45:05 +0200 )edit

Thank you very much @ajlittoz, I see where my problem was! regards

moraito gravatar imagemoraito ( 2017-11-09 08:59:56 +0200 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2017-11-09 11:55:01 +0200

ajlittoz gravatar image

M$ Office has no notion of character style, so these styles are translated into convoluted direct formattings. When you open your document again, you won't recover character styles because they do not exist. Save in .odt.

Note thet "recent" (since at least 2010, which is not that fresh!) Word versions can read Open Document Format files. See this page for a brief summary on compatibility and supported ODF features, though it is a bit biased.

The page does not elaborate on the conceptual differences of styles in both applications. Notably, you find no mention of style layers in LO or of the various extra styles (page, list, table).

Character style features will be translated as far as they are compatible with Word design. This translation is harmless, save for non-conversion of Word-unsupported features, as long as you don't modify the file, i.e. you don't update it or save it in .odt.

Of course, if you save it in other formats, don't expect the ODF extended attributes to be present since they are not managed by Word. Welcome in the realm of [partial] compatibility ;-)

If this answer helped you, please accept it by clicking the check mark ✔ to the left and, karma permitting, upvote it. If this resolves your problem, close the question, that will help other people with the same question.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-11-08 19:58:59 +0200

Seen: 86 times

Last updated: Nov 09 '17