[O] How to create new export modes derived from html
Hello, In the past I have created 2 modes in Muse to produce help files from JavaHelp and CSH. Those modes derived throm html. I want to adapt them to org-mode (version 7.9). I think they could be implemented as a hook to html export. What do you think is the best way to create new exports in that case? -- Pascal Quesseveur pques...@gmail.com
Re: [O] How to create new export modes derived from html
NG == Nicolas Goaziou n.goaz...@gmail.com a écrit : NG We rewrote export framework in Org 8.0. I suggest to use it NG instead. Thank you for your answer. Yes I have read about the new exports but my initial goal was to use the version included in latest emacs release distribution and I think it is version 7.9. The javahelp and CHM files are mainly html files created by splitting main HTML. Those files are then processed by external tools. I thought I could create the required files without requiring too much of org export machinery. NG IIUC, what you want to create is called a derived back-end. Exactly. NG There is a section about it in the manual. This section doesn't seem to exist in my version. I think it is in version 8. NG Also, ox-md (Markdown back-end) in core and both ox-s5 and NG ox-deck in contrib directory are all derived from html NG back-end. You may want to look at them. From what you said I think I have to consider switching to version 8. -- Pascal Quesseveur pques...@gmail.com
[O] Different OPTIONS according to export format
Hello, From what I understand with Org 7.9 it is not possible to configure different OPTIONS values according to the export format (I wanted to get numbered headings in PDF output, and no numbering in HTML). Is it the same with version 8.2? -- Pascal Quesseveur pques...@gmail.com
Re: [O] Different OPTIONS according to export format
Thank you. So it is one reason to upgrade. -- Pascal Quesseveur pques...@gmail.com
[O] How to build org-mode on Windows
Hello, I want to install latest version but I understand it relies on make to compile. I am currently using Windows and I don't have cygwin and don't plan to install it. Is there any alternatives? -- Pascal Quesseveur pques...@gmail.com
Re: [O] How to build org-mode on Windows
AG == Achim Gratz strom...@nexgo.de writes: AG http://orgmode.org/worg/org-faq.html#installing-org-without-make-tools AG But your best bet is probably ELPA. Thank you. I missed this FAQ. -- Pascal Quesseveur pques...@gmail.com
Re: [O] Error in emacs 26.1 when publishing to html
>"KM" == Kaushal Modi writes: KM> htmlize.el is required for ox-html exports, especially if you export src KM> blocks. You need to have htmlize installed in the default load-path (you KM> will need to do that much customization in emacs -Q sessions too). Thank you. In fact I am upgrading from emacs 24 to emacs 26, and I get some problems with my org files. I have to adapt my customizations to the new publishing concepts in Org. Currently I am unable to get an HTML output. So I decided to begin with no customizations to try find the culprit. It does not work either because of htmlize. I was surprised because I didn't read anything about this in the manual. I have installed htmlize, and I am now looking for what does not work in my configuration. -- Pascal Quesseveur pques...@gmail.com
[O] Problem with diary entries after upgrading emacs 26.1
Hello, I upgraded from emacs 24 to emacs emacs 26.1. Org version is 9.1.9. Diary entries in the Org Agenda view don't work as before. I have some entries in an org file: === :PROPERTIES: :CATEGORY: Congés :END: %%(diary-block 18 04 2017 21 04 2017) 4j %%(diary-block 04 04 2017 04 04 2017) 0,5 %%(diary-block 17 02 2017 22 02 2017) Congés 3,5j :PROPERTIES: :CATEGORY: Congés :END: %%(diary-block 28 10 2016 31 10 2016) Congés 2j %%(diary-block 04 05 2016 06 05 2016) Congés 1,5j ... === And the displayed week aganda is: === Week-agenda (W23): Lundi 4 Juin 2018 W23 Congés: Congés 3,5j Congés: Congés 2j Mardi 5 Juin 2018 Congés: Congés 3,5j Congés: Congés 2j Mercredi6 Juin 2018 Congés: 4j Congés: Congés 3,5j Congés: Congés 2j === Is there to update in my org config to make it work as before ? -- Pascal Quesseveur pques...@gmail.com
Re: [O] Problem with diary entries after upgrading emacs 26.1
I have found what is causing the errors. I have to use org-anniversary and org-block instead of diary-anniversary and org-block (and put he date in ISO). -- Pascal Quesseveur pques...@gmail.com
[O] Error in emacs 26.1 when publishing to html
Hello, I would like to report the following problem. I use emacs 26.1, with org-mode version 9.1.9 on Windows. Using emacs with no customization (-Q option) I get an error when publishing an Org file to html. Org asks for htmlize. , | org-babel-exp process emacs-lisp at position 10935... | org-babel-exp process nil at position 11208... | org-babel-exp process emacs-lisp at position 11275... | org-html-fontify-code: Please install htmlize from https://github.com/hniksic/emacs-htmlize ` With htmlize loaded, there is no problem. -- Pascal Quesseveur pques...@gmail.com
[O] Question about org-latex-text-markup-alist
Hello, In org-latex-text-markup-alist what is the difference between markup symbols code and verbatim? -- Pascal Quesseveur pques...@gmail.com
Re: [O] Question about org-latex-text-markup-alist
>"FE" == Fraga, Eric writes: FE> None, I believe. There is a difference if you export to HTML, however. But is not org-latex-text-markup-alist just for latex export? My question was to know in which case the code and the verbatim symbols were used in the latex export. If i want to get style verb instead of texttt in the latex export for text marked with == in org, do I have to set verb for code and verbatim, or only for code? -- Pascal Quesseveur pques...@gmail.com
Re: [O] Question about org-latex-text-markup-alist
>"FE" == Fraga, Eric a écrit : FE> Specifically, as you will see in org-emphasis-alist, == is mapped to FE> verbatim and so you need to change the verbatim syntax in FE> org-latex-text-markup-alist. ~~ is used for code. I realize I wasn't aware of ~~. -- Pascal Quesseveur pques...@gmail.com
Re: [O] Question about org-latex-text-markup-alist
Thanks a lot. -- Pascal Quesseveur pques...@gmail.com
[O] How to use specific keywords
Hello, Wih Org V7 I had developed a custom latex export that used specific keywords defined in org-export-inbuffer-options-extra (document reference, title in the footer, ...). What should I use with recent versions of Org to add keywords in org-export-options-alist? -- Pascal Quesseveur pques...@gmail.com
Error during PDF export but the PDF file is exported
Hello, I use Emacs 27.1 on Windows and Org 9.3. >From time to time I work on files mounted from a remote host which is late compared to my pc. Then I encounter errors when producing files from Org: File xxx wasn't produced But the file is produced and is up-to-date. The error message comes from org-compile-file. In that function the test is to compare the date at the start of function with the date of the produced file. I don't know if it's still the case in recent versions, but I think it could be changed. For example, instead of using the date at the start of the function, we could use the date of the file if it already exists (time (if (file-exists-p output) (file-attribute-modification-time (file-attributes output)) '(0 0 0 0))) -- Pascal Quesseveur pques...@gmail.com
Re: Error during PDF export but the PDF file is exported
>"IR" == Ihor Radchenko writes: IR> I think that creating a temporary file locally is excessive. Perhaps, but I couldn't find another way. IR> You could guard the logic behind `file-remote-p'. FMU file-remote-p works onnly when there is a handler on path for operation file-remote-p, which is not true in the general case. Otherwise that function returns nil. OTOH it is possible to reserve the creation of a temporary file only when the file is not already present. -- Pascal Quesseveur pques...@gmail.com
Re: Error during PDF export but the PDF file is exported
>"IR" == Ihor Radchenko writes: IR> Pascal, could you please try the latest main and see if the IR> problem is fixed? Unfortunately I can't try at the moment. I have followed the link https://list.orgmode.org/thu03t$16vt$1...@ciao.gmane.io and FWIU it should work fine as it takes the file modification time instead of current-time in org-compile-file as I did in my first attempt. -- Pascal Quesseveur pques...@gmail.com