diff --git a/docs/qanda.eng b/docs/qanda.eng new file mode 100644 index 0000000..631b09b --- /dev/null +++ b/docs/qanda.eng @@ -0,0 +1,302 @@ +%% +%% Q and A on YaTeX +%% +%% C-u C-x $ shows only questions. C-x $ displays the questions. +%% + +[Installation] +*Installing the manual + Copy yatexe to the info directory where your Emacs is installed, and + add the next line to the dir file of the same directory. + + * YaTeX: (yatexj). Yet Another tex-mode for Emacs. (Japanese). + + (After that, M-x info [RET] m yatex [RET] will give you Wild Bird's + manual. Hitting ? will show how to use info) + +*I ain't got the privilege to write in the Info directory... + + Get yourself made root. If you can't, have them install mule2 and + add + + (setq Info-default-directory-list + (cons "YOUR INFO DIRECTORY" + Info-default-directory-list)) + + to your ~/.emacs. Now your personal files will be added to the menu + when you invoke info. mule1 will not release memories, so processes + will pile up and be heavier on the system compared to mule2. Nemacs + has already become obsolete by the developers, so no further comments + for usage of Nemacs. Get yourself mule2 with flying colors :-) + +*Emacs can't find the help file. + + The help file is set to be placed in $EMACS/etc/ for Nemacs, Mule1 + and $EMACS/site-lisp/ for Mule2. If you don't have the privilege to + put them in a public location, copy it to your home directory and + set YaTeX-help-file to that file name. + +*I can't read info on Nemacs + + The info file was formatted on Mule, so it can't be read correctly on + Nemacs (or Demacs based on Nemacs) because the internal Japanese + processing is different. Read it on Mule. Use the Emacs-Lisp + package in texinfo-3.1.tar.gz to format the Texinfo file. + + +[Operations] +*I accidentally learned in a wrong LaTeX command. + + There should be a line with the wrong command in the .yatexrc file + in you home or current directory. Erase that line, do M-x + eval-current-buffer and save the results with C-x C-s. + +*I can't comment out the region. + + Probably the point is on a line withe \begin{} or \end{}. Go up or + down a line and do C-c >. + +*I was asked for a parent file when typesetting, and answered the wrong file. + + Re-read the child file with C-x C-v RET or re-type the parent file + with C-u C-c ^. + +*The typeset buffer is not shown when I get a typeset buffer on Demacs. + + This happens on Demacs 1.2.0, when the child process returns an + error level of 1 or more. If you are calling jlatex from a batch + file, call a dummy command that always returns errorlevel 0 at the + end. + +*How can I enter "\underline{\makebox[4em][l]{x y}{\tt z}}" more easily? + + Recursive completion can be used for inputting arguments in the + mini-buffer of a section type completion. Following is an example + showing the command in question. + + PROMPT KEYs ENTERED + C-c s und SPC RET + \underline{???}: C-c s makeb SPC RET + Width: 4em RET + makebox position (`lr'): - l RET + \makebox{???}: x y RET + \underline{???}: \makebox[4em][l]{x y} C-c l tt RET + \underline{???}: \makebox[4em][l]{x y}{\tt } z RET + +*How can I kill \footnote{} from \footnote{HOGE} + + Put the point to \footnote and do C-c k. This will kill the + \footnote{}. If you want to kill the whole thing including HOGE, do + C-u C-c k. + +*I want to make HONYARA into a footnote. + + Mark HONYARA and do C-c S footnote RET. (S in uppercase) + +*I want to make the verbatim environment I have now into verbatim*. + + Do C-c c on the line with \begin{verbatim} or \end{verbatim}. + +*I want to enclose a region with \verb. + + \verb isn't a maketitle-type, so there aren't any quick commands. + But you can use C-c $ to do the same thing. + + WHAT YOU NEED to make \verb + \verbWHAT YOU NEED to make \verb (insert \verb) + ^(C-@) (mark W) + \verbWHAT YOU NEED to make \verb + ^C-c $ (move point to end enclose + with $) + \verb$WHAT YOU NEED$ to make \verb (done!) + +*I want to have commands defined on a upper level file to be read in + when doing a typeset-region on a child file. + + When you are editing child files broken into sections and some + macros to be used are defined in upper level files, you'll need them + to do typeset-region. The macros needed will be copied to the + temporary file if you add %#REQUIRE to the end of the macro's + definition. + + Say you had a grand-child file + +-- main.tex --+ +---- sub.tex ----+ +-- subsub.tex --+ + | : | |%#jlatex main | |%#jlatex main | + |\include{sub} | |\include{macros} | |..... | + | : |<-| : |<-|%#BEGIN | + | : | | : | |TEXT YOU WANT | + | : | +-----------------+ |TYPESET IS | + +--------------+ ^ |HERE | + +-- macros.tex ---+ |%#END | + |\def\foo{bar} | |: | + |\def\hoge{hero} | +----------------+ + +-----------------+ + + In this case you change the \include{macros} line in sub.tex to + + \include{macros} %#REQUIRE + + and add to subsub.tex + + %#REQUIRE \include{macros} + + If %#REQUIRE is at the top of the line, the following will be copied + to the temporary file. So, macros.tex will be included only once + whether you are typesetting all the files, or doing a typeset-region + on sub.tex or subsub.tex. + +*I want to reuse ARGUMENTS I used in the last \foo{ARGUMENTS} + + Use the gmhist package. YaTeX works fine with gmhist. When you are + asked \foo{???}: in the mini-buffer, hitting M-p (ESC p) will get + you a history of what you have inputted in reverse. M-n will go + forward in the history. This input history can be used for + begin-type completion, section-type completion, evoking the + previewer, and print out commands. + + gmhist can be found at many Emacs-Lisp archive sights. For example, + ftp.ae.keio.ac.jp:pub/emacs-lisp/util/gmhist.tar.gz + +*ref<->label jump doesn't work. + + C-c g will start a forward search of ref/label. C-u C-c g will + start a backward search. If you want to continue searching for + \ref, hit C-s (C-r) twice and use the repeated search feature of the + incremental search. If the point to jump is in another file, that + file must be already opened. YaTeX-display-hierarchy (C-c d) can be + used to open all files at once. + +*I get a % at the end of the line when I do a fill-paragraph or auto-fill. + + NTT-jTeX will add an unnecessary space in the print out image if the + japanese paragraph is written with an indent. To avoid this, you + need to put a % at the end of the line. YaTeX will automatically + put a % so you can input indented text for NTT-jTeX. But there may + be a bug in the routine so please report if you find any %s otherwise + than at the end of a line. + +*Isn't the indentation too deep in itemize environments? + + Think so too? An alias Mr. K thought this was better and he's + the only one delighted hitting the TAB key. Wasn't my idea! (still + have a bit of a grudge) If you also think it's too deep, hit TAB at + the end of the line with \begin{itemize} within the environment. + Now it's too shallow? Umm... time for me to take a break. + + +[About Mule2] +*Equations are too dark to read when I use Mule2+hilit19. + + The default coloring of hilit19.el is too dark. Try putting the + next code in ~/.emacs or yatexhks.el. + + (if (and (featurep 'hilit19) (eq hilit-background-mode 'dark)) + (hilit-translate + string 'mediumspringgreen + formula 'khaki + label 'yellow-underlined)) + +*Can't I use font-lock? + + The document says, "pattern must be specified within a line". So it + seems you can't chose a pattern like from \begin to \end that laps + more than one line. But on the other hand, multiple line comments + in C seems to work fine... So what's the real story? Anybody know + the answer? If so, teach me, or try sending a fan letter to our + font-lock investigator-in-depress Taguchi (tagu@ae.keio.ac.jp) + +*It's sooo slow when I click YaTeX on the menu bar. + + I don't know why. Probably a problem with Emacs-19. You'll just + have to bear with it. It won't be so slow the second time. + Anyway, you probably won't use the menu at all, do you? + +[Customization] +*I don't use C-c b i much, so it would be better if I can start + completion after hitting C-c b. + + Put (setq YaTeX-no-begend-shortcut t) in your ~/.emacs. + +*An open parenthesis always get entered in pairs. + + This should be better, once you get used to it. If you still don't + like it, turn on modify-mode using C-c w m. Setting + YaTeX-close-paren-always to nil will give this feature from the start. + +*Funny things happen when I hit ;. + + YaTeX think you are in math mode and evokes math-mode-image + completion. If you are writing a equation that TeX will not give an + error and YaTeX mistakes what mode you are in, report it back to the + author. For mistaken judgements or if you want to enter a literal + ;, hit ; twice. C-u ; to use ; as a image-completion prefix. + +*I want YaTeX to enter the option arguments for a newenvironment. + + Read yatexadd.doc. If that's not enough, read yatexgen.doc and try + M-x YaTeX-generate. + +*I first defined \foo as a macro taking 3 arguments. Later I changed it + to take 4 arguments, but the section-type completion will ask me for + only 3 arguments. + + Use C-u 4 C-c s and tell it will take 4 arguments. You can change + the number of arguments anytime you want. + +*I made a argument-type addin function, but can't do completion after + the first two arguments. + + If you made a addin function like \foo{x}{y}{z} that takes 3 + arguments, then you need to learn in the dictionary that \foo will + take 3 arguments. This can be done by C-u 3 C-c s foo. You only + need to do it once. + +*My addin functions are overwritten by yatexadd. + + Formally, all private functions were written in your own yatexadd.el. + Now, all private functions are put in yatexhks.el. yatexhks.el will + be read in at the end of YaTeX's initialization, so you can overwrite + definitions in yatexadd.el. + +[ETC] +*Mailing lists? + + A question, so an answer. The mailing list for YaTeX(Wild Bird) and + it's implementation to Vz, Raicho (by katsura@prc.tsukuba.ac.jp) is + "fj Wild Bird Society". Send a mail like + + To: yatex-control@harvest.jaist.ac.jp + Subject: append + ----- + Hi! See any birds fly by? + + and you're in. The text will be used as your profile. (you can + change it later) Once you're in, you'll get a reply with lists of + commands used in the mailing list. Join along and help adding new + feathers to Wild Bird. BTW, if you haven't guessed it yet, yes, + this mailing list is in Japanese. But give us a try anyway. You're + always welcome. + +*Help, help HELP!! + + Ways of getting answers in fastest order. + + *Look for someone near you who knows what's he/she's doing. + *Post a question to the mailing list. + *Send mail to yuuji@ae.keio.ac.jp + + take a pick. + +*Picking a question in this file with C-u C-x $ and hitting C-x $ takes + me to a weird world. + + You too? Try marking the question before C-x $ and to C-x C-x to + take you back to it. (mule2 doesn't seem to have the same problem) + + +Local Variables: +mode: indented-text +fill-column: 72 +fill-prefix: " " +End: + diff --git a/docs/yatexadd.doc b/docs/yatexadd.doc index 33ab609..189d373 100644 --- a/docs/yatexadd.doc +++ b/docs/yatexadd.doc @@ -146,9 +146,9 @@ ���ʂ� ~/.yatexrc �� ./.yatexrc �ɕۑ�����܂��B�g�p��� ���� YaTeX::documentstyle �֐��̒�`������񂭂������B - �E�֐� YaTeX:check-comletion-type - ���� 'begin �܂��́A'section �܂��́A'maketitle - ���� �t���֐����Ă΂�鎞�ɁA�s���Ă���⊮�̌`�����A�����ŗ^ + �E�֐� YaTeX:read-coordinates + ���� ��{�v�����v�g�AX���W�v�����v�g�AY���W�v�����v�g(�S�ďȗ���) + ���� �u��{�v�����v�g X���W�v�����v�g:�v�Ƃ����v�����v�g���o�� �āAX���W��ǂݍ��݁A�u��{�v�����v�g Y���W�v�����v�g:�v�� �o���āAY���W��ǂݍ��݁A(X���W,Y���W) �̗l�Ȍ`�����쐬���܂��B �������͂������^�[���������Ă��A(,)���Ԃ���܂��B diff --git a/docs/yatexe.tex b/docs/yatexe.tex index 6149cfe..137d6a7 100644 --- a/docs/yatexe.tex +++ b/docs/yatexe.tex @@ -1659,6 +1659,11 @@ -*'. @end defvar +@defvar YaTeX-skip-default-reader +Non-nil for this variable skips the default argument reader of +section-type command when add-in function for it is not defined. +@end defvar + @node Sample definitions, Hook variables, All customizable variables, Lisp variables @comment node-name, next, previous, up @subsection Sample definitions diff --git a/docs/yatexgen.doc b/docs/yatexgen.doc index 7e9f103..8734c21 100644 --- a/docs/yatexgen.doc +++ b/docs/yatexgen.doc @@ -162,11 +162,11 @@ �y�ł�������z - ����ꂽ�ʂ�ɐ������w����^����ƁA���]�݂̂���y�֐����o���オ - ��܂��B�����؂����āA~/.emacs �ɂł����荞�݂܂��傤�B�{���� - ��������������悤�Ǝv�����̂ł����A����Ɏ��s����Ɩ��������‚��� - �Ă�����Ȃ��̂ŁA��߂Ă����܂����B��ꂻ����ʓ|�Ȑl�́A�쒹�Ȃ� - ���g���Ă��Ȃ����? + ����ꂽ�ʂ�ɐ������w����^����ƁA���]�݂̂���y�֐����o���� + ����܂��B�����؂����āA~/yatexhks.el �ɂł����荞�݂܂��傤�B + �{���͂�������������悤�Ǝv�����̂ł����A����Ɏ��s����Ɩ����� + ���‚����Ă�����Ȃ��̂ŁA��߂Ă����܂����B��ꂻ����ʓ|�Ȑl�́A + �쒹�Ȃ񂩎g���Ă��Ȃ����? �y�Ō�Ɂz diff --git a/docs/yatexj.tex b/docs/yatexj.tex index e8fe39f..ff555d2 100644 --- a/docs/yatexj.tex +++ b/docs/yatexj.tex @@ -1865,6 +1865,11 @@ �h�w��s(-*- xxx -*-)���ݒ肳��Ă���B @end defvar +@defvar YaTeX-skip-default-reader +Non-nil �ɐݒ肷���section�^�R�}���h�̈������͎��A�A�h�C���֐����Ȃ���� +�~�j�o�b�t�@�ł̓ǂݍ��݂������ɓ��͂�����������B +@end defvar + @node Sample definitions, Hook variables, All customizable variables, Lisp variables @comment node-name, next, previous, up @subsection �J�X�^�}�C�Y�ϐ��ݒ�� diff --git a/docs/yatexref.eng b/docs/yatexref.eng new file mode 100644 index 0000000..dc593db --- /dev/null +++ b/docs/yatexref.eng @@ -0,0 +1,164 @@ +---------------------------------------------------------------------------- + YaTeX + Quick Reference +---------------------------------------------------------------------------- + + +[Caution] + + You can customize the prefix key (C-c by default) so this will be + written as [prefix] in this document. If you have not customized + [prefix] a will stand for C-c a. + + Begin-type commands are those like \begin-\end, Section-type + commands are those that take arguments as \section{NAME}, + Large-type commands are font/size definition commands that are put + in parenthesis as {\tt}, Maketitle-type commands are commands that + don't take arguments as \maketitle. + +[Completion] + + *Accent completion [prefix] a + *Begin-type completion [prefix] b SPC + *Begin-type completion (region) [prefix] B SPC + *Begin-type completion (immediate) [prefix] b initial_of_environment + *Begin-type completion (immediate on region) + [prefix] B initial_of_environment + *End completion [prefix] e + *Large-type completion [prefix] l + *Large-type completion (region) [prefix] L + *Maketitle-type completion [prefix] m + *Section-type completion [prefix] s + *Section-type completion (region) [prefix] S + *General completion [prefix] SPC + + For the initials used in immediate Begin-type completions, see the + Info manual. In the (region)-mode, region between the mark and + the present point will be put within a \begin{foo}...\end{foo} or + {\large } and such. + + *Math sign image completion ; + *Greek letter image completion : + + Above two commands may be used only in the math environment. If + you want to use the completion in other environments, do C-u and + then ; or :. + + +[Process invoking] + + *invoke bibtex [prefix] tb + *invoke latex [prefix] tj + *invoke makeindex [prefix] ti + *kill current typesetting process [prefix] tk ** + *lpr dvi-file [prefix] tl + *lpr dvi-file (all pages) C-u [prefix] tl + *invoke previewer [prefix] tp + *invoke lpq [prefix] tq + *invoke jlatex (on region) [prefix] tr + + Hitting [prefix] t will get you the menu, so there is no need to + remember the key after [prefix] t. + + **Unavailable on MS-DOS + + The region used in [prefix] tr are the lines between %#BEGIN and + %#END. If %#END is not found then from %#BEGIN and the end of + the text. If both are missing then from the mark to the + present point. + +[Cursor Jump] + *To the typeset error [prefix] ' + + Will jump to the position where the typeset error occurred from the + end. Only effective when there was a error returned from latex. + + *Jump to corresponding object [prefix] g + *Jump to corresponding object (in another her window) [prefix] 4g + + Where to jump will be decided by what's on the line [prefix] g was + hit. + + -on a \begin{} or \end{} to a matching \end{} or \begin{} + -on a %#BEGIN or %#END to a matching %#END or %#BEGIN + -on a \include(only) or \input to the matching file + -on a \ref or \label to the matching \label or \ref + -on a \cite or \bibitem to the matching \bibitem or \cite + + *Jump to the main file [prefix] ^ + *Jump to the main file in another window [prefix] 4^ + + To tell YaTeX which the main file is, write + %#jlatex MAIN_FILE_NAME + somewhere in the file you are creating. + + *Jump to beginning of environment ESC C-a + *Jump to end of environment ESC C-e + *Mark whole environment ESC C-h + +[Commenting out by %] + + *Comment out the region/environment [prefix] > + *Uncomment the region/environment [prefix] < + + If the point is on a line with \begin{} or \end{}, everything + within the environment will be (un)commented. Otherwise, + everything between the mark and point will be (un)commented. + + *Comment out a paragraph or environment declaration [prefix] . + *Uncomment out a paragraph or environment declaration [prefix] , + + If the point is on a line with \begin{} or \end, the two lines + with it will be (un)commented. Otherwise the paragraph that the + point is in will be (un)commented. + +[ETC] + + *Align and fill item [prefix] i + + Available only in an environment. Will do a hanging indent on the + \item. + + *Change LaTeX command [prefix] c + + On a line with \begin{} or \end{}, will change the name of the + environment. On a section-type command, will change the command + name, and also change arguments if invoked on the argument. For + large-type command, will change font/size definitions. On a math + mode command entered using image-type completion, will return to + the completion operation. + + *Kill commands [prefix] k + + For \begin{}/\end{}, %#BEGIN/%#END, and parenthesis, will delete + them in pairs. For section-type commands, font/size definition, + will delete the command ant parenthesis surrounding them. + + *Enclose region with () [prefix] ) + *Enclose region with {} [prefix] } + *Enclose region with [] [prefix] ] + *Enclose region with $$ [prefix] $ + + *Toggle modes [prefix] w + + Will toggle between modify mode and math mode. + + *%# editing [prefix] % + *Show columns in tabular/array [prefix] & + *Online help [prefix] h + *Online apropos [prefix] / + *Intelligent return ESC RET + + Intelligent return can be used in tabular, array, itemize, + enumerate, list and description environments. + + *Browse included structure [prefix] d + + HIROSE Yuuji + yuuji@ae.keio.ac.jp + pcs39334@asciinet.or.jp + +Local variables: +mode: text +fill-prefix: " " +End: diff --git a/help/YATEXHLP.eng b/help/YATEXHLP.eng index b734653..56d479a 100644 --- a/help/YATEXHLP.eng +++ b/help/YATEXHLP.eng @@ -1,6 +1,6 @@ textfloatsep \addtolength{\textfloatsep}{LENGTH} -Length between the text and, float of the top or bottom of page +Length between the text and a float at the top or bottom of page floatsep \addtolength{\floatsep}{LENGTH} @@ -8,50 +8,52 @@ oddsidemargin \setlength{\oddsidemargin}{LENGTH} -�E�y�[�W�̍��[����1�C���`(2.54cm)�̐��Ɩ{���̋��� +Length between text and a line 1 inch from the left of page, on the +right page + pagestyle -\pagestyle{�X�^�C��} -�o�̓y�[�W�̃w�b�_�ƃt�b�^�̃X�^�C�������߂�B�X�^�C���ɂ͈ȉ��̂��̂�����: -plain �W���X�^�C��. �t�b�^�Ƀy�[�W�ԍ������‚���. -empty �w�b�_�ɂ��t�b�^�ɂ������o�͂��Ȃ�. -headings �w�b�_�ɃZ�N�V�����ɉ��������o���ƃy�[�W�ԍ����‚� - �t�b�^�ɂ͉����o�͂��Ȃ�. -myheadings headings�̃X�^�C���ŁA�w�b�_�̏��� \markbpth �� - \markright �Ŏw��ł���. +\pagestyle{STYLE} +Determines header and footer styles on output page. There are the +following styles +plain Standard style. Page number only in footer. +empty No headers or footers are output. +headings Puts page number and headings according to section in header. + No footer is output. +myheadings User defines what goes into headings using \markbpth and \markright thispagestyle -\thispagestyle{�X�^�C��} -���݂̃y�[�W�����̃X�^�C�������肷��B +\thispagestyle{STYLE} +Determines the STYLE for the current page only pagenumbering -\pagenumbering{�X�^�C��} -�y�[�W�ԍ��̃X�^�C�������߂�B�X�^�C���ɂ͈ȉ��̂��̂�����: -arabic �A���r�A���� -alph �������̉p�� -Alph �啶���̉p�� -roman �������̃��[�}���� -Roman �啶���̃��[�}���� +\pagenumbering{STYLE} +Determines the STYLE of page numbers. Type of STYLEs are, +arabic arabic numerals +alph lowercase alphabets +Alph uppercase alphabets +roman lowercase roman numerals +Roman uppercase roman numerals shortstack -\shortstack[�ꏊ]{�d�˂�\\�\������\\���e} -{}���̓��e��\\�ŋ�؂�ꂽ�P�ʖ��ɐςݏd�˂ĕ\������B -[�ꏊ]�́Al(����)�Ac(�Z���^�����O)�Ar(�E��)�̂����ꂩ�B +\shortstack[POSITION]{TEXT\\TO BE\\STACKED} +Stack and display contents within {}, separated by \\. +Possible [POSITION]s are, l(left), c(center), r(right). newlength \newlength{NAME} -NAME�Ƃ��������R�}���h��V���ɐ錾����B +Declare NAME as a length command. addtolength -\addtolength{�����R�}���h}{���l} -��1�����̒������2�Ɉ����̐��l�𑫂��B -��\�I�ȃX�^�C���p�����[�^�ɂ‚��Ă� \setlength �̍����Q�Ƃ���B +\addtolength{LENGTH COMMAND}{VALUE} +Adds VALUE to LENGTH COMMAND. +See \setlength for major style parameters. setlength -\setlength{�����R�}���h}{���l} -��1�����̒������2�Ɉ����̐��l�ɐݒ肷��B -��\�I�ȃX�^�C���p�����[�^�͈ȉ��̒ʂ�: -(�X�^�C���p�����[�^�̕ύX�̓v���A���u���ōs������) +\setlength{LENGTH COMMAND}{VALUE} +Set the value of LENGTH COMMAND to VALUE. +Major style parameters are: +(Style parameters must be changed in the preamble) \evensidemargin \footheight \footskip \headheight \headsep \marginparsep \marginparwidth \oddsidemargin \textheight \textwidth \topmargin \topskip @@ -59,180 +61,175 @@ \columnsep \columnseprule \mathindent settowidth{\NAME}{TEXT} -\hbox{TEXT}�̏o�͌��ʂƓ������ɒ���\NAME ���Z�b�g����B +Set the value of \NAME to the width of \hbox{TEXT}. evensidemargin \setlength{\evensidemargin}{LENGTH} -���y�[�W�̍��[����1�C���`(2.54cm)�̐��Ɩ{���̋��� +Length between body and a line 1 inch from the left of page, on the +left page. footheight \setlength{\footheight}{LENGTH} -�t�b�^�̍��� +Height of footer. footskip \setlength{\footskip}{LENGTH} -�{���̔��̉��[�ƃt�b�^�̋��� +Length between bottom of body and footer. headheight \addtolength{\headheight}{LENGTH} -�w�b�_�̍��� +Height of header. headsep \setlength{\headsep}{LENGTH} -�w�b�_�Ɩ{���̊Ԋu +Length between top of body and header. marginparsep \addtolength{\marginparsep}{LENGTH} -�T���Ɩ{���̊Ԋu +Length between the body and marginal notes marginparwidth \addtolength{\marginparwidth}{LENGTH} -�T���̕� +Width of marginal notes. oddsidemargin \addtolength{\oddsidemargin}{LENGTH} -�E�y�[�W�̍��[����1�C���`(2.54cm)�̐��Ɩ{���̋��� +Length between body and a line 1 inch from the left of page, on the +right page. + textheight \addtolength{\textheight}{LENGTH} -�{���̍��� +Height of text. textwidth \addtolength{\textwidth}{LENGTH} -�{���̕� +Width of body. topmargin \addtolength{\topmargin}{LENGTH} -�y�[�W��[����1�C���`�̐��ƃw�b�_�̋��� +Length between the header and a line one inch from the top of the page. topskip \addtolength{\topskip}{LENGTH} -�{���̔��̏�[�ƈ�s�ڂ̃e�L�X�g�Ƃ̊Ԋu +Length between top of the body to the first line of the text. parindent \setlength{\parindent}{LENGTH} -\parindent �i���̐擪�̎�������. +Width of indentation at the beginning of a paragraph. linewidth \addtolength{\linewidth}{LENGTH} -\linewidth �s�̕�. +Width of lines. baselineskip \addtolength{baselineskip}{LENGTH} -\baselineskip �s�̃x�[�X���C���Ԃ̍Œ���̍���. +Minimum height between baselines (bottom of a line). baselinestretch \renewcommand{baselinestretch}{1.5} -\baselinestretch \baselineskip �ɏ悸��W��. (default=1) -(* \setlength�Ȃǂł͂Ȃ��A\renewcommand�ōĒ�`����B) +Value to multiply \baselineskip. (default is 1) +(* Redefine using \renewcommand. Don't use \setlength. parskip \addtolength{\parskip}{LENGTH} -\parskip �i���O�̐����X�y�[�X. +Vertical space before a paragraph. columnsep \addtolength{\columnsep}{LENGTH} -\columnsep 2�i�g�݂̎��̒i�Ԃ̕�. +Width between columns in a two column environment. columnseprule \addtolength{\columnseprule}{LENGTH} -��i�g�̎��̒i�Ԃ̌r���̑���. +Width of ruler to separate columns in a two column environment. +(default is 0pt) columnwidth \addtolength{\columnwidth}{LENGTH} -��i�g�̎��ɂ� (\textwidth - \columnsep)/2 -�����łȂ����́A\textwidth - - -columnseprule -\addtolength{columnseprule}{LENGTH} -\columnseprule 2�i�g�݂̎��̒i�Ԃ̌r���̕�. (default=0pt) +(\textwidth - \columnsep)/2 in a two column environment. +Otherwise, equal to \textwidth. mathindent \addtolength{mathindent}{LENGTH} -\mathindent �X�^�C���I�v�V������ fleqn ���w�肵���ꍇ�́A - ���}�[�W������̐����̎�������. +Width of indentation of a equation from the left margin, when fleqn is +defined as style option. LaTeX \LaTeX -\LaTeX �̃��S��\���B\LaTeX �̒�`�͈ȉ��̒ʂ�B +Display \LaTeX logo. Definition of \LaTeX is; \def\LaTeX{{\rm L\kern-.36em\raise.3ex\hbox{\sc a}\kern-.15em T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} fragile -** LaTeX�p�� ** -�����ɂ���ēW�J���ʂ��ς��悤�ȃR�}���h�������B -���̋t�� robust �ȃR�}���h�B +** LaTeX term ** +Any command which expanded result changes by an argument. +Opposite is a robust command. robust -** LaTeX�p�� ** -�W�J���ʂ���ɕς��Ȃ��悤�ȃR�}���h�������B -�t�H���g/�T�C�Y�w��q�A�����R�}���h�A�������[�h���Ɏg�������̃R�}���h�� -robust�ȃR�}���h�B -(maketitle�^�R�}���h�̂����I�v�V����������S���Ƃ�Ȃ����̂ƍl���ėǂ�) +** LaTeX term ** +Commands which expanded results are always the same. +Font type/size selection commands, length commands, and most commands +used within math mode is robust. +(maketitle type commands that don't take any arguments) protect -\protect�ufragile�ȃR�}���h�v -�����ɂ���Č��ʂ��ς��悤�ȃR�}���h���ufragile�ȃR�}���h�v�ƌ����B -����A���������낢��ȉӏ��ŎQ�Ƃ����R�}���h���u�������������R�}���h -�ƌ����B����� chapter �� caption �Ȃǖڎ��Ȃǂ���Q�Ƃ����������Ƃ�� -�̂�Atabular/array �‹��� @ �\�����Y������B +\protect `a fragile command' +Commands that the result changes according to it's arguments are +called "fragile commands". When an argument is referenced in more +than one place, the command is said to "take a moving argument". +chapter and caption, whose argument will be used in the table of +contents, or an @ in an tabular/array environment are examples. -���āA�����́u�������������R�}���h�v�̈����Ɂufragile�ȃR�}���h�v�� -�^���鎞��(fragile�ȃR�}���h�̒��O��)�g���̂� \protect �ł���B�ȉ��͓T -�^�I�ȗ��p��ł���B +When a "fragile command" is used in a "moving argument", it must be +preceded by a \protect. Following is an example. \newcommand{\thissystem}[1]{YaTeX version #1} -\chapter{\protect \thissystem{1.50}�ɂ‚���} +\chapter{About \protect \thissystem{1.50}} newcommand -\newcommand{\�R�}���h��}[�����̐�]{��`} -�u�R�}���h���v���u�����̐��v�‚̈��������u��`�v�ł���}�N���Ƃ��Ē�` -����B��`����n�Ԗڂ̈����� #n �Ƃ��ĎQ�Ƃ���B +\newcommand{\NAME}[ARGS]{DEF} +Define a macro \NAME as DEF, taking ARGS number of arguments. The nth +argument will be referred as #n in the definition. +If used as \newcommand{\foo}[1]{\underline{#1}} -�Ƃ���� \foo{bar} �� \underline{bar} �ƓW�J�����B���������ăt�H���g�w -��q���܂ޏꍇnewcommand��{}�ɂ‚��āA +\foo{bar} will be expanded to \underline{bar}. When a font selection +command is used as \newcommand{\foo}[1]{\bf #1} -�Ƃ���� \foo{bar} ���e�L�X�g���� \bf bar �ƓW�J����Ă��܂��̂ŁA +\foo{bar} will be expanded as \bf bar in the text, so, it must be used as \newcommand{\foo}[1]{{\bf #1}} -�Ƃ��Ȃ���΂Ȃ�Ȃ��B - �u�R�}���h���v�̃}�N�������ɒ�`����Ă���ꍇ�̓G���[�ƂȂ�B�Ē�`�� -��ꍇ�́A\renewcommand���g���B +If NAME is already defined as a macro, it will return an error. To +redefine, use \renewcommand. renewcommand -\renewcommand{\�R�}���h��}[�����̐�]{��`} -���ɒ�`����Ă���R�}���h��ʂ̓��e�ōĒ�`����B -�ȉ��� \newcommand �̐����B +\renewcommand{\NAME}[ARGS]{DEF} +Redefine an already defined command. newenvironment -\newenvironment{�‹���}[�����̐�]{��`1}{��`2} -�V���Ȋ‹����`����B -\begin{�‹���}�̎��̓W�J���e���u��`1�v��\end{�‹���}�̎��̓W�J���e�� -�u��`2�v�ɋL�q����B - \newcommand{\�‹���}{��`1} \def{\end�‹���}{��`2} -�Ɠ��l�B +\newenvironment{NAME}[ARGS]{DEF1}{DEF2} +Define a new environment. +\begin{NAME} will be replaced by DEF1 and \end{NAME} will be replaced +by DEF2. Same as + \newcommand{\NAME}{DEF1} \def{\end{\NAME}}{DEF2} renewenvironment -\renewenvironment{�‹���}[�����̐�]{��`1}{��`2} -���ɒ�`����Ă���u�‹����v��ʂ̓��e�ōĒ�`����B -�ȉ��́A\newenvironment�̐����B - +\renewenvironment{NAME}[ARGS]{DEF1}{DEF2} +Redefine an environment NAME that already exists. typeout -\typeout{���b�Z�[�W} -�^�C�v�Z�b�g���Ɂu���b�Z�[�W�v��[���ɏo�͂���B +\typeout{MESSAGE} +Output MESSAGE to the terminal while typesetting. typein -\typein{���b�Z�[�W} \typein[\�}�N��]{���b�Z�[�W} -�^�C�v�Z�b�g���Ɂu���b�Z�[�W�v���v�����v�g�ɏo���A���͂������ʂ����s����B -���̏����ł́A�u\�}�N���v����͂������̂ɒ�`����B +\typein{MESSAGE} \typein[\MACRO]{MESSAGE} +Output MESSAGE to terminal and execute the input. +In the second form, \MACRO will be defined as the input. par \par -�i���̋�؂�̖���������B��s�Ɠ����B +Used to separate paragraphs. Same as a blank line. everypar \everypar @@ -240,264 +237,269 @@ nopagebreak \nopagebreak[i] (i = 0,1,2,3,4) -���ł�����i�ŗ}������([i]���ȗ������4)�B +Prevents pages to be broken by the strength of i. (default is 4) pagebreak \pagebreak[i] (i = 0,1,2,3,4) -���ł�����i�ő���([i]���ȗ������4)�B +Forces pages to be broken by the strength of i. (default is 4) linebreak \linebreak[i] (i = 0,1,2,3,4) -���s������i�ő���([i]���ȗ������4)�B +Forces lines to be broken by the strength of i. (default is 4) nolinebreak \nolinebreak[i] (i = 0,1,2,3,4) -���s������i�ŗ}������([i]���ȗ������4)�B +Prevents lines to be broken by the strength of i. (default is 4) samepage \samepage -���ł��֎~����B +Prevents page to be broken. RTFM obeycr \obeycr - �� \\. �ɒ�`����B��\restorecr +Define as \\. see \restorecr restorecr \restorecr -\obeycr�ŕύX�����̒�`�����ɖ߂��B +Restore 's definition changed by \obeycr. \ -\\ \\[����] -(�C�ӂ̏ꏊ��)���s����B�i�����ł́A\newline �Ɠ����B -�I�v�V����������[����]���w�肷��ƁA���̍s�Ƃ̊Ԋu�� -\vspace{LENGTH}�ɂ���Ċm�ۂ���B +\\ \\[LENGTH] + +Breaks a line at any given point. Same as \newline if used within a +paragraph. If an option argument LENGTH is given, vertical space to +next line will be \vspace{LENGTH}. addvspace -\addvspace{�X�L�b�v} -�c�����̊Ԋu�Ɂu�X�L�b�v�v�̒l�𑫂��B������ -\addvspace{S1} \addvspace{S2} �ƕ����̒l�𓯎��Ɏw�肵�Ă� -\addvspace{S1,S2�̂����傫���ق�} �Ɠ��l�ɂȂ�B +\addvspace{SKIP} +Adds space equal to SKIP to vertical space. If more than one values +are given as \addvspace{S1} \addvspace{S2}, it will be the same as +\addvspace{the larger of S1, S2}. vspace -\vspace{�Ԋu} \vspace*{�Ԋu} -���������Ɂu�Ԋu�v�Ԃ�̃X�y�[�X�𑫂��B -\vspace* �͂ǂ�ȏꏊ�ł��X�y�[�X�𑫂����A\vspace �̓y�[�W�̐擪�� -�����ł͂͂��炩�Ȃ��B +\vspace{LENGTH} \vspace*{LENGTH} +Adds vertical space of LENGTH. +\vspace* will add space at any given position, but \vspace will not +add at beginning or end of a page. vspace* -\vspace{�Ԋu} \vspace*{�Ԋu} -���������Ɂu�Ԋu�v�Ԃ�̃X�y�[�X�𑫂��B -\vspace* �͂ǂ�ȏꏊ�ł��X�y�[�X�𑫂����A\vspace �̓y�[�W�̐擪�� -�����ł͂͂��炩�Ȃ��B +\vspace{LENGTH} \vspace*{LENGTH} +Adds vertical space of LENGTH. +\vspace* will add space at any given position, but \vspace will not +add at beginning or end of a page. hspace -\hspace{�Ԋu} \hspace*{�Ԋu} -���������Ɂu�Ԋu�v�Ԃ�̃X�y�[�X�𑫂��B -\hspace* �͂ǂ�ȏꏊ�ł��X�y�[�X�𑫂����A\hspace �͍s�̐擪�▖���ł� -�͂��炩�Ȃ��B +\hspace{LENGTH} \hspace*{LENGTH} +Adds horizontal space of LENGTH. +\hspace* will add space at any given position, but \hspace will not add +at beginning or end of a line. hspace* -\hspace{�Ԋu} \hspace*{�Ԋu} -���������Ɂu�Ԋu�v�Ԃ�̃X�y�[�X�𑫂��B -\hspace* �͂ǂ�ȏꏊ�ł��X�y�[�X�𑫂����A\hspace �͍s�̐擪�▖���ł� -�͂��炩�Ȃ��B +\hspace{LENGTH} \hspace*{LENGTH} +Adds horizontal space of LENGTH. +\hspace* will add space at any given position, but \hspace will not add +at beginning or end of a line. smallskip \smallskip -���������ɏ����ȊԊu���󂯂�B +Put a small vertical space. \def\smallskip{\vspace\smallskipamount} medskip \medskip -���������ɒ����炢�̊Ԋu���󂯂�B +Put a medium vertical space. \def\medskip{\vspace\medskipamount} bigskip \bigskip -���������ɑ傫�ȊԊu���󂯂�B +Put a big vertical skip. \def\bigskip{\vspace\bigskipamount} , \, -�����X�y�[�X���󂯂�B�i�����[�h�ALR���[�h�A�������[�h������ł����p�B -�N�H�[�g�̒��ɃN�H�[�g�������Ƃ��Ȃǂɗp����B -��: ``\,`Foo', he said.'' -�������[�h�Ŏg����X�y�[�X�ɂ͈ȉ��̂��̂�����: - \: �����L�� - \! ���ŋ��� - \; �L�� +Opens a thin space. Can be used in paragraph mode, LR mode, or math mode. +Used to write a quote within a quote. +example: ``\,`Foo', he said.'' +Spaces that can be used in math mode are: + \: medium space + \! negative and thin space + \; thick space : $\:$ -�����L���X�y�[�X�B�������[�h�̂݁B +Medium space. Math mode only. ! $\!$ -�������̃X�y�[�X�B�������[�h�̂݁B +Negative thin space. Math mode only. ; $\;$ -�L���X�y�[�X�B�������[�h�̂݁B +Thick space. Math mode only. -@whilenum -\@whilenum TEST \do {BODY} -���̕ӂ��Ƃ� +whiledo{TEST}{BODY} +Repeat BODY while TEST is true. nofiles \nofiles -�v���A���u���Ő錾����ƁA.aux, .idx, .lof, .lot, .toc �t�@�C���̍쐬�� -�}�������B +If \nofiles is in the preamble, .aux, .idx, .lof, .lot, .toc files will +not be made. includeonly \includeonly{sub1} \includeonly{sub1,sub3} -\include{}�œǂݍ��ރt�@�C���̂����A���ۂɓǂݍ��ݏ���������̂��w�肷��B -(.tex�͏ȗ���) -\includeonly�̈������X�g�ɂȂ��t�@�C���͂܂�������������Ȃ��A�܂��͑O�� -�ȑO�ɏ�������Ă���ꍇ��������S���ύX���Ȃ����̂Ƃ��Ĉ�����B +Appoints actual files to be read and processed by \include{}. (.tex can +be suppressed) +Files not given in the argument list of \includeonly will not be +processed at all. If the file has been processed before, it will be +treated as if there were no changes from then. include \include{FILE} +Same as \clearpage \input{FILE} \clearpage -�Ɠ����͂��炫������B input \input{FILE} -FILE.tex �������ɂ��邩�̂悤�ɏ����𑱂���B +Process as if FILE.tex has been inserted at that point. setcounter \setcounter{FOO}{VAL} -�J�E���^FOO�̒l��VAL�ɐݒ肷��B +Set counter FOO's value to VAL. addtocounter \addtocounter{FOO}{VAL} -�J�E���^FOO�̒l��VAL��������B +Add value VAL to counter FOO. newcounter \newcounter{COUNTER}[OLDCTR] -�V�����J�E���^COUNTER��ݒ肷��B -�I�v�V��������[OLDCTR]���w�肷��ƁA�����̃J�E���^OLDCTR�̒l�� -\stepcounter �������� \addtocounter �ŕύX����邽�т�COUNTER�̒l�����Z�b -�g�����B +Defines a new counter COUNTER. +If an optional argument OLDCTR is given, COUNTER's value will be reset +every time OLDCTR's value is changed by \stepcounter or \addtocounter. value \value{COUNTER} -COUNTER�̒l��Ԃ��B\protect ��O�u���Ă͂Ȃ�Ȃ��B +Returns value of COUNTER. Must not be preceded by \protect. stepcounter \stepcounter{FOO} -�J�E���^FOO�̒l���C���N�������g����BFOO�ɏ]���J�E���^������΂������� -�Z�b�g����B +Increments value of counter FOO. Also resets any counter dependent to FOO. refstepcounter \refstepcounter{FOO} -�J�E���^FOO�̒l���C���N�������g����BFOO�ɏ]���J�E���^������΂������� -�Z�b�g����B\stepcounter�Ƃ̈Ⴂ�́A\refstepcounter{FOO} �̒���� -\label{hoge} ���������ꍇ�ɁA\ref{hoge} �̒l�� \value{FOO} �����‚悤�� -�u\ref�l�v��ݒ肷�邱�Ƃł���B +Increments value of counter FOO. Also resets any counter dependent to +FOO. Defers with \stepcounter as; if \label{hoge} follows immediately +after \refstepcounter{FOO}, \ref{hoge}'s value will be set to \value{FOO}. arabic \arabic{COUNTER} -�A���r�A������COUNTER�̒l���o�́B +Output COUNTER's value in arabic numerals. roman \roman{COUNTER} -�������̃��[�}������COUNTER�̒l���o�́B +Output COUNTER's value in lower case roman numerals. Roman \Roman{COUNTER} -�啶���̃��[�}������COUNTER�̒l���o�́B +Output COUNTER's value in upper case roman numerals. alph \alph{COUNTER} -�������̉p����COUNTER�̒l���o�́B +Output COUNTER's value in lower case alphabet. Alph \Alph{COUNTER} -�啶���̉p����COUNTER�̒l���o�́B +Output COUNTER's value in upper case alphabet. fnsymbol \fnsymbol{COUNTER} -�r���V���{��(1 = *, 2 = \dagger, ...) ��COUNTER�̒l���o�́B�������[�h�̂݁B +Output COUNTER's value in footnote symbols (1 = *, 2 = \dagger, ...). +Math mode only. label \label{LABEL} -���x��LABEL�̒l�����̎��́u\ref�l�v�ɐݒ肷��B -���̒l�́A\ref{LABEL}�ɂ���ĎQ�Ƃ����B�܂�\pageref{LABEL}�ɂ�� -\label{LABEL}�̑��݂���y�[�W�ԍ����Q�Ƃ����B -�u\ref�l�v�Ƃ� \section �Ȃǂ̃Z�N�V�����R�}���h�Aenumerate�‹��ł� -\item �R�}���h�Atheorem�‹��Ȃǂɂ���Đݒ肳���l�ł���B�Ⴆ�΁A -enumerate�‹����� \item �̒���ł͂���item�̔ԍ����u\ref�l�v�ƂȂ�A -�����ɂ��� \label{LABEL} ��item�̔ԍ���LABEL�ɃZ�b�g����B +Set value of LABEL to \ref VALUE. +This value is referred by \ref{VALUE}. \pageref{LABEL} refers to the +page number \label{LABEL} exists. +``\ref VALUEs'' are, section commands as \section, \item commands within +an enumerate environment, values set by a theorem environment. For +example, immediately after a \item of a enumerate environment, the item +number will be the ``\ref VALUE''. \label{LABEL} will set the item +number to LABEL. ref \ref{LABEL} -\label{LABEL}�Őݒ肵��LABEL�̒l���Q�Ƃ���B -�{�����Őݒ肳�ꂽ���x���ɂ������Ă̓y�[�W�ԍ����A -�}�\���Őݒ肳�ꂽ���x���͐}�\�ԍ����A -enumerate���ꂽitem�Őݒ肳�ꂽ���x���ɂ������ẮAitem�ԍ����Ԃ����B +Refer to LABEL's value set by \label{LABEL}. +Examples of values returned are; page numbers for LABELs set in the main +text, table numbers for LABELs set in a table, and the item number for +LABELs set in an item of the enumerate environment. pageref pageref{LABEL} -\label{LABEL}�̑��݂���y�[�W�ԍ����Q�Ƃ���B +Refer to the page number where \label{LABEL} exists. ( -\( ���� \) -����������g�ށB -\begin{math} ���� \end{math} -�Ɠ��l�B\( ����� \)�� fragile. +\( EQUATION \) +Produce an in-text equation. +Same as +\begin{math} EQUATION \end{math} +\( and \) are fragile. ) \( x^2 = 4 \) -����������g�ށB -\begin{math} ���� \end{math} -�Ɠ��l�B\( ����� \)�� fragile. +Produce an in-text equation. +Same as +\begin{math} EQUATION \end{math} +\( and \) are fragile. [ -�f�B�X�v���C������g�ށB -\[ ���� \] -\begin{displaymath} ���� \end{displaymath} -�Ɠ��l�B\[ ����� \]�� fragile. +\[ EQUATION \] +Produce an equation in display mode. +Same as +\begin{displaymath} EQUATION \end{displaymath} +\[ and \] are fragile. ) -\[ ���� \] -�f�B�X�v���C������g�ށB -\begin{displaymath} ���� \end{displaymath} -�Ɠ��l�B\[ ����� \]�� fragile. +\[ EQUATION \] +Produce an equation in display mode. +Same as +\begin{displaymath} EQUATION \end{displaymath} +\[ and \] are fragile. equation -\begin{equation} ���� \end{equation} -�ԍ��‚��̐�����displaymath�‹��őg�ށB +\begin{equation} EQUATION \end{equation} +Produce a numbered equation in displaymath mode. eqnarray -\begin{eqnarray} �������̕��� \end{eqnarray} -�������̕��т�3�‚̌��ɐ������ďo�͂���B3�‚̌���&�L���ɂ���āA -�u���� & ���s���� & �E�Ӂv�̂悤�ɋ�؂���B�Ⴆ�Έȉ��̂悤�ɂ���B +\begin{eqnarray} EQNS \end{eqnarray} +Produce equations aligned in three columns. The columns are separated by +& as ``left member & sign & right member''. For example, \begin{eqnarray} 3x + 2y & = & 4 \\ x - 4y & = & -5 \end{eqnarray} -eqnarray* �‹��͐����ԍ����o�͂��Ȃ��ق���eqnarray�‹��Ɠ����ł���B eqnarray* -\begin{eqnarray*} �������̕��� \end{eqnarray*} -�����ԍ����o�͂��Ȃ��ق���eqnarray�‹��Ɠ����ł���B +\begin{eqnarray*} EQNS \end{eqnarray*} +Same as eqnarray, except no equation numbers are produced. frac -\frac{���q}{����} - ���q ------- �̂悤�ȕ����`����g�ށB{���q \over ����} �Ɠ����B - ���� +\frac{NUMER}{DENOM} +Produce a fraction as + NUMER +------ + DENOM +Same as {NUMER \over DENOM} sqrt -\sqrt[N]{��} -�u���v��N�捪������킷�����B[N]���ȗ�����ƕ������B +\sqrt[N]{EQUATION} +Produces the Nth power of EQUATION. Gives a square root if [N] is not given. lefteqn -\lefteqn{��} -�f�B�X�v���C�������[�h�ɂ����āA�u���v�����[���ł���Ƃ݂Ȃ��āA���񂹂� -��B���Ƃ���eqnarray�‹��ɂ����āA���ӂ������Ȃ��Ă��܂��ꍇ�ɁA�s�� -�܂��ނ��߂ɗ��p����B +\lefteqn{EQUATION} +In display math mode, presume EQUATION has zero width and print it flush left. +Used in eqnarray environment when the left member is too long and needs +folding. \begin{eqnarray} \lefteqn{a_1 + a_2 + \cdots + a_n =} \\ & & a_1 + b_1 + \cdots + z_1 + \\ @@ -505,209 +507,208 @@ \end{eqnarray} center -\begin{center} ���e \end{center} -�u���e�v�𒆉��񂹂���B�e�s��\\�ɂ���ĉ��s�ʒu���w�肷��B -�� \centering +\begin{center} TEXT \end{center} +Center TEXT. Each line must be separated by \\. + flushright -\begin{flushright} ���e \end{flushright} -�u���e�v���E�񂹂���B�e�s��\\�ɂ���ĉ��s�ʒu���w�肷��B -�� \raggedright +\begin{flushright} TEXT \end{flushright} +Align end of each line with right margin. Each line must be separated by \\. + flushleft -\begin{flushleft} ���e \end{flushleft} -�u���e�v�����񂹂���B�e�s��\\�ɂ���ĉ��s�ʒu���w�肷��Ƃ��̈ʒu�ʼn��s -���邪�A�w�肵�Ȃ��ƓK���ȍs���̂Ƃ���ʼn��s���Ă����B -�� \raggedleft +\begin{flushleft} TEXT \end{flushleft} +Align start of each line with left margin. \\ can be given to decide +point of line break. Otherwise lines will be broken at an appropriate +length. + centering \centering -�i�����Z���^�����O���đg�ł���B -���Ƃ��� table�‹��Afigura�‹��̐擪�Ő錾����Ɗ‹��̏I��܂ł��Z���^�� -���O���đg�ށB +Produce a centered paragraph. +Declared at the beginning of a table/figura environment, it will center +until the end of the environment. raggedright \raggedright -�i�����E�񂹂��đg�ł���B +Produce flush-left paragraphs. raggedleft \raggedleft -�i�������񂹂��đg�ł���B +Produce flush-right paragraphs. raggedbottom \raggedbottom -�g�ł��鎞�Ɋe�y�[�W�̍����ɑ����̂��ꂪ�����Ă����e����B -�v���A���u���Ŏw�肷��B -��\flushbottom +Allow height of each page to vary. +Declared in the preamble. + flushbottom \flushbottom -�g�ł��鎞�Ɋe�y�[�W�̍����𐳊m�ɂ��낦��B -�v���A���u���Ŏw�肷��B -��\raggedbottom +Make all text pages the same height. +Declared in the preamble. + sloppy \sloppy -\sloppy ���w�肷��ƁA�e�s��K���E�}�[�W���Ő܂�Ԃ�����ɁA -�P��Ԃ̋󔒂��ڂɌ���B -��\fussy +Always breaks the line at the right-hand margin, but allows too much +space between words. + fussy \fussy -�ʏ�̑g�ŋK���ɖ߂�B -��\sloppy +Return to normal line breaking. + sloppypar -\begin{sloppypar} �i�� \end{sloppypar} -�i���� \sloppy �őg�ށB -��\sloppy +\begin{sloppypar} PARAGRAPH \end{sloppypar} +Produce PARAGRAPH in \sloppy. + verbatim \begin{verbatim} ... \end{verbatim} The verbatim environment uses the fixed-width \tt font, turns blanks into -spaces, starts a new line for each carrige return (or sequence of +spaces, starts a new line for each carriage return (or sequence of consecutive carriage returns), and interprets EVERY character literally. I.e., all special characters \, {, $, etc. are \catcode'd to 'other'. verbatim* \begin{verbatim*} ... \end{verbatim*} +The verbatim* environment is the same to verbatim, except that spaces +print as the TeXbook's space character instead of as blank spaces. -The verbatim* environment is the same, except that spaces -print as the TeXbook's space character instead of as blank spaces. - list -\begin{list}{�f�t�H���g���x��}{���`�p�����[�^} ... \end{list} -���X�g�‹��ɓ���B���X�g�‹��ł� \item �Ŏw�肳�ꂽ�e���ڂ����̎����� -�ŗ񋓂���B��1�����ɂ� \item �̃I�v�V���������̃��x�����ȗ����ꂽ���̃f -�t�H���g���x�����w�肵�A��2�����ɂ͊eitem��u�����ɏ��������p�����[�^ -���w�肷��B -��: +\begin{list}{LABEL}{PARAMETER} ... \end{list} +Enter list environment. Each \item will be listed with an indent. +First argument gives the default label when \item's optional argument is +omitted. Second argument gives parameters to be processed for each item. +example: \begin{list}% {$\diamond$} {\addtolength{\leftmargin}{4em}} - \item ��1�����ɂ�\verb|\item| �ɃI�v�V�����������‚��Ȃ��������ɂӂ�A - �f�t�H���g�̃��x����^����B - \item ��2�����ɂ͊eitem��u�����ɏ��������p�����[�^��^����B - \item[*] �̂悤�ɃI�v�V�����������‚���Ƃ��ꂪ���x���ƂȂ�B + \item First argument is the default label when \verb|\item|'s optional + argument is given. + \item Second argument will be processed for each item. + \item[*] If a optional argument is given such as this, it will be the label. \end{list} - list�‹��̑̍ق𐧌䂷��ϐ��ɂ͈ȉ��̂��̂�����(���ʓ��͊���l)�B -��������: - + Variables to control the list environment are as follow; (default value) +horizontal: + -list�‹��̑̍ق𐧌䂷��ϐ� -\labelwidth item�̃��x���̕� -\labelsep ���x���̉E�[�ƍŏ��̃A�C�e���̃e�L�X�g�Ƃ̊Ԋu -\leftmargin list�‹����ł̍��}�[�W�� -\rightmargin ���E�}�[�W�� (0pt) -\itemindent item�̒��O�ɉ�������C���f���g�� (0pt) -\linewidth ��s�̕� -\listparindent �e�p���O���t�̐擪�̃C���f���g(������\item�̕t���Ă���� - ���̃p���O���t������)(0pt) +variables to control list environment +\labelwidth width of label +\labelsep space between right of label and text of first item +\leftmargin left margin within list environment +\rightmargin right margin within list environment (0pt) +\itemindent width of indent preceding item (0pt) +\linewidth width of line +\listparindent indent for each paragraph (except first paragraph with \item) + (0pt) -��������: -\topsep list�‹��ɓ���O�̃p���O���t�ƍŏ���item�Ƃ̊Ԋu -\partopsep list�‹��ŐV�����p���O���t���͂��߂鎞��\topsep�ɉ����� - ���t���I�ȊԊu -\itemsep �A������item�ǂ����̊Ԋu -\parsep ��‚�item���ł̃p���O���t�ǂ����̊Ԋu - +vertical: +\topsep space between last paragraph before list environment and + first item +\partopsep space added to \topsep when starting a new paragraph in list + environment +\itemsep space between successive items +\parsep space between paragraphs within the same item itemize -\begin{itemize} \item �A�C�e��1 ... \item �A�C�e��n \end{itemize} -���ڂ�񋓂��邽�߂̊‹��B -�ő�4�‚܂Ńl�X�g�ł���B -�e���x����item�̓��ɂ‚��L���́A\labelitemi, \labelitemii, -\labelitemiii, \labelitemiv �Ő��䂳���B +\begin{itemize} \item ITEM1 ... \item ITEMn \end{itemize} +Produce a bulleted list. +Can be nested to four levels. +``bullets'' shown at top of each item of the four levels are controlled +by \labelitemi, \labelitemii, \labelitemiii, \labelitemiv. -itemize�‹��̑̍ق𐧌䂷��ϐ��ɂ͈ȉ��̂��̂�����B - - +Variables to control the itemize environment are; + enumerate -\begin{enumerate} \item �A�C�e��1 ... \item �A�C�e��n \end{enumerate} -���ڂ�ԍ��‚��ŗ񋓂��邽�߂̊‹��B -�ő�4�‚܂Ńl�X�g�ł���B -�e���x����item�̓��ɂ‚��ԍ��́Aenumi, enumii, enumiii, enumiv -���ێ����Ă��āA�eitem�̃��x���́A\labelenumi, ..., \labelenumiv -�Ő��������B�܂��A\p@enumN\theenumN �� \ref�l��ݒ肷��B -(N�̓��x���̐[���B\ref�l�ɂ‚��Ă�\ref�̐������Q�Ƃ���) -���Ƃ��� +\begin{enumerate} \item ITEM1 ... \item ITEMn \end{enumerate} +Produce a numbered list. +Can be nested to four levels. +Numbers for items on each level are held in enumi, enumii, enumiii, enumiv. +Each item's label are produced by \labelenumi, ..., \labelenumiv. +\p@enumN\theenumN will set \ref's value. (N is the depth of level. +refer \ref for value of \ref) +For example, if declared \def\theenumii{\alph{enumii}} \def\p@enumii{\theenumi\theenumii} \def\labelenumii{(\theenumii)} -�Ƃ���� \ref�l�� 3a �Ȃǂ̂悤�ɐݒ肳���B +\ref's value will be 3a. -enumerate�‹��̑̍ق𐧌䂷��ϐ��ɂ͈ȉ��̂��̂�����B - +Variables to control enumerate environment are, + item \item \item[LABEL] -itemize, enumerate, description �‹��Ȃǂō��ڂ��J�n����B -[LABEL]���w�肷��ƃ��x���Ƃ���LABEL���o�͂���B +Start an item in itemize, enumerate, description environment. +Output LABEL if [LABEL] is given. description -\begin{description} \item[���o���P��] ���� ... \end{description} -[���o���P��]�����o���Ƃ��� +\begin{description} \item[LABEL] CONTENTS ... \end{description} +Produce [LABEL] as a label. subitem -\subitem ���� -�T�u�A�C�e�����`�B +\subitem ITEM +Define a subitem. subsubitem -\subsubitem ���� -�T�u�T�u�A�C�e�����`�B +\subsubitem ITEM +Define a subsubitem. makebox -\makebox[WID][POS]{�I�u�W�F�N�g} \makebox(X,Y)[POS]{�I�u�W�F�N�g} -��1�̏����ł́A�I�u�W�F�N�g��WID�Ŏw�肵�����Ƃ��āA\hbox ���� -POS�Ŏw�肵���ꏊ�ɔz�u����BPOS��l���w�肷��ƍ��񂹁Ar���w�肷��ƉE�񂹁A -�����w�肵�Ȃ��ƃZ���^�����O�����B -��2�̏����ł́Apicuture�‹��ő傫��(X,Y)��(\unitlength����Ƃ���) -\hbox �ɃI�u�W�F�N�g��z�u����B�z�u�ʒuPOS�͑�1�̏����Ɠ��l�B +\makebox[WID][POS]{OBJECT} \makebox(X,Y)[POS]{OBJECT} +First form will place OBJECT at position POS and width WID in a \box. +For POS, object will be placed flush-left if l, flush-right if r, and +centered if nothing is given +In the second form, object will be placed in a \hbox sized (X,Y) (in +\unitlength) within a picture environment. POS is the same as the first form. mbox -\mbox{�I�u�W�F�N�g} -\makebox{�I�u�W�F�N�g}�Ɠ����B +\mbox{OBJECT} +Same as \makebox{OBJECT}. newsavebox \newsavebox{\CMD} -�V�K�̃{�b�N�X�ۑ��p�R�}���h���`����B\CMD�� \savebox �R�}���h�� -�{�b�N�X��ۑ����邽�߂Ɏg���B\newsavebox�Ő錾�����R�}���h���� -��ɃO���[�o���ƂȂ�B +Define a new box saving command. \CMD is used in a \savebox command to +save boxes. Commands defined by \newsavebox are always global. savebox -\savebox{\CMD}{�e�L�X�g} -�{�b�N�X��g�ޓ��e�ł���u�e�L�X�g�v�̌��ʂ�\CMD�ɕۑ�����B -�u�e�L�X�g�v�� \makebox �ւ̈����ƑS�������ł��邪�A�u�e�L�X�g�v�� -�����������ʂ͂��̏�ɕ\���͂��Ȃ��B\usebox{\CMD}�ɂ�菈�������{�b�N�X -���u�����B +\savebox{\CMD}{TEXT} +Save results of TEXT in \CMD to be boxed. +TEXT is the same as the argument of \makebox, but the results of +processing TEXT is not displayed in-place. Boxes processed by +\usebox{\CMD} will be placed. sbox -\sbox{\CMD}{�e�L�X�g} -\savebox�Ɠ����Bsbox��robust, savebox��fragile +\sbox{\CMD}{TEXT} +Same as \savebox. \sbox is robust, and \savebox is fragile. framebox -\framebox{�I�u�W�F�N�g} -�u�I�u�W�F�N�g�v�ɘg���‚���\makebox�Ɠ��l�̏���������B -�g�̐��̑����� \framerule�A�I�u�W�F�N�g�Ƃ̊Ԋu�� \framesep �Ō��܂�B�� -����picture�‹��� \framebox(X,Y){�I�u�W�F�N�g}�Ƃ����ꍇ�́Apicture�‹� -�p�̐��̑����ɏ]���A�O�g�ƃI�u�W�F�N�g�Ƃ̊Ԋu�͋󂯂��Ȃ��B +\framebox{OBJECT} +Do the same thing as \makebox with a frame. +The frame's width and space between the object are decided by \framerule +and \framesep. If used as \framebox(X,Y){OBJECT} in a picture +environment, width of frame will be dependant to the picture +environment's line width, and space between the object and frame can not +be opened. fbox -\fbox{�I�u�W�F�N�g} -\framebox{�I�u�W�F�N�g}�Ɠ����B -\fbox��robust, \framebox��fragile +\fbox{OBJECT} +Same as \framebox{OBJECT}. +\fbox is robust, \framebox fragile. parbox \parbox[POS]{WIDTH}{TEXT} -TEXT��WIDTh�̕��őg��Ń{�b�N�X���쐬����B�{�b�N�X�̈ʒu��POS�ɂ���� -c : �Z���^�����O(�f�t�H���g) -b : �{�b�N�X�̈�ԉ��̐������e�L�X�g�̃��C���ɍ��� -t : �{�b�N�X�̈�ԏ�̐������e�L�X�g�̃��C���ɍ��� -�̂悤�Ɍ��߂���B\parbox�ł̓p�����[�^���ȉ��̂悤�Ƀ��Z�b�g�����B +Make a box of width WIDTH using TEXT. The box's position by POS is; +c : centering (default) +b : bottom of box matches present text +t : top of box matches present text +In \parbox, parameters will be reset as; \parskip = 0pt \linewidth = \hsize \@totalleftmargin = 0pt @@ -720,64 +721,65 @@ minipage \begin{minipage}[pos]{WIDTH} TEXT \end{minipage} -\parbox �Ƃقړ��lWIDTH�̕���TEXT���{�b�N�X�Ƃ��đg�ށB�{�b�N�X�̈ʒu�� -POS�ɂ���� -c : �Z���^�����O(�f�t�H���g) -b : �{�b�N�X�̈�ԉ��̐������e�L�X�g�̃��C���ɍ��� -t : �{�b�N�X�̈�ԏ�̐������e�L�X�g�̃��C���ɍ��� -�̂悤�Ɍ��߂���B -parbox�ƈႢ�ATEXT�͒ʏ�̃p���O���t�Ƃ��đg�܂��B +Make a box of width WIDTH using TEXT as \parbox. The box's position by +POS is; +c : centering (default) +b : bottom of box matches present text +t : top of box matches present text +TEXT will be processed as a normal paragraph, differing from \parbox. rule \rule[RAISED]{WIDTH}{HEIGHT} -�� WIDTH x ���� HEIGHT �̌r�������BRAISED���w�肳�ꂽ�ꍇ�A���̕����� -��ɏグ����B +Make a rule of WIDTH x HEIGHT. If RAISED is given, will be raised that +amount. underline \underline{TEXT} -TEXT�ɉ������‚��ĕ\���B +Underline TEXT. raisebox \raisebox{DISTANCE}[HEIGHT][DEPTH]{BOX} -BOX��DISTANCE�����グ�đg�ށB -HEIGHT, DEPTH ���w�肷��ƁATeX���猩��BOX�́u�����v�Ɓu�[���v -(��:�����̗p��ɂ‚��Ă�TeXBook�Ȃǂ��Q�Ƃ̂���) -�� HEIGHT, DEPTH �Ɏw�肷��B +Raise BOX by DISTANCE. +If HEIGHT and DEPTH are given, TeX will take it as the height and depth +of the box. +(see TeXBook for more info) tabbing \begin{tabbing} \= text1.1 \= text1.2 \\ \> text2.1 \> text2.2 \end{tabbing} -���������s���‹������(����q�s��)�B�Ⴆ�΁A +Creates an environment of aligned columns (nesting allowed). For example, \begin{tabbing} - \= ����1 \hspace*{2em} \= ����2 \hspace*{3em} \= ����3 \\ - \> ����� \> �ɂق� \> �Ƃ��� \+ \\ - \> �ʂ�� \> �킩�� \\ - \> ���ꂻ \- \\ - \> �‚˂� \> ��ނ� \> ��̂� + \= ITEM1 \hspace*{2em} \= ITEM2 \hspace*{3em} \= ITEM3 \\ + \> aabbcc \> ddeeff \> gghhii \+ \\ + \> jjkkll \> mmnnoo \\ + \> ppqqrr \- \\ + \> ssttuu \> vvwwxx \> yyzzzz \end{tabbing} -���tabbing�‹��͈ȉ��̂悤��3�‚̃^�u�ʒu�őg�܂��B - (1�Ԗ�) (2�Ԗ�) (3�Ԗ�) - ����� �ɂق� �Ƃ��� - �ʂ�� ������ - ���ꂻ - �‚˂� ��ނ� ��̂� - \2em/ \3em/ -tabbing�‹��ɂ�����^�u�ʒu����R�}���h�͈ȉ��̒ʂ�(n��1����): -\= n�Ԗڂ̃^�u�ʒu�����݈ʒu�ɐݒ肵�^�u�J�E���^(n)��1�i�߂� -\\ ���s���ă^�u�J�E���^�����Z�b�g����(n=1) -\> �ʒu��n�Ԗڂ̃^�u�ʒu�ɐݒ肵�A�J�E���^��1�i�߂� -\+ ���̍s�̃^�u�J�E���^�̏����l��1������ \+ \\ �Ƃ���Ǝ��̍s�̍ŏ� - �� \> ��2�Ԗڂ̃^�u�ʒu������. \+ �𕡐������Ƃ��̐������^�u�J�E - ���^�̏����l�������� -\- \+�Ƃ͋t�ɁA���̍s�̃^�u�J�E���^�̏����l����1���� -\< ��‘O�̃^�u�J�E���^�ɖ߂��Ă��̃^�u�ʒu���Z�b�g. �s���̂� -\' \'�ȍ~��ʏ�̃^�u�ʒu��� \tabbingsep �������E�񂹂��ďo�� -\` \`�ȍ~�̃e�L�X�g�����ׂĉE�񂹂��ďo�� -\pushtabs ����܂ŗp���Ă����^�u�X�g�b�v�ʒu��S��push -\poptabs ����܂ŗp���Ă����^�u�X�g�b�v�ʒu��S��pop. \pushtabs �� - \poptabs �͕K���΂ɂȂ��Ă��Ȃ���΂Ȃ�Ȃ�. ����q�� -\aX -X�� = �� ' �� ` tabbing�‹��łȂ��ʏ�̃A�N�Z���g�� - \a= \a' \a` �ŕ\�킷 +will be processed with three tab stops as, + (1st item) (2nd item) (3rd item) + aabbcc ddeeff gghhii + jjkkll mmnnoo + ppqqrr + ssttuu vvwwxx yyzzzz + \2em/ \3em/ +Commands to control the tabbing environment are; (n starts from 1) +\= Sets the nth tab stop position to the current position and increment + the tab counter (n) by 1. +\\ Start a new line and reset the tab counter (n=1) +\> Set the position to the nth tab stop and increment the tab counter by 1. +\+ Add 1 to the next line's tab counter's initial value. If written as + \+ \\, the next line's \> will give the position of the second tab + stop. Multiple \+ will accumulate tab counter's initial value. + +\- Reverse of \+. Decrease initial value of tab counter for next line + by 1. +\< Decrease value of tab counter by 1 and set the tab stop. Can be + only used at the beginning of a line. +\' Output at a position \tabbinsep right from the normal tab stop. +\` Output remaining text flush-right. +\pushtabs Push all tab stop positions being used. +\poptabs Push all tab stop positions being used. \pushtabs and \poptabs + must be used in pairs. Nesting allowed. +\aX In a tabbing environment, accents are produced by \a=, \a', \a` \kill Without outputting text, parse tabbing definition. array @@ -851,10 +853,10 @@ \arraystretch : line spacing in array and tabular environments is done by placing a strut in every row of height and depth \arraystretch times the height and depth of the strut - produced by an ordinary \strut commmand. + produced by an ordinary \strut command. Tabular environment cannot spread across pages. `supertabular.sty' -allow this. +allows this. tabular* \begin{tabular*}{WIDTH}{PREAMBLE} ... \end{tabular*} @@ -1125,8 +1127,8 @@ bibliographystyle \bibliographystyle{STYLE} Style of numbering of bibliographies. -plain nomal -unsrt without sortingg +plain normal +unsrt without sorting alpha gives tag like "Foo94" abbrv omit the first name of author, publishing month, book title @@ -1208,7 +1210,6 @@ print as the TeXbook's space character instead of as blank spaces. styleparameter -�܂��󂵂Ă��Ȃ��X�^�C���p�����[�^�B topfigrule \topfigrule @@ -1279,83 +1280,15 @@ YaTeX (setq auto-mode-alist (cons '("\\.tex$" . yatex-mode) auto-mode-alist)) -�����炭���Ȃ������g���Ă��邱�̃��[�h�B -LaTeX�������I�Ɏg�����߂̑����̋@�\�𐷂荞��ł��܂��B +The mode you are probably using now. +Bells and whistles for using LaTeX at a breeze. -�y�����ɂ‚��āz -yatex.el�Ȃǃv���O�������w�����́u��Ă����v�A�V�X�e�����w�����́u�₿�� -���v�Ɠǂ݂܂��B - -�y�ӎ��z -�ȉ��̕��X�̌䋦�͂𒸂��܂����B�����Ɋ��Ӑ\���グ�܂��B - -(���s��) -���P������(��B��) - Bibtex�N���Atypeset process �� kill�A�G���[�ӏ��̐��������� - �̗v�]���̑��𒸂��܂����B - -�X���G������(�A�����c) - �^�C�v�Z�b�g�o�b�t�@�ł̎��s�p���Alpq, bibtex�N���A�̈�w��^�C - �v�Z�b�g��̃v���r���[�Ώۃt�@�C���̃f�t�H���g�l�̕ύX�A - describe-mode�A\verb �̕⊮�̗v�]�Averbatim�‹���\verb�̒��ɂ��� - \begin{}, \end{} �𐔂��Ȃ��悤�ɂ���v�]�A�Ȃǂ𒸂��܂����B - -�΍�T�B����(�x�m��) - YaTeX-get-error-file �̃o�O���|�[�g�Ȃǂ𒸂��܂����B - -Bayard����(asciinet) - min-out�Ƃ̘A�W�̕s��̕񍐂𒸂��܂����B - -�j���񂳂�(asciinet) - ms-dos�ŗL�̐ݒ�Ɋւ���o�O���|�[�g�𒸂��܂����B - -sa2c����(asciinet) - Mule�p�̃p�b�`�𒸂��܂����B - -�j�쒼�Ȃ���(�}�g��) - �����؂�Ȃ��o�O���|�[�g�Ɨv�]�𒸂��܂����B�܂�Vz�ւ̈ڐA�łł� - �� laitex(����) ���쐬����܂����B - -�O���P�Y����(�c����) - �J�����ʂ̓��͎��̏����̃��[�h�����̃A�C�f�A�𒸂��܂����B - -���됒����(�c����) - begin�^�⊮�̓����ɕ������������ꍇ�������C���f���g���Ăق��� - �Ƃ����v�]�𒸂��܂����B - -�c�������Y����(�c����) - �^�C�v�Z�b�g���ɖ��Z�[�u��Ԃ̊֘A�t�@�C�����Z�[�u���ė~�����Ƃ� - ���v�]�𒸂��܂����B - -bauer����(asciinet) - �A�N�Z���g�⊮�̗v�]�ƃA�N�Z���g�L���̋K���̏�񓙂𒸂��܂����B - -���X�؂��낤����(asciinet) - �����‹��̏����Ɋւ��鑽�l�ȃA�C�f�A�A�E�B���h�E�I�������Ɋւ��� - ���[�U�C���^�t�F�[�X�̑@�ׂȉ��P�ĂȂǂ𒸂��܂����B - -Deslar����(asciinet) - byte-compile�֌W�̃o�O�񍐂Ȃǂ𒸂��܂����B - -tadf����(asciinet) - Demacs�ł̃v���Z�X�N�����̃C���^�t�F�[�X�̕s��̕񍐂Ȃǂ𒸂� - �܂����B - -�ق�܂����邳��(asciinet) - �p���O���t���E��LaTeX�p�ɐݒ肵�Ȃ����v�]�Ȃǂ𒸂��܂����B - -TUSK����(asciinet) - Texinfo�h�L�������g(����)���쐬���Ē����܂����B - -���c�a�炳��(asciinet) - dviout�N�����̍H�v�̈āA�~�j�o�b�t�@�œǂݍ��ނ��̂̃q�X�g���� - ����A�C�f�A�̂������������������A�w���v�t�@�C���̍��ڂ̒񋟂��� - �Ē����܂����B - -kanbai-an����(asciinet) - ���{����̓��[�h����֐��̃o�O�𒼂��p�b�`�Ȃǂ𒸂��܂����B +[pronunciation] +``ya-tek'' for programs as yatex.el, ``ya-cho'' when referring to the +whole system. ``ya-cho'' in Japanese stands for ``wild bird'' yatex +(setq auto-mode-alist (cons '("\\.tex$" . yatex-mode) auto-mode-alist))  diff --git a/help/YATEXHLP.jp b/help/YATEXHLP.jp index fc787f7..4200675 100644 --- a/help/YATEXHLP.jp +++ b/help/YATEXHLP.jp @@ -136,18 +136,13 @@ columnseprule \addtolength{\columnseprule}{����} -��i�g�̎��̒i�Ԃ̌r���̑���. +��i�g�̎��̒i�Ԃ̌r���̑���. (default=0pt) columnwidth \addtolength{\columnwidth}{����} ��i�g�̎��ɂ� (\textwidth - \columnsep)/2 �����łȂ����́A\textwidth - -columnseprule -\addtolength{columnseprule}{����} -\columnseprule 2�i�g�݂̎��̒i�Ԃ̌r���̕�. (default=0pt) - mathindent \addtolength{mathindent}{����} \mathindent �X�^�C���I�v�V������ fleqn ���w�肵���ꍇ�́A @@ -344,6 +339,10 @@ \@whilenum TEST \do {BODY} ���̕ӂ��Ƃ� +whiledo{TEST}{BODY} +TEST���^�̊�BODY���J��Ԃ��B + + nofiles \nofiles �v���A���u���Ő錾����ƁA.aux, .idx, .lof, .lot, .toc �t�@�C���̍쐬�� @@ -938,12 +937,12 @@ author \author{���Җ�} -\maketitle�R�}���h�ŏo�͂�����t��ݒ肷��B +\maketitle�R�}���h�ŏo�͂��钘�҂�ݒ肷��B �����̒��҂������Ƃ��� \and �ŋ�؂��Ė��O�������B date \date{���t} -\maketitle�R�}���h�ŏo�͂��钘�Җ���ݒ肷��B +\maketitle�R�}���h�ŏo�͂�����t��ݒ肷��B \date ���ȗ�����ƃ^�C�v�Z�b�g�������̓��t���o�͂����B thanks @@ -1254,6 +1253,9 @@ ��˂�������(asciinet) �肢�t�������ł��B +���삳��(prc) + �e���Ŗ\��Ă��܂��B + �O���P�Y����(�c���) �J�����ʂ̓��͎��̏����̃��[�h�����̃A�C�f�A�𒸂��܂����B @@ -1294,6 +1296,9 @@ Nop.M����(asciinet) �قȂ�‹��ł̐ݒ�̕s����̃��|�[�g�𐔑��������܂����B +jaybird����(asciinet) + �p��ł̃w���v�t�@�C�����쐬���Ē����܂����B + ���R������(������w) ���{����̓��[�h����֐��̃o�O�𒼂��p�b�`�Asection-view �̃o�O �񍐁A* �t���Z�N�V�����R�}���h�Ή��̗v�]�A\right, \left �̃A�h�C diff --git a/yahtml.el b/yahtml.el index 8483770..10b4960 100644 --- a/yahtml.el +++ b/yahtml.el @@ -1,42 +1,278 @@ ;;; -*- Emacs-Lisp -*- ;;; (c ) 1994 by HIROSE Yuuji [yuuji@ae.keio.ac.jp, pcs39334@ascii-net.or.jp] -;;; Last modified Wed May 4 05:31:29 1994 on 98fa -;;; This is sample hack definition for HTML. -;;; -;;; [Purely tentative version] +;;; Last modified Mon Apr 24 22:52:17 1995 on pajero +;;; This is PURELY tentative. ;;; $Id$ +;;;[Commentary] +;;; +;;; It is assumed you are already familiar with YaTeX. The following +;;; completing featureas are available: ([prefix] means `C-c' by default) +;;; +;;; * [prefix] b X Complete environments such as `H1' which +;;; normally requires newline. +;;; * [prefix] s Complete declarative notations such as +;;; ` .... ' +;;; * [prefix] l Complete typeface-changing commands such as +;;; ` ... ' or ` ... ' +;;; * menu-bar yahtml Complete all by selecting a menu item (Though I +;;; hate menu, this is most useful) +;;; +;;; NOTE! This program is truly tentative. If you find some bright +;;; future with this, please send me a mail to drive me to maintain this :) + + (require 'yatex) (defvar yahtml-prefix-map (copy-keymap YaTeX-prefix-map)) (defvar yahtml-mode-map nil "Keymap used in yahtml-mode.") (if yahtml-mode-map nil (setq yahtml-mode-map (make-sparse-keymap)) - (define-key yahtml-mode-map YaTeX-prefix yahtml-prefix-map)) + (define-key yahtml-mode-map YaTeX-prefix yahtml-prefix-map) + (define-key yahtml-mode-map "\M-\C-@" 'YaTeX-mark-environment) + (define-key yahtml-mode-map "\M-\C-a" 'YaTeX-beginning-of-environment) + (define-key yahtml-mode-map "\M-\C-e" 'YaTeX-end-of-environment)) + +(defvar yahtml-syntax-table nil + "*Syntax table for typesetting buffer") + +(if yahtml-syntax-table nil + (setq yahtml-syntax-table + (make-syntax-table (standard-syntax-table))) + (modify-syntax-entry ?\< "(" yahtml-syntax-table) + (modify-syntax-entry ?\> ")" yahtml-syntax-table) +) +(defvar yahtml-command-regexp "[A-Za-z0-9]+" + "Regexp of constituent of html commands.") + +;;; Completion tables for `form' +(defvar yahtml-form-table '(("a") ("form"))) +(defvar yahtml-user-form-table nil) +(defvar yahtml-tmp-form-table nil) + +(defvar yahtml-env-table + '(("html") ("head") ("title") ("body") ("dl") + ("h1") ("h2") ("h3") ("h4") ("h5") ("h6"))) + +;;; Completion tables for typeface designator +(defvar yahtml-typeface-table + '(("defn") ("em") ("cite") ("code") ("kbd") ("samp") + ("strong") ("var") ("b") ("i") ("tt") ("u")) + "Default completion table of typeface designator") +(defvar yahtml-user-typeface-table nil) +(defvar yahtml-tmp-typeface-table nil) + +(defvar yahtml-prefer-upcases nil) +(cond + (yahtml-prefer-upcases + (setq yahtml-form-table + (mapcar (function (lambda (list) (list (upcase (car list))))) + yahtml-form-table)) + (setq yahtml-env-table + (mapcar (function (lambda (list) (list (upcase (car list))))) + yahtml-env-table)) + (setq yahtml-typeface-table + (mapcar (function (lambda (list) (list (upcase (car list))))) + yahtml-typeface-table)))) (defun yahtml-mode () (interactive) (yatex-mode) (setq major-mode 'yahtml-mode mode-name "yahtml") - (make-local-variable 'YaTeX-ec) - (setq YaTeX-ec "") - (make-local-variable 'YaTeX-struct-begin) - (setq YaTeX-struct-begin "<%1>") - (make-local-variable 'YaTeX-struct-end) - (setq YaTeX-struct-end "") - (make-local-variable 'env-table) - (setq env-table - '(("HTML") ("HEAD") ("TITLE") ("BODY") ("H1") ("H2") ("H3") ("DL"))) + (make-local-variable 'YaTeX-ec) (setq YaTeX-ec "") + (make-local-variable 'YaTeX-struct-begin) (setq YaTeX-struct-begin "<%1>") + (make-local-variable 'YaTeX-struct-end) (setq YaTeX-struct-end "") + (mapcar 'make-local-variable + '(env-table user-env-table tmp-env-table)) + (setq env-table yahtml-env-table) + (mapcar 'make-local-variable + '(singlecmd-table user-singlecmd-table tmp-singlecmd-table)) + (make-local-variable 'YaTeX-struct-name-regexp) + (setq YaTeX-struct-name-regexp "[^/]+") (make-local-variable 'YaTeX-prefix-map) + (make-local-variable 'YaTeX-command-token-regexp) + (setq YaTeX-command-token-regexp yahtml-command-regexp) (setq YaTeX-prefix-map yahtml-prefix-map) + (set-syntax-table yahtml-syntax-table) (use-local-map yahtml-mode-map) - (YaTeX-define-begend-key "bh" "HTML") - (YaTeX-define-begend-key "bH" "HEAD") - (YaTeX-define-begend-key "bt" "TITLE") - (YaTeX-define-begend-key "bb" "BODY") - (YaTeX-define-begend-key "bd" "DL") - (YaTeX-define-begend-key "b1" "H1") - (YaTeX-define-begend-key "b2" "H2") - (YaTeX-define-begend-key "b3" "H3") -) + (YaTeX-define-key "s" 'yahtml-insert-form) + (YaTeX-define-key "l" 'yahtml-insert-tag) + (if YaTeX-no-begend-shortcut nil + (YaTeX-define-begend-key "bh" "HTML") + (YaTeX-define-begend-key "bH" "HEAD") + (YaTeX-define-begend-key "bt" "TITLE") + (YaTeX-define-begend-key "bb" "BODY") + (YaTeX-define-begend-key "bd" "DL") + (YaTeX-define-begend-key "b1" "H1") + (YaTeX-define-begend-key "b2" "H2") + (YaTeX-define-begend-key "b3" "H3")) + (run-hooks 'yahtml-mode-hook)) + +(defun yahtml-define-menu (keymap bindlist) + (mapcar + (function + (lambda (bind) + (define-key keymap (vector (car bind)) (cdr bind)))) + bindlist)) + +(defvar yahtml-menu-map nil "Menu map of yahtml") +(defvar yahtml-menu-map-sectioning nil "Menu map of yahtml(sectioning)") +(defvar yahtml-menu-map-listing nil "Menu map of yahtml(listing)") +(defvar yahtml-menu-map-logical nil "Menu map of yahtml(logical tags)") +(defvar yahtml-menu-map-typeface nil "Menu map of yahtml(typeface tags)") + +;;; Variables for mosaic url history +(defvar yahtml-urls nil "Alist of global history") +(defvar yahtml-url-history-file "~/.mosaic-global-history" + "File name of url history") + +(cond + ((and YaTeX-emacs-19 (null yahtml-menu-map)) + (setq yahtml-menu-map (make-sparse-keymap "yahtml menu")) + (setq yahtml-menu-map-sectioning (make-sparse-keymap "sectioning menu")) + (yahtml-define-menu + yahtml-menu-map-sectioning + (nreverse + '((1 "H1" . (lambda () (interactive) (yahtml-insert-begin-end "H1" nil))) + (2 "H2" . (lambda () (interactive) (yahtml-insert-begin-end "H2" nil))) + (3 "H3" . (lambda () (interactive) (yahtml-insert-begin-end "H3" nil))) + (4 "H4" . (lambda () (interactive) (yahtml-insert-begin-end "H4" nil))) + (5 "H5" . (lambda () (interactive) (yahtml-insert-begin-end "H5" nil))) + (6 "H6" . (lambda () (interactive) (yahtml-insert-begin-end "H6" nil))) + ))) + (setq yahtml-menu-map-logical (make-sparse-keymap "logical tags")) + (yahtml-define-menu + yahtml-menu-map-logical + (nreverse + '((em "Embolden" . + (lambda () (interactive) (yahtml-insert-tag "EM"))) + (defn "Define a word" . + (lambda () (interactive) (yahtml-insert-tag "DEFN"))) + (cite "Citation" . + (lambda () (interactive) (yahtml-insert-tag "CITE"))) + (code "Code" . + (lambda () (interactive) (yahtml-insert-tag "CODE"))) + (kbd "Keyboard" . + (lambda () (interactive) (yahtml-insert-tag "KBD"))) + (samp "Sample display" . + (lambda () (interactive) (yahtml-insert-tag "SAMP"))) + (strong "Strong" . + (lambda () (interactive) (yahtml-insert-tag "STRONG"))) + (VAR "Variable notation" . + (lambda () (interactive) (yahtml-insert-tag "VAR"))) + ))) + (setq yahtml-menu-map-typeface (make-sparse-keymap "typeface tags")) + (yahtml-define-menu + yahtml-menu-map-typeface + (nreverse + '((b "Bold" . + (lambda () (interactive) (yahtml-insert-tag "B"))) + (i "Italic" . + (lambda () (interactive) (yahtml-insert-tag "I"))) + (tt "Typewriter" . + (lambda () (interactive) (yahtml-insert-tag "TT"))) + (u "Underlined" . + (lambda () (interactive) (yahtml-insert-tag "U"))) + ))) + (setq yahtml-menu-map-listing (make-sparse-keymap "listing")) + (yahtml-define-menu + yahtml-menu-map-listing + (nreverse + '((ul "Unnumbered" . + (lambda () (interactive) (yahtml-insert-begin-end "UL" nil))) + (ol "Numbered" . + (lambda () (interactive) (yahtml-insert-begin-end "OL" nil))) + (dl "Description" . + (lambda () (interactive) (yahtml-insert-begin-end "DL" nil))) + ))) + (define-key yahtml-mode-map [menu-bar yahtml] + (cons "yahtml" yahtml-menu-map)) + (yahtml-define-menu + yahtml-menu-map + (nreverse + (list + (cons (list 'sect "Sectioning") + (cons "sectioning" yahtml-menu-map-sectioning)) + (cons (list 'list "Listing") + (cons "Listing" yahtml-menu-map-listing)) + (cons (list 'logi "Logical tags") + (cons "logical" yahtml-menu-map-logical)) + (cons (list 'type "Typeface tags") + (cons "typeface" yahtml-menu-map-typeface)) + ))) + )) + +(defun yahtml-collect-url-history () + "Collect urls from global history file." + (interactive) + (save-excursion + (set-buffer + (find-file-noselect (expand-file-name yahtml-url-history-file))) + (goto-char (point-min)) + (setq yahtml-urls) + (message "Collecting global history...") + (while (re-search-forward "^[A-Za-z]+:" nil t) + (setq yahtml-urls + (cons (list + (buffer-substring + (progn (beginning-of-line) (point)) + (progn (skip-chars-forward "^ ") (point)))) + yahtml-urls))) + (message "Collecting global history...Done"))) + +(defun yahtml-insert-form (&optional form) + "Insert
." + (interactive) + (or form + (setq form + (YaTeX-cplread-with-learning + "Form: " + 'yahtml-form-table 'yahtml-user-form-table + 'yahtml-tmp-form-table))) + (let ((p (point))) + (insert (format "<%s%s>\n" form (yahtml-addin (downcase form)))) + (indent-relative-maybe) + (save-excursion (insert (format "" form))) + (if (search-backward "\"\"" p t) (forward-char 1)))) + +(defun yahtml-addin (form) + "Check add-in function's existence and call it if exists." + (let ((addin (concat "yahtml::" form))) + (if (and (intern-soft addin) (fboundp (intern-soft addin))) + (concat " " (funcall (intern addin))) + ""))) + +(defun yahtml::a () + "Add-in function for " + (or yahtml-urls (yahtml-collect-url-history)) + (concat "href=\"" + (completing-read "href: " yahtml-urls) + "\"")) + +(defun yahtml-insert-begin-end (env &optional region-mode) + "Insert \\n by calling YaTeX-insert-begin-end." + (interactive "sEnv: ") + (setq env (funcall (if yahtml-prefer-upcases 'upcase 'downcase) env)) + (YaTeX-insert-begin-end env region-mode)) + +(defun yahtml-insert-tag (&optional tag) + "Insert and put cursor inside of them." + (interactive) + (or tag + (setq tag + (YaTeX-cplread-with-learning + "Tag: " + 'yahtml-typeface-table 'yahtml-user-typeface-table + 'yahtml-tmp-typeface-table))) + (setq tag (funcall (if yahtml-prefer-upcases 'upcase 'downcase) tag)) + (insert (format "<%s> " tag)) + (save-excursion (insert (format "" tag)))) + +(provide 'yahtml) + +; Local variables: +; fill-prefix: ";;; " +; paragraph-start: "^$\\| \\|;;;$" +; paragraph-separate: "^$\\| \\|;;;$" +; End: diff --git a/yatex.el b/yatex.el index c5a3846..6683770 100644 --- a/yatex.el +++ b/yatex.el Binary files differ diff --git a/yatex.new b/yatex.new index e6cefd1..def40d8 100644 --- a/yatex.new +++ b/yatex.new @@ -1,6 +1,10 @@ What's new in YaTeX yatex.el �e�o�[�W�����̕ύX�_�ɂ‚��� +1.58 YaTeX-close-paren-always �� 'never �Ȃ��Ɏ����I�Ɋ��ʂ�‚��Ȃ��B + �p��ł�LaTeX�w���v�����������B + fj.sources�Ƀ|�X�g�B + 1.57 �����‹����l�X�g���Ă��鎞�� M-C-a, M-C-e �̃o�O�C���B \begin�̍s��TAB��reindent��������\end���������ɑ�����B ���W�������‹��Ŋ��������̒��g�̏������s���֐� diff --git a/yatexhks.el b/yatexhks.el index dc33cdb..17bcbb0 100644 --- a/yatexhks.el +++ b/yatexhks.el @@ -10,6 +10,33 @@ ;Private definitions begins from here. +(define-key YaTeX-user-extensional-map "0" + '(lambda () (interactive) (YaTeX-make-section nil nil nil "part"))) +(define-key YaTeX-user-extensional-map "1" + '(lambda () (interactive) (YaTeX-make-section nil nil nil "chapter"))) +(define-key YaTeX-user-extensional-map "2" + '(lambda () (interactive) (YaTeX-make-section nil nil nil "section"))) +(define-key YaTeX-user-extensional-map "3" + '(lambda () (interactive) (YaTeX-make-section nil nil nil "subsection"))) +(define-key YaTeX-user-extensional-map "4" + '(lambda () (interactive) (YaTeX-make-section nil nil nil "subsubsection"))) +(define-key YaTeX-user-extensional-map "5" + '(lambda () (interactive) (YaTeX-make-section nil nil nil "paragraph"))) +(define-key YaTeX-user-extensional-map "6" + '(lambda () (interactive) (YaTeX-make-section nil nil nil "subparagraph"))) +(define-key YaTeX-user-extensional-map "r" + '(lambda () (interactive) (YaTeX-make-section nil nil nil "ref"))) +(define-key YaTeX-user-extensional-map "i" + '(lambda () (interactive) (YaTeX-make-singlecmd "item"))) +(define-key YaTeX-user-extensional-map "\C-b" + '(lambda () (interactive) (YaTeX-make-singlecmd "leftarrow"))) +(define-key YaTeX-user-extensional-map "l" + '(lambda () (interactive) (YaTeX-make-section nil nil nil "label"))) +(define-key YaTeX-user-extensional-map "S" + '(lambda () (interactive) (YaTeX-make-section nil nil nil "setlength"))) +(define-key YaTeX-user-extensional-map "b" + '(lambda () (interactive) (YaTeX-make-fontsize nil "bf"))) + ; ;;; End of yatexhks.el diff --git a/yatexlib.el b/yatexlib.el index b1123b9..0e00bde 100644 --- a/yatexlib.el +++ b/yatexlib.el @@ -2,7 +2,7 @@ ;;; YaTeX library of general functions. ;;; yatexlib.el ;;; (c )1994-1995 by HIROSE Yuuji.[yuuji@ae.keio.ac.jp] -;;; Last modified Thu Jan 26 11:15:29 1995 on pajero +;;; Last modified Fri Feb 17 22:08:23 1995 on VFR ;;; $Id$ ;;;###autoload @@ -315,6 +315,10 @@ (set-mouse-position frame 0 0) (and (featurep 'windows) (fboundp 'win:adjust-window) (win:adjust-window)))) + ((and (featurep 'windows) (fboundp 'win:get-buffer-window) + (win:get-buffer-window buffer)) + (win:switch-window (win:get-buffer-window buffer)) + (select-window (get-buffer-window buffer))) (t (switch-to-buffer buffer)))) )