[O] org-ref-clean-bibtex-entry and UTF-8

2016-01-13 Thread Julian Burgos
Dear list,

I am using org-ref-clean-bibtex-entry to clean up my biblatex file.  Among
other things, this function detects if there are non-ASCII characters in
each bibtex/biblatex entry.  My file has many non-ASCII characters that
are exported via Latex to pdf with no problems because my setup is in
UTF-8.  Do you know if it is possible to "turn-off" this option in
org-ref-clean-bibtex-entry, so I do not get warnings about non-ascii
characters?

Many thanks,

Julian




Re: [O] Notes on using org-reveal for presentations

2015-07-15 Thread Julian Burgos
Thanks Matt!  I am giving two talks in September and I was already
thinking about trying some of the html exporters instead of using beamer
as always.  I will read your notes in detail.

All the best,

Julian
-- 
Julian Mariano Burgos, PhD
Hafrannsóknastofnun/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is



 Hi folks,

 I've posted some thoughts and code for using org-reveal to make reveal.js
 presentations.  I'm using org2blog to post sections of my emacs-init.lorg!
 -- Not as ably as described here:

 http://endlessparentheses.com/how-i-blog-one-year-of-posts-in-a-single-org-file.html

 but still pretty neat.

 Anyway, my post is here:
 http://matt.hackinghistory.ca/2015/07/11/creating-and-publishing-presentations-with-org-reveal/

 in case it's of interest to anyone.






Re: [O] org-ref helm-bibtex notes

2015-06-17 Thread Julian Burgos
Hi Titus,

I think a very simple template for the notes file would suffice.  I am
using org ref and had originally modified the template by removing the
TODO, simplifying the properties drawer (no need to duplicate all the
biblatex info here) and adding a link to the pdf file, which is very handy
when reading my notes file.

* [[/path/to/pdf/files/BibTeXkey.pdf][BibTeXkey]] Title
:PROPERTIES:
:Custom_ID: BibTeXkey
:END:

Recently I upgraded org-ref and instead of using my own link to the pdf
file, I use a cite statement, which gives me all the goodies from
org-ref (opening the pdf file, accesing Google Scholar, etc.etc.).

* cite:BibTeXkey Title
:PROPERTIES:
:Custom_ID: BibTeXkey
:END:

I have no choice between using drawers or tags.  I have not experienced
slow downs because of using drawers, although tags would make the notes
file look cleaner.  The issue with keys containing colons could be solved
by replacing the colon with some other acceptable character on the tag,
like @ or _.  So a reference with BibTeXkey Smith,Jones 2008 would
get a tag Smith@Jones2008 or Smith_Jones2008.

Julian



 On 2015-06-16 Tue 17:39, Julian Burgos wrote:
 Dear list,

 I have been using org-ref for a while, using reftex to insert citations
 in
 my org documents.  Now I am switching to helm-bibtex, which is pretty
 awesome.  I have a couple of question about the note files.  Org-ref
 uses
 a single file to keep notes (e.g. notes.org), but helm-bibtex assumes
 that
 notes are kept in separate files, one per article.  My questions are:

 a) Do you have a preference in the single file vs multiple files
 question?
  Are advantages/disadvantages?  I tend to prefer the single file option,
 it makes search easy and also I can add TODO items that later I can pull
 out in the agenda view.  With multiple files this would not be as easy.
 Do you agree?

 Hi, I’m the author of helm-bibtex.  There was recently a discussion about
 this on Github:

   https://github.com/tmalsburg/helm-bibtex/issues/40

 Someone convinced me that storing all notes in one file is better and
 there is an experimental (and incomplete) implementation in a topic
 branch:

   https://github.com/tmalsburg/helm-bibtex/tree/note-files

 (Multiple note files will still be possible for users who prefer that.)

 b) Helm-bibtex identifies which references have a note file, adding a
 symbol on the reference list.  Can we make helm-bibtex look into a
 single
 file (say the notes.org file), look for the :Custom_ID: properties of
 the entries, and use that to mark the reference list?  I am teaching
 myself emacs-lisp but this is above my capacity right now.

 Yes, something like that needs to be included.  The unresolved question
 is how BibTeX keys should be stored in the notes file.  I find property
 drawers incredibly clunky and in my experience they can considerably
 slow down Emacs in large org files (that’s the reason why I don’t use
 org-contacts as much as a would like).

 My current favorite format for entries in the notes file is the
 following:

   * Author: Title (year)   :BibTeXkey:
   Here are the notes …

 The only problem I see with this is that BibTeX allows keys to contain
 colons, and a key with a colon would break org’s tag syntax.

 Suggestions welcome.

   Titus



 Many thanks,

 Julian







Re: [O] org-ref helm-bibtex notes

2015-06-17 Thread Julian Burgos
Thanks John.  You are right, although I think having to read too many org
files would make the agenda run slower.  And creates a lot of buffers (one
per file) which makes navigation more complicated.  I always wished that
the agenda would close those buffers.  Anyway, I think that having a
single file is the best option.


 Julian Burgos writes:

 Dear list,

 I have been using org-ref for a while, using reftex to insert citations
 in
 my org documents.  Now I am switching to helm-bibtex, which is pretty
 awesome.  I have a couple of question about the note files.  Org-ref
 uses
 a single file to keep notes (e.g. notes.org), but helm-bibtex assumes
 that
 notes are kept in separate files, one per article.  My questions are:

 a) Do you have a preference in the single file vs multiple files
 question?
  Are advantages/disadvantages?  I tend to prefer the single file option,
 it makes search easy and also I can add TODO items that later I can pull
 out in the agenda view.

 I prefer the single file, for the reasons you describe.

 With multiple files this would not be as easy.
 Do you agree?
 This is not totally true. You can add your directory of org notes to
 your org-agenda-files, e.g.

 (setq org-agenda-files '(~/path/to/org-notes))

 and it will add all org files in that directory to your agenda. If you
 use helm, it is probably easy to search all of the files too.

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






[O] org-ref helm-bibtex notes

2015-06-16 Thread Julian Burgos
Dear list,

I have been using org-ref for a while, using reftex to insert citations in
my org documents.  Now I am switching to helm-bibtex, which is pretty
awesome.  I have a couple of question about the note files.  Org-ref uses
a single file to keep notes (e.g. notes.org), but helm-bibtex assumes that
notes are kept in separate files, one per article.  My questions are:

a) Do you have a preference in the single file vs multiple files question?
 Are advantages/disadvantages?  I tend to prefer the single file option,
it makes search easy and also I can add TODO items that later I can pull
out in the agenda view.  With multiple files this would not be as easy. 
Do you agree?

b) Helm-bibtex identifies which references have a note file, adding a
symbol on the reference list.  Can we make helm-bibtex look into a single
file (say the notes.org file), look for the :Custom_ID: properties of
the entries, and use that to mark the reference list?  I am teaching
myself emacs-lisp but this is above my capacity right now.

Many thanks,

Julian





Re: [O] Organizing and taming hectic Academia work (faculty viewpoint)? Tips or a good guides sought after :)

2015-06-15 Thread Julian Burgos
Hi Ken,

This is a good idea! I will give it a try.  Thanks!

Julian

 Hi Julian,

 On 2015-06-10 at 10:16, Julian Burgos jul...@hafro.is wrote:
 a) I first write in org-mode. Export to Word, either exporting first
 to ODT and then to Word, or to LaTex and then use pandoc to convert
 LaTex to Word. My coauthor can edit the document as he wishes, using
 the Track changes option. Then, I transcribe their edits back into
 the org-mode document. Advantage of this approach: your coauthor
 receives a clean word file, that could include figures, references,
 etc., and he/she uses the tools she likes to edit the file.
 Disadvantage: you have to manually incorporate the changes to the
 org-mode file each time there are edits.

 b) I write the manuscript in org-mode. Then I send the org-mode file
 to my coauthor. Because the org-mode file is just a text file, my
 coauthor can use Word to edit it. I ask him/her *not* to use track
 changes and to save the edited version also as a text file. Then,
 when I receive it I use ediff in emacs to compare both documents and
 incorporate the edits I want. Advantage of this approach: the merging
 of the documents is easy using ediff. Disadvantage: your coauthor has
 to edit a weird-looking document, with markup, code blocks, etc.

 It seems like with a bit of extra (scriptable?) work you could remove both
 disadvantages.

 Why can't you use method (a) above, and then DOCX - Org via pandoc (with
 --accept-all option)?

 I know pandoc introduce some of its own changes to the Org syntax but not
 the document itself. You can get around this. You can remove the
 pandoc-generated changes automagically so that only co-author changes
 appear in Org format, which you can then use with your (b) above and emacs
 ediff.

 Original: Your Org source
 A: Org - DOCX for co-authors (using pandoc)
 B: Org - DOCX - Org (using pandoc).
 C: A - Org (using pandoc and --accept-all-changes)
 D: B-Original

 The difference between B and Original are pandoc-introduced changes that
 you do not want. Ignore/remove these changes from C, call it D and then
 the difference between D and the Original are your co-author comments. Now
 your authors can edit DOCX with Track Changes and you can work on those
 edits with Emacs ediff.

   -k.






Re: [O] Organizing and taming hectic Academia work (faculty viewpoint)? Tips or a good guides sought after :)

2015-06-10 Thread Julian Burgos
Windy, I am a researcher (not in academia, but in a government lab).  I
use emacs and org-mode a lot, for project management, programming (using R
and GRASS), writing papers, keeping notes, etc.etc.
I find that collaborative writing is problematic because most people use
Word, and in most cases will not become enlightened and use emacs.  I have
used two strategies.

a) I first write in org-mode.  Export to Word, either exporting first to
ODT and then to Word, or to LaTex and then use pandoc to convert LaTex to
Word.  My coauthor can edit the document as he wishes, using the Track
changes option.  Then, I transcribe their edits back into the org-mode
document.  Advantage of this approach:  your coauthor receives a clean
word file, that could include figures, references, etc., and he/she uses
the tools she likes to edit the file.  Disadvantage:  you have to manually
incorporate the changes to the org-mode file each time there are edits.

b) I write the manuscript in org-mode.  Then I send the org-mode file to
my coauthor.  Because the org-mode file is just a text file, my coauthor
can use Word to edit it.  I ask him/her *not* to use track changes and
to save the edited version also as a text file.  Then, when I receive it I
use ediff in emacs to compare both documents and incorporate the edits I
want.  Advantage of this approach: the merging of the documents is easy
using ediff.  Disadvantage: your coauthor has to edit a weird-looking
document, with markup, code blocks, etc.

All the best,

Julian

 Speaking as an advisor/teacher, you should do what they want if you want
 them to help you.

 You could ask if they are willing to comment on the pdf, either by hand
 writing on a printed version, or by pdf commenting, or maybe in the
 LaTeX source. But, if that is not what they want, and they cannot work
 with what you give them, you will not get as much feedback as you want,
 and you will end up creating frustration on your end and theirs.

 windy writes:

 Another question, I am a student , I think it is a big problem that how
 to exchange you article with your teacher, because the teacher will
 comment or revise your article once again and again.

 However, Many teachers will not use emacs to write articles and also the
 pdf file is not so convenient to do some modification, how will you deal
 with the problem ?







 在2015年06月09 21时21分, John Kitchinjkitc...@andrew.cmu.edu写道:

 you might also enjoy our youtube video:
 https://www.youtube.com/watch?v=fgizHHd7nOo

 And this one on using org-mode in teaching:
 https://www.youtube.com/watch?v=IsSMs-4GlT8list=FLQp2VLAOlvq142YN3JO3y8w

 and
 https://www.youtube.com/watch?v=cRUCiF2MwP4

 See http://github.com/jkitchin/jmax for my Emacs setup for
 org-mode.

 My only other advice is start learning to program in emacs-lisp. It took
 me about four years to get proficient enough to write org-ref. I learned
 by solving lots of little problems, and building up to bigger
 problems. A lot of those are documented in my blog. Read the emacs and
 emacs-lisp manuals (read them in Emacs or in a browser). They take some
 time, so skip the stuff that doesn't make sense and come back to it
 later if you need to. Consider getting the book at
 https://www.masteringemacs.org. It isn't about org-mode, but it will
 make you better at using Emacs. Consider reading Land of Lisp. It isn't
 about Emacs or Emacs-lisp, but it might interest you in programming in a
 lispy language, and it is a fun read.

 Buy the org-mode book:
 http://www.amazon.com/Org-Mode-Reference-Manual-Organize/dp/9881327709/ref=sr_1_1?ie=UTF8qid=1433855847sr=8-1keywords=org-mode.
 yes,
 it is the same stuff as in the manual, but it is a book you can read
 anywhere anytime.

 Start by learning how to get org-mode to do some things you want. Just
 do one thing a day. Every day.

 You hopefully have 30+ years of career ahead of you, so even if it takes
 a few years or more to learn how to program in emacs-lisp to customize
 your workflows, you still have plenty of time to benefit from it!

 Best wishes,

 Holger Wenzel writes:

 Hi Xebar,



 Xebar Saram zeltakc at gmail.com writes:



 Dear Martin
 Thanks so much for your prompt response. I did ofc do an extensive
 google
 research yet found that as can be seen in your link most entries focus
 on
 either writing papers or general bits an pieces .What i am looking for
 is a
 holistic approach regarding organizing all aspects of academic life and
 to
 hear workflows of other colleagues using org for that



 I'd start with:

 http://kitchingroup.cheme.cmu.edu/blog/2014/08/08/What-we-are-using-org-
 mode-for/

 follow John Kitchin's blog there closely and read everything he posts
 in
 this list.

 Cheers,

 Holger
 z


 On Tue, Jun 9, 2015 at 12:16 AM, M Elwood151 at web.de wrote:
 
 
  Von: Xebar Saram zeltakc at gmail.com
  Datum: Mon, 8 Jun 2015 19:39:14 +0300
  An: org mode emacs-orgmode at gnu.org
  Betreff: [O] Organizing and taming hectic Academia work (faculty
 

Re: [O] confused about Beamer export

2013-05-16 Thread Julian Burgos
Thanks Eric, but I solved the issue already.  I had some errors in my
.emacs file (a mixture of settings for the old and new exporter).

 Julian M. Burgos jul...@hafro.is writes:

 Dear list,

 I am a bit confused about what I have to use the new Beamer
 exporter.  I have customized the org-export-backends variable to include
 the Beamer exporter, and now it shows as an option when I do C-c C-e.  I
 have also created a toy org file:

 Your toy.org file works just fine for me, so long as I add the line

 #+options: h:2

 so that second level headlines are used to define frames.

 Can you provide a debug trace for your error?
 --
 : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
 : in Emacs 24.3.50.1 and Org release_8.0.2-103-gb3a88b







Re: [O] odt export not working

2013-05-07 Thread Julian Burgos
Manfred Lotz manfred.lotz at arcor.de writes:


  Are you calling (require 'ox-odt) somewhere in your config? Or
  configuring `org-export-backends'? ODT export isn't loaded by default,
  you'll have to load it explicitly by one of those two methods.


This should be included in the manual.  From all the export options listed
in the manual (iCalendar, HTML, LaTex, Plain Text, Publish), ODT export is
the only (I think) that is not on by default.  The manual should explain
clearly (perhaps in section 12.9.1) what you need to do to activate this option.

Cheers! :)

Julian








Re: [O] Offer for taking over maintainership

2013-02-14 Thread Julian Burgos
 I called the community riffraffs for a reason.  They are in truth
 riffsraffs.

I have two post-graduate degrees, but I cannot code in elisp so I guess I
am among the worthless ones (riffraff: 1. People regarded as disreputable
or worthless. 2. Rubbish; trash.).  To be honest, I do not care who you
are or what you contributed to the org community.  But I do not like when
people behave like as important a** holes.  So take a break, go out, have
a beer or two, and relax.  You are not that important.  Nobody is.

-- 
Julian Mariano Burgos, PhD
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is




[O] org 8.0 and new exporter ETA?

2013-02-12 Thread Julian Burgos

Dear org-people,

First of all, my thanks to everyone who contributes to this project!  My 
(digital) life orbits around org-mode now.
I am very happy with my current emacs/org-mode set up, but (being a 
permanent tinkerer) I am planning to do some relatively important 
changes, in particular in relationship with exporting to LaTex.  I would 
like to do this after org 8.0 is out with the new exporter. Do we have a 
rough idea of when it will be officially out?  It is a matter of 
weeks, or months?

Many thanks for the answer,

Julian

--
Julian Mariano Burgos, PhD
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is




Re: [O] org 8.0 and new exporter ETA?

2013-02-12 Thread Julian Burgos

Thanks Bastien.  Keep up the good work!

On 02/12/2013 10:30 AM, Bastien wrote:

Dear Julian,

Julian Burgos jul...@hafro.is writes:


First of all, my thanks to everyone who contributes to this project!  My
(digital) life orbits around org-mode now.

:)


I am very happy with my current emacs/org-mode set up, but (being a
permanent tinkerer) I am planning to do some relatively important changes,
in particular in relationship with exporting to LaTex.  I would like to do
this after org 8.0 is out with the new exporter. Do we have a rough idea of
when it will be officially out?  It is a matter of weeks, or months?
Many thanks for the answer,

If we get enough testing against current HEAD of the master branch in
our git repository, I'd say it's a matter of weeks.

In any case, I don't want to delay the release beyond end of March,
as I won't have enough time to dedicate to Org past this date.

HTH,




--
Julian Mariano Burgos, PhD
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is




Re: [O] Newbie question

2013-02-08 Thread Julian Burgos

Hi Ken,

If you do  C-u C-c . you will get an active timestamp with date and 
time. C-u C-c ! will give you an inactive timestamp with date and time.
I also have this code in my .emacs file, so whenever I create a headline 
I get an inactive timestamp automatically.  It should be easy to change 
to get an active timestamp if you want.


;--
;Creating new headlines insert inactive timestamps automatically

(defun bh/insert-inactive-timestamp ()
(interactive)
(org-insert-time-stamp nil t t nil nil nil))

(defun bh/insert-heading-inactive-timestamp ()
(save-excursion
(org-return)
(org-cycle)
(bh/insert-inactive-timestamp)))

(add-hook 'org-insert-heading-hook 'bh/insert-heading-inactive-timestamp)
;-

Enjoy!

--
Julian Mariano Burgos, PhD
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is



On 02/08/2013 12:50 PM, Ken wrote:

Hello all,

I am a relative newbie to org-mode. Right now I use it for todo lists, I
use it in conjunction with the diary, and I use it for
journaling/note-taking. I am sure I am only using it fo a quarter or
less of what it can be used for. Anyway, my question is rather simple.
CTRL-. will allow you to insert a date. However, in my journal I use a
full timestamp. Is there any way using a defined set of keys to insert a
current TIMESTAMP on an entry (say as in a journal entry)?

Thank you
Ken








Re: [O] How to deal with small projects which are often changing their status/ person

2013-01-23 Thread Julian Burgos
Hi Martin,
I think that you should be using tags for this.  For example:

* Project XYZ   :projectxyz:J.Smith:
** TODO Write Text
** WAIT Feedback on Text
** TODO check feedback
** TODO send to original author
** WAIT for Feedback

In this case you are adding a tag with the project name and another with
the author (for example).  Then when you export this to the agenda, or
generate a list of pending tasks, all the subnodes of this tree will
inherit the tags and you will see them associated to each task.

Another option is to use a different file for each project (maybe not too
practical if you have many of them).  When generating a list of task you
get the file name with each task.  If you name the file as your project
(say projectxyz.org), then you know where that task is coming from.  You
can add something like this to your .emacs file so you do not have to add
all these small files by hand to the agenda list:

;
(load-library find-lisp)
(add-hook 'org-agenda-mode-hook (lambda ()
(setq org-agenda-files
  (find-lisp-find-files /home/documents/smallprojects \.org$))
))
;

With this all org files in the smallprojects folder will be added to the
agenda.

Hope this helps...

Julian

-- 
Julian Mariano Burgos, PhD
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is

 Hi,

 I'm working with org-mode to document my work and to keep track of tasks
 and
 projects.

 At the moment there are many little projects where I

 * get a text from someone (or write it myself)
 * have to read and edit it
 * send it oer email to 1 or 2 other colleagues which have to read / edit
 it
 * get it back and check the changes
 * maybe send the text again to the original author
 * then finally release the text for publication

 ... and you imagine, there is not only 1 such text at once but several of
 them.

 I wonder what is an approriate way to keep track of such workflows with
 org-mode..

 I'm using MS Outlook for mails and so when I receive a mail, I store a
 hyperlink pointing to that mail in Outlook.

 For a process like the one above I would have a task

 * TODO Write Text about topic XY and send it to colleague(s)...

 then
 * WAIT Colleage(s): Feedback on Text about topic XY
 * TODO check feedback/changes of Colleagues and edit again, and send for
 approval
 * TODO send to original author
 * WAIT for Feedback of original author

 (if changes, repeat process above)

 * TODO send text to publishing colleague

 or similar...

 I hope it is clear what I mean, there are a lot of small steps and each
 time
 creating a new task takes much time and I have to copy the name of the
 project again and again...

 Maybe it would be better to add all the notes about the progress as notes
 in
 the Logbook and change the Heading of the task each time, but that also
 seems strange to me...

 Would there be a way to make the children inherit automatically a text
 from the project name, e. g.

 * Text about topic XY for publishing in ABC
 ** WAIT John: Feedback on Text about topic XY for publishing in ABC
 ** Send Text about topic XY for publishing in ABC to Ellen for approval
 ...

 in a way that  Text about topic XY for publishing in ABC is filled in
 automatically by a placeholder?

 Or what is your way for tracking such workflows in org-mode?

 Kind regards

 Martin










[O] collaborating between org-mode and MS Word users

2012-12-27 Thread Julian Burgos
Dear list,

I use org-mode to draft papers and reports, using embedded R code and
LaTex snippets.  It is a fantastic tool.  But sometimes I have to
collaborate with less enlighted colleagues who use MS Word.  For now I am
exporting my document to odt, and from there to MS word.  Then, when I get
the manuscript back with comments and edits (usually using the “track
changes” option), I transcribe them to a new new node in my org-mode
document.  This is usually a slow and error-prone process that involves
cutting and pasting text from the edited MS word document back into the
org-mode document, trying to avoid pasting over the LaTex and R snippets. 
When I am done, I end up with a structure that looks something like this.

#+TITLE:  My manuscript
* Version 1
** Introduction
** Methods .
* Version 2
** Introduction
** Methods
..etc.

Of course, I could easily keep each version in a separate org mode file.

I would like to get some suggestions or tips on how to improve this
workflow.  For example:
- Is there a better way to have a non-org mode use to edit/correct a
org-mode document and then bring back the corrections to an org-mode
document?
- What is the best way to compare org-mode nodes/branches (like in the
above example the Version 1 and Version 2 nodes?).  Can I use ediff within
an org-mode file?  Or should I keep separate versions on separate
documents?

All recommendations will be welcomed!

Julian

-- 
Julian Mariano Burgos, PhD
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is




[O] Save-buffer within a code block

2012-09-06 Thread Julian Burgos

Hello fellow Org-mode'rs:

I noticed that now, when editing code in ESS mode (after switching from 
org-mode using C-') I cannot use save-buffer to save any changes into my 
org mode file.  Instead, when doing save-buffer I get prompted for a new 
file name and the only the code block gets saved.  If I want to save 
everything (changes into the entire org mode file), I need to switch 
from ESS to org mode, and then do save-buffer.


Is this a bug or a new feature?  Can I revert back to the previous 
functionality (which was much more convenient)?

Thanks,

Julian

--
Julian Mariano Burgos, PhD
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is




[O] little annoyance

2012-05-24 Thread Julian Burgos

Dear list:

Is there any way to stop org-mode from adding blank spaces on the left 
margin of an R source code block when returning from editing in ESS 
mode?  Here is an example:


1) I create my org mode file with an R source code block:

-start org mode---
* Trial
#+begin_src R
plot(1:10)
#+end_src
-end org mode---

2) I do Ctrl-' to switch to ESS mode, and then again to go back to org mode.

3) The source code block has new spaces'

-start org mode---
* Trial
#+begin_src R
  plot(1:10)
#+end_src
-end org mode---

This is mildly annoying because I edit the source code blocks both in 
ESS and in org-mode, and the code gets misaligned.  Any ideas?

Many thanks,

Julian

--
Julian Mariano Burgos, PhD
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is




[O] flyspell and code blocks

2012-04-23 Thread Julian Burgos

Hello fellow org'ers,

It is possible to make flyspell to ignore (i.e. do not spell check) the 
text within code blocks (I mean blocks of texts separated by #+begin_src 
and #+end src)?  I did my homework but could not find a good answer.

Many thanks,

Julian

--
Julian Mariano Burgos, PhD
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is




Re: [O] table of contents and numbers

2012-04-12 Thread Julian Burgos
Thanks for the answer Nick.  So to get a TOC without numbers I would 
need to edit the TEX file directly, right?


On mið 11.apr 2012 19:00, John Hendy wrote:

On Wed, Apr 11, 2012 at 12:12 PM, Nick Dokosnicholas.do...@hp.com  wrote:

Julian Burgosjul...@hafro.is  wrote:


Dear list,

My apologies for another very basic question.  I'm wondering why I do
not get a table of contents when exporting the following file as pdf

---start org file ---
#+TITLE: Test
#+OPTIONS:  toc:t num:nil

* Part 1
Some text

* Part 2
Some more text
---end org file ---

I do get the TOC when exporting as hmtl, though.


I believe it's because of a rather technical latex limitation: latex
writes TOC entries into a .toc file, which is then read back in when the
\tableofcontents macro is expanded. When you specify num:nil asking for
unnumbered sections, the latex exporter produces \section* markers,
instead of the standard \section markers. But when latex processes
those, it does not add anything to the .toc file. If org added a
\tableofcontents, you would get just the title and an empty TOC. In
order to prevent that, the latex exporter requires that both toc and num
be non-nil - see l.1487 ff in lisp/org-latex.el:

,
|  ...
|  ;; table of contents
|  (when (and org-export-with-toc
|   (plist-get opt-plist :section-numbers))
|(funcall org-export-latex-format-toc-function
| ...))
`

One can work around this by manually adding sections under each headline.

-
#+options: num:nil toc:t

#+text: \tableofcontents

* Introduction
\addcontentsline{toc}{section}{Introduction}
-

Tedious for long documents, but does work.


John


The HTML exporter does this by hand, so to speak, so it is not as
constrained and can do the right thing.

Nick






--
Julian Mariano Burgos, PhD
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is




[O] Updating BibTex file

2012-04-11 Thread Julian Burgos

Dear list,

How can I made org mode / reftex to recognize changes in my BibTex 
file?  Here is the scenario.  I have my default BibTex file defined with 
the reftex-default-bibliography variable.  While working on my org mode 
document I am adding references and everything is working fine.  The 
problem occurs when I edit my BibTex file to add new references (using 
JabRef), but the new references do not show up when I call 
'reftex-citation.

Any ideas?
Thanks,

Julian

--
Julian Mariano Burgos, PhD
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is




[O] table of contents and numbers

2012-04-11 Thread Julian Burgos

Dear list,

My apologies for another very basic question.  I'm wondering why I do 
not get a table of contents when exporting the following file as pdf


---start org file ---
#+TITLE: Test
#+OPTIONS:  toc:t num:nil

* Part 1
Some text

* Part 2
Some more text
---end org file ---

I do get the TOC when exporting as hmtl, though.

Many thanks,

Julian

--
Julian Mariano Burgos, PhD
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is




[O] setting default BibTex file

2012-04-02 Thread Julian Burgos

Dear list,

This should be pretty easy to answer.  I am having some problems 
defining a default BibTex file.  If I put this at the end of my org file,


\bibliographystyle{plain}
\bibliography{/home/julian/Documents/Refs/BibTex/References}

everything works with no problem.  But if I add this to my .emacs file

(setq reftex-default-bibliography 
(quote(home/julian/Documents/Refs/BibTex/References)))


and this to the end of my org file

\bibliographystyle{plain}
\bibliography{}

When I do the LaTex export I get an undefined citations error.
Any ideas?

Julian

--
Julian Mariano Burgos, PhD
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is




Re: [O] problems with LaTex/BibTex

2012-03-30 Thread Julian Burgos

Yes! That was it.  Thanks!!

On fös 30.mar 2012 08:05, suvayu ali wrote:

Hey Julian,

On Fri, Mar 30, 2012 at 03:41, Julian Burgosjul...@hafro.is  wrote:

The References.bib is a BibTex file in the same folder as the test file.
  The citations were entered using RefTex with no problem.  But when
exporting to pdf, I get the following message in the minibuffer:
Exporting to PDF...done, with some errors: [undefined citations].  The
pdf produced had, of course, question marks where the citations should be.

Did you customise your org-latex-to-pdf-process to include bibtex? I use
something like this:

(setq org-latex-to-pdf-process '(pdflatex -interaction nonstopmode %b
 /usr/bin/bibtex %b
 pdflatex -interaction nonstopmode %b
 pdflatex -interaction nonstopmode %b))




--
Julian Mariano Burgos, PhD
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is




Re: [O] buffer-wide tangle filename

2012-03-29 Thread Julian Burgos
Thanks!!  You were right.  The position of the colon was wrong (but is 
still needed), and I had to refresh the local setup.


On fim 29.mar 2012 07:57, Sebastien Vauban wrote:

Hello Julian,

Julian Burgos wrote:

This may be a very simple question.  I want to tangle multiple source code
blocks into a single file.  Instead of using the same output filename as a
block header (e.g. :tangle output.el) in each code block, can I I define a
buffer-wide tangle filename?  Something like this (which does not work)?

#+PROPERTY :tangle output.el

Any ideas?





--
Julian Mariano Burgos, PhD
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is




[O] problems with LaTex/BibTex

2012-03-29 Thread Julian Burgos
Dear list,

I'm having some problems with LaTex exporting and reference lists.  This
is my a quick test:

-- start of org mode file 

#+TITLE: This is a test
* Heading 1
  Some text, some text \cite{Steiniger2009a}.
* Heading 2
  Some other text \cite{Harrington2007}.

\bibliographystyle{plain}
\bibliography{References.bib}

-- end of org mode file 

The References.bib is a BibTex file in the same folder as the test file.
 The citations were entered using RefTex with no problem.  But when
exporting to pdf, I get the following message in the minibuffer:
Exporting to PDF...done, with some errors: [undefined citations].  The
pdf produced had, of course, question marks where the citations should be.

I am using org mode 7.8.06 and Emacs 23.3.1 in Fedora 16 (not sure if that
makes any difference).

Any ideas?
Thanks,

Julian

Julian Mariano Burgos, PhD
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is




Exporting to PDF...done, with some errors: [undefined citation]




[O] buffer-wide tangle filename

2012-03-28 Thread Julian Burgos
Hello everyone,
This may be a very simple question.  I want to tangle multiple source code
blocks into a single file.  Instead of using the same output filename as a
block header (e.g. :tangle output.el) in each code block, can I I define a
buffer-wide tangle filename?  Something like this (which does not work)?

#+PROPERTY :tangle output.el


Any ideas?

Julian





[O] Problems with editing R source code in Linux

2011-09-02 Thread Julian Burgos
Dear list,

I'm having some problems editing source code.  I recently moved from
Windows to Fedora 14 and maybe I'm missing something obvious  If so,
my apologies.

When pressing C-c ' to edit a block of R source code, I get the
following message in the minibuffer: Language mode 'R-mode' fails
whith : Opening input file''

The code block gets opened in an ESS mode buffer, but if make changes
to the code they do not appear on the org-mode buffer (as they
should).  If I try to save from the ESS mode buffer, emacs ask for a
file to save in (instead of just saving the org file).  Finally, when
trying to close the edit buffer and go back to my org file, I get C-c
' is undefined.

Any ideas of what could be going on?  This is a big issue for me, I do
all my work in R from org mode files.

These are my versions of emacs and org-mode:
GNU Emacs 23.2.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.21.4) of
2010-07-08 on x86-10.phx2.fedoraproject.org
Org-mode version 7.7

Thanks for all the help,

Julian

-- 
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is, jmbur...@uw.edu



Re: [O] Problems with editing R source code in Linux

2011-09-02 Thread Julian Burgos
Never mind!! I figured out by combing through my emacs file.  One of
my custom function was making reference to a file using Windows-like
path.  I feel dumb as a rock...

On Fri, Sep 2, 2011 at 2:14 PM, Julian Burgos jmbur...@uw.edu wrote:
 Dear list,

 I'm having some problems editing source code.  I recently moved from
 Windows to Fedora 14 and maybe I'm missing something obvious  If so,
 my apologies.

 When pressing C-c ' to edit a block of R source code, I get the
 following message in the minibuffer: Language mode 'R-mode' fails
 whith : Opening input file''

 The code block gets opened in an ESS mode buffer, but if make changes
 to the code they do not appear on the org-mode buffer (as they
 should).  If I try to save from the ESS mode buffer, emacs ask for a
 file to save in (instead of just saving the org file).  Finally, when
 trying to close the edit buffer and go back to my org file, I get C-c
 ' is undefined.

 Any ideas of what could be going on?  This is a big issue for me, I do
 all my work in R from org mode files.

 These are my versions of emacs and org-mode:
 GNU Emacs 23.2.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.21.4) of
 2010-07-08 on x86-10.phx2.fedoraproject.org
 Org-mode version 7.7

 Thanks for all the help,

 Julian

 --
 Julian Mariano Burgos
 Hafrannsóknastofnunin/Marine Research Institute
 Skúlagata 4, 121 Reykjavík, Iceland
 Sími/Telephone : +354-5752037
 Bréfsími/Telefax:  +354-5752001
 Netfang/Email: jul...@hafro.is, jmbur...@uw.edu




-- 
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is, jmbur...@uw.edu



[O] how to make org-clock-in close the files it opens

2011-08-02 Thread Julian Burgos
Dear list,

When using org-clock-in, all files in my agenda list are opened.  This
makes sense, as org mode is looking for clocks already opened.  But it
is possible to make org mode to close all these files?  I do keep lots
of files in my agenda, and it is a pain to have to close them by hand.
Many thanks,

Julian

-- 
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is, jmbur...@uw.edu



Re: [O] installing the OpenDocumentText Exporter

2011-06-13 Thread Julian Burgos
Hi

I don´t have the M-x list-packages option.  When I do M-x
package-list-packages I get a list of packages, but org-odt is not
there.  Not sure what is the problem.  I´m using emacs 23.3.1 in
windows xp.

In the meanwhile, could you explain me how to install org-odt by
hand, using the conventional tar file?

Many thanks,

Julian


On Mon, Jun 13, 2011 at 4:21 AM, Jambunathan K kjambunat...@gmail.com wrote:
 Julian Burgos jmbur...@uw.edu writes:

 Apologies for the basic question.  I need some help installing the
 OpenDocumentText Exporter using the ELPA (package manager).  I´ve
 added the org-odt repository by adding this to my .emacs file:

 (setq package-archives '((ELPA . http://tromey.com/elpa/;)
                          (gnu . http://elpa.gnu.org/packages/;)
                                                 (org-odt .
 http://repo.or.cz/w/org-mode/org-jambu.git/blob_plain/HEAD:/packages/;)
                                                ))

 but the OpenDocumentText Exporter does not show up in the list of
 available packages.  What I am missing?

 I am not sure what the problem could be at your end. Does the
 archive-contents get downloaded succesfully? Are you able to see
 packages from the other repos?

 Does the package manager report any problems in the *Messages* buffer.

 I ran M-x list-packages with the settings that you have. I see that
 archive-contents file is getting succesfully downloaded.

 I see the following line in the *Packages* buffer.

 --8---cut here---start-8---
  org-odt            20110519     available  OpenDocumentText exporter for 
 Orgmode
 --8---cut here---end---8---

 I see following lines in the *Messages* buffer:

 --8---cut here---start-8---
 Contacting host: tromey.com:80
 Reading [text/plain]... 11k of 11k (100%)
 Reading... done.
 Saving file c:/Documents and Settings/kjambunathan/My Documents/My 
 Data/.emacs.d/elpa/archives/ELPA/archive-contents...
 Wrote c:/Documents and Settings/kjambunathan/My Documents/My 
 Data/.emacs.d/elpa/archives/ELPA/archive-contents

 Contacting host: elpa.gnu.org:80
 Reading [text/plain]... 738 bytes of 726 bytes (102%)
 Reading... done.
 Saving file c:/Documents and Settings/kjambunathan/My Documents/My 
 Data/.emacs.d/elpa/archives/gnu/archive-contents...
 Wrote c:/Documents and Settings/kjambunathan/My Documents/My 
 Data/.emacs.d/elpa/archives/gnu/archive-contents

 Contacting host: repo.or.cz:80
 Saving file c:/Documents and Settings/kjambunathan/My Documents/My 
 Data/.emacs.d/elpa/archives/org-odt/archive-contents...
 Wrote c:/Documents and Settings/kjambunathan/My Documents/My 
 Data/.emacs.d/elpa/archives/org-odt/archive-contents
 --8---cut here---end---8---




 Many thanks,

 Julian

 --




-- 
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is, jmbur...@uw.edu



Re: [O] installing the OpenDocumentText Exporter

2011-06-13 Thread Julian Burgos
Ah! That was it!  I got org-odt installed.

On Mon, Jun 13, 2011 at 1:15 PM, Jambunathan K kjambunat...@gmail.com wrote:
 Julian Burgos jmbur...@uw.edu writes:

 Hi

 I don´t have the M-x list-packages option.  When I do M-x
 package-list-packages I get a list of packages, but org-odt is not
 there.  Not sure what is the problem.  I´m using emacs 23.3.1 in
 windows xp.

 I am assuming that you are using a non-Emacs version of package.el. I
 recommend that you use

 1. This version of

 http://repo.or.cz/w/emacs.git/blob_plain/1a0a666f941c99882093d7bd08ced15033bc3f0c:/lisp/emacs-lisp/package.el

 if you are on Emacs-23

 and

 2. Delete hand installed package.el if you are on Emacs-24.

 In the meanwhile, could you explain me how to install org-odt by
 hand, using the conventional tar file?


 Let me know if you are still having issues after upgrading the
 package.el.

 I will share further instructions with you.

 Jambunathan K.



 Many thanks,

 Julian


 On Mon, Jun 13, 2011 at 4:21 AM, Jambunathan K kjambunat...@gmail.com 
 wrote:
 Julian Burgos jmbur...@uw.edu writes:

 Apologies for the basic question.  I need some help installing the
 OpenDocumentText Exporter using the ELPA (package manager).  I´ve
 added the org-odt repository by adding this to my .emacs file:

 (setq package-archives '((ELPA . http://tromey.com/elpa/;)
                          (gnu . http://elpa.gnu.org/packages/;)
                                                 (org-odt .
 http://repo.or.cz/w/org-mode/org-jambu.git/blob_plain/HEAD:/packages/;)
                                                ))

 but the OpenDocumentText Exporter does not show up in the list of
 available packages.  What I am missing?

 I am not sure what the problem could be at your end. Does the
 archive-contents get downloaded succesfully? Are you able to see
 packages from the other repos?

 Does the package manager report any problems in the *Messages* buffer.

 I ran M-x list-packages with the settings that you have. I see that
 archive-contents file is getting succesfully downloaded.

 I see the following line in the *Packages* buffer.

 --8---cut here---start-8---
  org-odt            20110519     available  OpenDocumentText exporter for 
 Orgmode
 --8---cut here---end---8---

 I see following lines in the *Messages* buffer:

 --8---cut here---start-8---
 Contacting host: tromey.com:80
 Reading [text/plain]... 11k of 11k (100%)
 Reading... done.
 Saving file c:/Documents and Settings/kjambunathan/My Documents/My
 Data/.emacs.d/elpa/archives/ELPA/archive-contents...
 Wrote c:/Documents and Settings/kjambunathan/My Documents/My
 Data/.emacs.d/elpa/archives/ELPA/archive-contents

 Contacting host: elpa.gnu.org:80
 Reading [text/plain]... 738 bytes of 726 bytes (102%)
 Reading... done.
 Saving file c:/Documents and Settings/kjambunathan/My Documents/My
 Data/.emacs.d/elpa/archives/gnu/archive-contents...
 Wrote c:/Documents and Settings/kjambunathan/My Documents/My
 Data/.emacs.d/elpa/archives/gnu/archive-contents

 Contacting host: repo.or.cz:80
 Saving file c:/Documents and Settings/kjambunathan/My Documents/My
 Data/.emacs.d/elpa/archives/org-odt/archive-contents...
 Wrote c:/Documents and Settings/kjambunathan/My Documents/My
 Data/.emacs.d/elpa/archives/org-odt/archive-contents
 --8---cut here---end---8---




 Many thanks,

 Julian

 --


 --




-- 
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is, jmbur...@uw.edu



[O] installing the OpenDocumentText Exporter

2011-06-12 Thread Julian Burgos
Apologies for the basic question.  I need some help installing the
OpenDocumentText Exporter using the ELPA (package manager).  I´ve
added the org-odt repository by adding this to my .emacs file:

(setq package-archives '((ELPA . http://tromey.com/elpa/;)
 (gnu . http://elpa.gnu.org/packages/;)
  (org-odt .
http://repo.or.cz/w/org-mode/org-jambu.git/blob_plain/HEAD:/packages/;)
 ))

but the OpenDocumentText Exporter does not show up in the list of
available packages.  What I am missing?

Many thanks,

Julian


-- 
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is, jmbur...@uw.edu



[O] agenda view opening multiple buffers

2011-03-27 Thread Julian Burgos
Dear list,

When asking for an agenda view (C-c a), org mode opens all files in
the agenda list in individual buffers.  I keep lots of files in my
list (one per project), so having all those buffers open each time I
visit my agenda is pretty annoying.  Is there a way to make org mode
not open each file in a buffer (or close the buffers after reading the
file) when asking for an agenda view?
Thanks,

Julian

-- 
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is, jmbur...@uw.edu



Re: [O] Re: agenda view opening multiple buffers

2011-03-27 Thread Julian Burgos
Thanks.  Using x is good enough for now.  I´ll explore also Michael´s
suggestions.  It would be good to have the agenda open in a buffer
without having all the agenda files opened too.

On Sun, Mar 27, 2011 at 2:21 PM, Michael Markert
markert.mich...@googlemail.com wrote:
 On 27 Mar 2011, Bernt Hansen wrote:
 Julian Burgos jmbur...@uw.edu writes:

 Dear list,

 When asking for an agenda view (C-c a), org mode opens all files in
 the agenda list in individual buffers.  I keep lots of files in my
 list (one per project), so having all those buffers open each time I
 visit my agenda is pretty annoying.  Is there a way to make org mode
 not open each file in a buffer (or close the buffers after reading the
 file) when asking for an agenda view?
 Thanks,

 Julian

 Hi Julian,

 I think 'e' in the agenda is supposed to exit the agenda and close
 automatically opened agenda files.

 It's `x'. But I think Julian meant that the buffers should be closed
 automatically and not open at least as long as the agenda is shown.

 For the original issue I think the following would help:
 #+begin_src emacs-lisp
 (defun project-agenda (optional args keys restriction)
  (interactive)
  (let ((org-agenda-files '(~/project-file1
                            ~/project-file2)))
    (org-agenda args keys restriction)))
 #+end_src

 Or pressing `' in the prompt buffer, for more see (describe-function
 'org-agenda)

 Michael




-- 
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is, jmbur...@uw.edu



[O] Editing source code function name?

2011-03-24 Thread Julian Burgos
Hello fellow org-moders,

We use C-c ' to edit the current code block. I would like to use a
different key combination, but I cannot figure out the name of
function that is called when pressing C-c'.  I (think) I need it to
map the new key combination in my .emacs file.
Thanks for the help,

Julian

-- 
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is, jmbur...@uw.edu



[O] Re: Editing source code function name?

2011-03-24 Thread Julian Burgos
C-h k!  Great tool... you learn something new every day.
Thanks!!

On Thu, Mar 24, 2011 at 12:16 PM, Jambunathan K kjambunat...@gmail.com wrote:
 Julian Burgos jmbur...@uw.edu writes:

 Hello fellow org-moders,

 We use C-c ' to edit the current code block. I would like to use a
 different key combination, but I cannot figure out the name of
 function that is called when pressing C-c'.  I (think) I need it to
 map the new key combination in my .emacs file.
 Thanks for the help,


 Try this in an orgmode buffer:

 C-h k C-c '.

 What do you see?


 Julian

 --




-- 
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is, jmbur...@uw.edu



Re: [O] Re: org-src-fontify-natively makes things very, very slow

2011-03-18 Thread Julian Burgos
Hi Eric,

I have a small function to insert the opening and ending of an R code
block bound to a key, so I always edit the code between a
#+begin_src R and #+end_src R.  I still get a considerable
slowdown, even with an empty document with a single line of code.

Julian


On Fri, Mar 18, 2011 at 8:38 AM, Eric S Fraga e.fr...@ucl.ac.uk wrote:
 Sébastien Vauban wxhgmqzgw...@spammotel.com writes:

 [...]

 Maybe this is (partly?) due to the overlay I added:

 #+begin_src emacs-lisp
                 (overlay-put (make-overlay beg1 block-end)
                              'face 'org-block-background))
 #+end_src

 This could indeed be one cause, especially depending on what this does
 when there is no block-end line, or at least not anywhere near in the
 buffer.  I seem to get a slowdown when I have a situation like this:

 #+begin_example

 [... some text ...]
 #+begin_src somelanguage
 [... text which is part of the source block...]
 point here

 [... lots of other text ...]
 [... including other source blocks]

 #+end_example

 where there is no matching #+end_src or, more precisely, the
 next #+end_src line is one that does not belong to this current source
 block.  Your search (in org.el) for the end of the block assumes that it
 does have the end statement in place already.  I'm not sure how to fix
 this because it's an ill-defined situation.

 It may be worthwhile making the overlay optional?  Although I must admit
 that I like it!

 My solution, by the way, is to insert the #+end_src line immediately
 upon writing a #+begin_src line and then back up a line to start writing
 the code.

 --
 : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
 : using Org-mode version 7.5 (release_7.5.77.g74268)





-- 
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is, jmbur...@uw.edu



[O] org-src-fontify-natively makes things very, very slow

2011-03-17 Thread Julian Burgos
Dear list,

I was very excited to discover org-src-fontify-natively, but I´m not
having a good experience with it.  When it is on, org-mode becomes
very slow while typing into a code block.  This happens regardless of
the size of the file or number of blocks, and the slow down is very
noticeable.  Each keystroke takes about half a second to appear in
screen.  Typing outside of the code blocks everything works fine.
Turning off font-lock-verbose and global-linum-mode did not make any difference.
I´m running OrgMode 7.5 and GNU Emacs 23.2.1. on Windows XP.

Any ideas?

Julian

-- 
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is, jmbur...@uw.edu



Re: [O] Re: org-src-fontify-natively makes things very, very slow

2011-03-17 Thread Julian Burgos
When editing the block in native mode everything works fine.  Closing
the buffer (or even rebooting the computer) had no effect.
I´ll keep this off until is fixed.  It is though a great feature!

2011/3/17 Sébastien Vauban wxhgmqzgw...@spammotel.com:
 Hi all,

 Eric S Fraga wrote:
 Julian Burgos jmbur...@uw.edu writes:
 I was very excited to discover org-src-fontify-natively, but I´m not having
 a good experience with it. When it is on, org-mode becomes very slow while
 typing into a code block. This happens regardless of the size of the file
 or number of blocks, and the slow down is very noticeable. Each keystroke
 takes about half a second to appear in screen. Typing outside of the code
 blocks everything works fine. Turning off font-lock-verbose and
 global-linum-mode did not make any difference. I´m running OrgMode 7.5 and
 GNU Emacs 23.2.1. on Windows XP.

 Any ideas?

 Idem for me. Slow(er) in Org buffer itself.

 If you edit the source code block in its native mode (C-c',
 =org-edit-special=), is it fast or slow?

 Fast(er) in dedicated buffer.

 In any case, this may be related to the thread on slow behaviour
 discussed on this list the past few days.  Does the response improve if
 you kill the buffer and load the file again?

 Maybe this is (partly?) due to the overlay I added:

 #+begin_src emacs-lisp
                (overlay-put (make-overlay beg1 block-end)
                             'face 'org-block-background))
 #+end_src

 in function

 #+begin_src emacs-lisp
 (defun org-fontify-meta-lines-and-blocks (limit)
 #+end_src

 in file org.el.

 Best regards,
  Seb

 --
 Sébastien Vauban






-- 
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is, jmbur...@uw.edu



[Orgmode] inserting images in HTML export

2011-02-21 Thread Julian Burgos
Dear list,

Here is another of my newbie questions.

As many others, I´m exploring ways to export my nice org-mode document
(with R code that generates output and graphs) into word or open
office.  My colleagues do not use org mode or LaTex, so I need to
generate a word or open office document .  It doesn´t have to be
pretty, as it is only for reviewing purposes, but needs to include all
figures and tables.

It seems that the easiest way to go is to export HTML and read it
directly with Word.  My only problem is that I cannot figure out how
to make org mode generate an HTML document with the figures embedded
in it.  Instead, I get hyperlinks to the figures.  I´ve tried adding
this to my emacs file:

(setq org-export-html-inline-images t)

but had no luck.

Here is an example on how I am inserting the images in my org-mode
file.  When exporting to LaTex everything works fine.

#+CAPTION: Estimated effects of bottom type and Modiolus on Actinaria abundance.
#+LABEL: fig:Acgam
#+ATTR_LaTeX: width=14cm
[[./images/Actinaria_gamplots.pdf]]

Many thanks for any guidance,


-- 
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is, jmbur...@uw.edu

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] evaluating all R code blocks (newbie question)

2011-01-20 Thread Julian Burgos
Dear list,

Hopefully this is not too basic, nor has been answered before.

I would like to know if there is away to have alll R code blocks in a
document evaluated automatically (i.e. without query) when exporting
to Latex.  Now I have to answer yes multiple times to the question
Evaluate this R code block in your system every time I do an export,
which is somewhat annoying.
Many thanks,

Julian

-- 
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is, jmbur...@uw.edu

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: evaluating all R code blocks (newbie question)

2011-01-20 Thread Julian Burgos
Many thanks Lawrence.  Yes, I´m aware of the risks, but for now I am
only working with my own files.
Do you know if it is possible to evaluation confirmation as a header
option, so I can left it on but turn it off in my own files?
Thanks again,

Julian

On Thu, Jan 20, 2011 at 3:38 PM, Lawrence Mitchell we...@gmx.li wrote:
 Julian Burgos wrote:
 Dear list,

 Hopefully this is not too basic, nor has been answered before.

 I would like to know if there is away to have alll R code blocks in a
 document evaluated automatically (i.e. without query) when exporting
 to Latex.  Now I have to answer yes multiple times to the question
 Evaluate this R code block in your system every time I do an export,
 which is somewhat annoying.

 See the variable `org-confirm-babel-evaluate'.  Be careful about
 unilaterally setting it to nil in case you receive org files with
 code blocks from people you don't trust.

 Cheers,
 Lawrence
 --
 Lawrence Mitchell we...@gmx.li


 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode




-- 
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is, jmbur...@uw.edu

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: evaluating all R code blocks (newbie question)

2011-01-20 Thread Julian Burgos
Yes, you are right.  For now, I´ll turn confirmation off for R code
only, and keep an eye on .org files from unknown origins.
All the best,

Julian

On Thu, Jan 20, 2011 at 4:00 PM, Lawrence Mitchell we...@gmx.li wrote:
 Julian Burgos wrote:
 Many thanks Lawrence.  Yes, I'm aware of the risks, but for now I am
 only working with my own files.
 Do you know if it is possible to evaluation confirmation as a header
 option, so I can left it on but turn it off in my own files?

 I don't believe it is.  If you think about, this is also a
 security hole, since a malicious user could put the relevant
 header in, even if you've set org-confirm-babel-evaluate to t.

 Cheers,
 Lawrence


 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode




-- 
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is, jmbur...@uw.edu

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Automatically insert inactive timestamps

2010-12-07 Thread Julian Burgos
Dear list,

This is the newbie question of the day.  I would like to get an inactive
time stamp automatically in each new entry in org mode. Could somebody
explain me how to do this?

Many thanks,

Julian

-- 
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is, jmbur...@uw.edu
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode