Hi All
Is there any javascript coding for changing page number to roman (i.e., i, ii, iii, etc.) in between the documents using xml tags or styles
Please help me.
Sajeev
We use this function to convert decimal to roman numbers:
function decimalToRoman(decimalNumber) {
var romanString="";
var equivalences={M:1000,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10, IX:9,V:5,IV:4,I:1};
for (var i in equivalences) {
while (decimalNumber>=equivalences[i] ) {
romanString=romanString+i;
decimalNumber=decimalNumber-equivalences[i];
}
}
return romanString;
}
Don´t know if this helps
Hi Joe and Sundar,
Thanks for your speedy reply.
Actually my document contains Front-Matter and Chapters
Frontmatter starts with page number - i, ii, iii, iv, etc., (i.e., in roman numbers)
Chapters starts with page number - 1, 2, 3, 4 ... (in arabic)
Is there any syntax for defining starting page numbers using XML tags or Styles.
Please help.
Sajeev
North America
Europe, Middle East and Africa
Asia Pacific