diff --git a/docs/qanda.eng b/docs/qanda.eng index 43e68c5..1a6f619 100644 --- a/docs/qanda.eng +++ b/docs/qanda.eng @@ -3,6 +3,9 @@ %% %% C-u C-x $ shows only questions. C-x $ shows all. %% +(New Item + *It is bothering for me to determine I should call bibtex or latex... + *Filling a paragraph doesn't work as I expected. [Installation] ============== @@ -201,6 +204,32 @@ ftp://ftp.ae.keio.ac.jp/pub/emacs-lisp/util/ ftp://archive.cis.ohio-state.edu/pub/gnu/elisp-archive/ +*It is bothering for me to determine I should call bibtex or latex... + + Why don't you try `latexmk' perl script, which is a TeX specific + tool as `make'? It detects the dependency among the TeX-related + files such as .tex, .bib, and so on, and will execute suitable + commands in a suitable sequence. You can find `latexmk' script + in a directory of supports/latexmk in some CTAN ftp directory. + +*Filling a paragraph doesn't work as I expected. + + It is because the indentation depth is different from default + depth. Please keep turning on auto-fill to make filling + function work well. If you bring some paragraph which has + different indentation from other part of document, you have to + re-indent it with the default indentation by typing TAB on each + line. If the paragraph is large, try the next operation; + + (1)Type C-x . on the beginning of line + (2)Mark paragraph to be re-indented + (3)Type M-C-\ + + then fill the paragraph. If you want fill that paragraph with + current indentation depth, move the cursor on the first + appearance of non-white-space character on the line before + filling. + [About Emacs-19/Mule2] ====================== *Equations are too dark to read when I use hilit19. diff --git a/docs/yatexe.tex b/docs/yatexe.tex index 9c56de3..1a21301 100644 --- a/docs/yatexe.tex +++ b/docs/yatexe.tex @@ -126,7 +126,7 @@ @itemize @item Invocation of typesetter, previewer and related programs(@kbd{C-c t}) @item Typesetting on static region which is independent from point -@item Semiautomatic replacing of @code{\include only} +@item Semiautomatic replacing of @code{\includeonly} @item Jumping to error line(@kbd{C-c '}) @item Completing-read of La@TeX{} commands such as @code{\begin@{@}}, @code{\section} etc. @@ -1562,9 +1562,9 @@ @section Lisp variables @cindex customizable variables - You can change the key assignments or make completion more -comfortable by setting the values of various variables which -control the movement of yatex-mode. + You can change the key assignments or make completion more comfortable +by setting the values of various variables which control the movement of +yatex-mode. For example, if you want to change the prefix key stroke from @kbd{C-c} to any other sequence, set YaTeX-prefix to whatever you want to use. If @@ -1595,145 +1595,137 @@ the variable by @kbd{M-x describe-variable}. @defvar YaTeX-prefix - Prefix key stroke (@kbd{C-c}) +Prefix key stroke (@kbd{C-c}) @end defvar @defvar YaTeX-inhibit-prefix-letter - Change key stroke from @kbd{C-c letter} to @kbd{C-c C-letter} - (@code{nil}) +Change key stroke from @kbd{C-c letter} to @kbd{C-c C-letter} (@code{nil}) @end defvar @defvar YaTeX-fill-prefix - Fill-prefix used in yatex-mode (@code{nil}) +Fill-prefix used in yatex-mode (@code{nil}) @end defvar @defvar YaTeX-user-completion-table - Name of user dictionary where learned completion table will be stored. - (@code{"~/.yatexrc"}) -@end defvar - -@defvar YaTeX-item-regexp - Regular expression of item command(@code{"\\\\item"}) +Name of user dictionary where learned completion table will be stored. +(@code{"~/.yatexrc"}) @end defvar @defvar tex-command - La@TeX{} typesetter command (@code{"latex"}) +La@TeX{} typesetter command (@code{"latex"}) @end defvar @defvar dvi2-command - Preview command - (@code{"xdvi -geo +0+0 -s 4 -display (getenv"DISPLAY")"}) +Preview command (@code{"xdvi -geo +0+0 -s 4"}) @end defvar @defvar dviprint-command-format - Command format to print dvi file (@code{"dvi2ps %f %t %s | lpr"}) +Command format to print dvi file (@code{"dvi2ps %f %t %s | lpr"}) @end defvar @defvar dviprint-from-format - Start page format of above %f. %b will turn to start page - (@code{"-f %b"}) +Start page format of above %f. %b will turn to start page (@code{"-f %b"}) @end defvar @defvar dviprint-to-format - End page format of above %t. %e will turn to @code{end} page - (@code{"-t %e"}) +End page format of above %t. %e will turn to @code{end} page (@code{"-t %e"}) +@end defvar + +@defvar makeindex-command +Default makeindex command (@code{"makeindex"} (@code{"makeind"} on MS-DOS)) @end defvar @defvar section-name - Initial default value at the first section-type completion - (@code{"documentstyle"}) +Initial default value at the first section-type completion +(@code{"documentstyle"}) @end defvar @defvar env-name - Initial default value at the first begin-type completion - (@code{"document"}) +Initial default value at the first begin-type completion (@code{"document"}) @end defvar @defvar fontsize-name - Ditto of large-type (@code{"large"}) +Ditto of large-type (@code{"large"}) @end defvar @defvar single-command - Ditto of maketitle-type (@code{"maketitle"}) +Ditto of maketitle-type (@code{"maketitle"}) @end defvar @defvar YaTeX-need-nonstop - Put @code{\nonstopmode@{@}} or not (@code{nil}) +Put @code{\nonstopmode@{@}} or not (@code{nil}) @end defvar @defvar latex-warning-regexp - Regular expression of warning message latex command puts out - (@code{"line.* [0-9]*"}) +Regular expression of warning message latex command puts out +(@code{"line.* [0-9]*"}) @end defvar @defvar latex-error-regexp - Regular expression of error message (@code{"l\\.[1-9][0-9]*"}) +Regular expression of error message (@code{"l\\.[1-9][0-9]*"}) @end defvar @defvar latex-dos-emergency-message - Message latex command running on DOS puts at abort - (@code{"Emergency stop"}) +Message latex command running on DOS puts at abort (@code{"Emergency stop"}) @end defvar @defvar YaTeX-item-regexp - Regexp of La@TeX{} itemization command (@code{"\\\\(sub\\)*item"}) +Regular expression of item command (@code{"\\\\item"}) @end defvar @defvar YaTeX-verb-regexp - Regexp of La@TeX{} verb command family. Omit \\\\. - (@code{"verb\\*?\\|path"}) +Regexp of verb family. Omit \\\\. (@code{"verb\\*?\\|path"}) @end defvar -@defvar YaTeX-nervous - T for using local dictionary (@code{t}) +@defvar YaTeX-nervous +T for using local dictionary (@code{t}) @end defvar @defvar YaTeX-sectioning-regexp - Regexp of La@TeX{} sectioning command - - (@code{"part\\|chapter\\|\\(sub\\)*\\(section\\|paragraph\\)"}) +Regexp of La@TeX{} sectioning command +(@code{"\\(part\\|chapter\\*?\\|\\(sub\\)*\\(section\\|paragraph\\)\\*?\\)\\b"}) @end defvar @defvar YaTeX-fill-inhibit-environments - Inhibit fill in these environments (@code{'("verbatim" "tabular")}) +Inhibit fill in these environments +(@code{'("tabular" "tabular*" "array" "picture" "eqnarray" "eqnarray*" "equation" "math" "displaymath" "verbatim" "verbatim*")}) @end defvar @defvar YaTeX-uncomment-once - @code{T} for deleting all preceding @code{%} (@code{nil}) +T for deleting all preceding @code{%} (@code{nil}) @end defvar @defvar YaTeX-close-paren-always - @code{T} for always close all parenthesis automatically, - @code{nil} for only eol(@code{t}) +T for always close all parenthesis automatically, @code{nil} for only eol +(@code{t}) @end defvar @defvar YaTeX-auto-math-mode - Switch math-mode automatically(@code{t}) +Switch math-mode automatically (@code{t}) @end defvar @defvar YaTeX-math-key-list-private - User defined alist, math-mode-prefix vs completion alist - used in image completion(@code{nil}). See @file{yatexmth.el} - for the information about how to define a completion alist. +User defined alist, math-mode-prefix vs completion alist +used in image completion (@code{nil}). See @file{yatexmth.el} +for the information about how to define a completion alist. @end defvar @defvar YaTeX-default-pop-window-height - Initial height of typesetting buffer when one-window. - Number for the lines of the buffer, numerical string for - the percentage of the screen-height. - @code{nil} for half height(10) +Initial height of typesetting buffer when one-window. +Number for the lines of the buffer, numerical string for +the percentage of the screen-height. @code{nil} for half height (10) @end defvar @defvar YaTeX-help-file - Global online help file name (@file{$EMACS/etc/YATEXHLP.jp}) +Global online help file name (@file{$EMACS/etc/YATEXHLP.jp}) @end defvar @defvar YaTeX-help-file-private - Private online help file name (@file{"~/YATEXHLP.jp"}) +Private online help file name (@file{"~/YATEXHLP.jp"}) @end defvar @defvar YaTeX-no-begend-shortcut - Disable [prefix] b ?? shortcut (@code{nil)} +Disable [prefix] b ?? shortcut (@code{nil)} @end defvar @defvar YaTeX-hilit-pattern-adjustment-private @@ -1758,16 +1750,17 @@ @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. +section-type command when add-in function for it is not defined +(@code{nil}) @end defvar @defvar YaTeX-create-file-prefix-g When typing @kbd{prefix g} on the @code{\include} line, -open the target file even if the file doesn't exist(@code{nil}). +open the target file even if the file doesn't exist (@code{nil}) @end defvar @defvar YaTeX-simple-messages -Simplyfy messages of various completions(@code{nil})$B!#(B +Simplyfy messages of various completions (@code{nil}) @end defvar @defvar YaTeX-hilit-sectioning-face @@ -1781,12 +1774,12 @@ @defvar YaTeX-hilit-sectioning-attenuation-rate When color mode, this variable specifies how much attenuate the color -density of @code{\subparagraph} compared with that of @code{\chapter}. -See also $B!#(B@code{YaTeX-hilit-sectioning-face}. +density of @code{\subparagraph} compared with that of @code{\chapter} +(@code{'(15 40)}) See also @code{YaTeX-hilit-sectioning-face}. @end defvar @defvar YaTeX-use-AMS-LaTeX -If you use AMS-LaTeX, set to @code{t}(@code{nil}). +If you use AMS-LaTeX, set to @code{t} (@code{nil}) @end defvar @node Sample definitions, Hook variables, All customizable variables, Lisp variables diff --git a/docs/yatexj.tex b/docs/yatexj.tex index 43d1e8b..241f2e7 100644 --- a/docs/yatexj.tex +++ b/docs/yatexj.tex @@ -22,7 +22,7 @@ @menu * Intro:: �͂��߂� -* Terminology:: �}�j���A���Q�Ə�̒��� +* Terminology:: �}�j���A���Q�Ə�̒��� * Main features:: ��ȋ@�\ * Installation:: �C���X�g�[�� * Invocation:: �v���Z�X�N�� @@ -1524,8 +1524,8 @@ @node Intelligent newline, Changing mode of YaTeX, What column, Top @comment node-name, next, previous, up @chapter ���܂������s -@cindex ���܂������s[���܂����������傤] -@cindex &����[&�ɂイ��傭] +@cindex ���܂������s[���܂����������悤] +@cindex &����[&�ɂ䂤��悭] @cindex prefix & tabular[*], array, itemize, enumerate, tabbing �‹���begin�^�⊮�œ��͂� @@ -1780,11 +1780,11 @@ �ϐ��̏ڍׂȐ������Q�Ƃ��Ă��������B @defvar YaTeX-prefix -yatex-mode ���̃v���t�B�N�X�L�[(@kbd{C-c}) +yatex-mode ���̃v���t�B�N�X�L�[ (@kbd{\C-c}) @end defvar @defvar YaTeX-inhibit-prefix-letter -prefix �L�[�̒���̃L�[�o�C���h��@kbd{�p��}�̂��̂�@kbd{C-�p��}�ɕύX +prefix �L�[�̒���̃L�[�o�C���h�� @kbd{�p��} �̂��̂� @kbd{C-�p��} �ɕύX (@code{nil}) @end defvar @@ -1793,19 +1793,11 @@ @end defvar @defvar YaTeX-user-completion-table -�w�K����La@TeX{}�R�}���h�ۑ��t�@�C����(@code{"~/.yatexrc"}) +�w�K����La@TeX{}�R�}���h�ۑ��t�@�C���� (@code{"~/.yatexrc"}) @end defvar @defvar YaTeX-kanji-code -�������쐬���鎞�̊����R�[�h1=Shift JIS, 2=JIS, 3=EUC(2 (MS-DOS�ł�1)) -@end defvar - -@defvar YaTeX-item-regexp -item�̌������̎��ɗp����Aitem�̐��K�\��(@code{"\\\\(sub\\)*item"}) -@end defvar - -@defvar YaTeX-verb-regexp -verb�R�}���h�̐��K�\���B�擪��\\\\�͂‚��Ȃ�(@code{"verb\\*?\\|path"}) +�������쐬���鎞�̊����R�[�h 1=Shift JIS, 2=JIS, 3=EUC (2 (MS-DOS�ł�1)) @end defvar @defvar tex-command @@ -1813,53 +1805,53 @@ @end defvar @defvar dvi2-command -�v�������[�A�R�}���h��(@code{"xdvi -geo +0+0 -s 4 -display (getenv"DISPLAY")"}) +�v�������[�A�R�}���h�� (@code{"xdvi -geo +0+0 -s 4"}) @end defvar @defvar dviprint-command-format -dvi�t�@�C���̈���Ɏg����R�}���h��(@code{"dvi2ps %f %t %s | lpr"}) +dvi�t�@�C���̈���Ɏg����R�}���h�� (@code{"dvi2ps %f %t %s | lpr"}) @end defvar @defvar dviprint-from-format ���@code{%f}�ɑ�������J�n�y�[�W�w�菑���A@code{%b} ���J�n�y�[�W�ԍ��ɕ� -���(@code{"-f %b"}) +��� (@code{"-f %b"}) @end defvar @defvar dviprint-to-format -@code{%t} �ɑ�������I���y�[�W�w�菑���A@code{%e}���I���y�[�W�ԍ��ɕς�� +@code{%t} �ɑ�������I���y�[�W�w�菑���A@code{%e}���I���y�[�W�ԍ��ɕς�� (@code{"-t %e"}) @end defvar @defvar makeindex-command -makeindex�R�}���h(@code{"makeindex"} (MS-DOS�ł�@code{"makeind"})) +makeindex�R�}���h (@code{"makeindex"} (MS-DOS�ł�@code{"makeind"})) @end defvar @defvar section-name -�ŏ���section�^�⊮�̋K��l(@code{"documentstyle"}) +�ŏ���section�^�⊮�̋K��l (@code{"documentstyle"}) @end defvar @defvar env-name -�ŏ���begin�^�⊮�̋K��l(@code{"document"}) +�ŏ���begin�^�⊮�̋K��l (@code{"document"}) @end defvar @defvar fontsize-name -�ŏ���large�^�⊮�̋K��l(@code{"large"}) +�ŏ���large�^�⊮�̋K��l (@code{"large"}) @end defvar @defvar single-command +�ŏ���maketitle�^�⊮�̋K��l (@code{"maketitle"}) @end defvar -�ŏ���maketitle�^�⊮�̋K��l(@code{"maketitle"}) @defvar YaTeX-need-nonstop -@code{\nonstopmode@{@}}�������I�ɕt�����邩(@code{nil}) +@code{\nonstopmode@{@}}�������I�ɕt�����邩 (@code{nil}) @end defvar @defvar latex-warning-regexp -latex�R�}���h�̏o�͂���E�H�[�j���O�s�̐��K�\��(@code{"line.* [0-9]*"}) +latex�R�}���h�̏o�͂���E�H�[�j���O�s�̐��K�\�� (@code{"line.* [0-9]*"}) @end defvar @defvar latex-error-regexp -�������G���[�s�̐��K�\��(@code{"l\\.[1-9][0-9]*"}) +�������G���[�s�̐��K�\�� (@code{"l\\.[1-9][0-9]*"}) @end defvar @defvar latex-dos-emergency-message @@ -1869,15 +1861,19 @@ @defvar latex-message-kanji-code jlatex �R�}���h�̏o�͂��郁�b�Z�[�W�̊����R�[�h.�^�C�v�Z�b�g�o�b�t�@ -�̏o�͂������鎞�́A�����ݒ肷��(2, Nemacs�ł̂ݗL��) +�̏o�͂������鎞�́A�����ݒ肷�� (2, Nemacs�ł̂ݗL��) @end defvar @defvar NTT-jTeX -NTT-j@TeX{}�g�p��@code{t}�ɂ���(@code{nil}) +NTT-j@TeX{}�g�p����@code{t}�ɂ��� (@code{nil}) @end defvar @defvar YaTeX-item-regexp -item���R�}���h�̐��K�\��(@code{"\\\\(sub\\)*item"}) +item�̌������̎��ɗp����Aitem�̐��K�\�� (@code{"\\\\(sub\\)*item"}) +@end defvar + +@defvar YaTeX-verb-regexp +verb�R�}���h�̐��K�\���B�擪��\\\\�͂‚��Ȃ� (@code{"verb\\*?\\|path"}) @end defvar @defvar YaTeX-nervous @@ -1885,48 +1881,48 @@ @end defvar @defvar YaTeX-sectioning-regexp -�Z�N�V������؂�ݒ�R�}���h�̐��K�\�� -(@code{"part\\|chapter\\|\\(sub\\)*\\(section\\|paragraph\\)"}) +�Z�N�V������؂�ݒ�R�}���h�̐��K�\�� +(@code{"\\(part\\|chapter\\*?\\|\\(sub\\)*\\(section\\|paragraph\\)\\*?\\)\\b"}) @end defvar @defvar YaTeX-fill-inhibit-environments -fill ��}�~����‹����̃��X�g(@code{'("verbatim" "tabular")}) +fill ��}�~����‹����̃��X�g +(@code{'("tabular" "tabular*" "array" "picture" "eqnarray" "eqnarray*" "equation" "math" "displaymath" "verbatim" "verbatim*")}) @end defvar @defvar YaTeX-uncomment-once -�̈�uncomment�ōs���̕�����@code{%}��S�č폜���邩(@code{nil}) +�̈�uncomment�ōs���̕�����@code{%}��S�č폜���邩 (@code{nil}) @end defvar @defvar YaTeX-close-paren-always -�J�����ʂ̓��͂ŏ�ɕ‚����ʂ���͂���(@code{t}) +�J�����ʂ̓��͂ŏ�ɕ‚����ʂ���͂��� (@code{t}) @end defvar @defvar YaTeX-auto-math-mode -�������[�h�̐؂�ւ��������I�ɍs���B(@code{t}) +�������[�h�̐؂�ւ��������I�ɍs�� (@code{t}) @end defvar @defvar YaTeX-math-key-list-private - �����C���[�W�⊮�ŗp���� (�v���t�B�N�X�L�[ . �Ή��⊮�e�[�u��) �� - alist(@code{nil})�B�⊮�e�[�u���̏������ɂ‚��Ă� - @file{yatexmth.el}���Q�ƁB +�����C���[�W�⊮�ŗp���� (�v���t�B�N�X�L�[ . �Ή��⊮�e�[�u��) �� +alist (@code{nil})�B�⊮�e�[�u���̏������ɂ‚��Ă�@file{yatexmth.el}���Q�ƁB @end defvar @defvar YaTeX-default-pop-window-height 1��ʂ̎��Ƀ^�C�v�Z�b�g�o�b�t�@�����߂č쐬���鎞�̍����B���l�ōs���A���� -�������Emacs�E�B���h�E�ɑ΂���S����(10)�B +�������Emacs�E�B���h�E�ɑ΂���S���� (10) @end defvar @defvar YaTeX-help-file -���p�w���v�t�@�C��(@file{$EMACS/etc/YATEXHLP.jp}) +���p�w���v�t�@�C�� (@file{$EMACS/etc/YATEXHLP.jp}) @end defvar @defvar YaTeX-help-file-private -�l�p�w���v�t�@�C��(@file{"~/YATEXHLP.jp"}) +�l�p�w���v�t�@�C�� (@file{"~/YATEXHLP.jp"}) @end defvar @defvar YaTeX-no-begend-shortcut @kbd{[prefix] b ??} �̃V���[�g�J�b�g���g�킸�A@kbd{[prefix] b} �����ŕ⊮ -���͂ɓ���(@kbd{nil}) +���͂ɓ��� (@code{nil}) @end defvar @defvar YaTeX-hilit-pattern-adjustment-private @@ -1950,20 +1946,20 @@ @defvar YaTeX-skip-default-reader Non-nil �ɐݒ肷���section�^�R�}���h�̈������͎��A�A�h�C���֐����Ȃ���� -�~�j�o�b�t�@�ł̓ǂݍ��݂������ɓ��͂�����������B +�~�j�o�b�t�@�ł̓ǂݍ��݂������ɓ��͂����������� (@code{nil}) @end defvar @defvar YaTeX-create-file-prefix-g @code{\include}�Ȃǂ� @kbd{prefix g}�������ɁA�W�����v�悪���݂��Ȃ��t�@�C -���ł����Ă��I�[�v������(@code{nil})�B +���ł����Ă��I�[�v������ (@code{nil}) @end defvar @defvar YaTeX-simple-messages -�e��⊮���̃��b�Z�[�W�o�͂��ȑf������(@code{nil})�B +�e��⊮���̃��b�Z�[�W�o�͂��ȑf������ (@code{nil}) @end defvar @defvar YaTeX-hilit-sectioning-face -�F�t�����L���Ȏ��� @code{\part} �̐F +�F�t�����L���Ȏ��� @code{\part} �̐F (@code{'(yellow/dodgerblue yellow/slateblue)})�B ���X�g�̑��v�f�� @code{hilit-background-mode} �� @code{'light} �̎��́A ���v�f�� @code{'dark} �̎��� @code{\chapter} �̐F�ŁA�����F/�w�i�F �̂� @@ -1972,12 +1968,12 @@ @defvar YaTeX-hilit-sectioning-attenuation-rate �F�t�����L���Ȏ��́A@code{\subparagraph} �̐F�� @code{\chapter} �̔Z�x�̉� -%�����������̂ɂ��邩(@code{'(15 40)}�B@code{YaTeX-hilit-sectioning-face} +%�����������̂ɂ��邩 (@code{'(15 40)}) @code{YaTeX-hilit-sectioning-face} �̍��Q�ƁB @end defvar @defvar YaTeX-use-AMS-LaTeX -AMS-LaTeX ���g�p����ꍇ�� @code{t} �ɐݒ肷��(@code{nil})�B +AMS-LaTeX ���g�p����ꍇ�� @code{t} �ɐݒ肷�� (@code{nil}) @end defvar @node Sample definitions, Hook variables, All customizable variables, Lisp variables diff --git a/help/YATEXHLP.jp b/help/YATEXHLP.jp index 3c6f407..464dc54 100644 --- a/help/YATEXHLP.jp +++ b/help/YATEXHLP.jp @@ -687,6 +687,10 @@ \sbox{\CMD}{�e�L�X�g} \savebox�Ɠ����Bsbox��robust, savebox��fragile +usebox +\usebox{\CMD} +\savebox��\CMD�ɕۑ����ꂽ�e�L�X�g��z�u����B + framebox \framebox{�I�u�W�F�N�g} �u�I�u�W�F�N�g�v�ɘg���‚���\makebox�Ɠ��l�̏���������B @@ -1211,7 +1215,7 @@ �ȉ��̕��X�̌䋦�͂𒸂��܂����B�����Ɋ��Ӑ\���グ�܂��B (���s��/��\���ڂ̂�) -���c��炳��(�}�c�_) +���c�a�炳��(�}�c�_) �]�ڂ��s���Ē����܂����B �k�ݗ��j����(�L���Z�p�Ȋw��) @@ -1372,6 +1376,9 @@ label/ref�⊮�ŁAlabel��ref�Ŏn�܂�P��S�Ă����ɂ���Ă��܂� �o�O��񍐂��Ē����܂����B +�g�c���u����(NTT DATA) + Win32�֘A�ő���Ȃ�v�������Ē����܂����B + ��c��������(�L���Z�ȑ�) Emacs 19.29 �ȍ~�Ő�����YaTeX-indent-new-comment-line�̕s��� �w�E���Ē����܂����B @@ -1391,7 +1398,7 @@ YaTeX-default-pop-window-height �̌��Ă𒸂��܂����B $ \% $ �̂悤�ȏꍇ�̐������[�h�I������̃~�X���w�E���Ē����܂����B -�������a(����H��) +�������a����(����H��) �쒹���g��Tips���܂Ƃ߂��u���Ȃ����킽�����쒹�́c�v�Ƃ���WWW�y�[ �W���쐬���ĉ������܂����B diff --git a/yahtml.el b/yahtml.el index bab4567..f22d712 100644 --- a/yahtml.el +++ b/yahtml.el @@ -1,7 +1,6 @@ ;;; -*- Emacs-Lisp -*- -;;; (c ) 1994 by HIROSE Yuuji [yuuji@ae.keio.ac.jp, pcs39334@asciinet.or.jp] -;;; Last modified Tue Apr 23 23:13:12 1996 on inspire -;;; This package is no longer tentative. +;;; (c ) 1994-1997 by HIROSE Yuuji [yuuji@ae.keio.ac.jp] +;;; Last modified Fri Jan 24 18:03:01 1997 on supra ;;; $Id$ ;;;[Installation] @@ -35,6 +34,8 @@ ;;; `' ;;; * [prefix] l Complete typeface-changing commands such as ;;; ` ... ' or ` ... ' +;;; This completion can be used to make in-line +;;; tags which is normally completed with [prefix] b. ;;; * [prefix] m Complete single commands such as ;;; `
' or `
or
  • ...' ;;; * M-RET Intelligent newline; if current TAG is one of @@ -50,7 +51,8 @@ ;;; * [prefix] c Change html tags on the point. ;;; When typeing [prefix] c on `href="xxx"', you can ;;; change the reference link with completion. -;;; * [prefix] t b View current html with WWW browser +;;; * [prefix] t j Call weblint on current file. +;;; * [prefix] t p View current html with WWW browser ;;; (To activate this, never fail to set the lisp ;;; variable yahtml-www-browser. Recommended value ;;; is "netscape") @@ -60,8 +62,7 @@ (require 'yatex) -(defvar yahtml-prefix-map nil) -(defvar yahtml-mode-map nil "Keymap used in yahtml-mode.") +;;; --- customizable variable starts here --- (defvar yahtml-image-viewer "xv" "*Image viewer program") (defvar yahtml-www-browser "netscape" "*WWW Browser command") @@ -77,18 +78,36 @@ "*Directory index file name; Consult your site's WWW administrator.") +(defvar yahtml-environment-indent YaTeX-environment-indent + "*Indentation depth of HTML's listing environment") + +(defvar yahtml-lint-program (if YaTeX-japan "jweblint" "weblint") + "*Program name to lint HTML file") +(defvar yahtml-hate-too-deep-indentation nil + "*Non-nil for this variable suppress deep indentation in listing environments.") + +;;; --- customizable variable ends here --- + +(defvar yahtml-prefix-map nil) +(defvar yahtml-mode-map nil "Keymap used in yahtml-mode.") +(defvar yahtml-lint-buffer-map nil "Keymap used in lint buffer.") +(defvar yahtml-shell-command-option + (or (and (boundp 'shell-command-option) shell-command-option) + (if (eq system-type 'ms-dos) "/c" "-c"))) + + (defun yahtml-define-begend-key-normal (key env &optional map) - "Define short cut yahtml-insert-begin-end key." + "Define short cut yahtml-insert-begend key." (YaTeX-define-key key (list 'lambda '(arg) '(interactive "P") - (list 'yahtml-insert-begin-end env 'arg)) + (list 'yahtml-insert-begend 'arg env)) map)) (defun yahtml-define-begend-region-key (key env &optional map) - "Define short cut yahtml-insert-begin-end-region key." + "Define short cut yahtml-insert-begend-region key." (YaTeX-define-key key (list 'lambda nil '(interactive) - (list 'yahtml-insert-begin-end env t)) map)) + (list 'yahtml-insert-begend t env)) map)) (defun yahtml-define-begend-key (key env &optional map) "Define short cut key for begin type completion both for @@ -128,20 +147,22 @@ (YaTeX-define-key "s" 'yahtml-insert-form map) (YaTeX-define-key "l" 'yahtml-insert-tag map) (YaTeX-define-key "m" 'yahtml-insert-single map) - (YaTeX-define-key "n" '(lambda () (interactive) (insert "
    \n")) map) + (YaTeX-define-key "n" '(lambda () (interactive) (if yahtml-prefer-upcases (insert "
    ")(insert "
    "))) map) (if YaTeX-no-begend-shortcut (progn (YaTeX-define-key "B" 'yahtml-insert-begend-region map) (YaTeX-define-key "b" 'yahtml-insert-begend map)) - (yahtml-define-begend-key "bh" "HTML" map) - (yahtml-define-begend-key "bH" "HEAD" map) - (yahtml-define-begend-key "bt" "TITLE" map) + (yahtml-define-begend-key "bh" "html" map) + (yahtml-define-begend-key "bH" "head" map) + (yahtml-define-begend-key "bt" "title" map) (yahtml-define-begend-key "bT" "table" map) - (yahtml-define-begend-key "bb" "BODY" map) - (yahtml-define-begend-key "bd" "DL" map) - (yahtml-define-begend-key "b1" "H1" map) - (yahtml-define-begend-key "b2" "H2" map) - (yahtml-define-begend-key "b3" "H3" map) + (yahtml-define-begend-key "bb" "body" map) + (yahtml-define-begend-key "bc" "center" map) + (yahtml-define-begend-key "bd" "dl" map) + (yahtml-define-begend-key "bu" "ul" map) + (yahtml-define-begend-key "b1" "h1" map) + (yahtml-define-begend-key "b2" "h2" map) + (yahtml-define-begend-key "b3" "h3" map) (yahtml-define-begend-key "ba" "a" map) (yahtml-define-begend-key "bf" "form" map) (yahtml-define-begend-key "bs" "select" map) @@ -156,17 +177,22 @@ (YaTeX-define-key "c" 'yahtml-change-* map) (YaTeX-define-key "t" 'yahtml-browse-menu map) (YaTeX-define-key "a" 'yahtml-complete-mark map) + (YaTeX-define-key "'" 'yahtml-prev-error map) ;;;;;(YaTeX-define-key "i" 'yahtml-fill-item map) - ) -) + )) + +(if yahtml-lint-buffer-map nil + (setq yahtml-lint-buffer-map (make-keymap)) + (define-key yahtml-lint-buffer-map " " 'yahtml-jump-to-error-line)) + (defvar yahtml-paragraph-start (concat - "^$\\|<[bh]r>\\|

    \\|^[ \t]*") + "^$\\|