DITA and XMetaL Discussion

  • linjinwei

    Paragraphing problem

    Participants 5
    Replies 6
    Last Activity 13 years, 9 months ago

    Why is it that paragraphs are remove when you display in HTML or pdf. What I mean is how do u maintain the spacing every time you press Enter in pdf or html output?

    As you can see In XMetal, I've created some paragraphs:

    [img]http://img187.imageshack.us/img187/5665/spacing1yx5.jpg[/img]

    But it is not displayed in pdf:

    [img]http://img257.imageshack.us/img257/2348/spacing2lv4.jpg[/img]

    I've tried setting the style in ditabase-derived.css
    [code]
    /* spacer {*/
    [class~=”hi-d/spacer”] {
    line-height:40px;
    }[/code]

    It didnt work. What should I do?

    Reply

    Su-Laine Yeo

    Reply to: Paragraphing problem

    The code that generates PDF and HTML must be using logic that ignores empty paragraphs. If a structured authoring and publishing system is set up properly to meet the needs of the organization, authors don't have to deliberately use empty paragraphs to optimize the layout of their text.

    What you should do is start by making sure you fully understand the paradigm of separating content and formatting, and then make sure you're using the right element types. Some of the following articles might help: http://justwriteclick.com/2008/08/15/darwin-information-typing-architecture-dita-reading-list/ . Or you can talk to a structured authoring consultant.

    Any changes made to the ditabase-base.css file only affect how things look in XMetaL Author views, not in HTML or PDF output.

    Regards,
    Su-Laine

    Reply

    linjinwei

    Reply to: Paragraphing problem

    Yes I understand that changes in ditabase-base.css  will only affect XMetal output, and I've also figured out how where to change to enable pdf output.

    Now I only need to know where is the file to change so that it will also affect HTML output.

    Reply

    lizaugustine

    Reply to: Paragraphing problem

    Why not use one of the tags that supports empty line breaks, such as ?

    — liz

    Reply

    linjinwei

    Reply to: Paragraphing problem

    Well i explored and it doesnt seems to do anything, so I customized it.
    It can display in pdf, but not in XMetal.

    PDF output
    From: C:Program FilesCommon FilesXMetaL SharedDITA_OTdemoxmfoCustomizationfoattrsxm-cfgcommons-attr.xsl
    [code]
       
                20pt
       

    [/code]

    XMetal interface
    From: C:Program FilesXMetaL 5.1AuthorDITAXACssharedditabase-derived.css
    [code]/* lines {*/
    [class~=”topic/lines”] {
    line-height: 20pt;
    }[/code]

    I dont know the EXACT coding to create spacing in css, so can anybody tell me?
    ==============================================================

    Reply

    Derek Read

    Reply to: Paragraphing problem

    For CSS (which affects on TagsOn and Normal views in XMetaL) you can use the margin-top property in this case, though you may wish to use padding-top depending on your exact needs / preferences.

    Reply

    linjinwei

    Reply to: Paragraphing problem

    Ok i have managed to edit the commons-attr.xsl
    [Path = C:Program FilesCommon FilesXMetaL SharedDITA_OTdemoxmfoCustomizationfoattrsxm-cfg]

    [code]   
    Line 197

                10pt

    [/code]

    It works fine as what I wanted in PDF. Now I need to know how I do the same thing for HTML. Where do I change?

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support