how can I omit "on page xx" inserted after cross reference link tex

Having trouble installing Oxygen? Got a bug to report? Post it all here.
hedyhan
Posts: 21
Joined: Tue Mar 27, 2018 3:46 pm

how can I omit "on page xx" inserted after cross reference link tex

Post by hedyhan »

How Can I do? Please give me some advice?
hedyhan
Posts: 21
Joined: Tue Mar 27, 2018 3:46 pm

Re: how can I omit "on page xx" inserted after cross reference link tex

Post by hedyhan »

In the PDF output.
ionela
Posts: 402
Joined: Mon Dec 05, 2011 6:08 pm

Re: how can I omit "on page xx" inserted after cross reference link tex

Post by ionela »

Hello,

In the DITA PDF2 plugin there are several XML files for different languages where this string is handled. For example, for English the file is named:

Code: Select all

[OXYGEN_INSTALL_DIR]/frameworks/dita/DITA-OT2.x/plugins/org.dita.pdf2/cfg/common/vars/en.xml 
where there is present this variable:

Code: Select all

<variable id="On the page"> on page <param ref-name="pagenum"/></variable>
However, it is not recommended to modify directly this XML file and you should develop a PDF customization to achieve the result you may need.
A good starting point for PDF customization is this topic from our user manual:
https://www.oxygenxml.com/doc/versions/ ... ation.html

Also, for PDF output customization you can also check ''DITA for print' book wrote by Leigh White.

Regards,
Ionela
Ionela Istodor
oXygen XML Editor and Author Support
hedyhan
Posts: 21
Joined: Tue Mar 27, 2018 3:46 pm

Re: how can I omit "on page xx" inserted after cross reference link tex

Post by hedyhan »

Hi ,

Thanks for your reply.
I don't get it. When I find the code "<variable id="On the page"> on page <param ref-name="pagenum"/></variable>", what to do next?
I try to delete "on page", that is the code is changed to "<variable id="On the page"> <param ref-name="pagenum"/></variable>", but it does not work? How can I do?
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: how can I omit "on page xx" inserted after cross reference link tex

Post by Radu »

Hi,

When you open a DITA Map in the DITA Maps Manager and then click on the "Configure Transformation Scenarios" button there are two scenarios there for publishing to PDF: "DITA Map PDF" and "DITA Map PDF - WYSIWYG".
If you are using the former, the steps Ionela gave you should help. You can for example leave the variable with empty content:

Code: Select all

<variable id="On the page"></variable>
if that does not work, maybe you could tell us more about your particular case, in what language is your DITA content, is it English or something else? Do you already have a PDF customization folder or a custom PDF plugin installed?

If you are using the latter "DITA Map PDF - WYSIWYG" transformation which is based on CSS, you should follow the advice here:

https://www.oxygenxml.com/doc/versions/ ... uffix.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply