rabbit-slide-wikimatze-get-productive-with-vimtex-for-latex 2016.06.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rabbit +1 -0
- data/README.md +24 -0
- data/Rakefile +17 -0
- data/config.yaml +19 -0
- data/get-productive-with-vimtex-for-latex.md +170 -0
- data/pdf/get-productive-with-vimtex-for-latex-get-productive-with-vimtex-for-latex.pdf +0 -0
- metadata +64 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 34c121f01b108ccb2c19bc48f91db08748ba08ed
|
4
|
+
data.tar.gz: 0e54f892f98eb0b3fb2f5b64a37d9ff0ba2aec7f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 96a26f4d622c5339b37bb42f7c62ec3e53c75be00fb73621f66f23f4f950d7aed490df77ec942b532cbaff990d5127b54ec0e2054b2e18bfdb2e684d09b8c4d4
|
7
|
+
data.tar.gz: 9894e34780f0f6cdfcd01bddfa9b0b5a21cef8994a7647a140cb7581ecb105000406b9eb74b6caf752f84858fceac2717154071c6511405b85fd46293bf06df1
|
data/.rabbit
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
get-productive-with-vimtex-for-latex.md
|
data/README.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# Get productive with vimtex for LaTeX
|
2
|
+
|
3
|
+
Given at http://vimberlin.de/june-2016-meetup. My learnings for setting up this tool for Vim-LaTeX editing
|
4
|
+
|
5
|
+
## For author
|
6
|
+
|
7
|
+
### Show
|
8
|
+
|
9
|
+
rake
|
10
|
+
|
11
|
+
### Publish
|
12
|
+
|
13
|
+
rake publish
|
14
|
+
|
15
|
+
## For viewers
|
16
|
+
|
17
|
+
### Install
|
18
|
+
|
19
|
+
gem install rabbit-slide--get-productive-with-vimtex-for-latex
|
20
|
+
|
21
|
+
### Show
|
22
|
+
|
23
|
+
rabbit rabbit-slide--get-productive-with-vimtex-for-latex.gem
|
24
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require "rabbit/task/slide"
|
2
|
+
|
3
|
+
# Edit ./config.yaml to customize meta data
|
4
|
+
|
5
|
+
spec = nil
|
6
|
+
Rabbit::Task::Slide.new do |task|
|
7
|
+
spec = task.spec
|
8
|
+
# spec.files += Dir.glob("doc/**/*.*")
|
9
|
+
# spec.files -= Dir.glob("private/**/*.*")
|
10
|
+
# spec.add_runtime_dependency("YOUR THEME")
|
11
|
+
end
|
12
|
+
|
13
|
+
desc "Tag #{spec.version}"
|
14
|
+
task :tag do
|
15
|
+
sh("git", "tag", "-a", spec.version.to_s, "-m", "Publish #{spec.version}")
|
16
|
+
sh("git", "push", "--tags")
|
17
|
+
end
|
data/config.yaml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
---
|
2
|
+
id: get-productive-with-vimtex-for-latex
|
3
|
+
base_name: get-productive-with-vimtex-for-latex
|
4
|
+
tags: []
|
5
|
+
presentation_date: 2016/06/16
|
6
|
+
version: 2016.06.16
|
7
|
+
licenses: []
|
8
|
+
slideshare_id:
|
9
|
+
speaker_deck_id: get-productive-with-vimtex-for-latex
|
10
|
+
ustream_id:
|
11
|
+
vimeo_id:
|
12
|
+
youtube_id:
|
13
|
+
author:
|
14
|
+
markup_language: :markdown
|
15
|
+
name: Matthias Günther
|
16
|
+
email: matthias@wikimatze.de
|
17
|
+
rubygems_user: wikimatze
|
18
|
+
slideshare_user:
|
19
|
+
speaker_deck_user: wikimatze
|
@@ -0,0 +1,170 @@
|
|
1
|
+
# Get productive with vimtex for LaTeX
|
2
|
+
|
3
|
+
author
|
4
|
+
: Matthias Günther
|
5
|
+
date
|
6
|
+
: 2016/06/16
|
7
|
+
|
8
|
+
# Benefits I
|
9
|
+
|
10
|
+
- PDF viewer of your choice [MuPDF](http://mupdf.com/ "MuPDF"), [Zathura](https://pwmt.org/projects/zathura/ "Zathura"),
|
11
|
+
[Okular](https://okular.kde.org/ "Okular"), [qpdfview](https://launchpad.net/qpdfview "qpdfview") or [SumatraPDF](http://www.sumatrapdfreader.org/free-pdf-reader.html "SumatraPDF")
|
12
|
+
- **continuous compilation**
|
13
|
+
|
14
|
+
|
15
|
+
# Benefits II
|
16
|
+
|
17
|
+
- text-objects:
|
18
|
+
- `ae` ... LaTeX environments (e.g. \\begin{itemize})
|
19
|
+
- `ac` ... commands
|
20
|
+
- `i$` ... inline math structure
|
21
|
+
- `a$` ... whole math structure
|
22
|
+
|
23
|
+
|
24
|
+
# Benefits III
|
25
|
+
|
26
|
+
- motions and mappings:
|
27
|
+
- `[[|]]` ... move to next/previous section
|
28
|
+
- `%` ... move between matching delimeters
|
29
|
+
- `dse|cse` ... delete/change the surrounding environment
|
30
|
+
- `dsc|csc` ... delete/change the surrounding command
|
31
|
+
|
32
|
+
|
33
|
+
# Benefits IV
|
34
|
+
|
35
|
+
- omni completion, improved syntax highlighting and indentation
|
36
|
+
|
37
|
+
|
38
|
+
# Prerequisite I
|
39
|
+
|
40
|
+
- [latexmk](http://users.phys.psu.edu/~collins/software/latexmk-jcc/ "latexmk") is a perl script that
|
41
|
+
runs the desired/necessary LaTeX command the correct number of times to resolve cross references.
|
42
|
+
- grab the latest one `22 April 2016. Version 4.45`
|
43
|
+
|
44
|
+
|
45
|
+
# Prerequisite II
|
46
|
+
|
47
|
+
- ensure that `libsynctex` exists in the system for forward and backward searching!
|
48
|
+
|
49
|
+
|
50
|
+
# Prerequisite III
|
51
|
+
|
52
|
+
- install girara
|
53
|
+
- make sure zathura is compiled with `synctex` support
|
54
|
+
|
55
|
+
|
56
|
+
# Install latexmk
|
57
|
+
|
58
|
+
```sh
|
59
|
+
$ cd /tmp
|
60
|
+
$ wget http://users.phys.psu.edu/%7Ecollins/software/latexmk-jcc/latexmk-445.zip
|
61
|
+
$ unzip latexmk*.zip
|
62
|
+
$ sudo cp latexmk/latexmk.pl /usr/local/bin
|
63
|
+
$ sudo mv /usr/local/bin/latexmk.pl /usr/local/bin/latexmk
|
64
|
+
```
|
65
|
+
|
66
|
+
|
67
|
+
# Install libsynctex
|
68
|
+
|
69
|
+
```sh
|
70
|
+
#!/bin/bash
|
71
|
+
cd /tmp && rm -rf libsynctex*
|
72
|
+
|
73
|
+
if [ "$(uname -m)" == "x86_64" ]
|
74
|
+
then
|
75
|
+
wget http://de.archive.ubuntu.com/ubuntu/pool/main/t/texlive-bin/libsynctex1_2015.20160222.37495-1_amd64.deb
|
76
|
+
wget http://de.archive.ubuntu.com/ubuntu/pool/main/t/texlive-bin/libsynctex-dev_2015.20160222.37495-1_amd64.deb
|
77
|
+
else
|
78
|
+
wget http://de.archive.ubuntu.com/ubuntu/pool/main/t/texlive-bin/libsynctex1_2015.20160222.37495-1_i386.deb
|
79
|
+
wget http://de.archive.ubuntu.com/ubuntu/pool/main/t/texlive-bin/libsynctex-dev_2015.20160222.37495-1_i386.deb
|
80
|
+
fi
|
81
|
+
|
82
|
+
sudo dpkg -i libsynctex1* && sudo dpkg -i libsynctex-dev*
|
83
|
+
```
|
84
|
+
|
85
|
+
|
86
|
+
# Install girara and zathura
|
87
|
+
|
88
|
+
```sh
|
89
|
+
#!/bin/bash
|
90
|
+
GIRARA_VERSION=0.2.6
|
91
|
+
ZATHURA_VERSION=0.3.6
|
92
|
+
|
93
|
+
rm -rf /tmp/girara /tmp/zathura
|
94
|
+
|
95
|
+
# otherwise the own girara compilation will not work
|
96
|
+
sudo apt-get remove libgirara-dev
|
97
|
+
|
98
|
+
# need for zathura compilation
|
99
|
+
sudo apt-get install libmagic-dev
|
100
|
+
|
101
|
+
|
102
|
+
cd /tmp && git clone https://git.pwmt.org/pwmt/girara.git
|
103
|
+
cd girara && git checkout $GIRARA_VERSION && make && sudo make install
|
104
|
+
cd /tmp && git clone https://git.pwmt.org/pwmt/zathura.git
|
105
|
+
cd zathura && git checkout $ZATHURA_VERSION && make WITH_SYNCTEX=1 && sudo make install
|
106
|
+
```
|
107
|
+
|
108
|
+
|
109
|
+
# vimtex: Basics
|
110
|
+
|
111
|
+
- `\ll|:VimtexCompileToggle`: compile and it will open the pdf in your prefered pdf-viewer
|
112
|
+
- watch for `latexmk compile: started continuous mode` in the statusline
|
113
|
+
|
114
|
+
|
115
|
+
# vimtex: set default pdf viewer
|
116
|
+
|
117
|
+
```sh
|
118
|
+
let g:vimtex_view_method = 'zathura'
|
119
|
+
```
|
120
|
+
|
121
|
+
|
122
|
+
# vimtex: forward and backward search
|
123
|
+
|
124
|
+
![](https://farm8.staticflickr.com/7575/26756231470_3ddde92aeb_h_d.jpg){:width='310' height='93'}
|
125
|
+
|
126
|
+
|
127
|
+
# vimtex: forward search
|
128
|
+
|
129
|
+
- `\lv|:VimtexView`: Open the generated PDF
|
130
|
+
- works with [vim's servername feature](http://vim.wikia.com/wiki/Enable_servername_capability_in_vim/xterm) or with
|
131
|
+
gvim/MacVim out of the box for zathura
|
132
|
+
|
133
|
+
|
134
|
+
# vimtex: backward search
|
135
|
+
|
136
|
+
- press `<C-Click>` on the PDF and you jump right to the place in the terminal.
|
137
|
+
- works with gvim/MacVim out of the box for zathura
|
138
|
+
|
139
|
+
|
140
|
+
# vimtex: Commands I
|
141
|
+
|
142
|
+
- `:VimtexTocOpen|:VimtexTocToggle`: open a clickable toc in the left pane (`q` will close the window)
|
143
|
+
- `:VimtexLabelsOpen|:VimtexLabelsToggle`: open table of labels.
|
144
|
+
|
145
|
+
|
146
|
+
# vimtex: Commands II
|
147
|
+
|
148
|
+
- `:VimtexInfo`: print basic information
|
149
|
+
- `:VimtexCountWords|:VimtexCountLetters`: count the number of words/letters in the document. It will also show the number of math environments, and similar.
|
150
|
+
|
151
|
+
|
152
|
+
# vimtex: Commands III
|
153
|
+
|
154
|
+
- `:VimtexCompileOutput`: show the output form the compilation command (i.e. from `latexmk`)
|
155
|
+
- `:VimtexClean`: clean auxilliary files like `*.aux`, `*.out`, etc. Use `:VimtexClean!` to remove everything, including the generated pfd file.
|
156
|
+
|
157
|
+
|
158
|
+
# vimtex: Commands IV
|
159
|
+
|
160
|
+
- `:VimtexErrors`:open quickfix window if there are errors or warnings.
|
161
|
+
|
162
|
+
|
163
|
+
# Who am I
|
164
|
+
|
165
|
+
- [@wikimatze](https://twitter.com/wikimatze "@wikimatze")
|
166
|
+
- writing [@padrinobook](http://padrinobook.com/ "@padrinobook")
|
167
|
+
- running [@vimberlin](https://twitter.com/wikimatze "@vimberlin")
|
168
|
+
- updating [@padrinorb](http://padrinorb.com/ "@padrinorb")
|
169
|
+
- and organizing [@vim_fest](https://twitter.com/vim_fest "@vim_fest")
|
170
|
+
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rabbit-slide-wikimatze-get-productive-with-vimtex-for-latex
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2016.06.16
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Matthias Günther
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-06-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rabbit
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.0.2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.0.2
|
27
|
+
description: Given at http://vimberlin.de/june-2016-meetup. My learnings for setting
|
28
|
+
up this tool for Vim-LaTeX editing
|
29
|
+
email:
|
30
|
+
- matthias@wikimatze.de
|
31
|
+
executables: []
|
32
|
+
extensions: []
|
33
|
+
extra_rdoc_files: []
|
34
|
+
files:
|
35
|
+
- ".rabbit"
|
36
|
+
- README.md
|
37
|
+
- Rakefile
|
38
|
+
- config.yaml
|
39
|
+
- get-productive-with-vimtex-for-latex.md
|
40
|
+
- pdf/get-productive-with-vimtex-for-latex-get-productive-with-vimtex-for-latex.pdf
|
41
|
+
homepage: http://slide.rabbit-shocker.org/authors/wikimatze/get-productive-with-vimtex-for-latex/
|
42
|
+
licenses: []
|
43
|
+
metadata: {}
|
44
|
+
post_install_message:
|
45
|
+
rdoc_options: []
|
46
|
+
require_paths:
|
47
|
+
- lib
|
48
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
requirements: []
|
59
|
+
rubyforge_project:
|
60
|
+
rubygems_version: 2.5.1
|
61
|
+
signing_key:
|
62
|
+
specification_version: 4
|
63
|
+
summary: Get productive with vimtex for LaTeX
|
64
|
+
test_files: []
|