Roman numerals

can anyone help me out with a Java program that promts for a number and displays it in a roman numerals please help!!!

Sure, what have you done so far? Read these links:
{color:#0000ff}http://catb.org/~esr/faqs/smart-questions.html
http://homepage1.nifty.com/algafield/sscce.html
{color}
db

Similar Messages

  • How can I print entire Roman numerals from pdf of my book?

    I just got Acrobat Pro software.
    I'm ready to send a pristine pdf version of the book to Amazon's CreateSpace for publication. I used Amazon's 6x9 template.
    Pages 2 thru 7 have Roman numerals. They look fine in pdf on-screen, but when pages iv thru vii are printed, they don't show up.  Instead, there's a small rectangular box (or part of one) without all the letters.
    What gives?
    Spike1

    This is the Reader forum; the Acrobat one is here:
    http://forums.adobe.com/community/acrobat

  • Re-write numerical page numbers to roman numerals for an introduction?

    Hi there everybody,
    I've been attempting (for some considerable time!) to typeset and format a book. The book needs to have roman numerals running from the first title page (which is in reality left blank through using a secondary master page without page numbers). However, I didn't realise I would need to use roman numerals in the introduction, and instead started the page numbers from the first title page of the introduction. Therefore, my pages that are numbered by roman numerals (copyright page etc) stop at this point and in the introduction become numbers.
    I need to change it so it is roman numerals up until the first page of the actual book, all through the introduction,  but when I try to change it in the Numbers and Sections tab, it tells me that i've already used the numbers i've typed in.
    Basically I would like to know how to take off the first set of roman numeral page numbers and start again??
    I'm very confused!! Help would be MUCH appreciated.
    Lucy

    Is this any help?
    Working with Page Numbers and Sections | Managing Pages and Books with Adobe InDesign CS6 | Que

  • Is there a way to add roman numerals to the footer? (eg. page i of n)

    Is there a way to add roman numerals to the footer? (eg. page i of n)

    Hi Emily ,
    You may face challenges doing this task in Acrobat .
    If you have created the PDF from word ,I would recommend doing the page numbering in Word, not Acrobat, since you have more flexibility with that program.
    Or the second option is ,if you know how to play around with java script.Here is the code for the same.
    Yeah, it's possible. Create a unique text field on each page with this code as the custom calculation code:
    event.value = romanize(event.target.page+1);
    Then place this function at the doc-level (I didn't write that one):
    function romanize(num) {
        if (!+num)
            return false;
        var digits = String(+num).split(""),
            key = ["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM",
                   "","X","XX","XXX","XL","L","LX","LXX","LXXX","XC",
                   "","I","II","III","IV","V","VI","VII","VIII","IX"],
            roman = "",
            i = 3;
        while (i--)
            roman = (key[+digits.pop() + (i * 10)] || "") + roman;
        return Array(+digits.join("") + 1).join("M") + roman;
    Regards
    Sukrit Dhingra

  • TOC page number as roman numerals, body as decimal

    Pretty new to the DDX world.  I'm using Cold Fusion 8 to generate a PDF.  I then use DDX to open the pdf, add a Table of Contents and headers/footers.  The Footers contain the page numbers.  Right now, the page numbers just start with the TOC (1) and go to the nd of the document.
    I'm trying to figure out a way to number the TOC with roman numerals, but the rest of the document with decimals.  Right now, I'll accept i, ii, iii, iv, 5, 6, 7... but I'm guessing my customer will want the numbering started over at 1 when we hit the body of the document.  I'll cross that bridge later.  Right now, I can't seem to find a way to mix the numbering.  I know PageLabel is the place to attack, but I've had no luck so far.  My basic DDX markup looks like:
    <DDX>
         <PDF result="out1">
              <TableOfContents>
                   <Header>
                   </Header>
                   <Footer>
                   </Footer>
              </TableOfContents>
              <PDF source="Doc1">
                   <Header>
                   </Header>
                   <Footer>
                   </Footer>
              </PDF>
         </PDF
    </DDX>
    I've placed <PageLabel format="lowerRoman"> at various placing with varying degrees of success.  Any help is greatly appreciated!

    Hello,
    i think the best way ist to create a 2 variables and add at every master page 1 to var1 or var2 .
    At every following site of the first master pages add "1" to var1 .
    At every following site of the second master pages add "1" to var2 .
    With this coding you can fill your var1 and var2 i think
    Put this on every site then i think you can fill var1 and var2 different.
    If not you must make a simple coding var1 = var1 + 1 at site1 and var2 = var2 + 1 at site2
    // data.#pageSet[0].Seite1.AktuelleSeite::ready:layout - (JavaScript, client)
    this.rawValue = xfa.layout.page(this);
    Regards
    Edited by: Florian Martin on Jun 28, 2011 10:51 AM

  • Roman numerals not importing from Word

    The last page of my document uses roman numerals in the footnotes. The Roman numerals show up in the word document, but turn into regular numbers when imported or copied inot Indesign. Does anyone have a suggestion as to how to get the roman numerals into Indesign?

    Type>document footnote options:

  • I am trying to create an outline for a communication class. Is there a way for me to input Roman numerals in pages?

    I am trying to create an outline for a communication class. Is there a way for me to input Roman numerals in pages?

    Only one Bookmarks Toolbar is allowed. You can create Folders on the bookmarks toolbar (named "Sports", "News", etc.) and add or move your bookmarks to those folders.
    *https://support.mozilla.org/en-US/kb/bookmark-folders-organize-your-bookmarks
    **Above demonstrates making folders in Bookmarks Menu in the Library window, but you can do the same under Bookmarks Toolbar in the Library window..
    **You can also create a new folder in Bookmarks Toolbar by right-click on the Bookmarks Toolbar itself and choose New Folder to create a folder on the Bookmark Toolbar.
    *More Bookmarks information - https://support.mozilla.org/en-US/kb/use-bookmarks-to-save-and-organize-websites?redirectlocale=en-US&redirectslug=how-do-i-use-bookmarks
    Other-
    *update Java to 1.6.0_35 or 1.7.0_7 for security issues
    **https://support.mozilla.org/en-US/kb/use-java-plugin-to-view-interactive-content
    *update Shockwave Flash for security issues
    **https://support.mozilla.org/en-US/kb/install-flash-plugin-view-videos-animations-games#w_keeping-flash-up-to-date

  • UIX dateField, Roman numerals in Czech

    Hi,
    I am using the following code to retrieve a date value from a UIX page. I am using Jdeveloper 10.1.2, ADF UIX 2.2.20
    <dateField name="dateNonProd"
    value="${uix.data.getWorkSlotDateTimes.NONPRODSTARTDATE}">
    <onSubmitValidater>
    <date
    pattern="dd-MMM-yyyy"/>
    </onSubmitValidater>
    Unfortunately if a date is selected by a Customer in the Czech Republic the month is appearing as Roman Numerals 01-II-06.
    Has any one else experienced this problem
    Thanks
    Colette

    Hi Colette,
    Translation for formatted date text is based on page language.
    In UIX 2.2, we can't specify translation language for date formatting (this feature is supported in ADF Faces).
    I have 2 ideas to solve your problem
    1) Override locale context to Englis. (All message will be in English).
    2) Specify locale independent formatting pattern (for example, dd-MM-yyyy).
    Regards,
    Jun

  • Setting up where Roman Numerals stop and page 1 Begins

    I did set this up, once, but have sence forgotten how to make an adgustment. Actually I currently have it set to count roman numerals to VIIII, then start "normal" numbering afterwards, which begins at page 10. Ideally I'd like the "normal" numbering to begin with 1 after the end of the roman numerals.
    Any help?
    Thanks All.

    Daniel Flavin wrote:
    From the pages Panel, right click on a page icon or use the Fly Out > Page & Section options. Start a new section; it can be defined as desired. (Also select document page 1 and set the option for i, 1, a, or A there as well.)
    I will give it a try in the morning. Thanks for your suggestion.

  • Pagination: roman numerals AND cardinal numbers

    I've written a doctoral dissertation in Pages. It is a wonderful program, but I'm still trying to resolve several issues. I have broken the document up into chapters, and each chapter is a separate section. Pagination was not a problem until I needed to create a section using Roman numerals. So my questions are these: a) can Pages handle Roman numerals as page numbers and b) can one section be numbered with roman numerals and the others with cardinal numbers?
    Thanks!
    VWBus

    Yep, it appears that, as Apple says in a technote, "Table of contents uses Arabic numerals only". Needless to say, this limits the utility of this function.
    One workaround might be to set up the front matter of your document using a differently-named style for the headings that would normally appear in the TOC, and simply exclude those when the TOC is created. You could then add in those pages by hand (since there typically are relatively few front matter pages compared to the document body).

  • Roman numerals page numbering

    How can I use lower case roman numerals for numbering my pages?
    Pages 5.2 (1860)
    MacBook Pro OSX 10.9.3

    Sorry, wasn't paying attention to your version, in Pages 5.2:
    select the number > Toolbar > Document > Section > Page Numbering > choose the numbering method
    Peter

  • Converting from integers to roman numerals

    i'm new to the whole programming scene, so I've been working with a few practice programs. I've got this one extremely close to working, but the compiler still gives me one error, and it completely baffles me. here's the code:
    package practiceprograms;
    import java.io.*;
    public class RomanNumerals {
         //ButtonCreator c = new ButtonCreator(); //uncomment at start of line to implement GUI and all other full line comments too.
         public static void main(String[] args) {
              //console.run(new ButtonCreator(), 200, 100);
              Numerals.removeNumbers(String number, int i);
    class Numerals {
         static void removeNumbers(String s, int x) {
              GetNumber b = new GetNumber();
              while (x != 0){
                   b.getInput(x);
                   if (x < 0) {
                        x = -x;
                        s += "Negative ";
                   for(; x>=1000; x -= 1000) {
                        s += "M";
                   for(; x>=100; x -= 100) {
                        s += "C";
                   for(; x>=50; x -= 50) {
                        s += "L";
                   for(; x>=10; x -= 10) {
                        s += "X";
                   for(; x>=5; x -= 5) {
                        s += "V";
                   for(; x>=1; x--) {
                        s += "I";
              //if (i = null)
              //     c.actionPerformed();
              System.out.println(s);
                   //txt.setText(s);
    class GetNumber {
         int getInput(int x) throws IOException {
              System.out.println("Please enter a non-zero number between -10000 and 10000. If you enter zero, the program will quit.");
              System.out.println("Return a blank line or zero to quit the program.");
              BufferedReader in = new BufferedReader(
                   new InputStreamReader(System.in));
              x = in.readline();
              GetNumber.getInput(x);
            return x;
         int checkI(int t) {
              if (t > 10000 | t < -10000) {
                   System.out.println("Err: Please enter a non-zero number between -10000 and 10000.");
                   GetNumber n = new GetNumber();
                   n.getInput();
                   n.checkI(i);
                   return i;
              else
                   return t;
    } and the error it gives me:
    C:\Documents and Settings\Aishu\Desktop\java class and source files\RomanNumerals.java:8: ')' expected
    Numerals.removeNumbers(String number, int i);
    ^
    1 error
    its irritating, because its almost saying that the method removeNumbers shouldn't take any arguments... or atleast thats what it seems like to me... any ideas as to what the problem is?

    hmm... well i recompiled, and reran the program (i'm using JCreator LE to write, compile, and run the programs.) and it gave me a new error... a more descriptive one, but i'm not too sure what it means. I can't copy and paste, but i'll type it into here:
    "Exception in thread "main" java.lang.ExceptionInInitializerError
    Caused by: java.lang.NullPointerException
    at comararjun.RomanNumerals.<init>(RomanNumerals.java: 106)
    at comararjun.GetNumber.<clinit>(RomanNumerals.java:9)
    Press any key to continue..."
    here's the code:
    package comararjun;
    import java.io.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    import java.awt.*;
    import java.awt.event.*;
    class GetNumber {
              static RomanNumerals r = new RomanNumerals();     
    /*line 9*/ static int getInput(int x) throws IOException {
              P.rintln("Please enter a non-zero number between -10000 and 10000.");
              P.rintln("Enter a zero to exit.");
              P.rintln();
              BufferedReader in = new BufferedReader(
                   new InputStreamReader(System.in));
              x = Integer.parseInt(in.readLine());
              //System.out.println(x);
              //checkI(x);
              //System.out.println(x);
    return x;
    //     static int checkI(int t) {
    //          if (t > 10000 || t < -10000) {
    //               RomanNumerals.r.setText("Err: Please enter a non-zero number between -10000 and 10000.");
    //               RomanNumerals.i = Integer.parseInteger(romanNumber.getText());
    //               //P.rintln("Err: Please enter a non-zero number between -10000 and 10000.");
    //               //GetNumber n = new GetNumber();
    //               //try{
    //               //     n.getInput(t);
    //               //} catch(IOException p) {
    //               //     System.out.println("Error: Wrong input type. Please enter another number.");
    //               //     Numerals.removeNumbers(RomanNumerals.number,RomanNumerals.i);
    //          //     System.out.println(t);
    //               checkI(RomanNumerals.i);
    //               return RomanNumerals.i;
    //          else
    //          //     System.out.println(t);
    //               return t;
    class Numerals {
         public static String removeNumbers(String s, int x) {
                   if (x < 0) {
                        x = -x;
                        s += "Negative ";
                   for(; x >= 1000; x -= 1000) {
                        s += "M";
                   for(; x >= 900; x -= 900) {
                        s += "CM";
                   for(; x >= 500; x -= 500) {
                        s += "D";
                   for(; x >= 400; x -= 400) {
                        s += "CD";
                   for(; x >= 100; x -= 100) {
                        s += "C";
                   for (; x >= 90; x -= 90) {
                        s += "XC";
                   for(; x >= 50; x -= 50) {
                        s += "L";
                   for (; x >= 40; x -= 40) {
                        s += "XL";
                   for(; x >= 10; x -= 10) {
                        s += "X";
                   for (; x >= 9; x -= 9) {
                        s += "IX";
                   for(; x >= 5; x -= 5) {
                        s += "V";
                   for(; x >= 4; x -= 4) {
                        s += "IV";
                   for(; x >= 1; x--) {
                        s += "I";
              //if (i == 0)
              //     c.actionPerformed();
                   return s;
                   //txt.setText(s);
    public class RomanNumerals extends JApplet implements ActionListener {
         static String number = "";
         static int i;
         JFrame converterFrame;
         JPanel converterPanel;
         JTextField romanNumber;
         JLabel intLabel, romanLabel;
         JButton convertNumber;
         public RomanNumerals() {
              /*line 106*/converterFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              converterFrame.setSize(new Dimension(120, 40));
              converterPanel = new JPanel(new GridLayout(2, 2));
              addWidgets();
              converterFrame.getContentPane().add(converterPanel, BorderLayout.CENTER);
              converterFrame.pack();
              converterFrame.setVisible(true);
         private void addWidgets() {
              romanNumber = new JTextField(2);
              intLabel = new JLabel("Integer", SwingConstants.LEFT);
              convertNumber = new JButton("Convert");
              romanLabel = new JLabel("Roman Numeral value.");
              convertNumber.addActionListener(this);
              converterPanel.add(romanNumber);
              converterPanel.add(intLabel);
              converterPanel.add(convertNumber);
              converterPanel.add(romanLabel);
              intLabel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
              romanLabel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
         GetNumber k = new GetNumber();
         Numerals l = new Numerals();
         private static void createGUI() {
              JFrame.setDefaultLookAndFeelDecorated(true);
              RomanNumerals converter = new RomanNumerals();
         public void actionPerformed(ActionEvent event) {
              i = (int)(Double.parseDouble(romanNumber.getText()));
         //     i = GetNumber.checkI(i);
              romanNumber.setText(Numerals.removeNumbers(number, i));
         static void numberIs() {
              do {
                   try {
                        i = GetNumber.getInput(i);
                        //System.out.println(i);
                        Numerals.removeNumbers(number, i);
                   } catch(IOException p) {
                        System.out.println("Error: Wrong input type. Please enter another number.");
                        numberIs();
                   } catch(NumberFormatException t) {
                        System.out.println("Error: Wrong input type. Please enter another number.");
                        numberIs();
              } while(i != 0);
         public static void main(String[] args) {
              javax.swing.SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        createGUI();
    }

  • Roman numerals within iTunes

    In iTunes, my Star Trek movies are named Star Trek IV, Star Trek V, Star Trek VI... you see what i'm saying. When I get to Star Trek IX, iTunes puts it between IV and V. How do I get iTunes to put the movies in the correct Roman numeral order?
    Thanks,

    Select each movie and open it's "Get Info" dialog (command+ I). Select the "Sorting" tab and use the sort name field to change the roman numeral to regular numbers. They will sort using the sort name but still display the roman numeral.

  • I need to start the page numbers over for a new section in a document (i.e. first six pages are roman numerals, next 70 need to be in arabic numerals), but for some reason, the automatic page numbering has started over at number 3 instead of 1. Help!!

    If anyone has any idea why it's doing this, or what I can do to fix it, please help!

    No idea why it's doing this.
    You should be able to fix it by using Insert > Page Number, rather than 'Automatic Page Numbering.'
    Set Page Numbers in your second section to "Start at:" 1
    Regards,
    Barry

  • Can You have roman numerals for the first few pages of a document and then use normal numbering and start back at 1 for the rest?

    I am writing my theses and want to start with Chapter 1 on page one,
    Thanks

    Menu > Insert > Section Break
    and change the numbering in:
    Inspector > Layout > Section > Start at: > uncheck Use previous headers and footers
    Menu > Insert > Auto Page Numbers/Page Numbers
    Right click on the Inserted number to choose its format.
    Peter

Maybe you are looking for

  • Form Line Space Work Around (permanently set leading)

    Hi All, new to the forums – I find the format confusing, but I'll try to do my best! I have discovered a way to permanently set the line space (leading) of a form field. If you all discover a better way, then let me know!      Create a small, multili

  • Invisible text in PDFs

    In the last few months, I haven't been able to read many PDFs using the Apple engine (Preview, Safari, etc). Here's an example (I just searched google for PDFs and this was the first affected hit). On the first page I can read black text in the cente

  • Adcfgclone and adpreclone help required

    Hi all , I have my client interview after few days . I have a good knowledge about patching . cloning etc .But out clients question like ... 1 . what scripts "adcfgclone" calls and what it does ? 2. what scripts "adpreclone" calls and what it does ?

  • Why some settings are located in windows settings node while other are located in administrative template node?

    hi friends when we look at any GPO in Group policy management snap-in, each GPO has these four main sections 1-software settings     2- windows settings       3- administrative templates         4- preferences my question is, what logic or criteria e

  • Where can i find hidden movie files on a macbook

    I've deleted all the movies from my mac and when I open my system profile it shows I have 42GB of movies somewhere hidden on my macbook.  I've tried searching .mov in my spotlight (which yields nothing) and manually searching through the iTunes folde