## LaTeX forum ⇒ Announcements ⇒ One-click compiling of code in the forum with Overleaf

Rules, announcements and news for this LaTeX Community
Stefan Kottwitz
Posts: 8367
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

### One-click compiling of code in the forum with Overleaf

Hello,

starting today, we can use an online LaTeX compiler in the forum in collaboration with Overleaf, an online collaborative LaTeX editor with integrated rapid preview.

Above Code boxes in forum posts there's a new link: Open in Overleaf. By a single click, you will land in the editor which shows the code on the left side, and the output preview on the right side. Compilation is done in realtime.

Now, if a compilable example was posted, you can edit it and view it by a single click, modify and test it and provide a working answer even without having a local TeX installation.

Just try it with an MWE - click on Open in Overleaf:

% A simple graph with straight and bend arrows and loops% Stefan Kottwitz, <!-- m --><a class="postlink" href="http://texample.net">http://texample.net</a><!-- m -->\documentclass{article}\usepackage{tikz}\usetikzlibrary{arrows}\begin{document}% Start the picture, define node and arrow styles\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=3cm,  thick,main node/.style={circle,fill=blue!20,draw,font=\sffamily\Large\bfseries}]   % Place the main nodes  \node[main node] (1) {1};  \node[main node] (2) [below left of=1] {2};  \node[main node] (3) [below right of=2] {3};  \node[main node] (4) [below right of=1] {4};   % Draw edges with nodes for description  % Use options loop and bend for loops and bent edges  % Specify left and right for bend direction and node placement  \path[every node/.style={font=\sffamily\small}]    (1) edge node [left] {0.6} (4)        edge [bend right] node[left] {0.3} (2)        edge [loop above] node {0.1} (1)    (2) edge node [right] {0.4} (1)        edge node {0.3} (4)        edge [loop left] node {0.4} (2)        edge [bend right] node[left] {0.1} (3)    (3) edge node [right] {0.8} (2)        edge [bend right] node[right] {0.2} (4)    (4) edge node [left] {0.2} (3)        edge [loop right] node {0.6} (4)        edge [bend right] node[right] {0.2} (1);\end{tikzpicture}\end{document}

Now it's even more beneficial if complete examples were posted. It basically works for small snippets too, adding a basic wrapping, which you can extend, such as here - click on Open:

$e = \lim_{n\to\infty} \left( 1 + \frac{1}{n} \right)^n = \lim_{n\to\infty} \frac{n}{\sqrt[n]{n!}}$