[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: displaying equations with ob-latex
From: |
michael-franzese |
Subject: |
Re: displaying equations with ob-latex |
Date: |
Fri, 7 May 2021 01:20:37 +0200 |
After I do "C-c C-c", I just get a message saying "Code block evaluation
complete."
> Sent: Friday, May 07, 2021 at 10:52 AM
> From: "Berry, Charles" <ccberry@health.ucsd.edu>
> To: "michael-franzese@gmx.com" <michael-franzese@gmx.com>
> Cc: "Help Emacs Orgmode" <emacs-orgmode@gnu.org>
> Subject: Re: displaying equations with ob-latex
>
>
>
> > 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
>
- displaying equations with ob-latex, michael-franzese, 2021/05/06
- displaying equations with ob-latex, michael-franzese, 2021/05/06
- Re: displaying equations with ob-latex, Berry, Charles, 2021/05/06
- Re: displaying equations with ob-latex, Christopher Dimech, 2021/05/06
- Re: displaying equations with ob-latex, michael-franzese, 2021/05/06
- Re: displaying equations with ob-latex, Berry, Charles, 2021/05/06
- Re: displaying equations with ob-latex,
michael-franzese <=
- Re: displaying equations with ob-latex, Berry, Charles, 2021/05/06
- Re: displaying equations with ob-latex, michael-franzese, 2021/05/06
- Re: displaying equations with ob-latex, michael-franzese, 2021/05/06
- Re: displaying equations with ob-latex, Ihor Radchenko, 2021/05/06
- Re: displaying equations with ob-latex, michael-franzese, 2021/05/06
- Re: displaying equations with ob-latex, michael-franzese, 2021/05/06
- Displaying equations with ob-latex, Christopher Dimech, 2021/05/07
- Re: displaying equations with ob-latex, Berry, Charles, 2021/05/06
- Re: displaying equations with ob-latex, michael-franzese, 2021/05/06
- Re: displaying equations with ob-latex, michael-franzese, 2021/05/06