Initial commit

This commit is contained in:
Mateus Pinto Rodrigues
2017-11-11 15:15:10 -02:00
commit 58c3bd6728
1202 changed files with 434097 additions and 0 deletions

View 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

View 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:

View 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:

View 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: