Re: [O] tables, comment in one line, export to html

2016-04-26 Thread Michael Brand
Hi

On Tue, Apr 26, 2016 at 11:10 PM, Nicolas Goaziou
 wrote:

> Michael Brand  writes:

>> # in non-first columns to mean noexport of the column has the
>> disadvantage of possible confusion with # in the first column where it
>> means special effect for recalculation when using the spreadsheet. As
>> I understand your first paragraph you want to avoid such confusion.
>
> I don't think there is a possible confusion if the manual makes it
> clear.
>
>> <#> I find a bit too near to <5>, <, > or <>.
>
> That was exactly the point, since those all apply to columns, unlike to
> rows special markers. IOW, so far, columns syntax systematically uses <
> or > (or both).
>
>> % or ; used for comments in LaTeX or Emacs Lisp I would find a good
>> space saving single character alternative. Why not % as this would not
>> be the first time that Org borrowed some syntax elements from LaTeX?
>
> Org comment syntax is related to #, not % or ;. I'd rather have similar
> things look similar.

To have similar things look similar and make it clear in the manual I
suggest to change the long existing

  ~/~
 Do not export this line.  Useful for lines that contain the
 narrowing `' markers or column group markers.

  Finally, just to whet your appetite [...]

to

  ~/~
 Do not export this row or column.  In the first column ~/~ means
 do not export this row which is useful for rows that contain the
 narrowing ~~ markers, column group markers or markers to not
 export a column.  In all other columns ~/~ means do not export
 this column if also the first column is marked with ~/~.  When
 the first column should not be exported move its content other
 than markers into an other column.

  When more than one marker is needed in a column put each in an own
  row with ~/~ in the first column.

  Finally, just to wet your appetite [...]

Michael



[O] Special alignment in org-mode

2016-04-26 Thread David Cao
Hello,

I was wondering if there is any way to right-align the header indicators
while left-aligning the actual content. Unfortunately I haven't been able
to find any mention of such a feature online.

For example:

  * My fancy org file
 ** Header 2
Some content here
*** Header 3

Thanks in advance!
David


[O] pandoc-style citations

2016-04-26 Thread Alex Fenton

Hello,

I see that there were several extensive and fruitful discussions on this 
list last year on citation syntax. There seemed to be a reasonable 
degree of consensus that pandoc-style citation syntax was at the least a 
good model.


I'd like to know if there are any implementations out there of elisp to 
parse pandoc citation syntax and turn it into latex \cites. My question 
is not so much "when/if this will be in org mode" but rather whether 
there's something I can drop in now (likely as a link type).


I have a lot of longish citations with multiple references each with 
their own pre- and post- ("'blah blah blah @ref1, p.23, also @ref2, for 
a contrary view see @ref3 pp148-152") that end up as \cites. However my 
home-brew link solution, stuffing the multiple pre- and posts- with 
separator into the link description is unwieldy - difficult to write, 
hard to read and easy to get wrong or breaking output.


thanks
alex



[O] M-x cfw:open-org-calendar not working

2016-04-26 Thread Paul Harper

I am following this article "Taming Google Calendar With Org-Mode" to
try to get sync going with my Google
Calendar. http://jameswilliams.be/blog/2016/01/11/Taming-Your-GCal.html

I've installed Calfw and Org-Gcal with  the package manager. But when I
M-x cfw:open-org-calendar it does not find the command. Mx cf  only
finds cfengine.

What is the best way for me to troubleshoot this? My setup is identical
to the article except for:

(add-to-list 'load-path "/home/username/.emacs.d/elpa/calfw-20160302.1858")
(require 'calfw)
(require 'calfw-org)

Regards


Paul
-- 
Sent with my mu4e



Re: [O] tables, comment in one line, export to html

2016-04-26 Thread Nicolas Goaziou
Hello,

Michael Brand  writes:

> # in non-first columns to mean noexport of the column has the
> disadvantage of possible confusion with # in the first column where it
> means special effect for recalculation when using the spreadsheet. As
> I understand your first paragraph you want to avoid such confusion.

I don't think there is a possible confusion if the manual makes it
clear.

> <#> I find a bit too near to <5>, <, > or <>.

That was exactly the point, since those all apply to columns, unlike to
rows special markers. IOW, so far, columns syntax systematically uses <
or > (or both).

> % or ; used for comments in LaTeX or Emacs Lisp I would find a good
> space saving single character alternative. Why not % as this would not
> be the first time that Org borrowed some syntax elements from LaTeX?

Org comment syntax is related to #, not % or ;. I'd rather have similar
things look similar.


Regards,

-- 
Nicolas Goaziou



Re: [O] tables, comment in one line, export to html

2016-04-26 Thread Michael Brand
Hi

On Tue, Apr 26, 2016 at 9:14 PM, Nicolas Goaziou  wrote:

> It sounds good, as long as it is clear this markers is for export
> consumption only, and has no special effect when using the spreadsheet.
>
> I suggest to use # or <#> instead of / so as to refer to "comment" (but
> still use / as the marker for the first column).

# in non-first columns to mean noexport of the column has the
disadvantage of possible confusion with # in the first column where it
means special effect for recalculation when using the spreadsheet. As
I understand your first paragraph you want to avoid such confusion.

/ in non-first columns to mean noexport of the column as I did before
has the disadvantage of possible confusion with / in the first column
where it means noexport of the row.

<#> I find a bit too near to <5>, <, > or <>.

% or ; used for comments in LaTeX or Emacs Lisp I would find a good
space saving single character alternative. Why not % as this would not
be the first time that Org borrowed some syntax elements from LaTeX?
The glyph has also similarities to / that has a similar meaning.

> The removal could be done in a function like
> `org-export--delete-commented-rows' (see `org-export--delete-comments'
> in "ox.el").

And just to mention if someone wants to start: The non-greediness I
did before is not necessary and could be omitted for better
readability:
old: "^[ \t]*| +/ +|\\(.*?|\\)?? +\\(/\\) +|"
new: "^[ \t]*| +/ +|\\(.*|\\)? +\\(%\\) +|"

> This would also require documenting it in the manual and providing
> tests.

And a change note.

> Does anyone feel like doing that?

Let me see. If anyone wants to beat me please go ahead.

Michael



Re: [O] exported table has text overflowing off the pdf page

2016-04-26 Thread Eduardo Mercovich
Dear Sharon.

>>> I'm running into problems exporting tables into latex with a 2-column
>>> 3-row table with a large amount of text to go into the cells, but when
>>> its exported the text is taking over and overflowing off the pdf page.

I'm a newbie and confronted to this same situation found this latex
options (from the org-manual, but not obvious when you don't know what
you're searching):

#+CAPTION: This is your table caption (of course, it's optional). 
#+NAME:   table:yourtableid
#+ATTR_LATEX: :environment longtable :width 1\textwidth :font \small 
\raggedright :align >{\raggedright}p{9cm} p{3cm}
| Here | comes | your | table |
|--+---+--+---|
| and  | some  | text | cells |

Let's break this into pieces:

:environment longtable
 breaks across pages if too long. 

:width 1\textwidth
 it has the width of the text block

:font \small
 assuming your latex class has a "small" font size definition,
 can be tiny, miniscule, etc. 

: \raggedright
 don't justify a few words in short width columns, looks much better

:align >{\raggedright}p{9cm} p{3cm}
 this defines the column align and width. 

Try it, see what happens and let's optimize this together. :)

Best...


-- 
eduardo mercovich 

 Donde se cruzan tus talentos 
 con las necesidades del mundo, 
 ahí está tu vocación.



Re: [O] State of things: Email with orgmode?

2016-04-26 Thread Jeremie Juste
Hello,

>> Jeremie Juste writes:
>> Do you think Is it possible to invert the colors of the latex images? I use 
>> a black
>> background and it's impossible to see the latex images.

> John Kitchin  writes:

> See the variable org-format-latex-options . you might be able to change
> it. Maybe something like (untested)
>
> (plist-put org-format-latex-options :html-background "white")

It works fine. Thanks for the lead.

It you can tweak all the org-format-latex-options as well.

(plist-put org-format-latex-options :html-scale 1.5)
(plist-put org-format-latex-options :html-background "black")
(plist-put org-format-latex-options :html-foreground "white")


Best regards,
Jeremie Juste






Re: [O] [PATCH] new :async feature for org-babel-clojure

2016-04-26 Thread Nicolas Goaziou
Hello,

Frederick Giasson  writes:

> Right now, async is really more about "feedback" than "asynchronous".
> However it has never been clear is it was possible or not, and if so,
> how :)
>
> Any pointers on how this could be done in emacs?

You could start a new Emacs evaluating some code in a subprocess, with
`start-process' and collect return value. You may want to have a look at
`org-export-async-start' or "async.el" library in ELPA.

Unfortunately, it is not yet possible to re-use the latter in Org code,
since it is unavailable in vanilla Emacs.

The hard part, IMO, is to bring the right context in the subprocess
(e.g., the environment should be the same, other blocks may be needed,
etc.).


Regards,

-- 
Nicolas Goaziou



Re: [O] tables, comment in one line, export to html

2016-04-26 Thread Nicolas Goaziou
Hello,

torys.ander...@gmail.com (Tory S. Anderson) writes:

> Second the suggestion to make | / | columns ignored for export in
> mainstream orgmode. 
>
> Uwe Brauer  writes:
>
>> > Hi Uwe
>> > On Tue, Apr 19, 2016 at 1:08 PM, Uwe Brauer >
>>  wrote:
>>
>>
>> > I have the same need now and just hacked something simple
>> > together to
>> > export
>>
>> > | / | /  ||  |
>> > |   | 1n | 2y |  3y |
>>
>> Great!! thanks, I just tested it. So all columns having a / header
>> are
>> ignored, at least for html and latex export. This is really great.
>> Thanks again. I'd say that code should be somehow included in
>> mainstream
>> orgmode, if you don't mind?

It sounds good, as long as it is clear this markers is for export
consumption only, and has no special effect when using the spreadsheet.

I suggest to use # or <#> instead of / so as to refer to "comment" (but
still use / as the marker for the first column).

The removal could be done in a function like
`org-export--delete-commented-rows' (see `org-export--delete-comments'
in "ox.el").

This would also require documenting it in the manual and providing
tests.

Does anyone feel like doing that?

Regards,

-- 
Nicolas Goaziou



Re: [O] Bug: C mode org-store-link fails [8.3.4 (8.3.4-39-ge0acd8-elpa @ /home/sachdevp/.emacs.d/elpa/org-20160418/)]

2016-04-26 Thread Nicolas Goaziou
Hello,

Prashant Sachdeva  writes:

> Minimal configuration works with org-store-link, but this
> configuration fails.

Could you describe how `org-store-link' fails, if possible with an ECM
demonstrating the issue?

Regards,

-- 
Nicolas Goaziou



Re: [O] Bug: org-store-link misinterprets headings containing multiple links [8.3.4 (8.3.4-34-gacfd41-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20160411/)]

2016-04-26 Thread Nicolas Goaziou
Hello,

Georgiy Tugai  writes:

> Reproducing the bug
> ===
>
>   - Create a heading (of any level). The heading title should contain at
> least two links, of any type. For example, `[[#A][alpha]]'
> `[[#B][beta]]'
>   - With point on the heading, call `org-store-link'.
>
>
> Expected behaviour
> ==
>
>   - The "Stored: " message contains the text of the links ("Stored:
> alpha beta")
>   - The stored link's description contains the text of the links ("alpha
> beta")
>
>
> Actual behaviour
> 
>
>   - The "Stored: " message contains the text of the *first* link,
> repeated multiple times depending on the number of other links in
> the heading. ("Stored: alpha alpha")
>   - The stored link's description matches the message ("alpha alpha")
>
> 

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] how does invisibility impact org?

2016-04-26 Thread John Kitchin
normally I would use narrowing, but I want to see all the verses in the
document at once., so I was going to make all the other text temporarily
invisible.

John

---
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu


On Tue, Apr 26, 2016 at 2:36 PM, Rasmus  wrote:

> John Kitchin  writes:
>
> > Hi, I am trying to use this code to make parts of an org-file that are
> > not a verse block invisible. That part works fine, and I can also unhide
> > it. However, after that, I get errors like
>
> Isn't this the job of narrowing and widening?  Though I guess this could
> only show one verse block at the time.
>
> I.e. use something like this:
>
> (defun narrow-to-next-verse ()
>   (interactive)
>   (widen)
>   (let ((next-elm (search-forward-regexp "^#\\+BEGIN_VERSE" nil t)))
> (when next-elm
>   (widen)
>   (goto-char next-elm)
>   (org-narrow-to-element)
>   (goto-char (point-min))
>   (forward-line
>
> Rasmus
>
> --
> Hooray!
>
>
>


Re: [O] how does invisibility impact org?

2016-04-26 Thread Rasmus
John Kitchin  writes:

> Hi, I am trying to use this code to make parts of an org-file that are
> not a verse block invisible. That part works fine, and I can also unhide
> it. However, after that, I get errors like

Isn't this the job of narrowing and widening?  Though I guess this could
only show one verse block at the time.

I.e. use something like this:

(defun narrow-to-next-verse ()
  (interactive)
  (widen)
  (let ((next-elm (search-forward-regexp "^#\\+BEGIN_VERSE" nil t)))
(when next-elm
  (widen)
  (goto-char next-elm)
  (org-narrow-to-element)
  (goto-char (point-min))
  (forward-line

Rasmus

-- 
Hooray!




[O] how does invisibility impact org?

2016-04-26 Thread John Kitchin

Hi, I am trying to use this code to make parts of an org-file that are
not a verse block invisible. That part works fine, and I can also unhide
it. However, after that, I get errors like

org-back-to-heading: Before first headline at position 232 in buffer
selective-text.org

If I say, put the cursor in a code block and try to run it or special
edit it.

Any ideas what is going wrong here?

Thanks,

(defun flatten (LIST)
  "flattens LIST"
  (cond
   ((atom LIST) (list LIST))
   ((null (cdr LIST)) (flatten (car LIST)))
   (t (append (flatten (car LIST)) (flatten (cdr LIST))

(defun view-verse ()
  "Hide everything but the verse blocks."
  (interactive)
  (org-cycle '(64))
  (let ((p (append
(list (point-min))
(flatten (org-element-map (org-element-parse-buffer) 'verse-block
(lambda (vb) (list (org-element-property :begin vb)
   (org-element-property :end vb)
(list (point-max)

(add-to-invisibility-spec 'not-verse-block)
(loop for start in p by 'cddr
  for end in (cdr p) by 'cddr
  do (overlay-put (make-overlay start end) 'invisible 
'not-verse-block

(defun unhide ()
  (interactive)
  (remove-from-invisibility-spec 'not-verse-block)
  (ov-clear 'invisibility 'not-verse-block))


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] tables, comment in one line, export to html

2016-04-26 Thread Tory S. Anderson
Second the suggestion to make | / | columns ignored for export in 
mainstream orgmode. 


Uwe Brauer  writes:


> Hi Uwe
> On Tue, Apr 19, 2016 at 1:08 PM, Uwe Brauer 
>  wrote:



> I have the same need now and just hacked something simple 
> together to

> export

> | / | /  ||  |
> |   | 1n | 2y |  3y |

Great!! thanks, I just tested it. So all columns having a / 
header are
ignored, at least for html and latex export. This is really 
great.
Thanks again. I'd say that code should be somehow included in 
mainstream

orgmode, if you don't mind?

regards

Uwe





--
Tory S. Anderson
Computational Cognitive Narratologist & Application Developer
http://toryanderson.com



Re: [O] tables, comment in one line, export to html

2016-04-26 Thread Uwe Brauer

> Hi Uwe
> On Tue, Apr 19, 2016 at 1:08 PM, Uwe Brauer  wrote:


> I have the same need now and just hacked something simple together to
> export

> | / | /  ||  |
> |   | 1n | 2y |  3y |

Great!! thanks, I just tested it. So all columns having a / header are
ignored, at least for html and latex export. This is really great.
Thanks again. I'd say that code should be somehow included in mainstream
orgmode, if you don't mind?

regards

Uwe




Re: [O] bug: export prints bogus link

2016-04-26 Thread Nicolas Goaziou
Hello,

Samuel Wales  writes:

> in recent maint:
>
> * bug
> *** NAKA bug -- export this subtree as ascii
> * PULLTRIGGER something
> *** NEXT 6-outlet surge protector:export:
>   - [[http://www.google.com][search engine]]
>   - notice how the link appears above AND below
>   - my expectation is that the link appears below
> *** NAKA results
>_
>
> BUG -- EXPORT THIS SUBTREE AS ASCII
>_
>
>
> 1 PULLTRIGGER something
> ===
>
> [search engine] http://www.google.com <--- this is a bug
>
> 1.1 NEXT 6-outlet surge protector
> ~
>
> - [search engine]
> - notice how the link appears above AND below
> - my expectation is that the link appears below
>
>
> [search engine] http://www.google.com

Fixed. Thank you.


Regards,

-- 
Nicolas Goaziou



Re: [O] How to hide a table column from exporting

2016-04-26 Thread Michael Brand
Hi Kaushal

On Fri, Apr 22, 2016 at 8:40 PM, Kaushal Modi  wrote:

> I was trying to prevent an org table column from exporting to html. So I
> started looking for a solution and found this:
> http://stackoverflow.com/q/6641379/1219634

Please see my answer for one solution in the thread "tables, comment
in one line, export to html" that started on 2016-04-19, e. g. at
http://thread.gmane.org/gmane.emacs.orgmode/106497/focus=106683

Michael



Re: [O] tables, comment in one line, export to html

2016-04-26 Thread Michael Brand
Hi Uwe

On Tue, Apr 19, 2016 at 1:08 PM, Uwe Brauer  wrote:

> I would like to have a table entry in which the last colum contains
> comments which I don't want to export to html.
>
> Like this
>
> | Joe Smith  |  7 | 25 |  5 ||  37 |   | #+begin_comment from 
> group B B #+end_comment |
>
> But this does not work. So how can I achieve it?

I have the same need now and just hacked something simple together to
export

| / | /  ||  |
|   | 1n | 2y |  3y |

| / |  | /  ||
|   |  1y | 2n | 3y |

| /  |  | /  |
| 1y |  2y | 3n |

| / | /  | /  |  | /  | /  | /  |
|   | 1n | 2n |  3y | 4n | 5n | 6n |

| / |  |  |  |  |  |  |
| / |   / | /   |   / | |   / | /   |
|   |  1n | 2n  |  3n | 4y  |  5n | 6n  |

# Same result with a less useful notation:
| / |  |  |  |  |  |  |
| / |   / | /   | | |   / | /   |
| / | | /   |   / | | | |
|   |  1n | 2n  |  3n | 4y  |  5n | 6n  |

# Deletion must not get trapped with this:
| / |  |  |  |  |  |  |
| / | | | | | | |
|   |   / | /   |   / | | | |
|   |  1y | 2y  |  3y | 4y  |  5y | 6y  |

as e. g. ASCII to

:  2y  3y
:
:  1y  3y
:
:  1y  2y
:
:  3y
:
:  4y
:
:  4y
:
:   /  //
:  1y  2y  3y  4y  5y  6y

with

(add-hook 'org-export-before-processing-hook
  'f-ox-filter-table-column-del)
(defun f-ox-filter-table-column-del (back-end)
  "Delete the columns $2 to $> marked as \"/\" on a row with \"/\" in $1.
If you want a non-empty column $1 to be deleted make it $2 by
inserting an empty column before or rearrange column order in
some other way. Make sure \"/\" is in $1 again after that."
  (while (re-search-forward
  "^[ \t]*| +/ +|\\(.*?|\\)?? +\\(/\\) +|" nil t)
(goto-char (match-beginning 2))
(org-table-delete-column)
(beginning-of-line)))

Michael



Re: [O] Programmatically construct agenda from list of headline ids

2016-04-26 Thread Herbert Sitz
Alexander Baier  mailbox.org> writes:

> 
> Hi!
> 
> As the title mentions I have a list of ids of existing org headlines and
> want create an agenda view listing all of these headlines.
> 
> Is there functionality in org-agenda, that allows me to do this?
> 
> Best Regards,

Nobody else has offered help yet, so I'll take a shot.  What exactly are
your "ids"?  Do you mean you have headlines with assigned CUSTOM_ID
properties, and you have a list of values for which you want to show the
headlines in agenda?  If so, I think you could just assemble the list in a
command that sticks new search conditions into one of your custom agenda views.

E.g., if you currently had a custom agenda search mapped to "i" for two
different CUSTOM_IDs, like this:

  (setq org-agenda-custom-commands
   '(("i" tags "CUSTOM_ID=323|CUSTOM_ID=832")))

you could reissue command to get the search done for different list of
custom ids:

  (setq org-agenda-custom-commands
   '(("i" tags "CUSTOM_ID=153|CUSTOM_ID=932|CUSTOM_ID=293")))

I haven't tested this, but I expect it or something similar would work. 
There are probably tweaks you could make, e.g, list could be combined into a
regular expression so you don't need to repeat multiple 'CUSTOM_ID=' sections.

For more info on custom agenda views see:
http://orgmode.org/org.html#Custom-agenda-views
and for more info on property searches see:
http://orgmode.org/org.html#Matching-tags-and-properties





[O] bug#23365: 25.0.93; org-mode fails on export with include

2016-04-26 Thread Kaushal Modi
This has been fixed in the org-mode git:
http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=44c8cd7136e3fcd1e6bfa08895cac437b7a691fa

@Stefan: I am copying you on this as the above commit that fixes this in
org-mode git was related to a backport commit from emacs git:
http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=ef9637030456b153fd834f4c9202a9264d5ef18d

So probably the same 44c8cd fix has to be applied to the org.el in
emacs-25/master branches too?
-- 

-- 
Kaushal Modi


Re: [O] Bug: Update breaks ox-latex [8.3.4 (8.3.4-42-gae73c7-elpa @ c:/Users/sway/AppData/Roaming/.emacs.d/elpa/org-20160425/)]

2016-04-26 Thread Nick Dokos
Shawn Way  writes:


> I updated the org mode from the org repository, version 20160425,
>
> including org-plus-contrib.  The prior version didn't throw this error.
>
> I've deleted and re-byte compiled the ox-latex.el file, to no avail.
>
> The debug-init gives me:
>
> Debugger entered--Lisp error: (invalid-read-syntax ") or . in a vector")
>

Check your .emacs for suspect characters right after where you load
ox-latex perhaps?

ox-latex hasn't had any changes applied to it since late February, so
it's almost certainly innocent.

>   read(get-file-char)
>
>   require(ox)
>
>   require(ox-latex)
>
>   eval-buffer(# nil "c:/Users/sway/AppData/Roaming/.emacs" 
> nil t)  ; Reading at buffer
> position 9654
>
>   load-with-code-conversion("c:/Users/sway/AppData/Roaming/.emacs" 
> "c:/Users/sway/AppData/Roaming
> /.emacs" t t)
>
>   load("~/.emacs" t t)
>
>   #[0 "\205\266
>
> Any thoughts or suggestions?
>

--
Nick




Re: [O] State of things: Email with orgmode?

2016-04-26 Thread Tory S. Anderson
Gnorb looks really interesting, but is lacking a crucial "using 
it" section on the github [1], so I don't know what it can 
actually do or what a use-case would be. Does it do what org-mime 
does? 


Eric Abrahamsen  writes:


torys.ander...@gmail.com (Tory S. Anderson) writes:

For ages I've been hearing about people doing or wanting email 
with
orgmode. I've been using gnus for years, but am curious as to 
what is

possible with orgmode. My search engines aren't revealing any
explanations, but orgmode navigation combined with the 
composition
possiblities with things like html export and integration with 
orgmode
power seems like  nice potential. Orgmode already has a very 
useful
facility with taking links to Gnus messages, and the highly 
useful org
contacts; what else is out there? Is there a way to write and 
send
emails from orgmode, without just doing copy/paste/attach? 


I've got a package in Elpa called Gnorb, that provides some 
integration

between Org and Gnus. It also includes a function
`gnorb-org-email-subtree' that lets you export a subtree as a 
text or

file, and send it as an email. That might also be useful.






Footnotes: 
[1]  https://github.com/girzel/gnorb


--
Tory S. Anderson
Computational Cognitive Narratologist & Application Developer
http://toryanderson.com



Re: [O] State of things: Email with orgmode?

2016-04-26 Thread John Kitchin
See the variable org-format-latex-options . you might be able to change
it. Maybe something like (untested)

(plist-put org-format-latex-options :html-background "white")


Jeremie Juste writes:

> Hello,
>
> Many thanks for sharing this.
>
>> One of the links between org and email is using org-mime-htmlize which
>> will take your email buffer (using gnus in my case but a message
>> buffer) and create a text+html mime encoded email in which the plain
>> text is parsed as an org file and exported to HTML.
>
>> I don't use this often but I do use it now and again, for instance
>> when a table is a necessary element of the email or if I want to have
>> some LaTeX equations in the email.
>
> \begin{equation}
> y = \sqrt{x}
> \end{equation}
>
>
>
> Do you think Is it possible to invert the colors of the latex images? I use a 
> black
> background and it's impossible to see the latex images.
>
> Best regards,
>
> Jeremie


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] State of things: Email with orgmode?

2016-04-26 Thread Jeremie Juste
Hello,

Many thanks for sharing this.

> One of the links between org and email is using org-mime-htmlize which
> will take your email buffer (using gnus in my case but a message
> buffer) and create a text+html mime encoded email in which the plain
> text is parsed as an org file and exported to HTML.

> I don't use this often but I do use it now and again, for instance
> when a table is a necessary element of the email or if I want to have
> some LaTeX equations in the email.

\begin{equation}
y = \sqrt{x}
\end{equation}



Do you think Is it possible to invert the colors of the latex images? I use a 
black
background and it's impossible to see the latex images.

Best regards,

Jeremie



[O] Bug: Update breaks ox-latex [8.3.4 (8.3.4-42-gae73c7-elpa @ c:/Users/sway/AppData/Roaming/.emacs.d/elpa/org-20160425/)]

2016-04-26 Thread Shawn Way
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-mode mailing list.


I updated the org mode from the org repository, version 20160425,
including org-plus-contrib.  The prior version didn't throw this error.
I've deleted and re-byte compiled the ox-latex.el file, to no avail.

The debug-init gives me:

Debugger entered--Lisp error: (invalid-read-syntax ") or . in a vector")
  read(get-file-char)
  require(ox)
  
byte-code("\300\301!\210\300\302!\210\303\304\305\306\307\310\311\312\313\314\315&\n\207"
 [require ox ox-publish org-export-define-backend latex ((bold . 
org-latex-bold) (center-block . org-latex-center-block) (clock . 
org-latex-clock) (code . org-latex-code) (drawer . org-latex-drawer) 
(dynamic-block . org-latex-dynamic-block) (entity . org-latex-entity) 
(example-block . org-latex-example-block) (export-block . 
org-latex-export-block) (export-snippet . org-latex-export-snippet) 
(fixed-width . org-latex-fixed-width) (footnote-definition . 
org-latex-footnote-definition) (footnote-reference . 
org-latex-footnote-reference) (headline . org-latex-headline) (horizontal-rule 
. org-latex-horizontal-rule) (inline-src-block . org-latex-inline-src-block) 
(inlinetask . org-latex-inlinetask) (italic . org-latex-italic) (item . 
org-latex-item) (keyword . org-latex-keyword) (latex-environment . 
org-latex-latex-environment) (latex-fragment . org-latex-latex-fragment) 
(line-break . org-latex-line-break) (link . org-latex-link) (node-property . 
org-latex-node-property) (paragraph . org-latex-paragraph) (plain-list . 
org-latex-plain-list) (plain-text . org-latex-plain-text) (planning . 
org-latex-planning) (property-drawer . org-latex-property-drawer) (quote-block 
. org-latex-quote-block) (radio-target . org-latex-radio-target) (section . 
org-latex-section) (special-block . org-latex-special-block) (src-block . 
org-latex-src-block) (statistics-cookie . org-latex-statistics-cookie) 
(strike-through . org-latex-strike-through) (subscript . org-latex-subscript) 
(superscript . org-latex-superscript) (table . org-latex-table) (table-cell . 
org-latex-table-cell) (table-row . org-latex-table-row) (target . 
org-latex-target) (template . org-latex-template) (timestamp . 
org-latex-timestamp) (underline . org-latex-underline) (verbatim . 
org-latex-verbatim) (verse-block . org-latex-verse-block) (latex-math-block . 
org-latex-math-block) (latex-matrices . org-latex-matrices)) :export-block 
("LATEX" "TEX") :menu-entry (108 "Export to LaTeX" ((76 "As LaTeX buffer" 
org-latex-export-as-latex) (108 "As LaTeX file" org-latex-export-to-latex) (112 
"As PDF file" org-latex-export-to-pdf) (111 "As PDF file and open" (lambda (a s 
v b) (if a (org-latex-export-to-pdf t s v b) (org-open-file 
(org-latex-export-to-pdf nil s v b))) :filters-alist ((:filter-options . 
org-latex-math-block-options-filter) (:filter-parse-tree 
org-latex-math-block-tree-filter org-latex-matrices-tree-filter)) 
:options-alist ((:latex-class "LATEX_CLASS" nil org-latex-default-class t) 
(:latex-class-options "LATEX_CLASS_OPTIONS" nil nil t) (:latex-header 
"LATEX_HEADER" nil nil newline) (:latex-header-extra "LATEX_HEADER_EXTRA" nil 
nil newline) (:description "DESCRIPTION" nil nil parse) (:keywords "KEYWORDS" 
nil nil parse) (:subtitle "SUBTITLE" nil nil parse) 
(:latex-active-timestamp-format nil nil org-latex-active-timestamp-format) 
(:latex-caption-above nil nil org-latex-caption-above) (:latex-classes nil nil 
org-latex-classes) (:latex-default-figure-position nil nil 
org-latex-default-figure-position) (:latex-default-table-environment nil nil 
org-latex-default-table-environment) (:latex-default-table-mode nil nil 
org-latex-default-table-mode) (:latex-diary-timestamp-format nil nil 
org-latex-diary-timestamp-format) (:latex-footnote-separator nil nil 
org-latex-footnote-separator) (:latex-format-drawer-function nil nil 
org-latex-format-drawer-function) (:latex-format-headline-function nil nil 
org-latex-format-headline-function) (:latex-format-inlinetask-function nil nil 
org-latex-format-inlinetask-function) (:latex-hyperref-template nil nil 
org-latex-hyperref-template t) (:latex-image-default-height nil nil 
org-latex-image-default-height) (:latex-image-default-option nil nil 
org-latex-image-default-option) (:latex-image-default-width nil nil 
org-latex-image-default-width) (:latex-inactive-timestamp-format nil nil 
org-latex-inactive-timestamp-format) (:latex-inline-image-rules nil nil 
org-latex-inline-image-rules) (:latex-link-with-unknown-path-format nil nil 
org-latex-link-with-unknown-path-format) (:latex-listings nil nil 
org-latex-listings) (:latex-listings-langs nil nil org-latex-listings-langs) 
(:latex-listings-options nil nil 

Re: [O] isbn-to-bibtex (from org-ref) fails

2016-04-26 Thread Julien Cubizolles
John Kitchin  writes:

> I found a (save-buffer) in the bibtex entry clean functions and took
> that out. I think it solves this problem.

It's working fine now, thanks.

Regards,

Julien.



Re: [O] State of things: Email with orgmode?

2016-04-26 Thread Eric Abrahamsen
Alan Schmitt  writes:

> On 2016-04-26 09:24, Eric Abrahamsen  writes:
>
>> Alan Schmitt  writes:
>>
>>> On 2016-04-26 04:03, Eric Abrahamsen  writes:
>>>
 I'm using Org from Melpa -- how do we get contrib packages in this case?
>>>
>>> I think you need to get the org-plus-contrib package then.
>>
>> I've got Elpa and Melpa, but no org-plus-contrib -- I did look first!
>> Where did you get that?
>
> Did you add the org repo to package-archives:
> ("org" . "http://orgmode.org/elpa/;)
> ?

I did not, and that's the first I heard of it! I'll give it a shot now,
thanks.

E




Re: [O] State of things: Email with orgmode?

2016-04-26 Thread Stig Brautaset
Eric Abrahamsen  writes:
>>> 1) do I have to load something to have this function? I don't seem to
>>> have it
>>
>> org-mime.el is in org contrib package.  I am not sure how you might be
>> able to get this as it will depend on how you get org in the first
>> place.  Are you using org from git or melpa or from the web site
>> directly?
>
> I'm using Org from Melpa -- how do we get contrib packages in this case?

You need to install Org from their special Elpa:

http://orgmode.org/elpa.html

Stig




Re: [O] State of things: Email with orgmode?

2016-04-26 Thread Alan Schmitt
On 2016-04-26 09:24, Eric Abrahamsen  writes:

> Alan Schmitt  writes:
>
>> On 2016-04-26 04:03, Eric Abrahamsen  writes:
>>
>>> I'm using Org from Melpa -- how do we get contrib packages in this case?
>>
>> I think you need to get the org-plus-contrib package then.
>
> I've got Elpa and Melpa, but no org-plus-contrib -- I did look first!
> Where did you get that?

Did you add the org repo to package-archives:
("org" . "http://orgmode.org/elpa/;)
?

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂ (2016-03, Mauna Loa Obs.): 404.83


signature.asc
Description: PGP signature


Re: [O] State of things: Email with orgmode?

2016-04-26 Thread Eric Abrahamsen
Alan Schmitt  writes:

> On 2016-04-26 04:03, Eric Abrahamsen  writes:
>
>> I'm using Org from Melpa -- how do we get contrib packages in this case?
>
> I think you need to get the org-plus-contrib package then.

I've got Elpa and Melpa, but no org-plus-contrib -- I did look first!
Where did you get that?




Re: [O] State of things: Email with orgmode?

2016-04-26 Thread Eric S Fraga
On Monday, 25 Apr 2016 at 21:02, Marcin Borkowski wrote:
> On 2016-04-25, at 19:41, Eric S Fraga  wrote:
>> I simply change to org mode (e.g. M-x org-mode RET) to compose and then
>> back to message mode (M-x message-mode RET) when ready to htmlize the
>> buffer and send the email.
>
> Wouldn't Lentic help with this?  (https://github.com/phillord/lentic)

Good idea.  But ", t o" to switch into org-mode and ", t m" to switch
back to message mode (I use evil) is not really onerous.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-739-g789412



Re: [O] State of things: Email with orgmode?

2016-04-26 Thread Alan Schmitt
On 2016-04-26 04:03, Eric Abrahamsen  writes:

> I'm using Org from Melpa -- how do we get contrib packages in this case?

I think you need to get the org-plus-contrib package then.

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂ (2016-03, Mauna Loa Obs.): 404.83


signature.asc
Description: PGP signature