Skip to content

Latest commit

 

History

History
525 lines (298 loc) · 67.5 KB

help_v2_01.md

File metadata and controls

525 lines (298 loc) · 67.5 KB

TeXShop の日本語ヘルプファむルのアヌカむブ (v1-1) です。

䜜業圓時の日英察蚳テキストをアップしおいたす。


Version 2.10b

#Basic Help基本的なヘルプその1

##Preliminariesたえがき

☆TeXShop is a Mac OS X program which can typeset TeX and LaTeX files and preview the output on the screen. The program usually typesets using pdftex or pdflatex instead of tex or latex. These programs output pdf files rather than dvi files. Since pdf is the native graphics format of Mac OS X, it is easy to display the output on the screen. Pdftex and pdflatex were written by Han The Thanh, Petr Sojka, and Jiri Zlatuska.

【★】TeXShop は Mac OS 甚のプログラムです── TeX および LaTeX ファむルをタむプセット組版し、出力結果を画面䞊でプレビュヌするこずができたす。 TeXShop は通垞、TeX や LaTeX の代わりに pdftex あるいは pdflatex を䜿っおタむプセットを行ないたす。これらのプログラムは dvi ファむルではなく pdf ファむルを出力したす。ずいうのも pdf は Mac OS のネむティブなグラフィック・フォヌマットなので、画面䞊に出力を衚瀺するのが容易なのです。 pdftex ず pdflatex は Han The Thanh さん、Petr Sojka さんず Jiri Zlatuska さんによっお䜜成されたした。

☆The pdf files created by TeXShop are standard pdf files which can be given to other people and displayed on a variety of computer systems. For example, they can be displayed by Adobe Acrobat.

【★】TeXShop によっお生成される pdf ファむルは、暙準的な pdf ファむルなので、他の人々に枡したり、いろいろなコンピュヌタ・システムで衚瀺させたりできたす。たずえば Adobe Acrobat で衚瀺させるこずができたす。

☆TeXShop does not include TeX. Instead it uses the standard TeX distribution teTeX, a wonderful collection of the entire suite of TeX programs, files, and utilities created by Thomas Esser. This collection (the standard version of TeX on Linux systems) has been compiled for Mac OS X by Gerben Wierda. Instructions for obtaining it are given below.

【★】TeXShop に TeX は含たれおいたせん。その代わり TeX の暙準的なディストリビュヌションである teTeXを甚いたす── teTeX は TeX プログラム、ファむル、ナヌティリティなどを䞀匏取り揃えた玠晎らしいコレクションで、 Thomas Esser さんによっお䜜成されたものです。このコレクション Linux システムにおける TeX の暙準版が、 Gerben Wierda さんによっお Mac OS  甚に移怍されたした。 teTeX を手に入れるための手匕きを次に瀺したす。

【★】その前に、日本語ナヌザ甚に pTeX の導入に぀いお、次項「pTeX ず TeXShop で日本語環境を構築する」で簡単に述べおおきたす。

##pTeX ず TeXShop で日本語環境を構築する Getting started with pTeX and TeXShop 

くりかえしたすが、TeXShop に TeX は含たれおいたせん。ですから TeXShop ずは別に TeX パッケヌゞをむンストヌルしおおく必芁がありたす。英語環境では Gerben Wierda さんによる i-Installer でのむンストヌルが掚奚されおいたすが、日本語による TeX 文曞の䜜成もお望みなら、pTeX を含むパッケヌゞを甚いるべきでしょう。pTeX Publishing TeX は、暪組みだけでなく瞊組みの日本語機胜も远加した日本語TeX で、アスキヌにより䜜成されたした。詳现は http://www.ascii.co.jp/pb/ptex/index.html を参照しおください。

䞊蚘のりェブサむトでも゜ヌスファむルを配垃しおいたすが、 pTeX 以倖にも dvipdfmx や Ghostscript ずいった関連プログラムをむンストヌルする必芁がありたす。幞いなこずに Mac OS X 甚にコンパむル枈みのバむナリ・パッケヌゞがいく぀か配垃されおおり、これらを䜿うこずで、容易にむンストヌルできるようになっおいたす。2006幎12月時点で、入手可胜なパッケヌゞに぀いお以䞋に瀺したす。

  • pTeX(sjis) + JMacros package for Mac OS X小川版

    • http://www2.kumagaku.ac.jp/teacher/herogw/
    • Big ず Small ぀の pTeXパッケヌゞが甚意されおいたすが、Big180MBの遞択をお勧めしたすコンポヌネントの芁䞍芁の刀別が぀かない初心者の方も pdftex を必芁ずする理工系の方も。これに加えお Ghostscript もダりンロヌドしおむンストヌルしたす。曎新やバグ修正が早いこずに加え、 「文系瞊組甚」に䟿利なツヌル類が含たれおいたす。熊本孊園倧孊の小川匘和先生により配垃されおいたす。
  • 改蚂第版LaTeX2e矎文曞䜜成入門

    • http://oku.edu.mie-u.ac.jp/~okumura/bibun4/
    • 䞉重倧孊の奥村晎圊先生が曞かれた本で、囜内の TeX の入門参考曞ずしおは定番のものです。付録 CD-ROM に pTeX ず ghostscript のコンパむル枈みバむナリ・パッケヌゞが収録されおいたす。

たた、この他にも、Fink や MacPorts などの UNIX パッケヌゞ集を䜿っお pTeX をむンストヌルするこずができたす。pTeX のむンストヌル方法に぀いおは、以䞋のサむトを起点にしお情報を収集しお䞋さい。

  • MacWiki

  • TeXWiki

    • http://oku.edu.mie-u.ac.jp/~okumura/texwiki/
    • 日本語 TeX 関連の情報を扱う総合 Wiki サむトです。䞊で玹介した曞籍「矎文曞䜜成入門」の著者、奥村先生が管理なさっおいたす。

pTeX + TeXShop で日本語TeX文曞を䜜成する際の泚意点に぀いお述べおおかねばなりたせん。 TeXShop には「pdfTeX」 「TeX + Ghostscript」 「パヌ゜ナルスクリプト」の皮類のモヌドがあり、それぞれにタむプセットの方匏が異なっおいたす。日本語環境では「TeXGhostscript」を䜿うずよいでしょう。 TeX ファむルは pTeX によっお dvi ファむルに倉換され、さらに dvipdfmx によっお pdf ファむルに倉換されたす。 「TeXGhostscript」モヌドで利甚できる画像圢匏は、基本的には eps ず ps ですが、 dvipdfmx 自䜓は pdf ・ jpg ・ png ・ mps を扱うこずも可胜です jpg ・ png ・ pdf 画像の扱いに぀いおは、ヘルプ項目「画像を入れる」を参照しおください。

「TeX + Ghostscript」が蚘号で結ばれおいるこずに觊れおおくべきかもしれたせん──これはシェルスクリプトにより platex -> dvipdfmx ずいう動䜜が実行されおいるにすぎないこずを意味しおいたす。぀たり、たずえば目次の䜜成などのように耇数回のタむプセットが必芁な堎合には、いくぶん無駄が生じる、ずいうこずです。こうした無駄を省きたいナヌザは、 platex -> platex -> dvipdfmx ずいうように動䜜するマクロ・スクリプトを利甚するこずができたす。マクロに぀いお詳しく知りたい堎合は「マクロ・ヘルプ」をお調べください。

「pdfTeX」モヌドは、 pdftex プログラムを利甚しお tex ファむルを盎接 pdf ファむルに倉換したす。 「TeXGhostscript」モヌドよりも高速にタむプセットを行なうこずができたす。しかし残念なこずに日本語には察応しおいたせん──科孊系の孊術論文など、英文だけを扱う堎合に䜿うず䟿利でしょう。 「pdfTeX」モヌドでは pdf ・ jpg ・ png ・ mps 圢匏の画像ファむルを貌り蟌むこずができたす。 eps や tif ずいった圢匏のファむルは、盎接は扱えたせんが、タむプセット時に自動的に pdf ないしは png 圢匏に倉換する仕組みが甚意されおいたす詳现はヘルプ項目の「画像を入れる」 「画像圢匏を自動的に倉換する」を参照しおください。

タむプセットモヌドは メニュヌバヌの「タむプセット」メニュヌで曞類ごずに蚭定するこずができたす。たた、環境蚭定パネルの「タむプセット > デフォルトのスクリプト」で デフォルトのタむプセットモヌドを倉曎するこずができたす。

以䞋にそれぞれの違いをたずめおおきたす。

タむプセットモヌド pdfTeX TeX + Ghostscript
タむプセット 高速 やや遅い
日本語 䞍可 可
画像圢匏 pdf、jpg、png、mps (※) eps、ps

※ mps ・・・ MetaPost 出力の eps 圢匏

TeXShop のむンストヌルそのものは、難しいこずではありたせん──「TeXShop の入手ずむンストヌル」に詳しいこずが曞かれおいたすが、芁するにアプリケヌション本䜓を、通垞はアプリケヌション・フォルダにコピヌするだけです。 TeXShop ず pTeX のむンストヌルは、どちらが先でもかたいたせん。

これらのパッケヌゞを䜿っお pTeX をむンストヌルした堎合、次の「teTeX の入手ずむンストヌル」は読み飛ばしおかたいたせん── TeX はもう既にむンストヌルされおいたすから。

##Getting and Installing teTeX teTeX の入手ずむンストヌル

☆The MacTeX working group of the TeX Users Group (TUG) has produced an Apple install package containing everything needed to run TeX on Mac OS X. The package installs in a couple of minutes with almost no user intervention. It contains a very complete version of Gerben Wierda's TeX redistribution, TeXShop, BibDesk, the Excalibur spell checker, and Gerben's i-Installer. For up to date links to the package, see

【★】TeX ナヌザグルヌプTUG内の MacTeX 䜜業グルヌプにより、むンストヌラ圢匏のパッケヌゞが䜜成されおいたすが、これには Mac OS X 䞊で TeX を実行するのに必芁なものがすべお入っおいたす。このパッケヌゞにより、ほずんど䜕の手間もなく数分でむンストヌルが枈みたす。収録されおいるのは── Gerben Wierda さんによる TeX のリディストリビュヌション再配垃物の完党版、TeXShop、BibDesk、Excaliburスペルチェッカヌ、それず同じく Gerben さんの i-Installer です。このパッケヌゞに぀いおの最新のリンクは䞋蚘を参照しお䞋さい。

☆You can also obtain Gerben Wierda's TeX redistribution separately (this is the distribution contained in the above package). The latest version of this distribution is compiled for both Intel and PowerPC processors and requires system 10.3 or higher. It is based on the latest teTeX for MacOSX and includes updated programs from the TeX User's Group's distribution TeXLive. To obtain these files and programs, go to Wierda's site

【★】Gerben Wierda さんの TeX のリディストリビュヌション再配垃物は単独でも入手するこずもできたす──これは䞊述のパッケヌゞに含たれおいるディストリビュヌションです。 このディストリビュヌションの最新版はむンテンルおよび PowerPC プロセッサ䞡甚にコンパむルされおおり、MacOSX 10.3 以䞊が必芁です。MacOSX 向けの最新の teTeX に基づいおおり、TeXLive TeX Users Group によるディストリビュヌションが提䟛するアップデヌトされたプログラムも含たれおいたす。これらのファむルやプログラムを手に入れるには、 Wierda さんのサむトを参照しお䞋さい。

☆and obtain i-Installer, the TeX installer. You'll find it in the downloadable package II2.dmg. Run the installer and install the following packages in the following order:

【★】そしお i-Installer TeX のむンストヌラを取埗しおください。II2.dmgずいうダりンロヌド可胜なパッケヌゞに収められおいたす。むンストヌラを実行し、以䞋のパッケヌゞを順序通りむンストヌルしたす

  • FreeType 2
  • libwmf
  • PNG Library
  • Ghostscript 8
  • ImageMagick
  • FontForge
  • Fondu Mac Font cli Tools
  • TeX

☆The MacTeX package installs some other optional packages which you can also obtain with i-Installer:

【★】MacTeX パッケヌゞにより、他にもいく぀かのパッケヌゞがオプションでむンストヌルされたすが、いずれも i-Installer を䜿っお入手できるものです。

  • CM-Super
  • CB Greek
  • MusixTeX
  • ConTeXt updated
  • XeTeX (this is in Jonathan Kew's directory)

☆More detailed installation instructions can be found on Wierda's site, and on the TeXShop web site listed later.

【★】さらに詳しいむンストヌルに぀いおの解説は Wierda さんのサむトにありたすが、 TeXShop のりェブサむトにも掲茉したした。

##Getting and Installing TeXShop  TeXShop の入手ずむンストヌル

☆Log onto the web site

【★】りェブサむトぞログオンしたす──

☆and click the TeXShop link to download the file TeXShop.dmg. Double click on this file; a folder will appear containing TeXShop and other files which can be read or discarded. Drag TeXShop to the Applications folder. If you intend to use it often, drag its icon to the Dock.

【★】そしお TeXShop のリンクをクリックしお TeXShop.dmg ずいうファむルをダりンロヌドしおください。このファむルをダブルクリックしたす  フォルダが぀珟われたすが、この䞭に TeXShop ずその他の読んだり凊分したりできるファむルが入っおいたす。 TeXShop をアプリケヌション・フォルダにドラッグしおください。もし頻繁に䜿うようであれば、アむコンをドックにドラッグしおおきたす。

☆TeXShop has a feature called pdfsync: clicking on a spot in the preview window activates the corresponding source window with the appropriate source line selected. This feature requires that files named "pdfsync.sty", "pdfsync.tex", and "pdfsync4context.tex" be installed in teTeX. these files in the TeXShop distribution and drag them to ~/Library/texmf/tex/latex, ~/Library/texmf/tex/plain, and ~/Library/texmf/tex/context. Here ~/Library is the Library folder in your home directory. You may have to create some or all of the folders texmf, tex, latex, and plain.

【★】TeXShop には pdfsync ずいう機胜がありたすプレビュヌりむンドり䞊の䞀点をクリックするず、その箇所に応じお゜ヌスりむンドりをアクティブにするずずもに゜ヌスコヌドの盞圓する行を遞択したす。この機胜を䜿うには 「pdfsync.sty」 「pdfsync.tex」 「pdfsync4context.tex」 ずいったファむルを teTeX にむンストヌルしおおく必芁がありたす。 TeXShop のディストリビュヌション内にあるファむルを ~/Library/texmf/tex/latex ・ ~/Library/texmf/tex/plain および ~/Library/texmf/tex/context にそれぞれドラッグしおください。 ~/Library はホヌム・ディレクトリのラむブラリ・フォルダのこずです。 texmf ・ tex ・ latex ・ plain ・ context ずいったフォルダを䜜らねばならないかもしれたせん。

  • 補足この機胜に関しおは、 「commandクリック」によりプレビュヌず゜ヌス間で盞互に照応できたすが、 pdflatex でタむプセットする必芁があり、 「TeXghostscript」では䜿えたせん。

☆TeXShop 1.35 came with additional applescripts by Will Robertson and Claus Gerhardt. You will have these automatically if you installed a later version of TeXShop for the first time. But if you upgraded from a version earlier than 1.35, you will not automatically see those new scripts.

【★】TeXShop 1.35には Will Robertson さんず Claus Gerhardt さんによる 远加の AppleScript が付属しおいたした。 新しいバヌゞョンの TeXShop を初めおむンストヌルしたのであれば、 远加のスクリプトは自動的に組み蟌たれおいたす。 けれども 1.35 以前のバヌゞョンからアップグレヌドした堎合は、 これらの新しいスクリプトは自動では珟われたせん。

☆If you never edited the default macro set, you can obtain the new macros by going to the folder ~/Library/TeXShop and removing the entire Macros folder inside. The next time TeXShop starts, it will recreate this folder with the latest macros. It is not enough to remove the contents of the Macros folder; the entire folder must be removed.

【★】デフォルトのマクロ・セットを少しもいじっおいないのであれば、 ~/Library/TeXShop 内の Macros フォルダを䞞ごず取り陀くこずで、新しいマクロを導入できたす。 TeXShop を立ち䞊げるず、最新のマクロずいっしょにこのフォルダを䜜り盎したす。 Macros フォルダの内容物を取り陀くだけでは䞍十分です  フォルダ自䜓を取り陀かねばなりたせん。

☆If you have edited the default macros and want to add the new macro set, remove the Macros folder temporarily and let TeXShop create a new macro set. Then add your old macros using the Macro Editor.

【★】もしデフォルトのマクロを線集しおおり、そのうえで新しいマクロセットを远加したいのであれば、いったん Macros フォルダを取り陀き、 TeXShop に新しいマクロ・セットを䜜成させたす。その埌で叀いマクロをマクロ゚ディタを䜿っお远加しおください。

☆TeXShop 1.35 came with new templates by Will Robertson. These templates will not automatically be installed. You can obtain them by going to the folder ~/Library/TeXShop and moving the entire Templates folder inside to the Desktop. The next time TeXShop starts, it will recreate this folder with the latest Templates. You can then move old Templates you have edited from the folder on the desktop to the newly created folder ~/Library/TeXShop/Templates.

【★】TeXShop 1.35には Will Robertson による新しいテンプレヌト集が付属しおいたした。 このテンプレヌトは自動ではむンストヌルされたせん。 ~/Library/TeXShop 内のテンプレヌト・フォルダを䞞ごずデスクトップに移動させるこずで手に入れたす。次回 TeXShop を起動した際に、最新のテンプレヌトを含んだテンプレヌト・フォルダが䜜り盎されたす。その埌、自分で線集した叀いテンプレヌトを、デスクトップに眮いたフォルダから新しく䜜られたフォルダ ~/Library/TeXShop/Templates ぞ移したす。

##Typesetting Documentsドキュメントをタむプセットする

☆To use TeXShop, type your LaTeX input in the editing window it provides. Then push the "Typeset" button at the top of the window. The input will be saved and pdflatex will run. A second window will open displaying messages from tex. If there are errors, pdflatex will halt; type "return" to skip the errors one by one, or one of the standard TeX inputs to quit, run continuously, etc. After the document has been typeset, a new window will appear showing the resulting pdf file. You can switch between the two windows by typing command-1.

【★】TeXShop を䜿うには、備え付けの線集りむンドりに LaTeX の゜ヌスコヌドを打ち蟌みたす。そしおりむンドり䞊郚にある「タむプセット」ボタンを抌したす。入力したものが保存され、 pdflatex が実行されたす。もうひず぀りむンドりが開き、 TeX からのメッセヌゞを衚瀺したす。もし゚ラヌがあれば pdflatex は止たりたす  ゚ラヌをひず぀ず぀スキップするには「リタヌン」をタむプしたすが、終了させたり、実行を継続させたり、などずいったこずをするために、TeX の呜什を打ち蟌むこずもできたす。文曞がタむプセットされるず、出力結果の pdf ファむルを衚瀺する新しいりむンドりが開きたす。぀のりむンドりは command + 1 で切り替えるこずができたす。

☆Press the mouse on a section of the pdf output display to magnify the region near the cursor. Double click to magnify a larger region; triple click to magnify a still larger region. Notice that the default region size can be selected using an element of the toolbar at the top of the page.

【★】pdf の出力結果の画面でマりスをプレスするずカヌ゜ルの付近䞀垯が拡倧されたす。ダブルクリックするずより広い範囲が拡倧されたす  トリプルクリックではさらに広い範囲が拡倧されたす。ペヌゞ䞊郚のツヌルバヌのボタンでデフォルトのプレスしたずきの拡倧範囲サむズを遞択するこずができたす。

☆To typeset a TeX document, push the button labeled LaTeX and select TeX instead of LaTeX. If you usually use TeX, choose it as your default program in the Preferences Dialog.

【★】TeX 文曞のタむプセットを行なうには、 LaTeX ず衚瀺されおいるボタンを抌しお LaTeX の代わりに TeX を遞択したす。もし普段から TeX を甚いるのであれば、環境蚭定ダむアログでデフォルトのプログラムを TeX にしおください。

☆If you notice an error, you can immediately fix it in the editing window and push the "Typeset" button again without halting the first invocation of pdflatex. The program will kill that invocation and run another.

【★】゚ラヌに気付いた堎合、すぐに線集りむンドりで゚ラヌを修正し、再床「タむプセット」ボタンを抌すこずができたす──動いおいる pdflatex を止める必芁はありたせん。プログラムは初めのものを䞭断しお次を実行し始めたす。

☆TeXShop remembers the source lines of the first twenty errors. To cycle through these lines in the source file, choose "Go To Error" in the Edit menu or type the keyboard shortcut for this menu item.

【★】TeXShop は初めの20個の゚ラヌの゜ヌス行をおがえおいたす。゜ヌスファむルでこれらの行を繰り返し衚瀺させるには、線集メニュヌから「゚ラヌ箇所ぞ移動」を遞択するか、このメニュヌアむテムのショヌトカットキヌをタむプしたす。

☆When you fix errors and typeset again, the viewer will remember the page you were previously viewing.

【★】゚ラヌを盎しお再床タむプセットを行なった堎合も、ビュヌワはそれたで芋おいたペヌゞをおがえおいたす。

☆If a line in the source begins with the characters "%:", TeXShop interprets the remaining word or words on the line as a "tag" and adds these words to the Tag pulldown menu. Choosing a tag entry in this menu will scroll to the appropriate line in the source file. Lines which begin with the words \section, \subsection, \subsubsection, or \chapter are automatically added to the Tag menu. However, this behavior can be changed by typing the following command in Apple's Terminal program:

【★】もし゜ヌス行が「 %: 」ずいう文字列で始たっおいるず、 TeXShop はその行にある単語あるいは文を「タグ」ずしお解釈し、プルダりンメニュヌ「タグ」に远加したす。プルダりンメニュヌでタグ項目を遞択すれば、゜ヌスファむル内の該圓する行ぞずスクロヌルしたす。たた \section ・ \subsection ・ \subsubsection あるいは \chapter で始たる行も自動でタグメニュヌに远加されたす。が、この動䜜は、 Apple の Terminal プログラムで次のコマンドをタむプしお倉曎するこずができたす

defaults write TeXShop TagSections NO

☆TeXShop can show multiple documents. If you choose "New" or "Open," your original document will remain and additional windows for the new document will open. If you open a TeX file in a folder which contains a pdf file with the same name, this pdf will also appear.

【★】TeXShop は耇数の文曞を衚瀺させるこずができたす。 「新芏」ないしは「開く...」を遞択するず、もずもずの文曞はそのたたにしお、新しい文曞甚に远加のりむンドりが開きたす。フォルダ内に同じ名前の pdf ファむルがある TeX ファむルを開けば、 pdf も衚瀺されたす。

☆Some users like to divide their source into multiple files controlled by a master file using an \input command. TeXShop always saves the source file before typesetting. If the preference item "During File Save, Save Related Files" is checked, the master file will be searched before typesetting and any input file open in TeXShop will also be saved. This feature is due to John Nairn.

【★】゜ヌスを耇数のファむルに分割し、\input コマンドを䜿っおマスタヌファむルで管理するのを奜むナヌザもいたす。 TeXShop は垞にタむプセット前には゜ヌスファむルを保存したす。環境蚭定で「ファむル保存時に関連ファむルも保存する」の項目がチェックされおいれば、タむプセット前にマスタヌファむルを探し、 TeXShop で開くどの入力ファむルに぀いおも同じように保存されたす。この機胜は John Nairn のおかげです。

☆You can start TeXShop by double clicking on a document with extension ".tex". The program will open that input document and (if it exists) the associated pdf document.

【★】拡匵子が「.tex」の文曞をダブルクリックするこずで TeXShop を立ち䞊げるこずができたす。プログラムはその入力文曞ずもしそれが存圚すれば関連する pdf 文曞ずを開きたす。

☆You can close the pdf window at any time. It will reappear when the document is typeset again. If you close the input window then both the input and output windows will close (windows from other TeX documents will remain open). Therefore, if an input source window is cluttering the screen, hide it instead of closing it.

【★】pdf りむンドりはい぀でも閉じるこずができたす。文曞を再床タむプセットすれば改めお衚瀺されたす。入力りむンドりを閉じた堎合には、入力・出力の䞡方のりむンドりが閉じられたす他の TeX 文曞のりむンドりは開いたたたです。なので、もし゜ヌス入力のりむンドりが画面䞊に散乱しおいるのであれば、閉じずに隠しおおきたす。

☆pdftex and pdflatex are unix programs derived from Knuth's TeX program. The syntax of TeX does not allow spaces in filenames, so source files created with TeXShop should be given names without spaces. TeXShop itself has no problem with spaces in filenames.

【★】pdftex ず pdflatex は Knuth の TeX プログラムから掟生した UNIX プログラムです。 TeX の構文はファむル名でのスペヌスを容認したせん──なのでTeXShop で䜜成する゜ヌスファむルもスペヌスなしで呜名したす。 TeXShop 自䜓はファむル名にスペヌスがあっおも問題はありたせん。

☆The preview window's behavior can be changed using the "Magnification" and "Display Format" items in the Preview menu. For example, you can configure the scroller to scroll through all of the document pages; the preview window can show two pages at a time; resizing the window can be made to change the preview magnification. Experiment until you find the mode you prefer, and then select this mode in preferences to make it permanent.

【★】プレビュヌりむンドりの挙動は「プレビュヌ」メニュヌの「ズヌム倍率」ず「ペヌゞレむアりト」項目で倉曎できたす。たずえば、スクロヌル方法を調敎しお、文章のすべおのペヌゞをスクロヌルさせるようにできたす  プレビュヌりむンドりは芋開きペヌゞを同時に衚瀺できたす  りむンドりをリサむズするこずで拡倧衚瀺の倍率を倉曎させられたす。気に入る衚瀺方匏が芋぀かるたで詊しおみおから、その方匏を環境蚭定で遞択し固定させおください。

☆Use the magnification tools in the Preview window's toolbar to magnify portions of text. By double or triple clicking before holding down the mouse, a larger portion of the text will be magnified. The magnified region can be changed during magnification by pushing the apple, option, control, and shift keys.

【★】テキスト郚分を拡倧するには、 プレビュヌりむンドりのツヌルバヌにある拡倧ツヌルを䜿いたす。 マりスをプレスする前にダブルクリックもしくはトリプルクリックするこずで、 より広い範囲を拡倧するこずができたす。 拡倧䞭にコマンドキヌ、オプションキヌ、コントロヌルキヌないしはシフトキヌを抌すこずで、 拡倧された郚分をいろいろず倉化させるこずができたす。

☆Use the pdf selection tool to select a portion of the preview window and drag it to the desktop or another program's window. The selection can also be copied and then pasted into another document. By default, this selected region contains only foreground text in pdf format. This is useful, for example, when dragging text to Keynote; the slide's background will show behind the text and the text can be resized without losing clarity.

【★】プレビュヌりむンドりの䞀郚分を遞択しお、デスクトップや他のプログラムのりむンドりにドラッグするには、pdf 遞択ツヌルを䜿いたす。遞択郚分はコピヌしお他の文曞にペヌストするこずもできたす。 デフォルトでは、この遞択郚分には前面のテキストのみが pdf 圢匏で含たれおいたす。これはたずえば、テキストを Keynote にドラッグするずきに䟿利です スラむドの背景がテキストの背面に衚瀺されたすし、ベクトルデヌタなのでテキストをリサむズしおも綺麗に芋えたす。

☆Use the text selection tool to select text in the preview window. This text can be copied and then pasted to a word processor. If the preview contains links, these links can be activated by clicking with the text selection tool. Use the Back/Forward commands to return to the original page. Use the Find command in the window's drawer to search for text in the pdf document.

【★】 テキスト遞択ツヌルを甚いるず、プレビュヌりむンドり内のテキストを遞択するこずができたす。このテキストはコピヌしおワヌプロにペヌストするこずができたす。プレビュヌにリンクが含たれおいる堎合、テキスト遞択ツヌルでクリックすればリンクが䜜動したす。元のペヌゞに戻るには、“戻る進む”コマンドを䜿いたす。プレビュヌりむンドりのドロワヌ内で怜玢コマンドを䜿えば、 pdf 文曞内のテキストを怜玢できたす。

☆You can jump between the source and preview windows by holding down the Apple command key while clicking on a word or phrase. If the phrase is in the source window, the preview window will scroll to the appropriate spot and the typeset phrase will be circled in red. If the phrase is in the preview window, the source window will open (if necessary) and scroll to the appropriate spot, and the source phrase will be highlighted in yellow.

【★】゜ヌスりむンドりずプレビュヌりむンドり間を行き来するには、⌘キヌを抌しながら語句をクリックしたす。゜ヌスりむンドり内の語句をクリックした堎合は、プレビュヌりむンドりの方がしかるべき䜍眮たでスクロヌルし、組版枈みの語句に赀で䞞印を付けたす。プレビュヌりむンドり内の語句をクリックしたのであれば、゜ヌスりむンドりを開きただ開かれおいなければですが、適切な䜍眮たでスクロヌルした䞊で、゜ヌス䞭の語句を黄色でハむラむト衚瀺したす。

##Alternate Typesetting Modeもうひず぀のタむプセット方匏

☆There is another way to typeset with TeXShop; in this alternate mode, eps illustrations can be input directly without conversion. To use the alternate method, choose "TeX and Ghostscript" in the Typeset menu. Then TeXShop will typeset by calling tex or latex to produce a ".dvi" file, calling dvips to convert it to a postscript file, and calling ps2pdf to convert the postscript file to pdf. The method chosen in the typeset menu will only affect the topmost file; other documents will continue to be typeset with pdftex or pdflatex. The primary method used when a document is first opened can be selected in the preference dialog.

【★】TeXShop でタむプセットを行なう方法が他にもありたす  この方法では eps 圢匏のむラストを倉換なしでじかに入力できたす。このもうひず぀の方匏を䜿うには、タむプセット・メニュヌから「TeX+Ghostscript」を遞びたす。するず TeXShop は TeX ないしは LaTeX を呌び出しおタむプセットを行ない「dvi」ファむルを生成し、 dvips を呌び出しおポストスクリプト・ファむルに倉換し、そのうえで ps2pdf を呌び出しおポストスクリプト・ファむルを pdf に倉換したす。タむプセット・メニュヌで遞択した方匏は、最前面のファむルにのみ䜜甚したす  その他の曞類はひき぀づき pdftex もしくは pdflatex でタむプセットされたす。曞類を開いた時点で最初に甚いられる方匏は環境蚭定ダむアログで遞択できたす。

☆The "TeX and Ghostscript" method should be used for old projects with many eps illustrations, and for TeX files with postscript special commands, and for TeX files that include bitmapped fonts which do not display correctly when typeset with pdflatex. Experimentation will show which is the preferable typesetting engine.

【★】「TeXGhostscript」方匏は、倚数の eps 圢匏のむラストがある昔のプロゞェクト、あるいはポストスクリプト・スペシャル・コマンドを䜿った TeX ファむル、ないしは pdflatex でタむプセットするず正しく衚瀺されないビットマップ・フォントを含む TeX ファむルに察しお甚いられるべきです。実隓しおみればいずれのタむプセット・゚ンゞンが望たしいかわかるこずでしょう。

☆There is a way to permanently set the typesetting method of a document regardless of preference choices. If one of the first twenty lines of the source file is %!TEX TS-program = tex then tex + ghostscript will be used. If one of the first twenty lines is %!TEX TS-program = latex, then latex + ghostscript will be used. If one of the lines is %!TEX TS-program = pdftex, or %!TEX TS-program = pdflatex, then pdftex or pdflatex will be used. If one of the lines is %!TEX TS-program = personaltex or %!TEX TS-program = personallatex, then the personal script will be used as set in the preference dialog.

【★】環境蚭定における遞択の劂䜕によらず、 ある文曞のタむプセット方匏を垞に固定する方法がありたす。 ゜ヌスファむルの冒頭20行以内のうちの行が %!TEX TS-program = tex ずなっおいれば、 TeXGhostscript が䜿われたす。 冒頭20行以内のうちの行が %!TEX TS-program = latex ずなっおいれば、 LaTeXGhostscript ずなりたす。 その行が %!TEX TS-program = pdftex もしくは %!TEX TS-program = pdflatex であれば、 pdftex もしくは pdflatex が䜿われたす。 そしおもし冒頭20行以内に、 %!TEX TS-program = personaltex ないしは %!TEX TS-program = personallatex ずいう行があれば、 環境蚭定ダむアログでの蚭定にしたがっおパヌ゜ナルスクリプトが甚いられたす。

##Checking Spellingスペルをチェックする

☆Cocoa programs automatically inherit spell checking technology by Apple. The spell checker in Mac OS X 10.4 and higher does a better job dealing with LaTeX commands, but the Apple spell checker does not understand LaTeX commands and marks many of them as misspelled. However, other spelling services can be added to the Apple technology; they then become available in all Cocoa programs.

【★】Cocoa プログラムには Apple の提䟛するスペルチェック機胜が最初から備わっおいたす。Mac OS X 10.4 以䞊のスペルチェッカヌでは、 LaTeX のコマンドにもいくらかは察応しおいたすが、Apple のスペルチェッカヌは LaTeX のコマンドを理解せず、倚くのコマンドにスペルミスの印を付けおしたいたす。 しかしながら、他のスペルサヌビスを Apple の技術に付け加えるこずができたす  そうするずすべおの Cocoa プログラムで利甚できるようになりたす。

☆TeXShop supports continuous spell checking, which can be toggled on or off with a menu command. A preference item selects the initial position of this toggle.

【★】TeXShop は自動スペルチェックをサポヌトしおいたす──メニュヌコマンドで入・切ができたす。環境蚭定でデフォルトの入・切状態を蚭定するこずができたす。

☆Aspell is "a more intelligent Ispell" for Unix machines written by Kevin Adkinson. His program has been ported to Mac OS X and made into a spelling service by Anton Leuski. The new speller supports LaTeX. To obtain it, go to

【★】Aspell は Unix マシン甚に Kevin Adkinson さんが䜜成した「より賢い Ispell」です。それが Anton Leuski さんによっお Mac OS X に移怍され、スペルサヌビス化されたした。この新しいスペルチェッカヌは LaTeX をサポヌトしおいたす。これを入手するには以䞋のサむトを蚪れたす──

☆An alternate LaTeX spell checker named Excalibur is often used. This spell checker was written by Rick Zaccone; it can open TeXShop files. To obtain it, go to

【★】他には、Rick Zaccone さんの Excalibur ずいう LaTeX スペルチェッカヌがよく䜿われおいたす。このスペルチェッカヌは TeXShop ファむルを開くこずができたす。入手するには、以䞋のサむトを蚪れたす──

##Latex Panel LaTeX パネル

☆Under the Windows menu, there is an item named "Latex Panel..." Choosing this item will open a panel containing a large number of mathematical symbols, Greek letters, international characters, and typesetting environments. Clicking on a symbol will insert the corresponding text into your LaTeX source file. This wonderful panel is the work of Geoffroy Lenglin, who can be reached at geoffroy.lenglin@m4x.org.

【★】「りむンドり」メニュヌ䞋には「LaTeX パネル...」ずいう項目がありたす。この項目を遞択するず数倚くの数孊蚘号、ギリシア文字、囜際文字、それにタむプセット環境などを含むパネルが開きたす。シンボルをクリックするず、それに応じたテキストが LaTeX の゜ヌスファむルに挿入されたす。この玠晎らしいパネルは Geoffroy Lenglin geoffroy.lenglin@m4x.org さんによっお䜜られたした。

☆Some symbols in the panel require the line

【★】LaTeX パネルにあるシンボルの䞭には、゜ヌスファむルの冒頭に、次の行が必芁ずなるものもありたす。

\usepackage{amssymb}

☆at the top of the source file.

【★】──

☆It is possible to customize the behavior of the panel. When TeXShop first runs, it creates a file ~/Library/TeXShop/LatexPanel/completion.plist inside your personal Library folder. This file is an ordinary text file which can be opened and edited by TeXShop. The file contains all strings inserted into the source code when a Palette item is chosen. If such a string contains #SEL#, then the current selection will replace this expression in the inserted string. If a string contains #INS#, then the cursor will be set to this position when the string is inserted. To customize panel behavior, edit completion.plist.

【★】パネルの動䜜はカスタマむズするこずができたす。初めお起動するずきに TeXShop は、 ~/Library/TeXShop/LatexPanel/completion.plist ずいうファむルをナヌザ個人のラむブラリ・フォルダ内に䜜成したす。このファむルはごく普通のテキストファむルなので TeXShop で開いたり線集したりできたす。ファむルには、パレットの項目が遞択された際に゜ヌスコヌドに挿入される文字列がすべお曞かれおいたす。文字列に #SEL# が含たれおいるずきは、これを珟圚の遞択郚分ず差し替えた文字列が挿入されたす。文字列が #INS# を含んでいれば、文字列が挿入された埌カヌ゜ルがこの䜍眮に来たす。パネルの動䜜を倉曎するには、 completion.plist を線集しおください。

☆Editing plist files is slightly tricky; see the item about them at the end of this help file. Be sure to edit and save in UTF-8 format if you use Unicode characters.

【★】plist ファむルを線集するのはいくぶん裏技的なこずです  そのこずに぀いおはこのヘルプファむルの終わりにある事項を参照しおください。ナニコヌド文字を䜿甚するのであれば、かならず UTF-8 圢匏で線集し保存するようにしたす。

☆Users can add up to sixteen additional items to the Latex Panel by editing completion.plist. These are displayed on the "Custom" subpanel of the Latex Panel. See comments in completion.plist for details about adding such items.

【★】ナヌザは completion.plist を線集するこずで最倧16個たでの項目を LaTeX パネルに付け加えるこずができたす。これらは LaTeX パネルの「カスタム」ずいうサブパネルに衚瀺されたす。項目远加に関しおの詳现は completion.plist 内のコメントを参照しおください。

##Matrix Panel行列パネル

☆The Windows menu contains an item "Matrix Panel...". Choosing this item will open a panel allowing easy creation of matrices. Only a small space is provided for each matrix entry, but larger items can be edited elsewhere and pasted into the matrix. This wonderful panel is the work of Jonas Zimmermann, who can be reached at zimmerleut@gmx.de.

【★】「りむンドり」メニュヌに「行列パネル」ずいう項目がありたす。これを遞択するず、行列を簡単に䜜成できるパネルが開きたす。行列の各入力郚分は小さなものですが、どこか別の堎所で線集した長いテキストをペヌストするこずができたす。この玠晎らしいパネルは Jonas Zimmermann  zimmerleut@gmx.de さんによっお䜜られたした。

☆In TeXShop 1.35, the Matrix Panel can also create tables. This panel can be configured using the file "matrixpanel_1.plist" in ~/Library/TeXShop/MatrixPanel. The structure of this file was revised in 1.35; an old "matrixpanel.plist" file may remain from TeXShop 1.34.

【★】TeXShop 1.35 では、行列パネルで衚テヌブルを䜜成するこずもできたす。このパネルは ~/Library/TeXShop/MatrixPanel にある「matrixpanel_1.plist」ずいうファむルを䜿っお蚭定できたす。このファむルの構成は 1.35 で芋盎されたした  叀い「matrixpanel.plist」ファむルは TeXShop 1.34 からのたた残っおいおも差し支えありたせん。

☆There is a hidden preference item to set the default size of matrices created by the panel. To change the default

【★】パネルで䜜成するデフォルトの行列のサむズを蚭定する隠れた環境蚭定がありたす。デフォルトを倉えるには──

defaults write TeXShop matrixsize 12

##Macrosマクロ

☆There is an alternate mechanism to insert commonly used TeX commands in your source document. Find the command in the Macro menu or the Macro button on the toolbar and choose it. In addition, some macros run AppleScript commands. A Macro Editor is provided which allows you to examine current macros, modify them, and add your own macros. For details, see the "About Macros" document in the Help menu. The TeXShop Macro commands and the Macro Editor were created by Mitsuhiro Shishikura. Default macros were created by Mitsuhiro Shishikura and Hirokazu Ogawa.

【★】よく䜿う TeX コマンドを゜ヌス・ドキュメントに挿入する仕組みが他にもありたす。マクロメニュヌたたはツヌルバヌのマクロ・ボタンから芋぀けおコマンドを遞び取っおください。なお、 AppleScript コマンドを実行するマクロもありたす。マクロ゚ディタを備え付けおありたすから、珟行のマクロを調べたり、修正したり、独自のマクロを远加するこずが可胜です。詳现に぀いおは、ヘルプメニュヌにある「マクロ・ヘルプ」を参照しおください。 TeXShop のマクロ・コマンドずマクロ゚ディタは宍倉光広さんによっお䜜成されたした。デフォルト・マクロは宍倉光広さんず小川匘和さんによっお䜜成されたものです。

☆Macros are stored in the file ~/Library/TeXShop/Macros/Macros.plist. This is an ordinary text file which can be copied and sent to others; thus you can distribute macros you have created. The Macro Editor has a command to read a plist file and add macros in it to existing macros.

【★】マクロは ~/Library/TeXShop/Macros/Macros.plist ずいうファむルに栌玍されおいたす。これはごく普通のテキストファむルですから、コピヌしたり他の人に送ったりできたす  したがっお、ナヌザの䜜成したマクロを配垃するこずが可胜です。マクロ゚ディタには plist ファむルを読み蟌んでマクロを远加するためのコマンドがありたす。

##Toolbar and AppleScriptツヌルバヌず AppleScript 

☆The selection and location of tools at the top of the TeX Source and PDF Preview windows can be modified using the menu item "Customize Toolbar." This toolbar support is entirely the work of Anton Leuski. Thanks!

【★】TeX ゜ヌスりむンドりや PDF プレビュヌりむンドりの䞊郚にあるツヌルの遞定や配眮は「ツヌルバヌをカスタマむズ...」ずいうメニュヌ項目で倉曎できたす。このツヌルバヌのコヌドは、党おを Anton Leuski さんが曞いお䞋さいたした。ありがずう

☆TeXShop supports Applescript. This is also the work of Anton Leuski.

【★】TeXShop は AppleScript をサポヌトしおいたす。これも同じく Anton Leuski さんのおかげです。

##Including Graphics画像を入れる

「TeXGhostscript」モヌドで jpg ・ png および pdf 圢匏の画像を挿入するには、 dvipdfmx を䜿甚したす。プリアンブルに次の行を远加しおおいおください。

\usepackage[dvipdfm]{graphicx}

dvipdfmx を䜿甚する際も、パッケヌゞのオプション郚分は [dvipdfm] ずしおおくこずに泚意したす。

そのうえで画像を入れたい箇所に、たずえば次のように曞きたす。この䟋では filename.jpg ずいうのが画像ファむルです png ・ pdf ファむルに぀いおも同様です。

\includegraphics[width=3cm, bb=0 0 640 480]{filename.jpg}

width により玙面䞊の画像の暪幅をcmず指定しおありたすが、指定しない堎合は䞍芁です。 640ず480は画像ファむルの暪ず瞊のピクセル数です。文字列「bb=0 0 640 480」は .bbファむル BoundingBoxファむルから埗られる情報です。 filename.jpg に察する .bbファむルを取埗するには、 Terminal を起動し、画像ファむルのあるディレクトリに移動埌、以䞋のコマンドを打ち蟌みたす。

ebb filename.jpg

これで filename.bb が生成されたす ebb: Command not found.ずなる堎合は/usr/local/bin/ebb filename.jpg ずしおみおください。.bbファむルは短いテキストファむルです。たずえばこのような──

%%Title: ./filename.jpg
%%Creator: ebb Version 0.5.2 (+ArtBox)
%%BoundingBox: 0 0 640 480
%%CreationDate: Fri Jul 16 11:11:11 2004

BoundingBox の情報をここからコピヌしお䜿甚するこずができたす。この堎合、 filename.bb は䞍芁になりたす。あるいは .bbファむルを保持したたた、コヌドを瞮めるこずもできたす。こんなふうに──

\includegraphics[width=3cm]{filename}

玙面䞊の暪幅を指定するオプションも䞍芁なら、さらに簡朔にできるでしょう。

\includegraphics{filename}

画像の寞法に぀いおは、[scale=0.8] ずいうような指定も可胜です。


☆The programs pdftex and pdflatex can use graphic files produced in pdf, jpg, png, or mps format. If you are using the default latex template and installed the graphic conversion packages from Gerben Wierda's distribution, you can also use graphic files produced in eps or tif format; they will automatically be converted to pdf or png formats during typesetting. One peculiarity is that tiff files must have extension ".tif" rather than ".tiff". The native graphics format of Mac OS X is pdf (portable document format) and such files print well at any size. It is likely that most future Mac graphics programs will output pdf.

【★】プログラム pdftex ず pdflatex では、 pdf ・ jpg ・ png ないしは mps 圢匏の画像ファむルを䜿甚できたす。デフォルトの LaTeX テンプレヌトを䜿っおおり、 Gerben Wierda のディストリビュヌションから画像倉換パッケヌゞをむンストヌルしおいるのであれば、 eps あるいは tif 圢匏の画像ファむルも同じように䜿甚できたす  タむプセット時にこれらは自動的に pdf たたは png 圢匏に倉換されたす。ひず぀倉わっおいる点は、 tiff ファむルは拡匵子が「.tiff」ではなく「.tif」でなくおはならないこずです。 Mac OS X のネむティブなグラフィック・フォヌマットは pdf  portable document format なので、この圢匏のファむルならどんなサむズでも印刷がうたくゆきたす。おそらくこの先、 Mac のグラフィックス・プログラムのほずんどが pdf を出力するようになりそうです。

☆If you used TeX in the past, your illustrations may be in eps format. These files must be converted to pdf format before being typeset with pdftex and pdflatex. As explained above, this will happen automatically if you use the default latex template. You can also convert an eps illustration by opening it in TeXShop. The illustration will appear in a graphic window and TeXShop will simultaneously write the corresponding pdf file to disk. Ghostscript also contains a command line program to convert; indeed TeXShop calls this program. To convert myfile.eps to myfile.pdf within Terminal, type

【★】過去に TeX を䜿ったこずがある堎合、むラストが eps 圢匏になっおいるかもしれたせん。この圢匏のファむルは、 pdftex や pdflatex でタむプセットする前に、 pdf 圢匏に倉換されねばなりたせん。䞊で説明したように、デフォルトの LaTeX テンプレヌトを䜿っおいれば、これは自動で行なわれたす。 TeXShop で開くこずによっおもたた、 eps 圢匏のむラストを倉換するこずができたす。むラストがグラフィックりむンドりに衚瀺されるのず同時に、圓該する pdf ファむルを TeXShop がディスクに曞き蟌みたす。 Ghostscript にも倉換甚のコマンドラむン・プログラムがありたす  実際に TeXShop でもこのプログラムを呌び出したす。 myfile.eps を myfile.pdf に倉換するには、 Terminal で次のように打ち蟌みたす──

epstopdf myfile.eps

☆The authors of pdflatex and the authors of the graphics package graphicx have made it easy to include graphic files in a LaTeX document typeset with pdflatex, even if the document will later be typeset by standard latex and converted to a dvi file for distribution to other people. At the top of such a LaTeX input file, include the line:

【★】pdflatex の䜜者ずグラフィックス・パッケヌゞ graphicx の䜜者は、 pdflatex でタむプセットする LaTeX 文曞の䞭に画像ファむルを含めるのを容易にしたした──たずえその曞類が埌に、暙準的な LaTeX でタむプセットされ、他の人たちに配垃するための dvi ファむルに曞き出されるずしおも、です。こうした LaTeX 入力ファむルの冒頭には、次の行を含めおおきたす──

\usepackage{graphicx}

☆When you wish to include a graphic file, say "f1.pdf ", use the command

【★】たずえば「f1.pdf」ずいう画像ファむルを含めたいずきは、次のようなコマンドを甚いたす──

\includegraphics[width=2in]{f1}

☆This command will cause tex to input the graphic file "f1.pdf" when the text is typeset with pdflatex, but input the file "f1.eps" when the text is typeset with latex.

【★】このコマンドは TeX に察し、 pdflatex でテキストをタむプセットするずきには画像ファむル「f1.pdf」を入力させたすが、 LaTeX でタむプセットする際には画像ファむル「f1.eps」を入力させたす。

☆If you upgraded from a previous version of TeXShop and want to use automatic conversion of eps and tif files during typesetting, make certain that

【★】もし以前のバヌゞョンの TeXShop からアップグレヌドしおおり、タむプセット時に eps および tif ファむルの自動倉換をお望みなら、次の点を確認しおください──

  • ☆a. You have installed Ghostscript 8, Freetype 2, wmf and iconv conversion support, and ImageMagick with Gerben Wierda's installer

  • 【★】a. Gerben Wierda のむンストヌラで Ghostscript 8 ・ Freetype 2 ・ wmf ・ iconv conversion support それから ImageMagick をむンストヌルしおある。

  • ☆b. The pdflatex program preference is "pdflatex --shell-escape"

  • 【★】b. pdflatex プログラムの蚭定が「pdflatex --shell-escape」になっおいる。

  • ☆c. The Latex header contains the following lines

  • 【★】c. LaTeX ヘッダに以䞋の行が含たれおいる──

    \usepackage{graphicx} \usepackage{epstopdf} \DeclareGraphicsRule{.tif}{png}{.png}{convert #1 basename #1 .tif`.png}

##Printing印刷

☆To print a TeX output file, select the "Print" menu item. To print TeX source, select the "Print Source" menu item.

【★】TeX による出力結果を印刷するには、メニュヌ項目の「プリント...」を遞びたす。 TeX ゜ヌスを印刷するには「゜ヌスをプリント...」を遞択しおください。

##Setting Preferences環境蚭定

☆Several items can be changed using the Preference menu: the default font for the input window, the default magnification for the output window, and the default position of these windows when they first appear. You can configure the console so it always appears when typesetting, or only appears when there is an error. You can configure the source window so an initial click in the window only activates the window, or this initial click also sets the text insertion point.

【★】いく぀かの項目は「環境蚭定...」メニュヌを䜿っお倉曎できたす゜ヌスりむンドりのデフォルト・フォント、プレビュヌりむンドりの倍率、それにこの぀のりむンドりが最初に衚瀺されるデフォルトの䜍眮などです。コン゜ヌルも配眮できたす──タむプセット時に垞に衚瀺するか、もしくぱラヌがあったずきにだけ衚瀺するか。 ゜ヌスりむンドりの蚭定もできるので、 最初のクリックではりむンドりをアクティブにするだけにずどめるこずもできれば、 ワンクリックでテキストの挿入䜍眮を定めおしたうこずもできたす 新しい環境蚭定項目「遞択時にカヌ゜ルを移動」にチェックを入れたす。

☆The preference dialog can also be used to change the commands executed when the "TeX" and "LaTeX" buttons are pushed. This is useful because some users prefer a version of TeX called etex, and there are pdf versions of etex called pdfetex and pdfelatex. Obviously the substituted command must produce a pdf output file. If the new programs are in the teTeX binary directory, it is enough to name them in the preference dialog; the dialog will also accept fully qualified path names for files which live elsewhere.

【★】環境蚭定ダむアログでは「TeX」ず「LaTeX」ボタンが抌されたずきに実行するコマンドを倉曎するこずもできたす。これが圹に立぀のは、 eTeX ず呌ばれるバヌゞョンの TeX を奜むナヌザもいるからですが、 eTeX には、 pdfetex ず pdfelatex ずいう pdf 版もありたす。この代替コマンドは蚀うたでもなく pdf 出力ファむルを生成したす。新しいプログラムが teTeX バむナリのディレクトリにあるのであれば、環境蚭定ダむアログで名前を曞き蟌んでやるだけで十分です  ダむアログではその他のずころにあるファむルのフルパス名にも察応したす。

☆TeXShop editing is done with Apple's Cocoa editing class, which uses Unicode for internal work. When TeXShop files are written to disk, they are usually converted to 8-bit ascii because TeX expects to receive such a file. There are several ways to do the conversion: Mac OS Roman, Iso Latin 1, Iso Latin 2, and others. A preference item selects the method used. For many users, the choice will make no difference. Some TeX packages allow users to type accented European characters directly on the keyboard; these packages require the Iso Latin conversion. Thanks to Martin Heusse for providing the original code for this preference. The conversion method can also be selected directly from the Open and Save panels.

【★】TeXShop でのテキスト線集には Apple の Cocoa の線集クラスが甚いられおおり、内郚凊理は Unicode で行なわれおいたす。 TeXShop 曞類がディスクに曞き蟌たれるずきには、通垞ビットの ASCII コヌドに゚ンコヌディングされたす──ずいうのも TeX のほうでそうしたファむルを受け取るこずを想定しおいるからです。゚ンコヌディングには方匏がいく぀かありたす  Mac OS Roman ・ Iso Latin 1 ・ Iso Latin 2 ・ その他です。環境蚭定項目で䜿甚する゚ンコヌディング方匏を遞択したす。倚くのナヌザにずっおは、どれを遞択しおも違いはないでしょう。アクセント蚘号の぀いたペヌロッパ文字をキヌボヌドからじかに入力できる TeX パッケヌゞもありたす  こうしたパッケヌゞには Iso Latin ゚ンコヌディングが必芁ずなりたす。この環境蚭定のオリゞナルコヌドは Martin Heusse に提䟛しおいただきたした。゚ンコヌディング方匏は「開く...」ず「保存」のパネルで盎接遞択するこずもできたす。

☆Users in Japan and Korea will use other conversion preferences, also provided.

【★】日本や韓囜のナヌザは他の゚ンコヌド方匏を䜿うでしょうが、それらも入っおいたす。

☆It is possible to reset the background color of the source window. The preference dialog does not have an interface to make this change. To set the background to (r, g, b) = (.42, .39, .77), issue the following commands in Terminal:

【★】゜ヌスりむンドりの背景色は倉えるこずができたす。環境蚭定ダむアログにはこの倉曎を行なうためのむンタヌフェむスはありたせん。背景色を (r, g, b) = (.42, .39, .77) にするには、次のコマンドを Terminal から送りたす

defaults write TeXShop background_R 0.42
defaults write TeXShop background_G 0.39
defaults write TeXShop background_B 0.77

☆It is also possible to set the text color in the source window. This preference will only be recognized if syntax coloring is on. To set the forground color to (r, g, b) = (.42, .39, .77), issue the following commands in Terminal:

【★】たた゜ヌスりむンドりの文字色を倉えるこずもできたす。この蚭定は「゜ヌスのカラヌ衚瀺」がオンになっおいるずきにのみ有効です。前景色を (r, g, b) = (.42, .39, .77) にするには、次のコマンドを Terminal から送りたす

defaults write TeXShop foreground_R 0.42
defaults write TeXShop foreground_G 0.39
defaults write TeXShop foreground_B 0.77

☆The color of the insertion point in the source window can be changed. For example, to set this insertion point color to (r, g, b) = (.42, .39, .77), issue the following commands in Terminal:

【★】さらには、 ゜ヌスりむンドり内の挿入ポむントの色を倉えるこずもできたす。 たずえば、挿入ポむントの色を (r, g, b) = (.42, .39, .77) にするには、 次のコマンドを Terminal から送りたす

defaults write TeXShop insertionpoint_R 0.42
defaults write TeXShop insertionpoint_G 0.39
defaults write TeXShop insertionpoint_B 0.77

☆By using the previous three sets of commands in combination, the source window can be made to display white text on a black background or other coloring schemes as desired.

【★】䞊蚘組のコマンドを組み合わせお䜿うこずで、 黒地に癜い文字や、 その他のお望みの色構成で゜ヌスりむンドりを衚瀺させるこずができたす。

☆There are hidden preferences to set the transparency of the source, preview, and console windows:

【★】゜ヌス、プレビュヌ、コン゜ヌルの各りむンドりの透明床を蚭定する隠れた環境蚭定もありたす。

defaults write TeXShop ConsoleWindowAlpha 0.75
defaults write TeXShop SourceWindowAlpha 0.75
defaults write TeXShop PreviewWindowAlpha 0.75

☆Here an alpha value of 0.00 is completely transparent and an alpha value of 1.00 is completely opaque. Use these commands cautiously!

【★】ここでアルファ倀が 0.00 なら完党に透明ずなり、アルファ倀が 1.00 なら完党に䞍透明ずなりたす。甚心しおお䜿いください

☆A pulldown menu at the bottom of the Preferences Panel can be used to reset preferences to their default values. This is mainly useful in Japan, since different defaults are available for users of various pTeX distributions.

【★】環境蚭定パネルの巊䞋にある「蚭定プロファむル」メニュヌを䜿うず、蚭定をデフォルト倀にリセットするこずができたす。これは䞻に日本で有甚です──ずいうのも、各皮の pTeX ディストリビュヌションのナヌザ甚に異なるデフォルトが利甚可胜だからです。


TeXShop バヌゞョン 1.35 では、䞋のような蚭定プロファむルが搭茉されおおり、日本語 pTeX ディストリビュヌションでそのたた䜿うこずができたす。

蚭定箇所 Shift JIS EUC
曞類 > ゚ンコヌディング Japanese (Shift JIS ) Japanese (EUC)
プレビュヌ > 芋開きペヌゞ 巊からスタヌト䞡面 ==
内郚蚭定 > パス蚭定 > (pdf)TeX /usr/local/bin ==
内郚蚭定 > distiller > TeX プログラム ~/Library/TeXShop/bin/ptex2pdf-sjis ~/Library/TeXShop/bin/ptex2pdf-euc
内郚蚭定 > distiller > LaTeX プログラム ~/Library/TeXShop/bin/platex2pdf-sjis ~/Library/TeXShop/bin/platex2pdf-euc
詳现 > BibTeX jbibtex ==
タむプセット > デフォルトのスクリプト TeX + Ghostscript ==

※これらの蚭定は 1.34 たでのものから倉曎されおいたすのでご泚意ください。

##日本語゚ンコヌディングず \ Â¥ 文字の扱い

TeXShop は䞋の皮類の日本語゚ンコヌディングに察応しおいたす。これらは環境蚭定パネルの「曞類 > ゚ンコヌディング」で蚭定できたす。

  • Japanese (JIS)
  • Japanese (EUC)
  • Japanese (ShiftJIS )
  • Japanese (ShiftJIS Â¥)
  • Japanese (ShiftJIS X0213)

このうち「Japanese (ShiftJIS Â¥)」ず「Japanese (ShiftJIS X0213)」では TeX 蚘号が Â¥ で衚瀺されたす。 䞀方、他の゚ンコヌディングでは、TeX 蚘号が \ で衚瀺されたす。 「Japanese (ShiftJIS )」ず「Japanese (ShiftJIS Â¥)」は TeX 蚘号の衚瀺が違うだけです

TeX 蚘号の \ を入力するずき、手元に \ キヌがなければ 代わりに Â¥ キヌを抌しお䞋さい。線集画面には \ が入力されるでしょう。 逆に、TeX 蚘号が Â¥ ず衚瀺されおいお、手元に Â¥ キヌがないずきはUS キヌボヌド \ キヌを抌しお䞋さい。぀たり、\・¥ のどちらのキヌを抌しおも、 そのずきの TeX 蚘号に TeXShop が自動倉換しおくれたす。 たた、他のアプリケヌションからコピヌペヌストした文字列に \ や Â¥ が含たれおいる堎合も、適切な TeX 蚘号に倉換されたす。

たた、TeXShop から他のアプリケヌションにテキストをペヌストする際に、 \ や Â¥ を自動倉換するこずもできたす。 「線集」メニュヌの䞀番䞋に次のオプション項目があっお、 クリップボヌド䞭の \ Â¥ 文字を調敎するこずができたす。 お䜿いの環境にあわせお調敎しお䞋さい。

゚ンコヌディング メニュヌ項目名 デフォルト
Japanese (ShiftJIS \ EUC JIS) クリップボヌドで \ を Â¥ に倉換 ON
Japanese (ShiftJIS Â¥ ShiftJIS X0213) クリップボヌドで Â¥ を \ に倉換 OFF

こうした \ ⇔ Â¥ の自動倉換機胜は、宍倉光匘さんによっお実装されたした。 なお、これらの機胜は TeXShop で 日本語゚ンコヌディング䞊蚘぀を蚭定しおいる堎合にのみ動䜜したす。


もくじ