Re: [O] problem with babel call with post action
On Saturday, 24 Jun 2017 at 10:05, Nicolas Goaziou wrote: [...] > I think this was fixed recently. Could you confirm it? Yes, thank you. Seems to work just fine now! I had to change my original babel src blocks and remove a ":wrap src dot" that I had in the intermediate block but otherwise I get the same behaviour I used to get. Thanks again, eric -- : Eric S Fraga via Emacs 26.0.50, Org release_9.0.9-573-g09e612 signature.asc Description: PGP signature
[O] Non-appearance of tables in PDF export under \listoftables
I'm having great difficulty in getting my tables to show up in '\listoftables', the 'Table' header shows in my pdf but nothing else related to tables in the preamble after the TOC. Taking this table as an example - --8<---cut here---start->8--- #+LABEL: tab:table1 #+NAME: tab:table1 #+CAPTION: Previous versions of this document #+ATTR_LATEX: :booktabs t :placement [H] | *Title* | *Version* | *Published* | |-+-+---| | Hormones 2016 | 1.5 | May 2016 | | Hormones 2017 | 1.6 | | --8<---cut here---end--->8--- Which is exported to latex as this - --8<---cut here---start->8--- \section{Previous versions} \label{sec:orgd5daa04} \begin{table}[H] \centering \begin{tabular}{lrl} \toprule \textbf{Title} & \textbf{Version} & \textbf{Published}\\ \midrule Hormones 2016 & 1.5 & May 2016\\ Hormones 2017 & 1.6 & \\ \bottomrule \end{tabular} \caption{\label{tab:org2f5a19c} Previous versions of this document} \end{table} --8<---cut here---end--->8--- I am using my own latex-class called 'my-report' which is like this in my config.org - --8<---cut here---start->8--- (with-eval-after-load 'ox-latex (add-to-list 'org-latex-classes '("my-report" "\\documentclass{report} [NO-DEFAULT-PACKAGES]" ;;[EXTRA]" ;;("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}" ;; (custom-set-variables '(org-export-allow-bind-keywords t)) --8<---cut here---end--->8--- And here is my main preamble - --8<---cut here---start->8--- #+TITLE: Hormones 2017\\ # #+TITLE: Part 1 #+AUTHOR: Sharon Kimble\\ #+AUTHOR: (S.E.N., R.G.N)\\ #+AUTHOR: redacted #+DATE: \today \\ #+DATE: Build - 2017.\thevernum #+STARTUP: fnadjust #+LaTeX_class: my-report #+LATEX_CLASS_OPTIONS: [a4paper,11pt,oneside,openany,british,svgnames,dvipsnames] #+latex_header: \usepackage[a4paper,left=25mm,right=25mm,top=25mm,bottom=30mm,footskip=5mm,headsep=2mm]{geometry} #+latex_header: \input{/home/boudiccas/research/hormones17/titlepage} # #+LATEX_CLASS_OPTIONS: [british,svgnames,dvipsnames] #+latex_header: \usepackage[backend=biber,style=authoryear,doi=true,hyperref=true,backref=true,backrefstyle=two,date=year,maxcitenames=3]{biblatex} #+LATEX_HEADER: \addbibresource{/home/boudiccas/research/hormones17/hormones17.bib} #+latex_header: \input{/home/boudiccas/research/codebase} #+latex_header: \makeindex[title=General Index,options=-s ./index.ist,columnseprule,intoc] #+latex_header: \makeindex[name=horm,title=Index of Hormones,options=-s ./index.ist,columnseprule,intoc,columns=2] #+latex_header: \makeindex[name=side,title=Index of Hormones Side-Effects,options=-s ./index.ist,columnseprule,intoc,columns=2] #+latex_header: \makeindex[name=other,title=Index of Other Drugs Side-Effects,options=-s ./index.ist,columnseprule,intoc,columns=2] #+latex_header: \makeindex[name=inter,title=Index of Interactions,options=-s ./index.ist,columnseprule,intoc,columns=2] # #+latex_header: \makeindex[name=sti,title=Index of STI's,options=-s ./index.ist,columnseprule,intoc,columns=2] #+latex_header: \usepackage{hyperref} #+latex_header: \hypersetup{linktoc=all,colorlinks,linkcolor={red},citecolor={magenta},urlcolor={blue}} # #+latex_header: \hypersetup{linktoc=all,colorlinks,linkcolor={black},citecolor={black},urlcolor={black}} #+latex_header: \usepackage[toc,nopostdot,style=listgroup]{glossaries} #+latex_header: \input{hormones17.glos} #+latex_header: \makeglossaries #+latex_header: \glsenablehyper #+latex_header: \renewcommand{\glstextformat}[1]{\underline{\color{red}\em #1}} #+latex_header: \usepackage{todo} #+latex_header: \usepackage[firstpage]{draftwatermark} #+LaTeX_header: \setcounter{secnumdepth}{0} #+latex_header: \setcounter{tocdepth}{1} #+latex_header: \usepackage{everypage} #+latex_header: \usepackage{booktabs} #+include: /home/boudiccas/research/header.org #+latex_header: \usepackage{textgreek} #+latex_header: \usepackage{pifont} #+latex_header: \usepackage{upgreek} #+latex_header: \usepackage{longtable} #+latex_header: \setlength{\parskip}{5pt} % gap between paragraphs #+latex_header: \setlength{\parsep}{0pt} % space between paragraphs within an item # #+latex_header: \setlength{\headsep}{5pt} % the vertical length between the header and the top of the text area #+latex_header: \setlength{\topskip}{0pt} % between header and t
Re: [O] Fwd: Re: How to export LaTeX amsmath align bmatrix to ODT?
On 2017-06-25 21:11, Nicolas Goaziou wrote: I fixed a bug in "ox-odt.el". Now, when using convertion to png, you can add #+latex_header: \newcommmand{\mysymbol}[1]{\mathrm{my_{#1}}} Hopefully, it should solve, at least partly, your issue. Hey! That's great! Thank you very much. Edgar - ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!
[O] Replace macros on tangle
Dear all, how can I add macro replacement support when a source block is being tangled? Thanks, Giacomo
[O] Bug: Org loses data if the user types C-u C-c C-c while composing a state change note [9.0.9 (9.0.9-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20170622/)]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. 1. emacs -q 2. M-x package-initialize 3. M-x org-version - Just to confirm we are running Org 9.0.9. 4. M-x customize-option RET org-todo-keywords RET 5. Add "(@)" to DONE and set it for current session (C-c C-c) 6. C-x C-f /tmp/bug.org 7. C-S-RET 8. C-c C-t - This should change to DONE and prompt for a note. 9. In the note, type "- " to start a plain list 10. Hit C-u C-c C-c to add an empty checkbox In step 10, the user made a mistake; he wanted to add a checkbox and, from muscle memory, typed C-u C-c C-c. However, he was composing a note, so C-c C-c has different behavior. The problem is that in this situation Org discards the note. When this happened to me, I had spent at least 15 minutes gathering data and writing it in the note buffer. This data was lost. Luckily I can gather the same data a second time, so I just lost some 15 minutes of my time (plus more than an hour to report this bug), but it could have been worse. I am not good at usability design and I do not know precisely how Org should respond to C-u C-c C-c in this situation, but clearly there are better options than losing data. A very simple alternative would be to, when C-c C-c is given any prefix argument, do nothing except warn that C-c C-c in that situation closes the note and does not accept a prefix argument. Probably this measure also applies to analogous situations in which valuable data could be lost. While we are at it, there may be other situations in which the user might discard a note by accident. Perhaps Org should prompt before discarding, or make it reversible. Regards Emacs : GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2017-06-07 Package: Org mode version 9.0.9 (9.0.9-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20170622/) -- - I am Brazilian. I hope my English is correct and I welcome feedback. - Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM, 7z. - Free (as in free speech) software for Android: https://f-droid.org/.
[O] [setting is not read] (was: org-table export to ods/xlsx etc)
>>> "Eric" == Eric S Fraga writes: > On Saturday, 17 Jun 2017 at 14:54, Nicolas Goaziou wrote: > [...] >> According to `org-odt-convert-processes', `org-odt-convert-capabilities' >> and `org-odt-convert', isn't it already possible? > Indeed.Adding this > (add-to-list 'org-odt-convert-processes '("gnumeric" "ssconvert %i %o")) > (setq org-odt-convert-process "gnumeric") Odd thing. I put these lines in my org_init.el file byte compile and restart emacs but then (org-odt-do-reachable-formats "csv") returns Nil I have to explicitly eval the two settings (add-to-list 'org-odt-convert-processes '("gnumeric" "/usr/bin/ssconvert %i %o")) (setq org-odt-convert-process "gnumeric") What do I miss? I could use customize of course, but I would like to understand the problem.
Re: [O] Non-appearance of tables in PDF export under \listoftables
Sharon Kimble writes: > I'm having great difficulty in getting my tables to show up in > '\listoftables', the 'Table' header shows in my pdf but nothing else > related to tables in the preamble after the TOC. > I would take a look at the TeX file produced during export and try to debug it that way. FWIW, a (vastly reduced) example works fine for me: --8<---cut here---start->8--- #+LATEX_HEADER: \usepackage{booktabs} #+TOC: tables * Tables #+LABEL: tab:table1 #+NAME: tab:table1 #+CAPTION: Previous versions of this document #+ATTR_LATEX: :booktabs t :placement [H] | *Title* | *Version* | *Published* | |-+-+---| | Hormones 2016 | 1.5 | May 2016 | | Hormones 2017 | 1.6 | | --8<---cut here---end--->8--- -- Nick
Re: [O] [setting is not read]
Uwe Brauer writes: "Eric" == Eric S Fraga writes: > > > On Saturday, 17 Jun 2017 at 14:54, Nicolas Goaziou wrote: > > [...] > > >> According to `org-odt-convert-processes', > `org-odt-convert-capabilities' > >> and `org-odt-convert', isn't it already possible? > > > Indeed.Adding this > > > (add-to-list 'org-odt-convert-processes '("gnumeric" "ssconvert %i > %o")) > > (setq org-odt-convert-process "gnumeric") > > Odd thing. I put these lines in my org_init.el file byte compile and > restart emacs but then > (org-odt-do-reachable-formats "csv") returns > > Nil > > I have to explicitly eval the two settings > > (add-to-list 'org-odt-convert-processes '("gnumeric" "/usr/bin/ssconvert %i > %o")) > (setq org-odt-convert-process "gnumeric") > These probably need to be done after loading ox-odt. But the first one should give an error if org-odt-convert-processes is not defined: are you getting an error at initialization? Check *Messages*. > > What do I miss? I could use customize of course, but I would like to > understand the problem. > -- Nick
Re: [O] Replace macros on tangle
Hello, Giacomo M writes: > Dear all, > how can I add macro replacement support when a source block is being > tangled? I don't think so. Macro replacement is an export feature. Regards, -- Nicolas Goaziou
Re: [O] Replace macros on tangle
On Mon, 26 Jun 2017, Nicolas Goaziou wrote: Hello, Giacomo M writes: Dear all, how can I add macro replacement support when a source block is being tangled? I don't think so. Macro replacement is an export feature. If Giacomo's macros operate outside of src blocks, he could export using `org-org-export-to-org', then tangle the resulting file. Giacomo, if you want something to operate inside of src blocks you can use noweb replacements that execute code as outlined in (info "(org) Noweb reference syntax") In a way these are like macros. HTH, Chuck
[O] segfault when org-ellipsis is empty
Hello, I trust that this is the right place to report a segfault. Using whatever is current in debian 9, emacs segfaults from a minimum setup when using an empty string for org-ellipsis. Here's how to reproduce it: > emacs -Q (setq org-ellipsis "") C-x C-e (org-mode) C-x C-e * asd ** def C-p tab < and boom My emacs isn't built from sources, so the ftrace/backtrace is meaningless for the "Fatal error 11: Segmentation fault" If there is a bugtracker and there always is a bugtracker, then my apologies in case this has already been dealt with. m
Re: [O] segfault when org-ellipsis is empty
On Mon, Jun 26, 2017 at 2:10 PM Michael Ax wrote: > Hello, I trust that this is the right place to report a segfault. > The right place to report emacs segfault (whether caused by another package or not) would be by M-x report-emacs-bug from within emacs. If you haven't set up to send emails from within emacs (I haven't), then copy the To email address, email subject and the generated email body and email it it using your default email client. > Using whatever is current in debian 9, emacs segfaults > from a minimum setup when using an empty string for org-ellipsis. > > Here's how to reproduce it: > > > emacs -Q > > (setq org-ellipsis "") C-x C-e > (org-mode) C-x C-e > * asd > ** def C-p tab < and boom > > Cool! I can recreate that error on emacs master + org 9.0.9. > My emacs isn't built from sources, so the ftrace/backtrace > is meaningless for the "Fatal error 11: Segmentation fault" > > If there is a bugtracker and there always is a bugtracker, > then my apologies in case this has already been dealt with. > > m > Once you send that bug report, you will get a debbugs number. Please post that number in this thread (for people curious about this bug like me). -- Kaushal Modi
[O] Export Dollar symbol (as currency)
Hi, I'm struggling with exporting a text with dollar currency symbols which get interpreted as latex delimiters. The following paragraph does not export as intended: -- Zu Beginn der 1960er-Jahre entstanden die ersten kommerziellen Projekte, die sich mit der Computergrafik beschäftigten. Das Hauptproblem am Anfang war die Ausgabe grafischer Informationen auf einem Bildschirm. Dies lag an den hohen Kosten für die ersten Zeichengeneratoren um 1960, die zum Teil zwischen 2.000 und 10.000 US-$ lagen. Die ersten kompletten Grafikterminals kosteten zwischen 50.000 und 200.000 US-$. Dies änderte sich erst 1968 mit der Veröffentlichung erster Systeme, die auf den *Direct-View Storage Tubes* (DVSTs) basierten. - The second $-symbol breaks the paragraph and the text between the two dollar signs is interpreted as a latex formula. I tried \textdollar and \$ but without avail; my orgmode's version is "org-20160314". Ideas? thank you, thomas
Re: [O] Export Dollar symbol (as currency)
Hello, thomas writes: > I'm struggling with exporting a text with dollar currency symbols > which get interpreted as latex delimiters. > > The following paragraph does not export as intended: > > -- > > Zu Beginn der 1960er-Jahre entstanden die ersten kommerziellen > Projekte, die sich mit der Computergrafik beschäftigten. > Das Hauptproblem am Anfang war die Ausgabe grafischer Informationen > auf einem Bildschirm. > Dies lag an den hohen Kosten für die ersten Zeichengeneratoren um > 1960, die zum Teil zwischen 2.000 und 10.000 US-$ lagen. > Die ersten kompletten Grafikterminals kosteten zwischen 50.000 und > 200.000 US-$. > Dies änderte sich erst 1968 mit der Veröffentlichung erster Systeme, > die auf den *Direct-View Storage Tubes* (DVSTs) basierten. > > - > > The second $-symbol breaks the paragraph and the text between the two > dollar signs is interpreted as a latex formula. > > I tried \textdollar and \$ but without avail; my orgmode's version is > "org-20160314". There was a bug in the parser, which is now fixed. Also, I introduced "\dollar" and "\USD" entities for pathological cases, which this one isn't. Regards, -- Nicolas Goaziou
Re: [O] segfault when org-ellipsis is empty
Hello, Kaushal Modi writes: > The right place to report emacs segfault (whether caused by another package > or not) would be by M-x report-emacs-bug from within emacs. If you haven't > set up to send emails from within emacs (I haven't), then copy the To email > address, email subject and the generated email body and email it it using > your default email client. > [...] > Once you send that bug report, you will get a debbugs number. Please post > that number in this thread (for people curious about this bug like > me). Meanwhile, we could simply change :safe keyword from `org-ellipsis' to (lambda (v) (and (string-or-null-p v) (not (equal v "" WDYT? Regards, -- Nicolas Goaziou
Re: [O] Bug: Org loses data if the user types C-u C-c C-c while composing a state change note [9.0.9 (9.0.9-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20170622/)]
Hello, Jorge Morais Neto writes: > 1. emacs -q > 2. M-x package-initialize > 3. M-x org-version >- Just to confirm we are running Org 9.0.9. > 4. M-x customize-option RET org-todo-keywords RET > 5. Add "(@)" to DONE and set it for current session (C-c C-c) > 6. C-x C-f /tmp/bug.org > 7. C-S-RET > 8. C-c C-t >- This should change to DONE and prompt for a note. > 9. In the note, type "- " to start a plain list > 10. Hit C-u C-c C-c to add an empty checkbox > > In step 10, the user made a mistake; he wanted to add a checkbox and, > from muscle memory, typed C-u C-c C-c. However, he was composing a > note, so C-c C-c has different behavior. The problem is that in this > situation Org discards the note. When this happened to me, I had spent > at least 15 minutes gathering data and writing it in the note buffer. > This data was lost. Luckily I can gather the same data a second time, > so I just lost some 15 minutes of my time (plus more than an hour to > report this bug), but it could have been worse. > > I am not good at usability design and I do not know precisely how Org > should respond to C-u C-c C-c in this situation, but clearly there are > better options than losing data. A very simple alternative would be to, > when C-c C-c is given any prefix argument, do nothing except warn that > C-c C-c in that situation closes the note and does not accept a prefix > argument. Probably this measure also applies to analogous situations in > which valuable data could be lost. > > While we are at it, there may be other situations in which the user > might discard a note by accident. Perhaps Org should prompt before > discarding, or make it reversible. FWIW, long ago, I added (defun ngz-org-capture-hook-handler () (define-key org-capture-mode-map "\C-x\C-s" 'org-capture-finalize) (define-key org-capture-mode-map "\C-c\C-c" 'org-ctrl-c-ctrl-c)) (add-hook 'org-capture-mode-hook 'ngz-org-capture-hook-handler) to my config file. I'm pretty happy with it. One solution would be to have C-x C-s (or some other binding, I don't really mind) calling `org-finish-function' instead of the very busy C-c C-c. C-x C-s makes sense as Log buffers are not attached to any file, so `save-buffer' is morally equivalent to C-x C-w, aka `write-file'. Fellow Orgers, WDYT? Regards, -- Nicolas Goaziou
Re: [O] [PATCH] org-protocol: fixes open-source and extends rewriting of URLs
Hello, Mario Martelli writes: > Selector: "test-org-protocol/" > Passed: 2 > Failed: 0 > Skipped: 0 > Total: 2/2 Great! >> Another round of tests for the cases you solve >> would be nice, too. > > I added the configuration part. That will be parsed during the tests I > suppose. > > > Selector: "test-org-protocol/" > Passed: 3 > Failed: 0 > Skipped: 0 > Total: 3/3 Even greater. > > From 4408f27e37f6578b3244a1ff7f4d7bd27720e1e6 Mon Sep 17 00:00:00 2001 > From: Mario Martelli > Date: Sun, 25 Jun 2017 10:14:40 +0200 > Subject: [PATCH 4/4] config for date style URL is added to org-protocol tests > OK. Could you wrap up the patches needed so far, with appropriate commit messages, so I can apply them? BTW, have you signed FSF papers? Thank you. Regards, -- Nicolas Goaziou
Re: [O] segfault when org-ellipsis is empty
On Mon, Jun 26, 2017 at 4:19 PM Nicolas Goaziou wrote: > > Meanwhile, we could simply change :safe keyword from `org-ellipsis' to > > (lambda (v) (and (string-or-null-p v) (not (equal v "" > > > WDYT? > But that would still allow the user to use setq to set that variable. -- Kaushal Modi
Re: [O] segfault when org-ellipsis is empty
Kaushal Modi writes: > On Mon, Jun 26, 2017 at 4:19 PM Nicolas Goaziou > wrote: > >> >> Meanwhile, we could simply change :safe keyword from `org-ellipsis' to >> >> (lambda (v) (and (string-or-null-p v) (not (equal v "" >> >> >> WDYT? >> > > But that would still allow the user to use setq to set that variable. True, but can we always prevent them from shooting themselves in the foot? Anyway, I updated the :safe value and changed the test below: (vconcat (mapcar (lambda (c) (make-glyph-code c 'org-ellipsis)) (if (stringp org-ellipsis) org-ellipsis "..."))) Regards,
Re: [O] segfault when org-ellipsis is empty
cool compromise; covers my use-cases. tks! But that would still allow the user to use setq to set that variable. True, but can we always prevent them from shooting themselves in the foot?
[O] custom ellipsis is underlined after package-initialize
Here's the smallest example I could come up with for a rendering problem i don't know how to debug: using tmp.org= * asd ** def and tmp.el= (require 'package) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/";)) (package-initialize) (setq package-enable-at-startup nil) (setq org-ellipsis "…") (find-file "tmp.org") then starting from the shell: emacs -Q --debug-init --load tmp.el tmp.org tmp.el i get a nicely split frame with an org buffer that has an underlined ellipsis. removing package-initialize from tmp.el and starting again fixes this. am wondering how to debug or better define the issue. m
Re: [O] [PATCH] org-protocol: fixes open-source and extends rewriting of URLs
Hi, > OK. Could you wrap up the patches needed so far, with appropriate commit > messages, so I can apply them? Sorry for producing noise. Just read the contribution guidelines once again ;) Hope everything is now according to the guidelines. 0001-org-protocol.el-Fix-for-failing-open-source-subproto.patch Description: Binary data 0002-org-protocol.el-Fix-for-silently-failing-open-source.patch Description: Binary data 0003-org-protocol.el-sources-with-date-URL-are-supported.patch Description: Binary data 0004-test-org-protocol.el-date-style-URL-support.patch Description: Binary data > BTW, have you signed FSF papers? Applied for it just now. Have marked the changes as tiny. Kind regards Mario —