yatex
changeset 54:2d45e43fb35f
Full support of English documents
author | yuuji |
---|---|
date | Mon, 24 Apr 1995 14:42:53 +0000 |
parents | 5f4b18da14b3 |
children | 790d0be0d0f8 |
files | docs/qanda.eng docs/yatexadd.doc docs/yatexe.tex docs/yatexgen.doc docs/yatexj.tex docs/yatexref.eng help/YATEXHLP.eng help/YATEXHLP.jp yahtml.el yatex.el yatex.new yatexhks.el yatexlib.el |
diffstat | 13 files changed, 1193 insertions(+), 508 deletions(-) [+] |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/docs/qanda.eng Mon Apr 24 14:42:53 1995 +0000 1.3 @@ -0,0 +1,302 @@ 1.4 +%% 1.5 +%% Q and A on YaTeX 1.6 +%% 1.7 +%% C-u C-x $ shows only questions. C-x $ displays the questions. 1.8 +%% 1.9 + 1.10 +[Installation] 1.11 +*Installing the manual 1.12 + Copy yatexe to the info directory where your Emacs is installed, and 1.13 + add the next line to the dir file of the same directory. 1.14 + 1.15 + * YaTeX: (yatexj). Yet Another tex-mode for Emacs. (Japanese). 1.16 + 1.17 + (After that, M-x info [RET] m yatex [RET] will give you Wild Bird's 1.18 + manual. Hitting ? will show how to use info) 1.19 + 1.20 +*I ain't got the privilege to write in the Info directory... 1.21 + 1.22 + Get yourself made root. If you can't, have them install mule2 and 1.23 + add 1.24 + 1.25 + (setq Info-default-directory-list 1.26 + (cons "YOUR INFO DIRECTORY" 1.27 + Info-default-directory-list)) 1.28 + 1.29 + to your ~/.emacs. Now your personal files will be added to the menu 1.30 + when you invoke info. mule1 will not release memories, so processes 1.31 + will pile up and be heavier on the system compared to mule2. Nemacs 1.32 + has already become obsolete by the developers, so no further comments 1.33 + for usage of Nemacs. Get yourself mule2 with flying colors :-) 1.34 + 1.35 +*Emacs can't find the help file. 1.36 + 1.37 + The help file is set to be placed in $EMACS/etc/ for Nemacs, Mule1 1.38 + and $EMACS/site-lisp/ for Mule2. If you don't have the privilege to 1.39 + put them in a public location, copy it to your home directory and 1.40 + set YaTeX-help-file to that file name. 1.41 + 1.42 +*I can't read info on Nemacs 1.43 + 1.44 + The info file was formatted on Mule, so it can't be read correctly on 1.45 + Nemacs (or Demacs based on Nemacs) because the internal Japanese 1.46 + processing is different. Read it on Mule. Use the Emacs-Lisp 1.47 + package in texinfo-3.1.tar.gz to format the Texinfo file. 1.48 + 1.49 + 1.50 +[Operations] 1.51 +*I accidentally learned in a wrong LaTeX command. 1.52 + 1.53 + There should be a line with the wrong command in the .yatexrc file 1.54 + in you home or current directory. Erase that line, do M-x 1.55 + eval-current-buffer and save the results with C-x C-s. 1.56 + 1.57 +*I can't comment out the region. 1.58 + 1.59 + Probably the point is on a line withe \begin{} or \end{}. Go up or 1.60 + down a line and do C-c >. 1.61 + 1.62 +*I was asked for a parent file when typesetting, and answered the wrong file. 1.63 + 1.64 + Re-read the child file with C-x C-v RET or re-type the parent file 1.65 + with C-u C-c ^. 1.66 + 1.67 +*The typeset buffer is not shown when I get a typeset buffer on Demacs. 1.68 + 1.69 + This happens on Demacs 1.2.0, when the child process returns an 1.70 + error level of 1 or more. If you are calling jlatex from a batch 1.71 + file, call a dummy command that always returns errorlevel 0 at the 1.72 + end. 1.73 + 1.74 +*How can I enter "\underline{\makebox[4em][l]{x y}{\tt z}}" more easily? 1.75 + 1.76 + Recursive completion can be used for inputting arguments in the 1.77 + mini-buffer of a section type completion. Following is an example 1.78 + showing the command in question. 1.79 + 1.80 + PROMPT KEYs ENTERED 1.81 + C-c s und SPC RET 1.82 + \underline{???}: C-c s makeb SPC RET 1.83 + Width: 4em RET 1.84 + makebox position (`lr'): - l RET 1.85 + \makebox{???}: x y RET 1.86 + \underline{???}: \makebox[4em][l]{x y} C-c l tt RET 1.87 + \underline{???}: \makebox[4em][l]{x y}{\tt } z RET 1.88 + 1.89 +*How can I kill \footnote{} from \footnote{HOGE} 1.90 + 1.91 + Put the point to \footnote and do C-c k. This will kill the 1.92 + \footnote{}. If you want to kill the whole thing including HOGE, do 1.93 + C-u C-c k. 1.94 + 1.95 +*I want to make HONYARA into a footnote. 1.96 + 1.97 + Mark HONYARA and do C-c S footnote RET. (S in uppercase) 1.98 + 1.99 +*I want to make the verbatim environment I have now into verbatim*. 1.100 + 1.101 + Do C-c c on the line with \begin{verbatim} or \end{verbatim}. 1.102 + 1.103 +*I want to enclose a region with \verb. 1.104 + 1.105 + \verb isn't a maketitle-type, so there aren't any quick commands. 1.106 + But you can use C-c $ to do the same thing. 1.107 + 1.108 + WHAT YOU NEED to make \verb 1.109 + \verbWHAT YOU NEED to make \verb (insert \verb) 1.110 + ^(C-@) (mark W) 1.111 + \verbWHAT YOU NEED to make \verb 1.112 + ^C-c $ (move point to end enclose 1.113 + with $) 1.114 + \verb$WHAT YOU NEED$ to make \verb (done!) 1.115 + 1.116 +*I want to have commands defined on a upper level file to be read in 1.117 + when doing a typeset-region on a child file. 1.118 + 1.119 + When you are editing child files broken into sections and some 1.120 + macros to be used are defined in upper level files, you'll need them 1.121 + to do typeset-region. The macros needed will be copied to the 1.122 + temporary file if you add %#REQUIRE to the end of the macro's 1.123 + definition. 1.124 + 1.125 + Say you had a grand-child file 1.126 + +-- main.tex --+ +---- sub.tex ----+ +-- subsub.tex --+ 1.127 + | : | |%#jlatex main | |%#jlatex main | 1.128 + |\include{sub} | |\include{macros} | |..... | 1.129 + | : |<-| : |<-|%#BEGIN | 1.130 + | : | | : | |TEXT YOU WANT | 1.131 + | : | +-----------------+ |TYPESET IS | 1.132 + +--------------+ ^ |HERE | 1.133 + +-- macros.tex ---+ |%#END | 1.134 + |\def\foo{bar} | |: | 1.135 + |\def\hoge{hero} | +----------------+ 1.136 + +-----------------+ 1.137 + 1.138 + In this case you change the \include{macros} line in sub.tex to 1.139 + 1.140 + \include{macros} %#REQUIRE 1.141 + 1.142 + and add to subsub.tex 1.143 + 1.144 + %#REQUIRE \include{macros} 1.145 + 1.146 + If %#REQUIRE is at the top of the line, the following will be copied 1.147 + to the temporary file. So, macros.tex will be included only once 1.148 + whether you are typesetting all the files, or doing a typeset-region 1.149 + on sub.tex or subsub.tex. 1.150 + 1.151 +*I want to reuse ARGUMENTS I used in the last \foo{ARGUMENTS} 1.152 + 1.153 + Use the gmhist package. YaTeX works fine with gmhist. When you are 1.154 + asked \foo{???}: in the mini-buffer, hitting M-p (ESC p) will get 1.155 + you a history of what you have inputted in reverse. M-n will go 1.156 + forward in the history. This input history can be used for 1.157 + begin-type completion, section-type completion, evoking the 1.158 + previewer, and print out commands. 1.159 + 1.160 + gmhist can be found at many Emacs-Lisp archive sights. For example, 1.161 + ftp.ae.keio.ac.jp:pub/emacs-lisp/util/gmhist.tar.gz 1.162 + 1.163 +*ref<->label jump doesn't work. 1.164 + 1.165 + C-c g will start a forward search of ref/label. C-u C-c g will 1.166 + start a backward search. If you want to continue searching for 1.167 + \ref, hit C-s (C-r) twice and use the repeated search feature of the 1.168 + incremental search. If the point to jump is in another file, that 1.169 + file must be already opened. YaTeX-display-hierarchy (C-c d) can be 1.170 + used to open all files at once. 1.171 + 1.172 +*I get a % at the end of the line when I do a fill-paragraph or auto-fill. 1.173 + 1.174 + NTT-jTeX will add an unnecessary space in the print out image if the 1.175 + japanese paragraph is written with an indent. To avoid this, you 1.176 + need to put a % at the end of the line. YaTeX will automatically 1.177 + put a % so you can input indented text for NTT-jTeX. But there may 1.178 + be a bug in the routine so please report if you find any %s otherwise 1.179 + than at the end of a line. 1.180 + 1.181 +*Isn't the indentation too deep in itemize environments? 1.182 + 1.183 + Think so too? An alias Mr. K thought this was better and he's 1.184 + the only one delighted hitting the TAB key. Wasn't my idea! (still 1.185 + have a bit of a grudge) If you also think it's too deep, hit TAB at 1.186 + the end of the line with \begin{itemize} within the environment. 1.187 + Now it's too shallow? Umm... time for me to take a break. 1.188 + 1.189 + 1.190 +[About Mule2] 1.191 +*Equations are too dark to read when I use Mule2+hilit19. 1.192 + 1.193 + The default coloring of hilit19.el is too dark. Try putting the 1.194 + next code in ~/.emacs or yatexhks.el. 1.195 + 1.196 + (if (and (featurep 'hilit19) (eq hilit-background-mode 'dark)) 1.197 + (hilit-translate 1.198 + string 'mediumspringgreen 1.199 + formula 'khaki 1.200 + label 'yellow-underlined)) 1.201 + 1.202 +*Can't I use font-lock? 1.203 + 1.204 + The document says, "pattern must be specified within a line". So it 1.205 + seems you can't chose a pattern like from \begin to \end that laps 1.206 + more than one line. But on the other hand, multiple line comments 1.207 + in C seems to work fine... So what's the real story? Anybody know 1.208 + the answer? If so, teach me, or try sending a fan letter to our 1.209 + font-lock investigator-in-depress Taguchi (tagu@ae.keio.ac.jp) 1.210 + 1.211 +*It's sooo slow when I click YaTeX on the menu bar. 1.212 + 1.213 + I don't know why. Probably a problem with Emacs-19. You'll just 1.214 + have to bear with it. It won't be so slow the second time. 1.215 + Anyway, you probably won't use the menu at all, do you? 1.216 + 1.217 +[Customization] 1.218 +*I don't use C-c b i much, so it would be better if I can start 1.219 + completion after hitting C-c b. 1.220 + 1.221 + Put (setq YaTeX-no-begend-shortcut t) in your ~/.emacs. 1.222 + 1.223 +*An open parenthesis always get entered in pairs. 1.224 + 1.225 + This should be better, once you get used to it. If you still don't 1.226 + like it, turn on modify-mode using C-c w m. Setting 1.227 + YaTeX-close-paren-always to nil will give this feature from the start. 1.228 + 1.229 +*Funny things happen when I hit ;. 1.230 + 1.231 + YaTeX think you are in math mode and evokes math-mode-image 1.232 + completion. If you are writing a equation that TeX will not give an 1.233 + error and YaTeX mistakes what mode you are in, report it back to the 1.234 + author. For mistaken judgements or if you want to enter a literal 1.235 + ;, hit ; twice. C-u ; to use ; as a image-completion prefix. 1.236 + 1.237 +*I want YaTeX to enter the option arguments for a newenvironment. 1.238 + 1.239 + Read yatexadd.doc. If that's not enough, read yatexgen.doc and try 1.240 + M-x YaTeX-generate. 1.241 + 1.242 +*I first defined \foo as a macro taking 3 arguments. Later I changed it 1.243 + to take 4 arguments, but the section-type completion will ask me for 1.244 + only 3 arguments. 1.245 + 1.246 + Use C-u 4 C-c s and tell it will take 4 arguments. You can change 1.247 + the number of arguments anytime you want. 1.248 + 1.249 +*I made a argument-type addin function, but can't do completion after 1.250 + the first two arguments. 1.251 + 1.252 + If you made a addin function like \foo{x}{y}{z} that takes 3 1.253 + arguments, then you need to learn in the dictionary that \foo will 1.254 + take 3 arguments. This can be done by C-u 3 C-c s foo. You only 1.255 + need to do it once. 1.256 + 1.257 +*My addin functions are overwritten by yatexadd. 1.258 + 1.259 + Formally, all private functions were written in your own yatexadd.el. 1.260 + Now, all private functions are put in yatexhks.el. yatexhks.el will 1.261 + be read in at the end of YaTeX's initialization, so you can overwrite 1.262 + definitions in yatexadd.el. 1.263 + 1.264 +[ETC] 1.265 +*Mailing lists? 1.266 + 1.267 + A question, so an answer. The mailing list for YaTeX(Wild Bird) and 1.268 + it's implementation to Vz, Raicho (by katsura@prc.tsukuba.ac.jp) is 1.269 + "fj Wild Bird Society". Send a mail like 1.270 + 1.271 + To: yatex-control@harvest.jaist.ac.jp 1.272 + Subject: append 1.273 + ----- 1.274 + Hi! See any birds fly by? 1.275 + 1.276 + and you're in. The text will be used as your profile. (you can 1.277 + change it later) Once you're in, you'll get a reply with lists of 1.278 + commands used in the mailing list. Join along and help adding new 1.279 + feathers to Wild Bird. BTW, if you haven't guessed it yet, yes, 1.280 + this mailing list is in Japanese. But give us a try anyway. You're 1.281 + always welcome. 1.282 + 1.283 +*Help, help HELP!! 1.284 + 1.285 + Ways of getting answers in fastest order. 1.286 + 1.287 + *Look for someone near you who knows what's he/she's doing. 1.288 + *Post a question to the mailing list. 1.289 + *Send mail to yuuji@ae.keio.ac.jp 1.290 + 1.291 + take a pick. 1.292 + 1.293 +*Picking a question in this file with C-u C-x $ and hitting C-x $ takes 1.294 + me to a weird world. 1.295 + 1.296 + You too? Try marking the question before C-x $ and to C-x C-x to 1.297 + take you back to it. (mule2 doesn't seem to have the same problem) 1.298 + 1.299 + 1.300 +Local Variables: 1.301 +mode: indented-text 1.302 +fill-column: 72 1.303 +fill-prefix: " " 1.304 +End: 1.305 +
2.1 --- a/docs/yatexadd.doc Thu Feb 02 17:18:29 1995 +0000 2.2 +++ b/docs/yatexadd.doc Mon Apr 24 14:42:53 1995 +0000 2.3 @@ -146,9 +146,9 @@ 2.4 結果は ~/.yatexrc か ./.yatexrc に保存されます。使用例と 2.5 して YaTeX::documentstyle 関数の定義をごらんください。 2.6 2.7 - ・関数 YaTeX:check-comletion-type 2.8 - 引数 'begin または、'section または、'maketitle 2.9 - 説明 付加関数が呼ばれる時に、行われている補完の形式が、引数で与 2.10 + ・関数 YaTeX:read-coordinates 2.11 + 引数 基本プロンプト、X座標プロンプト、Y座標プロンプト(全て省略可) 2.12 + 説明 「基本プロンプト X座標プロンプト:」というプロンプトを出し 2.13 て、X座標を読み込み、「基本プロンプト Y座標プロンプト:」を 2.14 出して、Y座標を読み込み、(X座標,Y座標) の様な形式を作成します。 2.15 何も入力せずリターンを押しても、(,)が返されます。
3.1 --- a/docs/yatexe.tex Thu Feb 02 17:18:29 1995 +0000 3.2 +++ b/docs/yatexe.tex Mon Apr 24 14:42:53 1995 +0000 3.3 @@ -1659,6 +1659,11 @@ 3.4 -*'. 3.5 @end defvar 3.6 3.7 +@defvar YaTeX-skip-default-reader 3.8 +Non-nil for this variable skips the default argument reader of 3.9 +section-type command when add-in function for it is not defined. 3.10 +@end defvar 3.11 + 3.12 @node Sample definitions, Hook variables, All customizable variables, Lisp variables 3.13 @comment node-name, next, previous, up 3.14 @subsection Sample definitions
4.1 --- a/docs/yatexgen.doc Thu Feb 02 17:18:29 1995 +0000 4.2 +++ b/docs/yatexgen.doc Mon Apr 24 14:42:53 1995 +0000 4.3 @@ -162,11 +162,11 @@ 4.4 4.5 【できあがり】 4.6 4.7 - 言われた通りに正しく指示を与えると、お望みのお手軽関数が出来上が 4.8 - ります。これを切り取って、~/.emacs にでも放り込みましょう。本当は 4.9 - これも自動化しようと思ったのですが、これに失敗すると命がいくつあっ 4.10 - ても足りないので、やめておきました。第一それも面倒な人は、野鳥なん 4.11 - か使っていないよね? 4.12 + 言われた通りに正しく指示を与えると、お望みのお手軽関数が出来上 4.13 + がります。これを切り取って、~/yatexhks.el にでも放り込みましょう。 4.14 + 本当はこれも自動化しようと思ったのですが、これに失敗すると命がい 4.15 + くつあっても足りないので、やめておきました。第一それも面倒な人は、 4.16 + 野鳥なんか使っていないよね? 4.17 4.18 4.19 【最後に】
5.1 --- a/docs/yatexj.tex Thu Feb 02 17:18:29 1995 +0000 5.2 +++ b/docs/yatexj.tex Mon Apr 24 14:42:53 1995 +0000 5.3 @@ -1865,6 +1865,11 @@ 5.4 ド指定行(-*- xxx -*-)が設定されている。 5.5 @end defvar 5.6 5.7 +@defvar YaTeX-skip-default-reader 5.8 +Non-nil に設定するとsection型コマンドの引数入力時、アドイン関数がなければ 5.9 +ミニバッファでの読み込みをせずに入力を完了させる。 5.10 +@end defvar 5.11 + 5.12 @node Sample definitions, Hook variables, All customizable variables, Lisp variables 5.13 @comment node-name, next, previous, up 5.14 @subsection カスタマイズ変数設定例
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/docs/yatexref.eng Mon Apr 24 14:42:53 1995 +0000 6.3 @@ -0,0 +1,164 @@ 6.4 +---------------------------------------------------------------------------- 6.5 + YaTeX 6.6 + Quick Reference 6.7 +---------------------------------------------------------------------------- 6.8 + 6.9 + 6.10 +[Caution] 6.11 + 6.12 + You can customize the prefix key (C-c by default) so this will be 6.13 + written as [prefix] in this document. If you have not customized 6.14 + [prefix] a will stand for C-c a. 6.15 + 6.16 + Begin-type commands are those like \begin-\end, Section-type 6.17 + commands are those that take arguments as \section{NAME}, 6.18 + Large-type commands are font/size definition commands that are put 6.19 + in parenthesis as {\tt}, Maketitle-type commands are commands that 6.20 + don't take arguments as \maketitle. 6.21 + 6.22 +[Completion] 6.23 + 6.24 + *Accent completion [prefix] a 6.25 + *Begin-type completion [prefix] b SPC 6.26 + *Begin-type completion (region) [prefix] B SPC 6.27 + *Begin-type completion (immediate) [prefix] b initial_of_environment 6.28 + *Begin-type completion (immediate on region) 6.29 + [prefix] B initial_of_environment 6.30 + *End completion [prefix] e 6.31 + *Large-type completion [prefix] l 6.32 + *Large-type completion (region) [prefix] L 6.33 + *Maketitle-type completion [prefix] m 6.34 + *Section-type completion [prefix] s 6.35 + *Section-type completion (region) [prefix] S 6.36 + *General completion [prefix] SPC 6.37 + 6.38 + For the initials used in immediate Begin-type completions, see the 6.39 + Info manual. In the (region)-mode, region between the mark and 6.40 + the present point will be put within a \begin{foo}...\end{foo} or 6.41 + {\large } and such. 6.42 + 6.43 + *Math sign image completion ; 6.44 + *Greek letter image completion : 6.45 + 6.46 + Above two commands may be used only in the math environment. If 6.47 + you want to use the completion in other environments, do C-u and 6.48 + then ; or :. 6.49 + 6.50 + 6.51 +[Process invoking] 6.52 + 6.53 + *invoke bibtex [prefix] tb 6.54 + *invoke latex [prefix] tj 6.55 + *invoke makeindex [prefix] ti 6.56 + *kill current typesetting process [prefix] tk ** 6.57 + *lpr dvi-file [prefix] tl 6.58 + *lpr dvi-file (all pages) C-u [prefix] tl 6.59 + *invoke previewer [prefix] tp 6.60 + *invoke lpq [prefix] tq 6.61 + *invoke jlatex (on region) [prefix] tr 6.62 + 6.63 + Hitting [prefix] t will get you the menu, so there is no need to 6.64 + remember the key after [prefix] t. 6.65 + 6.66 + **Unavailable on MS-DOS 6.67 + 6.68 + The region used in [prefix] tr are the lines between %#BEGIN and 6.69 + %#END. If %#END is not found then from %#BEGIN and the end of 6.70 + the text. If both are missing then from the mark to the 6.71 + present point. 6.72 + 6.73 +[Cursor Jump] 6.74 + *To the typeset error [prefix] ' 6.75 + 6.76 + Will jump to the position where the typeset error occurred from the 6.77 + end. Only effective when there was a error returned from latex. 6.78 + 6.79 + *Jump to corresponding object [prefix] g 6.80 + *Jump to corresponding object (in another her window) [prefix] 4g 6.81 + 6.82 + Where to jump will be decided by what's on the line [prefix] g was 6.83 + hit. 6.84 + 6.85 + -on a \begin{} or \end{} to a matching \end{} or \begin{} 6.86 + -on a %#BEGIN or %#END to a matching %#END or %#BEGIN 6.87 + -on a \include(only) or \input to the matching file 6.88 + -on a \ref or \label to the matching \label or \ref 6.89 + -on a \cite or \bibitem to the matching \bibitem or \cite 6.90 + 6.91 + *Jump to the main file [prefix] ^ 6.92 + *Jump to the main file in another window [prefix] 4^ 6.93 + 6.94 + To tell YaTeX which the main file is, write 6.95 + %#jlatex MAIN_FILE_NAME 6.96 + somewhere in the file you are creating. 6.97 + 6.98 + *Jump to beginning of environment ESC C-a 6.99 + *Jump to end of environment ESC C-e 6.100 + *Mark whole environment ESC C-h 6.101 + 6.102 +[Commenting out by %] 6.103 + 6.104 + *Comment out the region/environment [prefix] > 6.105 + *Uncomment the region/environment [prefix] < 6.106 + 6.107 + If the point is on a line with \begin{} or \end{}, everything 6.108 + within the environment will be (un)commented. Otherwise, 6.109 + everything between the mark and point will be (un)commented. 6.110 + 6.111 + *Comment out a paragraph or environment declaration [prefix] . 6.112 + *Uncomment out a paragraph or environment declaration [prefix] , 6.113 + 6.114 + If the point is on a line with \begin{} or \end, the two lines 6.115 + with it will be (un)commented. Otherwise the paragraph that the 6.116 + point is in will be (un)commented. 6.117 + 6.118 +[ETC] 6.119 + 6.120 + *Align and fill item [prefix] i 6.121 + 6.122 + Available only in an environment. Will do a hanging indent on the 6.123 + \item. 6.124 + 6.125 + *Change LaTeX command [prefix] c 6.126 + 6.127 + On a line with \begin{} or \end{}, will change the name of the 6.128 + environment. On a section-type command, will change the command 6.129 + name, and also change arguments if invoked on the argument. For 6.130 + large-type command, will change font/size definitions. On a math 6.131 + mode command entered using image-type completion, will return to 6.132 + the completion operation. 6.133 + 6.134 + *Kill commands [prefix] k 6.135 + 6.136 + For \begin{}/\end{}, %#BEGIN/%#END, and parenthesis, will delete 6.137 + them in pairs. For section-type commands, font/size definition, 6.138 + will delete the command ant parenthesis surrounding them. 6.139 + 6.140 + *Enclose region with () [prefix] ) 6.141 + *Enclose region with {} [prefix] } 6.142 + *Enclose region with [] [prefix] ] 6.143 + *Enclose region with $$ [prefix] $ 6.144 + 6.145 + *Toggle modes [prefix] w 6.146 + 6.147 + Will toggle between modify mode and math mode. 6.148 + 6.149 + *%# editing [prefix] % 6.150 + *Show columns in tabular/array [prefix] & 6.151 + *Online help [prefix] h 6.152 + *Online apropos [prefix] / 6.153 + *Intelligent return ESC RET 6.154 + 6.155 + Intelligent return can be used in tabular, array, itemize, 6.156 + enumerate, list and description environments. 6.157 + 6.158 + *Browse included structure [prefix] d 6.159 + 6.160 + HIROSE Yuuji 6.161 + yuuji@ae.keio.ac.jp 6.162 + pcs39334@asciinet.or.jp 6.163 + 6.164 +Local variables: 6.165 +mode: text 6.166 +fill-prefix: " " 6.167 +End:
7.1 --- a/help/YATEXHLP.eng Thu Feb 02 17:18:29 1995 +0000 7.2 +++ b/help/YATEXHLP.eng Mon Apr 24 14:42:53 1995 +0000 7.3 @@ -1,6 +1,6 @@ 7.4 textfloatsep 7.5 \addtolength{\textfloatsep}{LENGTH} 7.6 -Length between the text and, float of the top or bottom of page 7.7 +Length between the text and a float at the top or bottom of page 7.8 7.9 floatsep 7.10 \addtolength{\floatsep}{LENGTH} 7.11 @@ -8,50 +8,52 @@ 7.12 7.13 oddsidemargin 7.14 \setlength{\oddsidemargin}{LENGTH} 7.15 -右ページの左端から1インチ(2.54cm)の線と本文の距離 7.16 +Length between text and a line 1 inch from the left of page, on the 7.17 +right page 7.18 + 7.19 7.20 pagestyle 7.21 -\pagestyle{スタイル} 7.22 -出力ページのヘッダとフッタのスタイルを決める。スタイルには以下のものがある: 7.23 -plain 標準スタイル. フッタにページ番号だけつける. 7.24 -empty ヘッダにもフッタにも何も出力しない. 7.25 -headings ヘッダにセクションに応じた見出しとページ番号をつけ 7.26 - フッタには何も出力しない. 7.27 -myheadings headingsのスタイルで、ヘッダの情報を \markbpth と 7.28 - \markright で指定できる. 7.29 +\pagestyle{STYLE} 7.30 +Determines header and footer styles on output page. There are the 7.31 +following styles 7.32 +plain Standard style. Page number only in footer. 7.33 +empty No headers or footers are output. 7.34 +headings Puts page number and headings according to section in header. 7.35 + No footer is output. 7.36 +myheadings User defines what goes into headings using \markbpth and \markright 7.37 7.38 thispagestyle 7.39 -\thispagestyle{スタイル} 7.40 -現在のページだけのスタイルを決定する。 7.41 +\thispagestyle{STYLE} 7.42 +Determines the STYLE for the current page only 7.43 7.44 pagenumbering 7.45 -\pagenumbering{スタイル} 7.46 -ページ番号のスタイルを決める。スタイルには以下のものがある: 7.47 -arabic アラビア数字 7.48 -alph 小文字の英字 7.49 -Alph 大文字の英字 7.50 -roman 小文字のローマ数字 7.51 -Roman 大文字のローマ数字 7.52 +\pagenumbering{STYLE} 7.53 +Determines the STYLE of page numbers. Type of STYLEs are, 7.54 +arabic arabic numerals 7.55 +alph lowercase alphabets 7.56 +Alph uppercase alphabets 7.57 +roman lowercase roman numerals 7.58 +Roman uppercase roman numerals 7.59 7.60 shortstack 7.61 -\shortstack[場所]{重ねて\\表示する\\内容} 7.62 -{}内の内容を\\で区切られた単位毎に積み重ねて表示する。 7.63 -[場所]は、l(左寄せ)、c(センタリング)、r(右寄せ)のいずれか。 7.64 +\shortstack[POSITION]{TEXT\\TO BE\\STACKED} 7.65 +Stack and display contents within {}, separated by \\. 7.66 +Possible [POSITION]s are, l(left), c(center), r(right). 7.67 7.68 newlength 7.69 \newlength{NAME} 7.70 -NAMEという長さコマンドを新たに宣言する。 7.71 +Declare NAME as a length command. 7.72 7.73 addtolength 7.74 -\addtolength{長さコマンド}{数値} 7.75 -第1引数の長さを第2に引数の数値を足す。 7.76 -代表的なスタイルパラメータについては \setlength の項を参照せよ。 7.77 +\addtolength{LENGTH COMMAND}{VALUE} 7.78 +Adds VALUE to LENGTH COMMAND. 7.79 +See \setlength for major style parameters. 7.80 7.81 setlength 7.82 -\setlength{長さコマンド}{数値} 7.83 -第1引数の長さを第2に引数の数値に設定する。 7.84 -代表的なスタイルパラメータは以下の通り: 7.85 -(スタイルパラメータの変更はプリアンブルで行うこと) 7.86 +\setlength{LENGTH COMMAND}{VALUE} 7.87 +Set the value of LENGTH COMMAND to VALUE. 7.88 +Major style parameters are: 7.89 +(Style parameters must be changed in the preamble) 7.90 \evensidemargin \footheight \footskip \headheight 7.91 \headsep \marginparsep \marginparwidth \oddsidemargin 7.92 \textheight \textwidth \topmargin \topskip 7.93 @@ -59,180 +61,175 @@ 7.94 \columnsep \columnseprule \mathindent 7.95 7.96 settowidth{\NAME}{TEXT} 7.97 -\hbox{TEXT}の出力結果と同じ幅に長さ\NAME をセットする。 7.98 +Set the value of \NAME to the width of \hbox{TEXT}. 7.99 7.100 evensidemargin 7.101 \setlength{\evensidemargin}{LENGTH} 7.102 -左ページの左端から1インチ(2.54cm)の線と本文の距離 7.103 +Length between body and a line 1 inch from the left of page, on the 7.104 +left page. 7.105 7.106 footheight 7.107 \setlength{\footheight}{LENGTH} 7.108 -フッタの高さ 7.109 +Height of footer. 7.110 7.111 footskip 7.112 \setlength{\footskip}{LENGTH} 7.113 -本文の箱の下端とフッタの距離 7.114 +Length between bottom of body and footer. 7.115 7.116 headheight 7.117 \addtolength{\headheight}{LENGTH} 7.118 -ヘッダの高さ 7.119 +Height of header. 7.120 7.121 headsep 7.122 \setlength{\headsep}{LENGTH} 7.123 -ヘッダと本文の間隔 7.124 +Length between top of body and header. 7.125 7.126 marginparsep 7.127 \addtolength{\marginparsep}{LENGTH} 7.128 -傍注と本文の間隔 7.129 +Length between the body and marginal notes 7.130 7.131 marginparwidth 7.132 \addtolength{\marginparwidth}{LENGTH} 7.133 -傍注の幅 7.134 +Width of marginal notes. 7.135 7.136 oddsidemargin 7.137 \addtolength{\oddsidemargin}{LENGTH} 7.138 -右ページの左端から1インチ(2.54cm)の線と本文の距離 7.139 +Length between body and a line 1 inch from the left of page, on the 7.140 +right page. 7.141 + 7.142 7.143 textheight 7.144 \addtolength{\textheight}{LENGTH} 7.145 -本文の高さ 7.146 +Height of text. 7.147 7.148 textwidth 7.149 \addtolength{\textwidth}{LENGTH} 7.150 -本文の幅 7.151 +Width of body. 7.152 7.153 topmargin 7.154 \addtolength{\topmargin}{LENGTH} 7.155 -ページ上端から1インチの線とヘッダの距離 7.156 +Length between the header and a line one inch from the top of the page. 7.157 7.158 topskip 7.159 \addtolength{\topskip}{LENGTH} 7.160 -本文の箱の上端と一行目のテキストとの間隔 7.161 +Length between top of the body to the first line of the text. 7.162 7.163 parindent 7.164 \setlength{\parindent}{LENGTH} 7.165 -\parindent 段落の先頭の字下げ幅. 7.166 +Width of indentation at the beginning of a paragraph. 7.167 7.168 linewidth 7.169 \addtolength{\linewidth}{LENGTH} 7.170 -\linewidth 行の幅. 7.171 +Width of lines. 7.172 7.173 baselineskip 7.174 \addtolength{baselineskip}{LENGTH} 7.175 -\baselineskip 行のベースライン間の最低限の高さ. 7.176 +Minimum height between baselines (bottom of a line). 7.177 7.178 baselinestretch 7.179 \renewcommand{baselinestretch}{1.5} 7.180 -\baselinestretch \baselineskip に乗ずる係数. (default=1) 7.181 -(* \setlengthなどではなく、\renewcommandで再定義する。) 7.182 +Value to multiply \baselineskip. (default is 1) 7.183 +(* Redefine using \renewcommand. Don't use \setlength. 7.184 7.185 parskip 7.186 \addtolength{\parskip}{LENGTH} 7.187 -\parskip 段落前の垂直スペース. 7.188 +Vertical space before a paragraph. 7.189 7.190 columnsep 7.191 \addtolength{\columnsep}{LENGTH} 7.192 -\columnsep 2段組みの時の段間の幅. 7.193 +Width between columns in a two column environment. 7.194 7.195 columnseprule 7.196 \addtolength{\columnseprule}{LENGTH} 7.197 -二段組の時の段間の罫線の太さ. 7.198 +Width of ruler to separate columns in a two column environment. 7.199 +(default is 0pt) 7.200 7.201 columnwidth 7.202 \addtolength{\columnwidth}{LENGTH} 7.203 -二段組の時には (\textwidth - \columnsep)/2 7.204 -そうでない時は、\textwidth 7.205 - 7.206 - 7.207 -columnseprule 7.208 -\addtolength{columnseprule}{LENGTH} 7.209 -\columnseprule 2段組みの時の段間の罫線の幅. (default=0pt) 7.210 +(\textwidth - \columnsep)/2 in a two column environment. 7.211 +Otherwise, equal to \textwidth. 7.212 7.213 mathindent 7.214 \addtolength{mathindent}{LENGTH} 7.215 -\mathindent スタイルオプションで fleqn を指定した場合の、 7.216 - 左マージンからの数式の字下げ幅. 7.217 +Width of indentation of a equation from the left margin, when fleqn is 7.218 +defined as style option. 7.219 7.220 LaTeX 7.221 \LaTeX 7.222 -\LaTeX のロゴを表示。\LaTeX の定義は以下の通り。 7.223 +Display \LaTeX logo. Definition of \LaTeX is; 7.224 \def\LaTeX{{\rm L\kern-.36em\raise.3ex\hbox{\sc a}\kern-.15em 7.225 T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} 7.226 7.227 fragile 7.228 -** LaTeX用語 ** 7.229 -引数によって展開結果が変わるようなコマンドをいう。 7.230 -その逆は robust なコマンド。 7.231 +** LaTeX term ** 7.232 +Any command which expanded result changes by an argument. 7.233 +Opposite is a robust command. 7.234 7.235 robust 7.236 -** LaTeX用語 ** 7.237 -展開結果が常に変わらないようなコマンドをいう。 7.238 -フォント/サイズ指定子、長さコマンド、数式モード中に使う多くのコマンドは 7.239 -robustなコマンド。 7.240 -(maketitle型コマンドのうちオプション引数を全くとらないものと考えて良い) 7.241 +** LaTeX term ** 7.242 +Commands which expanded results are always the same. 7.243 +Font type/size selection commands, length commands, and most commands 7.244 +used within math mode is robust. 7.245 +(maketitle type commands that don't take any arguments) 7.246 7.247 protect 7.248 -\protect「fragileなコマンド」 7.249 -引数によって結果が変わるようなコマンドを「fragileなコマンド」と言う。 7.250 -一方、引数がいろいろな箇所で参照されるコマンドを「動く引数を取るコマンド 7.251 -と言う。これは chapter や caption など目次などから参照される引数をとるも 7.252 -のや、tabular/array 環境の @ 表現が該当する。 7.253 +\protect `a fragile command' 7.254 +Commands that the result changes according to it's arguments are 7.255 +called "fragile commands". When an argument is referenced in more 7.256 +than one place, the command is said to "take a moving argument". 7.257 +chapter and caption, whose argument will be used in the table of 7.258 +contents, or an @ in an tabular/array environment are examples. 7.259 7.260 -さて、これらの「動く引数を取るコマンド」の引数に「fragileなコマンド」を 7.261 -与える時に(fragileなコマンドの直前に)使うのが \protect である。以下は典 7.262 -型的な利用例である。 7.263 +When a "fragile command" is used in a "moving argument", it must be 7.264 +preceded by a \protect. Following is an example. 7.265 7.266 \newcommand{\thissystem}[1]{YaTeX version #1} 7.267 -\chapter{\protect \thissystem{1.50}について} 7.268 +\chapter{About \protect \thissystem{1.50}} 7.269 7.270 newcommand 7.271 -\newcommand{\コマンド名}[引数の数]{定義} 7.272 -「コマンド名」を「引数の数」個の引数を取る「定義」であるマクロとして定義 7.273 -する。定義中でn番目の引数は #n として参照する。 7.274 +\newcommand{\NAME}[ARGS]{DEF} 7.275 +Define a macro \NAME as DEF, taking ARGS number of arguments. The nth 7.276 +argument will be referred as #n in the definition. 7.277 +If used as 7.278 \newcommand{\foo}[1]{\underline{#1}} 7.279 -とすると \foo{bar} は \underline{bar} と展開される。したがってフォント指 7.280 -定子を含む場合newcommandの{}につられて、 7.281 +\foo{bar} will be expanded to \underline{bar}. When a font selection 7.282 +command is used as 7.283 \newcommand{\foo}[1]{\bf #1} 7.284 -とすると \foo{bar} がテキスト中で \bf bar と展開されてしまうので、 7.285 +\foo{bar} will be expanded as \bf bar in the text, so, it must be used as 7.286 \newcommand{\foo}[1]{{\bf #1}} 7.287 -としなければならない。 7.288 7.289 - 「コマンド名」のマクロが既に定義されている場合はエラーとなる。再定義す 7.290 -る場合は、\renewcommandを使う。 7.291 +If NAME is already defined as a macro, it will return an error. To 7.292 +redefine, use \renewcommand. 7.293 7.294 renewcommand 7.295 -\renewcommand{\コマンド名}[引数の数]{定義} 7.296 -既に定義されているコマンドを別の内容で再定義する。 7.297 -以下は \newcommand の説明。 7.298 +\renewcommand{\NAME}[ARGS]{DEF} 7.299 +Redefine an already defined command. 7.300 <refer newcommand> 7.301 7.302 newenvironment 7.303 -\newenvironment{環境名}[引数の数]{定義1}{定義2} 7.304 -新たな環境を定義する。 7.305 -\begin{環境名}の時の展開内容を「定義1」に\end{環境名}の時の展開内容を 7.306 -「定義2」に記述する。 7.307 - \newcommand{\環境名}{定義1} \def{\end環境名}{定義2} 7.308 -と同値。 7.309 +\newenvironment{NAME}[ARGS]{DEF1}{DEF2} 7.310 +Define a new environment. 7.311 +\begin{NAME} will be replaced by DEF1 and \end{NAME} will be replaced 7.312 +by DEF2. Same as 7.313 + \newcommand{\NAME}{DEF1} \def{\end{\NAME}}{DEF2} 7.314 7.315 renewenvironment 7.316 -\renewenvironment{環境名}[引数の数]{定義1}{定義2} 7.317 -既に定義されている「環境名」を別の内容で再定義する。 7.318 -以下は、\newenvironmentの説明。 7.319 - 7.320 +\renewenvironment{NAME}[ARGS]{DEF1}{DEF2} 7.321 +Redefine an environment NAME that already exists. 7.322 <refer newenvironment> 7.323 7.324 typeout 7.325 -\typeout{メッセージ} 7.326 -タイプセット中に「メッセージ」を端末に出力する。 7.327 +\typeout{MESSAGE} 7.328 +Output MESSAGE to the terminal while typesetting. 7.329 7.330 typein 7.331 -\typein{メッセージ} \typein[\マクロ]{メッセージ} 7.332 -タイプセット中に「メッセージ」をプロンプトに出し、入力した結果を実行する。 7.333 -第二の書式では、「\マクロ」を入力したものに定義する。 7.334 +\typein{MESSAGE} \typein[\MACRO]{MESSAGE} 7.335 +Output MESSAGE to terminal and execute the input. 7.336 +In the second form, \MACRO will be defined as the input. 7.337 7.338 par 7.339 \par 7.340 -段落の区切りの役割をする。空行と同じ。 7.341 +Used to separate paragraphs. Same as a blank line. 7.342 7.343 everypar 7.344 \everypar 7.345 @@ -240,264 +237,269 @@ 7.346 7.347 nopagebreak 7.348 \nopagebreak[i] (i = 0,1,2,3,4) 7.349 -改頁を強さiで抑制する([i]を省略すると4)。 7.350 +Prevents pages to be broken by the strength of i. (default is 4) 7.351 7.352 pagebreak 7.353 \pagebreak[i] (i = 0,1,2,3,4) 7.354 -改頁を強さiで促す([i]を省略すると4)。 7.355 +Forces pages to be broken by the strength of i. (default is 4) 7.356 7.357 linebreak 7.358 \linebreak[i] (i = 0,1,2,3,4) 7.359 -改行を強さiで促す([i]を省略すると4)。 7.360 +Forces lines to be broken by the strength of i. (default is 4) 7.361 7.362 nolinebreak 7.363 \nolinebreak[i] (i = 0,1,2,3,4) 7.364 -改行を強さiで抑制する([i]を省略すると4)。 7.365 +Prevents lines to be broken by the strength of i. (default is 4) 7.366 7.367 samepage 7.368 \samepage 7.369 -改頁を禁止する。 7.370 +Prevents page to be broken. 7.371 RTFM 7.372 7.373 obeycr 7.374 \obeycr 7.375 -<CR> を \\. に定義する。→\restorecr 7.376 +Define <CR> as \\. see \restorecr 7.377 7.378 restorecr 7.379 \restorecr 7.380 -\obeycrで変更した<CR>の定義を元に戻す。 7.381 +Restore <CR>'s definition changed by \obeycr. 7.382 7.383 \ 7.384 -\\ \\[長さ] 7.385 -(任意の場所で)改行する。段落中では、\newline と同じ。 7.386 -オプション引数の[長さ]を指定すると、次の行との間隔を 7.387 -\vspace{LENGTH}によって確保する。 7.388 +\\ \\[LENGTH] 7.389 + 7.390 +Breaks a line at any given point. Same as \newline if used within a 7.391 +paragraph. If an option argument LENGTH is given, vertical space to 7.392 +next line will be \vspace{LENGTH}. 7.393 7.394 addvspace 7.395 -\addvspace{スキップ} 7.396 -縦方向の間隔に「スキップ」の値を足す。ただし 7.397 -\addvspace{S1} \addvspace{S2} と複数の値を同時に指定しても 7.398 -\addvspace{S1,S2のうち大きいほう} と同値になる。 7.399 +\addvspace{SKIP} 7.400 +Adds space equal to SKIP to vertical space. If more than one values 7.401 +are given as \addvspace{S1} \addvspace{S2}, it will be the same as 7.402 +\addvspace{the larger of S1, S2}. 7.403 7.404 vspace 7.405 -\vspace{間隔} \vspace*{間隔} 7.406 -垂直方向に「間隔」ぶんのスペースを足す。 7.407 -\vspace* はどんな場所でもスペースを足すが、\vspace はページの先頭や 7.408 -末尾でははたらかない。 7.409 +\vspace{LENGTH} \vspace*{LENGTH} 7.410 +Adds vertical space of LENGTH. 7.411 +\vspace* will add space at any given position, but \vspace will not 7.412 +add at beginning or end of a page. 7.413 7.414 vspace* 7.415 -\vspace{間隔} \vspace*{間隔} 7.416 -垂直方向に「間隔」ぶんのスペースを足す。 7.417 -\vspace* はどんな場所でもスペースを足すが、\vspace はページの先頭や 7.418 -末尾でははたらかない。 7.419 +\vspace{LENGTH} \vspace*{LENGTH} 7.420 +Adds vertical space of LENGTH. 7.421 +\vspace* will add space at any given position, but \vspace will not 7.422 +add at beginning or end of a page. 7.423 7.424 hspace 7.425 -\hspace{間隔} \hspace*{間隔} 7.426 -水平方向に「間隔」ぶんのスペースを足す。 7.427 -\hspace* はどんな場所でもスペースを足すが、\hspace は行の先頭や末尾では 7.428 -はたらかない。 7.429 +\hspace{LENGTH} \hspace*{LENGTH} 7.430 +Adds horizontal space of LENGTH. 7.431 +\hspace* will add space at any given position, but \hspace will not add 7.432 +at beginning or end of a line. 7.433 7.434 hspace* 7.435 -\hspace{間隔} \hspace*{間隔} 7.436 -水平方向に「間隔」ぶんのスペースを足す。 7.437 -\hspace* はどんな場所でもスペースを足すが、\hspace は行の先頭や末尾では 7.438 -はたらかない。 7.439 +\hspace{LENGTH} \hspace*{LENGTH} 7.440 +Adds horizontal space of LENGTH. 7.441 +\hspace* will add space at any given position, but \hspace will not add 7.442 +at beginning or end of a line. 7.443 7.444 smallskip 7.445 \smallskip 7.446 -垂直方向に小さな間隔を空ける。 7.447 +Put a small vertical space. 7.448 \def\smallskip{\vspace\smallskipamount} 7.449 7.450 medskip 7.451 \medskip 7.452 -垂直方向に中くらいの間隔を空ける。 7.453 +Put a medium vertical space. 7.454 \def\medskip{\vspace\medskipamount} 7.455 7.456 bigskip 7.457 \bigskip 7.458 -垂直方向に大きな間隔を空ける。 7.459 +Put a big vertical skip. 7.460 \def\bigskip{\vspace\bigskipamount} 7.461 7.462 , 7.463 \, 7.464 -狭いスペースを空ける。段落モード、LRモード、数式モードいずれでも利用可。 7.465 -クォートの中にクォートを書くときなどに用いる。 7.466 -例: ``\,`Foo', he said.'' 7.467 -数式モードで使えるスペースには以下のものがある: 7.468 - \: 少し広い 7.469 - \! 負で狭い 7.470 - \; 広い 7.471 +Opens a thin space. Can be used in paragraph mode, LR mode, or math mode. 7.472 +Used to write a quote within a quote. 7.473 +example: ``\,`Foo', he said.'' 7.474 +Spaces that can be used in math mode are: 7.475 + \: medium space 7.476 + \! negative and thin space 7.477 + \; thick space 7.478 7.479 : 7.480 $\:$ 7.481 -少し広いスペース。数式モードのみ。 7.482 +Medium space. Math mode only. 7.483 7.484 ! 7.485 $\!$ 7.486 -狭い負のスペース。数式モードのみ。 7.487 +Negative thin space. Math mode only. 7.488 7.489 ; 7.490 $\;$ 7.491 -広いスペース。数式モードのみ。 7.492 +Thick space. Math mode only. 7.493 7.494 -@whilenum 7.495 -\@whilenum TEST \do {BODY} 7.496 -この辺あとで 7.497 +whiledo{TEST}{BODY} 7.498 +Repeat BODY while TEST is true. 7.499 7.500 nofiles 7.501 \nofiles 7.502 -プリアンブルで宣言すると、.aux, .idx, .lof, .lot, .toc ファイルの作成が 7.503 -抑制される。 7.504 +If \nofiles is in the preamble, .aux, .idx, .lof, .lot, .toc files will 7.505 +not be made. 7.506 7.507 includeonly 7.508 \includeonly{sub1} \includeonly{sub1,sub3} 7.509 -\include{}で読み込むファイルのうち、実際に読み込み処理するものを指定する。 7.510 -(.texは省略可) 7.511 -\includeonlyの引数リストにないファイルはまったく処理されない、または前回 7.512 -以前に処理されている場合そこから全く変更がないものとして扱われる。 7.513 +Appoints actual files to be read and processed by \include{}. (.tex can 7.514 +be suppressed) 7.515 +Files not given in the argument list of \includeonly will not be 7.516 +processed at all. If the file has been processed before, it will be 7.517 +treated as if there were no changes from then. 7.518 7.519 include 7.520 \include{FILE} 7.521 +Same as 7.522 \clearpage \input{FILE} \clearpage 7.523 -と同じはたらきをする。 7.524 7.525 input 7.526 \input{FILE} 7.527 -FILE.tex がそこにあるかのように処理を続ける。 7.528 +Process as if FILE.tex has been inserted at that point. 7.529 7.530 setcounter 7.531 \setcounter{FOO}{VAL} 7.532 -カウンタFOOの値をVALに設定する。 7.533 +Set counter FOO's value to VAL. 7.534 7.535 addtocounter 7.536 \addtocounter{FOO}{VAL} 7.537 -カウンタFOOの値にVALを加える。 7.538 +Add value VAL to counter FOO. 7.539 7.540 newcounter 7.541 \newcounter{COUNTER}[OLDCTR] 7.542 -新しいカウンタCOUNTERを設定する。 7.543 -オプション引数[OLDCTR]を指定すると、既存のカウンタOLDCTRの値が 7.544 -\stepcounter もしくは \addtocounter で変更されるたびにCOUNTERの値もリセッ 7.545 -トされる。 7.546 +Defines a new counter COUNTER. 7.547 +If an optional argument OLDCTR is given, COUNTER's value will be reset 7.548 +every time OLDCTR's value is changed by \stepcounter or \addtocounter. 7.549 7.550 value 7.551 \value{COUNTER} 7.552 -COUNTERの値を返す。\protect を前置してはならない。 7.553 +Returns value of COUNTER. Must not be preceded by \protect. 7.554 7.555 stepcounter 7.556 \stepcounter{FOO} 7.557 -カウンタFOOの値をインクリメントする。FOOに従うカウンタがあればそれらをリ 7.558 -セットする。 7.559 +Increments value of counter FOO. Also resets any counter dependent to FOO. 7.560 7.561 refstepcounter 7.562 \refstepcounter{FOO} 7.563 -カウンタFOOの値をインクリメントする。FOOに従うカウンタがあればそれらをリ 7.564 -セットする。\stepcounterとの違いは、\refstepcounter{FOO} の直後に 7.565 -\label{hoge} があった場合に、\ref{hoge} の値が \value{FOO} を持つように 7.566 -「\ref値」を設定することである。 7.567 +Increments value of counter FOO. Also resets any counter dependent to 7.568 +FOO. Defers with \stepcounter as; if \label{hoge} follows immediately 7.569 +after \refstepcounter{FOO}, \ref{hoge}'s value will be set to \value{FOO}. 7.570 7.571 arabic 7.572 \arabic{COUNTER} 7.573 -アラビア数字でCOUNTERの値を出力。 7.574 +Output COUNTER's value in arabic numerals. 7.575 7.576 roman 7.577 \roman{COUNTER} 7.578 -小文字のローマ数字でCOUNTERの値を出力。 7.579 +Output COUNTER's value in lower case roman numerals. 7.580 7.581 Roman 7.582 \Roman{COUNTER} 7.583 -大文字のローマ数字でCOUNTERの値を出力。 7.584 +Output COUNTER's value in upper case roman numerals. 7.585 7.586 alph 7.587 \alph{COUNTER} 7.588 -小文字の英字でCOUNTERの値を出力。 7.589 +Output COUNTER's value in lower case alphabet. 7.590 7.591 Alph 7.592 \Alph{COUNTER} 7.593 -大文字の英字でCOUNTERの値を出力。 7.594 +Output COUNTER's value in upper case alphabet. 7.595 7.596 fnsymbol 7.597 \fnsymbol{COUNTER} 7.598 -脚注シンボル(1 = *, 2 = \dagger, ...) でCOUNTERの値を出力。数式モードのみ。 7.599 +Output COUNTER's value in footnote symbols (1 = *, 2 = \dagger, ...). 7.600 +Math mode only. 7.601 7.602 label 7.603 \label{LABEL} 7.604 -ラベルLABELの値をその時の「\ref値」に設定する。 7.605 -この値は、\ref{LABEL}によって参照される。また\pageref{LABEL}により 7.606 -\label{LABEL}の存在するページ番号が参照される。 7.607 -「\ref値」とは \section などのセクションコマンド、enumerate環境での 7.608 -\item コマンド、theorem環境などによって設定される値である。例えば、 7.609 -enumerate環境中の \item の直後ではそのitemの番号が「\ref値」となり、 7.610 -そこにある \label{LABEL} はitemの番号をLABELにセットする。 7.611 +Set value of LABEL to \ref VALUE. 7.612 +This value is referred by \ref{VALUE}. \pageref{LABEL} refers to the 7.613 +page number \label{LABEL} exists. 7.614 +``\ref VALUEs'' are, section commands as \section, \item commands within 7.615 +an enumerate environment, values set by a theorem environment. For 7.616 +example, immediately after a \item of a enumerate environment, the item 7.617 +number will be the ``\ref VALUE''. \label{LABEL} will set the item 7.618 +number to LABEL. 7.619 7.620 ref 7.621 \ref{LABEL} 7.622 -\label{LABEL}で設定したLABELの値を参照する。 7.623 -本文中で設定されたラベルにたいしてはページ番号が、 7.624 -図表中で設定されたラベルは図表番号が、 7.625 -enumerateされたitemで設定されたラベルにたいしては、item番号が返される。 7.626 +Refer to LABEL's value set by \label{LABEL}. 7.627 +Examples of values returned are; page numbers for LABELs set in the main 7.628 +text, table numbers for LABELs set in a table, and the item number for 7.629 +LABELs set in an item of the enumerate environment. 7.630 7.631 pageref 7.632 pageref{LABEL} 7.633 -\label{LABEL}の存在するページ番号を参照する。 7.634 +Refer to the page number where \label{LABEL} exists. 7.635 7.636 ( 7.637 -\( 数式 \) 7.638 -文中数式を組む。 7.639 -\begin{math} 数式 \end{math} 7.640 -と同値。\( および \)は fragile. 7.641 +\( EQUATION \) 7.642 +Produce an in-text equation. 7.643 +Same as 7.644 +\begin{math} EQUATION \end{math} 7.645 +\( and \) are fragile. 7.646 7.647 ) 7.648 \( x^2 = 4 \) 7.649 -文中数式を組む。 7.650 -\begin{math} 数式 \end{math} 7.651 -と同値。\( および \)は fragile. 7.652 +Produce an in-text equation. 7.653 +Same as 7.654 +\begin{math} EQUATION \end{math} 7.655 +\( and \) are fragile. 7.656 7.657 [ 7.658 -ディスプレイ数式を組む。 7.659 -\[ 数式 \] 7.660 -\begin{displaymath} 数式 \end{displaymath} 7.661 -と同値。\[ および \]は fragile. 7.662 +\[ EQUATION \] 7.663 +Produce an equation in display mode. 7.664 +Same as 7.665 +\begin{displaymath} EQUATION \end{displaymath} 7.666 +\[ and \] are fragile. 7.667 7.668 ) 7.669 -\[ 数式 \] 7.670 -ディスプレイ数式を組む。 7.671 -\begin{displaymath} 数式 \end{displaymath} 7.672 -と同値。\[ および \]は fragile. 7.673 +\[ EQUATION \] 7.674 +Produce an equation in display mode. 7.675 +Same as 7.676 +\begin{displaymath} EQUATION \end{displaymath} 7.677 +\[ and \] are fragile. 7.678 7.679 equation 7.680 -\begin{equation} 数式 \end{equation} 7.681 -番号つきの数式をdisplaymath環境で組む。 7.682 +\begin{equation} EQUATION \end{equation} 7.683 +Produce a numbered equation in displaymath mode. 7.684 7.685 eqnarray 7.686 -\begin{eqnarray} 方程式の並び \end{eqnarray} 7.687 -方程式の並びを3つの桁に整理して出力する。3つの桁は&記号によって、 7.688 -「左辺 & 等不等号 & 右辺」のように区切られる。例えば以下のようにする。 7.689 +\begin{eqnarray} EQNS \end{eqnarray} 7.690 +Produce equations aligned in three columns. The columns are separated by 7.691 +& as ``left member & sign & right member''. For example, 7.692 \begin{eqnarray} 7.693 3x + 2y & = & 4 \\ 7.694 x - 4y & = & -5 7.695 \end{eqnarray} 7.696 -eqnarray* 環境は数式番号を出力しないほかはeqnarray環境と同じである。 7.697 7.698 eqnarray* 7.699 -\begin{eqnarray*} 方程式の並び \end{eqnarray*} 7.700 -数式番号を出力しないほかはeqnarray環境と同じである。 7.701 +\begin{eqnarray*} EQNS \end{eqnarray*} 7.702 +Same as eqnarray, except no equation numbers are produced. 7.703 7.704 frac 7.705 -\frac{分子}{分母} 7.706 - 分子 7.707 ------- のような分数形式を組む。{分子 \over 分母} と同じ。 7.708 - 分母 7.709 +\frac{NUMER}{DENOM} 7.710 +Produce a fraction as 7.711 + NUMER 7.712 +------ 7.713 + DENOM 7.714 +Same as {NUMER \over DENOM} 7.715 7.716 sqrt 7.717 -\sqrt[N]{式} 7.718 -「式」のN乗根をあらわす数式。[N]を省略すると平方根。 7.719 +\sqrt[N]{EQUATION} 7.720 +Produces the Nth power of EQUATION. Gives a square root if [N] is not given. 7.721 7.722 lefteqn 7.723 -\lefteqn{式} 7.724 -ディスプレイ数式モードにおいて、「式」が幅ゼロであるとみなして、左寄せす 7.725 -る。たとえばeqnarray環境において、左辺が長くなってしまう場合に、行を 7.726 -折り畳むために利用する。 7.727 +\lefteqn{EQUATION} 7.728 +In display math mode, presume EQUATION has zero width and print it flush left. 7.729 +Used in eqnarray environment when the left member is too long and needs 7.730 +folding. 7.731 \begin{eqnarray} 7.732 \lefteqn{a_1 + a_2 + \cdots + a_n =} \\ 7.733 & & a_1 + b_1 + \cdots + z_1 + \\ 7.734 @@ -505,209 +507,208 @@ 7.735 \end{eqnarray} 7.736 7.737 center 7.738 -\begin{center} 内容 \end{center} 7.739 -「内容」を中央寄せする。各行は\\によって改行位置を指定する。 7.740 -→ \centering 7.741 +\begin{center} TEXT \end{center} 7.742 +Center TEXT. Each line must be separated by \\. 7.743 +<refer \centering> 7.744 7.745 flushright 7.746 -\begin{flushright} 内容 \end{flushright} 7.747 -「内容」を右寄せする。各行は\\によって改行位置を指定する。 7.748 -→ \raggedright 7.749 +\begin{flushright} TEXT \end{flushright} 7.750 +Align end of each line with right margin. Each line must be separated by \\. 7.751 +<refer \raggedright> 7.752 7.753 flushleft 7.754 -\begin{flushleft} 内容 \end{flushleft} 7.755 -「内容」を左寄せする。各行を\\によって改行位置を指定するとその位置で改行 7.756 -するが、指定しないと適当な行長のところで改行してくれる。 7.757 -→ \raggedleft 7.758 +\begin{flushleft} TEXT \end{flushleft} 7.759 +Align start of each line with left margin. \\ can be given to decide 7.760 +point of line break. Otherwise lines will be broken at an appropriate 7.761 +length. 7.762 +<refer \raggedleft> 7.763 7.764 centering 7.765 \centering 7.766 -段落をセンタリングして組版する。 7.767 -たとえば table環境、figura環境の先頭で宣言すると環境の終りまでをセンタリ 7.768 -ングして組む。 7.769 +Produce a centered paragraph. 7.770 +Declared at the beginning of a table/figura environment, it will center 7.771 +until the end of the environment. 7.772 7.773 raggedright 7.774 \raggedright 7.775 -段落を右寄せして組版する。 7.776 +Produce flush-left paragraphs. 7.777 7.778 raggedleft 7.779 \raggedleft 7.780 -段落を左寄せして組版する。 7.781 +Produce flush-right paragraphs. 7.782 7.783 raggedbottom 7.784 \raggedbottom 7.785 -組版する時に各ページの高さに多少のずれがあっても許容する。 7.786 -プリアンブルで指定する。 7.787 -→\flushbottom 7.788 +Allow height of each page to vary. 7.789 +Declared in the preamble. 7.790 +<refer \flushbottom> 7.791 7.792 flushbottom 7.793 \flushbottom 7.794 -組版する時に各ページの高さを正確にそろえる。 7.795 -プリアンブルで指定する。 7.796 -→\raggedbottom 7.797 +Make all text pages the same height. 7.798 +Declared in the preamble. 7.799 +<refer \raggedbottom> 7.800 7.801 sloppy 7.802 \sloppy 7.803 -\sloppy を指定すると、各行を必ず右マージンで折り返す代わりに、 7.804 -単語間の空白を大目に見る。 7.805 -→\fussy 7.806 +Always breaks the line at the right-hand margin, but allows too much 7.807 +space between words. 7.808 +<refer \fussy> 7.809 7.810 fussy 7.811 \fussy 7.812 -通常の組版規則に戻る。 7.813 -→\sloppy 7.814 +Return to normal line breaking. 7.815 +<refer \sloppy> 7.816 7.817 sloppypar 7.818 -\begin{sloppypar} 段落 \end{sloppypar} 7.819 -段落を \sloppy で組む。 7.820 -→\sloppy 7.821 +\begin{sloppypar} PARAGRAPH \end{sloppypar} 7.822 +Produce PARAGRAPH in \sloppy. 7.823 +<refer \sloppy> 7.824 7.825 verbatim 7.826 \begin{verbatim} ... \end{verbatim} 7.827 The verbatim environment uses the fixed-width \tt font, turns blanks into 7.828 -spaces, starts a new line for each carrige return (or sequence of 7.829 +spaces, starts a new line for each carriage return (or sequence of 7.830 consecutive carriage returns), and interprets EVERY character literally. 7.831 I.e., all special characters \, {, $, etc. are \catcode'd to 'other'. 7.832 7.833 verbatim* 7.834 \begin{verbatim*} ... \end{verbatim*} 7.835 +The verbatim* environment is the same to verbatim, except that spaces 7.836 +print as the TeXbook's space character instead of as blank spaces. 7.837 <refer verbatim> 7.838 7.839 -The verbatim* environment is the same, except that spaces 7.840 -print as the TeXbook's space character instead of as blank spaces. 7.841 - 7.842 list 7.843 -\begin{list}{デフォルトラベル}{整形パラメータ} ... \end{list} 7.844 -リスト環境に入る。リスト環境では \item で指定された各項目を一定の字下げ 7.845 -で列挙する。第1引数には \item のオプション引数のラベルが省略された時のデ 7.846 -フォルトラベルを指定し、第2引数には各itemを置く時に処理されるパラメータ 7.847 -を指定する。 7.848 -例: 7.849 +\begin{list}{LABEL}{PARAMETER} ... \end{list} 7.850 +Enter list environment. Each \item will be listed with an indent. 7.851 +First argument gives the default label when \item's optional argument is 7.852 +omitted. Second argument gives parameters to be processed for each item. 7.853 +example: 7.854 \begin{list}% 7.855 {$\diamond$} 7.856 {\addtolength{\leftmargin}{4em}} 7.857 - \item 第1引数には\verb|\item| にオプション引数をつけなかった時にふる、 7.858 - デフォルトのラベルを与える。 7.859 - \item 第2引数には各itemを置く時に処理されるパラメータを与える。 7.860 - \item[*] のようにオプション引数をつけるとそれがラベルとなる。 7.861 + \item First argument is the default label when \verb|\item|'s optional 7.862 + argument is given. 7.863 + \item Second argument will be processed for each item. 7.864 + \item[*] If a optional argument is given such as this, it will be the label. 7.865 \end{list} 7.866 7.867 - list環境の体裁を制御する変数には以下のものがある(括弧内は既定値)。 7.868 -水平方向: 7.869 -<refer list環境の体裁を制御する変数> 7.870 + Variables to control the list environment are as follow; (default value) 7.871 +horizontal: 7.872 +<refer variables to control list environment> 7.873 7.874 -list環境の体裁を制御する変数 7.875 -\labelwidth itemのラベルの幅 7.876 -\labelsep ラベルの右端と最初のアイテムのテキストとの間隔 7.877 -\leftmargin list環境内での左マージン 7.878 -\rightmargin 同右マージン (0pt) 7.879 -\itemindent itemの直前に加えられるインデント幅 (0pt) 7.880 -\linewidth 一行の幅 7.881 -\listparindent 各パラグラフの先頭のインデント(ただし\itemの付いている先 7.882 - 頭のパラグラフを除く)(0pt) 7.883 +variables to control list environment 7.884 +\labelwidth width of label 7.885 +\labelsep space between right of label and text of first item 7.886 +\leftmargin left margin within list environment 7.887 +\rightmargin right margin within list environment (0pt) 7.888 +\itemindent width of indent preceding item (0pt) 7.889 +\linewidth width of line 7.890 +\listparindent indent for each paragraph (except first paragraph with \item) 7.891 + (0pt) 7.892 7.893 -垂直方向: 7.894 -\topsep list環境に入る前のパラグラフと最初のitemとの間隔 7.895 -\partopsep list環境で新しいパラグラフをはじめる時に\topsepに加えら 7.896 - れる付加的な間隔 7.897 -\itemsep 連続するitemどうしの間隔 7.898 -\parsep 一つのitem内でのパラグラフどうしの間隔 7.899 - 7.900 +vertical: 7.901 +\topsep space between last paragraph before list environment and 7.902 + first item 7.903 +\partopsep space added to \topsep when starting a new paragraph in list 7.904 + environment 7.905 +\itemsep space between successive items 7.906 +\parsep space between paragraphs within the same item 7.907 7.908 itemize 7.909 -\begin{itemize} \item アイテム1 ... \item アイテムn \end{itemize} 7.910 -項目を列挙するための環境。 7.911 -最大4つまでネストできる。 7.912 -各レベルのitemの頭につく記号は、\labelitemi, \labelitemii, 7.913 -\labelitemiii, \labelitemiv で制御される。 7.914 +\begin{itemize} \item ITEM1 ... \item ITEMn \end{itemize} 7.915 +Produce a bulleted list. 7.916 +Can be nested to four levels. 7.917 +``bullets'' shown at top of each item of the four levels are controlled 7.918 +by \labelitemi, \labelitemii, \labelitemiii, \labelitemiv. 7.919 7.920 -itemize環境の体裁を制御する変数には以下のものがある。 7.921 -<refer list環境の体裁を制御する変数> 7.922 - 7.923 +Variables to control the itemize environment are; 7.924 +<refer variables to control list environment> 7.925 7.926 enumerate 7.927 -\begin{enumerate} \item アイテム1 ... \item アイテムn \end{enumerate} 7.928 -項目を番号つきで列挙するための環境。 7.929 -最大4つまでネストできる。 7.930 -各レベルのitemの頭につく番号は、enumi, enumii, enumiii, enumiv 7.931 -が保持していて、各itemのラベルは、\labelenumi, ..., \labelenumiv 7.932 -で生成される。また、\p@enumN\theenumN は \ref値を設定する。 7.933 -(Nはレベルの深さ。\ref値については\refの説明を参照せよ) 7.934 -たとえば 7.935 +\begin{enumerate} \item ITEM1 ... \item ITEMn \end{enumerate} 7.936 +Produce a numbered list. 7.937 +Can be nested to four levels. 7.938 +Numbers for items on each level are held in enumi, enumii, enumiii, enumiv. 7.939 +Each item's label are produced by \labelenumi, ..., \labelenumiv. 7.940 +\p@enumN\theenumN will set \ref's value. (N is the depth of level. 7.941 +refer \ref for value of \ref) 7.942 +For example, if declared 7.943 \def\theenumii{\alph{enumii}} 7.944 \def\p@enumii{\theenumi\theenumii} 7.945 \def\labelenumii{(\theenumii)} 7.946 -とすると \ref値が 3a などのように設定される。 7.947 +\ref's value will be 3a. 7.948 7.949 -enumerate環境の体裁を制御する変数には以下のものがある。 7.950 -<refer list環境の体裁を制御する変数> 7.951 +Variables to control enumerate environment are, 7.952 +<refer variables to control list environment> 7.953 7.954 item 7.955 \item \item[LABEL] 7.956 -itemize, enumerate, description 環境などで項目を開始する。 7.957 -[LABEL]を指定するとラベルとしてLABELを出力する。 7.958 +Start an item in itemize, enumerate, description environment. 7.959 +Output LABEL if [LABEL] is given. 7.960 7.961 description 7.962 -\begin{description} \item[見出し単語] 説明 ... \end{description} 7.963 -[見出し単語]を見出しとする 7.964 +\begin{description} \item[LABEL] CONTENTS ... \end{description} 7.965 +Produce [LABEL] as a label. 7.966 7.967 subitem 7.968 -\subitem 項目 7.969 -サブアイテムを定義。 7.970 +\subitem ITEM 7.971 +Define a subitem. 7.972 7.973 subsubitem 7.974 -\subsubitem 項目 7.975 -サブサブアイテムを定義。 7.976 +\subsubitem ITEM 7.977 +Define a subsubitem. 7.978 7.979 makebox 7.980 -\makebox[WID][POS]{オブジェクト} \makebox(X,Y)[POS]{オブジェクト} 7.981 -第1の書式では、オブジェクトをWIDで指定した幅として、\hbox 内の 7.982 -POSで指定した場所に配置する。POSにlを指定すると左寄せ、rを指定すると右寄せ、 7.983 -何も指定しないとセンタリングされる。 7.984 -第2の書式では、picuture環境で大きさ(X,Y)の(\unitlengthを基準とする) 7.985 -\hbox にオブジェクトを配置する。配置位置POSは第1の書式と同様。 7.986 +\makebox[WID][POS]{OBJECT} \makebox(X,Y)[POS]{OBJECT} 7.987 +First form will place OBJECT at position POS and width WID in a \box. 7.988 +For POS, object will be placed flush-left if l, flush-right if r, and 7.989 +centered if nothing is given 7.990 +In the second form, object will be placed in a \hbox sized (X,Y) (in 7.991 +\unitlength) within a picture environment. POS is the same as the first form. 7.992 7.993 mbox 7.994 -\mbox{オブジェクト} 7.995 -\makebox{オブジェクト}と同じ。 7.996 +\mbox{OBJECT} 7.997 +Same as \makebox{OBJECT}. 7.998 7.999 newsavebox 7.1000 \newsavebox{\CMD} 7.1001 -新規のボックス保存用コマンドを定義する。\CMDは \savebox コマンドで 7.1002 -ボックスを保存するために使う。\newsaveboxで宣言したコマンド名は 7.1003 -常にグローバルとなる。 7.1004 +Define a new box saving command. \CMD is used in a \savebox command to 7.1005 +save boxes. Commands defined by \newsavebox are always global. 7.1006 7.1007 savebox 7.1008 -\savebox{\CMD}{テキスト} 7.1009 -ボックスを組む内容である「テキスト」の結果を\CMDに保存する。 7.1010 -「テキスト」は \makebox への引数と全く同じであるが、「テキスト」を 7.1011 -処理した結果はその場に表示はしない。\usebox{\CMD}により処理したボックス 7.1012 -が置かれる。 7.1013 +\savebox{\CMD}{TEXT} 7.1014 +Save results of TEXT in \CMD to be boxed. 7.1015 +TEXT is the same as the argument of \makebox, but the results of 7.1016 +processing TEXT is not displayed in-place. Boxes processed by 7.1017 +\usebox{\CMD} will be placed. 7.1018 7.1019 sbox 7.1020 -\sbox{\CMD}{テキスト} 7.1021 -\saveboxと同じ。sboxはrobust, saveboxはfragile 7.1022 +\sbox{\CMD}{TEXT} 7.1023 +Same as \savebox. \sbox is robust, and \savebox is fragile. 7.1024 7.1025 framebox 7.1026 -\framebox{オブジェクト} 7.1027 -「オブジェクト」に枠をつけて\makeboxと同様の処理をする。 7.1028 -枠の線の太さは \framerule、オブジェクトとの間隔は \framesep で決まる。た 7.1029 -だしpicture環境で \framebox(X,Y){オブジェクト}とした場合は、picture環境 7.1030 -用の線の太さに従い、外枠とオブジェクトとの間隔は空けられない。 7.1031 +\framebox{OBJECT} 7.1032 +Do the same thing as \makebox with a frame. 7.1033 +The frame's width and space between the object are decided by \framerule 7.1034 +and \framesep. If used as \framebox(X,Y){OBJECT} in a picture 7.1035 +environment, width of frame will be dependant to the picture 7.1036 +environment's line width, and space between the object and frame can not 7.1037 +be opened. 7.1038 7.1039 fbox 7.1040 -\fbox{オブジェクト} 7.1041 -\framebox{オブジェクト}と同じ。 7.1042 -\fboxはrobust, \frameboxはfragile 7.1043 +\fbox{OBJECT} 7.1044 +Same as \framebox{OBJECT}. 7.1045 +\fbox is robust, \framebox fragile. 7.1046 7.1047 parbox 7.1048 \parbox[POS]{WIDTH}{TEXT} 7.1049 -TEXTをWIDThの幅で組んでボックスを作成する。ボックスの位置はPOSによって 7.1050 -c : センタリング(デフォルト) 7.1051 -b : ボックスの一番下の線が現テキストのラインに合う 7.1052 -t : ボックスの一番上の線が現テキストのラインに合う 7.1053 -のように決められる。\parboxではパラメータが以下のようにリセットされる。 7.1054 +Make a box of width WIDTH using TEXT. The box's position by POS is; 7.1055 +c : centering (default) 7.1056 +b : bottom of box matches present text 7.1057 +t : top of box matches present text 7.1058 7.1059 +In \parbox, parameters will be reset as; 7.1060 \parskip = 0pt 7.1061 \linewidth = \hsize 7.1062 \@totalleftmargin = 0pt 7.1063 @@ -720,64 +721,65 @@ 7.1064 7.1065 minipage 7.1066 \begin{minipage}[pos]{WIDTH} TEXT \end{minipage} 7.1067 -\parbox とほぼ同様WIDTHの幅のTEXTをボックスとして組む。ボックスの位置は 7.1068 -POSによって 7.1069 -c : センタリング(デフォルト) 7.1070 -b : ボックスの一番下の線が現テキストのラインに合う 7.1071 -t : ボックスの一番上の線が現テキストのラインに合う 7.1072 -のように決められる。 7.1073 -parboxと違い、TEXTは通常のパラグラフとして組まれる。 7.1074 +Make a box of width WIDTH using TEXT as \parbox. The box's position by 7.1075 +POS is; 7.1076 +c : centering (default) 7.1077 +b : bottom of box matches present text 7.1078 +t : top of box matches present text 7.1079 +TEXT will be processed as a normal paragraph, differing from \parbox. 7.1080 7.1081 rule 7.1082 \rule[RAISED]{WIDTH}{HEIGHT} 7.1083 -幅 WIDTH x 高さ HEIGHT の罫線を作る。RAISEDが指定された場合、その分だけ 7.1084 -上に上げられる。 7.1085 +Make a rule of WIDTH x HEIGHT. If RAISED is given, will be raised that 7.1086 +amount. 7.1087 7.1088 underline 7.1089 \underline{TEXT} 7.1090 -TEXTに下線をつけて表示。 7.1091 +Underline TEXT. 7.1092 7.1093 raisebox 7.1094 \raisebox{DISTANCE}[HEIGHT][DEPTH]{BOX} 7.1095 -BOXをDISTANCEだけ上げて組む。 7.1096 -HEIGHT, DEPTH を指定すると、TeXから見たBOXの「高さ」と「深さ」 7.1097 -(註:これらの用語についてはTeXBookなどを参照のこと) 7.1098 -を HEIGHT, DEPTH に指定する。 7.1099 +Raise BOX by DISTANCE. 7.1100 +If HEIGHT and DEPTH are given, TeX will take it as the height and depth 7.1101 +of the box. 7.1102 +(see TeXBook for more info) 7.1103 7.1104 tabbing 7.1105 \begin{tabbing} \= text1.1 \= text1.2 \\ \> text2.1 \> text2.2 \end{tabbing} 7.1106 -桁揃えを行う環境を作る(入れ子不可)。例えば、 7.1107 +Creates an environment of aligned columns (nesting allowed). For example, 7.1108 \begin{tabbing} 7.1109 - \= 項目1 \hspace*{2em} \= 項目2 \hspace*{3em} \= 項目3 \\ 7.1110 - \> いろは \> にほへ \> とちり \+ \\ 7.1111 - \> ぬるを \> わかよ \\ 7.1112 - \> たれそ \- \\ 7.1113 - \> つねな \> らむう \> ゐのお 7.1114 + \= ITEM1 \hspace*{2em} \= ITEM2 \hspace*{3em} \= ITEM3 \\ 7.1115 + \> aabbcc \> ddeeff \> gghhii \+ \\ 7.1116 + \> jjkkll \> mmnnoo \\ 7.1117 + \> ppqqrr \- \\ 7.1118 + \> ssttuu \> vvwwxx \> yyzzzz 7.1119 \end{tabbing} 7.1120 -上のtabbing環境は以下のように3つのタブ位置で組まれる。 7.1121 - (1番目) (2番目) (3番目) 7.1122 - いろは にほへ とちり 7.1123 - ぬるを をかよ 7.1124 - たれそ 7.1125 - つねな らむう ゐのお 7.1126 - \2em/ \3em/ 7.1127 -tabbing環境におけるタブ位置操作コマンドは以下の通り(nは1から): 7.1128 -\= n番目のタブ位置を現在位置に設定しタブカウンタ(n)を1進める 7.1129 -\\ 改行してタブカウンタをリセットする(n=1) 7.1130 -\> 位置をn番目のタブ位置に設定し、カウンタを1進める 7.1131 -\+ 次の行のタブカウンタの初期値に1加える \+ \\ とすると次の行の最初 7.1132 - の \> は2番目のタブ位置を示す. \+ を複数書くとその数だけタブカウ 7.1133 - ンタの初期値が増える 7.1134 -\- \+とは逆に、次の行のタブカウンタの初期値から1引く 7.1135 -\< 一つ前のタブカウンタに戻ってそのタブ位置をセット. 行頭のみ 7.1136 -\' \'以降を通常のタブ位置より \tabbingsep 分だけ右寄せして出力 7.1137 -\` \`以降のテキストをすべて右寄せして出力 7.1138 -\pushtabs それまで用いていたタブストップ位置を全てpush 7.1139 -\poptabs それまで用いていたタブストップ位置を全てpop. \pushtabs と 7.1140 - \poptabs は必ず対になっていなければならない. 入れ子可 7.1141 -\aX 7.1142 -Xは = か ' か ` tabbing環境でない通常のアクセントは 7.1143 - \a= \a' \a` で表わす 7.1144 +will be processed with three tab stops as, 7.1145 + (1st item) (2nd item) (3rd item) 7.1146 + aabbcc ddeeff gghhii 7.1147 + jjkkll mmnnoo 7.1148 + ppqqrr 7.1149 + ssttuu vvwwxx yyzzzz 7.1150 + \2em/ \3em/ 7.1151 +Commands to control the tabbing environment are; (n starts from 1) 7.1152 +\= Sets the nth tab stop position to the current position and increment 7.1153 + the tab counter (n) by 1. 7.1154 +\\ Start a new line and reset the tab counter (n=1) 7.1155 +\> Set the position to the nth tab stop and increment the tab counter by 1. 7.1156 +\+ Add 1 to the next line's tab counter's initial value. If written as 7.1157 + \+ \\, the next line's \> will give the position of the second tab 7.1158 + stop. Multiple \+ will accumulate tab counter's initial value. 7.1159 + 7.1160 +\- Reverse of \+. Decrease initial value of tab counter for next line 7.1161 + by 1. 7.1162 +\< Decrease value of tab counter by 1 and set the tab stop. Can be 7.1163 + only used at the beginning of a line. 7.1164 +\' Output at a position \tabbinsep right from the normal tab stop. 7.1165 +\` Output remaining text flush-right. 7.1166 +\pushtabs Push all tab stop positions being used. 7.1167 +\poptabs Push all tab stop positions being used. \pushtabs and \poptabs 7.1168 + must be used in pairs. Nesting allowed. 7.1169 +\aX In a tabbing environment, accents are produced by \a=, \a', \a` 7.1170 \kill Without outputting text, parse tabbing definition. 7.1171 7.1172 array 7.1173 @@ -851,10 +853,10 @@ 7.1174 \arraystretch : line spacing in array and tabular environments is done by 7.1175 placing a strut in every row of height and depth 7.1176 \arraystretch times the height and depth of the strut 7.1177 - produced by an ordinary \strut commmand. 7.1178 + produced by an ordinary \strut command. 7.1179 7.1180 Tabular environment cannot spread across pages. `supertabular.sty' 7.1181 -allow this. 7.1182 +allows this. 7.1183 7.1184 tabular* 7.1185 \begin{tabular*}{WIDTH}{PREAMBLE} ... \end{tabular*} 7.1186 @@ -1125,8 +1127,8 @@ 7.1187 bibliographystyle 7.1188 \bibliographystyle{STYLE} 7.1189 Style of numbering of bibliographies. 7.1190 -plain nomal 7.1191 -unsrt without sortingg 7.1192 +plain normal 7.1193 +unsrt without sorting 7.1194 alpha gives tag like "Foo94" 7.1195 abbrv omit the first name of author, publishing month, book title 7.1196 7.1197 @@ -1208,7 +1210,6 @@ 7.1198 print as the TeXbook's space character instead of as blank spaces. 7.1199 7.1200 styleparameter 7.1201 -まだ訳していないスタイルパラメータ。 7.1202 7.1203 topfigrule 7.1204 \topfigrule 7.1205 @@ -1279,83 +1280,15 @@ 7.1206 7.1207 YaTeX 7.1208 (setq auto-mode-alist (cons '("\\.tex$" . yatex-mode) auto-mode-alist)) 7.1209 -おそらくあなたが今使っているこのモード。 7.1210 -LaTeXを効率的に使うための多くの機能を盛り込んでいます。 7.1211 +The mode you are probably using now. 7.1212 +Bells and whistles for using LaTeX at a breeze. 7.1213 7.1214 -【発音について】 7.1215 -yatex.elなどプログラムを指す時は「やてっく」、システムを指す時は「やちょ 7.1216 -う」と読みます。 7.1217 - 7.1218 -【謝辞】 7.1219 -以下の方々の御協力を頂きました。ここに感謝申し上げます。 7.1220 - 7.1221 -(順不同) 7.1222 -峯恒憲さん(九州大) 7.1223 - Bibtex起動、typeset process の kill、エラー箇所の正しい判定 7.1224 - の要望その他を頂きました。 7.1225 - 7.1226 -森中秀明さん(アンリツ) 7.1227 - タイプセットバッファでの実行継続、lpq, bibtex起動、領域指定タイ 7.1228 - プセット後のプレビュー対象ファイルのデフォルト値の変更、 7.1229 - describe-mode、\verb の補完の要望、verbatim環境や\verbの中にある 7.1230 - \begin{}, \end{} を数えないようにする要望、などを頂きました。 7.1231 - 7.1232 -石坂裕毅さん(富士通) 7.1233 - YaTeX-get-error-file のバグレポートなどを頂きました。 7.1234 - 7.1235 -Bayardさん(asciinet) 7.1236 - min-outとの連係の不具合の報告を頂きました。 7.1237 - 7.1238 -Kけんさん(asciinet) 7.1239 - ms-dos固有の設定に関するバグレポートを頂きました。 7.1240 - 7.1241 -sa2cさん(asciinet) 7.1242 - Mule用のパッチを頂きました。 7.1243 - 7.1244 -桂川直己さん(筑波大) 7.1245 - 数え切れないバグレポートと要望を頂きました。またVzへの移植版であ 7.1246 - る laitex(雷鳥) を作成されました。 7.1247 - 7.1248 -三平善郎さん(慶応大) 7.1249 - 開き括弧の入力時の処理のモード分けのアイデアを頂きました。 7.1250 - 7.1251 -萩庭崇さん(慶応大) 7.1252 - begin型補完の内側に文字があった場合それらをインデントしてほしい 7.1253 - という要望を頂きました。 7.1254 - 7.1255 -田中健次郎さん(慶応大) 7.1256 - タイプセット時に未セーブ状態の関連ファイルをセーブして欲しいとい 7.1257 - う要望を頂きました。 7.1258 - 7.1259 -bauerさん(asciinet) 7.1260 - アクセント補完の要望とアクセント記号の規則の情報等を頂きました。 7.1261 - 7.1262 -佐々木たろうさん(asciinet) 7.1263 - 数式環境の処理に関する多様なアイデア、ウィンドウ選択処理に関する 7.1264 - ユーザインタフェースの繊細な改善案などを頂きました。 7.1265 - 7.1266 -Deslarさん(asciinet) 7.1267 - byte-compile関係のバグ報告などを頂きました。 7.1268 - 7.1269 -tadfさん(asciinet) 7.1270 - Demacsでのプロセス起動時のインタフェースの不具合の報告などを頂き 7.1271 - ました。 7.1272 - 7.1273 -ほんまたけるさん(asciinet) 7.1274 - パラグラフ境界をLaTeX用に設定しなおす要望などを頂きました。 7.1275 - 7.1276 -TUSKさん(asciinet) 7.1277 - Texinfoドキュメント(初版)を作成して頂きました。 7.1278 - 7.1279 -横田和也さん(asciinet) 7.1280 - dviout起動時の工夫の案、ミニバッファで読み込むもののヒストリを分 7.1281 - けるアイデアのきっかけをいただき、ヘルプファイルの項目の提供をし 7.1282 - て頂きました。 7.1283 - 7.1284 -kanbai-anさん(asciinet) 7.1285 - 日本語入力モード判定関数のバグを直すパッチなどを頂きました。 7.1286 +[pronunciation] 7.1287 +``ya-tek'' for programs as yatex.el, ``ya-cho'' when referring to the 7.1288 +whole system. ``ya-cho'' in Japanese stands for ``wild bird'' 7.1289 7.1290 7.1291 yatex 7.1292 +(setq auto-mode-alist (cons '("\\.tex$" . yatex-mode) auto-mode-alist)) 7.1293 <refer YaTeX> 7.1294
8.1 --- a/help/YATEXHLP.jp Thu Feb 02 17:18:29 1995 +0000 8.2 +++ b/help/YATEXHLP.jp Mon Apr 24 14:42:53 1995 +0000 8.3 @@ -136,18 +136,13 @@ 8.4 8.5 columnseprule 8.6 \addtolength{\columnseprule}{長さ} 8.7 -二段組の時の段間の罫線の太さ. 8.8 +二段組の時の段間の罫線の太さ. (default=0pt) 8.9 8.10 columnwidth 8.11 \addtolength{\columnwidth}{長さ} 8.12 二段組の時には (\textwidth - \columnsep)/2 8.13 そうでない時は、\textwidth 8.14 8.15 - 8.16 -columnseprule 8.17 -\addtolength{columnseprule}{長さ} 8.18 -\columnseprule 2段組みの時の段間の罫線の幅. (default=0pt) 8.19 - 8.20 mathindent 8.21 \addtolength{mathindent}{長さ} 8.22 \mathindent スタイルオプションで fleqn を指定した場合の、 8.23 @@ -344,6 +339,10 @@ 8.24 \@whilenum TEST \do {BODY} 8.25 この辺あとで 8.26 8.27 +whiledo{TEST}{BODY} 8.28 +TESTが真の間BODYを繰り返す。 8.29 + 8.30 + 8.31 nofiles 8.32 \nofiles 8.33 プリアンブルで宣言すると、.aux, .idx, .lof, .lot, .toc ファイルの作成が 8.34 @@ -938,12 +937,12 @@ 8.35 8.36 author 8.37 \author{著者名} 8.38 -\maketitleコマンドで出力する日付を設定する。 8.39 +\maketitleコマンドで出力する著者を設定する。 8.40 複数の著者を書くときは \and で区切って名前を書く。 8.41 8.42 date 8.43 \date{日付} 8.44 -\maketitleコマンドで出力する著者名を設定する。 8.45 +\maketitleコマンドで出力する日付を設定する。 8.46 \date を省略するとタイプセットした日の日付が出力される。 8.47 8.48 thanks 8.49 @@ -1254,6 +1253,9 @@ 8.50 るねきちさん(asciinet) 8.51 占い師だそうです。 8.52 8.53 +柱川さん(prc) 8.54 + 各所で暴れています。 8.55 + 8.56 三平善郎さん(慶應大) 8.57 開き括弧の入力時の処理のモード分けのアイデアを頂きました。 8.58 8.59 @@ -1294,6 +1296,9 @@ 8.60 Nop.Mさん(asciinet) 8.61 異なる環境での設定の不具合等のレポートを数多く頂きました。 8.62 8.63 +jaybirdさん(asciinet) 8.64 + 英語版のヘルプファイルを作成して頂きました。 8.65 + 8.66 内山滋さん(成蹊大学) 8.67 日本語入力モード判定関数のバグを直すパッチ、section-view のバグ 8.68 報告、* 付きセクションコマンド対応の要望、\right, \left のアドイ
9.1 --- a/yahtml.el Thu Feb 02 17:18:29 1995 +0000 9.2 +++ b/yahtml.el Mon Apr 24 14:42:53 1995 +0000 9.3 @@ -1,10 +1,26 @@ 9.4 ;;; -*- Emacs-Lisp -*- 9.5 ;;; (c ) 1994 by HIROSE Yuuji [yuuji@ae.keio.ac.jp, pcs39334@ascii-net.or.jp] 9.6 -;;; Last modified Wed May 4 05:31:29 1994 on 98fa 9.7 -;;; This is sample hack definition for HTML. 9.8 +;;; Last modified Mon Apr 24 22:52:17 1995 on pajero 9.9 +;;; This is PURELY tentative. 9.10 +;;; $Id$ 9.11 + 9.12 +;;;[Commentary] 9.13 ;;; 9.14 -;;; [Purely tentative version] 9.15 -;;; $Id$ 9.16 +;;; It is assumed you are already familiar with YaTeX. The following 9.17 +;;; completing featureas are available: ([prefix] means `C-c' by default) 9.18 +;;; 9.19 +;;; * [prefix] b X Complete environments such as `H1' which 9.20 +;;; normally requires newline. 9.21 +;;; * [prefix] s Complete declarative notations such as 9.22 +;;; `<a href="foo.html"> .... </a>' 9.23 +;;; * [prefix] l Complete typeface-changing commands such as 9.24 +;;; `<i> ... </i>' or `<samp> ... </samp>' 9.25 +;;; * menu-bar yahtml Complete all by selecting a menu item (Though I 9.26 +;;; hate menu, this is most useful) 9.27 +;;; 9.28 +;;; NOTE! This program is truly tentative. If you find some bright 9.29 +;;; future with this, please send me a mail to drive me to maintain this :) 9.30 + 9.31 9.32 (require 'yatex) 9.33 (defvar yahtml-prefix-map (copy-keymap YaTeX-prefix-map)) 9.34 @@ -12,31 +28,251 @@ 9.35 "Keymap used in yahtml-mode.") 9.36 (if yahtml-mode-map nil 9.37 (setq yahtml-mode-map (make-sparse-keymap)) 9.38 - (define-key yahtml-mode-map YaTeX-prefix yahtml-prefix-map)) 9.39 + (define-key yahtml-mode-map YaTeX-prefix yahtml-prefix-map) 9.40 + (define-key yahtml-mode-map "\M-\C-@" 'YaTeX-mark-environment) 9.41 + (define-key yahtml-mode-map "\M-\C-a" 'YaTeX-beginning-of-environment) 9.42 + (define-key yahtml-mode-map "\M-\C-e" 'YaTeX-end-of-environment)) 9.43 + 9.44 +(defvar yahtml-syntax-table nil 9.45 + "*Syntax table for typesetting buffer") 9.46 + 9.47 +(if yahtml-syntax-table nil 9.48 + (setq yahtml-syntax-table 9.49 + (make-syntax-table (standard-syntax-table))) 9.50 + (modify-syntax-entry ?\< "(" yahtml-syntax-table) 9.51 + (modify-syntax-entry ?\> ")" yahtml-syntax-table) 9.52 +) 9.53 +(defvar yahtml-command-regexp "[A-Za-z0-9]+" 9.54 + "Regexp of constituent of html commands.") 9.55 + 9.56 +;;; Completion tables for `form' 9.57 +(defvar yahtml-form-table '(("a") ("form"))) 9.58 +(defvar yahtml-user-form-table nil) 9.59 +(defvar yahtml-tmp-form-table nil) 9.60 + 9.61 +(defvar yahtml-env-table 9.62 + '(("html") ("head") ("title") ("body") ("dl") 9.63 + ("h1") ("h2") ("h3") ("h4") ("h5") ("h6"))) 9.64 + 9.65 +;;; Completion tables for typeface designator 9.66 +(defvar yahtml-typeface-table 9.67 + '(("defn") ("em") ("cite") ("code") ("kbd") ("samp") 9.68 + ("strong") ("var") ("b") ("i") ("tt") ("u")) 9.69 + "Default completion table of typeface designator") 9.70 +(defvar yahtml-user-typeface-table nil) 9.71 +(defvar yahtml-tmp-typeface-table nil) 9.72 + 9.73 +(defvar yahtml-prefer-upcases nil) 9.74 +(cond 9.75 + (yahtml-prefer-upcases 9.76 + (setq yahtml-form-table 9.77 + (mapcar (function (lambda (list) (list (upcase (car list))))) 9.78 + yahtml-form-table)) 9.79 + (setq yahtml-env-table 9.80 + (mapcar (function (lambda (list) (list (upcase (car list))))) 9.81 + yahtml-env-table)) 9.82 + (setq yahtml-typeface-table 9.83 + (mapcar (function (lambda (list) (list (upcase (car list))))) 9.84 + yahtml-typeface-table)))) 9.85 9.86 (defun yahtml-mode () 9.87 (interactive) 9.88 (yatex-mode) 9.89 (setq major-mode 'yahtml-mode 9.90 mode-name "yahtml") 9.91 - (make-local-variable 'YaTeX-ec) 9.92 - (setq YaTeX-ec "") 9.93 - (make-local-variable 'YaTeX-struct-begin) 9.94 - (setq YaTeX-struct-begin "<%1>") 9.95 - (make-local-variable 'YaTeX-struct-end) 9.96 - (setq YaTeX-struct-end "</%1>") 9.97 - (make-local-variable 'env-table) 9.98 - (setq env-table 9.99 - '(("HTML") ("HEAD") ("TITLE") ("BODY") ("H1") ("H2") ("H3") ("DL"))) 9.100 + (make-local-variable 'YaTeX-ec) (setq YaTeX-ec "") 9.101 + (make-local-variable 'YaTeX-struct-begin) (setq YaTeX-struct-begin "<%1>") 9.102 + (make-local-variable 'YaTeX-struct-end) (setq YaTeX-struct-end "</%1>") 9.103 + (mapcar 'make-local-variable 9.104 + '(env-table user-env-table tmp-env-table)) 9.105 + (setq env-table yahtml-env-table) 9.106 + (mapcar 'make-local-variable 9.107 + '(singlecmd-table user-singlecmd-table tmp-singlecmd-table)) 9.108 + (make-local-variable 'YaTeX-struct-name-regexp) 9.109 + (setq YaTeX-struct-name-regexp "[^/]+") 9.110 (make-local-variable 'YaTeX-prefix-map) 9.111 + (make-local-variable 'YaTeX-command-token-regexp) 9.112 + (setq YaTeX-command-token-regexp yahtml-command-regexp) 9.113 (setq YaTeX-prefix-map yahtml-prefix-map) 9.114 + (set-syntax-table yahtml-syntax-table) 9.115 (use-local-map yahtml-mode-map) 9.116 - (YaTeX-define-begend-key "bh" "HTML") 9.117 - (YaTeX-define-begend-key "bH" "HEAD") 9.118 - (YaTeX-define-begend-key "bt" "TITLE") 9.119 - (YaTeX-define-begend-key "bb" "BODY") 9.120 - (YaTeX-define-begend-key "bd" "DL") 9.121 - (YaTeX-define-begend-key "b1" "H1") 9.122 - (YaTeX-define-begend-key "b2" "H2") 9.123 - (YaTeX-define-begend-key "b3" "H3") 9.124 -) 9.125 + (YaTeX-define-key "s" 'yahtml-insert-form) 9.126 + (YaTeX-define-key "l" 'yahtml-insert-tag) 9.127 + (if YaTeX-no-begend-shortcut nil 9.128 + (YaTeX-define-begend-key "bh" "HTML") 9.129 + (YaTeX-define-begend-key "bH" "HEAD") 9.130 + (YaTeX-define-begend-key "bt" "TITLE") 9.131 + (YaTeX-define-begend-key "bb" "BODY") 9.132 + (YaTeX-define-begend-key "bd" "DL") 9.133 + (YaTeX-define-begend-key "b1" "H1") 9.134 + (YaTeX-define-begend-key "b2" "H2") 9.135 + (YaTeX-define-begend-key "b3" "H3")) 9.136 + (run-hooks 'yahtml-mode-hook)) 9.137 + 9.138 +(defun yahtml-define-menu (keymap bindlist) 9.139 + (mapcar 9.140 + (function 9.141 + (lambda (bind) 9.142 + (define-key keymap (vector (car bind)) (cdr bind)))) 9.143 + bindlist)) 9.144 + 9.145 +(defvar yahtml-menu-map nil "Menu map of yahtml") 9.146 +(defvar yahtml-menu-map-sectioning nil "Menu map of yahtml(sectioning)") 9.147 +(defvar yahtml-menu-map-listing nil "Menu map of yahtml(listing)") 9.148 +(defvar yahtml-menu-map-logical nil "Menu map of yahtml(logical tags)") 9.149 +(defvar yahtml-menu-map-typeface nil "Menu map of yahtml(typeface tags)") 9.150 + 9.151 +;;; Variables for mosaic url history 9.152 +(defvar yahtml-urls nil "Alist of global history") 9.153 +(defvar yahtml-url-history-file "~/.mosaic-global-history" 9.154 + "File name of url history") 9.155 + 9.156 +(cond 9.157 + ((and YaTeX-emacs-19 (null yahtml-menu-map)) 9.158 + (setq yahtml-menu-map (make-sparse-keymap "yahtml menu")) 9.159 + (setq yahtml-menu-map-sectioning (make-sparse-keymap "sectioning menu")) 9.160 + (yahtml-define-menu 9.161 + yahtml-menu-map-sectioning 9.162 + (nreverse 9.163 + '((1 "H1" . (lambda () (interactive) (yahtml-insert-begin-end "H1" nil))) 9.164 + (2 "H2" . (lambda () (interactive) (yahtml-insert-begin-end "H2" nil))) 9.165 + (3 "H3" . (lambda () (interactive) (yahtml-insert-begin-end "H3" nil))) 9.166 + (4 "H4" . (lambda () (interactive) (yahtml-insert-begin-end "H4" nil))) 9.167 + (5 "H5" . (lambda () (interactive) (yahtml-insert-begin-end "H5" nil))) 9.168 + (6 "H6" . (lambda () (interactive) (yahtml-insert-begin-end "H6" nil))) 9.169 + ))) 9.170 + (setq yahtml-menu-map-logical (make-sparse-keymap "logical tags")) 9.171 + (yahtml-define-menu 9.172 + yahtml-menu-map-logical 9.173 + (nreverse 9.174 + '((em "Embolden" . 9.175 + (lambda () (interactive) (yahtml-insert-tag "EM"))) 9.176 + (defn "Define a word" . 9.177 + (lambda () (interactive) (yahtml-insert-tag "DEFN"))) 9.178 + (cite "Citation" . 9.179 + (lambda () (interactive) (yahtml-insert-tag "CITE"))) 9.180 + (code "Code" . 9.181 + (lambda () (interactive) (yahtml-insert-tag "CODE"))) 9.182 + (kbd "Keyboard" . 9.183 + (lambda () (interactive) (yahtml-insert-tag "KBD"))) 9.184 + (samp "Sample display" . 9.185 + (lambda () (interactive) (yahtml-insert-tag "SAMP"))) 9.186 + (strong "Strong" . 9.187 + (lambda () (interactive) (yahtml-insert-tag "STRONG"))) 9.188 + (VAR "Variable notation" . 9.189 + (lambda () (interactive) (yahtml-insert-tag "VAR"))) 9.190 + ))) 9.191 + (setq yahtml-menu-map-typeface (make-sparse-keymap "typeface tags")) 9.192 + (yahtml-define-menu 9.193 + yahtml-menu-map-typeface 9.194 + (nreverse 9.195 + '((b "Bold" . 9.196 + (lambda () (interactive) (yahtml-insert-tag "B"))) 9.197 + (i "Italic" . 9.198 + (lambda () (interactive) (yahtml-insert-tag "I"))) 9.199 + (tt "Typewriter" . 9.200 + (lambda () (interactive) (yahtml-insert-tag "TT"))) 9.201 + (u "Underlined" . 9.202 + (lambda () (interactive) (yahtml-insert-tag "U"))) 9.203 + ))) 9.204 + (setq yahtml-menu-map-listing (make-sparse-keymap "listing")) 9.205 + (yahtml-define-menu 9.206 + yahtml-menu-map-listing 9.207 + (nreverse 9.208 + '((ul "Unnumbered" . 9.209 + (lambda () (interactive) (yahtml-insert-begin-end "UL" nil))) 9.210 + (ol "Numbered" . 9.211 + (lambda () (interactive) (yahtml-insert-begin-end "OL" nil))) 9.212 + (dl "Description" . 9.213 + (lambda () (interactive) (yahtml-insert-begin-end "DL" nil))) 9.214 + ))) 9.215 + (define-key yahtml-mode-map [menu-bar yahtml] 9.216 + (cons "yahtml" yahtml-menu-map)) 9.217 + (yahtml-define-menu 9.218 + yahtml-menu-map 9.219 + (nreverse 9.220 + (list 9.221 + (cons (list 'sect "Sectioning") 9.222 + (cons "sectioning" yahtml-menu-map-sectioning)) 9.223 + (cons (list 'list "Listing") 9.224 + (cons "Listing" yahtml-menu-map-listing)) 9.225 + (cons (list 'logi "Logical tags") 9.226 + (cons "logical" yahtml-menu-map-logical)) 9.227 + (cons (list 'type "Typeface tags") 9.228 + (cons "typeface" yahtml-menu-map-typeface)) 9.229 + ))) 9.230 + )) 9.231 + 9.232 +(defun yahtml-collect-url-history () 9.233 + "Collect urls from global history file." 9.234 + (interactive) 9.235 + (save-excursion 9.236 + (set-buffer 9.237 + (find-file-noselect (expand-file-name yahtml-url-history-file))) 9.238 + (goto-char (point-min)) 9.239 + (setq yahtml-urls) 9.240 + (message "Collecting global history...") 9.241 + (while (re-search-forward "^[A-Za-z]+:" nil t) 9.242 + (setq yahtml-urls 9.243 + (cons (list 9.244 + (buffer-substring 9.245 + (progn (beginning-of-line) (point)) 9.246 + (progn (skip-chars-forward "^ ") (point)))) 9.247 + yahtml-urls))) 9.248 + (message "Collecting global history...Done"))) 9.249 + 9.250 +(defun yahtml-insert-form (&optional form) 9.251 + "Insert <FORM option=\"argument\"> </FORM>." 9.252 + (interactive) 9.253 + (or form 9.254 + (setq form 9.255 + (YaTeX-cplread-with-learning 9.256 + "Form: " 9.257 + 'yahtml-form-table 'yahtml-user-form-table 9.258 + 'yahtml-tmp-form-table))) 9.259 + (let ((p (point))) 9.260 + (insert (format "<%s%s>\n" form (yahtml-addin (downcase form)))) 9.261 + (indent-relative-maybe) 9.262 + (save-excursion (insert (format "</%s>" form))) 9.263 + (if (search-backward "\"\"" p t) (forward-char 1)))) 9.264 + 9.265 +(defun yahtml-addin (form) 9.266 + "Check add-in function's existence and call it if exists." 9.267 + (let ((addin (concat "yahtml::" form))) 9.268 + (if (and (intern-soft addin) (fboundp (intern-soft addin))) 9.269 + (concat " " (funcall (intern addin))) 9.270 + ""))) 9.271 + 9.272 +(defun yahtml::a () 9.273 + "Add-in function for <a>" 9.274 + (or yahtml-urls (yahtml-collect-url-history)) 9.275 + (concat "href=\"" 9.276 + (completing-read "href: " yahtml-urls) 9.277 + "\"")) 9.278 + 9.279 +(defun yahtml-insert-begin-end (env &optional region-mode) 9.280 + "Insert <ENV> \\n </ENV> by calling YaTeX-insert-begin-end." 9.281 + (interactive "sEnv: ") 9.282 + (setq env (funcall (if yahtml-prefer-upcases 'upcase 'downcase) env)) 9.283 + (YaTeX-insert-begin-end env region-mode)) 9.284 + 9.285 +(defun yahtml-insert-tag (&optional tag) 9.286 + "Insert <TAG> </TAG> and put cursor inside of them." 9.287 + (interactive) 9.288 + (or tag 9.289 + (setq tag 9.290 + (YaTeX-cplread-with-learning 9.291 + "Tag: " 9.292 + 'yahtml-typeface-table 'yahtml-user-typeface-table 9.293 + 'yahtml-tmp-typeface-table))) 9.294 + (setq tag (funcall (if yahtml-prefer-upcases 'upcase 'downcase) tag)) 9.295 + (insert (format "<%s> " tag)) 9.296 + (save-excursion (insert (format "</%s>" tag)))) 9.297 + 9.298 +(provide 'yahtml) 9.299 + 9.300 +; Local variables: 9.301 +; fill-prefix: ";;; " 9.302 +; paragraph-start: "^$\\|\\|;;;$" 9.303 +; paragraph-separate: "^$\\|\\|;;;$" 9.304 +; End:
10.1 Binary file yatex.el has changed
11.1 --- a/yatex.new Thu Feb 02 17:18:29 1995 +0000 11.2 +++ b/yatex.new Mon Apr 24 14:42:53 1995 +0000 11.3 @@ -1,6 +1,10 @@ 11.4 What's new in YaTeX 11.5 yatex.el 各バージョンの変更点について 11.6 11.7 +1.58 YaTeX-close-paren-always が 'never なら常に自動的に括弧を閉じない。 11.8 + 英語版のLaTeXヘルプも完備した。 11.9 + fj.sourcesにポスト。 11.10 + 11.11 1.57 同じ環境がネストしている時の M-C-a, M-C-e のバグ修正。 11.12 \beginの行をTABでreindentした時は\endも同じ桁に揃える。 11.13 リジョンを環境で括った時の中身の処理を行う関数
12.1 --- a/yatexhks.el Thu Feb 02 17:18:29 1995 +0000 12.2 +++ b/yatexhks.el Mon Apr 24 14:42:53 1995 +0000 12.3 @@ -10,6 +10,33 @@ 12.4 12.5 ;Private definitions begins from here. 12.6 12.7 +(define-key YaTeX-user-extensional-map "0" 12.8 + '(lambda () (interactive) (YaTeX-make-section nil nil nil "part"))) 12.9 +(define-key YaTeX-user-extensional-map "1" 12.10 + '(lambda () (interactive) (YaTeX-make-section nil nil nil "chapter"))) 12.11 +(define-key YaTeX-user-extensional-map "2" 12.12 + '(lambda () (interactive) (YaTeX-make-section nil nil nil "section"))) 12.13 +(define-key YaTeX-user-extensional-map "3" 12.14 + '(lambda () (interactive) (YaTeX-make-section nil nil nil "subsection"))) 12.15 +(define-key YaTeX-user-extensional-map "4" 12.16 + '(lambda () (interactive) (YaTeX-make-section nil nil nil "subsubsection"))) 12.17 +(define-key YaTeX-user-extensional-map "5" 12.18 + '(lambda () (interactive) (YaTeX-make-section nil nil nil "paragraph"))) 12.19 +(define-key YaTeX-user-extensional-map "6" 12.20 + '(lambda () (interactive) (YaTeX-make-section nil nil nil "subparagraph"))) 12.21 +(define-key YaTeX-user-extensional-map "r" 12.22 + '(lambda () (interactive) (YaTeX-make-section nil nil nil "ref"))) 12.23 +(define-key YaTeX-user-extensional-map "i" 12.24 + '(lambda () (interactive) (YaTeX-make-singlecmd "item"))) 12.25 +(define-key YaTeX-user-extensional-map "\C-b" 12.26 + '(lambda () (interactive) (YaTeX-make-singlecmd "leftarrow"))) 12.27 +(define-key YaTeX-user-extensional-map "l" 12.28 + '(lambda () (interactive) (YaTeX-make-section nil nil nil "label"))) 12.29 +(define-key YaTeX-user-extensional-map "S" 12.30 + '(lambda () (interactive) (YaTeX-make-section nil nil nil "setlength"))) 12.31 +(define-key YaTeX-user-extensional-map "b" 12.32 + '(lambda () (interactive) (YaTeX-make-fontsize nil "bf"))) 12.33 + 12.34 12.35 ; 12.36 ;;; End of yatexhks.el
13.1 --- a/yatexlib.el Thu Feb 02 17:18:29 1995 +0000 13.2 +++ b/yatexlib.el Mon Apr 24 14:42:53 1995 +0000 13.3 @@ -2,7 +2,7 @@ 13.4 ;;; YaTeX library of general functions. 13.5 ;;; yatexlib.el 13.6 ;;; (c )1994-1995 by HIROSE Yuuji.[yuuji@ae.keio.ac.jp] 13.7 -;;; Last modified Thu Jan 26 11:15:29 1995 on pajero 13.8 +;;; Last modified Fri Feb 17 22:08:23 1995 on VFR 13.9 ;;; $Id$ 13.10 13.11 ;;;###autoload 13.12 @@ -315,6 +315,10 @@ 13.13 (set-mouse-position frame 0 0) 13.14 (and (featurep 'windows) (fboundp 'win:adjust-window) 13.15 (win:adjust-window)))) 13.16 + ((and (featurep 'windows) (fboundp 'win:get-buffer-window) 13.17 + (win:get-buffer-window buffer)) 13.18 + (win:switch-window (win:get-buffer-window buffer)) 13.19 + (select-window (get-buffer-window buffer))) 13.20 (t (switch-to-buffer buffer)))) 13.21 ) 13.22