diff --git a/docs/qanda b/docs/qanda index ac1dfb7..1b2d5d5 100644 --- a/docs/qanda +++ b/docs/qanda @@ -5,9 +5,8 @@ %% (�V����:�ERefTeX�͎g���܂���? + �Ebibtex��latex�Ƃ������݂ɂ�����̂��ʓ|�Ȃ�ł����� �E�����Œ�`�����J�E���^��\ref�⊮�ł̃��x�����ΏۂƂ��ĔF���������� - �Efont-lock �͂ǂ�����Ďg���΂�����ł���? - �EXEmacs�ł��F�͒����܂���? �E{\it }�����ł͎Α̂� {\bf }�ł͑����ɂȂ�Ƃ����\�𕷂�����ł����c) ���C���X�g�[���֘A @@ -36,38 +35,18 @@ �E�܂��������ςȂ̂� Info �f�B���N�g���ɏ������ތ������Ȃ��������c - root�ɂ��Ă��炢�܂��傤�B���ꂪ���߂ȂƂ��� Mule2 ���C���X�g�[ - �����Ă��炢�܂��傤�B���Ă���Ȃ����́A�z�[���f�B���N�g���ɃC�� - �X�g�[�����āA�ف[��f�B�X�N�̖��ʌ�������`��Ƃ����ċ����Γ��� - �Ă����͂��ł��BMule2 �Ȃ�A~/.emacs �� + root�ɂ��Ă��炢�܂��傤�B���ꂪ���߂ȂƂ��͈ȉ��̂悤�ɂ��Ȑl + ���L�� Info �f�B���N�g����Emacs�ɔF�������܂��傤�B (setq Info-default-directory-list (cons "������Info�f�B���N�g��" Info-default-directory-list)) - �Ə������ƂŁAinfo ���N���������Ɍl�p�̃t�@�C�������j���[�ɉ� - ���܂��B����ł�Mule2���Ȃ��Ȃ�����Ă���Ȃ����́A�V����info - �t�@�C�����E���ė��邽�тɊǗ��҂Ɂu����Ă������[���B���A���݂� - ���[�񖈓x�B�ł�Mule2�Ȃ玩���̃f�B���N�g����lj��ł����ł��� - �ǂ˂��c�v���J��Ԃ��܂��傤�B - �ELaTeX�̃w���v�t�@�C�����Ȃ��Ƃ�����B - Nemacs, Mule1 �ł� $EMACS/etc/, Mule2 �ł� $EMACS/site-lisp/ �� - �u����Ă���Ƃ݂Ȃ��悤�ɂȂ��Ă��܂��B���������̏ꏊ�ɒu������ - ���Ȃ����́A�z�[���f�B���N�g���̉��̂ǂ����ɒu���āA�ϐ� - YaTeX-help-file �ɂ��̃t�@�C������ݒ肵�ĉ������B - -�ENemacs�� info ���ǂ߂Ȃ��B - - Mule��format���Ă���̂ŁA�������{�ꏈ���̈قȂ�Nemacs(�܂��� - Nemacs�x�[�X��Demacs)�ł�(�o�C�g��������邽��)�������ǂނ��Ƃ� - �ł��܂���BMule�Ō䗗���������B�Ȃ��ATexinfo�t�@�C���̃t�H�[�}�b - �g�ɂ� texinfo-3.1.tar.gz �ɂ��� Emacs-Lisp �t�@�C����p���Ă��� - �����B - - �܂��A��B��w�̈�コ��ɂ��ƁAInfo �� dir ��ʂŁCM-x - Info-tagify �Ƃ��� info �t�@�C���̃R���o�[�g���ł��邻���ł��B + ���������̏ꏊ�ɒu���������Ȃ����́A�z�[���f�B���N�g���̉��̂ǂ� + ���ɒu���āA�ϐ� YaTeX-help-file �ɂ��̃t�@�C������ݒ肵�ĉ��� + ���B ������֘A �E�Ԉ���ĕς�LaTeX�R�}���h���w�K�����Ă��܂����B @@ -174,20 +153,12 @@ �E���O�ɓ��ꂽ \foo{��������} �́u��������v���������g�������B - gmhist �Ƃ����p�b�P�[�W�𓱓����܂��傤�B�쒹�� gmhist �ɑΉ��� - �Ă��܂��B�~�j�o�b�t�@�� \foo{???}: �ƕ����ꂽ���� M-p (ESC p)�� + �~�j�o�b�t�@�� \foo{???}: �ƕ����ꂽ���� M-p (ESC p)�� �����ƍ��܂œ��͂��������̗������t�����ɂ��ǂ��ĕ\�����܂��BM-n �Ɖ����Ə������ɂ��ǂ�܂��B�����̓��͗����� begin �^�⊮�A section �^�⊮�A�v�������[�A�N���A�v�����g�A�E�g�R�}���h�N������ ����ɑ΂��Ɨ��ɐݒ肳��܂��B - gmhist �͑����� Emacs-Lisp �A�[�J�C�u�T�C�g�ɒu���Ă���܂��B - ftp.ae.keio.ac.jp:pub/emacs-lisp/util/gmhist.tar.gz - �ɂ�����܂��B - - �������AMule2 �ȍ~��p���Ă���ꍇ�́Agmhist��p���Ȃ��Ă��~�j�o�b - �t�@�ł̃q�X�g�����g���܂��B - �Eref����label�ԃW�����v�ő��݂���͂���ref/label�ɃW�����v���Ȃ��B C-c g �Ƃ����ł‚ƑΉ�����ref/label�̑O����������n�߂܂��B @@ -216,24 +187,30 @@ �E���‚����^�Ƃ��Ďg���Ă��� template.tex ���ȒP�ɓ��ꂽ�� - autoinsert.el (Emacs19/Mule2�t��)���g���܂��傤�B�������́A���� - �̋@�\������ auto-insert-tkld ���g���܂��傤�B��҂́A - ftp://ftp.ae.keio.ac.jp/pub/emacs-lisp/util/auto-inset-tkld.tar.Z - �œ���ł��܂��B + ~/work/template.tex �ɒu���܂��傤�B�u���ꏊ��ς������ꍇ�� + (setq YaTeX-template-file "~/hogehoge/fugafuga.tex") + �̂悤�ɂ��ĕύX�ł��܂��B �Ebibtex��latex�Ƃ������݂ɂ�����̂��ʓ|�Ȃ�ł����� - latexmk �Ƃ����X�O�����̂̃c�[��������܂��B����́A.tex, - .bib, .idx �Ȃǂ̃t�@�C���Ԃ̈ˑ��֌W���h�L�������g�𑖍����Ē� - �ׁA�����I�� bibtex, makeindex, jlatex �Ȃǂ�K�v�ȏ����ŕK�v�� - �񐔋N�����Ă���܂��B������C���X�g�[�����A�e�h�L�������g�̐擪 - �� - %#!latexmk + yatex1.76���烉�x����bibtex�ł̕����ԍ��s�����������I�Ɍ��m���āA + �ď������K�v�ȂƂ��͎����I�ɍċN������悤�ɂȂ�܂���(auto rerun)�B + �قƂ�ǂ̏ꍇ�A�쒹�� auto rerun �őΏ��ł���͂��ł��B�������A + �ȉ��ŏq�ׂ�latexmk�𗘗p����ꍇ�͏d�������ɂȂ邽�ߖ쒹�� + auto rerun �𖳌������Ă��������B�������� + (setq YaTeX-typeset-auto-rerun nil) + ���܂��B - �ȂǂƏ����ă^�C�v�Z�b�^�Ƃ��� latexmk ���w�肷��Ε��G�Ȉˑ��� - �W�ɔY�񂾓��X�Ƃ͂�����΂ł��B�Ȃ��Alatexmk �� CTAN �T�C�g�� - support/latexmk/ �f�B���N�g���ɒu���Ă���܂��B - (�Ⴆ�� ftp.kdd.lab.kdd.co.jp:/CTAN/) + �����ړI�̃c�[���� latexmk �Ƃ����c�[��������܂��B����́A.tex, + .bib, .idx �Ȃǂ̃t�@�C���Ԃ̈ˑ��֌W�𒲂ׁA�����I�� bibtex, + makeindex, platex �Ȃǂ�K�v�ȏ����ŕK�v�ȉ񐔋N�����Ă���܂��B + ������C���X�g�[�����A�e�h�L�������g�̐擪�� + + %#!latexmk + + �ȂǂƏ����ă^�C�v�Z�b�^�Ƃ��� latexmk ���w�肷�邱�Ƃŗ��p�ł� + �܂��B�Ȃ��Alatexmk �� CTAN �T�C�g�ɂ���܂��B + (http://www.ctan.org/pkg/latexmk/) �E�^�C�v�Z�b�g�ƃv�������[�ŃL�[���Ⴄ�̂��ʓ|�ł���? @@ -413,13 +390,6 @@ ��B����Ȃ������Ŏ��Q�͂Ȃ��̂ŁA�C�ɂ��Ȃ����A���邢�͎��� Meadow ���o�ꂷ��܂� hilit19 �𗘗p���ĉ������B -�E���j���[�o�[�� YaTeX ���N���b�N�������Ƀn���O�������Ǝv���قǒx���B - - �킩��܂���AEmacs �̂����ł��B�䖝���Ă��������B���ڂ���͒x - ������܂���B�ӂ`���j���[�Ȃ񂩎g��Ȃ��ł���? �T���̂悤�Ƀ� - �j���[�o�[���g���F�B�ɖ쒹�����߂Ă͂����܂���B���������ł����A - ���߂�Ȃ������߂�Ȃ����B - �E\it ���C�^���b�N�\���ł��܂���?(Mule2) �܂��A���i�g�p���Ă���T�C�Y�̎Α̃t�H���g��T���܂��B @@ -611,7 +581,7 @@ ���Ɋ������܂��B �u���Ⴀpreview���Ă݂�����A�ł����̕��������ł�����ˁv�� �����Ă����؂�center�‹��S�̂��}�[�N(ESC C-@)���� - [prefix] % b ����center�‹��� %#BEGIN�`%#END�Ŋ����Ă��� + [prefix] % B ����center�‹��� %#BEGIN�`%#END�Ŋ����Ă��� �̈�^�C�v�Z�b�g���܂��B[prefix] t r�B �u����preview����v �Ƃ����‚� [prefix] t p ���܂��B @@ -622,22 +592,23 @@ �߂܂��B �u�͂��A���̍s�v �ƌ����Ȃ��� ESC RET ���܂��B�܂��K���ɖ��߂� - �̈�^�C�v�Z�b�g���� xdvi ��raise���܂��Bmule�ɖ߂�center�‹� - �̊O�Ɂw���̕\�͏d�v�l�`�x�Ə����܂��B + ���x�� [prefix] t e �ŗׂ̃o�b�t�@�� on-the-fly preview ���o���A + �\�̒��������������Ă͎����I�ɗׂ�preview�摜�������ς��l�� + ���߂܂��B + �����āAcenter�‹��̊O�Ɂw���̕\�͏d�v�l�`�x�Ə����܂��B �u���ށA�w�d�v�x�ɂ̓A���_�[���C�����������v �Ƃ����āw�d�v�x�����W�����w�肵�� [prefix] S(�啶��) �� - underline ��⊮���͂��A�܂�preview���܂��B + underline ��⊮���͂��A�Y�񂾂ӂ������ �u����σA���_�[���C���͂�߁v�ƌ����Ȃ��� \underline �܂��� { �� } �ɃJ�[�\�������킹�� [prefix] k ���� - \underline{} �������܂��B�܂�preview���āA + \underline{} �������܂��B����ɔY�ނӂ������ �u����σZ���^�����O�͗v��񂩂������Ȃ��c�v�ƌ����‚� \end{center} �ɃJ�[�\�������킹�� [prefix] . �������܂��B - ����� \begin{center}, \end{center} �� % ���‚��̂ł܂� - preview���܂��B + ����� \begin{center}, \end{center} �� % ���‚��܂��B �u���ށA����ς�Z���^�����O�͂ۂ����v�ƌ����� \end{center}�̍s�� [prefix] k �������� begin/end �΂������܂��B �u���āA�t�@�C�����ł����Ȃ��ė����̂ŕ������邩�v�ƌ����� - \include{foo} �Ȃǂ�⊮���͂��܂��B + \include{foo} �Ȃǂ� [prefix] s �ŕ⊮���͂��܂��B �u���Ⴀ foo.tex �����Ȃ���c�v�ƌ����� [prefix] g ���܂��B foo.tex ������ɍ����̂œK���ɂ����Ⴒ���Ꮡ���� [prefix] t j �Ń^�C�v�Z�b�g���܂��B @@ -649,7 +620,7 @@ ����Ȋ����ł����ˁB ���Ƃ́A�C���[�W�⊮�A�������[�h��������A����usepackage�Ȃ�� - �̂�AUC�ɂ͂���܂���B + �̂��A�h�o���e�[�W�ł��傤�B �E�Ȃ�ō\���t�@�C�������܂���SJIS�Ȃ�? �������[�B diff --git a/docs/qanda.eng b/docs/qanda.eng index 5b1efce..3b023b7 100644 --- a/docs/qanda.eng +++ b/docs/qanda.eng @@ -32,39 +32,25 @@ *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 + Get yourself made root. If you can't, write this: (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. By the way, 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 :-) + menu when you invoke info. *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 + 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. - 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. +*I accidentally learned in a wrong LaTeX macro in my dictionary. There should be a line with the wrong command in the .yatexrc file in your home or current directory. Erase or fix that line, @@ -209,19 +195,24 @@ *Is it possible to include personal template file template.tex handily? - Try Emacs-19's standard package `autoinsert.el' please. Or its - upper compatible package auto-insert-tkld might also be good. - You can get auto-insert-tkld via anonymous ftp - ftp://ftp.ae.keio.ac.jp/pub/emacs-lisp/util/ - ftp://archive.cis.ohio-state.edu/pub/gnu/elisp-archive/ + Put your template.tex into your ~/work directory where YaTeX + seeks by default. If you change the location to another place, + set the lisp-variable as below. + (setq YaTeX-template-file "~/other/location/template.tex") *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. + Since version 1.76, YaTeX automatically call bibtex/latex twice + if needed. In most case, you don't have to repeat to call + typesetter or bibtex. If you use `latexmk' described below, + YaTeX's auto rerun functionality should be disabled by setting + like this: + (setq YaTeX-typeset-auto-rerun nil) + + The `latexmk' perl script, which is a TeX specific tool to + automate generation of LaTeX document. You can find `latexmk' + some CTAN ftp directory. + (eg. http://www.ctan.org/pkg/latexmk/) *Can I inhibit auto-filling against very long line? @@ -276,12 +267,6 @@ you are thinking of graduating from hilit19, it might be better to keep old setting about it... -*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? - *Is there any way of displaying `\it' strings in the italic font? First, you should find the available italic font on your diff --git a/install b/install index 8ec64fa..f066f60 100644 --- a/install +++ b/install @@ -3,30 +3,25 @@ Installation of YaTeX / �쒹�̃C���X�g�[�� ****************************************** -Put these expressions into your ~/.emacs -�܂� ~/.emacs�ɉ���2���ڂ������܂��B - - (setq auto-mode-alist - (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist)) - (autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t) - -Then, add certain path name where you put files of YaTeX to your -load-path. If you want to put them in `~/src/emacs', write -���ɖ쒹�� emacs-lisp �t�@�C���Q��u���f�B���N�g���� load-path �ɉ����܂��B -���Ƃ��΁A`~/src/emacs/yatex'�ɒu���̂ł���΁A - - (setq load-path (cons (expand-file-name "~/src/emacs/yatex") load-path)) - -in your ~/.emacs. -�ȂǂƂ��܂��B - -Then edit makefile and exec the next command. -������ makefile ��ҏW���A +First, take a look at makefile to confirm or modify EMACS= and PREFIX= +lines and exec the next command. +���̃f�B���N�g���ɂ��� makefile �� EMACS= �� PREFIX= �̍s���m�F���A +�K�v�Ȃ�C��������Ɉȉ��̃R�}���h���N�����Ă��������B % make install (or "sudo make install") -�ŃC���X�g�[�����s���Ă��������B +Then, type `make show-init' on the shell in this directory as below +and ou will get elisp expressions. Add the expressions to your ~/.emacs. +�����Ĉȉ��̂悤�ɃR�}���h���N�����A����ꂽ���ʏo�͂� ~/.emacs +�ɑ����Ă��������B + + % make show-init + +After copying output from make command to your ~/.emacs, you will be able to +use yatex-mode for *.tex files. +�ȏ�ŁA�����ݒ�͏I���ł��B + Without installing to default-dir, you can use yatex by adding the elisp obtained by below to ~/.emacs. @@ -36,36 +31,6 @@ % make show-init2 -If `make install' fails, do as follows; -���� `make install' �ł��܂��s���Ȃ����͉��L�̂悤�Ɏ蓮�ŃC���X�g�[�� -���s���Ă��������B - -First, copy `*.el' to suitable directory. -�ŏ��ɁA�쒹�� emacs-lisp �t�@�C���Q��K���ȃf�B���N�g���ɃR�s�[���܂��B - -Then copy `help/YATEXHLP.eng' to $EMACS/etc directory, which is -displayed by typin `exec-directory C-j' in the *scratch* buffer -(on Emacs19, $exec-directory/../../site-lisp). -�‚��ɁAhelp/YATEXHLP.jp �� Emacs �� etc �f�B���N�g���ɓ���܂��B -(*scratch* �o�b�t�@�Łuexec-directory C-j�v�Ƃ����Ď������Ƃ���ł� - Emacs19�ȍ~�̏ꍇ doc-directory �� ../../site-lisp) - - -Finally, copy `docs/yatexe' and `docs/yahtmle' to Info directory and -append the contents of `dir' in this directory to `dir' of Info directory. -�Ō�ɁAinfo �f�B���N�g���� docs/yatexj, docs/yatexe, docs/yahtmlj, -docs/yahtmle ���R�s�[���Ainfo �f�B���N�g���� dir �Ƃ����t�@�C���ɂ��̃f�B -���N�g���� dir �t�@�C���̒��g��lj����܂��B - -Note that when you byte-compile yatex19.el, do it on window system. -This file cannot be compiled on terminal Emacs because it requires -hilit19.el, which cannot be loaded on terminal Emacs. But you don't -have to byte-compile it. -����: yatex19.el ���o�C�g�R���p�C�����鎞�̓E�B���h�E�V�X�e����� emacs -�ōs���ĉ������Bemacs -nw �ł́Ahilit19.el �����[�h�ł����A����ɃR���p -�C���ł��܂���B���܂������Ȃ��ꍇ�̓o�C�g�R���p�C�����Ȃ��č\���܂���B - - About yahtml / yahtml�ɂ‚��� ***************************** diff --git a/makefile b/makefile index 6efadd8..6add182 100644 --- a/makefile +++ b/makefile @@ -135,11 +135,12 @@ done show-init: - @printf '%s\n%s\n%s\n%s\n' \ + @printf '%s\n' \ '(setq auto-mode-alist' \ " (cons (cons \"\\.tex$$\" 'yatex-mode) auto-mode-alist))" \ "(autoload 'yatex-mode \"yatex\" \"Yet Another LaTeX mode\" t)" \ - "(add-to-list 'load-path \"${LISPDIR}\")" + "(add-to-list 'load-path \"${LISPDIR}\")" \ + "(setq YaTeX-help-file \"${LISPDIR}/help/YATEXHLP.eng\")" @printf '(setq tex-command "%s")%s\n' \ `CMDS='platex pdflatex ptex2pdf lualatex' DFLT=latex \ make search-cmd` diff --git a/yatex.new b/yatex.new index fe92ec2..6e9bf6b 100644 --- a/yatex.new +++ b/yatex.new @@ -3,7 +3,7 @@ 1.79 === yatex === �����‹��ȂǓ���‹����� [prefix] t e �� On-the-fly preview �����B - YaTeX-help-file �̃f�t�H���g�ʒu�� site-lisp/yatex/help �ɕύX�B + YaTeX-help-file �̃f�t�H���g�ʒu�� site-lisp/yatex/help/ �ɕύX�B ...