From: Christopher Dimech <email@example.com> To: firstname.lastname@example.org Cc: "Berry, Charles" <email@example.com>, Help Emacs Orgmode <firstname.lastname@example.org>, Ihor Radchenko <email@example.com> Subject: Displaying equations with ob-latex Date: Fri, 7 May 2021 06:40:01 +0200 [thread overview] Message-ID: <trinity-450408bb-bc50-44e6-9122-bff42e7f871e-1620362401729@3c-app-mailcom-bs12> (raw) In-Reply-To: <trinity-83ae841e-4519-44f2-9a05-8d95a23068cf-1620358572921@3c-app-mailcom-bs12> Barry has shown how to use "C-c C-x C-l" (org-latex-preview &optional ARG) to preview a latex fragment at point. I then see no point in enclosing latex commands in "#+begin_src" and "#+end_src"; because one can just write any lates expression an a line such as below, them slamming it with "C-c C-x C-l". \(y = x\beta + \epsilon\) Is there a related command that previews all equations in the buffer, rather than only for a latex fragment at point. With a bit more work ob-latex can be pleasantly improved. Another comment is to allow the use of "plain tex", because one can then copy from texinfo math commands. In the last few months, texinfo was greatly improved for working with math (e.g. preview with mathjax, easy scaling with mouse wheel). The same could happen with ob-latex. > Sent: Friday, May 07, 2021 at 3:36 PM > From: firstname.lastname@example.org > To: "Ihor Radchenko" <email@example.com> > Cc: "Berry, Charles" <firstname.lastname@example.org>, "Help Emacs Orgmode" <email@example.com> > Subject: Re: displaying equations with ob-latex > > Another downside is that you got to slam "C-c C-x C-l" for every equation one writes > in the drawer. The solution is not very usable but at least I could display equations > as I do with texinfo from org. But for serious work, I need to be fast. Currently > it will be frustrating enough for users. > > > Sent: Friday, May 07, 2021 at 3:14 PM > > From: "Ihor Radchenko" <firstname.lastname@example.org> > > To: email@example.com > > Cc: "Berry, Charles" <firstname.lastname@example.org>, "Help Emacs Orgmode" <email@example.com> > > Subject: Re: displaying equations with ob-latex > > > > firstname.lastname@example.org writes: > > > > > Ok, I got some progress, I did "C-C C-x C-l" and got the equation. > > > > > > The equation in extremely small though. > > > > By default, it should have the same height with you text line. > > You can change it though. I have the following snippet in my config: > > > > (setq org-format-latex-options > > (quote > > (:foreground default :background default :scale 2.0 :justify center :html-foreground "Black" :html-background "Transparent" :html-scale 1.0 :matchers > > ("begin" "$1" "$" "$$" "\\(" "\\["))));; 2x height of formulas > > > >
next prev parent reply other threads:[~2021-05-07 4:40 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-05-06 7:50 displaying " 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. 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 ` Christopher Dimech [this message] 2021-05-07 3:18 ` Berry, Charles via General discussions about Org-mode. 2021-05-07 3:22 ` michael-franzese 2021-05-06 23:31 ` michael-franzese 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=trinity-450408bb-bc50-44e6-9122-bff42e7f871e-1620362401729@3c-app-mailcom-bs12 \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --subject='Re: Displaying equations with ob-latex' \ /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
Code repositories for project(s) associated with this 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).