[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: when executing a src block with latex construct, display problem bec
From: |
Berry, Charles |
Subject: |
Re: when executing a src block with latex construct, display problem because of + |
Date: |
Sat, 15 May 2021 22:44:33 +0000 |
Uwe,
You used `:exports code :eval never-export' (from an earlier posting).
I think you want `:exports both :eval never-export' to keep babel from removing
the results.
HTH,
Chuck
> On May 15, 2021, at 1:18 PM, Uwe Brauer <oub@mat.ucm.es> wrote:
>
> 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»
- when executing a src block with latex construct, display problem because of +, Uwe Brauer, 2021/05/15
- Re: when executing a src block with latex construct, display problem because of +, Berry, Charles, 2021/05/15
- Re: when executing a src block with latex construct, display problem because of +, Uwe Brauer, 2021/05/15
- Re: when executing a src block with latex construct, display problem because of +, Berry, Charles, 2021/05/15
- Re: when executing a src block with latex construct, display problem because of +, Uwe Brauer, 2021/05/15
- Re: when executing a src block with latex construct, display problem because of +,
Berry, Charles <=
- Re: when executing a src block with latex construct, display problem because of +, Uwe Brauer, 2021/05/16