From: Uwe Brauer <oub@mat.ucm.es> To: "Berry, Charles" <ccberry@health.ucsd.edu> Cc: Uwe Brauer <oub@mat.ucm.es>, Help Emacs Orgmode <emacs-orgmode@gnu.org> Subject: Re: when executing a src block with latex construct, display problem because of + Date: Sat, 15 May 2021 22:18:24 +0200 [thread overview] Message-ID: <874kf3agz3.fsf@mat.ucm.es> (raw) In-Reply-To: <885081C8-DE4E-446C-9E61-A6620FA36483@health.ucsd.edu> [-- Attachment #1: Type: text/plain, Size: 1000 bytes --] Chuck, > Uwe, > [snip] > [screenshot deleted] > Oh, I misunderstood. > The result looks like latex. So why not use `:results output latex' ? I tried that also, then however the result is #+RESULTS: #+begin_export latex \begin{align*} P(\text{Covid19}|\text{+})&=\frac{P(\text{+}|\text{Covid19})P(\text{Covid19})}{P(\text{+}|\text{Covid19})P(\text{Covid19})+P(\text{+}|\text{No-Covid19})P(\text{No-Covid19})}\\ P(\text{No-Covid19}) &= 1- P(\text{Covid19}) = 1-0.1=0.9\\ P(\text{+}|\text{No-Covid19}) &= 1- P(\text{-}|\text{No-Covid19}) = 1-0.95=0.05 \\ &=\frac{0.95 \cdot 0.1}{0.95\cdot0.1 + (1-0.95)\cdot 0.9}\\ P(\text{Covid19}|-)&=0.608696 \\ P(\text{No-Covid19}|+)&=1-P(\text{Covid19}|+)=0.391304 \\ \end{align*} #+end_export That is ok for displaying, but if I now want also to export this org file to latex, the align construct is not exported, sigh. As the great philosopher M. Jagger said: «You Can't Always Get What You Want» [-- Attachment #2: smime.p7s --] [-- Type: application/pkcs7-signature, Size: 5673 bytes --]
next prev parent reply other threads:[~2021-05-15 20:19 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-05-15 13:31 Uwe Brauer 2021-05-15 17:25 ` Berry, Charles via General discussions about Org-mode. 2021-05-15 18:10 ` Uwe Brauer 2021-05-15 19:15 ` Berry, Charles via General discussions about Org-mode. 2021-05-15 20:18 ` Uwe Brauer [this message] 2021-05-15 22:44 ` Berry, Charles via General discussions about Org-mode. 2021-05-16 7:13 ` Uwe Brauer
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=874kf3agz3.fsf@mat.ucm.es \ --to=oub@mat.ucm.es \ --cc=ccberry@health.ucsd.edu \ --cc=emacs-orgmode@gnu.org \ --subject='Re: when executing a src block with latex construct, display problem because of +' \ /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).