Re: [O] org-mode - export as folder structure possible?
Have a look at the docstring for the function `org-element-map'. On 17 November 2016 at 00:00, mcg wrote: > Hello, > > I need to create a rather complex folder structure. > It is OK to create that in dired but I think even nicer and faster it would > be to create an org-mode outline which then exports this folder structure to > the org document's directory. > > This could even be extended to create blank files with file extension within > the directory - maybe communicated to the exporter with list items. > Can the org-mode exporter be used or easily programmed for this kind of > application? > > * Folder > - Registry.xls > - document.doc > > ** Subfolder > > *** Subsubfolder > - some_document.txt > > ** Subfolder 2 > > * Another folder > > ** another one > - document.file_extension > - ListB.xlsx > > > With that functionality I could really thoroughly create a decent folder > structure. With many people working on the windows server it becomes quite > chaotic. > Thanks in advance for any answer. > > -- Phil Hudson http://hudson-it.ddns.net Pretty Good Privacy (PGP) ID: 0x887DCA63
Re: [O] org-mode - export as folder structure possible?
Hello, > Hello, > > I need to create a rather complex folder structure. > It is OK to create that in dired but I think even nicer and faster it > would be to create an org-mode outline which then exports this folder > structure to the org document's directory. > > This could even be extended to create blank files with file extension > within the directory - maybe communicated to the exporter with list > items. > Can the org-mode exporter be used or easily programmed for this kind > of application? > > * Folder > - Registry.xls > - document.doc > > ** Subfolder > > *** Subsubfolder > - some_document.txt > > ** Subfolder 2 > > * Another folder > > ** another one > - document.file_extension > - ListB.xlsx [...] > > Thanks in advance for any answer. I fiddled together something which might be a start for you. https://gist.github.com/marcowahl/c12ed4b2df9748ad7185338394b92445 Files are identified by the 'file' tag in that example. If you want to stay with the plain lists you should follow the direction pointed to by Phil AFAICT. Ciao, Marco
[O] force italic mode?
Greetings. (My first question is, can I post from gmane?) I know how to make text italic by /surrounding/ it with /slashes/. I know that there's a variable (org-emphasis-regex-components) that specifies what characters are allowed before or after the markup characters. But let's say I don't want to mess with my document defaults. I just want to specify, in this one particular place, that I have the word fuzzywuzzywuzzabear and I want "wuzzy" to be italic. Is there a way I can do that? --hymie!
Re: [O] [PATCH] New header parameter :show-process for Org-babel-clojure
Hi Nicolas, Great! Please let me know once the process is complete, so that I can apply your patch in master. I am still waiting for FSF's signature. Should come in soon I guess. Thanks, Fred
Re: [O] current, working org-protocol bookmarklet for firefox?
Thank you Marco, this works really well. I find myself switching back and forth between "capture" and "store link" (I probably add links to things I'm writing more often than I actually capture web pages). I wrote to Olivier and he has already responded that he will try to find some time to build a more flexible interface into the plugin -- I have to say I love the org community sometimes it's quite a revelation. On Tue, Nov 15, 2016 at 5:51 PM, Marco Wahl wrote: > Matt Price writes: > > > Does anyone have a current, working org-protocol bookmarklet that will > > capture webpage+document title either in store link format > > > > [[Document title][http://some.url]] > > > > or in a more complex capture template? I have tried various things > > including the firefox plugin and am not having a lot of success. Thank > you!! > > > > Does anyone have a current, working org-protocol bookmarklet that will > capture webpage+document title either in store link format > > > > [[Document title][http://some.url]] > > > > or in a more complex capture template? I have tried various things > including the firefox plugin and am not having a lot of success. Thank you!! > > Don't know about bookmarklet but have you tried the addon > > http://chadok.info/firefox-org-capture/ > > My capture template is > > ("w" "capture for the bucket (thought for captures from the web > via org-protocoll)" entry > (file "~/org/bucket.org") > "* %:description > :PROPERTIES: > :CREA_DATE: %U > :END: > > :origin: > %U, %c > > %i > :END:" :prepend t :empty-lines 1 :clock-in t :clock-resume t) > > Currently I'm quite happy with this setting. > > > > HTH, > -- > Marco > > >
Re: [O] force italic mode?
hymie! writes: > Greetings. > > (My first question is, can I post from gmane?) > > I know how to make text italic by /surrounding/ it with /slashes/. > > I know that there's a variable (org-emphasis-regex-components) that > specifies what characters are allowed before or after the markup > characters. > > But let's say I don't want to mess with my document defaults. I just > want to specify, in this one particular place, that I have the word > > fuzzywuzzywuzzabear > > and I want "wuzzy" to be italic. Is there a way I can do that? You haven't actually said why you can't just write /fuzzywuzzywuzzabear/, but presumably there's some reason that won't work. You might consider literal export snippets, though then you'd need to target each different backend you're exporting to. So you could do: @@html:@@fuzzywuzzywuzzabear@@html:@@ For instance. Is that what you meant?
Re: [O] force italic mode?
No what Hymie wants is part of the middle of that word italicizes I think. On Thursday, November 17, 2016, Eric Abrahamsen wrote: > hymie! > writes: > > > Greetings. > > > > (My first question is, can I post from gmane?) > > > > I know how to make text italic by /surrounding/ it with /slashes/. > > > > I know that there's a variable (org-emphasis-regex-components) that > > specifies what characters are allowed before or after the markup > > characters. > > > > But let's say I don't want to mess with my document defaults. I just > > want to specify, in this one particular place, that I have the word > > > > fuzzywuzzywuzzabear > > > > and I want "wuzzy" to be italic. Is there a way I can do that? > > You haven't actually said why you can't just write > /fuzzywuzzywuzzabear/, but presumably there's some reason that won't > work. You might consider literal export snippets, though then you'd need > to target each different backend you're exporting to. So you could do: > > @@html:@@fuzzywuzzywuzzabear@@html:@@ > > For instance. Is that what you meant? > > > -- John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu
Re: [O] force italic mode?
John Kitchin writes: > No what Hymie wants is part of the middle of that word italicizes I > think. Oh, sorry! Don't know how I missed that. Well, still, same solution: fuzzy@@html:@@wuzzy@@html:@@wuzzabear So far as I know there's no way to do that *outside* of an export-specific snippet, but I would love to be proved wrong. E
[O] Reference to images and export to PDF
Hello I'm writing a doc with some images and i reference to its. When export only to latex and then by command line runs 2 times the conversor (because the index and references) the pdf it's fine. But When i export directly from org-mode on emacs with "C c C e l p" runs ok, generate the index but lost references and give a pdf with 99% ok but 1% wrong. I ask to all of you how can i fix it? Thanks! -- David A. Pineda Osorio F:+56 9 82142267 Ingeniero Civil Electricista Universidad de Chile
Re: [O] replying to emai with org-mode syntax in mu4e
Hey everyone, I am definitely still seeing this problem; I just sent a new email to the mu list to see if anyone there has the same issue. Google groups link is here: https://groups.google.com/forum/#!topic/mu-discuss/Hvl9wzI01DA if you are able to reproduce or can see immediate errors in my ocnfig I'd be grateful to hear about it. Thanks! On Tue, Nov 1, 2016 at 2:13 PM, Matt Price wrote: > OK, I will try -- doesn't immediatley seem to work but I may have some > crud kicking around my config that I need to get rid of. > > With both your orgmime and the standard library, htmlize-and-send works > perfectly well when run from the headers. When run form the message body, > sending fails with "Already sent by mail. Resend?" and drops me back into > the buffer if I say "n". If I say "y", the send and save both fail. If I > say "n", and go bak to the headers & execute C-c, sending now succeeds. > > No time to track down rihgt now but frustrating for sure!! > > > On Tue, Nov 1, 2016 at 12:17 PM, John Kitchin > wrote: > >> you could try my adapted version here: >> https://github.com/jkitchin/scimax/blob/master/org-mime.el >> >> Matt Price writes: >> >> > On Mon, Oct 31, 2016 at 1:05 PM, John Kitchin >> > wrote: >> > >> >> I got that too for a while. Then it seemed to go away. >> > >> > >> > If only I could copy-paste that part of your code ("seemed to go >> away...")! >> > Is pretty persistent for me. Odldy, the first email I send in a new >> emas >> > seems to go out fine, and ot save fine in myu sent folder; after that I >> get >> > that error. Message sends if I hit C-c C-c again from the headers >> section >> > of the htmlized buffer. So, not a atastrophe, but not especially >> > streamlined either. >> >> >> -- >> Professor John Kitchin >> Doherty Hall A207F >> Department of Chemical Engineering >> Carnegie Mellon University >> Pittsburgh, PA 15213 >> 412-268-7803 >> @johnkitchin >> http://kitchingroup.cheme.cmu.edu >> > >
Re: [O] org.texi edits, patch attached
Hello, Lambda Coder writes: > See if this patch file works. It was generated against maint branch instead > of master with this command: > > git format-patch origin/maint > > If it still does not work for you, use the attached the org.texi file > instead. Just copy the entire Working With Source Code chapter. It didn't so I used the latter and applied your changes. I also added a changelog. Thank you. Regards, -- Nicolas Goaziou
Re: [O] [PATCH] New header parameter :show-process for Org-babel-clojure
Hello, Frederick Giasson writes: > I am still waiting for FSF's signature. Should come in soon I guess. I applied your patch on a local branch, but compilation issues the following warnings: In toplevel form: ob-clojure.el:86:1:Warning: Unused lexical variable `nrepl-sync-request-timeout' In org-babel-execute:clojure: ob-clojure.el:149:34:Warning: reference to free variable `org-babel-clojure-sync-nrepl-timeout' In end of data: ob-clojure.el:180:1:Warning: the following functions are not known to be defined: nrepl-request:eval, nrepl--merge, nrepl-dict-put Could you look into it? In particular, "nrepl--merge" looks like an internal function from nrepl. Is it safe to use it? Regards, -- Nicolas Goaziou
Re: [O] org.texi edits, patch attached
On Thu, Nov 17, 2016 at 2:56 PM, Nicolas Goaziou wrote: > It didn't so I used the latter and applied your changes. I also added > a changelog. > Thanks. Do you prefer future edits against master or maint branch? It was not clear when I asked the very first time. --Lambda Coder.
Re: [O] replying to emai with org-mode syntax in mu4e
On Thu, Nov 17, 2016 at 1:10 PM, Matt Price wrote: > Hey everyone, I am definitely still seeing this problem; I just sent a new > email to the mu list to see if anyone there has the same issue. Google > groups link is here: > https://groups.google.com/forum/#!topic/mu-discuss/Hvl9wzI01DA > In case, at some point, someone else starts seeing the same problem, I seem to have fixed it. There appears to be some kind of bad chemistry between recent org-mode, recent mu4e, and message mode. The trick for me was making sure that org-mu4e-compose-org-mode was switched off before message-send-and-exit ran: (defun htmlize-and-send () "When in an org-mu4e-compose-org-mode message, htmlize and send it." (interactive) (when (member 'org~mu4e-mime-switch-headers-or-body post-command-hook) (org-mime-htmlize) (org-mu4e-compose-org-mode) (message-send-and-exit))) The second-to-last line is my only change. Matt > > if you are able to reproduce or can see immediate errors in my ocnfig I'd > be grateful to hear about it. > Thanks! > > On Tue, Nov 1, 2016 at 2:13 PM, Matt Price wrote: > >> OK, I will try -- doesn't immediatley seem to work but I may have some >> crud kicking around my config that I need to get rid of. >> >> With both your orgmime and the standard library, htmlize-and-send works >> perfectly well when run from the headers. When run form the message body, >> sending fails with "Already sent by mail. Resend?" and drops me back into >> the buffer if I say "n". If I say "y", the send and save both fail. If I >> say "n", and go bak to the headers & execute C-c, sending now succeeds. >> >> No time to track down rihgt now but frustrating for sure!! >> >> >> On Tue, Nov 1, 2016 at 12:17 PM, John Kitchin >> wrote: >> >>> you could try my adapted version here: >>> https://github.com/jkitchin/scimax/blob/master/org-mime.el >>> >>> Matt Price writes: >>> >>> > On Mon, Oct 31, 2016 at 1:05 PM, John Kitchin >> > >>> > wrote: >>> > >>> >> I got that too for a while. Then it seemed to go away. >>> > >>> > >>> > If only I could copy-paste that part of your code ("seemed to go >>> away...")! >>> > Is pretty persistent for me. Odldy, the first email I send in a new >>> emas >>> > seems to go out fine, and ot save fine in myu sent folder; after that >>> I get >>> > that error. Message sends if I hit C-c C-c again from the headers >>> section >>> > of the htmlized buffer. So, not a atastrophe, but not especially >>> > streamlined either. >>> >>> >>> -- >>> Professor John Kitchin >>> Doherty Hall A207F >>> Department of Chemical Engineering >>> Carnegie Mellon University >>> Pittsburgh, PA 15213 >>> 412-268-7803 >>> @johnkitchin >>> http://kitchingroup.cheme.cmu.edu >>> >> >> >
Re: [O] replying to emai with org-mode syntax in mu4e
one last thing: I had some further trouble when I tried to turn on org-mu4e-compose-org-mode as a hook to mu4e-compose-mode. I'm pretty sure there's some kind of a loop related to the funky post-command-hook-setting internal function org~mu4e-mime-switch-headers-or-body. Anyway, turning off hte hook and applying the above hook fixed my issue. Added a couple of keybindings and now everything works! On Thu, Nov 17, 2016 at 8:42 PM, Matt Price wrote: > > > On Thu, Nov 17, 2016 at 1:10 PM, Matt Price wrote: > >> Hey everyone, I am definitely still seeing this problem; I just sent a >> new email to the mu list to see if anyone there has the same issue. Google >> groups link is here: >> https://groups.google.com/forum/#!topic/mu-discuss/Hvl9wzI01DA >> > > In case, at some point, someone else starts seeing the same problem, I > seem to have fixed it. There appears to be some kind of bad chemistry > between recent org-mode, recent mu4e, and message mode. The trick for me > was making sure that org-mu4e-compose-org-mode was switched off before > message-send-and-exit ran: > > (defun htmlize-and-send () > "When in an org-mu4e-compose-org-mode message, htmlize and send it." > (interactive) > (when (member 'org~mu4e-mime-switch-headers-or-body post-command-hook) > (org-mime-htmlize) > (org-mu4e-compose-org-mode) > (message-send-and-exit))) > > The second-to-last line is my only change. > > Matt > > > >> >> if you are able to reproduce or can see immediate errors in my ocnfig I'd >> be grateful to hear about it. >> Thanks! >> >> On Tue, Nov 1, 2016 at 2:13 PM, Matt Price wrote: >> >>> OK, I will try -- doesn't immediatley seem to work but I may have some >>> crud kicking around my config that I need to get rid of. >>> >>> With both your orgmime and the standard library, htmlize-and-send works >>> perfectly well when run from the headers. When run form the message body, >>> sending fails with "Already sent by mail. Resend?" and drops me back into >>> the buffer if I say "n". If I say "y", the send and save both fail. If I >>> say "n", and go bak to the headers & execute C-c, sending now succeeds. >>> >>> No time to track down rihgt now but frustrating for sure!! >>> >>> >>> On Tue, Nov 1, 2016 at 12:17 PM, John Kitchin >>> wrote: >>> you could try my adapted version here: https://github.com/jkitchin/scimax/blob/master/org-mime.el Matt Price writes: > On Mon, Oct 31, 2016 at 1:05 PM, John Kitchin < jkitc...@andrew.cmu.edu> > wrote: > >> I got that too for a while. Then it seemed to go away. > > > If only I could copy-paste that part of your code ("seemed to go away...")! > Is pretty persistent for me. Odldy, the first email I send in a new emas > seems to go out fine, and ot save fine in myu sent folder; after that I get > that error. Message sends if I hit C-c C-c again from the headers section > of the htmlized buffer. So, not a atastrophe, but not especially > streamlined either. -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu >>> >>> >> >
Re: [O] Reference to images and export to PDF
On Thursday, 17 Nov 2016 at 17:44, David Pineda wrote: > Hello > I'm writing a doc with some images and i reference to its. When export > only to latex and then by command line runs 2 times the conversor > (because the index and references) the pdf it's fine. But When i > export directly from org-mode on emacs with "C c C e l p" runs ok, > generate the index but lost references and give a pdf with 99% ok but > 1% wrong. > I ask to all of you how can i fix it? What is the setting of org-latex-pdf-process? ,[ C-h v org-latex-pdf-process RET ] | org-latex-pdf-process is a variable defined in ‘ox-latex.el’. | Its value is ("pdflatex %f" "bibtex %b" "pdflatex %f" "pdflatex %f") | Original value was | ("%latex -interaction nonstopmode -output-directory %o %f" "%latex -interaction nonstopmode -output-directory %o %f" "%latex -interaction nonstopmode -output-directory %o %f") | | | Documentation: | Commands to process a LaTeX file to a PDF file. | This is a list of strings, each of them will be given to the | shell as a command. %f in the command will be replaced by the | full file name, %b by the file base name (i.e. without directory | and extension parts), %o by the base directory of the file, | %latex is the LaTeX compiler (see ‘org-latex-compiler’), and %bib | is the BibTeX-like compiler (see ‘org-latex-bib-compiler’). | | The reason why this is a list is that it usually takes several | runs of ‘pdflatex’, maybe mixed with a call to ‘bibtex’. Org | does not have a clever mechanism to detect which of these | commands have to be run to get to a stable result, and it also | does not do any error checking. | | Consider a smart LaTeX compiler such as ‘texi2dvi’ or ‘latexmk’, | which calls the "correct" combinations of auxiliary programs. | | Alternatively, this may be a Lisp function that does the | processing, so you could use this to apply the machinery of | AUCTeX or the Emacs LaTeX mode. This function should accept the | file name as its single argument. | | You can customize this variable. | | [back] ` -- : Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_8.3.6-1272-gc61ee8