Browse Source

updated yatex: TeX Live 2011

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@5257 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 12 years ago
parent
commit
a1901795e1
3 changed files with 116 additions and 5 deletions
  1. 2 2
      y/yatex/vine-default-yatex.el
  2. 101 0
      y/yatex/yatex-1.74-vine-vl7.patch
  3. 13 3
      y/yatex/yatex-vl.spec

+ 2 - 2
y/yatex/vine-default-yatex.el

@@ -29,8 +29,8 @@
       YaTeX-use-LaTeX2e t
       YaTeX-use-font-lock t
       dvi2-command "pxdvi"  ;; xdvi
-      tex-command "eplatex -kanji=utf8 -src-specials"
-      dviprint-command-format "pdvips %s | lpr"  ;; dvips
+      tex-command "platex -kanji=utf8 -src-specials"
+      dviprint-command-format "dvips %s | lpr"
       makeindex-command "mendex -U"
       bibtex-command "pbibtex -kanji=utf8"
       )

+ 101 - 0
y/yatex/yatex-1.74-vine-vl7.patch

@@ -0,0 +1,101 @@
+diff -up yatex1.74/yatex.el.vine yatex1.74/yatex.el
+--- yatex1.74/yatex.el.vine	2009-09-28 10:57:01.000000000 +0900
++++ yatex1.74/yatex.el	2011-12-04 00:29:59.894689935 +0900
+@@ -7,6 +7,29 @@
+ ;;; The latest version of this software is always available at;
+ ;;; http://www.yatex.org/
+ 
++;;; Our Vine Linux applied the following settings as default: 
++;; (setq YaTeX-kanji-code 4
++;;       dvi2-command "pxdvi"
++;;       tex-command "platex -kanji=utf8 -src-specials"
++;;       dviprint-command-format "dvips %s | lpr"
++;;       makeindex-command "mendex -U"
++;;       bibtex-command "pbibtex -kanji=utf8"
++;;       )
++;; 
++;; (setq YaTeX-default-document-style
++;;       (concat (if YaTeX-japan "js") "article"))
++;; 
++;; (setq YaTeX-file-processor-alist-default
++;;   '(("tgif" . ".obj")
++;;     ("evince" . ".ps")
++;;     ("evince" . ".eps")
++;;     ("eog" . ".jpg") ("eog" . ".png")
++;;     ("evince" . ".pdf") ("inkscape" . ".ai")
++;;     (t . ".tex")
++;;     (t . ".sty")
++;;     (t . ""))
++;;   )
++
+ (require 'comment)
+ (require 'yatexlib)
+ (defconst YaTeX-revision-number "1.74"
+@@ -48,26 +71,26 @@ YaTeX-current-position-register.")
+ 
+ (defvar tex-command
+   (cond
+-   (YaTeX-use-LaTeX2e "platex")
+-   (YaTeX-japan "jlatex")
++   (YaTeX-use-LaTeX2e "platex -kanji=utf8 -src-specials");; default: platex
++   (YaTeX-japan "platex -kanji=utf8 -src-specials");; default: jlatex
+    (t "latex"))
+   "*Default command for typesetting LaTeX text.")
+ 
+-(defvar bibtex-command (if YaTeX-japan "jbibtex" "bibtex")
++(defvar bibtex-command (if YaTeX-japan "pbibtex -kanji=utf8" "bibtex");; default: jbibtex
+   "*Default command of BibTeX.")
+ 
+ (defvar dvi2-command		;previewer command for your site
+   (if YaTeX-dos "dviout -wait=0"
+-    "xdvi -geo +0+0 -s 4")
++    "pxdvi");; default: xdvi -geo +0+0 -s 4
+   "*Default previewer command including its option.
+ This default value is for X window system.")
+ 
+-(defvar makeindex-command (if YaTeX-dos "makeind" "makeindex")
++(defvar makeindex-command (if YaTeX-dos "makeind" "mendex -U");; default: makeindex
+   "*Default makeindex command.")
+ 
+ (defvar dviprint-command-format
+   (if YaTeX-dos "dviprt %s %f%t"
+-      "dvi2ps %f %t %s | lpr")
++      "dvips %s | lpr");; default: dvi2ps %f %t %s | lpr
+   "*Command line string to print out current file.
+ Format string %s will be replaced by the filename.  Do not forget to
+ specify the `from usage' and `to usage' with their option by format string
+@@ -83,7 +106,7 @@ specify the `from usage' and `to usage' 
+   "*`To' page format of dvi filter.  %e will turn to end page number.")
+ 
+ (defvar YaTeX-default-document-style
+-  (concat (if YaTeX-japan "j") "article")
++  (concat (if YaTeX-japan "js") "article");; default: j
+   "*Default LaTeX Documentstyle for YaTeX-typeset-region.")
+ 
+ (defvar YaTeX-need-nonstop nil
+@@ -539,7 +562,7 @@ nil enters both open/close parentheses w
+   "*Initial tex-section completion")
+ (defvar YaTeX-fontsize-name "large" "*Initial fontsize completion")
+ (defvar YaTeX-single-command "maketitle" "*Initial LaTeX single command")
+-(defvar YaTeX-kanji-code (if YaTeX-dos 1 2)
++(defvar YaTeX-kanji-code (if YaTeX-dos 1 4);; default: 2
+   "*File kanji code used by Japanese TeX.
+ nil: Do not care (Preserve coding-system)
+ 0: no-converion (mule)
+@@ -1723,8 +1746,12 @@ See also the documentation of YaTeX-proc
+   
+ (defvar YaTeX-file-processor-alist-default
+   '(("tgif" . ".obj")
+-    ("ghostview" . ".ps")
+-    ("ghostview" . ".eps")
++    ("evince" . ".ps") ;; default: ghostview
++    ("evince" . ".eps") ;; default: ghostview
++    ("eog" . ".jpg")
++    ("eog" . ".png")
++    ("evince" . ".pdf")
++    ("inkscape" . ".ai")
+     (t . ".tex")
+     (t . ".sty")
+     (t . ""))
+
+Diff finished.  Sun Dec  4 00:30:03 2011

+ 13 - 3
y/yatex/yatex-vl.spec

@@ -3,7 +3,7 @@
 
 Name:          yatex
 Version:       1.74
-Release:       8%{?_dist_release}
+Release:       9%{?_dist_release}
 License:       Distributable
 Source0:       http://www.yatex.org/yatex%{version}.tar.gz 
 #Source0:       http://www.yatex.org/yatex10203151806.tar.gz 
@@ -27,6 +27,8 @@ Patch2:        yatex-make.diff
 # and modified to suit 1.70 release
 Patch3:        yahtml-1.70-timestamp.patch
 
+Patch10:       yatex-1.74-vine-vl7.patch
+
 URL:           http://www.yatex.org/
 Group:         Applications/Editors/Emacs
 BuildRoot:     %{_tmppath}/%{name}-%{version}-root
@@ -42,7 +44,7 @@ Obsoletes:     yatex-xemacs
 
 Distribution:  Vine Linux
 Vendor:        Project Vine
-
+Packager:      munepi
 
 %description
 YaTeX is an intelligent, acquisitive and integrated package which reduces
@@ -87,6 +89,9 @@ yatex と auctex パッケージの両方をインストールする場合、
 %patch2 -p1
 %patch3 -p1
 
+%if %{?_dist_release} == "vl7"
+%patch10 -p1 -b .vine
+%endif
 
 %build
 
@@ -193,7 +198,12 @@ fi
 %{emacsen_pkgdir}/remove/%{name}
 
 
-%changelog 
+%changelog
+* Sat Dec  3 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.74-9
+- support TeX Live 2011
+- applied yatex-1.74-vine-vl7.patch
+- updated vine-default-yatex.el
+
 * Thu Aug 11 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.74-8
 - added Requires(post): make