[O] Tangling the same file in v8.2 and v.8.5 produces different results?
Good evening, I'm tangling this example in a file named test3.org --snip-- #+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh <> #+END_SRC * the mount point of the fullest disk :PROPERTIES: :noweb-ref: fullest-disk :END: ** query all mounted disks #+BEGIN_SRC sh df \ #+END_SRC ** strip the header row #+BEGIN_SRC sh |sed '1d' \ #+END_SRC ** sort by the percent full #+BEGIN_SRC sh |awk '{print $5 " " $6}'|sort -n |tail -1 \ #+END_SRC ** extract the mount point #+BEGIN_SRC sh |awk '{print $2}' #+END_SRC --snip-- with GNU Emacs 24.5.1 (x86_64-apple-darwin15.4.0, NS apple-appkit-1404.46) and Org-mode version 8.2.10 (release_8.2.10 @ /usr/local/Cellar/emacs/24.5/share/emacs/24.5/lisp/org/) started like this open /Applications/Emacs.app -n --args --no-init-file and when I run `org-babel-tangle' it create a file test3.sh which contains the following --snip-- #!/bin/sh df \ |sed '1d' \ |awk '{print $5 " " $6}'|sort -n |tail -1 \ |awk '{print $2}' --snip-- I am trying to tangle the same file test3.org in the Git version of Org-Mode and get a different result. Here is how I started Emacs this time: open /Applications/Emacs.app -n --args --quick --load ~/src/help/.org-mode-ecm.emacs.el Here are the contents of .org-mode-ecm.emacs.el right now --snip-- (setq load-prefer-newer t) (add-to-list 'load-path "~/src/org-mode/lisp") (add-to-list 'load-path "~/src/org-mode/contrib/lisp") ;;(setq org-list-allow-alphabetical t) ;;(setq org-enforce-todo-checkbox-dependencies t) ;;(setq org-babel-noweb-wrap-start "«") ;;(setq org-babel-noweb-wrap-end "»") (require 'org) --snip-- The Org mode version is Org-mode version 8.3.5 (release_8.3.5-1032-g9798da-git @ /Users/gcr/src/org-mode/lisp/) When I tangle the file it's output to test3.sh is --snip-- #!/bin/sh --snip-- I expected the contents of test3.sh to be the same when I tangled it in Org 8.5 as in Org 8.2 but instead they were not. Do you know if what setting changed to cause this or if I am doing something incorrectly here what is the right approach? Sincerely, Grant Rettke
Re: [O] seeking good practices for writing about org using org
Hi, Additionally, if I change to #+BEGIN_SRC org :exports both :results value html I do not want the html rendered in the browser when I export to html. Rather, I want to see the html that was created. Actually, having the option to see BOTH would be ideal. Similarly, if I change to #+BEGIN_SRC org :exports both :results value latex I want to see the generated latex in the browser (when I export to html) or the generaled latex in the pdf (when I go that route). I suppose my actual goal is to be able to write org, and generate a document which display the org (:results code), display the markup (:results value), and possibly optionally additionally shows (an image) of how the markup renders (possibly using node to render html to an image or something else to render latex as an image). Any insights into straightening out this thinking much welcome Cheers, Malcolm
Re: [O] seeking good practices for writing about org using org
Thanks. Much closer. Still some issues. Mind taking another gander (hoping the attached jpeg of the webpage rendered comes through as an attachment) If my emacs buffer holds... -- #+BEGIN_SRC org :exports both :results value ascii ,* Acknowledgments [[mailto:myw...@example.com][my wife]] ,* Chapter one Fa la la ls ,* Chapter two La di di ,* Finally, here is a table of contents! ,#+TOC: #+END_SRC -- Then exporting to html gives me a webpage with what I think are still a few issues: * I would expect the 2nd line not to display as an emacs link text. I am trying to display the contents of the emacs buffer. * There is not table of contents. As in this screen shot. Thanks for you TIPS! > -Original Message- > From: Charles C. Berry [mailto:ccbe...@ucsd.edu] > Sent: Wednesday, August 03, 2016 9:16 PM > To: Cook, Malcolm> Cc: 'emacs-orgmode@gnu.org' > Subject: Re: seeking good practices for writing about org using org > > On Wed, 3 Aug 2016, Cook, Malcolm wrote: > > > Hi, > > > > I am seeking good practices for writing about org using , erhm, well, > > org itself. (doh!) > > > > I'd use these practices, for example, when writing examples of using > > org, or lessons in using org, or bug reports about org. > > > > I reached of ob-org thinking this is what it was for, and wrote the > > following > > > > --- (beginning of example) > > Here is simple org book structure with chapters and a table of > > contents at the end: > > > > #+BEGIN_SRC org :exports both :results value > > > > * chapter one > > > > Fa la la > > > > * chapter two > > > > La di di > > > > * table of contents > > > > #+TOC: > > > > #+END_SRC > > --- (end of example) > > > > My dashed expectations were that when executed and exported, this > would > > produce a block of the org source, appropriately quoted, followed be the > > RESULTS, being, well, the rendered org. > > > > Are your expectations the same as mine? > > > > No. Run `M-x org-lint RET' and you will see that this is malformed. The > org code needs to be escaped. > > > What do YOU do in such cases? > > Edit the src block in an edit buffer. You'll need to kill the contents of > that src block first, then C-c ' to open the src edit buffer, then yank, > then C-c > ' > again. The resulting buffer will be properly escaped. > > See (info "(org) Literal examples"), especially footnote 4. > > -- > > Then specify `:results replace' to override `:results silent' which > `org-babel-default-header-args:org' sets. > > -- > > Then the export should be what you expect. > > HTH, > > Chuck
Re: [O] seeking good practices for writing about org using org
On Wed, 3 Aug 2016, Cook, Malcolm wrote: Hi, I am seeking good practices for writing about org using , erhm, well, org itself. (doh!) I'd use these practices, for example, when writing examples of using org, or lessons in using org, or bug reports about org. I reached of ob-org thinking this is what it was for, and wrote the following --- (beginning of example) Here is simple org book structure with chapters and a table of contents at the end: #+BEGIN_SRC org :exports both :results value * chapter one Fa la la * chapter two La di di * table of contents #+TOC: #+END_SRC --- (end of example) My dashed expectations were that when executed and exported, this would produce a block of the org source, appropriately quoted, followed be the RESULTS, being, well, the rendered org. Are your expectations the same as mine? No. Run `M-x org-lint RET' and you will see that this is malformed. The org code needs to be escaped. What do YOU do in such cases? Edit the src block in an edit buffer. You'll need to kill the contents of that src block first, then C-c ' to open the src edit buffer, then yank, then C-c ' again. The resulting buffer will be properly escaped. See (info "(org) Literal examples"), especially footnote 4. -- Then specify `:results replace' to override `:results silent' which `org-babel-default-header-args:org' sets. -- Then the export should be what you expect. HTH, Chuck
[O] seeking good practices for writing about org using org
Hi, I am seeking good practices for writing about org using , erhm, well, org itself. (doh!) I'd use these practices, for example, when writing examples of using org, or lessons in using org, or bug reports about org. I reached of ob-org thinking this is what it was for, and wrote the following --- (beginning of example) Here is simple org book structure with chapters and a table of contents at the end: #+BEGIN_SRC org :exports both :results value * chapter one Fa la la * chapter two La di di * table of contents #+TOC: #+END_SRC --- (end of example) My dashed expectations were that when executed and exported, this would produce a block of the org source, appropriately quoted, followed be the RESULTS, being, well, the rendered org. Are your expectations the same as mine? What do YOU do in such cases? Are there good practices for this? Am I off by a level in my meta-thinking? Thanks! Malcolm Cook - Kansas City
[O] org-html-list-of-tables ODD BEHAVIOR in producing in html export a hyperlinked table of figures to result tables
Hi, I understand that Including in my org file: #+TOC: tables Produces a list of all captioned tables in my document. If the table lacks a caption, it does not appear in the list of tables. Alas, they are not hyperlinked to the table unless I add a #+NAME directive. Oddly, the #+NAME: may even be empty, and the hyperlink is created. Further oddly, even if the #+NAME is empty, its actual value is ignored it is not used as the anchor. Is all this by design? Thanks, Malcolm
Re: [O] Scaling of image previews in org-mode
I think you need to build emacs with ImageMagick support for image scaling to work. On Wed, Aug 3, 2016 at 12:20 PM, Johannes Brauerwrote: > Hi! > > If I insert a jpg in my org-mode document, I can preview it but not scale > its width, like so: > > Add the following code to my init.el file: > (setq org-image-actual-width nil) > > Then insert this code in my document, where I want the image to appear: > #+ATTR_ORG: :width 20 > [[./test.jpg]] > > No matter which value I give for the width argument the image appears in > the buffer always in its original size. > > However, scaling for html export with #+attr_html works fine. > > What is going wrong? > > (Org-mode version 8.3.4 (8.3.4-99-ga8e4a3-elpa @ > /Users/johannes/Library/Preferences/Aquamacs > Emacs/Packages/elpa/org-20160704/) > > Johannes > -- -giri
[O] How to use symbolic names to refer to spreadsheet fields containing irregular values
Dear all, I would like to make the following work (with Org 8.3.5): |---+--++---| | |13:13 | - | 1 | | ^ |h | s | n | |---+--++---| | | 13:13:00 | #ERROR | 1 | |---+--++---| #+TBLFM: @3$2=$h;T::@3$3=$s::@3$4=$n I can give the field @1$2 the symbolic name $h, I can give the field @1$4 the symbolic name $n, and I can successfully refer to both of them in @3. However I didn't manage to refer to @1$3 using the symbolic name $s. The reason must be the value "-". If I use an alphabetic string value, it works. Any ideas? Or is this a bug? Thank you very much in advance, Christoph -- Dr. Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → Please note: I will be on parental leave from 29 July to 28 October. Colleagues will stand in for me by project.
[O] Scaling of image previews in org-mode
Hi! If I insert a jpg in my org-mode document, I can preview it but not scale its width, like so: Add the following code to my init.el file: (setq org-image-actual-width nil) Then insert this code in my document, where I want the image to appear: #+ATTR_ORG: :width 20 [[./test.jpg]] No matter which value I give for the width argument the image appears in the buffer always in its original size. However, scaling for html export with #+attr_html works fine. What is going wrong? (Org-mode version 8.3.4 (8.3.4-99-ga8e4a3-elpa @ /Users/johannes/Library/Preferences/Aquamacs Emacs/Packages/elpa/org-20160704/) Johannes
Re: [O] [ANN] thi.ng/org-spec template for tech specs & HTML export theme
Thanks Kaushal! :) I also think that we generally need more examples showing how flexible & powerful org-mode is for these use cases. The majority raves about Markdown, but for me it just lacks a ton of features I've become so accustomed to w/ org-mode, especially when it comes to writing and managing larger docs (i.e. the latest tech spec I've been working on is 9000+ words) and dozens of diagrams (all text based!) Re: PDF export - for me going the route via HTML is just easier & more time saving (can control important print features via a few lines of CSS). Plus I don't need to install 2.5GB of MacTex :) Also, the generated PDF looks same as HTML, has hyperlinks etc. Haven't tried w/ MathJax yet, though... Expect a few more updates over the coming weeks: - move to SASS for style sheets, for easier re-skinning via variables - improve TOC - add back-to-top links - add more diagram examples (incl. data extraction from tables) - add optional support for highlight.js Cheers! On 1 August 2016 at 23:35, Kaushal Modiwrote: > On Sun, Jul 31, 2016 at 8:55 AM Karsten Schmidt wrote: >> >> >> To give a little back to this amazing group of people, I've just >> published a skeleton template for writing tech docs and publishing >> them as HTML. >> >> GH project: http://thi.ng/org-spec >> Demo: http://demo.thi.ng/org-spec > > > Thanks Karsten! I had a look through those and it looks awesome! I think > they serve as very good examples in general on how to use org for technical > documentation. > > I yet have to try out printing PDF from the browser using your style.css. I > generally rely on the org exporter to generate both HTML and PDF. What > limitations did you face when using the org latex exporter for generating > the PDF? > -- > > Kaushal Modi -- Karsten Schmidt http://postspectacular.com | http://thi.ng | http://toxiclibs.org
Re: [O] crash when editing R blocks in org
Xebar Saramwrites: > Hi all > > i have emacs crashing on me when i edit R code blocks in org > > here is the terminal output: > > https://paste.xinu.at/xg6/ > > does that give any clues? should i file a bug in org or emacs? > > how do proceed with trying to figure out whats causing this? What version of emacs, org, possibly R, minimal reproducible example, when does it occur, what are the steps to reproduce it? Without this information, nothing can be done. But I never experienced this in my workflow. GNU Emacs 25.1.1 (x86_64-apple-darwin15.5.0, Carbon Version 157 AppKit1404.47) of 2016-07-28 Org-mode version 8.3.5 (release_8.3.5-1028-gfb517f @ /Users/rainerkrug/.emacs.d/org-mode/lisp/) R version 3.3.1 (2016-06-21) -- "Bug in Your Hair" Rainer > > best > > Z -- Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 signature.asc Description: PGP signature
[O] crash when editing R blocks in org
Hi all i have emacs crashing on me when i edit R code blocks in org here is the terminal output: https://paste.xinu.at/xg6/ does that give any clues? should i file a bug in org or emacs? how do proceed with trying to figure out whats causing this? best Z