LaTeX forum ⇒ AnnouncementsOne-click compiling of code in the forum with writeLaTeX

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

One-click compiling of code in the forum with writeLaTeX

Postby Stefan Kottwitz » Wed Jan 09, 2013 9:58 pm

Hello,

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

Above Code boxes in forum posts there's a new link: Open in writeLaTeX. 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 writeLaTeX:

  1. % A simple graph with straight and bend arrows and loops
  2. % Stefan Kottwitz, http://texample.net
  3. \documentclass{article}
  4. \usepackage{tikz}
  5. \usetikzlibrary{arrows}
  6. \begin{document}
  7. % Start the picture, define node and arrow styles
  8. \begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=3cm,
  9. thick,main node/.style={circle,fill=blue!20,draw,font=\sffamily\Large\bfseries}]
  10.  
  11. % Place the main nodes
  12. \node[main node] (1) {1};
  13. \node[main node] (2) [below left of=1] {2};
  14. \node[main node] (3) [below right of=2] {3};
  15. \node[main node] (4) [below right of=1] {4};
  16.  
  17. % Draw edges with nodes for description
  18. % Use options loop and bend for loops and bent edges
  19. % Specify left and right for bend direction and node placement
  20. \path[every node/.style={font=\sffamily\small}]
  21. (1) edge node [left] {0.6} (4)
  22. edge [bend right] node[left] {0.3} (2)
  23. edge [loop above] node {0.1} (1)
  24. (2) edge node [right] {0.4} (1)
  25. edge node {0.3} (4)
  26. edge [loop left] node {0.4} (2)
  27. edge [bend right] node[left] {0.1} (3)
  28. (3) edge node [right] {0.8} (2)
  29. edge [bend right] node[right] {0.2} (4)
  30. (4) edge node [left] {0.2} (3)
  31. edge [loop right] node {0.6} (4)
  32. edge [bend right] node[right] {0.2} (1);
  33. \end{tikzpicture}
  34. \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:

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


To learn more about the editor, just click the Help button there.

Enjoy the new feature!

Stefan
Site admin

Link:
BBcode:
HTML:
Hide post links
Show post links

Return to “Announcements”

Who is online

Users browsing this forum: No registered users and 1 guest