Re: [O] Bug: begin_src org :results replace does not work

2017-05-29 Thread Vikas Rawal
> >> > The problem is that the results you generate is a table with affiliated > keywords NAME and CAPTION and ATTR_[backend]. > > `org-at-table-p' does not recognize that the keywords are followed by a > table. Altering this function might be asking for trouble as it is used > outside babel. > >

[O] Bug: begin_src org :results replace does not work

2017-05-28 Thread Vikas Rawal
Why does the replace keyword not work? It prepends the results. I have tried both ":results value replace" and ":results output replace". I am on org-version 9.0.7 Vikas #+NAME: one #+BEGIN_SRC org :results value replace export both ,#+NAME: table-yield ,#+CAPTION: Simple table created using

[O] multicolumn cells in latex export

2016-11-05 Thread Vikas Rawal
Two years ago, Eric Schulte had shared some most useful code snippets (https://lists.gnu.org/archive/html/emacs-orgmode/2014-08/msg00113.html ). This included an export filter (code pasted below) that provided a very useful

Re: [O] member-ignore-case: Wrong type argument: stringp, nil

2016-10-18 Thread Vikas Rawal
> >>> On 12-Oct-2016, at 9:10 am, Vikas Rawal >>> wrote: >>> >>> Wrong type argument: stringp, nil >> >> >> Debug gives me this: >> >> Debugger entered--Lisp error: (wrong-type-argument stringp nil) > > I guess t

Re: [O] member-ignore-case: Wrong type argument: stringp, nil

2016-10-11 Thread Vikas Rawal
> On 12-Oct-2016, at 9:10 am, Vikas Rawal > wrote: > > Wrong type argument: stringp, nil Debug gives me this: Debugger entered--Lisp error: (wrong-type-argument stringp nil) compare-strings(nil 0 nil "CAPTION" 0 nil t) member-ignore-case(nil ("CAPTION"

[O] member-ignore-case: Wrong type argument: stringp, nil

2016-10-11 Thread Vikas Rawal
I get this message when trying to export an org file (with embedded source code blocks) to latex: member-ignore-case: Wrong type argument: stringp, nil How do I go about figuring out what exactly is going wrong? I have tried to isolate the problem by removing stuff from the file, to see when d

Re: [O] latex_class_options

2016-09-15 Thread Vikas Rawal
Sorry, please ignore. I did something dumb. My apologies. Vikas > On 15-Sep-2016, at 5:59 pm, Vikas Rawal > wrote: > > I have a latex class defined as follows > > (add-to-list 'org-latex-classes > '(("pulsememoir" "\\documentc

[O] latex_class_options

2016-09-15 Thread Vikas Rawal
I have a latex class defined as follows (add-to-list 'org-latex-classes '(("pulsememoir" "\\documentclass{memoir}" ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}"

Re: [O] Emacs movement keys

2016-08-29 Thread Vikas Rawal
> On 29-Aug-2016, at 6:55 pm, John Kitchin wrote: > >> You know you're an Emacs user when... > > You select some text in MS Word and Type C-w to cut it... and are very > unhappy when Word closes... Story of emacs users on OS X... Vikas

[O] :exports not being respected

2016-08-09 Thread Vikas Rawal
I have a with just the following header, and it is not respecting :exports in my R source blocks. The pdf file created has source code as well as the results. What is wrong? Has the syntax changed again? I have not done anything with org-export-babel-evaluate. #+TITLE: Title of this document #+

Re: [O] error while upgrading to 8.3.5

2016-07-25 Thread Vikas Rawal
* I cleaned up permissions to some directories and did a make install, which went fine. * Now when I do a “make up2”, I get two errors. FAILED test-ob/indented-cached-org-bracket-link FAILED test-org-colview/columns-summary * Output of BTEST_RE=columns-summary make test Test test-org-

Re: [O] error while upgrading to 8.3.5

2016-07-25 Thread Vikas Rawal
> >> I did the usual "make up2" in my git repository but got the following >> error (just pasting the tail of the log): > > Note that "make up2" doesn't upgrade to 8.3.5, as subject suggests, but > moves to the head of the development version, i.e., something like > 9.0-alpha. hmm. Let me deal w

[O] error while upgrading to 8.3.5

2016-07-24 Thread Vikas Rawal
I did the usual "make up2" in my git repository but got the following error (just pasting the tail of the log): — Ran 634 tests, 633 results as expected, 1 unexpected (2016-07-25 06:07:28+0530) 7 expected failures 1 unexpected results: FAILED test-org-colview/columns-summary mk/targets

Re: [O] Unable to resolve link: nil

2016-07-22 Thread Vikas Rawal
> >> Working on long, complex documents, I sometimes have a wrongly pointed >> link. And when I try to export it, I get the error: "Unable to resolve >> link: nil”. Is there a straightforward way to find out which link is >> not resolving? > good question ;). I spent half an hour this week in a si

Re: [O] Unable to resolve link: nil

2016-07-22 Thread Vikas Rawal
> >> >> (untested) >> >> Does org-lint help? > > Oh wow! > org-lint helped identify several errors but this problem remains. Vikas

Re: [O] Unable to resolve link: nil

2016-07-22 Thread Vikas Rawal
> > (untested) > > Does org-lint help? Oh wow! Thanks. Vikas

[O] Unable to resolve link: nil

2016-07-22 Thread Vikas Rawal
Working on long, complex documents, I sometimes have a wrongly pointed link. And when I try to export it, I get the error: "Unable to resolve link: nil”. Is there a straightforward way to find out which link is not resolving? Vikas

Re: [O] Cross-reference to Tables and Figures in Latex export is broken

2016-06-12 Thread Vikas Rawal
I updated org, and now :exports results has stopped working, and I am getting both the code and the results in my output!!! V. > On 13-Jun-2016, at 9:25 am, Vikas Rawal > wrote: > > This must be a result of some recent update. > > When I export to pdf via xelatex, c

[O] Cross-reference to Tables and Figures in Latex export is broken

2016-06-12 Thread Vikas Rawal
This must be a result of some recent update. When I export to pdf via xelatex, cross references to Tables and Figures in my org document get messed up. Table/Figure numbers in cross-references are wrong. Has anyone else faced this? Vikas

Re: [O] Trouble evaluating R source code blocks with C-c C-c

2016-05-30 Thread Vikas Rawal
io-economic variables\",\n dep.var.labels = c(\"Per capita calorie intake\",\"Log of per capita calorie intake\"),\n se=list(NULL,robust_se,robust_se2),\n omit=\"state\",\n model.numbers=FALSE,\n report = \"vct*\&qu

Re: [O] Trouble evaluating R source code blocks with C-c C-c

2016-05-29 Thread Vikas Rawal
> > Vikas, can you edit the `sit-for' to `sleep-for' in > > `org-babel-comint-eval-invisibly-and-wait-for-file' > > and `eval-defun' the result and see if that has any effect? > Sorry, given my limited ability with lisp, I do not really understand. Could you please spell out what do I have t

Re: [O] Trouble evaluating R source code blocks with C-c C-c

2016-05-29 Thread Vikas Rawal
cv1,cv3,by=\"State\")->t\nmerge(t,cv2,by=\"State\")->t\nmerge(t,statecode,by.x=\"State\",by.y=\"State.code.68\",all.x=TRUE)->t\nt$State.68[t$State==99]<-\"India\"\nround(t$grouped_cv,4)->t$grouped_cv\nround(t$adjusted_cv,4)->t$adjusted_cv\nroun

Re: [O] Trouble evaluating R source code blocks with C-c C-c

2016-05-29 Thread Vikas Rawal
) (:comments . "") (:shebang . "") (:cache . "no") (:padline . "") (:noweb . "no") (:tangle . "no") (:exports . "results") (:results . "replace scalar latex") (:hlines . "no") (:session . "type2"

Re: [O] Trouble evaluating R source code blocks with C-c C-c

2016-05-28 Thread Vikas Rawal
> On 28-May-2016, at 7:57 pm, William Denton wrote: > > On 28 May 2016, Vikas Rawal wrote: > >> Thanks John. Appreciate that you cared to respond to such a vague query. I >> am at a loss with this one. It does not happen all the time. I think it >> happens when

Re: [O] Trouble evaluating R source code blocks with C-c C-c

2016-05-28 Thread Vikas Rawal
like. > > I think my typical go-to is to wipe ESS and re-download/make... That's > all I'm good for without more info. > > > Sorry! > John > > On Thu, May 26, 2016 at 9:33 AM, Vikas Rawal > wrote: >> I face a strange problem with evaluating R source

[O] Trouble evaluating R source code blocks with C-c C-c

2016-05-26 Thread Vikas Rawal
I face a strange problem with evaluating R source code blocks. Occasionally, they take much longer to produce the results when I try to evaluate them with C-c C-c. On the other hand, if I do C-c ‘, go to a temporary R buffer, and evaluate the code, everything works fine. In face, when I use C-c

Re: [O] Using tramp to run R source code blocks on remote server

2016-04-21 Thread Vikas Rawal
> >> I am trying to run R source code blocks on a remote server (defined in my >> ~/.ssh/config as cesp). >> >> I am facing several problems. >> >> 1. The following sample block, when used with ":results value" does not >> give any results. >> >> #+NAME: level1 >> #+begin_src R :results val

[O] Using tramp to run R source code blocks on remote server

2016-04-21 Thread Vikas Rawal
I am trying to run R source code blocks on a remote server (defined in my ~/.ssh/config as cesp). I am facing several problems. 1. The following sample block, when used with ":results value" does not give any results. #+NAME: level1 #+begin_src R :results value :exports results :colnames yes

Re: [O] Export org file to pdf: unable to resolve link

2016-02-12 Thread Vikas Rawal
> On 11-Feb-2016, at 6:36 pm, John Hendy wrote: > > On Thu, Feb 11, 2016 at 4:36 AM, Nicolas Goaziou > wrote: >> Hello, >> >> Sergio Bacelar writes: >> >>> Yes, that will work but I hoped that the file >>> won't need to be changed to be exported to >>> pdf. >> >> You may ask for an upstre

Re: [O] adding attributes to tables in results

2015-11-21 Thread Vikas Rawal
John, Just curious. What advantage do you see in adding these attributes to the code block, and not directly to the result? Vikas > On 21-Nov-2015, at 11:34 pm, John Kitchin wrote: > > Thanks. That gets me pretty close to what I want. > > Charles C. Berry writes: > >> On Sat, 21 Nov 2015,

Re: [O] visual-fill-column-mode with org

2015-11-08 Thread Vikas Rawal
> Another option would be to use auto-fill-mode to keep your text > paragraphs within your desired width, without affecting tables. > I do not like auto-fill-mode inserting hard returns at fill-column. This creates problems for version control, as sentences cannot be correctly identified. I w

Re: [O] visual-fill-column-mode with org

2015-11-08 Thread Vikas Rawal
> Another option would be to use auto-fill-mode to keep your text > paragraphs within your desired width, without affecting tables. > I do not like auto-fill-mode inserting hard returns at fill-column. This creates problems for version control, as sentences cannot be correctly identified. I w

Re: [O] visual-fill-column-mode with org

2015-11-08 Thread Vikas Rawal
> >> I would like to use visual-fill-column-mode with my org >> files. However, this has a peculiar problem that org tables also start >> wrapping at fill-column. Does anyone use visual-fill-column-mode with >> org and has found a way of telling it to ignore lines starting with a >> |? > > Hardl

[O] visual-fill-column-mode with org

2015-11-07 Thread Vikas Rawal
I would like to use visual-fill-column-mode with my org files. However, this has a peculiar problem that org tables also start wrapping at fill-column. Does anyone use visual-fill-column-mode with org and has found a way of telling it to ignore lines starting with a |? Thanks, Vikas

Re: [O] A book produced using Org

2015-09-21 Thread Vikas Rawal
> Where is your Emacs+OrgMode configuration file? > Have added details of my emacs setup to README.md in the repo. Vikas

Re: [O] A book produced using Org

2015-09-21 Thread Vikas Rawal
I have put the source files at https://github.com/vikasrawal/endingmalnutrition The repository does not contain the logo files and the cover files. These were not created in org. But everything else is there. Thanks everyone for all the lovel

Re: [O] A book produced using Org

2015-09-21 Thread Vikas Rawal
> > The publisher usually works with InDesign, but was willing to let me deal > with production of the print-ready PDF if I could meet her specifications. > > Properties of the PDF mentions both Emacs and org mode :-) :) > > How did you get MinionPro into LaTeX? > I use xelatex. Vikas

Re: [O] A book produced using Org

2015-09-19 Thread Vikas Rawal
> > Beautiful! I would love to see the org file! How did emacs perform which such > huge file? > Emacs had no trouble whatsoever. The main file is 9313 lines. I turned off evaluation of code blocks at export time. Many of the code blocks download data from FAO and other websites before using

Re: [O] A book produced using Org

2015-09-19 Thread Vikas Rawal
> On 20-Sep-2015, at 4:20 am, Pascal Fleury wrote: > > Great! Congrats! > > I was actually wondering: you are 3 authors. How did you collaborate, in > practice ? There was a thread about using org for collaborative work, but it > seemed to end in discussing other tools... > Was it plain git/e

[O] A book produced using Org

2015-09-19 Thread Vikas Rawal
I am happy to share with fellow Orgers my recent book — Ending Malnutrition: from commitment to action — published by the Food and Agriculture Organisation of the United Nations, Rome and Tulika Books, New Delhi (http://www.fao.org/3/a-i4921e.pdf ), The boo

Re: [O] caption inside threeparttable

2015-09-01 Thread Vikas Rawal
> > Hi, > > Vikas Rawal writes: > >> I have a table like below. How can I get the caption inside >> threeparttable? Keeping caption outside threeparttable makes it go >> wider than the table width. > > Next time please also include desired output. >

[O] caption inside threeparttable

2015-09-01 Thread Vikas Rawal
I have a table like below. How can I get the caption inside threeparttable? Keeping caption outside threeparttable makes it go wider than the table width. Vikas #+NAME: energy-cost-uk #+CAPTION: I have a long caption that is wider than the table and it goes beyond the table much to my dislike

Re: [O] Latex/Table: horizontal line spanning some cells

2015-08-29 Thread Vikas Rawal
> > For now you'd have to go with a filter or maybe use other means to produce > a table. In the past, when I have needed more complex tables I've usually > used a mix of Hmisc in R, babel and some Emacs-lisp to clean it up... Not > so nice. At this stage, I think I will just manually fix the

[O] Latex/Table: horizontal line spanning some cells

2015-08-29 Thread Vikas Rawal
In a table, I would like some horizontal lines that span only some columns, and not the whole width. My document has to be exported to latex, in which you need something like \cline{4-5} for a horizontal line spanning columns 4-5 (http://tex.stackexchange.com/questions/8549/how-can-i-draw-a-hori

Re: [O] Org to LaTeX export of tables

2015-08-24 Thread Vikas Rawal
> On 24-Aug-2015, at 5:06 am, Vikas Rawal > wrote: > > Please see the sample org table below, and the way it is exported in LaTeX. > > I do not want \begin{center} and \end{center}. Having those results in some > extra space between the table and the notes. > Sor

[O] Org to LaTeX export of tables

2015-08-23 Thread Vikas Rawal
Please see the sample org table below, and the way it is exported in LaTeX. I do not want \begin{center} and \end{center}. Having those results in some extra space between the table and the notes. How can I get rid of it? My org version: Org-mode version 8.3 (release_8.3-3-gb5f5d6) Vikas #+

Re: [O] Trouble with autofill mode

2015-08-03 Thread Vikas Rawal
> > > On 2015-08-03 at 23:11, Vikas Rawal wrote: >> But I guess one has to have some compromise somewhere :) > > Another compromise would be to stop using autofill mode and use > visual-line-mode or something else. I recently made the switch after many > years of a

Re: [O] Trouble with autofill mode

2015-08-03 Thread Vikas Rawal
>> >> >> I am sorry for not being clear. \index{} may have to be used inline in >> a para since the index has to pick up the right page where a term >> appears. So you want to put it as close as possible to the keywords. >> > > So put it as close as possible to the keywords: > > --8<--

Re: [O] Trouble with autofill mode

2015-08-03 Thread Vikas Rawal
>> >> Hello, >> This StackExchange question might help you out: >> https://emacs.stackexchange.com/questions/12392/prevent-fill-paragraph-from-breaking-latex-citations-in-org-mode >> (Only if I got your question right...) > > Thanks very much. This should work. Let me try to modify it to my use c

Re: [O] Trouble with autofill mode

2015-08-02 Thread Vikas Rawal
> On 03-Aug-2015, at 8:37 am, Vicente Vera wrote: > > Hello, > This StackExchange question might help you out: > https://emacs.stackexchange.com/questions/12392/prevent-fill-paragraph-from-breaking-latex-citations-in-org-mode > (Only if I got your question right...) Thanks very much. This shoul

Re: [O] Trouble with autofill mode

2015-08-02 Thread Vikas Rawal
> >> I am inserting LaTeX \index{} commands in an org document to create an >> index. Almost everything works fine. But I am having trouble with >> auto-fill-mode. It often puts a line break in the middle of an index >> entry, and then it does not work. >> >> That is, \index{my name} is sometimes

[O] Trouble with autofill mode

2015-08-02 Thread Vikas Rawal
I am inserting LaTeX \index{} commands in an org document to create an index. Almost everything works fine. But I am having trouble with auto-fill-mode. It often puts a line break in the middle of an index entry, and then it does not work. That is, \index{my name} is sometimes broken into \ind

[O] Trouble with auto-fill-mode

2015-08-02 Thread Vikas Rawal
I am inserting LaTeX \index{} commands in an org document to create an index. Almost everything works fine. But I am having trouble with auto-fill-mode. It often puts a line break in the middle of an index entry, and then it does not work. That is, \index{my name} is sometimes broken into \ind

[O] Latex index using makeidx

2015-08-01 Thread Vikas Rawal
I am adding index entries in an org document, to be used with makeidx latex package. While the usual \index commands are working without any problem, I was wondering if anyone knows of an existing emacs utility that would add an autocomplete kind of facility (on the basis of previous entries) wh

Re: [O] Specify org-latex-pdf-process for a single file?

2015-07-20 Thread Vikas Rawal
Thanks all. I was not familiar with this way of defining local variables. Just checked the relevant part of the manual. Very useful. Thanks, Vikas > On 20-Jul-2015, at 3:59 pm, Eric S Fraga wrote: > > On Monday, 20 Jul 2015 at 07:05, Vikas Rawal wrote: >> How do I specif

[O] Specify org-latex-pdf-process for a single file?

2015-07-19 Thread Vikas Rawal
How do I specify org-latex-pdf-process for a single file? I am working on a book manuscript, where I need to run makeindex and biber, along with xelatex. That is not normally needed in every document. Can I org-latex-pdf-process in the document itself? Vikas

Re: [O] \\ in headlines

2015-05-06 Thread Vikas Rawal
> On 06-May-2015, at 9:44 pm, Ken Mankoff wrote: > > > Recent update means you have to put it in a macro... > > #+TITLE: Foo @@latex:\\@@ Bar > > Or: > #+MACRO: NEWLINE @@latex:\\@@ @@html:@@ > #+TITLE: Foo {{{NEWLINE}}} Bar > > https://emacs.stackexchange.com/questions/255/new-line-in-title

[O] \\ in headlines

2015-05-06 Thread Vikas Rawal
Isn’t \\ in headlines expected to cause a line break? It gets exported in LaTeX to $\backslash$ Is this intended behaviour? Thanks, Vikas

Re: [O] org-latex question

2015-04-29 Thread Vikas Rawal
>> >>>You have num:2, so subsubsections are not TOC'ed, so they don't get >>>the alternative. If you set it to 3, all should work. >>> >>> That is what we have been discussing. There are situations where you >>> do not want a headline to appear in TOC, but still want the ALT_TITLE >>> use

Re: [O] org-latex question

2015-04-28 Thread Vikas Rawal
> On 28-Apr-2015, at 1:17 pm, Vikas Rawal > wrote: > > >> On 28-Apr-2015, at 1:16 pm, Nicolas Goaziou wrote: >> >> Vikas Rawal writes: >> >>>>> [fn:3] aksjd kajshd kahsd >>>> >>>> Fixed in 88ea2ced0e38646d393e

Re: [O] org-latex question

2015-04-28 Thread Vikas Rawal
> On 28-Apr-2015, at 1:16 pm, Nicolas Goaziou wrote: > > Vikas Rawal writes: > >>>> [fn:3] aksjd kajshd kahsd >>> >>> Fixed in 88ea2ced0e38646d393e038bc81d6a0d45b8dcd6. Thank you. >>> >>> >>> >> The second and thi

Re: [O] org-latex question

2015-04-27 Thread Vikas Rawal
> You have num:2, so subsubsections are not TOC'ed, so they don't get > the alternative. If you set it to 3, all should work. > That is what we have been discussing. There are situations where you do not want a headline to appear in TOC, but still want the ALT_TITLE used. It is now possible in org

Re: [O] org-latex question

2015-04-27 Thread Vikas Rawal
> > [fn:3] aksjd kajshd kahsd > > Fixed in 88ea2ced0e38646d393e038bc81d6a0d45b8dcd6. Thank you. > > > The second and third headings are getting exported as: \subsection*[Heading 2]{Heading 2\footnote{aksjdlkjaslkjd}} I do not think the * should be there. Vikas

Re: [O] org-latex question

2015-04-27 Thread Vikas Rawal
> >> In the document (manuscript of a book) that I am working, ALT_TITLE now >> works in most cases. However, ALT_TITLE does not work for headlines in >> Appendices, which come after >> >> \begin{appendices} > > Are you sure the problem isn't on the LaTeX side? Where does the > appendices

Re: [O] org-latex question

2015-04-26 Thread Vikas Rawal
> >> True. This is because org-latex-headline is written this way: >> >> , >> | (if (and numberedp opt-title >> | ;; ^^^ ^ why this? Maybe there's a good reason... >> | (not (equal opt-title full-text)) >> | (string-match "\\`\\(.*?[^*]\\){" sectio

Re: [O] Marking/highlighting text temporarily

2015-04-24 Thread Vikas Rawal
> On 25-Apr-2015, at 6:22 am, John Kitchin wrote: > > Inspired by this conversation, I hacked up this functional comment link: > > http://kitchingroup.cheme.cmu.edu/blog/2015/04/24/Commenting-in-org-files/ > > > It h

Re: [O] Marking/highlighting text temporarily

2015-04-24 Thread Vikas Rawal
> > [...] > >> Why use footnotes when you can use todonotes? > > Good question! > > It's personal preference: I prefer footnotes as I am often using narrow > margins and anything more than a boxed footnote number is too > much... However, it is trivial to change the export template to use > to

[O] Marking/highlighting text temporarily

2015-04-23 Thread Vikas Rawal
I am revising a long book manuscript, and would like to mark parts of text (not just the headlines) just to remind myself that these need to be dealt with. What could be an the easy way of doing it? Vikas

Re: [O] org-latex question

2015-04-12 Thread Vikas Rawal
> >>> See :ALT_TITLE: property. >>> >> >> ALT_TITLE seems to work only for those headlines that appear in the >> Table of Contents. While that is the main purpose, this does not have >> to be necessarily the case. In the present case, I need it because >> LaTeX would not accept a footnote to a

Re: [O] org-latex question

2015-04-12 Thread Vikas Rawal
> >> How do I get a headline to be exported like this? >> >> >> \section[Effect on staff turnover]{An analysis of the >> effect of the revised recruitment policies on staff >> turnover at divisional headquarters} >> >> >> That is, with an extra short-title to be used in Table of Contents and

Re: [O] Cannot insert footnote here

2015-04-11 Thread Vikas Rawal
> >> The function org-footnote--allow-reference-p seems to be restrictive. >> Does it need to be so restrictive? >> >> 1) Why not allow a footnote at the beginning of a line? >> (unless (bolp) ... > > It would be a footnote definition, not a footnote reference > >> 2) Why not allow a foot

[O] org-latex question

2015-04-11 Thread Vikas Rawal
How do I get a headline to be exported like this? \section[Effect on staff turnover]{An analysis of the effect of the revised recruitment policies on staff turnover at divisional headquarters} That is, with an extra short-title to be used in Table of Contents and other running heads? Vikas

Re: [O] Writing a letter with orgmode, hints ?

2015-04-04 Thread Vikas Rawal
> > I'd like to write letters and convert/export to something like PDF to > be printed and sent. > > Is there something to achieve that easily directly in an orgmode > document ? http://orgmode.org/worg/exporters/koma-letter-export.html

Re: [O] org-babel source code :fonts serif not working

2015-03-26 Thread Vikas Rawal
> > #+BEGIN_SRC R > png(filename="filename.png",width=1200,height=700,fonts="serif") > tryCatch({ > your plot goes here > }, > error=function(e){ > plot(x=-1:1, y=-1:1, type='n', xlab='', ylab='', axes=FALSE) > text(x=0, y=0, labels=e$message, co

[O] org-babel source code :fonts serif not working

2015-03-25 Thread Vikas Rawal
The following code does not produce image with serif fonts for me. It used to work earlier but it seems the behaviour has changed. Could anyone confirm. #+BEGIN_SRC R :results output graphics :exports results :file filename.png :width 1200 :height 700 :fonts serif <> #+END_SRC Org-version: Org

Re: [O] Table caption in Latex export with :float nil

2015-03-12 Thread Vikas Rawal
>> >> We need to consider the scenario that if we need a captioned table >> without a floating environment, what is the right way of obtaining >> it. > > Is that a question? A right approach is to use the float package as you > did. I don't like it cause it redefines floats. Another right appr

Re: [O] Table caption in Latex export with :float nil

2015-03-11 Thread Vikas Rawal
> >> Is :float deprecated? > > No but caption takes priority. I'm working on this case, but my > dev. computer is not well at the moment. > We need to consider the scenario that if we need a captioned table without a floating environment, what is the right way of obtaining it. That is needed

Re: [O] Table caption in Latex export with :float nil

2015-03-10 Thread Vikas Rawal
Source: citet:anjani2014 | | | | Is :float deprecated? Vikas > On 11-Mar-2015, at 7:46 am, Vikas Rawal > wrote: > > I need to insert a table in an mdframed box, for which I need to turn off > :float. The following, however, does not give me the capti

[O] Table caption in Latex export with :float nil

2015-03-10 Thread Vikas Rawal
I need to insert a table in an mdframed box, for which I need to turn off :float. The following, however, does not give me the caption: #+name: milk-consumption-india #+attr_latex: :float nil :environment tabular :caption \caption{\label{milk-consumption-india}Average consumption of milk, India,

Re: [O] Problem with relative paths of links in export

2015-02-24 Thread Vikas Rawal
> > Actually, it is a bit weird. The latex export is correct. But link in the pdf > file does not open. Perhaps something wrong with the way links work in pdf > files (I have tried skim and adobe readers). > > Does not look like fault of org-mode. > > My apologies. > Oops, my bad. I used wr

Re: [O] Problem with relative paths of links in export

2015-02-24 Thread Vikas Rawal
> >> I have an old org file, with some source blocks that create a table with >> some hyperlinks like >> [[file:../receipts/2015/02/aj140212_1.pdf][19998-DUPLT]] >> >> (the file is in receipts subdirectory of the parent directory). >> >> Export from the org file used to work fine. But jus

[O] Problem with relative paths of links in export

2015-02-23 Thread Vikas Rawal
I have an old org file, with some source blocks that create a table with some hyperlinks like [[file:../receipts/2015/02/aj140212_1.pdf][19998-DUPLT]] (the file is in receipts subdirectory of the parent directory). Export from the org file used to work fine. But just now, these paths are

[O] mdframed blocks for latex export

2015-02-22 Thread Vikas Rawal
In a document I am preparing using Org-mode, I need to create some “boxes” containing text, tables and figures. In LaTeX, mdframed seems to be the way to go. Is there a way to do it in Org-mode? How do I define something like #+begin_mdframed Contents of the box go here #+end_mdframed Would ap

Re: [O] Citations, continued

2015-02-02 Thread Vikas Rawal
Org-ref is very functional and has so far been able to deal with much of my needs. So, I just hope we are not trying to fix something that is not broken. The real need in the context of citations is to somehow extend the bibtex/biblatex integration to other export formats (odt/html, most impor

Re: [O] exporting zotxt or orgref links to HTML and ODF

2015-01-29 Thread Vikas Rawal
there is (one day) a full org export to docx > solution. I am not that experienced with the ODT export, so i don't know > what the state of citation support in those are. > > Luckily that is not something I need often, but a robust org to docx > export would be helpful to many! &g

Re: [O] exporting zotxt or orgref links to HTML and ODF

2015-01-29 Thread Vikas Rawal
> > The conversion is not perfect, but it gets pretty far. Probably not far > enough to use for production except in the simplest cases. > > John, If your main objective is support for citations, why not go from Org to LaTeX, and then use Pandoc to convert from LaTeX to DocX? Is there an adva

Re: [O] exporting zotxt or orgref links to HTML and ODF

2015-01-28 Thread Vikas Rawal
> > With the latest version of org-ref, I can automate export from org > through markdown to docx via pandoc like this: Great job, once again! Vikas

Re: [O] exporting zotxt or orgref links to HTML and ODF

2015-01-27 Thread Vikas Rawal
> > My question: does anyone yet have a workflow that lets them export directly > to HTML or ODT? In my experience, exporting from Org to LateX, and then using pandoc to convert to odt works better than converting directly from Org to odt. This is particularly the case if you are using cita

Re: [O] Org-mode to feed a database

2015-01-04 Thread Vikas Rawal
> > It is possible, but not worth the effort. > > Even with moderately experienced users, you will be amazed at how > org-files can get mangled by users. In a recent course I taught, I used > links for some data entry; the links stored data as properties in a > headline. Even then a handful of u

Re: [O] org tables into R?

2015-01-02 Thread Vikas Rawal
> Michael Gauland mailto:mikely...@gmail.com>> writes: >> I want to use an R block to manipulate data from an org table, but I'm not >> getting what I expect. >> >> >> >> What am I doing wrong? > > I believe, that this is a bug that has been reported already [1] and is > still open. > The

Re: [O] Org-mode to feed a database

2014-12-30 Thread Vikas Rawal
> > Have you considered the Emacs Widget library? > Thanks. Did not know about this. Very interesting. Vikas

Re: [O] Org-mode to feed a database

2014-12-30 Thread Vikas Rawal
>> >> 2. In my case, people who would enter the data into org files would >> not have used emacs before. So, there is a learning curve. Is it worth >> it? Or should one just build a web-based graphic application for such >> people to use? >> > > My knee-jerk reaction was: Use Django, not org - b

[O] Org-mode to feed a database

2014-12-28 Thread Vikas Rawal
This is, in all likelihood, a crazy idea. Please excuse me for that. I often need to get a number of people enter complex survey data into a database using some kind of forms. The forms I need are fairly complex (with several nested grids, for example). I need radio-buttons and drop-down menus-

[O] noweb syntax and R

2014-12-26 Thread Vikas Rawal
The examples given on the page below do not work for me. http://orgmode.org/worg/org-contrib/babel/intro.html#meta-programming-language It seems there has been some change in the way results from one source block are called into another (R) source code block. Vikas

Re: [O] Evaluating R source code line by line

2014-12-15 Thread Vikas Rawal
> > > For your use case, I would suggest adding print() calls in strategic > places in your long-running code, which will appear in the R buffer to > let you know how it’s progressing. > I don’t quite understand everything you wrote. But this would be helpful for my test case. Will use. Thank

Re: [O] Evaluating R source code line by line

2014-12-13 Thread Vikas Rawal
On 13-Dec-2014, at 3:42 pm, Daniele Pizzolli wrote: > Look at: > http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html > > Use ESS to step through evaluation line-by-line > >Use C-c ' to visit the edit buffer for your code block >Use ess-eval-line-and-step to evaluate each

[O] Evaluating R source code line by line

2014-12-12 Thread Vikas Rawal
I have an R source code blocks called with the ":results value” option. I evaluate the code with C-c. When I do that, in my R session buffer, I get to see several + + + until the final value is obtained, and then the final value is shown, and inserted in my Org buffer. I was wondering if there

Re: [O] File local variables

2014-12-11 Thread Vikas Rawal
>> >> I can’t confirm, in the sense that including that line in a file sets >> the buffer-local value of org-export-babel-evaluate to nil. >> >> If that variable isn’t having the effect of suppressing evaluation, >> that sounds like a bug, but it’s not clear that that is what is going >> on. Can

Re: [O] File local variables

2014-12-11 Thread Vikas Rawal
> I used to disable evaluation of source code when exporting by using the > following as the first line: > > ;; -*- mode: Org; org-export-babel-evaluate: nil; -*- > > This is not working any more. Has something changed? > > My org-version is: Org-mode version 8.3beta (release_8.3beta-614-gc10

Re: [O] Possible bug with Org Babel source code blocks and ESS integration

2014-12-11 Thread Vikas Rawal
> I just pushed a change to master (398286a) which should fix this issue, > and one other I discovered along the way. These bugs may have been > dislodged by Nicolas’s recent rework of this code. (Not that I’m > complaining – the new code seems a lot pleasanter, even with a couple > transitory bu

<    1   2   3   4   5   >