Document 556

How to write and typeset documents in Simplified Chinese

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

You can typeset SWP and SW documents written in non-Roman languages, including Simplified Chinese, 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, which 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 Simplified Chinese

To write and typeset documents in Simplified Chinese, 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 Simplified Chinese using other versions of Windows.
  • SimSun, the Windows font for Simplified Chinese characters.
    SimSun is included in the East Asian language support for Windows 2000/XP.
  • A shell appropriate for documents in Simplified Chinese, a corresponding .cst file, and several support files: NSimSun.ofm, NSimSun.ovf, NSimSun.sty, and UT1nsimsun.fd.
    The shell, .cst file, and support files are included with SWP and SW Version 5.x.

Downloading and installing files for Simplified Chinese

Make sure you are using Windows 2000 or Windows XP with the East Asian language support installed.

  • If you're using Version 5.x of SWP or SW, all necessary files are already included in your program directory.
  • If you're using Version 4.x of SWP or SW, you must download the files you need to the indicated subdirectory of your program directory according to these instructions:
    • Click each file name in the table below to download the file directly to your computer.
      or
    • Click each folder icon to open a new browser window on the ftp server, then select and download each file using the standard procedures for your browser.

File Folder    Destination Directory in SWP or SW
Simplified Chinese article.shl dir.png Shells\Articles\SW or a new directory in Shells
Simplified Chinese.cst dir.png Styles\article
NSimSun.ofm dir.png TCITex\fonts\tfm
NSimSun.ovf dir.png TCITex\fonts\vf
NSimSun.sty dir.png TCITeX\TeX\LaTeX\TCIomega
UT1nsimsun.fd dir.png TCITeX\TeX\LaTeX\TCIomega



After you have downloaded the files to your program directory, follow the instructions below to create and typeset Simplified Chinese documents.

Note If you reinstall SWP or SW Version4.x on a new computer, you must download the files again.

Creating documents with the Simplified Chinese shell

Because several packages and option settings are required to create documents in Simplified Chinese, we recommend that you use Simplified Chinese Article.shl as a base for your document. The shell document has the required packages and option settings already in place.

  1. From the File menu, choose New.
  2. From the International directory or the directory to which you downloaded the Simplified Chinese shell document, select Simplified Chinese Article and choose OK.
  3. From the File menu, choose Save As to save the shell file with a new name in the directory of your choice.
  4. Delete the contents of the Simplified Chinese Article shell document and enter the contents of your document.
  5. Save your document.

Typesetting documents in Simplified Chinese

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 Simplified Chinese 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 documents in Simplified Chinese using other document shells

You can also use Simplified Chinese 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. From the International directory or the directory to which you downloaded the Simplified Chinese shell document, select Simplified Chinese Article and choose OK.
  3. From the Typeset menu, choose Options and Packages, choose Package Options and then choose Go Native.
  4. In the Packages box, select these lines, which specify the required packages:
    {sw2unicode}
    [UT1]{fontenc}
    {nsimsun}
  5. Copy the selected lines to the clipboard:
    • Press Ctrl+c.
      or
    • Right-click the selected text and choose Copy.
  6. Choose OK to close the Native LaTeX Packages and Options and Packages dialogs and then close the Simplified Chinese Article shell document.
  7. From the File menu, choose New.
  8. Select the shell document in which you want to include Simplified Chinese characters and choose OK.
  9. From the Typeset menu, choose Options and Packages, choose the Package Options tab and then choose Go Native.
  10. In the Packages box, move the insertion point to the end of the list of existing packages.
  11. Paste the selected package specifications from the clipboard:
    • Press Ctrl+v.
      or
    • Right-click the mouse and choose Paste.
  12. Choose OK to close the dialog boxes and return to your document.

Step 2. Modify the display fonts

Although the document will correctly produce Simplified Chinese characters when you typeset, it will not display Simplified Chinese 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 NSimSun 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 NSimSun 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 NSimSun 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 Simplified Chinese 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 Simplified Chinese 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.