TeXShop ã®æ¥æ¬èªãã«ããã¡ã€ã«ã®ã¢ãŒã«ã€ã (v2-2) ã§ãã
äœæ¥åœæã®æ¥è±å¯Ÿèš³ããã¹ããã¢ããããŠããŸãã
#Basic HelpïŒåºæ¬çãªãã«ãïŒïŒãã®ïŒïŒ
##Modifying the Templates MenuïŒãã³ãã¬ãŒãã»ã¡ãã¥ãŒãå€æŽããïŒ
âWhen TeXShop runs for the first time, it creates a folder
ãâ ãTeXShop ãåããŠèµ·åãããšã次ã®ãããªãã©ã«ããäœãããŸãââ
~/Library/TeXShop/Templates
âand places the files Graphics.tex and LatexTemplate.tex (and a folder named "More" of additional files) in this folder. The names of these files are shown under the Templates pull down menu at the top of the input window. Choosing one of these items inserts the contents of the template file at the current cursor position in the source. The Graphics and LaTeX templates were recently revised by Will Robertson to follow modern TeX practices; Robertson provided the templates in the More subdirectory.
ãâ ããããŠãã®ãã©ã«ãå ã«ã¯ Graphics.tex ã» LatexTemplate.tex ïŒãããšè¿œå ãã¡ã€ã«çšã®ãMoreããšããå称ã®ãã©ã«ãïŒã眮ãããŸãããããã®ãã¡ã€ã«ã®ååã¯å ¥åãŠã€ã³ããŠäžéšã«ãããã«ããŠã³ã¡ãã¥ãŒããã³ãã¬ãŒããã§èŠãããŸãããããã®é ç®ã®ïŒã€ãéžã¶ãšããœãŒã¹å ã®ã«ãŒãœã«äœçœ®ã«ãã³ãã¬ãŒãã»ãã¡ã€ã«ã®å 容ãæ¿å ¥ãããŸãã Graphics ãš LaTeX ãã³ãã¬ãŒã㯠Will Robertson ã«ããæ°ããäœãçŽãããæè¿ã® TeX ã®æ £ç¿ã«åŸãããã«ãªããŸãã ïŒ Robertson ã¯ãµããã©ã«ããMoreãå ã®ãã³ãã¬ãŒããæäŸããŠãããŠããŸãã
âTemplate files are standard TeX files which can be opened and edited by TeXShop. Additional TeX files can be inserted into the Templates folder; they will also appear under the Templates pull down menu provided their names end with the extension ".tex". The original template files can be removed if desired.
ãâ ããã³ãã¬ãŒãã»ãã¡ã€ã«ã¯ã TeXShop ã§éãããç·šéãããã§ããæšæºç㪠TeX ãã¡ã€ã«ã§ããè¿œå ã® TeX ãã¡ã€ã«ã Templates ãã©ã«ãã«å ¥ããããšãã§ããŸã ïŒ ãããã¯ãã«ããŠã³ã¡ãã¥ãŒããã³ãã¬ãŒããã«çŸãããŸãããååã¯æ¡åŒµåã.texãã§çµããããã«ããŠãããŸããããéªéãªããããšããšã®ãã³ãã¬ãŒãã»ãã¡ã€ã«ã¯æšãŠãŠãããŸããŸããã
âTo create a hierarchical structure in the Templates menu, place some of the template files in subfolders of ~/Library/TeXShop/Templates.
ãâ ããã³ãã¬ãŒãã»ã¡ãã¥ãŒã§éå±€æ§é ãäœãã«ã¯ ~/Library/TeXShop/Templates ã®ãµããã©ã«ãã«ãã³ãã¬ãŒãã»ãã¡ã€ã«ã眮ããŸãã
âTo restore the original template files, delete the Templates folder and run TeXShop again. It will recreate the folder and restore its original contents.
ãâ ããªãªãžãã«ã®ãã³ãã¬ãŒãã»ãã¡ã€ã«ã埩å ããã«ã¯ã Templates ãã©ã«ããåé€ã TeXShop ãåèµ·åããŸãããã©ã«ããäœãçŽããããªãªãžãã«ã®å 容ã埩å ãããŸãã
âWhen users upgrade TeXShop, the template is not upgraded because the user may have modified it. If an upgrade changes default templates, it is a good idea to move the ~/Library/TeXShop/Templates folder to the desktop, let TeXShop recreate the folder from scratch, and then repopulate the folder with additional templates from the old Templates folder.
ãâ ããŠãŒã¶ãä¿®æ£ãå ããŠãããããããªãã®ã§ã TeXShop ãã¢ããã°ã¬ãŒãããéãããã®ãã³ãã¬ãŒãã»ãã©ã«ãã¯æŽæ°ãããŸãããããã¢ããã°ã¬ãŒãã«ããããã©ã«ãã®ãã³ãã¬ãŒããå€ããã®ã§ããã°ã ~/Library/TeXShop/Templates ãã©ã«ãããã¹ã¯ãããã«ç§»åãã TeXShop ã«ãŒããããã©ã«ããäœãçŽããããã®ããã§å€ãã»ãã®ãã³ãã¬ãŒãã»ãã©ã«ãããè¿œå ã®ãã³ãã¬ãŒãã移ãæ¿ããã®ãããã§ãããã
âThe commands \usepackage{amssymb} and \usepackage{graphicx} mentioned earlier are included in recent copies of the LatexTemplate, but not in copies from very old versions of TeXShop.
ãâ ãå ã«è§Šãã \usepackage{amssymb} ãš \usepackage{graphicx} ãšããã³ãã³ãããæè¿ã® LatexTemplate ã«ã¯å«ãŸããŠããŸãããã ãã¶ä»¥åã®ããŒãžã§ã³ã® TeXShop ã«ã¯å ¥ã£ãŠããŸããã
##Editing TricksïŒç·šéäžã®ã³ãïŒ
âDouble clicking on a bracket of the form (, {, [, ], }, or ) will select everything between that bracket and its matching bracket. Double clicking on a bracket with the option key down will select the bracket alone.
ãâ ã(, {, [, ], }, ) ãšãã£ãæ¬åŒ§é¡ãããã«ã¯ãªãã¯ãããšã察å¿ããæ¬åŒ§ãšãã®éã®å šãŠã®ããã¹ããéžæãããŸããoption ããŒãæŒããªããæ¬åŒ§ãããã«ã¯ãªãã¯ãããšããã®æ¬åŒ§ã ããéžæããããšãã§ããŸãã
âTeXShop has a new Find panel by Isao Sonobe. This panel supports regular expressions. Users can switch between this panel and the original one in Preferences. The Find panel depends on OgreKit, a Cocoa framework for handling regular expressions by Sonobe. See
ãâ ãTeXShop ã«ã¯åéšå²ããã«ããæ°ããæ€çŽ¢ããã«ããããŸãããã®ããã«ã¯æ£èŠè¡šçŸããµããŒãããŠããŸãããã®æ€çŽ¢ããã«ãšåŸæ¥ã® Apple æšæºã®ãã®ãšã¯ç°å¢èšå®ã§åãæ¿ããããšãã§ããŸããæ°ããæ€çŽ¢ããã«ã¯åéšããã® OgreKit ââæ£èŠè¡šçŸãæ±ãããã® Cocoa ãã¬ãŒã ã¯ãŒã¯ãã«äŸåããŠããŸãã以äžãã芧ãã ããââ
http://www-gauge.scphys.kyoto-u.ac.jp/~sonobe/OgreKit
âOgreKit is distributed using a slightly modified version of the BSD license; this license can be found in the TeXShop source code distribution. OgreKit requires Panther, so the new panel will only appear on machines running system 10.3 or later.
ãâ ãOgreKit 㯠BSD ã©ã€ã»ã³ã¹ãããä¿®æ£ããã©ã€ã»ã³ã¹ã«åºã¥ããŠé åžãããŠããŸã ïŒ ãã®ã©ã€ã»ã³ã¹ã¯ TeXShop ã®ãœãŒã¹ã³ãŒãã»ãã£ã¹ããªãã¥ãŒã·ã§ã³å ã«ãããŸãã OgreKit ã«ã¯ Panther ãå¿ èŠã§ãã®ã§ãæ°ããæ€çŽ¢ããã«ã¯10.3以éã®ã·ã¹ãã ã§ã®ã¿è¡šç€ºãããŸãã
âThere are many nice features of this new Find panel. OgreKit modifies the "Find" submenu of the TeXShop edit menu, replacing it with a more extensive menu. The Find panel presents buttons controlling how it will find words; the settings of these buttons will be remembered from session to session. Adjust them until Find words as expected and then relax.
ãâ ãæ°ããæ€çŽ¢ããã«ã«ã¯çŽ æŽãããæ©èœããããããããŸããOgreKit 㯠TeXShop ã®ãç·šéãã¡ãã¥ãŒã®ãæ€çŽ¢ããµãã¡ãã¥ãŒãå€æŽããããæ¡åŒµãããã¡ãã¥ãŒã«çœ®ãæããŸããæ€çŽ¢ããã«ã«ã¯ã©ã®ããã«æ€çŽ¢ãè¡ãªãããå¶åŸ¡ãããã¿ã³é¡ããããŸã ïŒ ãããã®ãã¿ã³ã®èšå®ã¯æ¬¡å以éã«ãåŒãç¶ãããŸããæã£ããšããã«èªå¥ãèŠã€ãåºããããã«ãªããŸã§èª¿æŽããããåŸã¯ãªã©ãã¯ã¹ããŠãã ããã
âGroups of lines can be commented out using a menu command, and later activated again. Groups of lines can be indented with a menu command, and later moved back. If a line starts with a series of tabs or spaces, new lines will start at the same position until the behavior is cancelled by backspacing. This behavior was added to TeXShop by Nicolás Ojeda BÀr in Argentina, who can be reached at [email protected]. Thanks!
ãâ ãã¡ãã¥ãŒã»ã³ãã³ãã䜿ãããšã§ãè€æ°è¡ããŸãšããŠã³ã¡ã³ãã¢ãŠãã§ããŸãããåŸã§ãŸãæå¹ã«ããããšãã§ããŸããè€æ°è¡ããŸãšããŠãã¡ãã¥ãŒã»ã³ãã³ãã§åäžãããããšãã§ããã°ãåŸã§æ»ãããšãã§ããŸããã²ãšã€ãªããã®ã¿ããã¹ããŒã¹ã§è¡ãå§ãŸã£ãŠããå Žåãããã¯ã¹ããŒã¹ã§åãæ¶ããŸã§ã¯ãåäžãããäœçœ®ããæ°ããè¡ãå§ãŸããŸãããã®åäœã¯ã¢ã«ãŒã³ãã³ã® Nicolás Ojeda BÀr ïŒ [email protected] ïŒããã«ãã£ãŠ TeXShop ã«ä»ãå ããããŸãããããããšãïŒ
âThe source window can be split in two pieces using the split tool at the top of the window. When it is split, two views of the same source are shown. You can type in either piece and your changes will immediately appear in the other as well. Thus you can modify one section of source while reading a second part of the source.
ãâ ããœãŒã¹ãŠã€ã³ããŠã¯ããŠã€ã³ããŠäžéšã«ããã¹ããªããã»ããŒã«ã§ïŒã€ã«åå²ã§ããŸããåå²ãããšãåããœãŒã¹å ã®ïŒã€ã®éšåã衚瀺ãããŸããã©ã¡ãã«ã§ãå ¥åã§ããŸãããå€æŽç®æã¯ããäžæ¹ã«ãå³åº§ã«åæ ãããŸãããªã®ã§ãœãŒã¹ã®äžéšãåç §ããªããå¥ã®éšåãä¿®æ£ããããšãã§ããŸãã
âTeXShop can be instructed to create a backup file every time a file is saved or typeset. This is set using a hidden preference. To create backup files, open Terminal and type the following command:
ãâ ããã¡ã€ã«ãä¿åãããã¿ã€ãã»ããããããããšãã«ãæ¯åããã¯ã¢ãããåãããšãã§ããŸããããã¯é ãããèšå®ã䜿ã£ãŠè¡ãªããŸããããã¯ã¢ããã»ãã¡ã€ã«ãåãã«ã¯ã Terminal ãéããŠæ¬¡ã®ã³ãã³ããæã¡èŸŒãã§ãã ããïŒ
defaults write TeXShop SaveBackup YES
âChange YES to NO to stop creating backups.
ãâ ãããã¯ã¢ãããåãã®ããããã«ã¯ YES ã NO ã«å€ããŸãã
âA Statistics panel lists the number of words, line, and characters in a document. Internally, this panel calls
ãâ ããææžæ å ±ãã¯ææžå ã®åèªæ°ãè¡æ°ããã³æåæ°ã衚瀺ããŸãããã®ããã«ã¯å éšã§æ¬¡ã®ãããªã³ãŒã«ãè¡ãªããŸãââ
detex myfile | wc
âThe detex command removes tex commands, but the word count is still only approximate. Input and include files are counted automatically by this command.
ãâ ãdetex ã³ãã³ãã TeX ã®ã³ãã³ããåãé€ããŸãããã¯ãŒãã»ã«ãŠã³ãã¯ãŸã æŠç®ã®ãã®ã§ãããããŸããã input ããã³ include ããããã¡ã€ã«ãããã®ã³ãã³ãã«ããèªåçã«åå®ãããŸãã
âFile icons can be dragged and dropped onto the source text. If the file is a tex file, an \input command will be added with a relative path to the file. If the file is a graphic file, an \includegraphics command will be added instead. The following graphic types are recognized: pdf, jpg, jpeg, tif, tiff, eps, ps.
ãâ ããã¡ã€ã«ã»ã¢ã€ã³ã³ããœãŒã¹ã»ããã¹ãã«ãã©ãã°ïŒããããããããšãã§ããŸããããã tex ãã¡ã€ã«ã®å Žåã«ã¯ããã¡ã€ã«ãžã®çžå¯Ÿãã¹ã§ \input ã³ãã³ããä»ãå ããããŸããã°ã©ãã£ãã¯ã»ãã¡ã€ã«ã§ããã°ã代ããã« \includegraphics ã³ãã³ããä»å ãããŸãã次ã®ã°ã©ãã£ãã¯ã»ã¿ã€ããèªèãããŸãïŒ pdf ã» jpg ã» jpeg ã» tif ã» tiff ã» eps ã» ps
- è£è¶³ïŒLaTeX Equation Editorã§äœã£ãæ°åŒpdfãã¡ã€ã«ã®å Žåã¯ããã¡ã€ã«ã®äžã«åã蟌ãŸããŠããå ã®TeXã³ãŒããåãåºããŠãããŸãã
âDropping a cls file produces \documentclass and a file reference, dropping a sty file produces \usepackage, dropping a bib file produces \bibliographystyle, and dropping other text files produces \input.
ãâ ãclsãã¡ã€ã«ããããããããš \documentclass ãèšè¿°ãããŠãã¡ã€ã«ã®åç §ãè¡ãªãããŸããã styãã¡ã€ã«ãããããããã° \usepackage ãã bibãã¡ã€ã«ãããããããã° \bibliographystyleããã®ä»ã® textãã¡ã€ã«ã§ããã° \input ãšãªããŸãã
âDrag and drop resolves aliases. For example, if a graphic file is really an alias, the file can be drag-and-dropped to the source and this source will typeset fine. TeX itself cannot resolve aliases, although it can resolve symbolic links. So if the name of the graphic alias is typed directly into the source, it will cause an error during typesetting.
ãâ ããã©ãã°ïŒããããã¯ãšã€ãªã¢ã¹ã解決ããŸããããšãã°ãã°ã©ãã£ãã¯ã»ãã¡ã€ã«ãå®éã«ã¯ãšã€ãªã¢ã¹ã ã£ãå Žåã§ããããããœãŒã¹ã«ãã©ãã°ïŒããããããããšãã§ããŸããããã®ãœãŒã¹ã¯åé¡ãªãã¿ã€ãã»ããã§ããŸãã TeX ããèªäœã¯ãšã€ãªã¢ã¹ã解決ã§ããŸããââã·ã³ããªãã¯ã»ãªã³ã¯ã解決ããããšã¯ã§ããŸããããªã®ã§ã°ã©ãã£ãã¯ã®ãšã€ãªã¢ã¹ã®ååããœãŒã¹ã«ããã«å ¥åããå Žåã«ã¯ãã¿ã€ãã»ããæã«ãšã©ãŒã®åå ãšãªããŸãã
âThe behavior of drag and drop is user customizable. Customization is done with the Macro menu. Insert a new submenu titled "Drag & Drop". Inside this submenu place items named with the extension whose behavior you wish to customize, and place the code that should be inserted in the body of this item. For instance, if the item is .pdf, the code might be \includegraphics[#INS#]{%r}. In these inclusions, the following abbreviations may be used:
%F full path of an dropped file
%f dropped filename
%r relative path of the dropped file
%n filename without extension
%e extension.
ãâ ããã©ãã°ïŒããããã®åäœã¯ãŠãŒã¶ã«ããã«ã¹ã¿ãã€ãºãå¯èœã§ããã«ã¹ã¿ãã€ãºã¯ãã¯ãã¡ãã¥ãŒã§è¡ãªããŸãã ãDrag & Dropããšããé ç®åã§æ°ãããµãã¡ãã¥ãŒãå ããŠãã ããããã®ãµãã¡ãã¥ãŒå ã«ãåäœãã«ã¹ã¿ãã€ãºãããæ¡åŒµååãä»ããé ç®ãèšçœ®ãããã®é ç®ã®å 容ã®éšåã«ã³ãŒããæžã蟌ã¿ãŸããããšãã°ã.pdf ãšããé ç®ã§ã¯ãã³ãŒã㯠\includegraphics[#INS#]{%r} ã«ãªãããšæãããŸããããããåã蟌ã¿çšã«ã次ã®ãããªç瞮圢ãå©çšããŠããããŸãïŒ
%F ããããããããã¡ã€ã«åïŒçµ¶å¯Ÿãã¹ïŒ
%f ããããããããã¡ã€ã«å
%r ããããããããã¡ã€ã«åïŒçžå¯Ÿãã¹ïŒ
%n æ¡åŒµåãªãã®ãã¡ã€ã«å
%e æ¡åŒµå
âIf an extension is not mentioned in the Macro Editor, then it is handled in the default manner mentioned earlier. Thus for most people, no macro "Drag & Drop" submenu is needed.
ãâ ãããæ¡åŒµåããã¯ããšãã£ã¿ã«ç¹èšãããŠããªããã°ãåè¿°ããããã©ã«ãã®æ¹æ³ã§åŠçãããŸãããªã®ã§ããããŠãã®äººã«ãšã£ãŠã¯ã ãDrag & Dropããšãããã¯ãã»ãµãã¡ãã¥ãŒã¯å¿ èŠã§ã¯ãããŸããã
##Auto CompletionïŒãªãŒãã³ã³ããªãŒãïŒ
âGreg Landweber has added auto completion to the TeXShop editor. Typing a double quote will produce a pair of double quotes with the cursor positioned between them. Typing the ^ symbol will produce ^{ } with the cursor positioned between the brackets. Etc. Thirty-nine such completions are currently available.
ãâ ãGreg Landweber ãã㯠TeXShop ã®ãšãã£ã¿ã«ãªãŒãã³ã³ããªãŒãïŒèªåè£å®ïŒæ©èœãä»ãå ããŸãããããã«ã¯ãªãŒããã¿ã€ããããšãã«ãŒãœã«ãéã«æãã ïŒå¯Ÿã®ããã«ã¯ãªãŒããå ¥åãããŸãã^ ãšããèšå·ãã¿ã€ããããšãæ¬åŒ§ã®éã«ã«ãŒãœã«ãæãã ç¶æ 㧠^{ } ãå ¥ããŸãããªã©ãªã©ããããã39åã®è£å®ãä»ã®ãšããå©çšå¯èœã§ãã
âAuto completion can be turned off or on with a preference item. The default preference is off. To try auto completion, turn it on.
ãâ ããªãŒãã³ã³ããªãŒãã¯ç°å¢èšå®é ç®ã§ãªã³ã»ãªããåãæ¿ããããŸããããã©ã«ãã®èšå®ã¯ãªãã«ãªã£ãŠããŸãããªãŒãã³ã³ããªãŒããè©Šãã«ã¯ãªã³ã«ããŸãã
âAuto completion is user configurable. To configure, open the file ~/Library/TeXShop/Keyboard/autocompletion.plist with TeXShop. Read the comments at the top, edit appropriately to redefine Landweber's choices or add your own, and save. Be sure to edit and save in UTF-8 format if you use Unicode characters.
ãâ ããªãŒãã³ã³ããªãŒãã¯ãŠãŒã¶ãèšå®å¯èœã§ããèšå®ããã«ã¯ã~/Library/TeXShop/Keyboard/autocompletion.plist ãšãããã¡ã€ã«ã TeXShop ã§éããŸããåé ã®ã³ã¡ã³ããèªã¿ãé©åã«ç·šéã㊠Landweber ããã®éžå®ãããã®ãå®çŸ©ããªããããç¬èªã®ãã®ãä»ãå ãããããŠãä¿åããŸãã Unicode æåã䜿çšããã®ã§ããã°ãããªãã UTF-8 圢åŒã§ç·šéãä¿åããããã«ããŠãã ããã
##Command CompletionïŒã³ãã³ãã®è£å®ïŒ
âThe source editor supports command completion. Type the first few letters of a word and hit the escape key. The remaining letters will be entered. Hitting escape again will cycle through all possible completions.
ãâ ããœãŒã¹ãšãã£ã¿ã¯ã³ãã³ãã®è£å®ããµããŒãããŠããŸããåèªã®æåã®æ°æåãæã¡èŸŒã¿ããšã¹ã±ãŒãã»ããŒãæŒããŠãã ãããæ®ãã®æåãå ¥åãããŸããããäžåºŠãšã¹ã±ãŒãã»ããŒãæŒããšããã¹ãŠã®è£å®å¯èœãªåè£ãããããã衚瀺ããŸãã
âInitially this will have limited usefulness because the completion dictionary is almost empty. To add a word to the dictionary, select the word and choose "Add Word" under the Format menu. Notice that this menu command has a key equivalent. To see and edit the entire dictionary, choose "Open Completion File" under the Format menu. Notice that the completion can be more complicated than just a single word, and the cursor can be placed correctly within this completion. Examine the samples provided in the default file for details.
ãâ ãåãã®ãã¡ã¯ããã®è£å®æ©èœã¯ããããŠäŸ¿å©ã§ãªããããããŸããââãšããã®ããè£å®èŸæžãã»ãšãã©ã«ã©ããã ããã§ããèŸæžã«åèªãè¿œå ããã«ã¯ãåèªãéžæããŠããã©ãŒããããã¡ãã¥ãŒã®ãã³ãã³ãè£å®ããããçšèªãè¿œå ããéžãã§äžããããã®ã¡ãã¥ãŒã»ã³ãã³ãã¯ããŒæäœãã§ããŸããèŸæžå šäœãèŠããç·šéãããããã«ã¯ãããã©ãŒããããã¡ãã¥ãŒã®ãã³ãã³ãè£å®ããããè£å®çšèªãã¡ã€ã«ãéã...ããéžã³ãŸããè£å®ã¯ïŒèªä»¥äžã®è€éãªãã®ã§ãããŸããŸãããã&del(è£å®ãããã®ã®å åŽã«)è£å®ããæååã®éäžã«ã«ãŒãœã«ãé 眮ããããšãã§ããŸãã詳现ã«ã€ããŠã¯ããã©ã«ãã»ãã¡ã€ã«ã«ãããµã³ãã«ã調ã¹ãŠã¿ãŠãã ããã
âThis feature will be improved in later versions of TeXShop.
ãâ ããã®æ©èœã¯ TeXShop ã®å°æ¥ã®ããŒãžã§ã³ã§æ¹è¯ãããã§ãããã
##Sending Bug ReportïŒãã°ã»ã¬ããŒããéãïŒ
âTo file bug reports and suggest improvements, contact
ãâ ããã°ã»ã¬ããŒãã®æåºãæ¹åã®ææ¡ã¯äžèšãžââ
-
Richard Koch
- Mathematics Department University of Oregon Eugene, Oregon 97403
- [email protected]
-
Dirk Olmes
âBut reports for teTeX/TeXLive should go to
ãâ ããã ã teTeX/TeXLive ã«ã€ããŠã®å ±åã¯ãã¡ããžââ
- Gerben Wierda
##Useful Web SitesïŒåœ¹ã«ç«ã€ãŠã§ãã»ãµã€ãïŒ
- TeXShop Web SiteïŒå ¬åŒããŒãžïŒ:
æ¥æ¬èªã§ã®TeXå©çšã«åœ¹ç«ã€ããŒãž
-
TeX Wiki
-
MacWiki - TeXShop æ å ±
-
MacpTeXãšãã®åšèŸº
-
ã¢ã¹ããŒæ¥æ¬èªTeXïŒpTeXïŒ
-teTeX/TeXLive Web Site: * http://www.rna.nl/tex.html
-Gary Gray's MacOSX TeX/LaTeX Web Site: * http://www.esm.psu.edu/mac-tex/
-Unicode Extensions to support TeXShop's UTF-8 Unicode file preference option: -TeXShop ã® UTF-8 Unicode ãã¡ã€ã«ç°å¢èšå®ãªãã·ã§ã³ããµããŒããã Unicode æ©èœæ¡åŒµïŒ * http://www.ctan.org/tex-archive/macros/latex/contrib/supported/unicode/
-ConTeXt Web Site: * http://www.pragma-ade.com/
-MetaPost Web Site: * http://cm.bell-labs.com/who/hobby/MetaPost.html
-Comprehensive TeX Archive: -TeX ã«é¢ããå æ¬çãªä¿ç®¡å ŽæïŒãããã CTAN ã·ãŒã¿ã³ïŒïŒ * http://www.ctan.org * http://www.ctan.org/tex-archive
-TeX Users Group (TUG): * http://www.tug.org
-XeTeX and XeLaTeX: * http://scripts.sil.org/xetex
##LicenseïŒäœ¿çšèš±è«ŸïŒ
âTeXShop is provided under the GNU General Public License (GPL). This means that you are free to use, copy, and modify the program. If you give your modifications to others, the modifications must also be provided under the GPL.
ãâ ãTeXShop 㯠GNU äžè¬å ¬æ䜿çšèš±è«ŸïŒ GPL ïŒã®äžã§æäŸãããŸããããã¯ããã°ã©ã ãèªç±ã«äœ¿ã£ãããã³ããŒããããæ¹å€ãããã§ããããšãæå³ããŸããããããªããæ¹å€ãããã®ãä»ã®äººãã¡ã«æäŸãããªããåæ§ã« GPL ã®äžã§è¡ãªããã°ãªããŸããã
âThe source code is available on the web site:
ãâ ããœãŒã¹ã³ãŒãã¯æ¬¡ã®ãŠã§ããµã€ãã«ãããŸãïŒ
-http://darkwing.uoregon.edu/~koch/texshop/texshop.html
#Advanced HelpïŒäžçŽåãã®ãã«ãïŒ
##Adding Personal Sty and Macro Files to teTeXïŒã¹ã¿ã€ã«ãšãã¯ãã teTeX ã«è¿œå ããïŒ
âUsers sometimes create additional sty, cls, bib, and tex files for common use in several different projects. These files will certainly be seen by tex and latex if they are placed in the same folder as the tex source file being typeset, but then multiple copies of the files must be kept on the computer.
ãâ ããŠãŒã¶ã¯ããã€ãã®ç°ãªããããžã§ã¯ãã§å ±çšããããã«è¿œå ã® sty ã» cls ã» bib ããã³ tex ãªã©ã®ãã¡ã€ã«ãäœæããããšããããŸãã tex ã®ãœãŒã¹ã»ãã¡ã€ã«ãã¿ã€ãã»ãããããšãã«ããããã®ãã¡ã€ã«ãåäžã®ãã©ã«ãå ã«ããã°ã TeX ã LaTeX ã«ã¯ãã¡ããšèªã¿åã£ãŠããããŸããããã¡ã€ã«ã®å€éã³ããŒãã³ã³ãã¥ãŒã¿äžã«ä¿æããªããã°ãªããŸããã
âIt is possible to make these files visible to all teTeX projects, whether typeset from TeXShop or from the Terminal. To do so, create a subfolder of the Library folder in your home directory named texmf. Create subfolders named tex and bibtex. Within the tex folder, create a subfolder named latex. Store your personal files in these folders.
ãâ ããã¹ãŠã® teTeX ãããžã§ã¯ãã«å¯ŸããŠãããã®ãã¡ã€ã«ãèªã¿åãå¯èœã«ããããšãã§ããŸãââã¿ã€ãã»ããã TeXShop ããè¡ãªãã«ãããã¿ãŒããã«ããè¡ãªãã«ãããããããããã«ã¯ãããŒã ã»ãã£ã¬ã¯ããªå ã®ã©ã€ãã©ãªã»ãã©ã«ãã« texmf ãšããååã§ãµããã©ã«ããäœããŸãããã㊠tex ãš bibtex ãšããååã§ãµããã©ã«ããäœããŸãã tex ãã©ã«ãå ã«ã¯ latex ãšããååã®ãµããã©ã«ããäœããŸãããããã®ãã©ã«ãã«å人çãªãã¡ã€ã«ãããŸã£ãŠãããŸãã
âTex will find any file in ~/Library/texmf/tex or a subfolder of this directory. Latex will find any file in ~/Library/texmf/tex/latex or a subfolder of this directory, and bibtex and makeindex will find any file in ~/Library/texmf/bibtex and ~/Library/texmf/makeindex respectively, or a subfolder. It is not necessary to run texhash after adding files to these folders.
ãâ ãTeX 㯠~/Library/texmf/tex ãªããã¯ãã®ãã£ã¬ã¯ããªä»¥äžã®ãµããã©ã«ãå ã«ãããã¹ãŠã®ãã¡ã€ã«ãæ€ç¥ããŸãã LaTeX 㯠~/Library/texmf/tex/latex ãªããã¯ãã®ãã£ã¬ã¯ããªä»¥äžã®ãµããã©ã«ãå ã«ãããã¹ãŠã®ãã¡ã€ã«ãæ€ç¥ãã BibTeX ãš MakeIndex ã¯ãããã ~/Library/texmf/bibtex ããã㯠~/Library/texmf/makeindex ã«ãããã¹ãŠã®ãã¡ã€ã«ãæ€ç¥ããã§ãããããããã®ãã©ã«ãã«ãã¡ã€ã«ãè¿œå ããåŸã§ texhash ãå®è¡ããå¿ èŠã¯ãããŸããã
âOn other Unix machines, tex is sometimes notified of the location of personal input files by setting the environment variables TEXINPUTS, BSTINPUTS, and BIBINPUTS. This is generally not necessary in Gerben Wierda's teTeX distribution, but it can be done in special circumstances. Mac OS X allows users to notify programs about environment variables by creating a file in their home directory named ~/.MacOSX/environment.plist. These environment variables get picked up by all user shells and all Carbon and Cocoa programs, so caution should be used when creating the file.
ãâ ãä»ã® UNIX ãã·ã³ã«ãããŠã TeX ã¯å人çãªå ¥åãã¡ã€ã«ã®æåšãç°å¢å€æ°ïŒ TEXINPUTS ã» BSTINPUTS ããã³ BIBINPUTS ïŒã®èšå®ã«ããç¥ããããããšããããŸãããã㯠Gerben Wierda ã® teTeX ãã£ã¹ããªãã¥ãŒã·ã§ã³ã§ã¯éåžžã¯äžèŠã§ãããã©ããç¹å¥ãªç¶æ³ã§ã¯ããããããšãã§ããŸãã Mac OS X ã§ã¯ ~/.MacOSX/environment.plist ãšããååã®ãã¡ã€ã«ãããŒã ã»ãã£ã¬ã¯ããªã«äœãããšã§ãç°å¢å€æ°ã«ã€ããŠããã°ã©ã ã«ç¥ãããããšããŠãŒã¶ã«èš±å¯ããŠããŸãããããã®ç°å¢å€æ°ã¯ãã¹ãŠã®ãŠãŒã¶ã»ã·ã§ã«ããã³ãã¹ãŠã® Carbon ãš Cocoa ããã°ã©ã ã«èªã¿èŸŒãŸããŸãââã§ãããããã®ãã¡ã€ã«ãäœãã«éããŠã¯æ³šæãæãã¹ãã§ãã
âBelow is a sample environment.plist file sent me by Nathan Potter; thanks! For further details, consult http://developer.apple.com/qa/qa2001/qa1067.html.
ãâ ãäžã«ããã®ã¯ Nathan Potter ãããéã£ãŠããã environment.plist ãã¡ã€ã«ã®ãµã³ãã«ã§ã ïŒ ããããšãïŒ ãããªã詳现ã«ã€ããŠã¯ã http://developer.apple.com/qa/qa2001/qa1067.html ã§ã調ã¹ãã ãã
- ãµã³ãã«ã³ãŒãã¯ç»åã§çŽ¹ä»ãããŠããŸããTeXShop ã®ãã«ãã¡ãã¥ãŒããã芧ãã ããã
##Additional Typesetting EnginesïŒè¿œå ã®ã¿ã€ãã»ããã»ãšã³ãžã³ïŒ
âRecently, Jonathan Kew introduced XeTeX and XeLaTeX. These programs can use Macintosh fonts directly within a TeX document. XeTeX and XeLaTeX require unicode source and thus can deal with any unicode character; for example, with them you can type Arabic or Hebrew in the source document and later see Arabic or Hebrew in the output. TeXShop's editor will correctly input these characters from right to left. XeTeX is not part of the standard TeX distribution from Gerben Wierda, but it can be obtained using Wierda's i-Installer as an optional install directly from Jonathan Kew. For additional details, consult
ãâ ãæè¿ã Jonathan Kew ããã XeTeX ãš XeLaTeX ãçºè¡šããŸããããããã®ããã°ã©ã ã¯ã TeX ææžå 㧠Macintosh ã®ãã©ã³ããããã«å©çšããããšãã§ããŸãã XeTeX ãš XeLaTeX 㯠unicode ã«ãããœãŒã¹ãå¿ èŠã«ãªããŸããããããããã¹ãŠã® unicode æåãåãæ±ãããšãã§ããŸã ïŒ ããšãã°ãã¢ã©ãã¢èªãããã©ã€èªããœãŒã¹ã³ãŒãã«æã¡èŸŒãã§ãã¢ã©ãã¢èªãããã©ã€èªã®åºåãšããŠèŠãããšãã§ããŸãã TeXShop ã®ãšãã£ã¿ã§ã¯ããããæåãå³ããå·Šãžãã¡ããšå ¥åã§ããŸãã XeTeX 㯠Gerben Wierda ããã®é åžããæšæºç㪠TeX ã«ã¯å«ãŸããŠããŸãããã Wierda ããã® i-Installer ã䜿ãããšã§ããªãã·ã§ã³ã»ã€ã³ã¹ããŒã«ãšã㊠Jonathan Kew ããã®ãšããããå ¥æããããšãã§ããŸããããã«è©³ããããšã«ã€ããŠã¯ã以äžã§ã調ã¹ãã ããââ
âTo understand how this works, here is a brief XeLaTeX source document, and the resulting output. The Arabic and Hebrew characters were obtained by accessing the International Panel in System Preferences, selecting the Input Menu tab, and checking Arabic and Hebrew; a small flag appeared on the menu bar and a user could switch keyboards by selecting an appropriate flag.
ãâ ããããã©ã®ããã«åäœããã®ããç解ã§ãããããªãç°¡å㪠XeLaTeX ã®ãœãŒã¹ææžãšåºåçµæããããŸããã¢ã©ãã¢èªãšããã©ã€èªã®æåã¯ãã·ã¹ãã ç°å¢èšå®ãã®ãèšèªç°å¢ãã§ãå ¥åã¡ãã¥ãŒãã¿ããéžã³ã Arabic ãš Hebrew ã«ãã§ãã¯ãå ¥ããŸã ïŒ å°ããªåœæãã¡ãã¥ãŒããŒã«è¡šç€ºãããã®ã§ããããéžæããããšã§ããŒããŒãå ¥åãåãæ¿ããããŸãã
- ïŒå ¥åäŸãšåºåäŸã®ç»åïŒ
âTeXShop now supports XeTeX and XeLaTeX:
ãâ ãTeXShop ã§ã¯çŸåšãã§ã« XeTeX ãš XeLaTeX ããµããŒãããŠããŸãïŒ
-
âXeTeX and XeLaTeX are available in the pull-down typesetting menu on the source window
-
ãâ ãXeTeX ãš XeLaTeX ã¯ããœãŒã¹ãŠã€ã³ããŠã«ãããã«ããŠã³ã¡ãã¥ãŒãã¿ã€ãã»ãããããå©çšå¯èœã§ã
-
âA user can make XeTeX or XeLaTeX the default typesetting option in preferences
-
ãâ ãç°å¢èšå®ã§ XeTeX ãŸã㯠XeLaTeX ãããã©ã«ãã®ã¿ã€ãã»ããã»ã³ãã³ãã«ã§ããŸã
-
âIf one of the first twenty lines of the source has the form
-
ãâ ããããœãŒã¹ã®åé 20è¡ä»¥å ã«æ¬¡ã®æžåŒãããã°ââ
%!TEX encoding = UTF-8 Unicode
-
âthen that source will be loaded and saved with UTF-8 Unicode encoding regardless of the default encoding setting in preferences
-
ãâ ããã®ãœãŒã¹ã¯ãç°å¢èšå®ã§ã®ããã©ã«ãã®ãšã³ã³ãŒãã£ã³ã°æ¹åŒã«é¢ããã UTF-8 Unicode 圢åŒã§èªã¿èŸŒãŸãä¿åãããŸã
-
âIf one of the first twenty lines of the source has the form
-
ãâ ããããœãŒã¹ã®åé 20è¡ä»¥å ã«æ¬¡ã®ããããã®æžåŒãããã°ââ
%!TEX TS-program = xetex
%!TEX TS-program = xelatex
-
âthen the appropriate program will be used regardless of the typesetting option chosen in the menu
-
ãâ ãã¡ãã¥ãŒã§éžæããã¿ã€ãã»ããã»ãªãã·ã§ã³ã«é¢ããããç¹å®ã®ããã°ã©ã ãçšããããŸã
âThese XeTeX features form a special case of a new general method for adding typesetting engines to TeXShop. There is now a folder in ~/Library/TeXShop named Engines; the files in this folder are shell scripts which call typesetting programs. When TeXShop first starts, it examines this folder and adds the script names of files it contains to the pull-down typesetting menu. Choosing one of these items and pushing the Typeset button calls the script. Users can write their own scripts and add them to the Engines folder. Each such script must have a name without spaces, and extension ".engine", and have the executable bit set.
ãâ ããããã XeTeX ã®ç¹åŸŽã¯ã TeXShop ã«ã¿ã€ãã»ããã»ãšã³ãžã³ãè¿œå ããæ°ããäžè¬çãªæ¹æ³ã®ç¹äŸãšãªã£ãŠããŸãã ~/Library/TeXShop å ã«ãEnginesããšããååã®ãã©ã«ãããããŸã ïŒ ãã®ãã©ã«ãã«å ¥ã£ãŠãããã¡ã€ã«ã¯ãã¿ã€ãã»ããã»ããã°ã©ã ãåŒã³åºããã·ã§ã«ã»ã¹ã¯ãªããã§ãã TeXShop ãæåã«èµ·åãããšããã®ãã©ã«ãã調ã¹ããã¡ã€ã«ã®ã¹ã¯ãªããåãå ãããã«ããŠã³ã¡ãã¥ãŒãã¿ã€ãã»ãããã«å«ããŸãããã®äžããïŒã€ãéžãã§ã¿ã€ãã»ããã»ãã¿ã³ãæŒãã°ãã¹ã¯ãªãããåŒã³åºãããŸãããŠãŒã¶ã¯èªåã§ç¬èªã®ã¹ã¯ãªãããæžããããããEnginesããã©ã«ãã«è¿œå ããããšãã§ããŸããåã¹ã¯ãªããã¯ãã¹ããŒã¹ãå«ãŸãªãååã§ãæ¡åŒµåãã.engineããšãªã£ãŠãããå®è¡å¯èœãªãããã»ã»ããããªããã°ãªããŸããã
âItems in ~/Library/TeXShop/Engines can be chosen as the default typesetting method in TeXShop Preferences. Notice that when a method is listed in Preferences, its name is given without the extension.
ãâ ã~/Library/TeXShop/Engines å ã«ããé ç®ã¯ãããã©ã«ãã®ã¿ã€ãã»ããæ¹åŒãšããŠã TeXShop ã®ç°å¢èšå®ã§éžæã§ããŸããç°å¢èšå®ã«è¡šç€ºãããéã«ã¯ãæ¡åŒµåãªãã®å称ãšãªãããšã«æ³šæããŸãã
âThe default program can be set on one of the first twenty lines of the source code by writing a line like
ãâ ããœãŒã¹ã³ãŒãã®åé 20è¡ä»¥å ã®ïŒè¡ã«æ¬¡ã®ããã«æžãããšã§ããã©ã«ãã®ããã°ã©ã ãèšå®ã§ããŸãââ
%!TEX TS-program = xelatex
âThe encoding used to open or save any file can be set by writing a line of the following form as one of the first twenty lines of a source document. Any supported encoding is allowed. To bypass this behavior, hold down the option key while opening a file.
ãâ ãä»»æã®ãã¡ã€ã«ãéãããä¿åãããããã®ã«çšãããšã³ã³ãŒãã£ã³ã°æ¹åŒã¯ã 以äžã®ãããªæžåŒããœãŒã¹ææžã®åé 20è¡ä»¥å ã«æžã蟌ãããšã§èšå®ã§ããŸãã ãµããŒããããŠãããšã³ã³ãŒãã£ã³ã°æ¹åŒã®ãããã§ãå¯èœã§ãããã®åäœãåé¿ããã«ã¯ããªãã·ã§ã³ããŒãæŒããªãããã¡ã€ã«ãéããŸãã
%!TEX encoding = UTF-8 Unicode
âThere must be one space after %!TEX and one space before the equals sign; the spaces in the name of the encoding must match the spaces in the name listed below. The name of the encoding is the internal name used by Mac OS X. Below is a list of allowed names:
ãâ ã%!TEX ã®åŸã«ïŒã€ãçå·èšå·ã®åã«ïŒã€ãåè§ã¹ããŒã¹ãå ¥ããªããã°ãªããŸãã ïŒ ãšã³ã³ãŒãã£ã³ã°åã«å«ãŸããã¹ããŒã¹ã¯ãäžèšã®ãªã¹ãã«ããã¹ããŒã¹ãšäžèŽãããŠãã ããããšã³ã³ãŒãã£ã³ã°æ¹åŒã®å称㯠Mac OS X ã®å éšã§çšããããŠãããã®ã§ãã以äžãå©çšå¯èœãªå称ã®ãªã¹ãã§ãïŒ
-MacOSRoman -IsoLatin -IsoLatin2 -IsoLatin5 -MacJapanese -DOSJapanese -SJIS_X0213 -EUC_JP -JISJapanese -MacKorean -UTF-8 Unicode -Standard Unicode -Mac Cyrillic -DOS Cyrillic -DOS Russian -Windows Cyrillic -KOI8_R -Mac Chinese Traditional -Mac Chinese Simplified -DOS Chinese Traditional -DOS Chinese Simplified -GBK -GB 2312 -GB 18030
##Removing AUX FilesïŒäœæ¥ãã¡ã€ã«ãåé€ããïŒ
âWhen documents are typeset, auxiliary files are created with extensions .aux, .log, .bbl, etc. Occasionally these files can become corrupt and lead to unexplained typesetting errors. TeXShop has a menu command "Trash AUX Files" which will remove all such files so typesetting can proceed. There is a similarly named button on the Console window. If either of these items is activated, TeXShop will move to the trash all files in the current source directory with the same name as the source file and extension aux, blg, brf, ccs, ent, fff, glo, idx, idv, ilg, ind, ioa, lg, log, lot, mte, mlf, out, pdfsync, toc, ttt, wrm, xref, 4ct, or 4tc.
ãâ ãããã¥ã¡ã³ããã¿ã€ãã»ãããããšã ã.auxã ã.logã ã.bblããªã©ã®æ¡åŒµåãä»ããè£å©çãªãã¡ã€ã«ãçæãããŸãããããããã¡ã€ã«ã¯ãšãã©ãããããããªã£ãããäºæãã¬ã¿ã€ãã»ããã»ãšã©ãŒãæãããããããšããããŸãã TeXShop ã«ã¯ãäœæ¥ãã¡ã€ã«ãåé€ããšããã¡ãã¥ãŒã³ãã³ããããããããããã¡ã€ã«ããã¹ãŠåãé€ããã®ã§ãã²ãã€ã¥ãã¿ã€ãã»ãããè¡ãªãããšãã§ããŸããåæ§ãªååã®ãã¿ã³ãã³ã³ãœãŒã«ãŠã€ã³ããŠã«ããããŸãããã®ãããããå®è¡ãããšãçŸåšã®ãœãŒã¹ããããã£ã¬ã¯ããªå ã«ããããœãŒã¹ãã¡ã€ã«ãšååãåãã§ãæ¡åŒµåã aux ã» blg ã» brf ã» ccs ã» ent ã» fff ã» glo ã» idx ã» idv ã» ilg ã» ind ã» ioa ã» lg ã» log ã» lot ã» mtc ã» mlf ã» out ã» pdfsync ã» toc ã» ttt ã» wrm ã» xref ã» 4ct ã» 4tc ãšãªã£ãŠãããã¡ã€ã«ããã¹ãŠãŽãç®±ãžãšç§»åãããŸãã
âAdditional extensions can be added to this list. To add "dvi" to the list, activate the Terminal and type
ãâ ããã®ãªã¹ãã«æ¡åŒµåãè¿œå ããããšãã§ããŸãã ãdviããå ããã«ã¯ãã¿ãŒããã«ãå®è¡ãã以äžã®ããã«ã¿ã€ãããŸãââ
defaults write TeXShop OtherTrashExtensions -array-add "dvi"
âTo remove all additions and return to the original default list, tppe
ãâ ãè¿œå ããåãåãé€ããŠå ã ã®ããã©ã«ãã®ãªã¹ãã«æ»ãã«ã¯ã次ã®ããã«ã¿ã€ãããŸãââ
defaults write TeXShop OtherTrashExtensions -array
âSometimes more extensive cleanup is needed. For example, if a book is controlled by main.tex, and chapters are in subfolders accessed with commands like \include{chapter1/chapter1}, then typesetting the book will create main.aux, main.pdfsync, and main.log in the main folder, and chapter1.aux in the chapter1 folder.
ãâ ãæãšããŠãããã«åŸ¹åºããã¯ãªãŒã³ããããå¿ èŠã«ãªãããšããããŸããããšãã°ã main.tex ã§ãæ¬ãã管çããŠãããåç« ããµããã©ã«ãå ã«ãã£ãŠ \include{chapter1/chapter1} ã®ãããªã³ãã³ãã§ã¢ã¯ã»ã¹ããŠããå Žåã ãæ¬ããã¿ã€ãã»ãããããšãã¡ã€ã³ã®ãã©ã«ãå ã«ã¯ main.aux ã» main.pdfsync ã» main.log ãçæããã chapter1 ãã©ã«ãã«ã¯ chapter1.aux ãçæãããŸãã
âThe required extensive cleanup can be done by holding down the option key while choosing "Trash AUX Files." In this case:
ãâ ãããã«å¿ãã培åºçãªã¯ãªãŒã³ãããã¯ããªãã·ã§ã³ããŒãæŒããªãããäœæ¥ãã¡ã€ã«ãåé€ããéžæããããšã§å®è¡ã§ããŸãããããè¡ãªããšïŒ
-â"%!TEX root" and Root File information will be used to find the root document and its folder -ãâ ã%!TEX root ãšã«ãŒããã¡ã€ã«ã®æ å ±ããã«ãŒãææžãšãã®ãã©ã«ããæ¢ãåœãŠãã®ã«äœ¿ãããŸã
-âAll files with appropriate extensions in this folder or any subfolder will be moved to the trash, regardless of the name of the file -ãâ ããã®ãã©ã«ããŸãã¯ããããã®ãµããã©ã«ãå ã«ããã該åœããæ¡åŒµåã®ä»ãããã¡ã€ã«ã¯ãã¹ãŠããã¡ã€ã«åã®åŠäœã«ããããŽãç®±ã«ç§»ãããŸã
âThere is a way to make this behavior the default behavior for "Trash AUX Files" even if the option key is not down:
ãâ ããäœæ¥ãã¡ã€ã«ãåé€ãã®åäœãããªãã·ã§ã³ããŒãæŒãããšãªãäžèšã®ããã«ããæ¹æ³ããããŸãïŒ
defaults write TeXShop AggressiveTrashAUX YES
##Using an External EditorïŒå€éšãšãã£ã¿ã䜿çšããïŒ
âTeXShop can be configured for an external editor in several ways. Some features below will be useful and others not depending on how your editor works. In the future, your editor may come with configuration instructions.
ãâ ãTeXShopã§ã¯ããã€ãã®æ¹æ³ã§å€éšãšãã£ã¿ãèšå®ããããšãã§ããŸãã以äžã«ç€ºãæ¹æ³ã¯äŸ¿å©ã§ããããšãã£ã¿ã®æ©èœã«ã¯äŸåããŸãããå°æ¥çã«ã¯ãç°å¢èšå®ã§ãšãã£ã¿ãæå®ããããã«ãªããããããŸããã
âThere is a menu item named "Open for Preview..." When this item is chosen, you will be asked to select a .tex source file. But only the associated pdf preview window opens. If the source has not yet been typeset or if the pdf is out of date, TeXShop will typeset the file as it is opened. You can open your source file in any editor. When it is time to typeset, save the changes in your editor, switch to the preview window, and typeset. In this mode, TeXShop never opens or modifies the source file. It simply passes this file to the Unix TeX or LaTeX process.
ãâ ãããã¬ãã¥ãŒãéã...ããšããã¡ãã¥ãŒé ç®ããããŸãããã®é ç®ãéžã¶ãšãæ¡åŒµåã .tex ã®ãœãŒã¹ãã¡ã€ã«ãéžæããããã«èšãããŸããã§ããéãããã®ã¯ãé¢é£ã¥ãã®è¡ãªããã pdf ãã¬ãã¥ãŒãŠã€ã³ããŠã®ã¿ã§ãããœãŒã¹ããŸã ã¿ã€ãã»ãããããŠããªãã£ããã pdf ãå€ããªã£ãŠããå Žåããã¡ã€ã«ãéããšãšãã« TeXShop ãã¿ã€ãã»ãããè¡ãªããŸãããœãŒã¹ãã¡ã€ã«ã¯ã©ã®ãšãã£ã¿ã§ãéãããšãã§ããŸããã¿ã€ãã»ããã®æºåãæŽã£ãããå€æŽç®æããšãã£ã¿ã§ä¿åãããã¬ãã¥ãŒãŠã€ã³ããŠã«åãæ¿ããŠã¿ã€ãã»ããããŸãããã®ããæ¹ã®å Žåã TeXShop ã¯ãœãŒã¹ãã¡ã€ã«ãéããããŸãä¿®æ£ãè¡ãªããŸããããã åã«ãã¡ã€ã«ã UNIX ã® TeX ããã㯠LaTeX ããã»ã¹ã«æž¡ãã ãã§ãã
âThe preview window can be configured to contain a typesetting button. If such a button is not there, use "Customize Toolbar..." in the Windows menu to add one.
ãâ ããã¬ãã¥ãŒãŠã€ã³ããŠã«ã¯ã¿ã€ãã»ããã»ãã¿ã³ãé 眮ããããšãã§ããŸãããããããããã¿ã³ãèŠããããªãå Žåã¯ããŠã€ã³ããŠã»ã¡ãã¥ãŒã®ãããŒã«ããŒãã«ã¹ã¿ãã€ãº...ãã䜿ã£ãŠãã¿ã³ãä»ãå ããŠãã ããã
âFor users who prefer external editors most of the time, there is a preference item called "Configure for External Editor." When this preference is chosen, the "Open" and "Open Recent..." menus open tex source files in the above manner for editing with an external editor. Moreover, the "Open for Preview..." menu becomes "Open for Editing..." and opens the source file in TeXShop's internal editor for those rare occasions when the internal editor is desired. The "Open" and "Open Recent..." menus can also open jpg, tiff, ps, pdf, dvi, log, and other files; selecting the new preference does not change this behavior.
ãâ ãã»ãšãã©åžžã«å€éšãšãã£ã¿ã䜿ããããŠãŒã¶ãŒã®ããã«ãç°å¢èšå®ã«ã¯ãå€éšãšãã£ã¿ã§ãœãŒã¹ãç·šéããšããé ç®ããããŸãããã®èšå®ãéžæãããŠãããšã ãéã...ããšãæè¿äœ¿ã£ãæžé¡ãã¡ãã¥ãŒã§ã¯ã TeX ãœãŒã¹ãã¡ã€ã«ãå€éšãšãã£ã¿ã§ç·šéããããã«ãäžè¿°ã®æ¹æ³ã§éããŸããããã«ããã¬ãã¥ãŒãéã...ãã¡ãã¥ãŒã¯ãéããŠç·šéãã...ããšå€ããã TeXShop ã®å èµãšãã£ã¿ã§ãœãŒã¹ãã¡ã€ã«ãéãããã«ãªããŸãããããã¯ãããŸãã«å èµãšãã£ã¿ã䜿ãããå Žåã®ããã§ãã ãéã...ããšãæè¿äœ¿ã£ãæžé¡ãã¡ãã¥ãŒã§ã¯ãŸãã jpg ã» tiff ã» ps ã» pdf ã» dvi ã» log ããã³ãã®ä»ã®ãã¡ã€ã«ãéãããšãã§ããŸã ïŒ ãã®åäœã«ã€ããŠã¯ãæ°ããç°å¢èšå®ã«ããå Žåã§ãå€ãããŸããã
âSome editors are able to call Unix typesetting commands directly. A new preference item, "Automatic Preview Update", has been added to improve your experience with these editors. When this item is active and a .tex file is opened using "Open for Preview", the pdf preview display automatically updates whenever the pdf file is rewritten. Thus you can typeset with an external editor and the preview window will automatically show changes. The preference also applies to .pdf files opened in TeXShop, and if TeXShop is configured to use an external editor, the preference applies to .tex files opened with "Open".
ãâ ãUNIX ã®ã¿ã€ãã»ããã»ã³ãã³ããçŽæ¥åŒã³åºãããšã®ã§ãããšãã£ã¿ããããŸããæ°ããèšå®é ç®ããã¬ãã¥ãŒã®èªåæŽæ°ãã¯ããããããšãã£ã¿ã§ã®äœæ¥ãæ¹åããããã«ä»ãå ããããŸããããã®é ç®ãéžæãããŠããã ããã¬ãã¥ãŒãéã...ãã䜿ã£ãŠ .texãã¡ã€ã«ãéããå Žåã«ã¯ã pdf ãæžãæ¹ãããããšãã«ã¯ãã€ã§ãã pdf ãã¬ãã¥ãŒã¯ã®ç»é¢ãæŽæ°ãããŸãããªã®ã§ãå€éšãšãã£ã¿ããã®ã¿ã€ãã»ãããå¯èœã«ãªãããã¬ãã¥ãŒãŠã€ã³ããŠã¯èªåçã«å€æŽã衚瀺ããŸãããã®ç°å¢èšå®ã¯ã TeXShop ã§éãã .pdfãã¡ã€ã«ã«ã€ããŠãåæ§ã«é©çšãããŸããã TeXShop ãå€éšãšãã£ã¿ãå©çšããããã«èšå®ãããŠããã°ã ãéã...ãã䜿ã£ãŠéãã .texãã¡ã€ã«ã«ã€ããŠããŸãé©çšãããŸãã
âThe following applescript commands have been added to TeXShop so editors can call TeXShop directly:
ãâ ããšãã£ã¿ããçŽæ¥ TeXShop ãåŒã³åºããããã«ã以äžã® AppleScript ã³ãã³ããè¿œå ãããŠããŸãïŒ
-typesetinteractive -texinteractive -latexinteractive -contextinteractive -bibtexinteractive -makeindexinteractive -metapostinteractive -taskdone -refreshpdf -open_for_externaleditor
âThe first seven commands activate TeXShop typesetting commands. Applescript will return immediately after these calls without waiting for typesetting to complete. The "taskdone" call can be used to test completion; it returns NO while typesetting is being done, and YES when it is finished. Each of these calls refreshes the preview window at the end of typesetting. If your editor calls TeXShop to typeset, the "Automatic Preview Update" preference can be turned off.
ãâ ãæåã®ïŒã€ã®ã³ãã³ã㯠TeXShop ã®ã¿ã€ãã»ããã£ã³ã°ã»ã³ãã³ããäœåãããŸãããããã®ã³ãŒã«ã®åŸã§ AppleScript ã¯ãã¿ã€ãã»ããã®å®äºãåŸ ããã«ãããªã¿ãŒã³ããŸãã ãtaskdoneãã³ãŒã«ã¯å®äºãããã©ããã調ã¹ãã®ã«äœ¿ããŸã ïŒ ããã¯ã¿ã€ãã»ãããè¡ãªãããŠããé㯠NO ãè¿ããçµäºãããš YES ãè¿ãã®ã§ãããããã®ã³ãŒã«ã¯ããããã«ãã¿ã€ãã»ããå®äºæã«ã¯ãã¬ãã¥ãŒãŠã€ã³ããŠãæŽæ°ããŸãã䜿çšãããšãã£ã¿ã TeXShop ãåŒã³åºããŠã¿ã€ãã»ããããã®ã§ããã°ãç°å¢èšå®ã®ããã¬ãã¥ãŒã®èªåæŽæ°ãã¯ãªãã«ããŠãããŸãã
âIf the external editor modifies the pdf output directly, it can call "refreshpdf" to refresh the pdf display. This is only needed if "Automatic Preview Update" is off. Finally "open_for_externaleditor" opens a tex file by calling "Open for Preview".
ãâ ãããå€éšãšãã£ã¿ã pdf åºåãããã«ä¿®æ£ããã®ã§ããã°ã ãrefreshpdfããåŒã³åºã㊠pdf ç»é¢ãæŽæ°ããããšãã§ããŸããããã¯ããã¬ãã¥ãŒã®èªåæŽæ°ãããªãã«ãªã£ãŠããå Žåã«ã®ã¿å¿ èŠãšãªããŸããæåŸã®ãopen_for_externaleditorãã¯ããã¬ãã¥ãŒãéã...ããåŒã³åºã㊠texãã¡ã€ã«ãéããŸãã
âThe Tcl code to make these calls from AlphaX in included in the AlphaTcl folder inside the TeXShop_Folder of the TeXShop distribution. Read the first lines of this file to see how to configure AlphaX for this purpose.
ãâ ãAlphaX ãããããã®ã³ãŒã«ãè¡ãªãããã® Tcl ã³ãŒãã¯ã TeXShop ãã£ã¹ããªãã¥ãŒã·ã§ã³ã® TeXShop_Folder ã®äžã«ãã AlphaTcl ãã©ã«ãå ã«å ¥ã£ãŠããŸãããã¡ã€ã«ã®åãã«æžãããŠããããšãèªã¿ãæå³ã«æ²¿ã£ãŠ AlphaX ãèšå®ããæ¹æ³ã確èªããŠãã ããã
##Copy-Paste and Drag-Drop from the Preview WindowïŒãã¬ãã¥ãŒãŠã€ã³ããŠããã®ã³ããŒïŒããŒã¹ãããã³ãã©ãã°ïŒããããïŒ
âIt is possible to select a portion of the pdf preview display and copy and paste the resulting graphic into another program. Drag and drop of the selection is also supported. Preference items allow users to select the file type of the copy (pdf, png, jpg, tiff, etc.) and the foreground and background colors and transparency.
ãâ ãpdf ã®ãã¬ãã¥ãŒè¡šç€ºã®äžéšåãéžæããŠã³ããŒããä»ã®ããã°ã©ã ã«ç»åãšããŠããŒã¹ãããããšãã§ããŸããéžæéšåã®ãã©ãã°ïŒããããããµããŒãããŠããŸããç°å¢èšå®é ç®ã§ã¯ãã³ããŒãã¡ã€ã«ã®ãã©ãŒãããïŒ pdf ã» png ã» jpg ã» tiff çã ïŒããæåè²ãèæ¯è²ãšéæ床ãéžã¹ãŸãã
âPreview selection combined with drag and drop can be used with Keynote. Using the default copy preferences, a text selection can be dropped on a Keynote slide; the background of the text will be transparent, so the slide background will show between the letters. This text can be resized since the default copy format is pdf.
ãâ ããã¬ãã¥ãŒã®éžæéšåã¯ãã©ãã°ïŒãããã㧠Keynote ãšçµã¿åãããŠå©çšããããšãã§ããŸããããã©ã«ãã®ã³ããŒèšå®ã䜿ããããã¹ãã®éžæéšåã Keynote ã®ã¹ã©ã€ãã«ããããã§ããŸã ïŒ ããã¹ãã®èæ¯ã¯éæã«ãªãã®ã§ãæåã®éã«ã¯ã¹ã©ã€ãã®èæ¯ãèŠããŸãããã®ããã¹ãã¯ããã©ã«ãã®ã³ããŒãã©ãŒãããã pdf ãªã®ã§ãªãµã€ãºã§ããŸãã
âThe Edit menu's "Select All" command can be used to select the entire pdf page for copying. However, in Multi-Page and Double-Multi-Page modes Select All only works if the document has 20 or fewer pages, since otherwise the selected pdf could be enormous and copying could bring the machine to a crawl.
ãâ ãã³ããŒãåãã®ã«ãç·šéã¡ãã¥ãŒã®ãå šãŠãéžæãã³ãã³ãã䜿ããš pdf ããŒãžå šäœãéžæã§ããŸããã§ãããè€æ°ããŒãžãããè€æ°èŠéãããŒãžãã¢ãŒãã§ã¯ã ãå šãŠãéžæãã¯ææžã20ããŒãžä»¥äžã®å Žåã«ã®ã¿æ©èœããŸãââããããŠãããªããšãéžæãã pdf ã巚倧ã«ãªãããããã³ããŒäœæ¥ããã·ã³ã®é床ãäœäžãããŠããŸãã®ã§ã
##Setting a Project Root FileïŒãããžã§ã¯ãã®ã«ãŒããã¡ã€ã«ãèšå®ããïŒ
âIt is common to split large input files into several smaller files controlled by a root file. For instance, the root file of a book project might have the form
ãâ ã倧ããªå ¥åãã¡ã€ã«ãå°ããããã€ãã«åå²ããŠãã«ãŒããã¡ã€ã«ã§ç®¡çããã®ã¯ãããè¡ãªãããããšã§ããããšãã°ãæžç±ã®ãããžã§ã¯ãã®ã«ãŒããã¡ã€ã«ã¯æ¬¡ã®ãããªåœ¢ã«ãªã£ãŠãããããããŸããââ
\documentclass[11pt]{book}
\includeonly{Chapter2/two}
\textwidth = 6.5 in
\textheight = 9 in
\begin{document}
\include{Chapter1/one}
\include{Chapter2/two}
\include{Chapter3/three}
\end{document}
âThis root file contains formatting commands for the entire project, but the subject matter is contained in files one.tex, two.tex, and three.tex. The second line above tells TeX to typeset chapter two only, speeding up typesetting while chapter two is being written. When the book is complete, this line can be commented out and the entire book can be typeset a final time.
ãâ ããã®ã«ãŒããã¡ã€ã«ã«ã¯ãããžã§ã¯ãå šäœã«å¯Ÿãããã©ãŒãããã»ã³ãã³ãã¯ãããŸããããã®å 容ã«ã€ããŠã¯ one.tex ã» two.tex ã» three.tex ãšããïŒã€ã®ãã¡ã€ã«ã«åããããŠããŸããäžèšã®ç¬¬ïŒè¡ç®ã¯ã第ïŒç« ã ããã¿ã€ãã»ãããããã TeX ã«æ瀺ããŠããŸãââ第ïŒç« ã®å·çäžã«ã¿ã€ãã»ããã«ãããæéãççž®ããããã§ããæ¬ãå®æããæã«ã¯ããã®è¡ã¯ã³ã¡ã³ãã¢ãŠãããŠãæ¬å šäœãæçµçã«ã¿ã€ãã»ããããããšãã§ããŸãã
âWhile chapter two is being written, it would be natural to open the file two.tex in TeXShop. But after changes are made to this input file, TeXShop should not typeset two.tex; instead it should typeset the root file. TeXShop can be told to do so in two ways. The first is to indicate the root file in one of the first twenty lines of each chapter file by writing
ãâ ã第ïŒç« ãæžããŠãããšãã«ããã¡ã€ã« two.tex ã TeXShop ã§éããšããã®ã¯ããèªç¶ãªããšã§ããããããã©ããã®å ¥åãã¡ã€ã«ã«å€æŽãæœããåŸã two.tex ãã¿ã€ãã»ãããã¹ãã§ã¯ãããŸãã ïŒ ä»£ããã«ã«ãŒããã¡ã€ã«ãã¿ã€ãã»ããããŸãããããããã TeXShop ã«æ瀺ã§ããæ¹æ³ãïŒã€ãããŸãã ïŒã€ç®ã¯ãåç« ããšã®ãã¡ã€ã«ã®åé 20è¡ä»¥å ã®ïŒè¡ã«æ¬¡ã®ããã«æžãããšã§ãã«ãŒããã¡ã€ã«ãæå®ããŸãââ
%!TEX root = ../Main.tex
âThe second is to use the menu command "Set Project Root..." This menu command presents a panel with a text box where the name of the root file can be entered.
ãâ ãïŒã€ç®ã¯ããããžã§ã¯ãã«ãŒãã®èšå®...ããšããã¡ãã¥ãŒã³ãã³ãã䜿ãæ¹æ³ã§ãããã®ã¡ãã¥ãŒã³ãã³ããæ瀺ããããã«ã«ã¯ããã¹ãããã¯ã¹ããããŸããããããã«ã«ãŒããã¡ã€ã«ã®ååãå ¥ããŸãã
âIf the root file is in the same folder as the input file, it is enough to give its name, including the ".tex" extension. For instance, if the root file is named Main, you can enter Main.tex in the first source line or the dialog window.
ãâ ãã«ãŒããã¡ã€ã«ãå ¥åãã¡ã€ã«ãšåããã©ã«ãå ã«ãããšãã¯ããã¡ã€ã«åã ãã§ååã§ãââæ¡åŒµåã.texããå«ããååã§ããããšãã°ãã«ãŒããã¡ã€ã«ã®ååã Main ãªãããœãŒã¹ã®ç¬¬ïŒè¡ç®ãŸãã¯ãã€ã¢ãã°ãŠã€ã³ããŠã«ã¯ Main.tex ãšæžãå ¥ããŸãã
âIf the root file is in a different directory, its name can be given relative to the location of the input file. In the above example, the various chapters are contained in subfolders within the folder containing the root file. In that case, you could enter ../Main.tex in the first source line or dialog window, showing the location of the root file relative to the chapter input file.
ãâ ãããã«ãŒããã¡ã€ã«ãç°ãªããã£ã¬ã¯ããªã«ãããªããå ¥åãã¡ã€ã«ã®äœçœ®ã«å¯Ÿããçžå¯Ÿãã¹åãä»ããããšãã§ããŸããäžèšã®äŸã§ã¯ãåã ã®ç« ã¯ã«ãŒããã¡ã€ã«ã®ãããã©ã«ãå ã®ãµããã©ã«ãã®äžã«å ¥ã£ãŠããŸãããã®ãããªå ŽåããœãŒã¹ã®ç¬¬ïŒè¡ç®ãŸãã¯ãã€ã¢ãã°ãŠã€ã³ããŠã« ../Main.tex ãšå ¥åããã°ãç« ããšã®å ¥åãã¡ã€ã«ã«å¯Ÿããçžå¯Ÿãã¹ã§ã«ãŒããã¡ã€ã«ã®å Žæã瀺ãããšãã§ããŸãã
âFinally, the name of the root can be given with an absolute name, as in /Users/me/Main.tex.
ãâ ãæåŸã«ãã«ãŒãã®ååã¯ã絶察ãã¹åã§ãæå®ã§ããŸãââ /Users/me/Main.tex ã®ããã«ã
âIf the entire TeX source is contained in a single file, it is not necessary to set the root project name.
ãâ ãTeX ãœãŒã¹å šäœãåäžã®ãã¡ã€ã«ã«ãªã£ãŠããå Žåã«ã¯ããããžã§ã¯ãã«ãŒããèšå®ããå¿ èŠã¯ãããŸããã
âIf the "Set Project Root.." command is used to indicate a root file, TeXShop remembers the name of the root file by writing the information to a file with the same name as the input file and the extension ".texshop". For instance, if the input for chapter two is in two.tex, TeXShop writes the name of the root in two.texshop in the same directory as two.tex. If the file two.texshop is later thrown away, TeXShop will revert to typesetting two.tex rather than Main.tex. No extra ".texshop" file is required if the root file is specified in the first line of the source file.
ãâ ãããããžã§ã¯ãã«ãŒãã®èšå®...ãã³ãã³ãã䜿ã£ãŠã«ãŒããã¡ã€ã«ãæå®ãããšã TeXShop ã¯ãå ¥åãã¡ã€ã«ãšååãåãã§æ¡åŒµåãã.texshopããšãªã£ãŠãããã¡ã€ã«ã«æ å ±ãæžã蟌ãããšã§ãã«ãŒããã¡ã€ã«åãèšæ¶ããŸããããšãã°ã第ïŒç« ã®å ¥åãã¡ã€ã«ã two.tex ã®å Žåã TeXShop ã¯ã two.tex ãšåããã£ã¬ã¯ããªã«ãã two.texshop ã«ã«ãŒããã¡ã€ã«åãæžã蟌ã¿ãŸããåŸã§ two.texshop ãæšãŠãŠããŸããšã TeXShop 㯠Main.tex ã§ã¯ãªã two.tex ãã¿ã€ãã»ããããããã«ãªã£ãŠããŸããŸãããœãŒã¹ãã¡ã€ã«ã®ç¬¬ïŒè¡ç®ã§ã«ãŒããã¡ã€ã«ãç¹å®ããã°ãäœåãªã.texshopããã¡ã€ã«ã¯äžèŠã«ãªããŸãã
âIf a root file is active, typing command-1 when a given source window is at the front will activate the corresponding preview window. Typing command-1 again will activate the source window. Since a preview window may correspond to several source windows, command-1 will activate the source window which previously activated the preview window, or the root source if no previous command-1 was entered.
ãâ ãã«ãŒããã¡ã€ã«ãæå¹ãªããæå®ã®ãœãŒã¹ãŠã€ã³ããŠãåé¢ã«åºãŠããç¶æ 㧠commandïŒ1 ãæŒããšã察å¿ãããã¬ãã¥ãŒãŠã€ã³ããŠãã¢ã¯ãã£ãã«ãªããŸããããäžåºŠ commandïŒ1 ãæŒãã°ããœãŒã¹ãŠã€ã³ããŠãã¢ã¯ãã£ãã«ãªããŸãããã¬ãã¥ãŒãŠã€ã³ããŠã¯è€æ°ã®ãœãŒã¹ãŠã€ã³ããŠã«å¯Ÿå¿ããŠãããããããªãã®ã§ã commandïŒ1 ã§ã¢ã¯ãã£ãã«ãªãã®ã¯ãçŽåã«ãã¬ãã¥ãŒãŠã€ã³ããŠãã¢ã¯ãã£ãã«ãããœãŒã¹ãŠã€ã³ããŠã§ãââãããŸã§ã«äžåºŠã commandïŒ1 ãæŒãããŠããªãã£ãå Žåã¯ãã«ãŒããœãŒã¹ãã¢ã¯ãã£ãã«ããŸãã
##PdfsyncïŒ Pdfsync ïŒ
âSynchronization is an important feature of Textures, a commercial implementation of TeX for Mac Classic by Blue Sky TeX Systems. Using this feature, an author can click in the preview window and immediately be taken to the corresponding spot in the source window, or click in the source window and be taken to the preview window. A native version of Textures for MacOS X is promised but has not yet been released. The implementation of synchronization in Textures is widely admired for its ability to precisely locate the corresponding spot in the source code.
ãâ ãã·ã³ã¯ããã€ãŒãŒã·ã§ã³ã¯ Textures ã®éèŠãªæ©èœã§ãââ Textures 㯠Classic Mac çšã®åçš TeX ãœãã㧠Blue Sky TeX Systems 瀟ã®è£œåã§ãããã®æ©èœãããã°ãå·çè ã¯ãã¬ãã¥ãŒãŠã€ã³ããŠãã¯ãªãã¯ããããšã§ããœãŒã¹ãŠã€ã³ããŠå ã®è©²åœéšåã«ããã«ç§»åã§ãããŸããœãŒã¹ãŠã€ã³ããŠãã¯ãªãã¯ããŠãã¬ãã¥ãŒãŠã€ã³ããŠãžç§»åã§ããŸãã Mac OS X çšãã€ãã£ãã»ããŒãžã§ã³ã® Textures ãçŽæãããŠã¯ããŸãããä»ã¯ãŸã ãªãªãŒã¹ãããŠããŸããã Textures ã«ãããã·ã³ã¯ããã€ãŒãŒã·ã§ã³ã®å®è£ ã¯ããœãŒã¹ã³ãŒãå ã®å¯Ÿå¿ããç®æãæ£ç¢ºã«çªãæ¢ãããã®èœåã«ãã£ãŠåºãè³è³ãããŠããŸãã
âSince this implementation, a number of TeX systems have provided a roughly similar feature using an additional style file which causes TeX to write extra information to the dvi file. None of these approximations (including the TeXShop methods to be described next) is as accurate as the Textures method.
ãâ ããã®å®è£ ããåŸãå€ãã® TeX ã·ã¹ãã ã§ã䌌ããããªæ©èœãæäŸãããŠããŸããããã㯠TeX ã dvi ãã¡ã€ã«ã«è£è¶³æ å ±ãæžã蟌ãããã«ããè¿œå ã®ã¹ã¿ã€ã«ãã¡ã€ã«ã䜿ã£ãŠããŸãããããã®äŒŒãæ¹åŒã®ã©ãã²ãšã€ãšããŠïŒæ¬¡ã«è¿°ã¹ã TeXShop ã®æ¹åŒãå«ããŠïŒTextures ã®ãã®ã»ã©ç²Ÿç¢ºã§ã¯ãããŸããã
âTeXShop can provide synchronization in two ways. The default method uses a new ability in Mac OS X 10.4 to search for strings in pdf files. No special style files need be included to use this method. Click on a word or phrase in the source window while holding down the Apple control key; the preview window will scroll to the appropriate spot and the corresponding typeset phrase will be circled in red. Similarly, click on a word or phrase in the preview window. The appropriate source file will open (if necessary) and scroll to the corresponding source phrase, which will be highlighted in yellow.
ãâ ãTeXShop ã«ãããŠãã·ã³ã¯ããã€ãŒãŒã·ã§ã³ãè¡ãªãã«ã¯ïŒçš®é¡ã®æ¹æ³ããããŸããããã©ã«ãã®æ¹æ³ã¯ãMac OS X 10.4 ã®æ°æ©èœã§ãã PDF ãã¡ã€ã«å ã®æååæ€çŽ¢æ©èœãå©çšããŸãããã®æ¹æ³ãå©çšããããã«ç¹å¥ãªã¹ã¿ã€ã«ãã¡ã€ã«ãèªã¿èŸŒãå¿ èŠã¯ãããŸããããœãŒã¹ãŠã€ã³ããŠå ã®åèªãèªå¥ããã³ãã³ãããŒãæŒããªããã¯ãªãã¯ããŠã¿ãŠãã ããââãã¬ãã¥ãŒãŠã€ã³ããŠãé©åãªäœçœ®ãŸã§ã¹ã¯ããŒã«ããŠãããçµçãããåœè©²æååãèµ€ã§å²ã£ãŠè¡šç€ºããŸããåæ§ã«ããã¬ãã¥ãŒãŠã€ã³ããŠå ã§åèªãèªå¥ãâïŒã¯ãªãã¯ããŠã¿ãŠãã ããã該åœãããœãŒã¹ãã¡ã€ã«ãïŒå¿ èŠã§ããã°ïŒéããã察å¿ããæååã®äœçœ®ãŸã§ã¹ã¯ããŒã«ããé»è²ã§ãã€ã©ã€ã衚瀺ããŸãã
âThis method is independent of the engine used to typeset the file, so it will work with pdftex and pdflatex, with TeX + Ghostscript and LaTeX + Ghostscript, with XeTeX, and with other engines.
ãâ ããã®æ¹æ³ã¯ãã¡ã€ã«ãã¿ã€ãã»ããããããã°ã©ã ã«äŸåããŸããã®ã§ãpdftex/pdflatexãTeX/LaTeX + GhostscriptãXeTeX ãä»ã®ã¿ã€ãã»ããããã°ã©ã ã§ãå©çšã§ããŸãã
âWhen using this facility, it helps to know the underlying mechanism. Suppose you click on a spot in the source file. TeXShop obtains the string 20 characters wide centered about the click, and searches for the corresponding string in the pdf file. If it finds this string exactly once, it circles the pdf string in red and declares success. But often, source strings contain formatting commands and do not match output strings; this is certainly true when typesetting mathematics. So if the search fails, TeXShop backs up 5 characters, obtains a new string 20 characters wide, and tries again. It repeats this operation 20 times if necessary, and if none of the tries succeeds it repeats the operation 20 more times looking forward past the original string rather than backward. If none of these search operations succeeds, TeXShop gives up.
ãâ ããã®æ©èœãå©çšããäžã§ãåºæ¬çãªä»çµã¿ãç¥ã£ãŠãããšåœ¹ã«ç«ã¡ãŸãã ãœãŒã¹ãã¡ã€ã«ã®ããç®æãã¯ãªãã¯ãããšããŸãããã TeXShop ã¯ã¯ãªãã¯ã®äœçœ®ãäžå¿ã«ããŠ20ååã®æååãååŸããpdf ãã¡ã€ã«å ã®å¯Ÿå¿ããæååãæ€çŽ¢ããŸãã ãããã®æååãæ£ç¢ºã«ïŒåã ãèŠã€ããããã§ããã°ãpdf å ã®æååãèµ€ã§äžžãå²ãããšã§ããŸããã£ãããšã瀺ããŸãã ãããããããããšã§ããããœãŒã¹ã®æååã«ã¯çµççšã®ã³ãã³ããå«ãŸããŠãããåºåçµæã®æååãšã¯äžèŽããŸããââããã¯æ°åŠã®çµçã§ã¯ãŸããã£ãŠãã®éãã§ãã ãªã®ã§æ€çŽ¢ãããŸããããªãããã§ããã°ãTeXShop ã¯ïŒæååã®ããã¯ã¢ãããåããæ°ãã20ååã®æååãååŸããåè©Šè¡ããŸãã ãã®åäœãå¿ èŠã«å¿ããŠ20åããè¿ããŸãããäžåºŠãšããŠããŸããããªãããã§ããã°ãããã«ãŸã20åãä»åºŠã¯éã«å ã ã®æååãããåã«é¡ã£ãŠããã®åäœãããè¿ããŸãã ããããæ€çŽ¢ããŸãã£ããåãå¥ããªãããã ãšãTeXShop ã¯ãæäžãã§ãã
âObviously, then, it is best to click on sentences rather than formulas. Paragraphs with heavy markup may not synchronize well. Experiments show, however, that searches usually succeed and clicking can be done without really thinking about selecting an appropriate spot.
ãâ ããšããããšã¯ãæããã«ãæ°åŒãããæç« ãã¯ãªãã¯ããæ¹ãããããã§ãã ã³ãã³ãã«ããŒã¯ã¢ããããŠãã段èœã¯ãããŸãã·ã³ã¯ããã€ãºã§ããªããããããŸããã ãšã¯ãããããããè©ŠããŠã¿ããšããã§ã¯ãæ€çŽ¢ã¯ãããŠãããŸããããŸãããã¯ãªãã¯ããã®ã«ãµããããäœçœ®ãéžãŒããšããŠããŸãèã蟌ãã ãããªããŠã倧äžå€«ã§ãã
âSynchronizing from the preview window to the source window works the same way, but there is an additional complication. Projects may contain several source files, inserted using the \include or \input methods. TeXShop handles this complication by assuming that all \include and \input statements occur in the root file, using one of the commands \include{this file}, \input{this file}, or \import{this file}. In the initial implementation, it makes a list of the first sixty such files and searches all of them, declaring success if a string occurs exactly once in exactly one of the files. If the string is found in a file which is not yet open, TeXShop opens the file. Then it scrolls to the appropriate spot and highlights the resulting phrase in yellow. (In future implementations, the number sixty may be raised; write if you need more files searched.)
ãâ ããã¬ãã¥ãŒãŠã€ã³ããŠãããœãŒã¹ãŠã€ã³ããŠãžã®ã·ã³ã¯ããã€ãŒãŒã·ã§ã³ãåãããã«ããŠæ©èœããŸãããããã¡ãã£ãšè€éã§ãã ãããžã§ã¯ãã«ã¯ã\include ã \input ãšãã£ãæ¹æ³ã§æ¿å ¥ããããããã€ãã®ãœãŒã«ãã¡ã€ã«ãå«ãŸããŠãããããããŸããã TeXShop ã§ã¯ã\include ã \input ãªã©ã®åœä»€æã¯ãã¹ãŠã«ãŒããã¡ã€ã«ã«æžã蟌ãŸããŠããŠã\include{this file}ã\input{this file} ãªãã㯠\import{this file} ã®ãã¡ã®ïŒã€ãçšããŠãããã®ãšæ³å®ããããšã§ããã®è€éãªç¶æ ãåŠçããŠããŸãã æåã®å®è£ ã«ãããŠã¯ãå é ãã60åã®ãããããã¡ã€ã«ããªã¹ãåããããããã¹ãŠã«å¯ŸããŠæ€çŽ¢ãããããã¡ã€ã«ã®ãã¡ïŒã€ã®ã¿ã«ãããŠæååãæ£ç¢ºã«ïŒåã ãçŸãããã®ã§ããã°ãããŸããã£ãããšã衚瀺ããŸãã åœè©²ã®æååããŸã éãããŠããªããã¡ã€ã«ã®äžã§èŠã€ããã°ãTeXShop ããã®ãã¡ã€ã«ãéããŸãã ãããŠé©åãªäœçœ®ãŸã§ã¹ã¯ããŒã«ãããã®èªå¥ãé»è²ã§ãã€ã©ã€ã衚瀺ããŸãã ïŒå°æ¥çãªå®è£ ã«ãããŠã60ãšããæ°ã¯åŒãäžãããããããããŸããââãã£ãšããããã®ãã¡ã€ã«ãžã®æ€çŽ¢ãå¿ èŠã§ããã°ãããæžãéã£ãŠãã ãããïŒ
âConTeXt uses a different method of inputting files, so a search for \include and \input statements will not find related ConTeXt files. There is a manual method to indicate files to be searched for synchronization; this method works with any typesetting method and is required in ConTeXt. At the top of the root file, list files to be searched via
ãâ ãConTeXt ã§ã¯ããã¡ã€ã«ãæ¿å ¥ããã®ã«ç°ãªãæ¹æ³ãçšããã®ã§ã\include ã \input ãšãã£ãèšè¿°ã«å¯ŸããŠæ€çŽ¢ããããŠãé¢é£ãã ConTeXt ã®ãã¡ã€ã«ãèŠã€ããããšã¯ã§ããŸããã ããã§ã·ã³ã¯ããã€ãŒãŒã·ã§ã³çšã«æ€çŽ¢ãããã¡ã€ã«ãæåã§æ瀺ããæ¹æ³ããããŸãââãã®æ¹æ³ã¯ã©ã®ã¿ã€ãã»ããæ¹åŒã§ãæ©èœããŸãããConTeXt ã§ã¯å¿ é ã§ãã ã«ãŒããã¡ã€ã«ã®åé ã«ãããŠãæ€çŽ¢ãããã¡ã€ã«ã次ã®ãããªæžåŒã§èšèŒããŸãââ
%!TEX projectfile =
âHere are examples:
ãâ ã以äžã«äŸãæããŸãââ
%!TEX projectfile = /Users/koch/MyDoc/chapter1.tex
%!TEX projectfile = chapter2.tex
%!TEX projectfile = ../chapter3.tex
âPrevious versions of TeXShop used an alternate synchronization method, invented in 2003 by JérÃŽme Laurens and Piero D'Ancona. They wrote a style file for pdflatex; their package, pdfsync.sty, causes pdftex to write an extra file during typesetting with information needed to correlate the output pdf and input source files. Laurens' and D'Ancona's work depends on internal pdftex commands which output the x and y coordinates of certain typesetting operations, so it only works with pdftex, pdflatex, and context.
ãâ ã以åã®ããŒãžã§ã³ã® TeXShop ã§ã¯ãå¥æ¹åŒã®ã·ã³ã¯ããã€ãŒãŒã·ã§ã³ãçšããŠããŸããââããã¯2003幎㫠JérÃŽme Laurens ãããš Piero D'Ancona ããã«ãã£ãŠèæ¡ããããã®ã§ãã äºäººã¯ pdflatex çšã«ã¹ã¿ã€ã«ãã¡ã€ã«ãæžããŸããââ圌ãã®ããã±ãŒãžïŒpdfsync.styïŒã¯ãåºåçµæã® PDF ãšãœãŒã¹ãã¡ã€ã«ãšãçžäºã«é¢é£ã¥ããã®ã«å¿ èŠãªæ å ±ããã¿ã€ãã»ããäžã« pdftex ãç¹å¥ãªãã¡ã€ã«ã«æžãåºãããã«ãããã®ã§ãã Laurens ãããš D'Ancona ããã®åãçµã¿ã¯ãç¹å®ã®ã¿ã€ãã»ããæäœã§X座æšãšY座æšãåºåãã pdftex ã®å éšã³ãã³ãã«äŸåããŠãããpdftex ãªãã㯠pdflatexãããã㯠ConTeXt ã«ãããŠã®ã¿åäœããŸãã
âTeXShop can still use this method. A preference is available in the Misc tab to select the synchronization method; "pdfsync" is the original method and "pdfsearch" is the new method. It is also possible to choose to use "pdfsearch" but fall back on "pdfsync" when "pdfsearch" fails to find a match.
ãâ ãTeXShop ã§ã¯ä»ã§ããŸã ãã®æ¹æ³ãå©çšã§ããŸãã ãç°å¢èšå®...ãã®ã詳现ãã¿ãã§ãã·ã³ã¯ããã€ãŒãŒã·ã§ã³æ¹åŒïŒSync æ¹åŒïŒãéžæã§ããŸãââãpdfsync.styããå ã ã®æ¹æ³ã§ãæ°ããæ¹æ³ã¯ãPDFãæ€çŽ¢ãã§ãã ãPDFãæ€çŽ¢ããéžæãã€ã€ããããã倱æãããšãã«ã¯ãpdfsync.styãã«é Œãããšããã®ãå¯èœã§ãã
âThe "pdfsync" method requires that you install the latest version of pdfsync.sty and related files. Read "How do I configure TeXShop?: Did You Install TeXShop Correctly" to make certain that you installed these files.
ãâ ããpdfsync.styãæ¹åŒãå©çšããã«ã¯ãpdfsync.sty ã®ææ°ããŒãžã§ã³ãšé¢é£ãã¡ã€ã«ãã€ã³ã¹ããŒã«ããå¿ èŠããããŸãã ãããã®ãã¡ã€ã«ãã€ã³ã¹ããŒã«ããã確èªããã«ã¯ããã«ãã®ãTeXShop ã®èšå®ã¯ã©ãããã°ãããïŒãã®äžã«ããããã¡ããšã€ã³ã¹ããŒã«ããŸãããïŒãããèªã¿ãã ããã
âTo use pdfsync with LaTeX, add the following line to the preamble of your tex source code before the \begin{document} line:
ãâ ãLaTeX 㧠pdfsync ã䜿ãã«ã¯ã次ã®ïŒè¡ã TeX ãœãŒã¹ã³ãŒãã®ããªã¢ã³ãã«ââ \begin{document} è¡ãããåã®éšåââã«ä»ãå ããŸãïŒ
\usepackage{pdfsync}
âThe package will be ignored if you typeset with tex + ghostscript, but if you typeset with pdflatex, an extra file will be created with extension .pdfsync. For example, if the source file is named main.tex, the extra file will be named main.pdfsync. This extra file contains the information needed to correlate spots in the pdf file with spots in the source file. Most files should typeset without errors using pdfsync, but in a small number of cases, this package might introduce extra errors. Such dangerous code can be enclosed between a pair of commands \pdfsyncstop and \pdfsyncstart. For added accuracy, extra synchronization points can be added using the command \pdfsync. The pdfsync style files sometimes changes line breaks in a document, so the standard recommendation is to typeset using it and then typeset a final time without it.
ãâ ããã®ããã±ãŒãžã¯ãTeXïŒGhostscriptãã§ã¿ã€ãã»ããããå Žåã¯ç¡èŠãããŸããã pdflatex ã§ã¿ã€ãã»ãããè¡ãªããšã.pdfsync ãšããæ¡åŒµåãæã€è¿œå ãã¡ã€ã«ãçæããŸããããšãã°ããœãŒã¹ãã¡ã€ã«ã®ååã main.tex ã ãšãããšãè¿œå ãã¡ã€ã«ã®åå㯠main.pdfsync ãšãªããŸãããã®è¿œå ããããã¡ã€ã«ã«ã¯ã pdf ã«ãããäœçœ®ãšãœãŒã¹ãã¡ã€ã«ã«ãããäœçœ®ãšãé¢é£ã¥ããã®ã«å¿ èŠãªæ å ±ãæžã蟌ãŸããŠããŸãã pdfsync ãçšããã«ããŠããã»ãšãã©ã®ãã¡ã€ã«ã§ã¯ãšã©ãŒãªãã§ã¿ã€ãã»ãããããã¯ãã§ãããããå°æ°ã®ã±ãŒã¹ã§ã¯ããã®ããã±ãŒãžãäœèšãªãšã©ãŒããããããããããŸãããããããå±ããã³ãŒãã¯ããã¢ã«ãªã£ãŠããã³ãã³ãââ \pdfsyncstop ãš \pdfsyncstart ãšã®éã«æã¿èŸŒãã§ãããŸããããã«ç²ŸåºŠãé«ããããã«ãã³ãã³ã \pdfsync ã䜿ã£ãŠç¹å¥ã«ã·ã³ã¯ãã»ã¹ããããå¢ããããšãã§ããŸããpdfsync ã¹ã¿ã€ã«ãã¡ã€ã«ã¯æããããã¥ã¡ã³ãå ã®æ¹è¡äœçœ®ãå€æŽããŠããŸãããšãããã®ã§ãpdfsync ã䜿ã£ãŠã¿ã€ãã»ããããŠããŠãã決å®çš¿ã§ã¯äœ¿ããã«ã¿ã€ãã»ããããããšãã²ãšãŸãã¯ãå§ãããŸãã
âOnce a file has been typeset with pdfsync, synchronization works exactly as with "pdfsearch" described above. Note that if you include pdfsync.sty but choose "pdfsearch" as the TeXShop synchronization preference, then the .pdfsync file will just be ignored.
ãâ ãã²ãšãã³ pdfsync ãçšããŠãã¡ã€ã«ãã¿ã€ãã»ããããã°ãã¡ããã©äžè¿°ã®ãPDFãæ€çŽ¢ããšåãããã«ã·ã³ã¯ããã€ãŒãŒã·ã§ã³ãæ©èœããŸãã 泚æïŒãã pdfsync.sty ãèªã¿èŸŒãã§ããŠããTeXShop ã®ã·ã³ã¯ããã€ãŒãŒã·ã§ã³ã®èšå®ããPDFãæ€çŽ¢ãã«ãªã£ãŠããã°ãæ¡åŒµåãã.pdfsyncãã®ãã¡ã€ã«ã¯ããã«ç¡èŠãããŸãã
âWarning: if a root document uses \include to add other source files but these files are not linked back to the root document with a "%!TEX root" line or a root file, then command-click will move from the preview window to an included source, but not from the included source back to the preview. It is easy to remedy this by adding a "%!TEX root" comment to the top of each source file.
ãâ ãèŠåïŒããã«ãŒããã¡ã€ã«ã \include ã䜿ã£ãŠä»ã®ãœãŒã¹ãã¡ã€ã«ãè¿œå ããŠã¯ãããã®ã®ããããã®ãœãŒã¹ãã¡ã€ã«ã®æ¹ããã«ãŒããã¡ã€ã«ã«å¯ŸããŠã%!TEX rootããšããïŒè¡ãªããã¯ã«ãŒããã¡ã€ã«èšå®ã«ããçžäºåç §çã«ãªã³ã¯ãããŠããªãå Žåãã³ãã³ãïŒã¯ãªãã¯ããããšã§ãã¬ãã¥ãŒãŠã€ã³ããŠãããœãŒã¹ãŠã€ã³ããŠãžã¯ç§»åã§ããŸããããœãŒã¹ãããã¬ãã¥ãŒãžã¯æ»ããŸããã ããã¯ãããããã®ãœãŒã¹ãã¡ã€ã«ã®åé ã«ã%!TEX rootãã³ã¡ã³ããæžãå ããããšã§å®¹æã«æ¯æ£ã§ããŸãã
âAs explained above, pdfsync works with files read by \include{myfile}. It also works with the input command provided the syntax used is \input{myfile}; the alternate syntax \input myfile will not work.
ãâ ãäžè¿°ããããã«ã pdfsync 㯠\include{myfile} ã§èªã¿èŸŒãŸãããã¡ã€ã«ã«ã¯æ©èœããŸãã\input{myfile} ãšããæ§æã䜿ãããŠããã° input ã³ãã³ãã«å¯ŸããŠãæ©èœããŸã ïŒ ã»ãã®æ§æã\input myfileãã§ã¯æ©èœããŸããã
âThe file pdfsync.sty is used for LaTeX; similar files pdfsync.tex and pdfsync4context.tex exist for tex and context synchronization.
ãâ ãpdfsync.sty ãšãããã¡ã€ã«ã¯ã LaTeX ã§å©çšãããŸã ïŒ åæ§ã®ãã¡ã€ã« pdfsync.tex ãš pdfsync4context.tex ã¯ãããã TeX ãš ConTeXt ã§ã®ã·ã³ã¯ããã€ãŒãŒã·ã§ã³çšãšãªã£ãŠããŸãã
âSynchronization works by writing data to mysource.pdfsync corresponding to certain synchronization spots in the preview window. Roughly speaking, each data entry contains
ãâ ãã·ã³ã¯ããã€ãŒãŒã·ã§ã³ã¯ã mysource.pdfsync ã«ããŒã¿ãæžã蟌ã¿ããã¬ãã¥ãŒãŠã€ã³ããŠå ã®ç¹å®ã®ã·ã³ã¯ãã»ã¹ãããã«ç §å¿ãããããšã§æ©èœããŠããŸãã倧ãŸãã«èšãã°ãããããã®ããŒã¿ã»ãšã³ããªã«ã¯ä»¥äžã®ãããªãã®ãå«ãŸããŸãââ
-
âthe page number of the preview document where the point occurs
-
ãâ ããã€ã³ãã®çœ®ããããã¬ãã¥ãŒææžã®ããŒãžçªå·
-
âthe location of the point on this page
-
ãâ ããã®ããŒãžã«ããããã€ã³ãã®äœçœ®
-
âthe name of the source file producing this particular output
-
ãâ ããã®ç¹å®ã®åºåãçæãããœãŒã¹ãã¡ã€ã«ã®åå
-
âthe line number in this source file for this particular output
-
ãâ ããã®ãœãŒã¹ãã¡ã€ã«å ã®è©²åœããè¡çªå·
âThere is a way to get TeXShop to display these synchronization points. The preview window toolbar has a checkbox item called SyncMarks. By default, this item is not shown; use Customize Toolbar in the Window menu to select it. When the checkbox is checked, synchronization points are shown.
ãâ ãããããã·ã³ã¯ããã€ãŒãŒã·ã§ã³ã»ãã€ã³ãã TeXShop ã§è¡šç€ºãããæ¹æ³ããããŸãããã¬ãã¥ãŒãŠã€ã³ããŠã®ããŒã«ããŒã«ã¯ãSyncããšãããã§ãã¯ããã¯ã¹ããããŸããããã©ã«ãã§ã¯èŠããŠããŸãã ïŒ ããŠã€ã³ããŠãã¡ãã¥ãŒã«ãããããŒã«ããŒãã«ã¹ã¿ãã€ãº...ãã䜿ã£ãŠéžã³åã£ãŠãã ããããã§ãã¯ããã¯ã¹ããã§ãã¯ãããšãã·ã³ã¯ããã€ãŒãŒã·ã§ã³ã»ãã€ã³ããèŠããããã«ãªããŸãã
âWhen the Preview window first appears, this item is not checked. A hidden preference item can change this:
ãâ ããã¬ãã¥ãŒãŠã€ã³ããŠã衚瀺ãããåœåã¯ããã®é ç®ã«ã¯ãã§ãã¯ãå ¥ã£ãŠããŸãããé ããç°å¢èšå®é ç®ã§ãããå€æŽã§ããŸãïŒ
defaults write TeXShop ShowSyncMarks YES