Re: [O] Per-backend export options?

2015-08-19 Thread Jay Dixit
I do something similar to change export options between HTML and LaTeX:

(defun my-org-export-change-options (plist backend)
  (cond
   ((equal backend 'html)
(plist-put plist :with-toc nil)
(plist-put plist :section-numbers nil))
   ((equal backend 'latex)
(plist-put plist :with-toc t)
(plist-put plist :section-numbers t)))
  plist)
(add-to-list 'org-export-filter-options-functions
'my-org-export-change-options)



---
Jay Dixit
jaydixit.com
(646) 355-8001
Jay Dixit


On Mon, Jul 6, 2015 at 10:16 AM, to...@tuxteam.de wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On Mon, Jul 06, 2015 at 11:32:21AM +0200, Rasmus wrote:
 [...]
  I'd use a macro for this.  E.g.

 Works like a charm now :-)

 - -- t
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.12 (GNU/Linux)

 iEYEARECAAYFAlWaja4ACgkQBcgs9XrR2kaEzgCfbM0McF+Yi3sR1prWI8ix1cpu
 pTIAn0PQumh5sUJmE4UBQm9OFd8Nc/CV
 =z5tl
 -END PGP SIGNATURE-





[O] using poetry.el on OSX?

2015-06-23 Thread Jay Dixit
I've been looking at Bob Newell's package for writing poetry, poetry-mode (
http://www.bobnewell.net/filez/poetry.el).

It's incredible, and the line-by-line syllable counter works great.
Unfortunately, the rhyming dictionary doesn't work. Looks like the required
command-line rhyming dictionary package (
https://code.launchpad.net/ubuntu/+source/rhyme) is for Ubuntu.

Does anyone know how can I get it working on OSX?

​Thanks!

Jay​

---
Jay Dixit
jaydixit.com
(646) 355-8001
Jay Dixit


[O] how to make org-blank-before-new-entry distinguish between a TODO list and a text outline?

2015-06-22 Thread Jay Dixit
http://emacs.stackexchange.com/questions/13311/make-org-blank-before-new-entry-distinguish-between-a-todo-list-and-a-text-outli
I posted this question on stackexchange, but no response yet. Does anyone
here have any ideas?

Like many of us, I use org-mode for two different things:

1. As a TODO list manager
2. As a text outliner

I'd like org-blank-before-new-entry to work differently based on context.

1. TODO list: no blank lines
2. text outline: automatically insert 1 blank line when non-heading text
precedes a heading

In other words, when I'm doing a TODO list when I have many headings in a
row, I don't want stray line breaks between them.

For TODO list mode, no blank lines:

#+BEGIN_EXAMPLE
** Organize Party
** TODO Call people
*** TODO Peter
*** DONE Sarah
** TODO Buy food
** DONE Talk to neighbor
#+END_EXAMPLE

However, when I'm writing text, I want line breaks for the sake of visual
whitespace / ease of reading.

For outline mode, blank line before heading:

#+BEGIN_EXAMPLE
* Heading
This is a document that has a heading, and a body. The body will consist of
two paragraphs with sub-headings.

* Body
This is an introduction to the body. The body has two sub-headings, each of
which have their own paragraph.

** The First Paragraph
This is the first of two paragraphs.

** The Second Paragraph
This is the second of two paragraphs.
#+END_EXAMPLE

I've already set org-blank-before-new-entry to auto:

 ((heading . auto)
 (plain-list-item . auto))

But I think org-blank-before-new-entry works by detecting other blank lines
in the area. I want it to detect whether the preceding line of text is a
heading or a non-heading.

How can I modify org-blank-before-new-entry so that when I'm in a TODO list
consisting only of headings, org-meta-return doesn't add a line break? but
after a block of text, it does?

Any thoughts? Thanks!


---
Jay Dixit
jaydixit.com
(646) 355-8001
Jay Dixit


Re: [O] bug in org-export-smart-quotes

2015-03-27 Thread Jay Dixit
​Hi Nick,

Thanks for the suggestion. Putting extra spaces in the original solves the
smart quotes issue, but creates unwanted spaces on either side of the em
dash:

A new study
http://spp.sagepub.com/content/early/2015/01/23/1948550614568867.abstract
published
in Social Psychological and Personality Science has found that helping
other people — what scientists call being “prosocial” — increases your odds
of finding a long-term relationship.

Thanks,
Jay




---
Jay Dixit
jaydixit.com
(646) 355-8001
Jay Dixit


On Fri, Mar 27, 2015 at 2:45 PM, Jay Dixit di...@aya.yale.edu wrote:

 Hi everyone,

 I've noticed that when I use quotation marks in conjunction with an em
 dash (—), org-export-smart-quotes gets confused and forgets to activate
 smart quotes for the closing quotation mark.

 If my org-mode file contains a sentence like this...

 A [[
 http://spp.sagepub.com/content/early/2015/01/23/1948550614568867.abstract][new
 study]] published in Psychological and Personality Science has found that
 helping other people---what scientists call being prosocial---increases
 your odds of finding a long-term relationship.

 ...then it exports to HTML like this:

 A new study
 http://spp.sagepub.com/content/early/2015/01/23/1948550614568867.abstract 
 published
 in Social Psychological and Personality Science has found that helping
 other people—what scientists call being “prosocial—increases your odds of
 finding a long-term relationship.

 Note the non-smart closing quotation mark. Does anyone know a fix for
 this?

 Thanks!

 Jay

 ---
 Jay Dixit
 jaydixit.com
 (646) 355-8001
 Jay Dixit




[O] bug in org-export-smart-quotes

2015-03-27 Thread Jay Dixit
Hi everyone,

I've noticed that when I use quotation marks in conjunction with an em dash
(—), org-export-smart-quotes gets confused and forgets to activate smart
quotes for the closing quotation mark.

If my org-mode file contains a sentence like this...

A [[
http://spp.sagepub.com/content/early/2015/01/23/1948550614568867.abstract][new
study]] published in Psychological and Personality Science has found that
helping other people---what scientists call being prosocial---increases
your odds of finding a long-term relationship.

...then it exports to HTML like this:

A new study
http://spp.sagepub.com/content/early/2015/01/23/1948550614568867.abstract
published
in Social Psychological and Personality Science has found that helping
other people—what scientists call being “prosocial—increases your odds of
finding a long-term relationship.

Note the non-smart closing quotation mark. Does anyone know a fix for this?

Thanks!

Jay

---
Jay Dixit
jaydixit.com
(646) 355-8001
Jay Dixit


Re: [O] using org-refile to sort research notes?

2014-05-05 Thread Jay Dixit
Richard and Alan,

Thanks for the feedback. It looks like this is turning into a larger
discussion of how to organize a workflow for writing a book. Which is great
- I could use some insight. My problem is I have dozens of disparate files,
each created in a different moment of inspiration and each containing
notes, strategizing, or actual writing for the book.

Richard: You have all your notes in one notes.org file, and you have
another file e.g. writing.org for actual writing? How do you then work - do
you, say, split your frame into side-by-side windows, writing in the right
window while working off of notes from the left?

And to anyone using org-mode for book writing: Do you put thoughts about
structure, tone, and objectives for each section along with the research
notes? Do you make use commenting at all?

If this is off-topic for the list, I'd be happy to discuss them off-list
via email. Or if there's interest, I could create a separate list for
'org-mode for writers.'

Thanks again,
Jay

---
Jay Dixit
jaydixit.com
(646) 355-8001
 ᐧ


[O] using org-refile to sort research notes?

2014-04-27 Thread Jay Dixit
Hello friendly org-mode community,

I'm using org-mode to research and write a nonfiction book. I have a large
amount of notes and quotes that I now need to sort into separate files.

I am creating separate org files, one for each chapter of my book—
chapter-1.org, chapter-2.org, etc.—with org headings in each one for every
topic/subsection.

I now want to categorize my notes, moving them from where they are—i.e. in
a set of long, unorganized org files with names like new-research.org and
more-research-and-notes.org—into the the chapter files.

1. Am I right in thinking that org-refile is the most efficient way to do
this?
2. What's the best way to do this? Should I add all of my chapter.org files
to the agenda using org-agenda-file-to-front? I ask because these are not
TODO headings, just headings with notes and quotes, so I'm not sure if
using org-agenda functionality is appropriate.
3. I am also learning to use org-agenda, so I do have a work.org file that
has my TODO tasks in it. Is there a way to temporarily remove my
work.orgTODO headings from the refile targets for when I'm sorting my
book notes?
Or is there a way to have different projects with separate sets of refile
targets, one set of agenda files with refile targets for when I'm refiling
TODO tasks, another set of agenda files for when I'm refiling book notes?

Thanks in advance for any advice.

Best,
Jay

---
Jay Dixit
jaydixit.com
(646) 355-8001
[image: Facebook] http://facebook.com/jaydixit [image:
Twitter]https://twitter.com/jaydixit
 [image: The New York Writers’
Intensive]http://www.newyorkwritersintensive.com

Jay Dixit

ᐧ


Re: [O] OrgCamp in Madrid

2014-02-27 Thread Jay Dixit
Hmm, maybe this function would help? :-)

(defun org-hide-age ()
  Queries urbandictionary.com
  (interactive)
  (browse-url
   (concat
http://www.urbandictionary.com/define.php?term=;
(if mark-active
 (buffer-substring (region-beginning) (region-end))
  (read-string Urban Dictionary: )


---
Jay Dixit
jaydixit.com
(646) 355-8001
[image: Facebook] http://facebook.com/jaydixit [image:
Twitter]https://twitter.com/jaydixit
 [image: The New York Writers'
Intensive]http://www.newyorkwritersintensive.com

Jay Dixit


Re: [O] help me get started with org-publish?

2013-11-11 Thread Jay Dixit
Hi Bastien,

Thanks. I disabled smex, and now when I m-x org-publish, I get:

Publishing file /Users/jay/blog-test/my-blog.org using
`org-html-publish-to-html'
org-html-publish-to-html: Wrong number of arguments: #[(format plist
filename pub-dir) ÆÇ!ˆÈ !„

Thanks,
Jay




Jay Dixit
jaydixit.com
newyorkwritersintensive.com
(646) 355-8001
fol­low @jaydixit https://twitter.com/jaydixit/
Jay Dixit


On Fri, Nov 8, 2013 at 2:44 AM, Bastien b...@gnu.org wrote:

 Hi Jay,

 Jay Dixit di...@aya.yale.edu writes:

  Here's my org-publish configuration. I believe it comes from a
  tutorial you put up somewhere.

 (Yes, from here: http://bzg.fr/blogging-from-emacs.html)

 I suspect the problem comes from smex.el -- did you load it?
 http://ergoemacs.googlecode.com/svn/trunk/packages/smex.el

 Can you try removing this and see if you can publish?

 Thanks,

 --
  Bastien



Re: [O] help me get started with org-publish?

2013-11-07 Thread Jay Dixit
Hi Bastien,

Good to hear from you. Thanks for the response.

Exporting to HTML works fine. I get errors only with org-publish.

Here's my latest attempt:
https://gist.github.com/jaydixit/7363158

 I'm running on OSX running Aquamacs 2.5 (Emacs 23.4.1) and org-mode 8.2.1.

Here's my org-publish configuration. I believe it comes from a tutorial you
put up somewhere.

(setq org-publish-project-alist
  '((blog
 :base-directory ~/blog-test/
 :html-extension html
 :base-extension org
 :publishing-directory ~/public_html/
 :publishing-function (org-html-publish-to-html)
 :html-preamble nil
 :html-postamble nil)))


Thanks,
Jay




Jay Dixit
jaydixit.com
newyorkwritersintensive.com
(646) 355-8001
fol­low @jaydixit https://twitter.com/jaydixit/
Jay Dixit


On Mon, Nov 4, 2013 at 6:50 AM, Bastien b...@gnu.org wrote:

 Hi Jay,

 Jay Dixit jaydixit.w...@gmail.com writes:

  I'm trying to set up org-publish for HTML export and I keep getting
  strange errors related to org-footnote-normalize.
  https://gist.github.com/7131173

 Do you also get errors when *exporting*, not publishing?

 If so, can you send a minimal example of the file you can't
 export, along with your Org version and configuration?

 Thanks,

 --
  Bastien



[O] org-slidy in org 8.x?

2013-10-26 Thread Jay Dixit
Hey everyone,

I'm trying to use Dov Grobgeld's org-slidy (https://github.com/dov/org-slidy)
to create HTML-based slideshows using org-mode, but it doesn't seem to be
working. I'm not sure, but I suspect this is because the syntax for org's
HTML export may have changed?

Here are the options used by org-slidy.
https://gist.github.com/7129945

I tried to fix it by taking out the -export from the commands, but it
didn't work. Does anyone know the new correct syntax for these options?

I'm having similar issues trying to use Takumi Kinjo's
org-html5presentation (https://github.com/kinjo/org-html5presentation.el)
and org-impress-js (https://github.com/kinjo/org-impress-js.el).

I get errors like void-variable org-export-html-special-string-regexps,
but I don't know enough to change the commands into org-8ese. Does anyone
know how to do this?

Finally, are there good HTML-based slideshows that are compatible with org
8.x?

Thanks!


#+OPTIONS: H:1 num:nil toc:nil \n:nil @:t ::t |:t ^:t f:t LaTeX:t
#+BIND: org-export-html-style-include-default nil
#+BIND: org-export-html-style-include-scripts t
#+BIND: org-export-html-auto-preamble nil
#+BIND: org-export-html-auto-postamble nil
#+BIND: org-export-html-style !-- configuration parameters -- meta
name='duration' content='5' / meta name='font-size-adjustment'
content='2' / !-- style sheet links -- link rel='stylesheet'
href='slidy.css' type='text/css' / !-- HTMTLSLIDY JS -- script
src='htmlslidy-slides.js' type='text/javascript'/script script
src='slidy.js' type='text/javascript'/script script src='jquery.js'
type='text/javascript'/script script src='org-slidy-slides.js'
type='text/javascript'/script
#+BIND: org-export-html-style-extra 
#+BIND: org-export-html-preamble org-htmlslidy-html-preamble-function
#+BIND: org-export-html-postamble org-htmlslidy-html-postamble-function




jaydixit.com
newyorkwritersintensive.com
fol­low @jaydixit https://twitter.com/jaydixit/
Jay Dixit


[O] org-slidy in org 8.x?

2013-10-26 Thread Jay Dixit
Hey everyone,

I'm trying to use Dov Grobgeld's org-slidy (https://github.com/dov/org-slidy)
to create HTML-based slideshows using org-mode, but it doesn't seem to be
working.

I'm not sure, but I suspect this is because the syntax for org's HTML
export may have changed?

Here are the options used by org-slidy.
https://gist.github.com/7129945

Are these commands still correct? If not, does anyone know the new correct
syntax? Thanks!


#+OPTIONS: H:1 num:nil toc:nil \n:nil @:t ::t |:t ^:t f:t LaTeX:t
#+BIND: org-export-html-style-include-default nil
#+BIND: org-export-html-style-include-scripts t
#+BIND: org-export-html-auto-preamble nil
#+BIND: org-export-html-auto-postamble nil
#+BIND: org-export-html-style !-- configuration parameters -- meta
name='duration' content='5' / meta name='font-size-adjustment'
content='2' / !-- style sheet links -- link rel='stylesheet'
href='slidy.css' type='text/css' / !-- HTMTLSLIDY JS -- script
src='htmlslidy-slides.js' type='text/javascript'/script script
src='slidy.js' type='text/javascript'/script script src='jquery.js'
type='text/javascript'/script script src='org-slidy-slides.js'
type='text/javascript'/script
#+BIND: org-export-html-style-extra 
#+BIND: org-export-html-preamble org-htmlslidy-html-preamble-function
#+BIND: org-export-html-postamble org-htmlslidy-html-postamble-function




Jay Dixit
jaydixit.com
newyorkwritersintensive.com
(646) 355-8001
fol­low @jaydixit https://twitter.com/jaydixit/
Jay Dixit


[O] org-slidy and other HTML slideshows in org 8.x?

2013-10-23 Thread Jay Dixit
Hey everyone,

I'm trying to use Dov Grobgeld's org-slidy (https://github.com/dov/org-slidy)
to create HTML-based slideshows using org-mode, but it doesn't seem to be
working. I'm not sure, but I suspect this is because the syntax for org's
HTML export may have changed?

Here are the options used by org-slidy.
https://gist.github.com/7129945

I tried to fix it by taking out the -export from the commands, but it
didn't work. Does anyone know the new correct syntax for these options?

I'm having similar issues trying to use Takumi Kinjo's
org-html5presentation (https://github.com/kinjo/org-html5presentation.el)
and org-impress-js (https://github.com/kinjo/org-impress-js.el). I get
errors like void-variable org-export-html-special-string-regexps, but I
don't know enough to translate the commands into org-8ese. Does anyone know
how to do this?

Finally, are there other HTML-based slideshows that are compatible with org
8 besides s5 and deck.js?

Thanks!


#+OPTIONS: H:1 num:nil toc:nil \n:nil @:t ::t |:t ^:t f:t LaTeX:t
#+BIND: org-export-html-style-include-default nil
#+BIND: org-export-html-style-include-scripts t
#+BIND: org-export-html-auto-preamble nil
#+BIND: org-export-html-auto-postamble nil
#+BIND: org-export-html-style !-- configuration parameters -- meta
name='duration' content='5' / meta name='font-size-adjustment'
content='2' / !-- style sheet links -- link rel='stylesheet'
href='slidy.css' type='text/css' / !-- HTMTLSLIDY JS -- script
src='htmlslidy-slides.js' type='text/javascript'/script script
src='slidy.js' type='text/javascript'/script script src='jquery.js'
type='text/javascript'/script script src='org-slidy-slides.js'
type='text/javascript'/script
#+BIND: org-export-html-style-extra 
#+BIND: org-export-html-preamble org-htmlslidy-html-preamble-function
#+BIND: org-export-html-postamble org-htmlslidy-html-postamble-function


[O] help me get started with org-publish?

2013-10-23 Thread Jay Dixit
I'm trying to set up org-publish for HTML export and I keep getting strange
errors related to org-footnote-normalize.
https://gist.github.com/7131173

Anyone have any thoughts? Eventually I'd like to get org-publish working
via tramp and web.

My goal is to create a blog and post updates to it via org-mode. Thanks!