Re: [O] Trouble exporting inline code blocks

2017-04-10 Thread Charles C. Berry

On Mon, 10 Apr 2017, Richard Stanton wrote:


Here’s a very simple org file:



Some inline Python code: 2 plus 2 is src_python[:session]{2+2}

-

If I put the cursor on the code block and type C-c C-c, I get  nice results 
block containing the answer, 4. So far so good.

I’d like to export just the results to PDF via LaTeX. However, no matter 
what options I pass, the exported PDF file shows both the source and the 
output.



I get this

Some inline Python code: 2 plus 2 is \texttt{4}

in response to C-c C-e C-b l L

Org mode version 9.0.5


HTH,

Chuck

Re: [O] evil-mode and org

2017-04-10 Thread Eric S Fraga
On Monday, 10 Apr 2017 at 12:22, Matt Price wrote:
> I kind of let this thread drop, but I just wanted to say thanks to
> everyone for sharing. I am interested in exploring modal editing,
> maybe in June which, it turns out, is when I *actually* will have free
> time...

Let us know, in due course, how you get on.  Modal editing is
potentially very advantageous but it is very much a personal thing!

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.5-385-g72fc2d


signature.asc
Description: PGP signature


Re: [O] [PATCH] Fix bug in mobile outline path handling

2017-04-10 Thread Nicolas Goaziou
Hello,

Ian Dunn  writes:

> * org-mobile.el (org-mobile-get-outline-path-link): Use a `:' after
> file instead of a `/'

Applied. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH] Ensure test files are opened in Emacs in test-org/fuzzy-links

2017-04-10 Thread Nicolas Goaziou
Hello,

Skip Collins  writes:

> Subject: [PATCH] Ensure test files are opened in Emacs in test-org/fuzzy-links

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou0x80A93738



[O] Trouble exporting inline code blocks

2017-04-10 Thread Richard Stanton
Here’s a very simple org file:



Some inline Python code: 2 plus 2 is src_python[:session]{2+2}

-

If I put the cursor on the code block and type C-c C-c, I get  nice results 
block containing the answer, 4. So far so good.

I’d like to export just the results to PDF via LaTeX. However, no matter what 
options I pass, the exported PDF file shows both the source and the output. 
E.g.,

src_python[:session :exports results]{2+2}
src_python[:session :exports none]{2+2}

Am I missing something? Thanks. By the way, I’m using org mode v. 9.0.5. 

Richard Stanton







Re: [O] Viewing pdf images

2017-04-10 Thread Eric S Fraga
On Monday, 10 Apr 2017 at 16:51, Eduardo Mercovich wrote:
> Hi Marvin.
>
>> I also agree that in terms of resolution (pix per inch ) pdf and 
>> jpg are the same. However, pdf (and SVG) allow the image to be 
>> scaled with little loss in image quality.
>
> Sorry to disagree, but again, pdf images can be vector (like svg) 
> and infinitely scaled or raster (bitmap, as a jpg) and in this 
> case the quality is on the file. The pdf format only adds and 
> envelope around the original jpg image, or in the conversion it 
> can be downscaled.

Totally correct.

And, further, pixels per inch (i.e. resolution) is a property of an
output (e.g. printer or screen) or input device (e.g. camera sensor),
not an inherent property of the bitmap image.  A bitmap file simply has
a size which can be expressed as pixels x pixels.  If you display an
image on a high resolution screen (without scaling) it will appear
smaller than if you display it on a lower resolution screen.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.5-385-g72fc2d


signature.asc
Description: PGP signature


Re: [O] Viewing pdf images

2017-04-10 Thread Eduardo Mercovich

Hi Marvin.

I also agree that in terms of resolution (pix per inch ) pdf and 
jpg are the same. However, pdf (and SVG) allow the image to be 
scaled with little loss in image quality.


Sorry to disagree, but again, pdf images can be vector (like svg) 
and infinitely scaled or raster (bitmap, as a jpg) and in this 
case the quality is on the file. The pdf format only adds and 
envelope around the original jpg image, or in the conversion it 
can be downscaled.


Just to test this you can extract the images from the pdf and 
check their properties. The specific tools depend on your OS of 
choice, but at least in Linux there are many options, some command 
line based and others GUI based.


In my lab we typically save the images in pdf because the most 
biomedical journals don’t accept SVG file format (not yet).


Sure. But why not simply use a jpg or png?
* Journals accept those formats perfectly well, 
* you will see them with their best quality, and

* you can see them in emacs buffers natively.

Just try it and you'll see that -if I understood you ok- you will 
gain in every dimension. :)


Best...


--
eduardo mercovich

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




[O] [PATCH] Ensure test files are opened in Emacs in test-org/fuzzy-links

2017-04-10 Thread Skip Collins
On Fri, Apr 7, 2017 at 11:47 AM, Skip Collins  wrote:
> On Thu, Mar 30, 2017 at 6:50 AM, Nicolas Goaziou  
> wrote:
>> Thank you. Unfortunately, there is not much to do with this. Could you
>> do some debugging when running the faulty test? It may come from
>> something in your configuration.
>
> I think I figured it out. During the fuzzy-links test,
> org-open-at-point is invoked to open a file that was created with
> org-test-with-temp-text-in-file. The temp file does not have a .org
> extension. As a result, my mac attempts to open the file outside of
> emacs, which produces an unexpected result. The solution is to pass an
> argument to org-open-at-point, which ensures that the file is opened
> in emacs. A patch is attached.


0001-Ensure-test-files-are-opened-in-Emacs-in-test-org-fu.patch
Description: Binary data


[O] Manual web page link is not connected properly.

2017-04-10 Thread HyungSuk Ryu
Hello.

In online manual page below, 3rd footnote element, [Indirect buffer] link
is not connected properly.

http://orgmode.org/manual/Global-and-local-cycling.html#Global-and-local-cycling

Best regards,

HyungSuk Ryu


Re: [O] evil-mode and org

2017-04-10 Thread Matt Price
I kind of let this thread drop, but I just wanted to say thanks to everyone
for sharing. I am interested in exploring modal editing, maybe in June
which, it turns out, is when I *actually* will have free time...

thanks everyone!

On Thu, Mar 30, 2017 at 11:48 AM, Eric S Fraga  wrote:

> On Thursday, 30 Mar 2017 at 10:14, Guido Van Hoecke wrote:
> > Eric,
> >
> > Care to share your org-evil mappings?
>
> sure:
>
> #+begin_src emacs-lisp
>   (defun esf/evil-key-bindings-for-org ()
> ;;(message "Defining evil key bindings for org")
> (when (fboundp 'evil-declare-key)
>   ;; normal, motion and visual commands
>   (mapcar (lambda (state)
> (evil-declare-key state org-mode-map
>   "  " 'evil-scroll-down
>   " e" 'org-edit-special
>   " g" 'org-babel-goto-named-src-block
>   " j" 'org-babel-next-src-block
>   " k" 'org-babel-previous-src-block
>   " l" 'org-next-link
>   " n" 'org-babel-next-src-block
>   " p" 'org-babel-previous-src-block
>   " u" 'outline-up-heading
>   "gh" 'outline-up-heading
>   "gj" 'org-forward-heading-same-level
>   "gk" 'org-backward-heading-same-level
>   "gl" 'outline-next-visible-heading
>   "t" 'org-todo ; mark a TODO item as DONE
>   ",e" 'org-export-dispatch
>   ",i" 'org-inlinetask-insert-task
>   ",l" 'org-insert-link
>   ",L" 'org-store-link
>   ",n" 'outline-next-visible-heading
>   ",oa" #'org-annotate-add-note
>   ",od" #'org-annotate-display-notes
>   ",p" 'outline-previous-visible-heading
>   ",r" 'org-ref-insert-cite-link
>   ;; ",t" 'org-set-tags-command
>   ",u" 'outline-up-heading
>   "$" 'org-end-of-line ; smarter behaviour on headlines
> etc.
>   "^" 'org-beginning-of-line ; ditto
>   "-" 'org-ctrl-c-minus ; change bullet style
>   "<" 'org-metaleft ; out-dent
>   ">" 'org-metaright ; indent
>   (kbd "M-l") 'org-metaright
>   (kbd "M-h") 'org-metaleft
>   (kbd "M-k") 'org-metaup
>   (kbd "M-j") 'org-metadown
>   (kbd "M-L") 'org-shiftmetaright
>   (kbd "M-H") 'org-shiftmetaleft
>   (kbd "M-K") 'org-shiftmetaup
>   (kbd "M-J") 'org-shiftmetadown))
>   '(normal motion visual))
>   ;; and these are only for motion and visual so that . does not
> repeat them
>   (mapcar (lambda (state)
> (evil-declare-key state org-mode-map
>   "H" 'org-beginning-of-line ; smarter behaviour on
> headlines etc.
>   ;; "L" 'end-of-line ; do not want "smarter" behaviour on
> headlines etc.
>   "L" 'org-end-of-line ; do not want "smarter" behaviour
> on headlines etc.
>   ))
>   '(motion visual))
>   (evil-declare-key 'insert org-mode-map
> (kbd "") 'hungry-delete-backward
> (kbd "M-l") 'org-metaright
> (kbd "M-h") 'org-metaleft
> (kbd "M-k") 'org-metaup
> (kbd "M-j") 'org-metadown
> (kbd "M-L") 'org-shiftmetaright
> (kbd "M-H") 'org-shiftmetaleft
> (kbd "M-K") 'org-shiftmetaup
> (kbd "M-J") 'org-shiftmetadown)
>   (when (not esf/pandora-p)
> (evil-declare-key 'insert org-mode-map
>   (kbd "") 'hungry-delete-backward
> #+end_src
>
> > One 'conflict' which bites me every time is this:
>
> I cannot help with this unfortunately other than to maybe trying to
> advise the search function...
>
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 25.1.1, Org release_9.0.5-391-g36c7cf
>


[O] problem with bibtex-parse-buffers-stealthily

2017-04-10 Thread Alan Schmitt
Hello,

I'm having `bibtex-parse-buffers-stealthily' fail when there is an
org-mode buffer with a bibtex source block. For instance, if you have
the following block in an org file

#+begin_src bibtex
@article{FernandezGabbay2007,
  number = {6},
  volume = {205},
  pages = {917--965},
  year = {2007},
  journaltitle = {Information \& Computation},
  title = {Nominal rewriting},
  author = {Fernández, Maribel and Gabbay, Murdoch J.},
}
#+end_src

then when the bibtex-parse-buffers-stealthily runs, there is this error:

Error running timer ‘bibtex-parse-buffers-stealthily’:
(wrong-type-argument number-or-marker-p nil)

I tried to debug it, and the problems is that in the list of buffers,
there is one buffer

#

that is in bibtex mode but for which `bibtex-parse-keys' fail. I assume
it is because the source block is not a well formed bibtex file.

Should this be considered an emacs bug or an org-mode bug? I'm using
emacs 25.2.1 and current org-mode-with-contrib.

Thanks,

Alan

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


signature.asc
Description: PGP signature


Re: [O] Plone?

2017-04-10 Thread Roland Everaert
After reading again the article, it seems more related to development
documentation and not blogging.

On Mon, Apr 10, 2017 at 1:10 PM, Michael Welle  wrote:

> Hello,
>
> Roland Everaert  writes:
>
> > Maybe you can have a look at this page:
> >
> > https://docs.plone.org/about/helper_tools.html
> hm, aren't that all specialised editors for ReStructuredText? Now that I
> have an rst file, I fail to import it into the CMS ;(. But that's more
> of a question for the plone people, I guess.
>
> Regards
> hmw
>
>


Re: [O] Plone?

2017-04-10 Thread Michael Welle
Hello,

Roland Everaert  writes:

> Maybe you can have a look at this page:
>
> https://docs.plone.org/about/helper_tools.html
hm, aren't that all specialised editors for ReStructuredText? Now that I
have an rst file, I fail to import it into the CMS ;(. But that's more
of a question for the plone people, I guess.

Regards
hmw



Re: [O] Plone?

2017-04-10 Thread Roland Everaert
Maybe you can have a look at this page:

https://docs.plone.org/about/helper_tools.html

On Mon, Apr 10, 2017 at 11:56 AM, Michael Welle  wrote:

> Hello,
>
> it happens to me that I now have to use a CMS named plone to document
> things I do ;). Has anyone tried to export to plone? Or wants to share
> experiences?
>
> I can use standard html export, change the id of the content div and c&p
> that to the plone content editor. That works OKish. But it would be
> nice, if, for instance, the sections of the Org file would occur in
> plone's navigation (without too much manual labour of course ;)).
>
> Regards
> hmw
>
>


[O] Plone?

2017-04-10 Thread Michael Welle
Hello,

it happens to me that I now have to use a CMS named plone to document
things I do ;). Has anyone tried to export to plone? Or wants to share
experiences? 

I can use standard html export, change the id of the content div and c&p
that to the plone content editor. That works OKish. But it would be
nice, if, for instance, the sections of the Org file would occur in
plone's navigation (without too much manual labour of course ;)).

Regards
hmw



Re: [O] Scatter-gather idea

2017-04-10 Thread Daniel Clemente
On Mon, Apr 3, 2017 at 6:34 AM, Bob Newell  wrote:

>
> Or even simpler: you want to group together a bunch of scattered
> headlines that you now see as being related. Yes, you can do this by
> moving each one around individually, but I'd like a faster method---
> just mark them and relocate them all at once to the top or bottom of the
> buffer.
>

 If you need it fast and simple, and you're in an agenda view, you can use
M-up, M-down to reorder the headlines you see, and this doesn't modify
anything else, just the visual order in this agenda. Then when all the
tasks you want are at the top, you can copy/paste them, or mark them and
move them, etc.