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 QOUUDNHgfGJmKAEAbAwnHQ (envelope-from ) for ; Thu, 12 May 2022 12:26:25 +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 yOwcC9HgfGI8iAAAG6o9tA (envelope-from ) for ; Thu, 12 May 2022 12:26:25 +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 C22EC4D97 for ; Thu, 12 May 2022 12:26:24 +0200 (CEST) Received: from localhost ([::1]:59076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1np61X-0006qx-PG for larch@yhetil.org; Thu, 12 May 2022 06:26:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1np5pE-00048O-Vp for emacs-orgmode@gnu.org; Thu, 12 May 2022 06:13:41 -0400 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]:37532) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1np5oz-0006Ok-EY for emacs-orgmode@gnu.org; Thu, 12 May 2022 06:13:40 -0400 Received: by mail-pg1-x535.google.com with SMTP id x8so751998pgr.4 for ; Thu, 12 May 2022 03:13:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=bXCeTb8amwTwTNSY8W6fQlKKG7Pft6ev8t290aiEaSY=; b=ezCFPV+2++zlQXXwsKVUDmrXtP4U/LEUYLQnBD8T7CViB2RnNd9qRcy3rbTyc4bX5H tL1nxR0mMuEGbvBvH2ldtD15/whHb76mL5vHD0lnGei7oMo3YTXrbUdwow4DMdHERM21 5lzrpdXycbdYH7WDXzfiaYWm9QTLLSibPg2K0Y8LFApgFtHd05aLIcWsprk/QZ2+G30J WLGCFbHH0y+fcY119c3ojaO6quhXA/YEN6zG9fwLYU47hT3LSPntEJZkAz01gUjJhmCv 7Rvna63mxfUL2tPTI7tAOkA3qILzHn4MnsWuHaycNc3nx2b3y0YEmXlndla/fpZ2i196 EJIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=bXCeTb8amwTwTNSY8W6fQlKKG7Pft6ev8t290aiEaSY=; b=BhVV9jKlHJKezB6+pz3qDw7WyLpNj94tLnmh/anldy/ixHNRaaQ8aBs+F2WRQVtbSe PhKzp7x84oDrVge0DEsfMPX2i6qwtYRZCUUymeEOwvkJgxMcZqO2xvyAtCw4zV94HmAt hBuFXrR2cglift5uGVnonAvq4SBv/dvnvLPF+2diDtQozFzhXVp66+fiRqJFJqXY2Y6n DkOaKNCqU50FMLRRr5D/z0voUmw/U8TU++dW0i6yUWEm0PkxUOH2EVQYO2xnR+VB/6Nv 5nnLNm2bdTHaKbaTnCOc+KIqDNG8FN/p4BAjp9Vd2kXU00ey++w7wwhj4U1JcrPbNFNh WF9g== X-Gm-Message-State: AOAM531IWA62GkRqYF6qcvffSnXzS3RgTCIcCvhe0yTpI4EtsDdMmws7 bYj1MK0xzVVnXlQXEubNqHQ= X-Google-Smtp-Source: ABdhPJwz4k38eP3va1iSBbMC1hQgp/WbVkeLep573e2s0L7aA6erHkumUVWpWXm0rPzdI9CONRLHmg== X-Received: by 2002:a63:8543:0:b0:3ab:5afb:200c with SMTP id u64-20020a638543000000b003ab5afb200cmr24132200pgd.402.1652350403883; Thu, 12 May 2022 03:13:23 -0700 (PDT) Received: from localhost ([37.120.210.2]) by smtp.gmail.com with ESMTPSA id l4-20020a170902ec0400b0015f309f14d0sm3490421pld.56.2022.05.12.03.13.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 May 2022 03:13:23 -0700 (PDT) From: Ihor Radchenko To: Richard Stanton Cc: orgmode Subject: Re: How to stop results being hidden when using ":results drawer"? In-Reply-To: <21F026ED-1504-4F33-B596-769CD294AC4A@berkeley.edu> References: <21F026ED-1504-4F33-B596-769CD294AC4A@berkeley.edu> Date: Thu, 12 May 2022 18:14:08 +0800 Message-ID: <877d6rhxcf.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::535; envelope-from=yantar92@gmail.com; helo=mail-pg1-x535.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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=1652351184; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=bXCeTb8amwTwTNSY8W6fQlKKG7Pft6ev8t290aiEaSY=; b=Om5WTD+5+miGsvtdl3NCeqTOY1ceP/NqS15e8+8sY3gnd5s+6gQv0R5BW7fwY0xamk5YmK 4BkxhDkjq/BXwSqK+lJKF+Tm2Hj3a3UahG1aOCiD2VaVnQryhw4oAtmEPhxTTt+AxGbyAp /cTsxgUy1cOIJ34d5weQBWIqVQhDVygIbNnleLPwAD2SojHsTA2Bbm+uSVSLDIiwrWVU+D sNO8toRQOWToCuaURNPPwwxgunI1Nud8iTB7ZhHJgOL2+RaVYgkGcT0m2hD/j4MPffiymI jdhuapC4aG2bGnCUVXvwDdqpfaH+kAk7Trd5SUqDxZl4kyzftnfSwPRG/EXGDw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652351184; a=rsa-sha256; cv=none; b=NvsS3OnJiHyMJSeJyN6/1nDeuPJqNnP8hCWB5vF91icMjDzNLgZXsMz90WDsjb50yRjZJp TroB96iy0HkKQUhSC7dPMOqEec16oTrcl8C5zhM0tT324FJc+3xxh2UFwsXbmSD+dtOysL HgZPKHSeuz7rDqNHACDc0IJ1BGs3kRwLeqMeD9ZSh87IRoDbJDGEzJHA1mrYdrhp8B7uVn dt2JPYXdymx8+Ooh2gNKwKBXa76HsdtnntqWX+toYPG+qM/SIKEb16q7QPm09x8u4X5TDt Y1M+t7YSSYwAfrKLiXOMoaxgG36TyrRvMPp7CIV8GgETJQ/3UuvreAy5ZW3K+A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ezCFPV+2; 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: -1.01 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ezCFPV+2; 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: C22EC4D97 X-Spam-Score: -1.01 X-Migadu-Scanner: scn1.migadu.com X-TUID: 2X1q7z8e5/c6 Richard Stanton writes: > I=E2=80=99m creating documents where I run Python code blocks that create= LaTeX mathematical output that I want to be able to export to either LaTeX= /PDF or HTML.=20 > > Using :wrap in the header works fine, except that LaTeX complains about t= he unknown environment =E2=80=9Cresults=E2=80=9D (it still compiles the fil= e to PDF fine). > > Using :wrap export latex works fine for LaTeX export, but I can=E2=80=99t= get HTML that way. > > The recommended method seems to be to use :results drawer. This works fin= e from an export perspective to both LaTeX/PDF and to HTML. However, it has= one significant drawback when I=E2=80=99m actually creating the document: = the results drawer starts out hidden and to see what=E2=80=99s there I have= to click on it. This makes debugging the code in the first place a lot les= s convenient. > > Is there a way to use :results drawer and have the results NOT hidden by = default? I think that you are experiencing the same issue with https://list.orgmode.org/80k0ar1lml.fsf@felesatra.moe/T/#u Does it help when you run M-: (setq org-fold-core-first-unfold-functionsp nil) before running the code block? Best, Ihor