Document 454

How to write and typeset documents in Japanese

Version: 4.x & 5.x - Scientific WorkPlace & Scientific Word

You can typeset SWP and SW documents written in non-Roman languages, including Japanese, in two ways. You can:

  • Typeset PDF documents using XeTeX, an adaptation of TeX that is available with TeX Live, which includes support for many languages. Typeset DVI documents are not available with XeTeX.

  • Typeset DVI documents using the Omega/Lambda system, as described below. The Omega/Lambda typesetting system is an extension of TeX and LaTeX and is provided with Versions 4.x and 5.x of SWP and SW. Creating typeset PDF files from such documents isn't possible from within SWP or SW.

Requirements for using Lambda to typeset in Japanese

To write and typeset documents in Japanese, you need

  • Windows 2000 or Windows XP with the East Asian language support installed.
    Note Windows 2000 or Windows XP are the preferred platforms. You may be able to write and typeset documents in Japanese using other versions of Windows.
  • MS Mincho, the Windows font for Japanese characters.
    MS Mincho is included in the Japanese language support for Windows 2000/XP/Me or MS Office 2000.
  • A shell appropriate for documents in Japanese, a corresponding .cst file, and several support files: PMincho.ofm, PMincho.ovf, pmincho.sty, and UT1pmincho.fd.
    The shell and .cst file are included with SWP and SW Version 5.x. Version 4.x contains a sample file, jarticle-copy.tex, that can be saved as a shell file. Both versions include the support files.

Creating documents with the Japanese Article shell or the sample document

Because several packages and option settings are required to create documents in Japanese, we recommend that you create your document with a shell or sample document that has the required packages and option settings already in place.

  • If you have Version 5.x, use Japanese Article.shl.
  • If you have Version 4.x, use jarticle-copy.tex, a special sample document.
  1. In Version 5.x,
    1. From the File menu, choose New.
    2. In Version 5.x, from the International directory, select Japanese Article and choose OK.

    or

    In Version 4.x,

    1. From the File menu, choose Open.
    2. Select the file jarticle-copy.tex in the tcitex\doc\omega\msi directory of your program installation.
    3. Choose OK.
  2. From the File menu, choose Save As to save the file with a new name in the directory of your choice.
    Note In Version 4.x, you can create a shell document for use in writing other Japanese documents by exporting the sample document jarticle-copy.tex as a shell:
    1. From the File menu, choose Export Document as.
    2. In the box labeled Save in, select the Shells directory for your installation.
    3. Select the appropriate subdirectory for the new shell. You can create a new subdirectory if you wish.
    4. In the box labeled File name, type a name for the shell. The name can include spaces and nonalphabetic characters.
    5. In the box labeled Save as type, specify Shell (*.shl).
    6. Choose Save.
  3. Delete the contents of the Japanese Article shell or jarticle-copy.tex and enter the contents of your document.
  4. Save your document.

Typesetting documents in Japanese

You can produce your document with or without typesetting. If you typeset, you must change the TeX formatter used with your installation before you typeset:

  1. From the Typeset menu, choose Expert Settings and then choose the DVI Format Settings tab.
  2. In the Select a formatter box, select TeX Live Lambda and choose OK.
  3. From the Typeset menu, choose Preview. The Japanese characters should appear in the TrueTeX Previewer window.
  4. Print your document:
    • From the File menu in the TrueTeX Previewer, choose Print.
      or
    • From the Typeset menu in the SWP or SW document window, choose Print.

Creating document in Japanese using other document shells

You can also use Japanese with other document shells, but you must first add the packages and option settings to the other document and modify the display fonts.

Step 1. Add packages and option settings

  1. From the File menu, choose New.
  2. Select the shell document in which you want to include Japanese characters and choose OK.
  3. From the Typeset menu, choose Options and Packages, choose the Package Options tab and then choose Go Native.
  4. In the Packages box, move the insertion point to the end of the list of existing packages.
  5. Add the following lines to include the necessary packages for typestting Japanese:
    {sw2unicode}
    {pmincho}
    [UT1]{fontenc}
  6. Choose OK to close the dialog boxes and return to your document.

Step 2. Modify the display fonts

Although the document will correctly produce Japanese characters when you typeset, it will not display Japanese characters in the document window until you modify the fonts used in the document.

  1. From the Tag menu, choose Appearance.
  2. Change the base font:
    1. Choose Modify Style Defaults.
    2. In the Tag Properties area, select Font and choose Modify.
    3. In the Font Properties Specified area, choose Face if it is not already selected.
    4. In the Face area, select the font PMincho if it is not already selected.
    5. Choose OK.
  3. Change the font used for plotting:
    1. In the Tag Properties area, select Special Objects.
    2. From the Properties of Special Objects list, select Plots and choose Modify.
    3. Choose Modify Plot Component Font.
    4. As in steps 2c and 2d above, select the font PMincho if it is not already selected.
    5. Choose OK to return to the Tag Appearance dialog.
  4. Change the font used for formulas:
    1. In the Tag Properties area, select Special Objects.
    2. From the Properties of Special Objects list, select Formulas and choose Modify.
    3. In the General settings area, choose Font.
    4. As in steps 2c and 2d above, select the font PMincho if it is not already selected.
    5. Choose OK to return to the Tag Appearance dialog.
  5. Repeat step 4 to change the font used for Cross References and Citations.
  6. In the Tag Appearance dialog choose Save As to create a new .cst file with the appropriate display settings for Japanese characters.
    The Save As dialog will appear with the current .cst file name entered in the dialog.
  7. Enter a name for the new .cst file to indicate the Japanesef version of the .cst file and choose Save.
  8. Save your document.
  9. If you wish, save the document as a new shell:
    1. From the File menu, choose Export.
    2. Enter a new shell name to save the document as a new shell in the directory of your choice.
    3. Choose OK..

See also

Last revised 07/09/07

The information in this frame was created with Scientific WorkPlace.