Page 1 of 1
how can I omit "on page xx" inserted after cross reference link tex
Posted: Tue May 08, 2018 4:34 am
by hedyhan
How Can I do? Please give me some advice?
Re: how can I omit "on page xx" inserted after cross reference link tex
Posted: Tue May 08, 2018 1:42 pm
by hedyhan
In the PDF output.
Re: how can I omit "on page xx" inserted after cross reference link tex
Posted: Tue May 08, 2018 3:01 pm
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
Re: how can I omit "on page xx" inserted after cross reference link tex
Posted: Wed May 09, 2018 4:47 am
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?
Re: how can I omit "on page xx" inserted after cross reference link tex
Posted: Wed May 09, 2018 9:58 am
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