|
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.
-
In Version 5.x,
-
From the File menu, choose
New.
-
In Version 5.x, from the International directory, select
Japanese Article and choose
OK.
or
In Version 4.x,
-
From the File menu, choose
Open.
-
Select the file jarticle-copy.tex in the tcitex\doc\omega\msi directory of
your program installation.
-
Choose OK.
-
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:
-
From the File menu, choose
Export Document as.
-
In the box labeled Save in, select the Shells
directory for your installation.
-
Select the appropriate subdirectory for the new shell. You can create a new
subdirectory if you wish.
-
In the box labeled File name, type a name for
the shell. The name can include spaces and nonalphabetic characters.
-
In the box labeled Save as type, specify
Shell (*.shl).
-
Choose Save.
-
Delete the contents of the Japanese Article shell or jarticle-copy.tex and
enter the contents of your document.
-
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:
-
From the Typeset menu, choose
Expert Settings and then choose the
DVI Format Settings tab.
-
In the Select a formatter box, select
TeX Live Lambda and choose
OK.
-
From the Typeset menu, choose
Preview. The Japanese characters should appear
in the TrueTeX Previewer window.
-
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
-
From the File menu, choose
New.
-
Select the shell document in which you want to include Japanese characters and
choose OK.
-
From the Typeset menu, choose
Options and Packages, choose the
Package Options tab and then choose
Go Native.
-
In the Packages box, move the insertion point to
the end of the list of existing packages.
-
Add the following lines to include the necessary packages for typestting
Japanese:
{sw2unicode}
{pmincho}
[UT1]{fontenc}
-
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.
-
From the Tag menu, choose
Appearance.
-
Change the base font:
-
Choose Modify Style Defaults.
-
In the Tag Properties area, select
Font and choose
Modify.
-
In the Font Properties Specified area, choose
Face if it is not already selected.
-
In the Face area, select the font
PMincho if it is not already selected.
-
Choose OK.
-
Change the font used for plotting:
-
In the Tag Properties area, select
Special Objects.
-
From the Properties of Special Objects list,
select Plots and choose
Modify.
-
Choose Modify Plot Component Font.
-
As in steps 2c and 2d above, select the font PMincho
if it is not already selected.
-
Choose OK to return to the Tag Appearance
dialog.
-
Change the font used for formulas:
-
In the Tag Properties area, select
Special Objects.
-
From the Properties of Special Objects list,
select Formulas and choose
Modify.
-
In the General settings area, choose Font.
-
As in steps 2c and 2d above, select the font PMincho
if it is not already selected.
-
Choose OK to return to the Tag Appearance
dialog.
-
Repeat step 4 to change the font used for Cross References and Citations.
-
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.
-
Enter a name for the new .cst file to indicate the Japanesef version of the
.cst file and choose Save.
-
Save your document.
-
If you wish, save the document as a new shell:
-
From the File menu, choose
Export.
-
Enter a new shell name to save the document as a new shell in the directory of
your choice.
-
Choose OK..
See also
Last revised 07/09/07
The information in this frame was created with Scientific WorkPlace.
|