snipt

Ctrl+h for KB shortcuts

Bash

synctex command to open VIM

"C:\Program Files (x86)\Vim\vim73\gvim.exe" --servername tex --remote-send ":e!<CR>:o %f<CR>%lG"
https://snipt.net/embed/e8464e89c2c818bcdac497a99c7a0b3b/
/raw/e8464e89c2c818bcdac497a99c7a0b3b/
e8464e89c2c818bcdac497a99c7a0b3b
bash
Bash
1
2019-07-21T03:35:42
True
False
False
/api/public/snipt/34001/
synctex-command-to-open-vim
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="s2">&quot;C:\Program Files (x86)\Vim\vim73\gvim.exe&quot;</span> --servername tex --remote-send <span class="s2">&quot;:e!&lt;CR&gt;:o %f&lt;CR&gt;%lG&quot;</span> </span></pre></div> </td></tr></table>
latex, synctex, tex, vim

Bash

merge latex files

1
2
3
4
5
6
7
8
# moves all included tex files into the main file
awk '!/input\{/ {print}
/input\{/ {
sub (/input\{/,"")
sub (/\}.*/,"")
cmd= "cat ./"$1""
system(cmd)
}' mainfile.tex > mergedfile.tex
https://snipt.net/embed/69718f97f27aae0e8cda3a6413e5bbaa/
/raw/69718f97f27aae0e8cda3a6413e5bbaa/
69718f97f27aae0e8cda3a6413e5bbaa
bash
Bash
8
2019-07-16T13:02:46
True
False
False
/api/public/snipt/21639/
merge-latex-files
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1"># moves all included tex files into the main file</span> </span><span id="L-2"><a name="L-2"></a>awk <span class="s1">&#39;!/input\{/ {print}</span> </span><span id="L-3"><a name="L-3"></a><span class="s1">/input\{/ {</span> </span><span id="L-4"><a name="L-4"></a><span class="s1">sub (/input\{/,&quot;&quot;)</span> </span><span id="L-5"><a name="L-5"></a><span class="s1">sub (/\}.*/,&quot;&quot;)</span> </span><span id="L-6"><a name="L-6"></a><span class="s1">cmd= &quot;cat ./&quot;$1&quot;&quot;</span> </span><span id="L-7"><a name="L-7"></a><span class="s1">system(cmd)</span> </span><span id="L-8"><a name="L-8"></a><span class="s1">}&#39;</span> mainfile.tex &gt; mergedfile.tex </span></pre></div> </td></tr></table>
input, latex, merge, tex

Bash

Join pdf files in one file

1
2
3
# glue a bunch of pdf files in one file
# tip from fmeyer
texexec --pdfarrange --result all.pdf `ls *.pdf`
https://snipt.net/embed/e1738ad639f405ce0affb7dfde0be056/
/raw/e1738ad639f405ce0affb7dfde0be056/
e1738ad639f405ce0affb7dfde0be056
bash
Bash
3
2019-07-16T20:17:36
True
False
False
/api/public/snipt/8235/
join-pdf-files-in-one-file
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1"># glue a bunch of pdf files in one file</span> </span><span id="L-2"><a name="L-2"></a><span class="c1"># tip from fmeyer</span> </span><span id="L-3"><a name="L-3"></a>texexec --pdfarrange --result all.pdf <span class="sb">`</span>ls *.pdf<span class="sb">`</span> </span></pre></div> </td></tr></table>
bash, pdf, tex

TeX

Logic commands in tex

1
2
3
4
5
6
Allquantor = \forall
Existencequantor = \exists
OR = \vee
AND = \wedge
NOT = \neg
Implies = \Rightarrow
https://snipt.net/embed/a5d98fcf8c94dbc1998b2e6dcc370acb/
/raw/a5d98fcf8c94dbc1998b2e6dcc370acb/
a5d98fcf8c94dbc1998b2e6dcc370acb
tex
TeX
6
2019-07-20T05:57:34
True
False
False
/api/public/snipt/2246/
logic-commands-in-tex
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>Allquantor = <span class="k">\forall</span> </span><span id="L-2"><a name="L-2"></a>Existencequantor = <span class="k">\exists</span> </span><span id="L-3"><a name="L-3"></a>OR = <span class="k">\vee</span> </span><span id="L-4"><a name="L-4"></a>AND = <span class="k">\wedge</span> </span><span id="L-5"><a name="L-5"></a>NOT = <span class="k">\neg</span> </span><span id="L-6"><a name="L-6"></a>Implies = <span class="k">\Rightarrow</span> </span></pre></div> </td></tr></table>
logic, tex