Re: [O] Fwd: including external file in src block execution; ATTR_HTML on src blocks

2016-12-13 Thread Charles C. Berry

On Tue, 13 Dec 2016, Matt Price wrote:


(sent to Charles direcly by mistake. Charles, this resend gave me the
chance to modify my response)
On Mon, Dec 12, 2016 at 10:52 PM, Charles C. Berry  wrote:


[snipping throughout]



My questions are:

1. can I pass this html attribute to the  block somehow?




: (plist-get (cadr src-block) :attr_html)

in `org-html-src-block' ?






:-)  I think what I meant was, looks like (org-export-read-attribute
:attr_html src-block) RETURNS a plist.  But that doesn't seem to be quite
true, if I'm understanding properly what a plist is.



It looks to me like `org-export-read-attribute' reliably returns a
plist when used with three args.


Instead it returns a list of this form:
(:code_attribs data-external-libs="https://cdnjs.cloudflare.com/ajax/
libs/jquery/3.1.1/jquery.js" data-other="other" :class some class list)


That isn't a plist. I don't believe that `org-export-read-attribute'
gave you that. Maybe you dropped some quotes? Do you have an ECM that
shows that behavior?



Access to the :properties only seems reliable through
(org-export-read-attribute :attr_html src_plock :propname), which returns
what should be an odd list of symbols (?) as a string. Again, it seems
somewhat mysterious to me.


You lost me here. I don't know what `src_plock' contains, so I can't
really say whether what that returns makes sense or not.

Chuck



Re: [O] Bug: Org Emphasis Issues (Trunk)

2016-12-13 Thread Matt Lundin
Ian Dunn  writes:

> I encountered these issues this morning when I updated Org from
> trunk (and reloaded it with C-c C-x !). I believe it's following
> commit "Split `org-emph-re' and `org-verbatim-re'". I've got 2
> issues:

> 1. Nothing longer than one character has emphasis. I find changing
> the 4th element of org-emphasis-regexp-components ("body-regexp")
> to ".*?" fixes this.

I cannot replicate this particular issue. Could you provide a minimal
recipe for replicating?

> 2. Headings of level >= 3 are fontified as if they were
>emphasized. I'm guessing org-do-emphasis-face is considering "***" as
>an acceptable emphasis string.

I can confirm the problems with headlines, though I can only replicate
it with level 2 headings. (Are you perhaps using org-indent-mode?)

With emacs -Q and the latest org from git, if I open the following file,
"Subheading 1" appears in bold. If I delete "Subheading 2," the emphasis
disappears.

* First headline
** Subheading 1
** Subheading 2

Matt





[O] org mobile on Ipnone 5s

2016-12-13 Thread Matthew Pritchard
I have a dropbox account established And the org mode app installed. When I try 
to sync I get the message.Error syncing changes
an error was encountered while attempting to fetch mobile.org. from the server.
Does anyone have any insight?


[O] Bug: Org Emphasis Issues (Trunk)

2016-12-13 Thread Ian Dunn


I encountered these issues this morning when I updated Org from trunk (and 
reloaded it with C-c C-x !).  I believe it's following commit "Split 
`org-emph-re' and `org-verbatim-re'".  I've got 2 issues:

1. Nothing longer than one character has emphasis.  I find changing the 4th 
element of org-emphasis-regexp-components ("body-regexp") to ".*?" fixes this.

2. Headings of level >= 3 are fontified as if they were emphasized.  I'm 
guessing org-do-emphasis-face is considering "***" as an acceptable emphasis 
string.

If it helps, this is my setting for org-emphasis-regexp-components:

(defconst org-emphasis-regexp-components
  '(" \t('\"{<“‘–"
"- \t.,:!?;'\")}\\[>”’–…"
" \t\r\n"
".*?"
0))

--
Ian Dunn



Re: [O] staging area mobile org

2016-12-13 Thread Greg Troxel

Matthew Pritchard  writes:

> The mobile org manual says to create a directory (set
> org-mobile-directory “~/Dropbox/MobileOrg”)

That is not creating it so much as configuring org to use it.

> Can I create this directory with a simple command instead of a lisp
> command?

I am not sure if the directory has to exist or not.  Probably that's
because getting an error that it does not and running mkdir is not hard
and easily forgotten.


signature.asc
Description: PGP signature


Re: [O] user labels in beamer export

2016-12-13 Thread Nicolas Goaziou
Hello,

Eric S Fraga  writes:

> Now for another related question.  Should the following work?
>
> #+begin_src org
>   ,#+TITLE: LaTeX export minimal test
>   ,* <> Intro
>   This is the first slide.
>   ,* Summary
>   As we saw on slide [[introduction]], ...
> #+end_src

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



[O] Bug: Feature Request: Specifying a 'master file' in included files [9.0.1 (9.0.1-elpa @ /home/schnecki/.emacs.d/elpa/org-20161118/)]

2016-12-13 Thread Manuel Schneckenreither

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.


Hi,

I have a feature request. It would be awesome if there was a master file setup
similar to auctex such that whenever an export is started while residing in an
included file the export is automatically called from the master buffer (main 
file
with headers and all includes). This would generate the desired exported 
document
(html,LaTeX,...). Currently, something similar may be done using the publishing,
but this only works for HTML exports. I'm thinking of something like following 
at
the top of the included file:

# Set master in file introduction.org
#+MASTER_FILE: main.org  # possibly even with relative path, like ../main.org

With this it would be possible to safely switch to the main.org buffer (or even
open the file it if not opened) and then call the export from there. What do you
think? 


Manuel

P.S.: I'm not really familiar with the org code, nor with elisp. So I can't
estimate the workload for this feature.

Emacs  : GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.20.9)
 of 2016-09-18
Package: Org mode version 9.0.1 (9.0.1-elpa @ 
/home/schnecki/.emacs.d/elpa/org-20161118/)



[O] Bug: Feature Request: Specifying a 'master file' in included files [9.0.1 (9.0.1-elpa @ /home/schnecki/.emacs.d/elpa/org-20161118/)]

2016-12-13 Thread Manuel Schneckenreither

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.


Hi,

I have a feature request. It would be awesome if there was a master file setup
similar to auctex such that whenever an export is started while residing in an
included file the export is automatically called from the master buffer (main 
file
with headers and all includes). This would generate the desired exported 
document
(html,LaTeX,...). Currently, something similar may be done using the publishing,
but this only works for HTML exports. I'm thinking of something like following 
at
the top of the included file:

# Set master in file introduction.org
#+MASTER_FILE: main.org  # possibly even with relative path, like ../main.org

With this it would be possible to safely switch to the main.org buffer (or even
open the file it if not opened) and then call the export from there. What do you
think? 


Manuel

P.S.: I'm not really familiar with the org code, nor with elisp. So I can't
estimate the workload for this feature.

Emacs  : GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.20.9)
 of 2016-09-18
Package: Org mode version 9.0.1 (9.0.1-elpa @ 
/home/schnecki/.emacs.d/elpa/org-20161118/)



[O] A summary with weekly processed actions using org-todo

2016-12-13 Thread Yann K.
Hi all,

My life is relying on orgmode, from a personal standpoint (orgmode is
faster at reminding me pending actions to fix my house than my wife)
and to organize my actions at work pushing my mutt mails in org-mode
as tasks... all this works great. Special thanks to the team for this
superb work.

I was wondering if there was a way to help me in sorting tasks. I have
many actions/tasks during the week to process, some are done, some are
waiting for feedbacks... on Mondays, I would like to generate a
summary of the few actions that I changed the status during the last
n-days (week, month...). I checked the Worg and other places but was
not able to find the trick.

I'm pretty sure somebody had this need before but am not able to find
the answer. 

Thanks for your time !

Yann





Re: [O] org-ref file path to pdf

2016-12-13 Thread Georg W. Otto
John Kitchin  writes:

> I just pushed a feature that might get you back what you want.
>
> You can now put [[file:%F][%f]] in the org-ref-note-title-format
> variable, and it will put (concat org-ref-pdf-directory key ".pdf") in
> for %F, and (concat key ".pdf") in for %f. There is unfortunately, no
> check if the pdf actually exists though.
>
> A second option is to write a function to add to a new hook variable:
> org-ref-create-notes-hook
>
> There is an example function in that that adds a cite link (which can
> open a pdf), but if you wanted to you could write a function that would
> add a file link to a pdf if it could find one.

Thanks a lot, this is really helpful. As you suggested I added a
function to org-ref-create-notes-hook in my init file:

(defun org-ref-add-note-pdf()

  (setq pdf (concat org-ref-pdf-directory key ".pdf"))

  (if (file-exists-p pdf)
  
  (insert (format "[[file:%s][pdf]]\n\n" pdf))

;; no pdf found. Prompt for a path, but allow no pdf to
;; be inserted.
(let ((pdf (read-file-name "PDF: " nil "no pdf" nil "no pdf")))
  (when (not (string= pdf "no pdf"))
(insert (format
 " [[file:%s][pdf]]\n\n"
 pdf
)
  )

(add-hook 'org-ref-create-notes-hook 'org-ref-add-note-pdf)


This formats the pdf link as intended.

My question now concerns the citation link that is defined in the lambda
function in org-ref-create-notes-hook. I might want to override this
lambda function with my own hook function in order to change the format
of the citation link. I haven't found a way to override a lambda
function, though. Can you give me a hint how this is done?

Cheers,

Georg





[O] staging area mobile org

2016-12-13 Thread Matthew Pritchard
The mobile org manual says to create a directory (set org-mobile-directory 
“~/Dropbox/MobileOrg”) 
Can I create this directory with a simple command instead of a lisp command? 





Re: [O] allow live execution of code snippets in html export

2016-12-13 Thread Rasmus
Hi Matt,

> In other threads I've been describing a method to allow live code snippets
> to be embedded in reveal.js export, using klipse (
> https://github.com/viebel/klipse).  I have to say it feels somewhat
> transformative to me, and I wonder if it would be worth integrating into
> ox-html.  I'd be happy to hack together a patch but I wanted to ask if
> anyone else likes the idea.  The great thing about putting it into ox-html
> instead of building a derived mode is that the other derived mode would
> potentially inherit the functionality directly.

I like it.  The clearest example seems to be this one:

  https://jsfiddle.net/viebel/50oLnykk/

Some observations follow:

The syntax for Klipse source blocks is nice and simple:


 function foo(name) {return "Hello " + name;}
 foo("Klipse");


It might be worth investigating whether you can just run Klipse on 
blocks as that would potentially make it backward compatible.
Potentially, an extension to Klipse that recognizes Org src blocks (in
html) might be nice.

The Klipse license is GPL3.

The README recommends to get the files from googleapis.com.  I’m not sure
we would want to generate html files that get stuff from Google.  Then
again, maybe googleapis.com is perfectly OK...

It could easily become a mess in complex cases, e.g. if your Python code
blocks use Pandas, which does not seem to be supported by Skulpt.

Nonetheless, Klipse looks intriguing.  I think it could be great if you
look further into it.

Thanks,
Rasmus

-- 
Dung makes an excellent fertilizer




Re: [O] org-capture-template :clock-in property not working

2016-12-13 Thread Mark Wood
I believe I found my issue.

It appears I had a hook upon clockout that was causing issues.  So sorry to
bother everyone.

On the plus side, I learned some lisp debugging skills.

Thanks again.

On Tue, Dec 13, 2016 at 10:13 AM Mark Wood  wrote:

> I did a little more digging.  I too can get it to work correctly, so long
> as there is no Default Clock task identified.
>
> However, if I create a default clock task, it appears that the :clock-in
> property is ignored.
>
> I'll try to dig into it a little more, but I can reproduce it every time
> when there is a default clock.
>
> Thanks again for looking at it.
>
> On Tue, Dec 13, 2016 at 8:09 AM Nicolas Goaziou 
> wrote:
>
> Hello,
>
> Mark Wood  writes:
>
> > After recently upgrading to 20161118, I notice that the clock-in property
> > in my org-capture-templates is no longer functioning.  It appears to
> > successfully clock me out of my current task, but that's it.
> >
> > My capture template is:
> >
> > (setq org-capture-templates
> >   '(("t" "Todo" entry (file "/org/refile.org")
> > "* TODO %?\n%U\n" :clock-in t :clock-resume t)))
>
> FWIW I cannot reproduce it, i.e., clock is properly started.
>
> Regards,
>
> --
> Nicolas Goaziou
>
>


Re: [O] allow live execution of code snippets in html export

2016-12-13 Thread Eric S Fraga
On Tuesday, 13 Dec 2016 at 14:55, Matt Price wrote:
> In other threads I've been describing a method to allow live code
> snippets to be embedded in reveal.js export, using klipse (https://
> github.com/viebel/klipse).  I have to say it feels somewhat
> transformative to me, and I wonder if it would be worth integrating
> into ox-html.  I'd be happy to hack together a patch but I wanted to
> ask if anyone else likes the idea.  The great thing about putting it
> into ox-html instead of building a derived mode is that the other
> derived mode would potentially inherit the functionality directly.
>
> Would anyone else like to see this happen?

I could see using this for a few of my lectures so, yes, please!

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_8.3.6-1268-g877f35


signature.asc
Description: PGP signature


Re: [O] org-capture-template :clock-in property not working

2016-12-13 Thread Mark Wood
I did a little more digging.  I too can get it to work correctly, so long
as there is no Default Clock task identified.

However, if I create a default clock task, it appears that the :clock-in
property is ignored.

I'll try to dig into it a little more, but I can reproduce it every time
when there is a default clock.

Thanks again for looking at it.

On Tue, Dec 13, 2016 at 8:09 AM Nicolas Goaziou 
wrote:

> Hello,
>
> Mark Wood  writes:
>
> > After recently upgrading to 20161118, I notice that the clock-in property
> > in my org-capture-templates is no longer functioning.  It appears to
> > successfully clock me out of my current task, but that's it.
> >
> > My capture template is:
> >
> > (setq org-capture-templates
> >   '(("t" "Todo" entry (file "/org/refile.org")
> > "* TODO %?\n%U\n" :clock-in t :clock-resume t)))
>
> FWIW I cannot reproduce it, i.e., clock is properly started.
>
> Regards,
>
> --
> Nicolas Goaziou
>


[O] allow live execution of code snippets in html export

2016-12-13 Thread Matt Price
In other threads I've been describing a method to allow live code snippets
to be embedded in reveal.js export, using klipse (
https://github.com/viebel/klipse).  I have to say it feels somewhat
transformative to me, and I wonder if it would be worth integrating into
ox-html.  I'd be happy to hack together a patch but I wanted to ask if
anyone else likes the idea.  The great thing about putting it into ox-html
instead of building a derived mode is that the other derived mode would
potentially inherit the functionality directly.

Would anyone else like to see this happen?


[O] Fwd: including external file in src block execution; ATTR_HTML on src blocks

2016-12-13 Thread Matt Price
(sent to Charles direcly by mistake. Charles, this resend gave me the
chance to modify my response)
On Mon, Dec 12, 2016 at 10:52 PM, Charles C. Berry  wrote:

> On Mon, 12 Dec 2016, Matt Price wrote:
>
> On Mon, Dec 12, 2016 at 12:16 PM, Charles C. Berry 
>> wrote:
>>
>> On Mon, 12 Dec 2016, Matt Price wrote:
>>>
>>>
>>> [snip]
>>>
>>>
>>> My questions are:
 1. can I pass this html attribute to the  block somehow?


>>> Yes.
>>>
>>> ATTR_HTML doesn't seem to work.  Is this a bug? If so, should I try to
>>> fix
>>>
 it?


>>> No and no.
>>>
>>> Did you try
>>>
>>> : (plist-get (cadr src-block) :attr_html)
>>>
>>> in `org-html-src-block' ?
>>>
>>>
>>> ah, ok.  Now I will reveal some of the depths of my ignorance.  Looks
>> like
>> :attr_html is a plist (right?).
>>
>
> No, it is a property name. (cadr src-block) is the plist.
>

:-)  I think what I meant was, looks like (org-export-read-attribute
:attr_html src-block) RETURNS a plist.  But that doesn't seem to be quite
true, if I'm understanding properly what a plist is.

Instead it returns a list of this form:
(:code_attribs data-external-libs="https://cdnjs.cloudflare.com/ajax/
libs/jquery/3.1.1/jquery.js" data-other="other" :class some class list)

 Access to the :properties only seems reliable through
(org-export-read-attribute :attr_html src_plock :propname), which returns
what should be an odd list of symbols (?) as a string. Again, it seems
somewhat mysterious to me.

UPDATE: despite the tentative solution seen below, I guess maybe the
#+ATTR_XXX attributes are not intended for iteration as I describe, but
instead each such attribute should have a well-specified function that the
exporter knows about.  If I'm adding attributes -- and it turns out that
ox-reveal can interpret a :code_attribs attribute that I hadn't known about
-- then I feel like I should structure them in an expected way.  I haven't
found documentation about the best practice here and would definitely
appreciate further pointers.


> See (info "(elisp) Property Lists")
>
>
> (a) what is the appropriate way to identify an attribute here.  should I
>> write, e.g.:
>>
>> #+ATTR_HTML: :data-external-libs "http://underscorejs.org/under
>> score-min.js"
>> :class "list of classes"
>>
>
> Any could be made to work, but I'd use (a). Then
>
> : (org-babel-parse-header-arguments
> :  (car (plist-get (cadr src-block) :attr_html)))
>
> will give you
>
> : ((:data-external-libs . "http://underscorejs.org/underscore-min.js;) :
>  (:class . "list of classes"))
>

ah, ok, thank you.   Someday I hope I really understand list objects and
how to transform them.  I think part of the problem is that, unlike in some
other languages, programming effectively requires a proper understanding of
*what the objects are that you're manipulating*, and I'm just a bit too
stupid to learn this effectively on my own.

And then, if I want to transform this into:
>


>
>> data-external-libs="http://underscorejs.org/underscore-min.js;
>> class="list
>> of classes"
>>
>> can I just do something like:
>> (let ((attributes (org-export-get-attribute :attr_html src-block))
>>  (cl-loop for (key value) in attributes
>>(collect (concat key "=" "\"" value "\" " 
>>
>> or do I need to transform the key into a string first?
>>
>
> Well, I'd just try it and see.
>
:-) Seems like I should be able to manage this now!


> I'm sorry to be writing such basic lisp questions; obviously I need to read
>> a really good lisp introduction, but I haven't found one yet.
>>
>>
> This is what I use:
>
> * Elisp: (elisp).   The Emacs Lisp Reference Manual.
> * Emacs Lisp Intro: (eintr).A simple introduction to Emacs Lisp
> programming.
>
> and ample Googling, usually leading to StackOverflow, to get hints on
> stuff I am fuzzy on. And I read docstrings over and over and ...
>

This is the method i'm using, but for me it's very slow.



>
> Best,
>
> Chuck
>

Thank you Chuck!


Re: [O] user labels in beamer export

2016-12-13 Thread Eric S Fraga
On Monday, 12 Dec 2016 at 20:04, Nicolas Goaziou wrote:

[...]

>> I have org-latex-prefer-user-labels set to t.
>>
>> Am I doing something wrong or is this a bug in org?
>
> The latter. I fixed it on maint. Thank you.

Thank you!  This now works (using CUSTOM_ID).

Now for another related question.  Should the following work?

#+begin_src org
  ,#+TITLE: LaTeX export minimal test
  ,* <> Intro
  This is the first slide.
  ,* Summary
  As we saw on slide [[introduction]], ...
#+end_src

I get this LaTeX code in this case, again with
org-latex-prefer-user-labels set to t.

#+begin_src latex
  \begin{frame}[label={sec:org3f12c9c}]{\label{org9590917} Intro}
  This is the first slide.
  \end{frame}
  \begin{frame}[label={sec:orgfd595e1}]{Summary}
  As we saw on slide \ref{introduction}, \ldots{}
  \end{frame}
#+end_src

Should probably have asked both questions at the same time but did not
want to confuse the issue!

Thanks again,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.1-134-g727478


signature.asc
Description: PGP signature


Re: [O] org-capture-template :clock-in property not working

2016-12-13 Thread Nicolas Goaziou
Hello,

Mark Wood  writes:

> After recently upgrading to 20161118, I notice that the clock-in property
> in my org-capture-templates is no longer functioning.  It appears to
> successfully clock me out of my current task, but that's it.
>
> My capture template is:
>
> (setq org-capture-templates
>   '(("t" "Todo" entry (file "/org/refile.org")
> "* TODO %?\n%U\n" :clock-in t :clock-resume t)))

FWIW I cannot reproduce it, i.e., clock is properly started.

Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH] ox-confluence.el: Support quote blocks

2016-12-13 Thread Nicolas Goaziou
Hello,

Lungang Fang  writes:

> * contrib/lisp/ox-confluence.el (org-confluence-quote-block): new function
>
> Convert quote blocks as shown below:
>
> #+BEGIN_QUOTE   {quote}
> This is a quote   ==>   This is a quote
> #+END_QUOTE {quote}

Applied. Thank you.

Regards, 

-- 
Nicolas Goaziou



Re: [O] [PATCH] ox-confluence.el: Fix error in `org-confluence-fixed-width`

2016-12-13 Thread Nicolas Goaziou
Hello,

Lungang Fang  writes:

> * contrib/lisp/ox-confluence.el (org-confluence-fixed-width): retrieve
>   value of org element "fixed-width" instead of using "content", which
>   is empty.

Applied. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-13 Thread Nicolas Goaziou
Hello,

Scott Otterson  writes:

> 1.) *Multiple underscores* (the subject of this thread):  Pandoc doesn't
> crash and it exports the same thing for either html or latex: everything
> after the first underscore is subscripted and all underscores are deleted.
> I don't love that behavior but it's consistent.

I think the current Org behaviour is satisfying enough.

> 2.) *Plain lists with more than four sublevels*: For html export, pandoc
> and orgmode do what you'd expect: produce a deeply nested html list.  For
> (Windows) latex export, pandoc and orgmode also do the same thing: crash.
> Ideally, pandoc would have generated valid Latex for deep list nesting, but
> at least it's not completely ornery; it snips out the part of the original
> Latex error message that points to the cause.

I'm not versed enough in LaTeX to work around this properly. Depending
on user-defined document header, deep lists may or may not be exported
correctly.

> 3.) *Web link with a '#' in the URL*: Pandoc never crashes and it exports
> nearly the same thing for html or latex pdf:  In either case, clicking on
> the link sends you to the right web page, and the only difference is that,
> in the output pdf, the link text isn't highlighted; instead there's a
> tooltip popup.

This is now fixed in maint. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH] Add support for ordered list to ox-confluence.el

2016-12-13 Thread Nicolas Goaziou
Hello,

Charles Durst  writes:

> Oops, I just realized an important difference.  My version also
> supported descriptive lists.  The version with only Nicholas' changes
> will lose the item name:
>
> * item-name :: description
>
> Will just become
>
> - description
>
> Here is a fix based on Nicholas' version

Applied. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] exporting # to latex?

2016-12-13 Thread Sharon Kimble
"Charles C. Berry"  writes:

> On Mon, 12 Dec 2016, Sharon Kimble wrote:
>
>>
>> I'm trying to write an org-mode file that is being exported to latex,
>> and then built into a pdf file, of the MPD online manual.
>>
>> I'm now trying to show the 'mpf.conf' file which is mostly with
>> commented out lines starting with a hash (#). But that breaks the
>> org-mode export, so how can I have it displayed and exported to latex
>> please?
>>
> [deleted]
>
>>
>> So what I'm trying to get is a latex file which includes the .conf file
>> and all of its # in the right place and show as # on their own. But how
>> can I do it please?
>>
>
>
> One of these?
>

Thanks for this Charles.

> --8<---cut here---start->8---
>
> #+BEGIN_EXAMPLE
>## abc
>## def
> #+END_EXAMPLE
>
> #+BEGIN_EXPORT latex
> ## abc
> ## def
> #+END_EXPORT
>
> --8<---cut here---end--->8---
>

And #+BEGIN_EXAMPLE & #+END_EXAMPLE works in this context, thanks for this.

Thanks
Sharon.

>
> Upon export to latex they yield:
>
> --8<---cut here---start->8---
>
> \begin{verbatim}
> ## abc
> ## def
> \end{verbatim}
>
> ## abc
> ## def
>
> --8<---cut here---end--->8---
>
>
> HTH,
>
> Chuck
>

-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.4, fluxbox 1.3.7, emacs 25.5.1.1


signature.asc
Description: PGP signature