The simplest form of single-sourcing in Help+Manual is publishing exactly the same project to different formats. For example, you might want to publish a CHM version for interactive online help and a simple PDF version that users can use to generate a printed manual. Here too, you will still need to make small variations in your content to adjust for the different contexts of the different output formats.
You can always publish your Help+Manual project to any of the supported formats, at any time. There is no "primary format", and no restriction on what format individual projects can be published to. This is made possible by the XML source format, which can always be used to generate any output format at any time.
The simplest way to publish is to a single output format.
1.Save your project, then select the Publish tool in the Project tab.
2.Choose the format you want to publish to, configure your output options and select Publish Now! to generate your published output.
Check out Publishing your Projects for full details.
You can define publishing "tasks" to publish your project to all the output formats you want to use in a single efficient process. Once you have set up a task it is saved and you then just have to select it to re-publish to all the same formats and locations again.
1.Save your project and select Publish in the Project tab.
2.Select Task Manager to display the Task Manager page. Then:
•Click on Publish Task to publish the current project using one of the predefined tasks.
•Click on New Task to create a new publishing task.
•Edit an existing task with the Add and Remove Task Action tools.
See Automating Publishing Jobs for full details.
Adjusting included topics:
See Multiple TOCs for more detailed instructions.
1.In the Project Explorer, select the topic you want to include only in one or more specific output formats.
2.Select Change > Include in Builds in Project > Manage Topics. This displays a list of available build conditions that you can apply to the topic.
3.Activate the check boxes for all the formats where you want to include the selected topic. The topic will be included in formats you activate in this list. It will be excluded from all ones that are not activated.
Adjusting content in topics:
You do this with the Conditional Text tool, by tagging versions of text for inclusion and exclusion depending on the chosen output format.
For example, you might want to include an active hyperlink in the version designed for CHM but a simple chapter reference in a PDF designed for printing. The tagged text in a topic would look like this (this is a graphical screenshot, not real text):
In the example above, the "installation instructions" link will be included in the CHM version and the "chapter 1" text in the PDF version.
1.Select the text or other content (images, multiple paragraphs etc.) you want to include in a specific output format.
2.Select the Conditional Text tool with Write > Insert Object >
3.Select If and the format you want to include the content in, then click on OK to apply the tags.