emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sebastian Berchtold <Sebastian.Berchtold@campus.lmu.de>
To: emacs-orgmode@gnu.org
Subject: [WISH] Latex WYSIWYG
Date: Tue, 21 Jun 2011 02:22:12 +0200 (CEST)	[thread overview]
Message-ID: <10933380.173491308615732676.JavaMail.tomcat@tomcat2> (raw)

Hi, my first post here: So big shout outs to all org-mode hackers. Great Stuff!

There is one feature I'd really like to have, but i couldn't find anything that does what i want. I guess it's just a small hack, but with my retarded elisp skills it would take me days to implement it.

WYSIWYG Latex is probably not the correct term for this. What i have in mind is more like seeing the formula, while editing the ASCII/Unicode representation.
I'll try to explain the idea more detailed.

* Reason of Request:

** Finding Errors
There is no avoiding mistakes for me when writing latex formulas and i just take note of them after recognizing that the image can't be rendered. For longer formulas it can be quite annoying and time consuming finding the errors and I sometimes end up splitting to the math-environment to several parts when trying to locate.

** Importance of seeing the equations while writing 
Hey, latex formulas are much more pleasant to the eye and striking in the brain than their ASCII representation, that's why we're using em. When developing a train of thought in formulas, I always need to see what I've written so far. So I feel forced to to split the math-environments into many small parts, and putting them together after wards. 
Or even worse when i loose track: I need to copy the line I'm writing on and push org-preview-latex-fragment before i can go on.

** Summarizing
I write a bit, hit preview-latex-fragment and copy it to keep it in mind while writing on.

Surely everyone using org-mode for heavily formula dependent text has the same problem.
I would be glad for every hint to avoid this, probably there are already good solutions for this.
In the following the one i imagine:


* Description of the feature wished
- Keep all latex-fragments in image representation
- Only the one at cursor position is in ASCII representation (as in preview-latex)
  but still showing the corresponding image above it
- editing the latex code segment updates the image

Rephrased:
When the caret enters a latex environment (usually shown as a picture) it's code shows up (maybe in a different color) with the caret at the position as if there would have never been an image. 

Maybe the code should be should be shown aboveHi, my first post here: So big shoutouts to all org-mode hackers. Great Stuff!
There is one feature i'd really like to have, but i couldn't find anything that does what i want. I guess it's just a small hack, but with my retarded elisp skills it would take me days to implement it.

WYSIWYG Latex is probably not the correct term for this. What i have in mind is more like seeing the formula, while editing the ASCII/Unicode representation.
I'll try to explain the idea more detailed below.

* Reason of Request:
** Finding Errors
There is no avoding mistakes for me when writing latex formulas and i just take note of them after recognizing that the image can't be rendered. For longer formulas it can be quite annoying and time consuming finding the errors and I sometimes end up splitting to the math-environment to several parts when trying to locate.

** Importance of seeing the equations while writing 
Hey, latex formulas are much more pleasant to the eye and striking in the brain than their ASCII represenation, that's why we're using em. When devoloping a train of thought in formulas, I always need need to see what I've written so far. So I feel forced to to split the math-environments into many small parts, and putting them together afterwards. Or even worse when i loose track: I need to copy the line I'm writing on and push org-preview-latex-fragment before i can go on.

** Summarizing
I write a bit, hit preview-latex-fragment and copy it to keep it in mind while writing on.

Surley everyone using org-mode for heavly formula dependent text has the same problem.
I would be glad for every hint to avoid this, probably there are already good solutions for this.
In the following the one i imagine:




* Description of the feature wished
- Keep all latex-fragments in image represenation
- Only the one at cursor position is in ASCII representation (as in preview-latex)
  but still showing the corresponding image above it
- editing the latex code segment updates the image

Rephrased:
When the caret enters a latex environment (usually shown as a picture) it's code shows up (maybe in a diffrent color) with the caret at the position as if there would have never been an image. 

Maybe the code should be should be shown below/above the the corresponding image wheather the carret enters from the top/bottom to avoid jumping of the image at focus (if this doesn't lead to more confusion than it helps)



It shouldn't be to hard to do? Just auto evaluate the latex snippets and showing it's code when the cursor is above it.
Could any elisp crack who's already into the org-latex code hack this?
Or are there already better solutions?

Thank you for any response,
JonnyB.


Another question: Is there a simple way to activate latex syntax highlighting in org-mode?)

             reply	other threads:[~2011-06-21  0:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-21  0:22 Sebastian Berchtold [this message]
2011-06-21 15:30 ` [WISH] Latex WYSIWYG Eric S Fraga
2011-06-24 14:14 ` Jan Böcker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=10933380.173491308615732676.JavaMail.tomcat@tomcat2 \
    --to=sebastian.berchtold@campus.lmu.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).