Skip to content

Files

41 lines (32 loc) · 1.54 KB

index.md

File metadata and controls

41 lines (32 loc) · 1.54 KB
title
Overleaf-Markdown

Overleaf-Markdown bookmark

This bookmark adds support to Overleaf for real-time compilation of Markdown and LaTeX (via KaTeX). To use, open or create a project with Markdown files (make sure to use .md as a file extension) then click on this bookmark.

LaTeX expressions like $x=3$ are compiled via KaTeX. For inline math, use one dollar sign $x=3$. For display mode, use two dollar signs $$x=3$$.

Installation

On a desktop computer, drag this bookmarklet link to your bookmarks toolbar. To use it, visit your Overleaf project with markdown files and click on the bookmark.

Overleaf-Markdown link

On iOS,

  1. Bookmark this page (tap share icon, then bookmark icon).
  2. Click here to copy the bookmark or select and copy it below. {{site.data.overleaf_markdown.BOOKMARKLET}}
  3. Go to bookmarks and tap "edit". Paste in the address you copied in the previous step.
  4. Try it out: Go to your overleaf project and click on the bookmark!
<script> function copy() { const p = Array.from(document.querySelectorAll('code')).find( el => el.innerHTML.startsWith('javascript:')); const r = document.createRange(); r.setStart(p, 0); r.setEnd(p, 1); // Select text const s = window.getSelection(); s.removeAllRanges(); s.addRange(r); // Copy document.execCommand('copy'); // Unselect text s.removeAllRanges(); } </script>