Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

TeX

Table of Contents in a CCF memo

1
2
3
4
\begingroup
\let\clearpage\relax
\tableofcontents
\endgroup
https://snipt.net/embed/9d2211987cee0cff44cdcbb5fe17410d/
https://snipt.net/raw/9d2211987cee0cff44cdcbb5fe17410d/
9d2211987cee0cff44cdcbb5fe17410d
tex
TeX
5
2016-12-10T14:03:11
True
False
False
Jul 19, 2013 at 01:16 PM
/api/public/snipt/68662/
table-of-contents-in-a-ccf-memo
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="k">\begingroup</span> </span><span id="L-2"><a name="L-2"></a><span class="k">\let\clearpage\relax</span> </span><span id="L-3"><a name="L-3"></a><span class="k">\tableofcontents</span> </span><span id="L-4"><a name="L-4"></a><span class="k">\endgroup</span> </span></pre></div> </td></tr></table>
"table of contents", latex

Text only

Reformat paragraph text to wrap properly, using fmt command

Select text (using v)
:!fmt
https://snipt.net/embed/1120714594ba9f44ee15f2795862d76a/
https://snipt.net/raw/1120714594ba9f44ee15f2795862d76a/
1120714594ba9f44ee15f2795862d76a
text
Text only
2
2016-12-10T19:36:18
True
False
False
/api/public/snipt/40733/
reformat-paragraph-text-to-wrap-properly-using-fmt-command
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>Select text (using v) </span><span id="L-2"><a name="L-2"></a>:!fmt </span></pre></div> </td></tr></table>
Linux, fmt, latex, vim

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/
https://snipt.net/raw/e8464e89c2c818bcdac497a99c7a0b3b/
e8464e89c2c818bcdac497a99c7a0b3b
bash
Bash
1
2016-12-11T05:07:13
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

TeX

Rotated figure that uses a whole page

1
2
3
4
5
6
7
\begin{sidewaysfigure}
\begin{center}
\includegraphics[width=\textheight]{<file>}
\end{center}
\caption{<caption>}
\label{<label>}
\end{sidewaysfigure}
https://snipt.net/embed/c853bcff8cfb712025d8bb7fcacf6ac3/
https://snipt.net/raw/c853bcff8cfb712025d8bb7fcacf6ac3/
c853bcff8cfb712025d8bb7fcacf6ac3
tex
TeX
7
2016-12-11T00:31:16
True
False
False
/api/public/snipt/26680/
rotated-figure-that-uses-a-whole-page
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="k">\begin</span><span class="nb">{</span>sidewaysfigure<span class="nb">}</span> </span><span id="L-2"><a name="L-2"></a><span class="k">\begin</span><span class="nb">{</span>center<span class="nb">}</span> </span><span id="L-3"><a name="L-3"></a><span class="k">\includegraphics</span><span class="na">[width=\textheight]</span><span class="nb">{</span>&lt;file&gt;<span class="nb">}</span> </span><span id="L-4"><a name="L-4"></a><span class="k">\end</span><span class="nb">{</span>center<span class="nb">}</span> </span><span id="L-5"><a name="L-5"></a><span class="k">\caption</span><span class="nb">{</span>&lt;caption&gt;<span class="nb">}</span> </span><span id="L-6"><a name="L-6"></a><span class="k">\label</span><span class="nb">{</span>&lt;label&gt;<span class="nb">}</span> </span><span id="L-7"><a name="L-7"></a><span class="k">\end</span><span class="nb">{</span>sidewaysfigure<span class="nb">}</span> </span></pre></div> </td></tr></table>
latex

TeX

no page number

# no page number
\thispagestyle{empty}
https://snipt.net/embed/21b1c09e7d8ebcca44e60009bfa6282b/
https://snipt.net/raw/21b1c09e7d8ebcca44e60009bfa6282b/
21b1c09e7d8ebcca44e60009bfa6282b
tex
TeX
3
2016-12-11T00:22:13
True
False
False
/api/public/snipt/24070/
no-page-number
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a># no page number </span><span id="L-2"><a name="L-2"></a><span class="k">\thispagestyle</span><span class="nb">{</span>empty<span class="nb">}</span> </span></pre></div> </td></tr></table>
latex, number, page
Copyrighted, illegal, or inappropriate content? Email [email protected].