From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kOTIK575i2KPWAAAbAwnHQ (envelope-from ) for ; Mon, 23 May 2022 23:16:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id UDr6Kp75i2KIbgEAG6o9tA (envelope-from ) for ; Mon, 23 May 2022 23:16:14 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4B92E2E15F for ; Mon, 23 May 2022 23:16:14 +0200 (CEST) Received: from localhost ([::1]:51234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntFPR-0002L7-FL for larch@yhetil.org; Mon, 23 May 2022 17:16:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntFHm-0002Pu-OF for emacs-orgmode@gnu.org; Mon, 23 May 2022 17:08:18 -0400 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]:46822) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntFHl-00081b-3u for emacs-orgmode@gnu.org; Mon, 23 May 2022 17:08:18 -0400 Received: by mail-ej1-x632.google.com with SMTP id rs12so19646871ejb.13 for ; Mon, 23 May 2022 14:08:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=kpg9OqNqGbXk0AUTpgL3+UEv7ZTpC4duAYWUzytSNQw=; b=Jb8wIUm1fLdXjYFhejkKV08OWd24jzx9VybIwqZx6lYHP+HXBlsX8p3fukbKRNOmht wbfOeR+VGErWTx6jVr4OOdgnBvb3XDqvE3sSlcTZENVDk8PblLPnsrmqEbqR/rIJsaeg oyibcShBXwBwX2fd2ja6/3eIJIO5jwfE+An9PYm87GdxDs+5I6OH2YKhgf1NaivjlgFX ErUCcCq0L6R8MUovS1xT36DUtmJ2LTtcCD66WqlCBrEDxd0+gyf32VWztSD6Q0TBngqn oAR6f2rU9FPgPQAj8XKMcvannD61Tclrj16x/7UC2Bt+cg/MzCoTj8FJWKgwR6s8hlzL 56CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=kpg9OqNqGbXk0AUTpgL3+UEv7ZTpC4duAYWUzytSNQw=; b=1VVBOAqmJu3CRzyrzcux5yr9VJaEOwwgjwMe0QNyp7Fq25bHkj2Xwt4quP6rg2Fc3m olJ4wU9XyGjSuthONtkKTsmQl747tOPSC4C5LC5d5rGPp6dFk/sWCByClCkLO+Ks7q3f cgDyIjeve8wtzFSNG8ASA4czLvNNdEAz3QzaxPWBZ4kCRtSgJzjtPSz7/cZRqmpCW74/ ko4cmNR7DzftdwBxxf50EPI/94QZNku9esQwbKKS8SrBCv4qgYsIHHmm2mMMytiklTS+ SpreI8Zthhv608E7aPnGvecRulWLy5xblW8/A7QmWrkWZUCpaA1nAcEcOfQdgWo1ceP6 HIYw== X-Gm-Message-State: AOAM531sY38p0ZJZbUbQfJN+YBqwnqNMBr5v1WIvi31Fof/GKlp3uJ35 S8NRpozPE+S+x6MOASjCLWlM3KU6HsU= X-Google-Smtp-Source: ABdhPJwisEd649Z/YRg+JOM9aWD17X+RRL4A+xq41T4qsNUCHMR0WC5eKm8yG37oMAQaxRJRIR1pAQ== X-Received: by 2002:a17:907:96ab:b0:6fe:ec87:cd90 with SMTP id hd43-20020a17090796ab00b006feec87cd90mr5299993ejc.620.1653340093977; Mon, 23 May 2022 14:08:13 -0700 (PDT) Received: from flexignu ([2a02:908:1d0:8d20:4820:5440:3e1f:5d9c]) by smtp.gmail.com with ESMTPSA id y16-20020a056402271000b0042b6a84b230sm2116888edd.90.2022.05.23.14.08.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 14:08:13 -0700 (PDT) From: Jeremie Juste To: emacs-orgmode@gnu.org Subject: Re: problem with unwanted strikeout in src blocks References: <87r14kjh6a.fsf@mat.ucm.es> Date: Mon, 23 May 2022 23:08:12 +0200 In-Reply-To: <87r14kjh6a.fsf@mat.ucm.es> (Uwe Brauer's message of "Mon, 23 May 2022 19:24:29 +0200") Message-ID: <87wnec9cub.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::632; envelope-from=jeremiejuste@gmail.com; helo=mail-ej1-x632.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653340574; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=kpg9OqNqGbXk0AUTpgL3+UEv7ZTpC4duAYWUzytSNQw=; b=fkG9PBNg6DvLDw9wLjzuGtSf+VN5KK38uR7Sb1zaYGiWYYJpXlhuT9KduZLvwIU1BqCcP2 yzmjgoP7g79EcQpemkyw9tFUTPhiAdnzPrtJuPXArK0Mk+xEp3/zpXK+ZTPd+BQCGNHL04 qin72Fo/eElRCAaMDSW6PtPnwbcajJtU0Nx/ncgJEdiSgHFsT9xtEO9neLjdSZtat/af65 eaX7dcrekJlI+Ye1Nzeyo1O2XlyhpQBo2HM/N7QbG3hNrPK9wS31egsi6I/ecH7O9cRN4K fL/30BTpsL6zhODkXvOpy9QrA9InWpGtcK3YmWvcgyNfClogQwm6KBdJ68FTcA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653340574; a=rsa-sha256; cv=none; b=pOqihDpqyboVX9guNdOtvfE50a1oW26yT+8XpTgD3K5yc4iCpx+mlBEfHYtS1gW1oYIugH zsVTNKGCY742NiGH6JpMa/tGKyPRqHilTFthwZSgh2fF8MrrAE/2gUhLvS15/MdFWer31o s2mEJcBbhOvukcbLwxPn8QNjzstq7eQ7W9IfS0eF7GAMpiXMToGaQa7Oq3ImqbvyIvMDRh EFm3StnFTreGKNbOJsCDfE3qdw7Jf6NsSkwsJaMeR17lTWLdbEVZXWq7gj1x3/1gp4yQcy Vrcld40J9Orcpaiz2RnzFnA2mjntrVyZNMdUP0Ds0F25UgO2S8dpF/hWWZzumA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Jb8wIUm1; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.55 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Jb8wIUm1; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 4B92E2E15F X-Spam-Score: -2.55 X-Migadu-Scanner: scn1.migadu.com X-TUID: ctj2TgYz/9tj 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("\\begin{align*}") 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})}") cat("\\end{align*}") #+end_src With the :post keyword so that you can wrap pretty much anything. (info "(org) Results of Evaluation") Consider #+NAME: box #+BEGIN_SRC emacs-lisp :var equation="" (format "\\\\begin{solutionorbox} %s \\\\end{solutionorbox}" equation ) #+end_src #+begin_src R :exports results :eval yes :results output latex :post box(*this*) cat("\\frac{3}{4}") #+end_src #+RESULTS: #+begin_export latex \\begin{solutionorbox} \frac{3}{4} \\end{solutionorbox} #+end_export HTH, Jeremie