Re: [O] How to stop org delete surrounding newline when adding headlines?

2017-03-10 Thread Shiyao Ma
Hi, Yes, I've tried with '((heading . auto)). '((heading . auto)) opens the possibility of inserting newline, which is not desirable for me. On Sat, Mar 11, 2017 at 1:21 AM, Nicolas Goaziou wrote: > Hello, > > Shiyao Ma writes: > > > I don't want org to automatically insert newline when add

Re: [O] can't see all export options on laptop screen

2017-03-10 Thread Nick Dokos
Uwe Brauer writes: >> Hi! > >> Did you check the instructions given in the very first line in the >> export dispatcher window? > > Gosh, uhh reading sometimes really helps, thanks sorry for that, BTW I > can't see the epub exporter > There is an epub option under the ox-pandoc expor

[O] Modification to `org-attach' allowing attaching from URL

2017-03-10 Thread Wojciech Gac
Hello, I wrote a tiny change of the `org-attach' function that allows to attach a file from a URL (downloading it in the process). I chose a binding of 'C-c C-a u' for this. I've updated the Texi documentation as well. Regards, Wojtek From 1477e86e1721d7a3db4bf871032c970d9f3259ac Mon Sep 17 00:00

[O] SOLVED (was: workflow, matlab+latex in org file)

2017-03-10 Thread Uwe Brauer
>>> "Uwe" == Uwe Brauer writes: >>> "John" == John Kitchin writes: >> I get the right wrapper around the results block in the org-file. I did >> have to add :exports results >> to the header to get it to export though. > Thanks ok the whole message you sent me I can now copy int

Re: [O] workflow, matlab+latex in org file

2017-03-10 Thread Uwe Brauer
>>> "John" == John Kitchin writes: > I get the right wrapper around the results block in the org-file. I did > have to add :exports results > to the header to get it to export though. Thanks ok the whole message you sent me I can now copy into a org file and export it to latex, very nic

Re: [O] org-mode markup vs rst for general content

2017-03-10 Thread Alan L Tyree
On 11/03/17 07:32, Samuel Wales wrote: On 3/10/17, Eric S Fraga wrote: I would say Markdown if you are collaborating with someone not familiar with Emacs. The Pandoc version will do a surprising amount. Org-mode for nearly everything else, but if you need more, go on to LaTeX. Excellent summa

Re: [O] can't see all export options on laptop screen

2017-03-10 Thread Uwe Brauer
> Hi! > Did you check the instructions given in the very first line in the > export dispatcher window? Gosh, uhh reading sometimes really helps, thanks sorry for that, BTW I can't see the epub exporter

Re: [O] adjustment of schedules in org

2017-03-10 Thread Jorge Morais Neto
On 9 March 2017 at 14:17, Eric Abrahamsen wrote: > You're probably looking for the `org-log-reschedule' option: that will > let you leave a stamp or take a note if you change the scheduled date of > an option. > > I know that would end up doubling the size of my org files. :) Also org-log-redeadl

Re: [O] workflow, matlab+latex in org file

2017-03-10 Thread John Kitchin
I get the right wrapper around the results block in the org-file. I did have to add :exports results to the header to get it to export though. John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburg

Re: [O] can't see all export options on laptop screen

2017-03-10 Thread Marco Wahl
Hi! > This sounds pathetic but it is true: when I try to export from org to > some other format the window which presents the options is only > displayed around 50 % of all possibilities, however I cannot scroll > down. > > Any idea what to do?? Usually what is presented is what I use most of > t

Re: [O] New markup for revising manuscripts

2017-03-10 Thread John Kitchin
You can wait for it... make a colored link ;): http://kitchingroup.cheme.cmu.edu/blog/2016/11/04/New-link-features-in-org-9/#org1bc1061 The example there has an html export defined, but you could as easily define a latex exporter. It has some limitations, like it might not reliably work on mu

Re: [O] workflow, matlab+latex in org file

2017-03-10 Thread Uwe Brauer
> On 03/10/2017 11:08 AM, Uwe Brauer wrote: > You need to change "#+BEGIN_LaTeX" to "#+begin_export latex" and > "#+END_LaTeX" to "#+end_export" for Org 9.0 and above. Thanks, very much, I never understand what is the benefit of those changes which break backward compatibility (or forwa

Re: [O] workflow, matlab+latex in org file

2017-03-10 Thread Uwe Brauer
> On Friday, 10 Mar 2017 at 16:08, Uwe Brauer wrote: > [...] > You may need to add ":exports results" to the src line. > Also, you should also modify the code to wrap the output in an equation > environment: > disp('\begin{equation}') > disp(ltxjac) > disp('\end{equati

[O] can't see all export options on laptop screen

2017-03-10 Thread Uwe Brauer
Hi This sounds pathetic but it is true: when I try to export from org to some other format the window which presents the options is only displayed around 50 % of all possibilities, however I cannot scroll down. Any idea what to do?? Usually what is presented is what I use most of the time, but n

Re: [O] New markup for revising manuscripts

2017-03-10 Thread Kaushal Modi
I use this macro to highlight text in html/latex(pdf): #+MACRO: COLOR @@html:$2latex:\textcolor{$1}{$2}@@ This is from https://github.com/fniessen/org-macros/blob/master/README.org Example use: {{{COLOR(red, This information is important.)}}} It doesn't though highlight the text in red in o

Re: [O] New markup for revising manuscripts

2017-03-10 Thread Eric Abrahamsen
"Doyley, Marvin M." writes: > Hi there, > > When revising manuscripts, I usually highlight the changes (response to > reviewer) in red. I use typically do this as follows: > (1) #+latex_header: \newcommand{\response}[1]{\textcolor{red}{#1}} > (2) \response{changes) > > Is there a more elegant wa

[O] New markup for revising manuscripts

2017-03-10 Thread Doyley, Marvin M.
Hi there, When revising manuscripts, I usually highlight the changes (response to reviewer) in red. I use typically do this as follows: (1) #+latex_header: \newcommand{\response}[1]{\textcolor{red}{#1}} (2) \response{changes) Is there a more elegant way to do this ? It would be nice if I could

Re: [O] org-mode markup vs rst for general content

2017-03-10 Thread Samuel Wales
On 3/10/17, Eric S Fraga wrote: >> I would say Markdown if you are collaborating with someone not familiar >> with Emacs. The Pandoc version will do a surprising amount. Org-mode >> for nearly everything else, but if you need more, go on to LaTeX. > > Excellent summary. the pandoc version of ...

Re: [O] Bug: Filtering agenda by top parent headline causes emacs to hang [9.0.5 (9.0.5-elpaplus @ /Users/links_world/.emacs.d/elpa/org-plus-contrib-20170210/)]

2017-03-10 Thread Adrian Bradd
Hi, Nicolas Goaziou writes: > Hello, > > Adrian Bradd writes: > >> Running deafult agenda (M-x org-agenda followed by a) and then sorting >> by top parent headline (^) causes emacs to hang. Expected agenda to filter >> entries based on top parent headline. Hanging isn't specific to a top >> pa

Re: [O] feature proposal, add prefix and suffix to orgtbl matrix

2017-03-10 Thread Uwe Brauer
> Uwe Brauer writes: > Then you need two placeholders, one for each matrix. > You can: > \[ > A= > % BEGIN RECEIVE ORGTBL test > \begin{pmatrix} >6 & 7 \\ > & \\ >8 & \\ >9 & \\ > \end{pmatrix} > % END RECEIVE ORGTBL test

Re: [O] feature proposal, add prefix and suffix to orgtbl matrix

2017-03-10 Thread Nicolas Goaziou
Uwe Brauer writes: > Look at this > > > % BEGIN RECEIVE ORGTBL test > \[ > \begin{pmatrix} > 6 & 7 \\ > & \\ > 8 & \\ > 9 & \\ > \end{pmatrix} > \] > % END RECEIVE ORGTBL test > \begin{comment} > > #+ORGTBL: SEND test orgtbl-to-latex-matrix :splice nil :skip 0 > | 6 | 7 | > > | | | > > |

Re: [O] Writing exams

2017-03-10 Thread Doyley, Marvin M.
Thanks I really appreciate this, I also use the exam style. Concerning the orgfile, if you have one for a multi part question that would be great. Cheers, M --- Sent from my iPhone I apologize in advance for any typos or spellings errors On Mar 9, 2017, at 3:31 PM, Thomas Hunter mailto:thunt..

Re: [O] org-mode markup vs rst for general content

2017-03-10 Thread Eric S Fraga
On Friday, 10 Mar 2017 at 16:14, Uwe Brauer wrote: > Now this is interesting. I have been using LaTeX for the last 20 years > or even more, always with (X)Emacs + AuCTex. While I see the benefits of > org mode (especially its excellent table support) I see its deficits (in > my opinion) when it com

Re: [O] workflow, matlab+latex in org file

2017-03-10 Thread Eric S Fraga
On Friday, 10 Mar 2017 at 16:08, Uwe Brauer wrote: "John" == John Kitchin writes: > > Hi John, > > Quite some time ago you send me this code of yours. It somehow > disappeared in my mail and only by now I tried it out, great, really > > Only one question > I copied your code in a org file,

Re: [O] workflow, matlab+latex in org file

2017-03-10 Thread Scott Randby
On 03/10/2017 11:08 AM, Uwe Brauer wrote: "John" == John Kitchin writes: > > Hi John, > > Quite some time ago you send me this code of yours. It somehow > disappeared in my mail and only by now I tried it out, great, really > > Only one question > I copied your code in a org file, execut

Re: [O] org-mode markup vs rst for general content

2017-03-10 Thread Uwe Brauer
>>> "John" == John Kitchin writes: > It is on Melpa I think: > https://melpa.org/#/ox-clip Right, thanks, works nicely!

Re: [O] feature proposal, add prefix and suffix to orgtbl matrix

2017-03-10 Thread Uwe Brauer
> Hello, > Uwe Brauer writes: > Is it really needed? You could send both tables within the same > environment, couldn't you? No I can't Look at this % BEGIN RECEIVE ORGTBL test \[ \begin{pmatrix} 6 & 7 \\ & \\ 8 & \\ 9 & \\ \end{pmatrix} \] % END RECEIVE ORGTBL test \begin{c

Re: [O] org-mobile-push breaks currently open org-agenda

2017-03-10 Thread Nicolas Goaziou
Aaron Jensen writes: > Thank you for the tip. Here is the trace: > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > set-buffer(nil) > (save-current-buffer (set-buffer buffer) buffer-undo-list) > (let ((--cline (org-current-line)) (--cmd this-command) (--buf1 > (current-bu

Re: [O] How to stop org delete surrounding newline when adding headlines?

2017-03-10 Thread Nicolas Goaziou
Hello, Shiyao Ma writes: > I don't want org to automatically insert newline when adding headlines, so > I set this: > > org-blank-before-new-entry '((heading . nil) (plain-list-item . nil)) > > But turns out, org *aggressively* delete the existing newlines when I press > ctrl-return. > > > How t

Re: [O] feature proposal, add prefix and suffix to orgtbl matrix

2017-03-10 Thread Nicolas Goaziou
Hello, Uwe Brauer writes: > Around two weeks Rasmus suggested to use > > > > #+ATTR_LATEX: :mode math :environment pmatrix :math-suffix \times > :math-prefix \mathbf{y}= > | a | b | > | c | d | > #+ATTR_LATEX: :mode math :environment pmatrix > | 1 | 2 | > | 3 | 4 | > > I

Re: [O] org-mode markup vs rst for general content

2017-03-10 Thread John Kitchin
It is on Melpa I think: https://melpa.org/#/ox-clip On Fri, Mar 10, 2017 at 11:24 AM Uwe Brauer wrote: > >>> "John" == John Kitchin writes: > >> Sometimes I just use ox-clip to copy org-mode into word with > formatting. >> It works pretty well for simple things. > > I looked around for

Re: [O] org-mobile-push breaks currently open org-agenda

2017-03-10 Thread Aaron Jensen
Hi, > On Mar 10, 2017, at 8:20 AM, Nicolas Goaziou wrote: > > Hello, > > Could you use Org uncompiled (C-u M-x org-reload)? your backtrace is > hardly usable. Thank you for the tip. Here is the trace: Debugger entered--Lisp error: (wrong-type-argument stringp nil) set-buffer(nil) (save-cu

Re: [O] org-mode markup vs rst for general content

2017-03-10 Thread Uwe Brauer
>>> "John" == John Kitchin writes: > Sometimes I just use ox-clip to copy org-mode into word with formatting. > It works pretty well for simple things. I looked around for ox-clip. This is not a package available in elpa, melpa and friends. I only found https://github.com/jkitchin/scimax

Re: [O] org-mobile-push breaks currently open org-agenda

2017-03-10 Thread Nicolas Goaziou
Hello, Could you use Org uncompiled (C-u M-x org-reload)? your backtrace is hardly usable. Also, would you mind sending your message as plain test? It seems to be HTML-only. Regards, -- Nicolas Goaziou

Re: [O] How to stop org delete surrounding newline when adding headlines?

2017-03-10 Thread Nicolas Goaziou
Hello, Narendra Joshi writes: > I am getting Arithmetic Error with Emacs HEAD, while opening > `org-agenda'. > I think it's because of the zero in time stamps. (See > <2017-01-21 Sat ++0d>" ) I cannot reproduce it on recent Org. Could you update yours and try again? Regards, -- Nicolas Goaz

Re: [O] org-mode markup vs rst for general content

2017-03-10 Thread Uwe Brauer
>>> "John" == John Kitchin writes: > Over the past few years I have looked at pandoc a few times: > http://kitchingroup.cheme.cmu.edu/blog/2014/07/17/Pandoc-does-org-mode-now/ > http://kitchingroup.cheme.cmu.edu/blog/2015/01/29/Export-org-mode-to-docx-with-citations-via-pandoc/ > ht

Re: [O] Bug: Filtering agenda by top parent headline causes emacs to hang [9.0.5 (9.0.5-elpaplus @ /Users/links_world/.emacs.d/elpa/org-plus-contrib-20170210/)]

2017-03-10 Thread Nicolas Goaziou
Hello, Adrian Bradd writes: > Running deafult agenda (M-x org-agenda followed by a) and then sorting > by top parent headline (^) causes emacs to hang. Expected agenda to filter > entries based on top parent headline. Hanging isn't specific to a top > parent headline. I cannot reproduce it. Cou

Re: [O] workflow, matlab+latex in org file

2017-03-10 Thread Uwe Brauer
>>> "John" == John Kitchin writes: Hi John, Quite some time ago you send me this code of yours. It somehow disappeared in my mail and only by now I tried it out, great, really Only one question I copied your code in a org file, executed the src sections and obtained: > #+begin_src matlab

Re: [O] Problems with displaying inline images

2017-03-10 Thread Eric S Fraga
On Friday, 10 Mar 2017 at 13:21, Julian M. Burgos wrote: > Do'oh! It wasn't an org-mode issue. The figures where bitmaps and I did not > have bmp in the image-file-name-extensions variables. Sorry for the > noise! Glad you sorted it! -- Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) signature.asc D

Re: [O] How to stop org delete surrounding newline when adding headlines?

2017-03-10 Thread Narendra Joshi
Hi, I am getting Arithmetic Error with Emacs HEAD, while opening `org-agenda'. I think it's because of the zero in time stamps. (See <2017-01-21 Sat ++0d>" ) Here is the trace: Debugger entered--Lisp error: (arith-error) org-closest-date(#("<2017-01-21 Sat ++0d>" 0 21 (fontified nil org-cat

Re: [O] org-mode markup vs rst for general content

2017-03-10 Thread Saša Janiška
Alan L Tyree writes: > I have also written in rst: it is a slightly richer language out of > the box with provisions for sidebars, cautions, etc, but unless you > really need those things, I would stick with org-mode. I find the > syntax of rst to be very fiddly. Most of the special effects can b

Re: [O] org-mode markup vs rst for general content

2017-03-10 Thread John Kitchin
Over the past few years I have looked at pandoc a few times: http://kitchingroup.cheme.cmu.edu/blog/2014/07/17/Pandoc-does-org-mode-now/ http://kitchingroup.cheme.cmu.edu/blog/2015/01/29/Export-org-mode-to-docx-with-citations-via-pandoc/ http://kitchingroup.cheme.cmu.edu/blog/2015/06/11/ox-pandoc-

Re: [O] org-mode markup vs rst for general content

2017-03-10 Thread Eric S Fraga
On Thursday, 9 Mar 2017 at 23:27, Alan L Tyree wrote: [...] > I would say Markdown if you are collaborating with someone not familiar > with Emacs. The Pandoc version will do a surprising amount. Org-mode > for nearly everything else, but if you need more, go on to LaTeX. Excellent summary.

Re: [O] Problems with displaying inline images

2017-03-10 Thread Julian M. Burgos
Do'oh! It wasn't an org-mode issue. The figures where bitmaps and I did not have bmp in the image-file-name-extensions variables. Sorry for the noise! Julian M. Burgos writes: > Thanks Eric. I did read the description, and my link do not have any > associated text. It is something else. If I

Re: [O] org-mode markup vs rst for general content

2017-03-10 Thread Uwe Brauer
> On 10/03/17 09:03, Saša Janiška wrote: > The only problem that I have had is converting org-mode to Word files > as required by my publisher. The ODT export module is fiddly and often > chokes on my longer documents. When it does choke, it is hard to trace > the problems. Markdow

Re: [O] Problems with displaying inline images

2017-03-10 Thread Julian M. Burgos
Thanks Eric. I did read the description, and my link do not have any associated text. It is something else. If I evaluate (print image-types) I get the following: (imagemagick png gif tiff jpeg xpm xbm pbm postscript). And if I evaluate for example (image-type-available-p 'jpeg) I get "t". But