Add new packages installed
This commit is contained in:
64
elpa/auctex-12.1.0/tests/japanese/error-parsing.el
Normal file
64
elpa/auctex-12.1.0/tests/japanese/error-parsing.el
Normal file
@@ -0,0 +1,64 @@
|
||||
;;; error-parsing.el --- tests for error parsing
|
||||
|
||||
;; Copyright (C) 2017 Free Software Foundation, Inc.
|
||||
|
||||
;; This file is part of AUCTeX.
|
||||
|
||||
;; AUCTeX is free software; you can redistribute it and/or modify it
|
||||
;; under the terms of the GNU General Public License as published by
|
||||
;; the Free Software Foundation; either version 3, or (at your option)
|
||||
;; any later version.
|
||||
|
||||
;; AUCTeX is distributed in the hope that it will be useful, but
|
||||
;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
;; General Public License for more details.
|
||||
|
||||
;; You should have received a copy of the GNU General Public License
|
||||
;; along with AUCTeX; see the file COPYING. If not, write to the Free
|
||||
;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
||||
;; 02110-1301, USA.
|
||||
|
||||
;;; Code:
|
||||
|
||||
(require 'ert)
|
||||
(require 'tex-buf)
|
||||
(setq japanese-TeX-error-messages t)
|
||||
(require 'tex-jp)
|
||||
|
||||
(ert-deftest japanese-TeX-help-message ()
|
||||
"Test the fallback behavior of `TeX-help-error'.
|
||||
It should pick up error messages from the log file even if
|
||||
tex-jp.el modified `TeX-error-description-list'."
|
||||
(should (let* ((dummyfile (make-temp-file "japanese-TeX-ert"))
|
||||
(logfile (concat dummyfile ".log")))
|
||||
(find-file logfile)
|
||||
(insert "\
|
||||
./errorsamp.tex:3: EROOR NEVER COVERED BY TeX-error-description-list.
|
||||
l.3 }
|
||||
|
||||
FOO BAR
|
||||
HOGE FUGA
|
||||
")
|
||||
(save-buffer 0)
|
||||
(find-file dummyfile)
|
||||
;; Actually, the contents of dummyfile is irrelavent to
|
||||
;; this test. It is only used to make the log file name
|
||||
;; which is analysed in `TeX-help-error' to be
|
||||
;; predictable.
|
||||
(let ((TeX-command-buffer (current-buffer)))
|
||||
(TeX-help-error
|
||||
"EROOR NEVER COVERED BY TeX-error-description-list."
|
||||
"" (current-buffer) 'error))
|
||||
(delete-other-windows)
|
||||
(kill-buffer (get-file-buffer logfile))
|
||||
(delete-file logfile)
|
||||
(kill-buffer (get-file-buffer dummyfile))
|
||||
(delete-file dummyfile)
|
||||
(set-buffer "*TeX Help*")
|
||||
(goto-char (point-min))
|
||||
(prog1
|
||||
(search-forward "From the .log file...")
|
||||
(kill-buffer)))))
|
||||
|
||||
;;; error-parsing.el ends here
|
||||
2
elpa/auctex-12.1.0/tests/japanese/parse-timing-test.tex
Normal file
2
elpa/auctex-12.1.0/tests/japanese/parse-timing-test.tex
Normal file
@@ -0,0 +1,2 @@
|
||||
\documentclass{jarticle}
|
||||
\usepackage{amsmath}
|
||||
52
elpa/auctex-12.1.0/tests/japanese/parse-timing.el
Normal file
52
elpa/auctex-12.1.0/tests/japanese/parse-timing.el
Normal file
@@ -0,0 +1,52 @@
|
||||
;;; parse-timing.el --- tests for parse timing
|
||||
|
||||
;; Copyright (C) 2017 Free Software Foundation, Inc.
|
||||
|
||||
;; This file is part of AUCTeX.
|
||||
|
||||
;; AUCTeX is free software; you can redistribute it and/or modify it
|
||||
;; under the terms of the GNU General Public License as published by
|
||||
;; the Free Software Foundation; either version 3, or (at your option)
|
||||
;; any later version.
|
||||
|
||||
;; AUCTeX is distributed in the hope that it will be useful, but
|
||||
;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
;; General Public License for more details.
|
||||
|
||||
;; You should have received a copy of the GNU General Public License
|
||||
;; along with AUCTeX; see the file COPYING. If not, write to the Free
|
||||
;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
||||
;; 02110-1301, USA.
|
||||
|
||||
;;; Commentary:
|
||||
;; In AUCTeX, style hooks must not be executed too early. In
|
||||
;; particular, they should not be called within the major mode hook
|
||||
;; because the required settings are sometimes not ready at that
|
||||
;; timing. A difficult point is that many AUCTeX functions implicitly
|
||||
;; call `TeX-update-style', which eventually calls style hooks. Thus
|
||||
;; a complicated hook sometimes triggers style hooks unintentionally.
|
||||
;; Such cases suits for detection via regression tests.
|
||||
|
||||
;;; Code:
|
||||
|
||||
(require 'ert)
|
||||
(require 'tex-jp)
|
||||
|
||||
(AUCTeX-set-ert-path
|
||||
'parse-timing
|
||||
"parse-timing-test.tex")
|
||||
|
||||
(ert-deftest japanese-TeX-style-hook-timing ()
|
||||
"Test style hooks are not called too early."
|
||||
(let ((TeX-parse-self t)
|
||||
(TeX-master t)
|
||||
(LaTeX-mode-hook '(japanese-latex-mode-initialization
|
||||
turn-on-reftex)))
|
||||
(find-file parse-timing)
|
||||
(should (memq 'AMSTeX
|
||||
(get reftex-docstruct-symbol
|
||||
'reftex-label-alist-style)))
|
||||
(kill-buffer)))
|
||||
|
||||
;;; parse-timing.el ends here
|
||||
42
elpa/auctex-12.1.0/tests/japanese/preview-error-test.tex
Normal file
42
elpa/auctex-12.1.0/tests/japanese/preview-error-test.tex
Normal file
@@ -0,0 +1,42 @@
|
||||
% Please check that all preview images in this buffer come out at the
|
||||
% correct position. I.e., preview images should hide each \section
|
||||
% command.
|
||||
% When done, type C-M-c or M-x exit-recursive-edit.
|
||||
%
|
||||
% If the image is at the beginning of the line and "\section{xxx}" is
|
||||
% placed far rightward of the image, then the result should be considered
|
||||
% as fail.
|
||||
% In addition, if the image covers "\section{xxx}" only partially, the
|
||||
% result should be considered as fail, too.
|
||||
% On the contrary, if the text shown in the image is garbled while the
|
||||
% position of the image is correct, then the result should be considered as
|
||||
% OK. That means that your ghostscript is not configured to handle
|
||||
% Japanese postscript font names correctly and the functionality of
|
||||
% preview-latex is just fine.
|
||||
\documentclass{jarticle}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\section{<EFBFBD>\(1)}
|
||||
|
||||
\section{<EFBFBD>\{a}}
|
||||
|
||||
\section{\(<EFBFBD>\\|\)}
|
||||
|
||||
\section{<EFBFBD>A<EFBFBD>[<5B>X}
|
||||
|
||||
\section{<EFBFBD>^}
|
||||
|
||||
% The comment "%<25>\" will be displayed rightward to the image on the next
|
||||
% line. That is a normal outcome and should be considered as OK.
|
||||
\section{<EFBFBD><EFBFBD>} %<25>\
|
||||
|
||||
\end{document}
|
||||
|
||||
%%% Local Variables:
|
||||
%%% coding: shift_jis
|
||||
%%% mode: japanese-latex
|
||||
%%% TeX-master: t
|
||||
%%% TeX-engine: ptex
|
||||
%%% TeX-PDF-mode: nil
|
||||
%%% End:
|
||||
20
elpa/auctex-12.1.0/tests/japanese/preview-error-test2.tex
Normal file
20
elpa/auctex-12.1.0/tests/japanese/preview-error-test2.tex
Normal file
@@ -0,0 +1,20 @@
|
||||
% Please check that the preview image in this buffer comes out at the
|
||||
% correct position. I.e., preview images should hide the equation.
|
||||
% When done, type C-M-c or M-x exit-recursive-edit.
|
||||
%
|
||||
% If the image is at the beginning of the line and does not cover the
|
||||
% equation, then the result should be considered as fail.
|
||||
\documentclass{jarticle}
|
||||
|
||||
\begin{document}
|
||||
preview-latex <20><> \(a^{2}=b^{2}+c^{2}\) <20>Τ褦<CEA4>ʿ<EFBFBD><CABF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܸ<EFBFBD> LaTeX <20>Ǥ<EFBFBD>
|
||||
preview <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
\end{document}
|
||||
|
||||
%%% Local Variables:
|
||||
%%% coding: euc-jp
|
||||
%%% mode: japanese-latex
|
||||
%%% TeX-master: t
|
||||
%%% TeX-engine: ptex
|
||||
%%% TeX-PDF-mode: nil
|
||||
%%% End:
|
||||
42
elpa/auctex-12.1.0/tests/japanese/prv-dif-code.tex
Normal file
42
elpa/auctex-12.1.0/tests/japanese/prv-dif-code.tex
Normal file
@@ -0,0 +1,42 @@
|
||||
% Please check that all preview images in this buffer come out at the
|
||||
% correct position. I.e., preview images should hide each \section
|
||||
% command.
|
||||
% When done, type C-M-c or M-x exit-recursive-edit.
|
||||
%
|
||||
% If the image is at the beginning of the line and "\section{xxx}" is
|
||||
% placed far rightward of the image, then the result should be considered
|
||||
% as fail.
|
||||
% In addition, if the image covers "\section{xxx}" only partially, the
|
||||
% result should be considered as fail, too.
|
||||
% On the contrary, if the text shown in the image is garbled while the
|
||||
% position of the image is correct, then the result should be considered as
|
||||
% OK. That means that your ghostscript is not configured to handle
|
||||
% Japanese postscript font names correctly and the functionality of
|
||||
% preview-latex is just fine.
|
||||
\documentclass{jarticle}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\section{$BI=(B(1)}
|
||||
|
||||
\section{$BM=(B{a}}
|
||||
|
||||
\section{\($BG=(B\|\)}
|
||||
|
||||
\section{$B%"!<%9(B}
|
||||
|
||||
\section{$B7?(B}
|
||||
|
||||
% The comment "%$BG=(B" will be displayed rightward to the image on the next
|
||||
% line. That is a normal outcome and should be considered as OK.
|
||||
\section{$B$"(B} %$BG=(B
|
||||
|
||||
\end{document}
|
||||
|
||||
%%% Local Variables:
|
||||
%%% coding: iso-2022-jp
|
||||
%%% mode: japanese-latex
|
||||
%%% TeX-master: t
|
||||
%%% TeX-engine: ptex
|
||||
%%% TeX-PDF-mode: nil
|
||||
%%% End:
|
||||
Reference in New Issue
Block a user