texlab 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,12 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
+ require 'rspec'
4
+ require 'texlab'
5
+
6
+ # Requires supporting files with custom matchers and macros, etc,
7
+ # in ./support/ and its subdirectories.
8
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
9
+
10
+ RSpec.configure do |config|
11
+
12
+ end
@@ -0,0 +1,7 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "Texlab" do
4
+ it "fails" do
5
+ fail "hey buddy, you should probably rename this file and start specing for real"
6
+ end
7
+ end
data/texlab ADDED
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ "$(dirname "$0")/bin/texlab" -g --noplugin -S "$(dirname "$0")/vim/texlab.vim" "$@"
@@ -0,0 +1,93 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "texlab"
8
+ s.version = "0.0.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Bern\u{e1}t Kall\u{f3}"]
12
+ s.date = "2012-04-01"
13
+ s.description = "texlab a toolkit based on erb that for creating documents and doing calculations at the same time. It is capable to output the proper number of significant digits, generate tables and plots using gnuplot. It has a simple DSL."
14
+ s.email = "kallo.bernat@gmail.com"
15
+ s.executables = ["texlab-compile"]
16
+ s.extra_rdoc_files = [
17
+ "LICENSE.txt",
18
+ "README.rdoc",
19
+ "README.txt"
20
+ ]
21
+ s.files = [
22
+ ".document",
23
+ ".rspec",
24
+ "Gemfile",
25
+ "Gemfile.lock",
26
+ "LICENSE.txt",
27
+ "README.rdoc",
28
+ "README.txt",
29
+ "Rakefile",
30
+ "VERSION",
31
+ "bin/texlab-compile",
32
+ "bin/texlab-compile.tex",
33
+ "bin/texlab-console",
34
+ "doc/readme.texlab",
35
+ "lib/texlab.rake",
36
+ "lib/texlab.rb",
37
+ "lib/texlab/boot.rb",
38
+ "lib/texlab/texlabfile.rb",
39
+ "spec/spec_helper.rb",
40
+ "spec/texlab_spec.rb",
41
+ "texlab",
42
+ "texlab.gemspec",
43
+ "vim/texlab.vim"
44
+ ]
45
+ s.homepage = "http://github.com/cie/texlab"
46
+ s.licenses = ["MIT"]
47
+ s.require_paths = ["lib"]
48
+ s.rubygems_version = "1.8.15"
49
+ s.summary = "a tool to create documents with latex and ruby"
50
+
51
+ if s.respond_to? :specification_version then
52
+ s.specification_version = 3
53
+
54
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
55
+ s.add_runtime_dependency(%q<rake4latex>, [">= 0"])
56
+ s.add_runtime_dependency(%q<plusminus>, [">= 0"])
57
+ s.add_runtime_dependency(%q<easystats>, [">= 0"])
58
+ s.add_runtime_dependency(%q<to_latex>, [">= 0"])
59
+ s.add_runtime_dependency(%q<gnuplot>, [">= 0"])
60
+ s.add_runtime_dependency(%q<latex>, [">= 0"])
61
+ s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
62
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
63
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
64
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
65
+ s.add_development_dependency(%q<rcov>, [">= 0"])
66
+ else
67
+ s.add_dependency(%q<rake4latex>, [">= 0"])
68
+ s.add_dependency(%q<plusminus>, [">= 0"])
69
+ s.add_dependency(%q<easystats>, [">= 0"])
70
+ s.add_dependency(%q<to_latex>, [">= 0"])
71
+ s.add_dependency(%q<gnuplot>, [">= 0"])
72
+ s.add_dependency(%q<latex>, [">= 0"])
73
+ s.add_dependency(%q<rspec>, ["~> 2.8.0"])
74
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
75
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
76
+ s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
77
+ s.add_dependency(%q<rcov>, [">= 0"])
78
+ end
79
+ else
80
+ s.add_dependency(%q<rake4latex>, [">= 0"])
81
+ s.add_dependency(%q<plusminus>, [">= 0"])
82
+ s.add_dependency(%q<easystats>, [">= 0"])
83
+ s.add_dependency(%q<to_latex>, [">= 0"])
84
+ s.add_dependency(%q<gnuplot>, [">= 0"])
85
+ s.add_dependency(%q<latex>, [">= 0"])
86
+ s.add_dependency(%q<rspec>, ["~> 2.8.0"])
87
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
88
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
89
+ s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
90
+ s.add_dependency(%q<rcov>, [">= 0"])
91
+ end
92
+ end
93
+
@@ -0,0 +1,136 @@
1
+ let $TEXLAB = expand('<sfile>:p:h:h')
2
+
3
+ "" The followning lines are copied from evim.vim
4
+
5
+ " Don't use Vi-compatible mode.
6
+ set nocompatible
7
+
8
+ " Use the mswin.vim script for most mappings
9
+ source $VIMRUNTIME/mswin.vim
10
+
11
+ " Vim is in Insert mode by default
12
+ set insertmode
13
+
14
+ " Make a buffer hidden when editing another one
15
+ "set hidden
16
+
17
+ " Make cursor keys ignore wrapping
18
+ inoremap <Down> <C-R>=pumvisible() ? "\<lt>Down>" : "\<lt>C-O>gj"<CR>
19
+ inoremap <Up> <C-R>=pumvisible() ? "\<lt>Up>" : "\<lt>C-O>gk"<CR>
20
+
21
+ " CTRL-F does Find dialog instead of page forward
22
+ noremap <C-F> :promptfind<CR>
23
+ vnoremap <C-F> y:promptfind <C-R>"<CR>
24
+ onoremap <C-F> <C-C>:promptfind<CR>
25
+ inoremap <C-F> <C-O>:promptfind<CR>
26
+ cnoremap <C-F> <C-C>:promptfind<CR>
27
+ inoremap <ESC> <C-O>:nohlsearch<CR><C-\><C-G>
28
+
29
+
30
+ set backspace=2 " allow backspacing over everything in insert mode
31
+ set autoindent " always set autoindenting on
32
+ "if has("vms")
33
+ set nobackup " do not keep a backup file, use versions instead
34
+ "else
35
+ "set backup " keep a backup file
36
+ "endif
37
+ set history=50 " keep 50 lines of command line history
38
+ set ruler " show the cursor position all the time
39
+ set incsearch " do incremental searching
40
+ set mouse=a " always use the mouse
41
+
42
+ " Don't use Ex mode, use Q for formatting
43
+ map Q gq
44
+
45
+ " Switch syntax highlighting on, when the terminal has colors
46
+ " Highlight the last used search pattern on the next search command.
47
+ syntax on
48
+ set hlsearch
49
+ nohlsearch
50
+
51
+ " Only do this part when compiled with support for autocommands.
52
+ if has("autocmd")
53
+
54
+ " Enable file type detection.
55
+ " Use the default filetype settings, so that mail gets 'tw' set to 72,
56
+ " 'cindent' is on in C files, etc.
57
+ " Also load indent files, to automatically do language-dependent indenting.
58
+ filetype plugin indent on
59
+
60
+ " For all text files set 'textwidth' to 78 characters.
61
+ au FileType text setlocal tw=78
62
+
63
+ endif " has("autocmd")
64
+
65
+ " end of evim.vim
66
+
67
+ set autoindent softtabstop=2 shiftwidth=2 smarttab expandtab smartindent
68
+ set ignorecase showmatch smartcase incsearch hlsearch
69
+ set showcmd nohidden
70
+ set autowrite
71
+ set background=light
72
+ set modeline secure
73
+ set fencs=utf-8,latin2
74
+ set spelllang=hu spell
75
+ set linebreak
76
+
77
+ " set up ruby
78
+ rubyfile $TEXLAB/lib/texlab.rb
79
+
80
+ exec 'inoremap <F9> <C-O>:!rake -f ' . shellescape(expand('$TEXLAB/lib/texlab.rake')) . ' %:s?\.[^.]\+$?.pdf?<CR>'
81
+ exec 'noremap <F9> :!rake -f ' . shellescape(expand('$TEXLAB/lib/texlab.rake')) . ' %:s?\.[^.]\+$?.pdf?<CR>'
82
+ "inoremap <F9> <C-O>:ruby Rake::Task["compile"].invoke<CR>
83
+
84
+ exec 'inoremap <F8> <C-O>:!ruby ' . shellescape(expand('$TEXLAB/bin/texlab-console')) . ' %<CR>'
85
+ exec 'noremap <F8> :!ruby ' . shellescape(expand('$TEXLAB/bin/texlab-console')) . ' %<CR>'
86
+
87
+ inoremap <C-O> <C-O>:browse confirm e<CR>
88
+ inoremap <M-Left> <C-O><C-O>
89
+ inoremap <M-Left> <C-O><C-I>
90
+ noremap <C-S> :if expand("%") == ""<Bar>browse confirm w<Bar>else<Bar>confirm w<Bar>endif<CR>
91
+ vnoremap <C-S> <C-C>:if expand("%") == ""<Bar>browse confirm w<Bar>else<Bar>confirm w<Bar>endif<CR><C-\><C-G>
92
+ inoremap <C-S> <C-O>:if expand("%") == ""<Bar>browse confirm w<Bar>else<Bar>confirm w<Bar>endif<CR><C-\><C-G>
93
+
94
+ inoremap <ESC>: <C-O>:
95
+
96
+
97
+ " set file type for texlab files
98
+ au BufNewFile,BufRead *.texlab let b:eruby_subtype = "tex" | set ft=eruby
99
+ " set file type for new files
100
+ au BufNewFile * let b:eruby_subtype = "tex" | set ft=eruby
101
+
102
+ let b:eruby_subtype = "tex" | set ft=eruby
103
+
104
+
105
+ " Delete menu items
106
+ aunmenu ToolBar.SaveAll
107
+ aunmenu ToolBar.Print
108
+ aunmenu ToolBar.RunScript
109
+ aunmenu ToolBar.LoadSesn
110
+ aunmenu ToolBar.SaveSesn
111
+ aunmenu ToolBar.Help
112
+ aunmenu ToolBar.FindHelp
113
+ aunmenu ToolBar.RunCtags
114
+ aunmenu ToolBar.TagJump
115
+ aunmenu ToolBar.-sep5-
116
+ aunmenu ToolBar.-sep7-
117
+
118
+ set guioptions+=aeimgTrb
119
+ set guioptions-=t
120
+
121
+ " folding
122
+ set foldcolumn=1 foldmethod=syntax foldlevel=10000
123
+
124
+ " load plugins
125
+ "source <sfile>:p:h/plugin/**/*.vim
126
+
127
+ " cd next to file
128
+ if expand("%") != ""
129
+ cd %:p:h
130
+ endi
131
+ au Bufnew * lcd <afile>:p:h
132
+
133
+ " load texlabrc
134
+ if filereadable(expand("~/.texlabrc"))
135
+ source ~/.texlabrc
136
+ endif
metadata ADDED
@@ -0,0 +1,197 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: texlab
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Bernát Kalló
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-04-01 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake4latex
16
+ requirement: &81856880 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *81856880
25
+ - !ruby/object:Gem::Dependency
26
+ name: plusminus
27
+ requirement: &81856570 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *81856570
36
+ - !ruby/object:Gem::Dependency
37
+ name: easystats
38
+ requirement: &81856280 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *81856280
47
+ - !ruby/object:Gem::Dependency
48
+ name: to_latex
49
+ requirement: &81855880 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *81855880
58
+ - !ruby/object:Gem::Dependency
59
+ name: gnuplot
60
+ requirement: &81855510 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: *81855510
69
+ - !ruby/object:Gem::Dependency
70
+ name: latex
71
+ requirement: &81855100 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: *81855100
80
+ - !ruby/object:Gem::Dependency
81
+ name: rspec
82
+ requirement: &81854770 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ~>
86
+ - !ruby/object:Gem::Version
87
+ version: 2.8.0
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *81854770
91
+ - !ruby/object:Gem::Dependency
92
+ name: rdoc
93
+ requirement: &81854380 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ~>
97
+ - !ruby/object:Gem::Version
98
+ version: '3.12'
99
+ type: :development
100
+ prerelease: false
101
+ version_requirements: *81854380
102
+ - !ruby/object:Gem::Dependency
103
+ name: bundler
104
+ requirement: &81854030 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 1.0.0
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: *81854030
113
+ - !ruby/object:Gem::Dependency
114
+ name: jeweler
115
+ requirement: &81853680 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ~>
119
+ - !ruby/object:Gem::Version
120
+ version: 1.8.3
121
+ type: :development
122
+ prerelease: false
123
+ version_requirements: *81853680
124
+ - !ruby/object:Gem::Dependency
125
+ name: rcov
126
+ requirement: &81853360 !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: *81853360
135
+ description: texlab a toolkit based on erb that for creating documents and doing calculations
136
+ at the same time. It is capable to output the proper number of significant digits,
137
+ generate tables and plots using gnuplot. It has a simple DSL.
138
+ email: kallo.bernat@gmail.com
139
+ executables:
140
+ - texlab-compile
141
+ extensions: []
142
+ extra_rdoc_files:
143
+ - LICENSE.txt
144
+ - README.rdoc
145
+ - README.txt
146
+ files:
147
+ - .document
148
+ - .rspec
149
+ - Gemfile
150
+ - Gemfile.lock
151
+ - LICENSE.txt
152
+ - README.rdoc
153
+ - README.txt
154
+ - Rakefile
155
+ - VERSION
156
+ - bin/texlab-compile
157
+ - bin/texlab-compile.tex
158
+ - bin/texlab-console
159
+ - doc/readme.texlab
160
+ - lib/texlab.rake
161
+ - lib/texlab.rb
162
+ - lib/texlab/boot.rb
163
+ - lib/texlab/texlabfile.rb
164
+ - spec/spec_helper.rb
165
+ - spec/texlab_spec.rb
166
+ - texlab
167
+ - texlab.gemspec
168
+ - vim/texlab.vim
169
+ homepage: http://github.com/cie/texlab
170
+ licenses:
171
+ - MIT
172
+ post_install_message:
173
+ rdoc_options: []
174
+ require_paths:
175
+ - lib
176
+ required_ruby_version: !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ segments:
183
+ - 0
184
+ hash: 147563119
185
+ required_rubygems_version: !ruby/object:Gem::Requirement
186
+ none: false
187
+ requirements:
188
+ - - ! '>='
189
+ - !ruby/object:Gem::Version
190
+ version: '0'
191
+ requirements: []
192
+ rubyforge_project:
193
+ rubygems_version: 1.8.15
194
+ signing_key:
195
+ specification_version: 3
196
+ summary: a tool to create documents with latex and ruby
197
+ test_files: []