[O] [export] Markdown - Exporting headings
For some reason, when I export headings under over 2 deep, I get an unexpected markdown export. For example: * First header ** second level *** Third level Fourth level gives me: First header second level 1. Third level 1. Fourth level ideas? thanks! peace, sergio photographer, journalist, visionary Public Key: http://bit.ly/29z9fG0 #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV http://www.Village-Buzz.com http://www.ThoseOptimizeGuys.com http://www.coffee-black.com http://www.painlessfrugality.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101 signature.asc Description: Message signed with OpenPGP using AMPGpg
[org-babel] String interpolation using shell
Hey, all. I am trying to set a string at the head of the file and use it in different places in the file. Everything works correctly for somethign like ruby, but I am not sure how do do this with a shell command. Just sets the string to the url #+NAME: url_name #+BEGIN_SRC ruby "http://www.google.com"; #+END_SRC #+RESULTS: url_name : http://www.google.com #+BEGIN_SRC ruby :var url_input=url_name url_input #+END_SRC #+RESULTS: : http://www.google.com ^^ This seems to work fine. #+BEGIN_SRC shell :var url_input=url_name curl url_input #+END_SRC #+RESULTS: ^^ This doesn't work. It is trying to use "url_input" in the curl command. #+BEGIN_SRC shell curl {url_input} #+END_SRC #+RESULTS: ^^ this doesn't work. It is trying to use "url_input" in the curl command. Thanks! peace, sergio photographer, journalist, visionary Public Key: https://pgp.key-server.io/pks/lookup?op=get&search=0x69B08F58923AB3A2 #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV @sergio_101@mastodon.social https://sergio101.com http://www.codeandmusic.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101 signature.asc Description: Message signed with OpenPGP
[Properties] accessing propreties in text
Is there a way to reference the values of properties, so that at render time, the document does something like: * Opening section :PROPERTIES: :section: test :time: 1 day :END: Is there a way to do something like.. this section is the section and will be done in which would render as: Is there a way to do something like.. this section is the test section and will be done in 1 day Thanks! peace, sergio photographer, journalist, visionary Public Key: https://pgp.key-server.io/pks/lookup?op=get&search=0x69B08F58923AB3A2 #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV @sergio_101@mastodon.social https://sergio101.com http://www.codeandmusic.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101 signature.asc Description: Message signed with OpenPGP
Accessing properties in code blocks
I realized this is related to my previous post, but if i could do this, it would save alot of work. I would like to access the values of the properties inside the (shell) code block. Thanks! * Report section :PROPERTIES: :url: http://www.googole.com :END: I'd like to have several sections like this. Each section woudl have different values for the same property. They would make different calls to respective url. something like #+BEGIN_SRC shell curl #+END_SRC where the result of that call woudl be whatever i get from that running curl on that url. peace, sergio photographer, journalist, visionary Public Key: https://pgp.key-server.io/pks/lookup?op=get&search=0x69B08F58923AB3A2 #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV @sergio_101@mastodon.social https://sergio101.com http://www.codeandmusic.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101 signature.asc Description: Message signed with OpenPGP
Re: Accessing properties in code blocks
I am getting: eval: Symbol’s function definition is void: org-macro--get-property I am using: Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ /Applications/Emacs.app/Contents/Resources/lisp/org/) Mark set Is this a newer function? Thanks! > You can use elisp code to look up the property you want to pass as a variable: > > #+BEGIN_SRC shell :var url=(org-macro--get-property "url" "") > curl $url > #+END_SRC > > peace, sergio photographer, journalist, visionary Public Key: https://pgp.key-server.io/pks/lookup?op=get&search=0x69B08F58923AB3A2 #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV @sergio_101@mastodon.social https://sergio101.com http://www.codeandmusic.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101 signature.asc Description: Message signed with OpenPGP
Re: Accessing properties in code blocks
Ah. I am running the org-mode that came with my emacs. I tried updating it, but ran into version problems. I will see if there is another emacs-lisp way to get that info. Thanks! > On Jan 9, 2020, at 6:26 PM, Mike Gauland wrote: > > Looking at git, it seems that was introduced in 9.2. peace, sergio photographer, journalist, visionary Public Key: https://pgp.key-server.io/pks/lookup?op=get&search=0x69B08F58923AB3A2 #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV @sergio_101@mastodon.social https://sergio101.com http://www.codeandmusic.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101 signature.asc Description: Message signed with OpenPGP
Inserting a row divider/header into org-babel results
Adding a header to the data === I am presenting some simple data here, but the idea is, I would like to programatically add a header to the results of an org-babel evaluation. Looking at the results from `data_table', I would like to intercept the first line so that I can massage it into the preferred output. I am just unsure how to insert the header into my output. My goal is to be able to generate the "Preferred result" programatically. Any Ideas? Thanks! Latex Test ~~ Table test here: , | rows = (1..5) | columns = (1..5) | results = [] | rows.each_with_index do |row| | result_row = [] | columns.each do |column| | result_row << column * row | end | results << result_row | end | results ` 1 2 3 4 5 2 4 6 8 10 3 6 9 12 15 4 8 12 16 20 5 10 15 20 25 Preferred result column 1 column 2 column 3 column 4 column 5 -- 2 4 6 810 3 6 91215 4 8121620 510152025 peace, sergio photographer, journalist, visionary Public Key: https://pgp.key-server.io/pks/lookup?op=get&search=0x69B08F58923AB3A2 #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV @sergio_101@mastodon.social https://sergio101.com http://www.codeandmusic.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101 signature.asc Description: Message signed with OpenPGP