Markdown, LaTeX combined in WYSIWYG editor. Is there any?

9,258

Solution 1

I just discovered https://stackedit.io/editor. Apparently it is also available offline and includes many other interesting features aside from being a WYSIWYG Markdown+LaTeX editor/viewer.

Solution 2

Lyx comes to mind. It's technically a LaTeX editor, so it's maybe a bit more complicated than you're looking for. But it is basically WYSIWYG, and supports LaTeX. I don't know of any other document editors that do that.

Solution 3

I suggest that you stick with LaTeX (only) for the following reasons:

  • In using a markup external to LaTeX you'd need an additional program (editor or compiler) to pdflatex or whatever you use. This may be an unnecessary overhead and may make it so that it's harder to share your files due to portability (LaTeX is commonly used for technical texts but not some markup solution). If you stick with LaTeX you don't need this overhead.
  • In using a markup external to LaTeX you may lose some of LaTeX's tremendous customizability.
  • You can match the ease of writing with a markup such as WMD in LaTeX.

I can think of the following ways to ease writing with LaTeX:

  • Autocomplete. Use an editor that suggest completion of phrases, e.g. to suggest \emph{ if you start to enter em.
  • Snippet management. Use an editor that lets you define snippets, e.g. if you write em and press Tab it will enter \emph{} and place the cursor between {} and place the cursor after } as you press Tab again. If you use gedit see http://live.gnome.org/Gedit/Plugins/Snippets.
  • Use an editor in which you can use templates (either via a template function or snippets), e.g. so that you may write something short or press some keys to input a certain document class, some packages to load and the places the cursors between \begin{document} and \end{document}. This way you'll start writing on a new document with LaTeX in an instant.
  • Use a setup that makes compilation and viewing of output easy. This means using an editor that suits you and that you know well. The following list might be interest for you https://tex.stackexchange.com/questions/339/latex-editors-ides. Also, you might find tools such as latexmk.
  • If you think some macro is verbose define your own macro around it. Say that you find \longmacroname{} verbose, then you can define a shorter macro name around it such as \newcommand\foo[1]{\longmacroname{#1}} so that you may use \foo{} instead. Note that this can be a bad practice if macro names are hard to understand for those reading your code.

Solution 4

I recently discovered Zim, a very interesting editor, that is meant as a note taker and organizer, that supports a sort of markdown and the insertion of mathematical stuff, and is WYSIWYG.

Here is the description:

Zim aims to bring the concept of a wiki to your desktop. Every page is saved as a text file with wiki markup. Pages can contain links to other pages, and are saved automatically. Creating a new page is as easy as linking to a non-existing page. This tool is intended to keep track of TODO lists or to serve as a personal scratch book. But it will also serve you when writing longer and more complicated documents.

A "desktop wiki" means that we try to capture the idea of a wiki, not as a webpage but as a collection of files on your local file system that can be edited with a GUI application. The main focus is a kind of personal wiki that serves for all kind of notes: todo-lists, addresses, brainstorm ideas etc.

But we want to go further then just a wiki filled with random content. It should also be possible to use you random notes as the basis for more structured data: articles, presentations etc. Zim will not include tools to layout a presentation or something like that, you should use your office suite of choice for that, but it should be a tool that can deliver all the content for a presentation in a form that only needs a template and some layout before usage. Therefore certain features normally not found in wikis will be added.

and here are a couple of screenshots:

enter image description here

enter image description here

It is available in Ubuntu repos, but a more up-to-date PPA version is available too.

Solution 5

ReText and some conversion tools might be interesting:

Share:
9,258
om-nom-nom
Author by

om-nom-nom

Research-level student, Scala fanboy, trying to wrap my head around Python, Clojure and Dart I had a broad range of interests: from bioinformatics and computer vision to data mining, functional programming and rock-climbing. Working at Yandex on a variety of tasks Twitter LinkedIn profile

Updated on September 18, 2022

Comments

  • om-nom-nom
    om-nom-nom over 1 year

    I really like the way markdown is implemented in SE bunch of sites, where I can easily write code blocks, performing formatting or even use latex on some of sites like writing $\pi$. I also like how this online editor looks and feels. But it's all online.

    Is there any offline WYSIWYG analogs of notepag or WMD in Ubuntu that optionally supports pdf as an output format? Both markdown and latex desired.

    I desire to simultaneously use Markdown and LaTeX. I'm planing to use an editor for writing some technical stuff with math, but it's annoying to be constantly in "LaTeX-mode". So it would be awesome to immerse in LaTeX when I need formulas and use markdown when I need to speak on natural language.

    UPD. Almost all answers was quite useful, but none of them answers directly on my question. I'll accept @N.N. answer as a most complete.

    • Admin
      Admin over 12 years
      What type of documents do you aim to produce? What about the option of going all into LaTeX? You could write macros to mimic WMD and if you use a LaTeX editor such as tug.org/texworks you'll get the visual bit as well.
    • Admin
      Admin over 12 years
      @N.N. Yes, I was not so clear in my needs. I've clarified my aims.
    • Admin
      Admin over 12 years
      What bothers you with LaTeX when not writing technical stuff? It might be possible to overcome.
    • Admin
      Admin over 12 years
      @N.N. some overheads in italics,bold and headings. LaTeX has tremendously better (actually amazing) customization, but for me it is often simplier to write _text_ than \emph{text} since most of the time I don't use LaTeX advantages.
    • Admin
      Admin over 12 years
      If you don't use LaTeX's advantages you're probably writing plain text and if you're writing plain text with LaTeX you end up with plain text. See my answer for a suggestion.
    • Admin
      Admin almost 12 years
  • enzotib
    enzotib over 12 years
    another one could be texmacs
  • Kris Harper
    Kris Harper over 12 years
    Nice, I didn't know about texmacs.
  • frabjous
    frabjous over 12 years
    LyX is WYSIWYM --- "what you see is what you mean"; the printed output will look quite different.
  • Kris Harper
    Kris Harper over 12 years
    I've had discussions about whether LyX is WYSIWYM or not, and I really don't think it is. The output is slightly different, but nearly the same. In particular all the formatting and equations are essentially there before you compile. I consider LaTeX markup to be WYSIWYM. When I write \begin{center} \end{center} I mean center the text. In LyX, the text ends up centered (i.e., I see what I'm getting).
  • om-nom-nom
    om-nom-nom over 12 years
    While retext looks very nice it doesn't support formulas directly due to limitations of Qt's QTextEdit widget.
  • Beni Cherniavsky-Paskin
    Beni Cherniavsky-Paskin over 11 years
    MathJax is now implemented - sourceforge.net/p/retext/blog/2012/10/…
  • MountainX
    MountainX about 10 years
    ReText is not WYSIWYG. (See my other comment)
  • Jason Southwell
    Jason Southwell about 10 years
    @MountainX that is incorrect. The preview feature is WYSIWYG. I have used ReText so I know.
  • justineuro
    justineuro almost 9 years
    You may also want to have a look at the following: 1. JaxEdit (online site), GitHub src, 2. JaxMark (online site), GitHub src ---like JaxEdit + Markdown but w/o the slideshow feature, and 3. Markx (online site),GitHub. For Jaxedit (w/c is all LaTex + preview + slideshow), MathJax is built in! I haven't tried Markx.
  • justineuro
    justineuro almost 9 years
    For Jaxmark , MathJax has to be downloaded for offline use with the corresponding index.html appropriately edited (online, the CDN is accessed for rendering the MathJax). You may also want to point the index.html to MathJax.js in the Jaxedit folder (jaxedit-master/library/mathjax/unpacked/MathJax.js). However, for this to work in my system/browser I had to add fonts (MathML-fonts---come with MathJax, STIX and Asian-Math fonts) in the .fonts folder of my home directory. You may download Mathjax here.
  • justineuro
    justineuro over 8 years
    Just chanced upon this article: The best Markdown editors for Linux. Excerpt from the article: "In this post, I share with you the few that I consider the best Markdown editors for Linux. And every single one is better than your traditional text editor like GEdit, Tomboy, Kate and KWrite. Why? Because of Markdown. That means dynamic text formatting, ability to embed multimedia content in documents. That also means the ability to add mathematical expressions via MathJax or KaTeX."