emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* how to pass parameters to latex environment when exporting
@ 2019-06-01 17:31 Uwe Brauer
  2019-06-01 17:36 ` Uwe Brauer
  0 siblings, 1 reply; 3+ messages in thread
From: Uwe Brauer @ 2019-06-01 17:31 UTC (permalink / raw)
  To: emacs-orgmode


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 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-06-01 17:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-01 17:31 how to pass parameters to latex environment when exporting Uwe Brauer
2019-06-01 17:36 ` Uwe Brauer
2019-06-01 17:44   ` [SOLVED] (was: how to pass parameters to latex environment when exporting) Uwe Brauer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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