emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: Re: close a template?
Date: Thu, 14 Jun 2018 11:48:43 +0200	[thread overview]
Message-ID: <87wov1r950.fsf@mat.ucm.es> (raw)
In-Reply-To: 87po0t671m.fsf@gmail.com

[-- Attachment #1: Type: text/plain, Size: 1768 bytes --]

>>> "Eric" == Eric S Fraga <esflists@gmail.com> writes:

   > On Thursday, 14 Jun 2018 at 10:10, Uwe Brauer wrote:
   >> Hi
   >> 
   >> I asked that more than a year ago, but maybe meanwhile there are some
   >> news in master which I did not noticed.
   >> 
   >> Consider please the following template
   >> 
   >> #+begin_src matlab  :results output latex :exports results  :eval never-export 
   >> clear all
   >> f1=5;
   >> f2=4;
   >> f3=6;
   >> h=(1-(-1))/2;
   >> s=misimp(5,4,6,h);
   >> disp('\begin{equation*}')
   >> fprintf('I  = %g \\\\\n', s)
   >> disp('\end{eqaution*}')
   >> #+end_src
   >> 
   >> Suppose I accidentally delete the last line, so the template would be
   >> invalid. Is there, meanwhile, any command which would guess the correct
   >> template and insert the missing line?

   > Unlikely to be a solution available given that you are wanting an
   > autocompletion that understands LaTeX within MATLAB...  I don't know of
   > any tool that could help unfortunately.

Aeh, no I think this is a misunderstanding!

Suppose I have 
#+begin_src matlab  :results output latex :exports results  :eval never-export 
clear all
s=misimp(5,4,6,h);


All I want to get is 
#+begin_src matlab  :results output latex :exports results  :eval never-export 
clear all
s=misimp(5,4,6,h);
#+end_src


And if it were 

#+BEGIN_EXPORT latex
\begin{align*}
Z2&= \frac{55-50}{\sqrt{25}}   = 1 \\
P(1\leq Z)&=N(0,1;55)  = 0.158655 
\end{align*}

The function should complete 

#+BEGIN_EXPORT latex
\begin{align*}
Z2&= \frac{55-50}{\sqrt{25}}   = 1 \\
P(1\leq Z)&=N(0,1;55)  = 0.158655 
\end{align*}
#+END_EXPORT



   > (and your last line is misspelled, by the way ;-))

Yes I know!

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5025 bytes --]

  reply	other threads:[~2018-06-14  9:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-14  8:10 close a template? Uwe Brauer
2018-06-14  9:39 ` Eric S Fraga
2018-06-14  9:48   ` Uwe Brauer [this message]
2018-06-14 10:30     ` Eric S Fraga
2018-06-14 23:05       ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wov1r950.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).