Search and replace excluding code blocks?

2024-01-29 Thread Vikas Rawal
Hi all, Is it possible to search and replace a regex/string in an org file excluding the code blocks from its scope? Say, I want to replace all opening quotes (") by backticks(``) in the text but not in the code blocks. Is there a way one could achieve that? Thanks, Vikas

Re: Regression in latex export of tables?

2023-11-02 Thread Vikas Rawal
On 03/11/2023 07:58, Vikas Rawal wrote: > Earlier version gives me this: > \begin{center} > \begin{tabular}{ll} > (a,b) & open interval\\\empty > [0,1] & closed interval\\\empty It was changed to avoid your inconvenience: https://list.orgmode.org/874jw2conh@posteo.net

Re: Regression in latex export of tables?

2023-11-02 Thread Vikas Rawal
On Thursday, November 02, 2023 14:59 IST, "Fraga, Eric" wrote:  On Wednesday, 1 Nov 2023 at 19:04, Vikas Rawal wrote: > I am sorry, but I do not understand what are you pointing at. This is > what I get: > > > \begin{center} > \begin{tabular}{ll} > (a,b

Re: Regression in latex export of tables?

2023-11-01 Thread Vikas Rawal
On 01/11/2023 10:43, Vikas Rawal wrote: > Both give this strage [0pt] at the end of every line of the table. > > ​​Is this by design? This seems to be something recent. Am I missing > something. If you believe that it is a regression then try to export something like | (a,b) | o

Re: Regression in latex export of tables?

2023-11-01 Thread Vikas Rawal
I am seeing a peculiar problem, and I would appreciate if somebody could check whether this is a bug or I am missing something. The following table exports with a [0pt] at the end of each line.I can confirm that the problem disappears if I move to the following version of org-mode: commit

Regression in latex export of tables?

2023-10-31 Thread Vikas Rawal
Hi all, I am seeing a peculiar problem, and I would appreciate if somebody could check whether this is a bug or I am missing something. The following table exports with a [0pt] at the end of each line. * Test | A | B | C | |---+---+---| | 1 | 2 | 3 | |   |   |   | \section{Test}

Re: LaTeX export for Org Mode Documents written in Indic Languages

2023-01-07 Thread Vikas Rawal
> > > I have an Org file with some of my > transcriptions (because of Emacs's awesome language support) but I am > unable to org-export these files to pdf. I suppose I must install some > latex packages, but I have not been able to find any documentation for > the same. I dont really know latex, I

Table refresh very slow

2022-12-22 Thread Vikas Rawal
Org mode version 9.6 (release_9.6-126-gf731d4 GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.35, cairo version 1.17.6) of 2022-11-18 I have noticed a new problem: tables take a long time to refresh if I change the structure (move columns, remove columns or resize them). It is

Re: Displaying macros differently

2022-12-05 Thread Vikas Rawal
This is perfect, thank you! On Mon, 5 Dec 2022 at 09:13, William Denton wrote: > On 4 December 2022, Vikas Rawal wrote: > > > I frequently use orgmode macros -- like {{{M(Year 1998--99)}}} -- in > tables > > designed for latex export. I find that the macro syntax occupi

Displaying macros differently

2022-12-04 Thread Vikas Rawal
Hi everyone, I frequently use orgmode macros -- like {{{M(Year 1998--99)}}} -- in tables designed for latex export. I find that the macro syntax occupies many character spaces. At the very least, 9 spaces are taken up even if my macro shortcut is just one character long. This is very difficult

Re: [RFC] Re: Headings and Headlines

2022-11-19 Thread Vikas Rawal
> > > > I think we are needlessly complicating this. We are talking about the > use of a term in an internal code base. While I would agree heading is > more correct, I don't think it is such a big issue to use headline if > that make the transition to a consistent usage easier. When it comes to >

Re: [RFC] Re: Headings and Headlines

2022-11-19 Thread Vikas Rawal
On Sat, 19 Nov 2022 at 19:17, Bastien Guerry wrote: > Ihor Radchenko writes: > > > I came to the conclusion that it will, in fact, be easier to change all > > things to use "headline" > > FWIW, I'm fine with such a change. I'm not a native english speaker, > but a "headline" sounds like it's a

Re: Tutorials on creating pdfs with org-babel and sqlite

2022-11-12 Thread Vikas Rawal
> interested in publishing use cases. Has anybody wrote a book or a report > with org-mode, org-babel and sqlite? Many years ago, I wrote this book with orgmode: https://www.fao.org/3/a-i4921e.pdf The source files are here: https://github.com/vikasrawal/endingmalnutrition Much has changed in

Re: Tutorials on creating pdfs with org-babel and sqlite

2022-11-12 Thread Vikas Rawal
> interested in publishing use cases. Has anybody wrote a book or a report > with org-mode, org-babel and sqlite? Many years ago, I wrote this book with orgmode: https://www.fao.org/3/a-i4921e.pdf The source files are here: https://github.com/vikasrawal/endingmalnutrition Much has changed in

Re: Efficiently reuse code in org babel with R

2022-07-06 Thread Vikas Rawal
Why not specify a :session so that data created by one block would remain available to subsequent blocks? V. On Thu, 7 Jul 2022 at 09:10, Naresh Gurbuxani wrote: > I want to source some data from databases, then use this data in various > blocks. I am looking for the most efficient way to

Re: Links to javascript-based websites from orgmode.org: Paypal and Github

2022-07-02 Thread Vikas Rawal
> > Bank uses free software on their system? > > I suppose that would depend on the bank. It's the bank's affair. > If the bank's software is free, the bank enjoys freedom. > Otherwise, the nonfree software denies the bank freedom. > > Either way, it has no effect on us. We are not running

Re: Links to javascript-based websites from orgmode.org: Paypal and Github

2022-06-27 Thread Vikas Rawal
> > > > AFAIU, there are no nonfree payment services, except some crypto > > payments. > > In Europe, at least, there is bank transfer. If you go to a bank > branch, I think, you can do transfers to someone else's account without > running any particular software. Bank uses free software on

Re: caption lost

2022-06-11 Thread Vikas Rawal
> > > #+caption: My caption > #+label: fig:MyFigure > #+begin_src R :exports results :results output graphics :file MyFigure.pdf > :width 4.8 :height 6.5 :pointsize 7 > plot(1:5,1:5) > #+end_src > > The figure is produced and integrated in the text but > #+CAPTION: line should be added to the

Re: org-fold documentation

2022-05-07 Thread Vikas Rawal
> > These are native-comp warnings. They are not uncommon when > native-compiling Org (not only org-fold.el) and generally harmless. > If you are sufficiently annoyed with them, most of these warnings can be > "fixed" by declaring the missing functions. The functions are available > at runtime,

org-fold documentation

2022-05-05 Thread Vikas Rawal
After upgrading to 9.5.3, I am getting warnings such as this, which I suspect are due to org-fold.et. Warning (comp): org-fold.el:834:27: Warning: Unused lexical variable `org-hide-macro-markers' Disable showing Disable logging Warning (comp): org.el:76:30: Warning: Package cl is deprecated

Re: #+latex_header blocks, or, managing lots of LaTeX headers

2022-04-11 Thread Vikas Rawal
For a major project like this, I would just put these in a separate file, and include it using #+INCLUDE: Vikas On Tue, 12 Apr 2022 at 06:37, William Denton wrote: > I have another question related to managing a book I'm doing building for > export > to LaTeX: what do people do for managing

Re: citations: org-cite vs org-ref 3.0

2022-03-27 Thread Vikas Rawal
I have updated the readme in org-ref to indicate you can use both > packages. > > Thanks.

Re: [oc] provide style/citation preview?

2022-03-24 Thread Vikas Rawal
> > > > > > Some kind of overlay that shows citations as they would (at least as > close as possible) look in the export? > > Something like this? > > https://github.com/andras-simonyi/org-cite-csl-activate > > I think he was hoping to incorporate that into the oc-csl processor at > some point,

Fwd: [oc] provide style/citation preview?

2022-03-24 Thread Vikas Rawal
> So I'm just wondering how best to dynamically generate those previews, > perhaps even just using a pre-selected reference*, and if maybe oc > could make that easier? > > Some kind of overlay that shows citations as they would (at least as close as possible) look in the export? Vikas

Re: citations: org-cite vs org-ref 3.0

2022-03-21 Thread Vikas Rawal
> > > > I don't think you have to choose. You can use org-cite for > citations, and org-ref for cross-references. The citation syntax is > orthogonal, you just should not mix them. That is excellent then. Thanks for clarifications. Best, Vikas

Re: citations: org-cite vs org-ref 3.0

2022-03-20 Thread Vikas Rawal
Dear John, Thanks very much for taking time to write a detailed reply. I do not think it is productive for the community to say or consider it > is a sad situation. >From the perspective of a user, this was only meant to express a sentiment that one finds oneself in a situation of having to

Re: citations: org-cite vs org-ref 3.0

2022-03-20 Thread Vikas Rawal
> > > > For what it’s worth, I use `org-ref` because fine-grained citation export > with > LaTeX (using BibTeX or BibLaTeX) only works with `org-ref`, and not with > `org-cite`. > It would help if you can explain what you mean. If I remember correctly, `org-cite` exports the formatted citations

Re: citations: org-cite vs org-ref 3.0

2022-03-20 Thread Vikas Rawal
> > > What is the general view of the community about this? > > I don't know about the general view of the community, but, as a data > point, I find it very sad. > Exactly how I feel. Particularly so because org-cite was indeed inspired from org-ref and all the great work John has done on this

citations: org-cite vs org-ref 3.0

2022-03-20 Thread Vikas Rawal
I am sorry I have not followed the discussions recently. I had happily settled on org-cite but I find that much has changed again. In particular, John Kitchin has given up the work on org-ref-cite and switched back to org-ref. There is a new org-ref version 3.0 which is not compatible with

LaTeX export of a file with some accented characters

2022-03-15 Thread Vikas Rawal
I have an org file with some names (not all) that have accented characters. But when I try to export, I get errors such as this: Sāṅkr - 65190: word not found What do I do to make Org export these correctly? Is there a way to make Org export even if it does not recognise the characters? Vikas

Re: org-sort random

2021-11-23 Thread Vikas Rawal
> > > I think that depends on the completion framework. With the default > completion, yes, I think RET should do it. With ivy, it's instead > ivy-immediate-done (C-M-j). I'm not sure offhand about other > frameworks. > > That's what it needed. Thanks. I wonder if there would be a better way

org-sort random

2021-11-21 Thread Vikas Rawal
I am trying to sort a sub-tree of headings randomly. But `C-c ^ f random RET` asks for a "function for comparing keys". What am I supposed to do? Reference: https://lists.gnu.org/archive/html/emacs-orgmode/2011-02/msg00089.html I have also tried the custom function proposed in the previous

Re: [patch] ox-latex.el: add `:options' LaTeX attribute to tables

2021-10-28 Thread Vikas Rawal
> > Do you still keep this line in your init: > > (advice-add 'org-latex--org-table :override #'my/org-latex--org-table) ? You were right. My bad. I confirm, the new function works and is a significant improvement. Vikas

Re: [patch] ox-latex.el: add `:options' LaTeX attribute to tables

2021-10-28 Thread Vikas Rawal
> > \begin{longtblr}[options 1 options 2 options 3 options 4]{align} > > PS: I think the options should be separated by commas. In this > case, it's necessary to replace the line: > > (mapconcat (lambda (x) (mapconcat 'identity x "")) options-list " "))) > > by this line: > > (mapconcat (lambda

Re: [patch] ox-latex.el: add `:options' LaTeX attribute to tables

2021-10-28 Thread Vikas Rawal
> Do you still keep this line in your init: > > (advice-add 'org-latex--org-table :override #'my/org-latex--org-table) ? > > If so, rename the function from my previous email as > `my/org-latex-org-table' and re-evaluate it. And comment the old > `my/org-latex-org-table'. > You were right. My

Re: [patch] ox-latex.el: add `:options' LaTeX attribute to tables

2021-10-28 Thread Vikas Rawal
> > First, you need to convert a plist to an alist (source: > https://caiorss.github.io/Emacs-Elisp-Programming/Elisp_Programming.html#sec-1-8-4): > > > And this would be the modified function: > This still seems to exporting the second "options" value only. Vikas

Re: [patch] ox-latex.el: add `:options' LaTeX attribute to tables

2021-10-26 Thread Vikas Rawal
> > Example: > > #+ATTR_LATEX: :environment longtblr > #+ATTR_LATEX: :align colspec = {XXX}, width = 0.85\linewidth > #+ATTR_LATEX: :options remark{Note} = {Lorem ipsum dolor sit amet} > > ==> \begin{longtblr}[remark{Note} = {Lorem ipsum dolor sit amet}]{colspec = > {XXX}, width =

Re: Support for tabularray in LaTeX export

2021-10-25 Thread Vikas Rawal
> > Hi Vikas, > > You can define a modified version of `org-latex--org-table', > adding a new LaTeX attribute `:options'. Something like this: Is there a case for incorporating this in orgmode itself? There is some general utility for this in my view. Vikas

A minor suggestion about formatting citations

2021-10-10 Thread Vikas Rawal
Date: Mon, 11 Oct 2021 04:36:56 +0530 From: Vikas Rawal To: org-mode mailing list Subject: A minor suggestion about formatting citations Organisation: CESP, Jawaharlal Nehru University, New Delhi I find it works better for me if I insert spaces between multiple citations. For example: [cite

Re: org-collector.el does not deal with inherited properties well

2021-09-26 Thread Vikas Rawal
> > By the way, org-collector.el is now part of org-contrib and in > lack of a maintainer. > > If you feel like you can maintain it or can help looking for a > maintainer, please go wild. I am not a big user of org-collector.el. I was only trying it for an exercise, which I have abandoned

Re: Support for tabularray in LaTeX export

2021-09-02 Thread Vikas Rawal
(if opt opt "") > width > alignment > contents > table-env))) > (org-latex--decorate-table output attr caption above? info)) > > (advice-add

Support for tabularray in LaTeX export

2021-09-01 Thread Vikas Rawal
tabularray (CTAN: Package tabularray ) provides longtblr environment that is called as --- \begin{longtblr}[various-table-options]{column and row specifications} \end{longtblr} --- Adding something like the following to orgmode tables makes them export nicely as

Re: should a BIBLIOGRAPHY keyword supercede org-cite-global-bibliography?

2021-07-19 Thread Vikas Rawal
> It seems like that should not be the case, i.e. if you define BIBLIOGRAPHY > keywords it means you do not want to use the ones > in org-cite-global-bibliography. Is there a scenario where the union of those > makes sense? I second this. The local bibliographies should supercede the global.

Re: Put #+print_bibliography in an org source code block?

2021-07-19 Thread Vikas Rawal
> > I don't know if that works, but what about exporting to org? > Exporting to org works. Vikas

Put #+print_bibliography in an org source code block?

2021-07-17 Thread Vikas Rawal
I don't know if this is crazy. But I was wondering if it is possible (or worth exploring as an idea) to turn #+print_bibliography into something that can be evaluated to throw the bibliography as results in the org file itself. This would then allow playing with the bibliography using org, and

Re: org-cite citation commands

2021-07-17 Thread Vikas Rawal
This is very helpful already. Keenly looking forward to how this develops. Vikas On Sat, Jul 17, 2021 at 04:52:33PM -0400, John Kitchin wrote: > I made a video of my current org-cite setup at  > https://www.youtube.com/watch?v= > 4ta4J20kpmM. You can also find a link to the code to run it in the

Re: org-cite citation commands

2021-07-17 Thread Vikas Rawal
-> Citeauthor > [author|a]--> citeauthor* > > ;; locators style. > [locators|l] / [bare|b] --> notecite > [locators|l] / [caps|c] --> Pnotecite > [locators|l] / [bare-caps|bc] --> Notecite > [locators|l] --> pnote

Re: org-cite citation commands

2021-07-17 Thread Vikas Rawal
Thanks, Bruce and John. Indeed, I used biblatex with natbib=true option, which gives me citet and citep in biblatex. But using \autocite and \textcite is perfect. I am noticing a few other issues at this stage. I have a large biblatex database, and loading it using C-c C-x @ to insert citations

org-cite citation commands

2021-07-17 Thread Vikas Rawal
I have been a long time user of org-ref and am excited to see the development of org-cite. Thanks a lot for this, Nicholas and others who have been working on this. I have been wanting to give it a spin for the last few days and finally got down to doing it. I am aware that the documentation is

The git repo for contrib packages

2021-06-29 Thread Vikas Rawal
I am aware of the proposal to separately package the contrib libraries. I find that the org-mode git repo at https://code.orgmode.org/explore/repos does not have contrib packages any more. But I can't find the repository for those packages. I would like to compile my own orgmode packages (core

Re: org-collector.el does not deal with inherited properties well

2021-06-20 Thread Vikas Rawal
Found the answer here: https://lists.gnu.org/archive/html/emacs-orgmode/2011-01/msg00292.html Sorry for writing before looking through the archives carefully. Best wishes for everyone. Vikas On Sun, 20 Jun 2021 at 16:26, Vikas Rawal wrote: > Hello, > > org-collector.el seems t

org-collector.el does not deal with inherited properties well

2021-06-20 Thread Vikas Rawal
Hello, org-collector.el seems to fill "0" for properties that are inherited just as it does for properties that are not defined for a particular headline (for which also, 0 is poor choice; nil would have been better). This should not be the correct behaviour. Or is it intentional, and I am

Re: Org as a book publisher

2021-03-07 Thread Vikas Rawal
A few years ago, I had produced this book entirely on orgmode: https://cup.columbia.edu/book/ending-malnutrition/9789382381648. The source files of the book are here: https://github.com/vikasrawal/endingmalnutrition. This was some years back, and there has been some change in the org mode

Re: Macro replacement inside +attr_latex line

2020-08-04 Thread Vikas Rawal
Found the answer in the mailing list archives (https://lists.gnu.org/archive/html/emacs-orgmode/2013-09/msg00234.html). Not allowed. Vikas On Tue, 4 Aug 2020 at 18:33, Vikas Rawal wrote: > > Does orgmode macro replacement not work in an +attr_latex line? I was > thinking of using

Macro replacement inside +attr_latex line

2020-08-04 Thread Vikas Rawal
Does orgmode macro replacement not work in an +attr_latex line? I was thinking of using shortcuts for some complex latex syntax. Vikas

Re: Exploring properties

2020-02-24 Thread Vikas Rawal
On Mon, Feb 24, 2020 at 09:39:51AM +0100, Bastien wrote: > Hi Vikas, > > Vikas Rawal writes: > > > I am essentially thinking of org-mode providing an > > interface for feeding data to recutils. > > Yes, that would probably be useful. > > If you want to write a

Re: Exploring properties

2020-02-23 Thread Vikas Rawal
. Vikas On Sun, 23 Feb 2020 at 19:10, Bastien wrote: > Hi Vikas, > > Vikas Rawal writes: > > > Would you think that an extension of org-collector is the direction to > > look at? Doesn't look like org-collector has seen any updates in a > > long time. > >

Re: Limiting properties and property values

2020-02-23 Thread Vikas Rawal
what they are like. Thanks again, Vikas On Sun, 23 Feb 2020 at 22:20, Fraga, Eric wrote: > On Sunday, 23 Feb 2020 at 15:10, Vikas Rawal wrote: > > I am thinking of using org-mode to compile a small database. > > Although org is fantastic, it is sometimes worth consider

Re: Exploring properties

2020-02-23 Thread Vikas Rawal
> > > I don't know if I have missed something obvious. But I am trying to > > read all the properties data (key-value pairs) into an R source code > > block (essentially to gather into a data.frame before further > > processing). > > You might want to look at `org-map-entries'. Thanks. It seems

Re: Exploring properties

2020-02-23 Thread Vikas Rawal
> > You might want to look at `org-map-entries'. > Would you think that an extension of org-collector is the direction to look at? Doesn't look like org-collector has seen any updates in a long time. Vikas

Re: Limiting properties and property values

2020-02-23 Thread Vikas Rawal
On Sun, 23 Feb 2020 at 15:02, Bastien wrote: > Hi Vikas, > > Vikas Rawal writes: > > > 1. Is it possible to restrict the sub-tree of a headline to have only > > properties specified in the column property of the parent? That is, > > no additi

Exploring properties

2020-02-22 Thread Vikas Rawal
I don't know if I have missed something obvious. But I am trying to read all the properties data (key-value pairs) into an R source code block (essentially to gather into a data.frame before further processing). I thought properties would be a neat way to put together a small database, and then

Limiting properties and property values

2020-02-22 Thread Vikas Rawal
Dear all, I have two queries regarding use of properties in org mode. 1. Is it possible to restrict the sub-tree of a headline to have only properties specified in the column property of the parent? That is, no additional property can be specified. 2. Is it possible to limit the allowed values

Re: R code block produces no output

2019-12-17 Thread Vikas Rawal
>> That should be ":results file graphics". >> >> > Thanks very much. This works. I guess this has recently changed. I have > always used ":results output graphics" > > > I see that the behaviour changed with 9.3. Release notes ( https://www.orgmode.org/Changes.html) have this: :file header

Re: R code block produces no output

2019-12-17 Thread Vikas Rawal
On Tue, 17 Dec 2019 at 18:13, William Denton wrote: > On 17 December 2019, Vikas Rawal wrote: > > > A simple code block like the following does not create the graph. > > > > #+NAME: test > > #+BEGIN_SRC R :results output graphics :exports results :file temp.jpg &g

R code block produces no output

2019-12-17 Thread Vikas Rawal
I have a strange problem and I wonder if there is a new bug. Would appreciate for any help in identifying the problem. A simple code block like the following does not create the graph. #+NAME: test #+BEGIN_SRC R :results output graphics :exports results :file temp.jpg :width 2400 :height 1200

Re: [O] Tables in HTML export

2018-12-07 Thread Vikas Rawal
> My specific use case is that I have a multi-row table header created in an > > R code block. I do not have a way of creating a horizontal line, and > > without that the header is not being recognised as the header in html > > export. > I defined the following macro. #+MACRO: hlmacro (eval

Re: [O] Feature request: :colnames and :hlines in ob-R.el

2018-12-07 Thread Vikas Rawal
> > At the moment, ob-R.el does not support :colnames to have a list of > column > > names as an argument. This seems to have been raised on the list many > years > > ago [1], but it does not look like it was implemented. Is there a > > possibility that this could be implemented? > > Patches are

[O] Feature request: :colnames and :hlines in ob-R.el

2018-12-06 Thread Vikas Rawal
At the moment, ob-R.el does not support :colnames to have a list of column names as an argument. This seems to have been raised on the list many years ago [1], but it does not look like it was implemented. Is there a possibility that this could be implemented? Also, is it possible to allow

[O] Tables in HTML export

2018-12-06 Thread Vikas Rawal
How does org identify which table rows should be exported with header tags? It seems rows above a horizontal line are automatically converted using tags. Is there a way of controlling this? My specific use case is that I have a multi-row table header created in an R code block. I do not have a

Re: [O] visual-line-mode [was: Re: Clean up org-faces.el]

2018-04-09 Thread Vikas Rawal
> On 10-Apr-2018, at 5:12 AM, Samuel Wales wrote: > > On 4/9/18, Eric S Fraga wrote: >> What I do, when I want distraction free writing, is expand the fringes >> to take up whatever amount of screen space I wish. cf set-fringe-mode > > interesting

Re: [O] Clean up org-faces.el

2018-04-08 Thread Vikas Rawal
> > off topic here, but the problem with visual-line-mode for me is that > at least in 24.4 it does not respect fill column. this is a > dealbreaker. i stick with m-q. There is a visual-fill-column-mode. Have you tried that? Vikas

[O] git clone org mode

2018-04-08 Thread Vikas Rawal
Fellow orgers, The following two pages on worg both recommend using "git clone g...@code.orgmode.org:bzg/org-mode.git” to clone the org repo. https://orgmode.org/worg/dev/index.html

Re: [O] NA in R source code block

2018-03-31 Thread Vikas Rawal
> > ### Solution 1 > > You could use an elisp function to clear the nil. It is not automatic > and you would have to write a formula for every column but it might > still be better changing them manually. > > I don't know how to implement it automatically though. > > #+BEGIN_SRC_elisp >

Re: [O] NA in R source code block

2018-03-31 Thread Vikas Rawal
> >> NAs in a data frame that is created by an R source code block show up in the >> results as nil. Can I change it to something else (say, “—“)? > > Could you elaborate on your issue? Can you give a minimal example of > your block? It is very difficult to help with the information you gave.

[O] NA in R source code block

2018-03-29 Thread Vikas Rawal
NAs in a data frame that is created by an R source code block show up in the results as nil. Can I change it to something else (say, “—“)? Vikas

Re: [O] LaTeX export filter

2018-03-27 Thread Vikas Rawal
> > > >> >>> (while (string-match >>> "\\(<\\([0-9]+\\)cid\\([0-9]+\\)?>[[:blank:]]*\\([^&]+\\)\\)" row) >> >> Could it be that you need to change the last + to *? >> Haven't tried it, mind you. >> -- > > That does not change the result. Still pick only two. > > Vikas >

Re: [O] LaTeX export filter

2018-03-27 Thread Vikas Rawal
> >> >> >>> (while (string-match "\\(<\\([0-9]+\\)cid\\([0-9]+\\)?>[[:blank:]]*\\([^&]+\\)\\)" row) >>> >>> Could it be that you need to change the last + to *? >>> Haven't tried it, mind you. >>> -- >> > > The problem is in this part of the code: > > (while

[O] LaTeX export filter

2018-03-24 Thread Vikas Rawal
Let me start by confessing my limited knowledge of lisp. I am trying to write a LaTeX export filter that should replace all table rows with cells having entries such as <3cid4> by \cmidrule{lr}{3-4} The idea is to have a table row of this kind | <2cid3> | <4cid5> |<6cid7>

Re: [O] Generating sitemap: ‘org-publish-cache-get’ called, but no cache present

2018-01-18 Thread Vikas Rawal
> >> I have been using the following code block to generate a sitemap for my >> org-jkyll based blog. >> >> #+begin_src emacs-lisp :results output silent :exports none :cache yes >> (org-publish-sitemap >> (assoc "indblog" org-publish-project-alist) >> "sitemap.org") >> #+end_src >> >> I

[O] Generating sitemap: ‘org-publish-cache-get’ called, but no cache present

2018-01-14 Thread Vikas Rawal
I have been using the following code block to generate a sitemap for my org-jkyll based blog. #+begin_src emacs-lisp :results output silent :exports none :cache yes (org-publish-sitemap (assoc "indblog" org-publish-project-alist) "sitemap.org") #+end_src I had not generated the sitemap

Re: [O] [RFC] Dog food, anyone?

2017-12-17 Thread Vikas Rawal
> >> BTW, I wasn't able to export manual.org using Org mode version 9.1.4 >> (9.1.4-elpaplus @ /Users/dk/.emacs.d/elpa/org-plus-contrib-20171205/). >> It fails with this message: >> >> format: Symbol’s value as variable is void: M-x >> >> Does it depend on a more recent Org mode? > > The file

Re: [O] [RFC] Dog food, anyone?

2017-12-17 Thread Vikas Rawal
> > The task started by Thomas S. Dye a couple years ago is now complete. > The "manual.org" file in "contrib/" directory is an up-to-date, > sometimes enhanced, version of the Org manual. Org can now eat its own > dog food. > This gives us a complex org file written by some of the finest

Re: [O] "header-args :eval inline-only" not working

2017-08-20 Thread Vikas Rawal
> >> I am on the latest version on org mode ELPA. It is dated August 18, >> 2017, so should include the commit you mention. > > `org-export-use-babel' is from "master" branch. ELPA provides "maint”. Got it. >> But this would prevent exporting all code blocks including inline blocks. >> >>

Re: [O] "header-args :eval inline-only" not working

2017-08-19 Thread Vikas Rawal
>> >> I don’t see org-export-use-babel in available options. I cannot customise it. >> >> '(org-export-use-babel (quote inline-only)) >> >> Seems to have no effect. Is that so because, as you say later, users are not >> supposed to touch this option? > > No. You must have an older version

Re: [O] "header-args :eval inline-only" not working

2017-08-19 Thread Vikas Rawal
> > There is a bug in the documentation -- `org-export-babel-evaluate' is > obsolete. It should say `org-export-use-babel’. I don’t see org-export-use-babel in available options. I cannot customise it. '(org-export-use-babel (quote inline-only)) Seems to have no effect. Is that so because,

Re: [O] "header-args :eval inline-only" not working

2017-08-19 Thread Vikas Rawal
> > > The first problem is that you have babel code *inside* a macro. Since macros > are run after babel executes, nothing will happen. From the manual: "Org expands macros at the very beginning of the export process.” These macros run fine if I allow code evaluation. Macro replacement

Re: [O] "header-args :eval inline-only" not working

2017-08-19 Thread Vikas Rawal
> On 20-Aug-2017, at 12:57 AM, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote: > > Hello, > > Vikas Rawal <vikasli...@agrarianresearch.org> writes: > >> My org-version (latest on org ELPA) is: Org mode version 9.0.9 >> (9.0.9-82-gb862c2-elpa

[O] "header-args :eval inline-only" not working

2017-08-19 Thread Vikas Rawal
My org-version (latest on org ELPA) is: Org mode version 9.0.9 (9.0.9-82-gb862c2-elpa @ /Users/vikas/.emacs.d/elpa/org-20170814/) The following is not working: #+PROPERTY: header-args :eval inline-only ":eval never-export” works; but ":eval inline-only" does not. I can deal with this by

[O] org-table.el

2017-08-19 Thread Vikas Rawal
Is it by choice that org-table.el is part of both org and org-plus-contrib? Does it have to be explicitly loaded? Vikas

Re: [O] Table formula reference and macro replacement

2017-08-17 Thread Vikas Rawal
> > You could try: > > --8<---cut here---start->8--- > #+macro: remote src_emacs-lisp{(org-table-get-remote-range "$1" "$2")} > > Example: > > #+name: foo > | 1 | 2 | > | 3 | 4 | > > The macro call: {{{remote(foo, @1$2)}}} > --8<---cut

[O] Table formula reference and macro replacement

2017-08-16 Thread Vikas Rawal
The idea is to pick contents of a table cell and use it in a paragraph. Is it possible to have a macro like {{{remote(NAME-OR-ID,REF)}}} ? The above does not work, but am I missing something? Vikas

Re: [O] org babel, ess, R

2017-07-05 Thread Vikas Rawal
>> >> "... I'd like Org to pick up the fact that there's a :session >> argument with a custom name and use that for C-RET in the edit buffer; >> otherwise it generates the default *R* session there, but if you C-c >> C-c the block later it puts it into the custom session name." > > This is what

Re: [O] org babel, ess, R

2017-07-04 Thread Vikas Rawal
>> possibility of evaluating the code to test and see what happens? > > Often, but not always. And it would be seriously annoying to have the > session buffer pop up every time I wanted to browse the code in a src block > while simultaneously viewing the results of a previous invocation

Re: [O] org babel, ess, R

2017-07-03 Thread Vikas Rawal
> On 04-Jul-2017, at 1:22 AM, John Hendy <jw.he...@gmail.com> wrote: > > On Sun, Jul 2, 2017 at 7:17 PM, Vikas Rawal > <vikasli...@agrarianresearch.org> wrote: >>> >>> Vikas Rawal <vikasli...@agrarianresearch.org> writes: >>> >&g

Re: [O] org babel, ess, R

2017-07-02 Thread Vikas Rawal
> > for what it's worth, I usually run two windows (in the same frame), > side-by-side, with emacs maximised. > On the left I have my org file and on the right I have an R session, which I > start immediately after I open my org file. > When I use C-c ' on an R source block, the org buffer (on

Re: [O] org babel, ess, R

2017-07-02 Thread Vikas Rawal
> > Vikas Rawal <vikasli...@agrarianresearch.org> writes: > >> Isn’t is what most users need while editing the code block? The >> possibility of evaluating the code to test and see what happens? > > > Many languages do not support sessions. So, the onl

Re: [O] org babel, ess, R

2017-07-01 Thread Vikas Rawal
> >> When I press C-c' in an R code block to open an edit buffer with ess, on my >> computer, it splits the screen into two side-by-side windows, with the new >> window on the right showing the edit buffer, and the window on the left >> showing the original file. >> >> I would like to change

Re: [O] org babel, ess, R

2017-06-30 Thread Vikas Rawal
> > When I press C-c' in an R code block to open an edit buffer with ess, on my > computer, it splits the screen into two side-by-side windows, with the new > window on the right showing the edit buffer, and the window on the left > showing the original file. > > I would like to change this

[O] org babel, ess, R

2017-06-30 Thread Vikas Rawal
When I press C-c' in an R code block to open an edit buffer with ess, on my computer, it splits the screen into two side-by-side windows, with the new window on the right showing the edit buffer, and the window on the left showing the original file. I would like to change this behaviour in two

  1   2   3   4   5   >