Pages: 1
Print
Author Topic: How to indent text?  (Read 6437 times)
linjinwei
Member

Posts: 65


« on: November 28, 2008, 12:24:27 AM »

A simple question - How do you indent text? Or maybe how do you add spacing?

Everytime I highlight the text i want and click the indent icon, it give me a warning, telling me to select at least 1 list item. My guess is that indent can only be used on ordered/unordered list. If this is so, how do you remove the numbering or bullet point?


Thanks in advance.
« Last Edit: December 04, 2008, 12:43:32 PM by Su-Laine Yeo » Logged
mag3737
XMetaL Evangelist
Administrator
Member

Posts: 100


I even use XMetaL to write my business letters.


« Reply #1 on: November 28, 2008, 01:14:10 AM »

With formatting-related questions, there will always be different answers depending on whether you are talking about the appearance within the XMetaL editor, or the appearance in your final output (and whether it's PDF, HTML, or other output formats).  I assume that you are asking about your final output, and that you want PDF.

I find it's helpful to think of things this way:  When you are creating content and XML markup in XMetaL, you are not creating output.  You are creating input that will shortly be used by another process to create output.  If you're using DITA, that other process is the DITA OT ("Generate output" in XMetaL).

With that in mind, your question becomes "what elements or attributes can I use that will result in having indented text in my output?"

Then the answer depends on your output type.  Different output types -- even the different PDF types -- may have different appearances for the exact same markup.  Unfortunately, I don't know any elements that are rendered as indented text in the PDF output.  (But there are many DITA elements that I don't know all about.)  The <lq> element comes very close -- it's rendered as indented in the XMetaL Enhanced PDF output (and also in the HTML output), but in the PDF it has a box drawn around it.  This means that to achieve your goal may require modifying the XSLT transformations in one of the output types.
Logged

Tom Magliery
JustSystems Canada, Inc.
linjinwei
Member

Posts: 65


« Reply #2 on: November 28, 2008, 02:18:56 AM »

Wow..too much information. Sorry but I am still very new to XMetal and XML. I dont even know what does DITA stands for...

Basically my struggle is due to the limitations that XMetal allows me to do. Like I am unable to create spacings between text or indent them.

Indeed I am trying to create the input to solve this, and that is why I am stuck due to my lack of knowledge.

Any hint?



Ok i tried out the <lq>. Yes it does show a box. How do i get ride of it?
« Last Edit: November 28, 2008, 03:34:30 AM by linjinwei » Logged
Su-Laine Yeo
Solutions Consultant
Member

Posts: 260


« Reply #3 on: November 28, 2008, 02:53:59 PM »

XMetaL can indent text, however because you're working with XML which separates meaning from formatting, there is a slightly different way of thinking to get used to. In XML, instead of saying, "indent this text", you say why you want the text to be indented and you set up stylesheets.

There are many reasons you might want text to be indented. E.g.
- It's a paragraph within a bulleted list
- It's a secondary bullet within a bulleted list item
- It's a third-level heading and you want to distinguish it from second-level headings
- It's an ordinary paragraph, and you want all paragraphs to be indented more than they are now
- It's a long quotation

Once you know the purpose of formatting a particular piece of text, the next step is to find out what element type or structural form in your XML language (in your case, DITA) best matches that purpose. E.g. DITA has a structural concept that bulleted lists can contain paragraphs. If you're new to DITA, this is probably the hardest step, but it's really important. Can you explain why you want the text to be indented?

If you're using the right element types in the right locations, XMetaL's default stylesheets might indent it automatically. If not, please post an example of what you want indented (including the tags), and someone will explain how to change the stylesheets.
« Last Edit: November 28, 2008, 03:53:39 PM by Su-Laine Yeo » Logged

Su-Laine Yeo
Solutions Consultant
JustSystems Canada, Inc.
linjinwei
Member

Posts: 65


« Reply #4 on: November 30, 2008, 06:34:21 PM »

Well I need to create a documentation that looked like this:


The document has indentations without bullet points or number list. How do I do that?
Logged
Su-Laine Yeo
Solutions Consultant
Member

Posts: 260


« Reply #5 on: December 01, 2008, 02:19:50 PM »

Can you post a bigger and higher-resolution screenshot? The easiest way is to attach the file to a post directly. I can't read the screenshot that you posted.
Logged

Su-Laine Yeo
Solutions Consultant
JustSystems Canada, Inc.
linjinwei
Member

Posts: 65


« Reply #6 on: December 01, 2008, 07:01:49 PM »

Sorry for that. I can't attach the file because it is a pdf file, and has many other things inside.

The Red line shows the level of indentation.
Logged
mag3737
XMetaL Evangelist
Administrator
Member

Posts: 100


I even use XMetaL to write my business letters.


« Reply #7 on: December 01, 2008, 07:47:44 PM »

The indentation you are showing here is not something you should be trying to do directly in XMetaL.  The page you've shown from your Table of Contents should be automatically produced by the transformations (XSLT) that generate your output.  These transformations are not (strictly speaking) part of XMetaL, but part of the DITA Open Toolkit.

XMetaL does include the DITA OT and give you easy access to it -- that's what is happening when you do "Generate Output" and select your output type -- but you have probably noticed that the Table of Contents in your output, by default, looks VERY different from what you want.

As has been suggested in http://forums.xmetal.com/index.php?topic=50.0, making modifications to the DITA OT is one of the most difficult things you will need to do in this new XML universe.  You will need much more help than we can hope to give you on this forum.  I urge you to look for additional resources, including outside consultants (available from JustSystems and many other companies) to help you with your needs.
Logged

Tom Magliery
JustSystems Canada, Inc.
Su-Laine Yeo
Solutions Consultant
Member

Posts: 260


« Reply #8 on: December 01, 2008, 08:03:30 PM »

I agree with mag3737's that the questions you've been asking are the hardest ones - you've really jumped in the deep end, so don't get discouraged!

A variety of companies offer consulting services in setting up XML publishing systems. Many, if not all, are willing for no charge or for a nominal fee to do an initial assessment of your requirements and help you understand what it would take to meet them. The good news is that once a publishing system is set up, you probably don't need to have those highly technical skills on-site.
Logged

Su-Laine Yeo
Solutions Consultant
JustSystems Canada, Inc.
linjinwei
Member

Posts: 65


« Reply #9 on: December 02, 2008, 09:51:56 PM »

I managed to find a workaround solution by using Definition List. Works fine.

Thanks for trying to help :D
Logged
Pages: 1
Print
Jump to: