emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Easy Templates
@ 2017-07-08 20:02 William McCoy
  2017-07-08 21:14 ` Marco Wahl
  0 siblings, 1 reply; 3+ messages in thread
From: William McCoy @ 2017-07-08 20:02 UTC (permalink / raw)
  To: Org Mode

I am fairly new to orgmode and I have just begun trying to use source 
code blocks.  I have a simple question that is not made clear in the 
Orgmode Manual.

The manual states that to insert an Easy Template for a source code 
block, use:
 

`<<>' `<s>' `<TAB>' 


and then
 

`<' `l' `<TAB>' 


to label it for LaTeX.  But I cannot find anywhere in the manual where 
the `<<>' is explained.  The section on typographical conventions says 
nothing about this.

Can someone tell exactly what to type to insert a template for, say, 
LaTeX or emacs-lisp?

Thanks, Bill

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

* Re: Easy Templates
  2017-07-08 20:02 Easy Templates William McCoy
@ 2017-07-08 21:14 ` Marco Wahl
  2017-07-08 21:32   ` William McCoy
  0 siblings, 1 reply; 3+ messages in thread
From: Marco Wahl @ 2017-07-08 21:14 UTC (permalink / raw)
  To: emacs-orgmode

Hi!

> I am fairly new to orgmode and I have just begun trying to use source
> code blocks.  I have a simple question that is not made clear in the
> Orgmode Manual.
>
> The manual states that to insert an Easy Template for a source code
> block, use:
>
>
> `<<>' `<s>' `<TAB>' 
>
>
> and then
>
>
> `<' `l' `<TAB>' 
>
>
> to label it for LaTeX.  But I cannot find anywhere in the manual where
> the `<<>' is explained.  The section on typographical conventions says
> nothing about this.

IMHO you found an inconsistency in the documentation.  `<<>' looks like
a weird doubled quoting to me.

> Can someone tell exactly what to type to insert a template for, say,
> LaTeX or emacs-lisp?

To get a source block template for emacs-lisp easily you could type the
three keys `<' `s' `<TAB>' and then type literally "emacs-lisp".


HTH,
    Marco
    

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

* Re: Easy Templates
  2017-07-08 21:14 ` Marco Wahl
@ 2017-07-08 21:32   ` William McCoy
  0 siblings, 0 replies; 3+ messages in thread
From: William McCoy @ 2017-07-08 21:32 UTC (permalink / raw)
  To: emacs-orgmode

Marco,

Thanks very much!  Now it is clear to me.  I didn't see or understand 
that the `<<>' was a literal `<'.  So that actually makes sense to me now.

Bill

On 07/08/2017 05:14 PM, Marco Wahl wrote:
> Hi!
> 
>> I am fairly new to orgmode and I have just begun trying to use source
>> code blocks.  I have a simple question that is not made clear in the
>> Orgmode Manual.
>>
>> The manual states that to insert an Easy Template for a source code
>> block, use:
>>
>>
>> `<<>' `<s>' `<TAB>'
>>
>>
>> and then
>>
>>
>> `<' `l' `<TAB>'
>>
>>
>> to label it for LaTeX.  But I cannot find anywhere in the manual where
>> the `<<>' is explained.  The section on typographical conventions says
>> nothing about this.
> 
> IMHO you found an inconsistency in the documentation.  `<<>' looks like
> a weird doubled quoting to me.
> 
>> Can someone tell exactly what to type to insert a template for, say,
>> LaTeX or emacs-lisp?
> 
> To get a source block template for emacs-lisp easily you could type the
> three keys `<' `s' `<TAB>' and then type literally "emacs-lisp".
> 
> 
> HTH,
>      Marco
>      
> 
> 

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

end of thread, other threads:[~2017-07-08 21:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-08 20:02 Easy Templates William McCoy
2017-07-08 21:14 ` Marco Wahl
2017-07-08 21:32   ` William McCoy

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