| View previous topic :: View next topic |
| Author |
Message |
Westland Super User


Joined: 03 Feb 2006 Posts: 562
|
Posted: Wed Mar 15, 2006 4:01 pm Post subject: Saving style "command" without "content" |
|
|
In our organization we (very frequently) need to prepare documents that include several equipment descriptions.
Each equipment has a short description, which is stored on a separate file. There are dozens of different files and users, so I don't believe that Autotext could be used as a replacement method.
We have been using this method for a long time (in fact, a number of files were made in word 2.0 format).
To use the content, people can insert the file, or open it and copy-paste the content to the document that is beeing written.
As you can imagine, there are a lot of manual formatting involved. Each bit of imported text has its own different font, size, and so on.
We want to "revamp" all these description files. I'm considering two options:
A) Save this files as TXT, with content only, using only one tab per line, when needed. This allows a clean import. The styles can be quickly applyed, with short-keys
B) Saving the files as some kind of "Latex" file, where the syle names to be used in each part (introduction, characteristics, advantages) would be included, but without actually saving the styles definition. This way, if in the future we change our standard font, for example, this would not became a problem (as long as we keep the style names)
If something like (B) is possible, I would prefer it, because it would automate the formatting of all imported description files. What do you think ? Is this possible ? _________________ "Do one thing every day that scares you" |
|
| Back to top |
|
 |
9point9 Moderator

Joined: 31 Aug 2004 Posts: 3875 Location: UK
|
Posted: Wed Mar 15, 2006 5:47 pm Post subject: |
|
|
B is possible and best.
Create an example file with everything stylewise as you would like it. Then extract this file using a compression tool. Look at content.xml. Here you can see where the styles are applied. You then need to come up with some sort fo method for entering the text into there and zipping it up with the styles.xml file from the sample ODT. _________________ Arch Linux
OOo 3.2.0
OOoSVN, change control for OOo documents:
http://sourceforge.net/projects/ooosvn/ |
|
| Back to top |
|
 |
Westland Super User


Joined: 03 Feb 2006 Posts: 562
|
Posted: Wed Mar 15, 2006 6:14 pm Post subject: |
|
|
To 9point9:
Thank you for your answer.
I think you are right. I'm not real familiar with XML, but it does contain the kind of "stuff" I'm looking for.
My problem is that I must find a method that can be used by everybody, as part of "normal" text typing, and not by "editing" compressed files.
I'm not an expert with macros, but I'm willing to develop my expertise, if I'm pretty convinced that such method is possible.  _________________ "Do one thing every day that scares you" |
|
| Back to top |
|
 |
Westland Super User


Joined: 03 Feb 2006 Posts: 562
|
Posted: Wed Mar 15, 2006 6:48 pm Post subject: |
|
|
I've seen that on Insert > File I have DocBook (*.XML) as a possibility.
(not sure what I can achieve with this, though) _________________ "Do one thing every day that scares you" |
|
| Back to top |
|
 |
Westland Super User


Joined: 03 Feb 2006 Posts: 562
|
Posted: Thu Mar 16, 2006 3:34 am Post subject: |
|
|
I've tryed to export to DocBook XML. It works, but no styles are included
The "bullets" are exported, though.
I'm not sure if this is a limitaion of the DocBook format. Still investigating... _________________ "Do one thing every day that scares you" |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|