emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* :exclude sub folder in org-publish
@ 2014-06-20  3:39 regcl
  2014-06-20 15:15 ` Nick Dokos
  2014-06-25  8:49 ` Bastien
  0 siblings, 2 replies; 10+ messages in thread
From: regcl @ 2014-06-20  3:39 UTC (permalink / raw)
  To: emacs-orgmode

It looks like this question has been asked before, but not answered ... 

Is there a way to stop the decent of org-publish at a given directory?

Or, is there a syntax for including the path name of files I want to exclude?

Or, maybe there something obvious I am missing?

Thanks, regcl

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

* Re: :exclude sub folder in org-publish
  2014-06-20  3:39 :exclude sub folder in org-publish regcl
@ 2014-06-20 15:15 ` Nick Dokos
  2014-06-25  8:49 ` Bastien
  1 sibling, 0 replies; 10+ messages in thread
From: Nick Dokos @ 2014-06-20 15:15 UTC (permalink / raw)
  To: emacs-orgmode

regcl <regcl@channing.harvard.edu> writes:

> It looks like this question has been asked before, but not answered ... 
>
> Is there a way to stop the decent of org-publish at a given directory?
>
> Or, is there a syntax for including the path name of files I want to exclude?
>
> Or, maybe there something obvious I am missing?
>
> Thanks, regcl

Does

        (info "(org) Selecting files")

help?

Nick

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

* Re: :exclude sub folder in org-publish
  2014-06-20  3:39 :exclude sub folder in org-publish regcl
  2014-06-20 15:15 ` Nick Dokos
@ 2014-06-25  8:49 ` Bastien
  2014-07-17 16:14   ` turn off monospace in src result regcl
  2014-07-21 19:47   ` :exclude sub folder in org-publish regcl
  1 sibling, 2 replies; 10+ messages in thread
From: Bastien @ 2014-06-25  8:49 UTC (permalink / raw)
  To: regcl; +Cc: emacs-orgmode

regcl <regcl@channing.harvard.edu> writes:

> Or, maybe there something obvious I am missing?

Please tell us what you wanted to do, show us what you tried by
sharing parts of your configuration, and we'll be able to help.

-- 
 Bastien

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

* turn off monospace in src result
  2014-06-25  8:49 ` Bastien
@ 2014-07-17 16:14   ` regcl
  2014-07-17 21:28     ` Andreas Leha
  2014-07-21 19:47   ` :exclude sub folder in org-publish regcl
  1 sibling, 1 reply; 10+ messages in thread
From: regcl @ 2014-07-17 16:14 UTC (permalink / raw)
  To: emacs-orgmode


With this line in my .org file ...

This is src_R{foo<-"FOO"; paste(foo)}.

... when I publish to html or pdf, I get ...

This is FOO.

... which is wonderful, except that "FOO" is monospace.  

Can I turn off monospace for all results of inline source?

Thanks,
regcl

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

* Re: turn off monospace in src result
  2014-07-17 16:14   ` turn off monospace in src result regcl
@ 2014-07-17 21:28     ` Andreas Leha
  2014-07-17 21:38       ` Nick Dokos
  0 siblings, 1 reply; 10+ messages in thread
From: Andreas Leha @ 2014-07-17 21:28 UTC (permalink / raw)
  To: emacs-orgmode

Hi regcl,

regcl <regcl@channing.harvard.edu> writes:

> With this line in my .org file ...
>
> This is src_R{foo<-"FOO"; paste(foo)}.
>
> ... when I publish to html or pdf, I get ...
>
> This is FOO.
>
> ... which is wonderful, except that "FOO" is monospace.  
>
> Can I turn off monospace for all results of inline source?

I do not know, how to do that for all inline source blocks.  But you can
turn it off
1. per code block as in src_R[:results raw]{foo<-"FOO"; paste(foo)}
2. globally for all block as in '#+PROPERTY: results raw'
   (then you would override this setting per non-inline code block)

HTH,
Andreas

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

* Re: turn off monospace in src result
  2014-07-17 21:28     ` Andreas Leha
@ 2014-07-17 21:38       ` Nick Dokos
  2014-07-17 21:50         ` Andreas Leha
  0 siblings, 1 reply; 10+ messages in thread
From: Nick Dokos @ 2014-07-17 21:38 UTC (permalink / raw)
  To: emacs-orgmode

Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:

> Hi regcl,
>
> regcl <regcl@channing.harvard.edu> writes:
>
>> With this line in my .org file ...
>>
>> This is src_R{foo<-"FOO"; paste(foo)}.
>>
>> ... when I publish to html or pdf, I get ...
>>
>> This is FOO.
>>
>> ... which is wonderful, except that "FOO" is monospace.  
>>
>> Can I turn off monospace for all results of inline source?
>
> I do not know, how to do that for all inline source blocks.  But you can
> turn it off
> 1. per code block as in src_R[:results raw]{foo<-"FOO"; paste(foo)}

Looks like

--8<---------------cut here---------------start------------->8---
This is src_R[:results raw]{foo<-"FOO"; paste(foo)}.
--8<---------------cut here---------------end--------------->8---

produces a newline after the evaluated code block in the HTML file,
which is rendered as a space between the word FOO and the period.  Bug?

Nick

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

* Re: turn off monospace in src result
  2014-07-17 21:38       ` Nick Dokos
@ 2014-07-17 21:50         ` Andreas Leha
  0 siblings, 0 replies; 10+ messages in thread
From: Andreas Leha @ 2014-07-17 21:50 UTC (permalink / raw)
  To: emacs-orgmode

Hi Nick,

Nick Dokos <ndokos@gmail.com> writes:

> Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
>
>> Hi regcl,
>>
>> regcl <regcl@channing.harvard.edu> writes:
>>
>>> With this line in my .org file ...
>>>
>>> This is src_R{foo<-"FOO"; paste(foo)}.
>>>
>>> ... when I publish to html or pdf, I get ...
>>>
>>> This is FOO.
>>>
>>> ... which is wonderful, except that "FOO" is monospace.  
>>>
>>> Can I turn off monospace for all results of inline source?
>>
>> I do not know, how to do that for all inline source blocks.  But you can
>> turn it off
>> 1. per code block as in src_R[:results raw]{foo<-"FOO"; paste(foo)}
>
> Looks like
>
> This is src_R[:results raw]{foo<-"FOO"; paste(foo)}.
>
> produces a newline after the evaluated code block in the HTML file,
> which is rendered as a space between the word FOO and the period.  Bug?
>

I tend to agree.  There was some discussion on this last year [fn:1] that went
dead after a while.  I still think that modifying raw results (as in
adding newline) should be avoided -- at least in inline source blocks.

Regards,
Andreas



Footnotes:

[fn:1] http://article.gmane.org/gmane.emacs.orgmode/71385

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

* Re: :exclude sub folder in org-publish
  2014-06-25  8:49 ` Bastien
  2014-07-17 16:14   ` turn off monospace in src result regcl
@ 2014-07-21 19:47   ` regcl
  2014-07-28 15:49     ` Bastien
  1 sibling, 1 reply; 10+ messages in thread
From: regcl @ 2014-07-21 19:47 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

Bastien <bzg@gnu.org> writes:

> regcl <regcl@channing.harvard.edu> writes:
>
>> Or, maybe there something obvious I am missing?
>
> Please tell us what you wanted to do, show us what you tried by
> sharing parts of your configuration, and we'll be able to help.

When my .org file points to a second .org file in a directory below, and
with ...

:publishing-function org-html-publish-to-html
:recursive t

... the sub directory gets published. I am no clear of whether this is
triggered by the references to the .org file below, or simply by
":recursive t."

In any event, this is generally a good thing, except that there are
situations where I would like to prevent recursion into specific
sub-directories. For example, consider the tree below, and that I want to
publish proj and Manuscript, but not GenomicsData ...

~/A
.
+--proj
|  +--.git
|  +--README.org
|  |  +--Manuscript
|  |  |  +--.git
|  |  |  +--README.org
|  |  |  +--drafts
|  |  |  +--GenomicsData
|  |  |  |  +--.git
|  |  |  |  +--README.org


I could not figure out how to do this from INFO. I found examples of
preventing publishing of specific file extensions, but not whole directories.

Thanks, regcl

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

* Re: :exclude sub folder in org-publish
  2014-07-21 19:47   ` :exclude sub folder in org-publish regcl
@ 2014-07-28 15:49     ` Bastien
  2014-08-06 22:23       ` regcl
  0 siblings, 1 reply; 10+ messages in thread
From: Bastien @ 2014-07-28 15:49 UTC (permalink / raw)
  To: regcl; +Cc: emacs-orgmode

Hi,

regcl <regcl@channing.harvard.edu> writes:

> I could not figure out how to do this from INFO. I found examples of
> preventing publishing of specific file extensions, but not whole
> directories.

Unless my memory fails me, :exclude works on names, not just on
extensions.  So maybe using both :recursive and :exclude can lead
to what you want.

-- 
 Bastien

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

* Re: :exclude sub folder in org-publish
  2014-07-28 15:49     ` Bastien
@ 2014-08-06 22:23       ` regcl
  0 siblings, 0 replies; 10+ messages in thread
From: regcl @ 2014-08-06 22:23 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

Bastien <bzg@gnu.org> writes:

> Hi,
>
> regcl <regcl@channing.harvard.edu> writes:
>
>> I could not figure out how to do this from INFO. I found examples of
>> preventing publishing of specific file extensions, but not whole
>> directories.
>
> Unless my memory fails me, :exclude works on names, not just on
> extensions.  So maybe using both :recursive and :exclude can lead
> to what you want.

Yes that matches my understanding and experience. But I could not figure
out how to, for example in this tree ...

~/A
.
+--proj
|  +--.git
|  +--README.org
|  |  +--Manuscript
|  |  |  +--.git
|  |  |  +--README.org
|  |  |  +--drafts
|  |  |  +--GenomicsData
|  |  |  |  +--.git
|  |  |  |  +--README.org

... publish the README's above GenomicsData, but not in GenomicsData.

But maybe this is asking too much of org-mode publish. 

FWIW, I ended up using a recursive sub- make harness with something like
this in the Makefile ...

.PHONY: html
html: README.html

# export org file to html
%.html: %.org
	emacs --batch --load=~/.emacs $*.org --eval='(org-html-export-to-html)'


Best,
George

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

end of thread, other threads:[~2014-08-06 22:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-20  3:39 :exclude sub folder in org-publish regcl
2014-06-20 15:15 ` Nick Dokos
2014-06-25  8:49 ` Bastien
2014-07-17 16:14   ` turn off monospace in src result regcl
2014-07-17 21:28     ` Andreas Leha
2014-07-17 21:38       ` Nick Dokos
2014-07-17 21:50         ` Andreas Leha
2014-07-21 19:47   ` :exclude sub folder in org-publish regcl
2014-07-28 15:49     ` Bastien
2014-08-06 22:23       ` regcl

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