Re: [O] Request on modification of org-element.el
It's in the "wip-cite" branch. And you can try kjambunathan's odt exporter with the following setting. The ODT and JabRef exporters can now be with Emacs Package Mananger's M-x list-packages. The package is available at https://raw.githubusercontent.com/kjambunathan/org-mode-ox-odt/master/elpa/. See below for a typical configuration. (custom-set-variables '(package-archives (quote (("gnu" . "https://elpa.gnu.org/packages/;) ("ox-odt" . "https://raw.githubusercontent.com/kjambunathan/org-mode-ox-odt/master/elpa/;) When you install ox-odt from the above archive, it will upgrade your Org to 9.1.14, if needed. Once you have installed the ox-odt package and restart your Emacs. Run M-x locate-library RET org and M-x locate-library RET ox-odt and ensure that you see something along the following lines. Library is file ~/.emacs.d/elpa/org-9.1.14/org.elc Library is file ~/.emacs.d/elpa/ox-odt-9.1.14.145/ox-odt.elc After you export an Org file to ODT, look at your *Messages* buffer and ensure that the ODT exporter *uses` style and schema files from the ELPA package. On Fri, Nov 23, 2018 at 2:42 PM Eric S Fraga wrote: > On Friday, 23 Nov 2018 at 08:51, Qiang Fang wrote: > > Hello everyone, > > > > I am a user of kjambunathan's org-mode-ox-odt. The odt exporter needs > some > > changed in the upstream org mode. Can you please kindly review the > request? > > Out of curiosity, what is the effect of this change specifically? What > is minimal-set referenced in the code you suggest? I cannot find any > such variable. > > -- > Eric S Fraga via Emacs 27.0.50, Org release_9.1.14-1035-gfeb442 >
Re: [O] Request on modification of org-element.el
Hello Nicolas, The complete diff is: $ ~/src$ git clone https://code.orgmode.org/bzg/org-mode.git $ cd org-mode $ git merge origin/wip-cite Auto-merging testing/lisp/test-org-element.el Auto-merging lisp/org-element.el CONFLICT (content): Merge conflict in lisp/org-element.el Automatic merge failed; fix conflicts and then commit the result. $ git diff diff --cc lisp/org-element.el index cdb574e17,f7498fbd1..0 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@@ -307,12 -322,11 +322,20 @@@ Don't modify it, set `org-element-affil (strike-through ,@standard-set) (subscript ,@standard-set) (superscript ,@standard-set) ++<<<<<<< HEAD + ;; Ignore inline babel call and inline source block as formulas + ;; are possible. Also ignore line breaks and statistics + ;; cookies. + (table-cell bold code entity export-snippet footnote-reference italic +latex-fragment link macro radio-target strike-through +subscript superscript target timestamp underline verbatim) ++=== + ;; Ignore inline babel call and inline src block as formulas are + ;; possible. Also ignore line breaks and statistics cookies. + (table-cell ,@(append '(export-snippet footnote-reference link macro +radio-target target timestamp) + minimal-set)) ++>>>>>>> origin/wip-cite (table-row table-cell) (underline ,@standard-set) (verse-block ,@standard-set))) On Fri, Nov 23, 2018 at 2:32 PM Nicolas Goaziou wrote: > Hello, > > Qiang Fang writes: > > > I am a user of kjambunathan's org-mode-ox-odt. The odt exporter needs > some > > changed in the upstream org mode. Can you please kindly review the > > request? > > You need to pull again "wip-cite" branch. It was rebased against master > yesterday. So was "wip-cite-awe". > > Regards, > > -- > Nicolas Goaziou >
[O] Request on modification of org-element.el
Hello everyone, I am a user of kjambunathan's org-mode-ox-odt. The odt exporter needs some changed in the upstream org mode. Can you please kindly review the request? Thank you so much! diff --cc lisp/org-element.el index cdb574e17,f7498fbd1..0 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@@ -307,12 -322,11 +322,20 @@@ Don't modify it, set `org-element-affil (strike-through ,@standard-set) (subscript ,@standard-set) (superscript ,@standard-set) ++<<< HEAD + ;; Ignore inline babel call and inline source block as formulas + ;; are possible. Also ignore line breaks and statistics + ;; cookies. + (table-cell bold code entity export-snippet footnote-reference italic +latex-fragment link macro radio-target strike-through +subscript superscript target timestamp underline verbatim) ++=== + ;; Ignore inline babel call and inline src block as formulas are + ;; possible. Also ignore line breaks and statistics cookies. + (table-cell ,@(append '(export-snippet footnote-reference link macro +radio-target target timestamp) + minimal-set)) ++>>> origin/wip-cite (table-row table-cell) (underline ,@standard-set) (verse-block ,@standard-set)))
Re: [O] Org table: how to reference part of the rows
I solved my problem by specifying the column range #+tblfm: @2$4..@-2$4 = ($3 / $2) * 100 On Sun, Dec 17, 2017 at 11:53 PM, Eric S Fraga <esfli...@gmail.com> wrote: > On Saturday, 16 Dec 2017 at 19:24, Qiang Fang wrote: > > The last column is the ratio between column b and a, the last row is > > the sum of each row, the second formula only applies from the second > > row to the row before last row. The table that doesn't work is: > > > > | | a | b | ratio | > > | | 0.797 | 0.780 || > > | | 0.744 | 0.730 || > > | | 12.707 | 2.384 || > > | sum | 14.248 | 3.114 | 0.92040988 | > > | ^ | x | y || > > #+tblfm: $x=vsum(@2..@-1) :: $y=vsum(@3..@-1) > > #+tblfm: $4 = ($3 / $2) * 100 > > I cannot help with the OP's question but this table leads to very > strange behaviour for me. If I delete the tblfm lines, then go to the > location of the x variable (5th row, 2nd column) and type C-u C-c = to > enter "x=vsum(@2..@i-1)", that is okay. But if I then go to the next > column and try to enter the equivalent formula for y, it replaces the > previously entered formula for x! If I go back to the x location and > re-enter that formula, it replaces the y formula. > > Further, the formulae created by org are missing the $ in front of the > variable, i.e. x=vsum(...) instead of $x=vsum(...). > > This happens with up to date org from git as of an hour or so ago. > > For the OP, the formulas > > -- > Eric S Fraga via Emacs 27.0.50, Org release_9.1.4-214-ge8b71b >
[O] Org table: how to reference part of the rows
The last column is the ratio between column b and a, the last row is the sum of each row, the second formula only applies from the second row to the row before last row. The table that doesn't work is: | | a | b | ratio | | | 0.797 | 0.780 || | | 0.744 | 0.730 || | | 12.707 | 2.384 || | sum | 14.248 | 3.114 | 0.92040988 | | ^ | x | y || #+tblfm: $x=vsum(@2..@-1) :: $y=vsum(@3..@-1) #+tblfm: $4 = ($3 / $2) * 100
Re: [O] Bug in ox.el
>> Does this issue happen with "ox-odt.el" bundled with Org? If so, could >> you provide an ECM? The issue happen with list-table in the unofficial ox-odt, list-table enables list in tables, it's very cool. >> The standard version of org has a lot of limitations. > Please report them, and, if possible, help fixing them. Most problem I reported are fixed in this repo: https://github.com/kjambunathan/org-mode-ox-odt And I think there is no one more capable and willing to fix issues related to ox-odt than the original author. It will benifit more people if we can include it in the official org-mode. Can anyone tell me whether if my approach will work: The author of ox-odt gives me his code as a gift, and it becomes mine, the I can do everything with it, right? On 9/13/17, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote: > Hello, > > Qiang Fang <godbles...@gmail.com> writes: > >> The standard version of org has a lot of limitations. > > Please report them, and, if possible, help fixing them. > >> In case you won't check the issue because of it not copy right. The >> complete bug >> report is: >> >> "Lisp nesting exceeds ‘max-lisp-eval-depth’" exceeded, when using >> cookies with List Tables. > > Does this issue happen with "ox-odt.el" bundled with Org? If so, could > you provide an ECM? > >> org-export-table-cell-alignment uses org-export-data to infer cookies of >> some >> columns. I think, it should use other mechanisms like >> org-element-interpret-data >> (may be). > > I disagree. For example > > | @@html:text 1.2 | > > doesn't express a number with `org-element-interpret-data', although it > is a number when exporting, i.e., to LaTeX. > > There is only one way to know if the cell is going to be a number during > export: effectively exporting it. > > Regards, > > -- > Nicolas Goaziou >
Re: [O] Bug in ox.el
The standard version of org has a lot of limitations. Is it possible that the author of ox-odt gives his repos as a gift to me, and let me deal with the copyright stuff? I am living in China, a quasi-communist country, :<. In case you won't check the issue because of it not copy right. The complete bug report is: "Lisp nesting exceeds ‘max-lisp-eval-depth’" exceeded, when using cookies with List Tables. org-export-table-cell-alignment uses org-export-data to infer cookies of some columns. I think, it should use other mechanisms like org-element-interpret-data (may be). On 9/13/17, Eric S Fraga <esfli...@gmail.com> wrote: > On Wednesday, 13 Sep 2017 at 09:26, Qiang Fang wrote: >> The original issue is at >> https://github.com/kjambunathan/org-mode-ox-odt/issues/25 >> >> "org-export-table-cell-alignment uses org-export-data to infer cookies >> of some columns. I think, it should use other mechanisms like >> org-element-interpret-data (may be)." >> >> The odt exporter is really useful, it replaces latex in most cases for >> me. How can I help in getting it into the main org repo? >> > > IIRC, quite some time ago now, there were issues with copyright > etc. with this particular branch of the ODT exporter. There is an ODT > exporter in the standard version of org. > > -- > : Eric S Fraga via Emacs 26.0.50, Org release_9.0.9-573-g09e612 >
[O] Git repo for org-odt-export
Anyone trying to hack ox-odt can definitely get help here: https://github.com/kjambunathan/org-mode-ox-odt/ James Harkinswrites: > On Sat, 09 Sep 2017 05:06:24 -0400 James Harkins > wrote > I guess next I'm going to try to hack ox-odt.el...
[O] Bug in ox.el
The original issue is at https://github.com/kjambunathan/org-mode-ox-odt/issues/25 "org-export-table-cell-alignment uses org-export-data to infer cookies of some columns. I think, it should use other mechanisms like org-element-interpret-data (may be)." The odt exporter is really useful, it replaces latex in most cases for me. How can I help in getting it into the main org repo?
[O] how to modify caption styles in odt file exported with org-odt-export-to-odt
Hello everyone, My work requires me to use libreoffice. I have several questions using org mode with libreoffice. 1 How to remove colon seperator in figure caption in odt files exported from org mode? 2 How to change equation numbering to latex style, like e=mc2 (Equation 1-1) I am trying to get equation numbers aligned to the right, with section number before equaiton number in that section, such as 1-1, 1-2, 2-1 ... Just like the libreoffice TexMaths extension. Is there a way to number the png images of the converted equations. The following is an excerpt from my file: #+OPTIONS: AUTHOR:nil toc:nil tex:imagemagick #+name: eq:sinh #+begin_equation \begin{equation*} \label{eq:sinh} \dot{\epsilon}=AFexp[-Q/(RT)] \end{equation*} #+end_equation Thank you so much!
[O] Some qeustions on odt styles with org mode odt export
Hello everyone, I want to use org mode as an alternative to libreoffice. I have a few questions: 1 how to create a two columns section In org mode, creating a two_columns page style and use #+ATTR_ODT: :style "two_columns" can produce a two column document, but org mode doesn't seem to have a section break like #+SECTIONBREAK: what is the proper way to mixed sections of different columns? 2 Some tables are better edited in libreoffice, can I include an external odt file that contains the table in org mode? Is there any org keyword for libreoffice's master document if this question can be solved with it? 3 how to link to the original images in the exported odt file? so images can be swapped without doing org-odt-export again. 4 how to change the image size within tables Thank you!
Re: [O] why org capture finalise asks for deleting bookmarks every time
Hi Kyle, Indeed bookmark-save-flag is 1 and org-capture-bookmark is t. I changed bookmark-save-flag to t and everything is working perfectly. Thank you! Qiang On Fri, Jun 19, 2015 at 3:14 PM, Kyle Meyer k...@kyleam.com wrote: Q godbles...@gmail.com wrote: When I finished typing in a capture buffer, I hit C-c C-c, this is what I get in the message buffer, looks like emacs is trying to save all opened file and then delete backup of bookmarks. How do I avoid all this? What are bookmark-save-flag and org-capture-bookmark set to? I don't think capture should save your bookmarks file unless you have bookmark-save-flag set to a number and org-capture-bookmark set to a non-nil value. I'm not sure what is triggering all modified buffers to be saved (and this doesn't happen on my end). Can you provide a minimum configuration that you see this with and version information? -- Kyle
Re: [O] Why navigating in Org mode is so slow in overview mode?
I found it linum mode that slows all things down. Thank you for the help! Qiang On Wed, Jun 17, 2015 at 3:51 AM, Nicolas Goaziou m...@nicolasgoaziou.fr wrote: Hello, Q godbles...@gmail.com writes: I am view this file http://doc.norang.ca/org-mode.org It's a prettey long document, when it all folded up, navigating to previous line and next line takes about 2 seconds. When the sub heading is shown, it's more responsive. Is this a bug? I don't know. What Org version are you using? Could you use a profiler and report results? Regards, -- Nicolas Goaziou