emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Berry, Charles" via "General discussions about Org-mode." <emacs-orgmode@gnu.org>
To: "michael-franzese@gmx.com" <michael-franzese@gmx.com>
Cc: Help Emacs Orgmode <emacs-orgmode@gnu.org>
Subject: Re: displaying equations with ob-latex
Date: Thu, 6 May 2021 22:52:37 +0000	[thread overview]
Message-ID: <173CC0E2-8BF3-4EFB-A2AE-0A8A5C163FE8@health.ucsd.edu> (raw)
In-Reply-To: <trinity-a93d1dc2-40b9-4e8f-8077-17205d4ef5b9-1620338930202@3c-app-mailcom-bs12>



> On May 6, 2021, at 3:08 PM, michael-franzese@gmx.com wrote:
> 
> Did you manage to get the equations displayed, I have tried again and could not do
> it.  It might be beneficial to give more details and some more examples on what to do.
> 

Yes, the one equation was displayed as a preview. 

Maybe I was not clear in my directions so try this bit:

--8<---------------cut here---------------start------------->8---

1. Copy the text between the `cut here' lines to its own org buffer.
2. Place cursor in the eqn1 src block.
3. Type ~C-c C-c~ and respond to any prompt about evaluating with ~y~.
4. An eqn1 results block should appear with a :results: drawer
   containing an equation in it.
5. Type ~C-c C-x C-l~.
6. The equation should be previewed in the :results: drawer.
7. Export to LaTeX Buffer with ~C-c C-e C-b l L y~ 
8. Only an enumerate environment and the equation should appear in the
   LaTeX buffer.

#+name: eqn1
#+begin_src latex :exports none :results drawer 
  \(y = x\beta + \epsilon\)
#+end_src

#+call: eqn1() :results latex

--8<---------------cut here---------------end--------------->8---




> Can I export on a window that is to right window of the code window?

IIUC, the question is 

:  when I export (as in item 5 in the list above), will the LaTeX buffer
:  open in a window to the right of the one containing the org buffer?

This is what happens in my setup when I have the org buffer displayed in a frame with just one window.

But how windows are displayed depends on many factors. See (info "(emacs) Windows") for some of the details. So you may need to customize or resize your frame to get the same behavior.


>  I can one use plain
> tex commands.  Texinfo mainly supports plain tex, org mode in basically latex, so the
> two programs do not currently work well together.
> 

Um, I don't see how this gets to the original question.

> Texinfo has the good feature to show equations (but only for plain tex) whereas org
> is good with latex (but not very adept at displaying the output in an emacs window).

There are probably a lot of opinions in the org community about how well org handles previewing output. For me it works well. YMMV.

HTH,

Chuck


  reply	other threads:[~2021-05-06 22:53 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-06  7:50 displaying equations with ob-latex michael-franzese
2021-05-06 18:14 ` Berry, Charles via General discussions about Org-mode.
2021-05-06 21:54   ` Christopher Dimech
2021-05-06 22:08   ` michael-franzese
2021-05-06 22:52     ` Berry, Charles via General discussions about Org-mode. [this message]
2021-05-06 23:20       ` michael-franzese
2021-05-07  1:36         ` Berry, Charles via General discussions about Org-mode.
2021-05-07  2:33           ` michael-franzese
2021-05-07  2:39           ` michael-franzese
2021-05-07  3:14             ` Ihor Radchenko
2021-05-07  3:20               ` michael-franzese
2021-05-07  3:36               ` michael-franzese
2021-05-07  4:40                 ` Displaying " Christopher Dimech
2021-05-07  3:18             ` displaying " Berry, Charles via General discussions about Org-mode.
2021-05-07  3:22               ` michael-franzese
2021-05-06 23:31       ` michael-franzese
  -- strict thread matches above, loose matches on Subject: below --
2021-05-06  9:54 michael-franzese
2021-05-06 12:37 ` Christopher Dimech
2021-05-06 12:44 ` pietru

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=173CC0E2-8BF3-4EFB-A2AE-0A8A5C163FE8@health.ucsd.edu \
    --to=emacs-orgmode@gnu.org \
    --cc=ccberry@health.ucsd.edu \
    --cc=michael-franzese@gmx.com \
    /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).