* 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
* Re: how to pass parameters to latex environment when exporting
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
0 siblings, 1 reply; 3+ messages in thread
From: Uwe Brauer @ 2019-06-01 17:36 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 434 bytes --]
>>> "UB" == Uwe Brauer <oub@mat.ucm.es> writes:
[Snip]...
> But I would like to have
> \begin{solution}[5cm]
> How can I pass that parameter when exporting? Thanks
According to
https://emacs.stackexchange.com/questions/34751/org-mode-latex-environment-in-drawer
#+ATTR_LATEX: options: [Here]{There}{That}
#+begin_fancyquote
Something witty!
#+end_fancyquote
Should work, it does not work for me
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5025 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [SOLVED] (was: how to pass parameters to latex environment when exporting)
2019-06-01 17:36 ` Uwe Brauer
@ 2019-06-01 17:44 ` Uwe Brauer
0 siblings, 0 replies; 3+ messages in thread
From: Uwe Brauer @ 2019-06-01 17:44 UTC (permalink / raw)
To: emacs-orgmode
>>> "UB" == Uwe Brauer <oub@mat.ucm.es> writes:
>>> "UB" == Uwe Brauer <oub@mat.ucm.es> writes:
> [Snip]...
>> But I would like to have
>> \begin{solution}[5cm]
>> How can I pass that parameter when exporting? Thanks
> According to
> https://emacs.stackexchange.com/questions/34751/org-mode-latex-environment-in-drawer
> #+ATTR_LATEX: options: [Here]{There}{That}
> #+begin_fancyquote
> Something witty!
> #+end_fancyquote
> Should work, it does not work for me
The following works
#+ATTR_LATEX: :options [2in]
^ 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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.