hiki2yard 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,8 @@
1
+ \relax
2
+ \@writefile{toc}{\contentsline {section}{\numberline {1}title}{1}}
3
+ \@writefile{toc}{\contentsline {section}{\numberline {2}作業(16/8/4)}{1}}
4
+ \@writefile{toc}{\contentsline {section}{\numberline {3}幾つかの注意(16/8/17)}{1}}
5
+ \@writefile{toc}{\contentsline {subsection}{\numberline {3.1}システムについての注意}{1}}
6
+ \@writefile{toc}{\contentsline {subsection}{\numberline {3.2}hikiの記述に関する注意}{1}}
7
+ \@writefile{toc}{\contentsline {subsection}{\numberline {3.3}mathjax-yardについて}{1}}
8
+ \@writefile{toc}{\contentsline {subsubsection}{\numberline {3.3.1}操作法}{1}}
@@ -0,0 +1,146 @@
1
+ This is e-pTeX, Version 3.14159265-p3.6-141210-2.6 (utf8.euc) (TeX Live 2015) (preloaded format=platex 2015.7.31) 18 AUG 2016 13:28
2
+ entering extended mode
3
+ restricted \write18 enabled.
4
+ file:line:error style messages enabled.
5
+ %&-line parsing enabled.
6
+ **sakibts
7
+ (./sakibts.tex
8
+ pLaTeX2e <2006/11/10> (based on LaTeX2e <2015/01/01> patch level 0)
9
+ Babel <3.9l> and hyphenation patterns for 79 languages loaded.
10
+ (/usr/local/texlive/2015/texmf-dist/tex/platex/jsclasses/jsarticle.cls
11
+ Document Class: jsarticle 2014/02/07 okumura
12
+ LaTeX Info: Redefining \rmfamily on input line 352.
13
+ LaTeX Info: Redefining \sffamily on input line 355.
14
+ LaTeX Info: Redefining \ttfamily on input line 358.
15
+ \symmincho=\mathgroup4
16
+ LaTeX Font Info: Overwriting symbol font `mincho' in version `bold'
17
+ (Font) JY1/mc/m/n --> JY1/gt/m/n on input line 423.
18
+ LaTeX Font Info: Font shape `JT1/mc/m/n' will be
19
+ (Font) scaled to size 9.60999pt on input line 613.
20
+ LaTeX Font Info: Font shape `JY1/mc/m/n' will be
21
+ (Font) scaled to size 9.60999pt on input line 613.
22
+ \fullwidth=\dimen118
23
+ LaTeX Font Info: Font shape `JT1/mc/m/n' will be
24
+ (Font) scaled to size 7.68799pt on input line 760.
25
+ LaTeX Font Info: Font shape `JY1/mc/m/n' will be
26
+ (Font) scaled to size 7.68799pt on input line 760.
27
+ \c@part=\count81
28
+ \c@section=\count82
29
+ \c@subsection=\count83
30
+ \c@subsubsection=\count84
31
+ \c@paragraph=\count85
32
+ \c@subparagraph=\count86
33
+ \@abstractbox=\box41
34
+ \c@figure=\count87
35
+ \c@table=\count88
36
+ \abovecaptionskip=\skip41
37
+ \belowcaptionskip=\skip42
38
+ \js@tocl@width=\dimen119
39
+ \@lnumwidth=\dimen120
40
+ \bibindent=\dimen121
41
+ LaTeX Info: Redefining \TeX on input line 1731.
42
+ LaTeX Info: Redefining \LaTeX on input line 1757.
43
+ LaTeX Info: Redefining \LaTeXe on input line 1782.
44
+ \heisei=\count89
45
+ ) (/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/graphicx.sty
46
+ Package: graphicx 2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
47
+
48
+ (/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/keyval.sty
49
+ Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
50
+ \KV@toks@=\toks15
51
+ )
52
+ (/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/graphics.sty
53
+ Package: graphics 2014/10/28 v1.0p Standard LaTeX Graphics (DPC,SPQR)
54
+
55
+ (/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/trig.sty
56
+ Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
57
+ )
58
+ (/usr/local/texlive/2015/texmf-dist/tex/latex/latexconfig/graphics.cfg
59
+ File: graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live
60
+ )
61
+ Package graphics Info: Driver file: dvipdfmx.def on input line 94.
62
+
63
+ (/usr/local/texlive/2015/texmf-dist/tex/latex/dvipdfmx-def/dvipdfmx.def
64
+ File: dvipdfmx.def 2015/03/26 v4.04 LaTeX color/graphics driver for dvipdfmx (T
65
+ eX Live/ChoF)
66
+ ))
67
+ \Gin@req@height=\dimen122
68
+ \Gin@req@width=\dimen123
69
+ )
70
+ (./sakibts.aux)
71
+ \openout1 = `sakibts.aux'.
72
+
73
+ LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 12.
74
+ LaTeX Font Info: ... okay on input line 12.
75
+ LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 12.
76
+ LaTeX Font Info: ... okay on input line 12.
77
+ LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 12.
78
+ LaTeX Font Info: ... okay on input line 12.
79
+ LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 12.
80
+ LaTeX Font Info: ... okay on input line 12.
81
+ LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 12.
82
+ LaTeX Font Info: ... okay on input line 12.
83
+ LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 12.
84
+ LaTeX Font Info: ... okay on input line 12.
85
+ LaTeX Font Info: Checking defaults for JY1/mc/m/n on input line 12.
86
+ LaTeX Font Info: ... okay on input line 12.
87
+ LaTeX Font Info: Checking defaults for JT1/mc/m/n on input line 12.
88
+ LaTeX Font Info: ... okay on input line 12.
89
+ LaTeX Font Info: Font shape `JT1/mc/m/n' will be
90
+ (Font) scaled to size 11.53198pt on input line 13.
91
+ LaTeX Font Info: Font shape `JY1/mc/m/n' will be
92
+ (Font) scaled to size 11.53198pt on input line 13.
93
+ LaTeX Font Info: Font shape `JT1/gt/m/n' will be
94
+ (Font) scaled to size 11.53198pt on input line 13.
95
+ LaTeX Font Info: Font shape `JY1/gt/m/n' will be
96
+ (Font) scaled to size 11.53198pt on input line 13.
97
+ LaTeX Font Info: Font shape `JT1/gt/m/n' will be
98
+ (Font) scaled to size 9.60999pt on input line 21.
99
+ LaTeX Font Info: Font shape `JY1/gt/m/n' will be
100
+ (Font) scaled to size 9.60999pt on input line 21.
101
+
102
+ Overfull \hbox (342.08853pt too wide) in paragraph at lines 21--22
103
+ []\OT1/cmtt/m/n/10 nishitani0 \JY1/gt/m/n/10 の \OT1/cmtt/m/n/10 DocumentWritin
104
+ g(http://nishitani0.kwansei.ac.jp/~bob/nishitani0/Internal/DocumentWriting.html
105
+ )
106
+ []
107
+
108
+ LaTeX Font Info: Try loading font information for OMS+cmr on input line 31.
109
+ (/usr/local/texlive/2015/texmf-dist/tex/latex/base/omscmr.fd
110
+ File: omscmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions
111
+ )
112
+ LaTeX Font Info: Font shape `OMS/cmr/m/n' in size <10> not available
113
+ (Font) Font shape `OMS/cmsy/m/n' tried instead on input line 31.
114
+ LaTeX Font Info: Font shape `JT1/mc/bx/n' in size <10> not available
115
+ (Font) Font shape `JT1/gt/m/n' tried instead on input line 32.
116
+ LaTeX Font Info: Font shape `JT1/gt/m/n' will be
117
+ (Font) scaled to size 9.60999pt on input line 32.
118
+ LaTeX Font Info: Font shape `JY1/mc/bx/n' in size <10> not available
119
+ (Font) Font shape `JY1/gt/m/n' tried instead on input line 32.
120
+ LaTeX Font Info: Font shape `JY1/gt/m/n' will be
121
+ (Font) scaled to size 9.60999pt on input line 32.
122
+ LaTeX Font Info: External font `cmex10' loaded for size
123
+ (Font) <7> on input line 39.
124
+ LaTeX Font Info: External font `cmex10' loaded for size
125
+ (Font) <5> on input line 39.
126
+ LaTeX Font Info: Font shape `JY1/mc/m/n' will be
127
+ (Font) scaled to size 6.72699pt on input line 39.
128
+ LaTeX Font Info: Font shape `JY1/mc/m/n' will be
129
+ (Font) scaled to size 4.805pt on input line 39.
130
+
131
+ Underfull \vbox (badness 10000) has occurred while \output is active []
132
+
133
+ [1
134
+
135
+ ]
136
+ (./sakibts.aux) )
137
+ Here is how much of TeX's memory you used:
138
+ 748 strings out of 493777
139
+ 8754 string characters out of 6151334
140
+ 72985 words of memory out of 5000000
141
+ 4291 multiletter control sequences out of 15000+600000
142
+ 10793 words of font info for 49 fonts, out of 8000000 for 9000
143
+ 934 hyphenation exceptions out of 8191
144
+ 25i,4n,21p,287b,228s stack positions out of 5000i,500n,10000p,200000b,80000s
145
+
146
+ Output written on sakibts.dvi (1 page, 3904 bytes).
Binary file
@@ -0,0 +1,58 @@
1
+ \documentclass[10pt,a4j,twocolumn]{jsarticle}
2
+
3
+ \usepackage[dvipdfmx]{graphicx}
4
+
5
+ \setlength{\textheight}{275mm}
6
+ \headheight 5mm
7
+ \topmargin -30mm
8
+ \textwidth 185mm
9
+ \oddsidemargin -15mm
10
+ \evensidemargin -15mm
11
+ \pagestyle{empty}
12
+ \begin{document}
13
+ \section{title}
14
+ yardによる数値計算関連文書作成システムの構築
15
+
16
+ \section{作業(16/8/4)}
17
+ 以下の作業を今週中にやってください.
18
+ \begin{enumerate}
19
+ \item hiki2latexをhiki2yard.gemspecに入れて,bundle updateで取ってくる.
20
+ \item hiki2latexを動かしてみる.\begin{enumerate}
21
+ \item \verb|nishitani0のDocumentWriting(http://nishitani0.kwansei.ac.jp/~bob/nishitani0/Internal/DocumentWriting.html)|にある,hiki2latex, 手順・コツ,幾つかのformatひな形を読んでいれてみてください.
22
+ \end{enumerate}
23
+ \item Rakefileにsakibts.hikiをlatex/sakibts.texに変換するruby codeを書く.
24
+ \end{enumerate}
25
+ できないとみんなの中間発表用のabstractが作れません.がんばってね.
26
+
27
+ \section{幾つかの注意(16/8/17)}
28
+ updateされたのに対する幾つかの注意です.
29
+
30
+ \subsection{システムについての注意}\begin{itemize}
31
+ \item directoryのなかで,何処にfileを置くかは決めてあります.なぜかは概要に書きました.勝手にdirecotryを作るのではなく,今あるdirectoryの中での操作をRakefileに書き加えるようにしてください.\begin{itemize}
32
+ \item tex\_sampleは不用ですので,削除してください.
33
+ \end{itemize}
34
+ \item hikis/TexManual.hikiに移しました.そこから自動でlatexesへ生成するようにRakefileを修正しています.
35
+ \end{itemize}
36
+ \subsection{hikiの記述に関する注意}\begin{itemize}
37
+ \item number listは\#で書いていく.
38
+ \item へんな記号は使わない.右三角.これは,latexで解釈できないため,変換されないためです.
39
+ \item $\rightarrow$を使う.ただし,hikiでの表示ができていない.これは,hiki2yardではできません.\begin{itemize}
40
+ \item mathjaxを使えるようにします.その手順は次に記述します.
41
+ \end{itemize}
42
+ \end{itemize}
43
+ \subsection{mathjax-yardについて}
44
+ 標準yardで変換されるmdファイル内で,数式を表示することを可能にする拡張機能です.yard処理の前後にmathjaxのための処理を挟んで,標準的なgemディレクトリ内にあるmdファイルをdoc/file.**に変換後にlatex記法の数式を表示します.
45
+
46
+ \subsubsection{操作法}\begin{quote}\begin{verbatim}
47
+ gem install mathjax-yard
48
+ \end{verbatim}\end{quote}
49
+ でinstall.
50
+ \begin{quote}\begin{verbatim}
51
+ mathjax-yard -i
52
+ \end{verbatim}\end{quote}
53
+ でinitしてくれます.後は, 
54
+ \begin{quote}\begin{verbatim}
55
+ rake myard
56
+ \end{verbatim}\end{quote}
57
+ でyardがhtmlに自動的に変換してくれます.
58
+ \end{document}
@@ -41,14 +41,30 @@ module Hiki2yard
41
41
  end
42
42
 
43
43
  def init
44
- rev_rakefile
44
+ rev_rakefile2
45
45
  mk_yardopts
46
46
  create_dir_if_not_exists(File.join(@target_path,'hikis'))
47
47
  create_dir_if_not_exists(File.join(@target_path,"#{@base_name}.wiki"))
48
-
48
+ create_dir_if_not_exists(File.join(@target_path,'latexes'))
49
+ add_pre_in_latexes
49
50
  rev_gemspec
50
51
  end
51
52
 
53
+ def add_pre_in_latexes
54
+ source=File.join(@source_path,'hiki2yard','handout_pre.tex')
55
+ target=File.join(@target_path,'latexes')
56
+ p command = "cp #{source} #{target}"
57
+ system command
58
+ end
59
+
60
+ def rev_rakefile2
61
+ rev_rakefile
62
+ source=File.join(@source_path,'hiki2yard','latex_task.rb')
63
+ target=File.join(@target_path,'Rakefile')
64
+ p command = "cat #{source} >> #{target}"
65
+ system command
66
+ end
67
+
52
68
  def rev_rakefile
53
69
  source=File.join(@source_path,'hiki2yard','new_rakefile')
54
70
  target=File.join(@target_path,'Rakefile')
@@ -87,6 +103,7 @@ module Hiki2yard
87
103
  spec.add_development_dependency "yard"
88
104
  spec.add_development_dependency "hiki2md"
89
105
  spec.add_development_dependency "mathjax-yard"
106
+ spec.add_development_dependency "hiki2latex"
90
107
  EOS
91
108
  print "add follows at the tail of #{@target_path}/#{@base_name}.gemspec\n"
92
109
  print cont
@@ -0,0 +1,11 @@
1
+ \documentclass[10pt,a4j,twocolumn]{jsarticle}
2
+
3
+ \usepackage[dvipdfmx]{graphicx}
4
+
5
+ \setlength{\textheight}{275mm}
6
+ \headheight 5mm
7
+ \topmargin -30mm
8
+ \textwidth 185mm
9
+ \oddsidemargin -15mm
10
+ \evensidemargin -15mm
11
+ \pagestyle{empty}
@@ -0,0 +1,10 @@
1
+ desc "transfer hikis/*.hiki to latex"
2
+ task :latex do
3
+ target = 'handout_sample'
4
+ command = "hiki2latex --pre latexes/handout_pre.tex hikis/#{target}.hiki > latexes/#{target}.tex"
5
+ system command
6
+ command = "open latexes/#{target}.tex"
7
+ system command
8
+ end
9
+
10
+
@@ -1,3 +1,3 @@
1
1
  module Hiki2yard
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -0,0 +1,10 @@
1
+ ---
2
+ lib/../hiki2yard.wiki/sakibts.mjx.md:
3
+ "$MATHJAX1$": "$\\rightarrow$"
4
+ lib/../hiki2yard.wiki/TexManual.mjx.md:
5
+ "$MATHJAX2$": "$\\rightarrow$"
6
+ "$MATHJAX3$": "$\\rightarrow$"
7
+ "$MATHJAX4$": "$\\rightarrow$"
8
+ "$MATHJAX5$": "$\\rightarrow$"
9
+ "$MATHJAX6$": "$>$"
10
+ "$MATHJAX7$": "$>$"
data/tmp.tex ADDED
@@ -0,0 +1,3 @@
1
+ \documentclass[12pt,a4paper]{jsarticle}
2
+ \usepackage[dvipdfmx]{graphicx}
3
+ \begin{document}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiki2yard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shigeto R. Nishitani
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-13 00:00:00.000000000 Z
11
+ date: 2016-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: hiki2latex
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  description: Support making docs from hiki to yard, wiki, on gem development directory.
98
112
  email:
99
113
  - shigeto_nishitani@me.com
@@ -113,18 +127,75 @@ files:
113
127
  - Rakefile
114
128
  - bin/console
115
129
  - bin/setup
130
+ - doc/Hiki2yard.html
131
+ - doc/Hiki2yard/Command.html
132
+ - doc/_index.html
133
+ - doc/class_list.html
134
+ - doc/css/common.css
135
+ - doc/css/full_list.css
136
+ - doc/css/style.css
137
+ - doc/file.CODE_OF_CONDUCT.html
138
+ - doc/file.Home.html
139
+ - doc/file.README.html
140
+ - doc/file.README_en.html
141
+ - doc/file.README_ja.html
142
+ - doc/file.Why_hiki2yard.html
143
+ - doc/file.md2yard.html
144
+ - doc/file.saki.html
145
+ - doc/file.sakibts.html
146
+ - doc/file_list.html
147
+ - doc/frames.html
148
+ - doc/index.html
149
+ - doc/js/app.js
150
+ - doc/js/full_list.js
151
+ - doc/js/jquery.js
152
+ - doc/method_list.html
153
+ - doc/top-level-namespace.html
116
154
  - exe/hiki2yard
117
155
  - hiki2yard.gemspec
118
156
  - hiki2yard.wiki/Home.md
119
157
  - hiki2yard.wiki/README_en.md
120
158
  - hiki2yard.wiki/README_ja.md
159
+ - hiki2yard.wiki/TexManual.md
121
160
  - hiki2yard.wiki/Why_hiki2yard.md
161
+ - hiki2yard.wiki/handout_sample.md
162
+ - hiki2yard.wiki/md2yard.md
163
+ - hiki2yard.wiki/saki.md
164
+ - hiki2yard.wiki/sakibts.md
122
165
  - hikis/README_en.hiki
123
166
  - hikis/README_ja.hiki
167
+ - hikis/TexManual.hiki
124
168
  - hikis/Why_hiki2yard.hiki
169
+ - hikis/handout_sample.hiki
170
+ - hikis/md2yard.hiki
171
+ - hikis/saki.hiki
172
+ - hikis/saki.hiki~
173
+ - hikis/sakibts.hiki
174
+ - latexes/#{target}.tex
175
+ - latexes/TexManual.aux
176
+ - latexes/TexManual.hiki.tex
177
+ - latexes/TexManual.log
178
+ - latexes/TexManual.pdf
179
+ - latexes/TexManual.synctex.gz
180
+ - latexes/TexManual.tex
181
+ - latexes/handout_pre.tex
182
+ - latexes/handout_sample.aux
183
+ - latexes/handout_sample.log
184
+ - latexes/handout_sample.pdf
185
+ - latexes/handout_sample.synctex.gz
186
+ - latexes/handout_sample.tex
187
+ - latexes/sakibts.aux
188
+ - latexes/sakibts.log
189
+ - latexes/sakibts.pdf
190
+ - latexes/sakibts.synctex.gz
191
+ - latexes/sakibts.tex
125
192
  - lib/hiki2yard.rb
193
+ - lib/hiki2yard/handout_pre.tex
194
+ - lib/hiki2yard/latex_task.rb
126
195
  - lib/hiki2yard/new_rakefile
127
196
  - lib/hiki2yard/version.rb
197
+ - mathjax.yml
198
+ - tmp.tex
128
199
  homepage: https://github.com/daddygongon/hiki2yard/wiki
129
200
  licenses:
130
201
  - MIT
@@ -150,4 +221,3 @@ signing_key:
150
221
  specification_version: 4
151
222
  summary: Support making docs from hiki to yard, wiki, on gem development directory.
152
223
  test_files: []
153
- has_rdoc: