[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Re: [Babel] Macro for begin_src?
From: |
Eric S Fraga |
Subject: |
Re: [Orgmode] Re: [Babel] Macro for begin_src? |
Date: |
Sun, 18 Apr 2010 11:41:15 +0100 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/23.1 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
On Sat, 17 Apr 2010 15:55:51 -1000, "Thomas S. Dye" <address@hidden> wrote:
> On Apr 17, 2010, at 6:52 AM, Matt Lundin wrote:
> > 1. The first and simplest option is built into org-mode. Simply type:
> >
> > <s [TAB] or [M-TAB]
Thanks Matt for this. I'd forgotten about the built-in definitions.
These do make many of my yasnippets superfluous.
> Neat. What would you use yasnippets for, if anything?
>
> All the best,
> Tom
Good question! One case I would still use yasnippets for is more
complex constructions. For instance, I use tikz a lot for creating
drawings for teaching. For a given course, many of these drawings are
similar. One snippet I have is:
--8<---------------cut here---------------start------------->8---
#name : tikz
# --
#+begin_latex
\tikzstyle{unit}=[rectangle, draw=blue!80!black, fill=black!5!white]
\tikzstyle{stream}=[rectangle, draw=white, fill=yellow!50!white]
\begin{tikzpicture}[node distance=2cm]
\node[stream] (feed) {Feed};
\node[unit] (reactor) [right of=feed] {Reactor} edge [<-] (feed);
\node[unit] (separator) [right of=reactor] {Separation} edge [<-] (reactor);
$0
\end{tikzpicture}
#+end_latex
--8<---------------cut here---------------end--------------->8---
Before Carsten implemented the beamer option in org-mode, I also had a
snippet for setting up columns with blocks in org-mode for my custom
beamer setup I used to have.
- Re: [Orgmode] Re: [Babel] Macro for begin_src?, (continued)
- Re: [Orgmode] Re: [Babel] Macro for begin_src?, Eric S Fraga, 2010/04/18
- [Orgmode] Re: [Babel] Macro for begin_src?, Shelagh Manton, 2010/04/18
- [Orgmode] Re: [Babel] Macro for begin_src?, Bernt Hansen, 2010/04/18
- Re: [Orgmode] Re: [Babel] Macro for begin_src?, Eric S Fraga, 2010/04/19
- Re: [Orgmode] Re: [Babel] Macro for begin_src?, Sebastian Rose, 2010/04/19
- [Orgmode] Re: [Babel] Macro for begin_src?, Sébastien Vauban, 2010/04/20
- Re: [OT] [Orgmode] Re: [Babel] Macro for begin_src?, Eric S Fraga, 2010/04/20
- Re: [Orgmode] Re: [Babel] Macro for begin_src?, Eric Schulte, 2010/04/20
- [Orgmode] Re: [Babel] Macro for begin_src?, Matt Lundin, 2010/04/17
- Re: [Orgmode] Re: [Babel] Macro for begin_src?, Thomas S. Dye, 2010/04/17
- Re: [Orgmode] Re: [Babel] Macro for begin_src?,
Eric S Fraga <=
- Re: [Orgmode] Re: [Babel] Macro for begin_src?, Dan Davison, 2010/04/18
- [Orgmode] Re: [Babel] Macro for begin_src?, Štěpán Němec, 2010/04/19
- [Orgmode] Re: [Babel] Macro for begin_src?, Eric S Fraga, 2010/04/18
Re: [Orgmode] Re: [Babel] Macro for begin_src?, Dan Davison, 2010/04/16
- Re: [Orgmode] Re: [Babel] Macro for begin_src?, Nathan Neff, 2010/04/16
- Re: [Orgmode] Re: [Babel] Macro for begin_src?, Dan Davison, 2010/04/16
- [Orgmode] Re: [Babel] Macro for begin_src?, Štěpán Němec, 2010/04/17
- [Orgmode] Re: [Babel] Macro for begin_src?, Nathan Neff, 2010/04/17
- Re: [Orgmode] Re: [Babel] Macro for begin_src?, Erik Iverson, 2010/04/17
- Re: [Orgmode] Re: [Babel] Macro for begin_src?, Nathan Neff, 2010/04/17