> MadBlog > Article

One Link for Both Online and Print Outputs

Published on: May 25, 2011

MadCap Software Logo
blog image

Click to see a demo.

Did you know that you can create one link for both Online and Print outputs? By using style mediums, you can set up a cross-reference style to automatically display as a hyperlink in online documentation and a cross-reference in print documents.

In our demo, the project contains two targets, one WebHelp and one PDF. By default the WebHelp target pulls from the ‘default’ medium and the PDF target pulls from the ‘print’ medium. The settings for which medium targets use is in the advanced tab of the target file editor. The topics that are used in the demo are also already added to the TOC so that the PDF target knows what content to include when compiling the output.

Below is the code for the style sheet if you would rather just paste it into the style sheet using notepad:

MadCap|xref
{
          mc-format: '{title}';
}

@media print
{
         MadCap|xref
         {
                  mc-format: '{title} (see page {page})  ';
         }
}

Posted in: MadCap Flare, Tech Comm, Tips & Tricks


Jose Sermeno

With over 10 years of experience in the software industry, Mr. Sermeno brings a wealth of knowledge and expertise to the product evangelist team, helping introduce new users to everything MadCap Software. In his spare time, Jose is the Project Director for San Diego City Robotics, the San Diego community college systems robotics program, and enjoys working in software design and open source hardware development. Prior to joining MadCap in late 2010, Jose ran a Drupal development shop, and was an application manager for Temple University Health System.

Try for Free

See it in your own workflow. Start a free trial and build your first project today.

lightbulb icon

Have a suggestion for a blog article? Submit it here