emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jeremie Juste <jeremiejuste@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: problem with unwanted strikeout in src blocks
Date: Mon, 23 May 2022 23:08:12 +0200	[thread overview]
Message-ID: <87wnec9cub.fsf@gmail.com> (raw)
In-Reply-To: <87r14kjh6a.fsf@mat.ucm.es> (Uwe Brauer's message of "Mon, 23 May 2022 19:24:29 +0200")

Hello Uwe

> On Monday, 23 May 2022 at 19:24, Uwe Brauer wrote:

Sorry I don't have matlab and I have never used the solutionorbox
environment, but I believe you can generate latex directly. For example
with R I can to the following.

#+begin_src R :exports results  :eval yes  :results output latex
cat("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})}")

With the :post keyword so that you can wrap pretty much anything. 

(info "(org) Results of Evaluation")


#+NAME: box
#+BEGIN_SRC emacs-lisp :var equation="" 
(format  "\\\\begin{solutionorbox}
 \\\\end{solutionorbox}" equation )

#+begin_src R :exports results  :eval yes  :results output latex :post box(*this*)

#+begin_export latex


  reply	other threads:[~2022-05-23 21:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-23 17:24 problem with unwanted strikeout in src blocks Uwe Brauer
2022-05-23 21:08 ` Jeremie Juste [this message]
2022-05-24 12:46   ` Uwe Brauer
2022-05-24  3:45 ` Ihor Radchenko
2022-05-24 12:44   ` 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:

  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=87wnec9cub.fsf@gmail.com \
    --to=jeremiejuste@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* 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


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).