From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: how to pass parameters to latex environment when exporting Date: Sat, 01 Jun 2019 19:31:19 +0200 Message-ID: <87k1e58b6g.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:41564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hX7qp-0008PD-7t for emacs-orgmode@gnu.org; Sat, 01 Jun 2019 13:31:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hX7qo-0007uJ-8r for emacs-orgmode@gnu.org; Sat, 01 Jun 2019 13:31:27 -0400 Received: from [195.159.176.226] (port=44976 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hX7qo-0007tn-21 for emacs-orgmode@gnu.org; Sat, 01 Jun 2019 13:31:26 -0400 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hX7qm-000gPS-4h for emacs-orgmode@gnu.org; Sat, 01 Jun 2019 19:31:24 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hi I have the following example of a org file #+begin_solution The result is as follows #+begin_src matlab :results output raw :exports results :eval never-export l=0.33; mypois=poisspdf(0,l); myres=1-poisspdf(0,l)-poisspdf(1,l); disp('\begin{align*}') fprintf('P(X\\geq 1)&=1-P(X=0)-P(X=1)=1- %g \\\\\n', mypois) fprintf('P(X\\geq 1)&= %g \n', myres) disp('\end{align*}') l=1/3; mypois=poisspdf(0,l); myres=1-poisspdf(0,l)-poisspdf(1,l); disp('\begin{align*}') fprintf('P(X\\geq 2)&=1-P(X=0)=1- %g \\\\\n', mypois) fprintf('P(X\\geq 2)&= %g \n', myres) disp('\end{align*}') #+end_src #+RESULTS: \begin{align*} P(X\geq 1)&=1-P(X=0)-P(X=1)=1- 0.718924 \\ P(X\geq 1)&= 0.0438314 \end{align*} \begin{align*} P(X\geq 2)&=1-P(X=0)=1- 0.716531 \\ P(X\geq 2)&= 0.0446249 \end{align*} \begin{align*} P(X\geq 1)&=1-P(X=0)-P(X=1)=1- 0.718924 \\ P(X\geq 1)&= 0.0438314 \end{align*} \begin{align*} P(X\geq 2)&=1-P(X=0)=1- 0.716531 \\ P(X\geq 2)&= 0.283469 \end{align*} #+end_solution That is exported to \begin{solution} The result is as follows \begin{align*} P(X\geq 1)&=1-P(X=0)-P(X=1)=1- 0.718924 \\ P(X\geq 1)&= 0.0438314 \end{align*} \begin{align*} P(X\geq 2)&=1-P(X=0)=1- 0.716531 \\ P(X\geq 2)&= 0.0446249 \end{align*} \begin{align*} P(X\geq 1)&=1-P(X=0)-P(X=1)=1- 0.718924 \\ P(X\geq 1)&= 0.0438314 \end{align*} \begin{align*} P(X\geq 2)&=1-P(X=0)=1- 0.716531 \\ P(X\geq 2)&= 0.283469 \end{align*} \end{solution} \end{document} But I would like to have \begin{solution}[5cm] How can I pass that parameter when exporting? Thanks Regards Uwe Brauer