Re: [O] [PATCH] org.el: Preserve indentation of manually indented lines in example blocks.
On Thu, Aug 18, 2011 at 6:44 PM, Bastien wrote: > Valentin Wüstholz writes: > >> I was thinking of the the 80 character line limit for both code and >> commit messages, which doesn't seem to be in there. It might also make >> sense to link to some style guide for Emacs Lisp (e.g., >> http://www.gnu.org/software/emacs/elisp/html_node/Coding-Conventions.html), >> that developers should adhere to. If you agree, I could commit those >> additions to worg. > > I added a section pointing to this link in org-contribute.org. > > It will be online as soon as Worg gets published fine again. Great! Thanks, Valentin
Re: [O] Underline ONLY the first character of a word?
See http://www.mail-archive.com/emacs-orgmode@gnu.org/msg45991.html Just, creating a backlink to the other thread. John Hendy created the forward link. > Greetings. I've "inherited" an HTML document that uses the > construct: > > event > > for instance, to underline the initial 'e' in the word. The context > is > something like: > > eevent > > to show that the choice of option 'e' corresponds to choosing an > "event". > > In preparation for a revision of the document, I'm trying to create a > *.org > file that will duplicate as much of the original style of the HTML > document as > possible (i.e., when exported to HTML). > > I haven't been able to find a way to underline just the first > character of a > word. For instance, > > _e_vent > > doesn't produce what I want. I tried: > > _e_ vent > > and that underlined the 'e' but, of course, left an unwanted space. > > Is there some way to do this? A better way? > > Thanks, > > -- Mike > > > --
Re: [O] Is it possible to markup one character in a word?
> 3. Goto "Allowed chars in pre" and do as in 2. ^^^ post Copy-Paste error. Replace pre by post. --
Re: [O] Is it possible to markup one character in a word?
Vladimir Lomov writes: > Hi. > > Is it possible to markup one character in a word, like e*X*ecute. For > now this don't work. I tried to add ZERO WIDTH SPACE (found on mailing > list) before first * and last * like in example e*X*ecute but this > don't work also. Your suggestion does work but require some customizations. This is more like a braindump but some corrections or refinements might be needed. 1. M-x org-emphasis-regexp-components RET 2. Goto "Allowed chars in pre" and position the cursor before the last double-quotes and do - M-x ucs-insert RET ZERO WIDTH SPACE RET 3. Goto "Allowed chars in pre" and do as in 2. Create string like e|*X*|ecute where the | stands for ZERO WIDTH SPACE , C-u C-x = for ZERO WIDTH SPACE | character: (8203, #o20013, #x200b) | preferred charset: unicode (Unicode (ISO10646)) |code point: 0x200B |syntax:which means: whitespace | buffer code: #xE2 #x80 #x8B | file code: #xE2 #x80 #x8B (encoded by coding system utf-8-emacs-dos) | display: by this font (glyph code) | uniscribe:-outline-Lucida Console-normal-normal-normal-mono-20-*-*-*-c-*-iso10646-1 (#x03) | | Character code properties: customize what to show | name: ZERO WIDTH SPACE | general-category: Cf (Other, Format) | | There are text properties here: | face (gnus-cite-1 message-cited-text) | fontifiedt ` > --- > WBR, Vladimir Lomov > > --
Re: [O] collapsing some headings on html export?
OK, the simple css solution I posted last night fails too easily. Should have known, but it's been a while. (If you add a second folding subheading beneath a folding heading (as you mouse down toward the second subhead, the first subhead folds, leaving you no longer hovered over the parent div, so the parent heading also folds... with the upshot that you can never unfold the second subhead.) CM On 8/25/11 10:19 PM, Christian Moe wrote: Hi, org-info-js may be your best bet, but for a lightweight solution that works with your sample text without a single line of javascript, try this (mouse over headings to display contents): - #+TITLE: Folded headings in html export #+style: .folded > div {display: none;} #+style: .folded > *:after {content: " ..."; #+style: background: yellow} #+style: .folded:hover > div {display: block} #+style: .folded:hover > *:after {content: ""} (...)
Re: [O] Is it possible to markup one character in a word?
Hello, ** John Hendy [2011-08-25 07:06:54 -0500]: > This seems incredibly similar to a thread that *just* took place. Take > a look at this: > --- http://www.mail-archive.com/emacs-orgmode@gnu.org/msg45883.html Thanks, I read it. > Any help there? Actually not much, this was example from a table (see below). Some time ago I tried to markup a word in source block and found that it is impossible now. I simply insert a html-aware text between #+{begin,end}_html and that work but this is suboptimal even if I only want to get html after export. So, is it easy to support in markup parse code the ZERO WIDTH SPACE? I found about ZWS here http://en.wikipedia.org/wiki/Mapping_of_Unicode_characters#Word_joiners_and_separators > On Thu, Aug 25, 2011 at 3:00 AM, Vladimir Lomov wrote: >> Hi. >> Is it possible to markup one character in a word, like e*X*ecute. For >> now this don't work. I tried to add ZERO WIDTH SPACE (found on mailing >> list) before first * and last * like in example e*X*ecute but this >> don't work also. *** Example Imagine following example: | Key bind | Action| |+---| || <29> | || *Launch a program* (e*x*ecute) | | W-x t | launch terminal emulator rxvt-unicode (connect urxvtc client to running urxvt server which should be already started) | || *Launch a browser* (*b*rowser) | | W-b f | launch =firefox= | ... etc --- WBR, Vladimir Lomov -- It has been observed that one's nose is never so happy as when it is thrust into the affairs of another, from which some physiologists have drawn the inference that the nose is devoid of the sense of smell. -- Ambrose Bierce, "The Devil's Dictionary"
Re: [O] [Babel] Blank line preceeds tangled data
Bernt Hansen wrote: > Hi, > > When I tangle some file such as > > #+begin_src sh :tangle x.sh > #!/bin/sh > echo done > #+end_src > > I get the following output which includes a blank line up front. > > ,[ x.sh ] > | > | #!/bin/sh > | echo done > ` > > Doesn't this break the shebang line on unix? I don't think the leading > blank line should be in the tangled output. > Not sure why it's there (I'm sure Eric S. will enlighten us) but you can get rid of it with :padline no. Nick
Re: [O] [Babel] Preserving tabs in code blocks
Bernt Hansen wrote: > Hi all, > > I want to include the contents of a file which requires TABS between > fields in a #+begin_src ... #+end_src block. > > When I use C-c ' to edit the block the TABS are all converted back to > spaces. I want to be able to tangle the file and preserve the TABS > which are required as input to some tool chain. > > Is there some mode I can use to preserve the TABS? > > For example: > > #+begin_src fundamental :tangle testtabs.txt > These words > are separated > bytabs. > #+end_src > > I need to be able to create the testtabs.txt file with the TAB > characters intact otherwise it fails as input to the tool chain (which I > have no control over). > > Is there any way to do this? > > For now I'm keeping the input in a separate file, but I would much > prefer to have it in a babel source block in my notes for future > reference. > Try setting org-src-preserve-indentation to t. If you change the default value of indent-tabs-mode to nil (as I do), then you might have problems in any case: inserted tabs will be changed to spaces. But if you have it left at the default t, then I think this works. Nick
Re: [O] monospace (=) and quotes not getting along
Michael Gauland wrote: > Michael Hannon yahoo.com> writes: > > > To define =my_frabbitz= in this model, we issue the command: > > => my_frabbitz = "someRandomWord"= > > The "my_frabbitz" in the sentence comes out in monospace, but the > > R codedoesn't. It seems that the quotation marks are killing the process. > > I don't remember why this happens, but I've dealt with it by inserting a null > between the quote and the equals. I use export hooks to remove the null from > the > exported HTML and LaTeX files: > > > (add-hook 'org-export-latex-final-hook > (lambda () > (goto-char (point-min)) > (while (re-search-forward "^@" nil t) > (replace-match "") > ) > ) > ) > (add-hook 'org-export-html-final-hook > (lambda () > (goto-char (point-min)) > (while (re-search-forward "^@" nil t) > (replace-match "") > ) > ) > ) Hi, Mike. I was going to object that this was a dangerous approach in my situation, as I intend to pass the .org file on to someone else after I've revised it, and there'd be no way to guarantee that "future generations" would have the same hooks defined. Nevertheless, I tried inserting ^@ as you suggested and then exporting to HTML, WITHOUT defining the hooks, just to see what would happen. The answer is that the HTML document looked just fine! (This is with Org-mode version 7.7 on Emacs 23.2.1 on 64-bit linux.) I don't know if this matters, but I placed the LHS and RHS of the R expression on different, consecutive lines, as: => someVar == =^@"someString"^@= In HTML these are glommed together anyway. I really appreciate your suggestion. And, if anybody asks me, I'll be recommending you for a MacArthur award. -- Mike
[O] Using Code Blocks in Org Tables
I am trying to have the final output of several bash script appear in a summary table. I am trying to follow this example: http://orgmode.org/worg/org-contrib/babel/intro.html#spreadsheet This is my test system: -8<--->8- #+tblname: test #+CAPTION: test #+LABEL: tbl:test | collection | number | |+--| | congr-hearings | (("/home/henk") (2)) | | congr-bills| | | pres-docs | | | eric-docs | | #+TBLFM: @2$2='(sbe "test-sh") #+srcname: test-sh #+begin_src sh :results value x=2 echo $HOME echo $x #+end_src #+results: test-sh | /home/henk | | 2 | ---8<->8 I want actually to have only the number "2" in cell @2$2. I thought that with ":results value" only the final output of the script, i.e. the output of "echo $x" would appear. Instead the results of all echo statement do appear. What am I doing wrongly? Thanks, Henri-Paul -- Henri-Paul Indiogine Curriculum & Instruction Texas A&M University TutorFind Learning Centre Email: hindiog...@gmail.com Skype: hindiogine Website: http://people.cehd.tamu.edu/~sindiogine
Re: [O] Not merging org-lparse, org-xhtml & org-odt to the core
To all, I would just like to, at this point, say that I am honored to have read this discussion. I was very worried that a major blowout was going to occur but you have shown me something that I appreciate about OSS, it not only attempts to make the world better through Freedom but it makes us better as we work together across divides. Hopefully I will be able to become more active, I just finished making the web version of Practical Common Lisp into an e-book to sit on my Nook for me to peruse and study as I continue working on some of my DEV ideas. Thank you to all of you and I am glad that org-odt is still here and everyone involved is as well. --- Matthew
[O] [Babel] Blank line preceeds tangled data
Hi, When I tangle some file such as #+begin_src sh :tangle x.sh #!/bin/sh echo done #+end_src I get the following output which includes a blank line up front. ,[ x.sh ] | | #!/bin/sh | echo done ` Doesn't this break the shebang line on unix? I don't think the leading blank line should be in the tangled output. Regards, Bernt
[O] [Babel] Preserving tabs in code blocks
Hi all, I want to include the contents of a file which requires TABS between fields in a #+begin_src ... #+end_src block. When I use C-c ' to edit the block the TABS are all converted back to spaces. I want to be able to tangle the file and preserve the TABS which are required as input to some tool chain. Is there some mode I can use to preserve the TABS? For example: #+begin_src fundamental :tangle testtabs.txt These words are separated by tabs. #+end_src I need to be able to create the testtabs.txt file with the TAB characters intact otherwise it fails as input to the tool chain (which I have no control over). Is there any way to do this? For now I'm keeping the input in a separate file, but I would much prefer to have it in a babel source block in my notes for future reference. Thanks, Bernt
Re: [O] Todo with checkboxes is grayed out in agenda
Hello, Nathan Neff writes: > My org-enforce-checkbox-dependencies is t You should set it to nil. Regards, -- Nicolas Goaziou
Re: [O] monospace (=) and quotes not getting along
Michael Hannon yahoo.com> writes: > To define =my_frabbitz= in this model, we issue the command: > => my_frabbitz = "someRandomWord"= > The "my_frabbitz" in the sentence comes out in monospace, but the > R codedoesn't. It seems that the quotation marks are killing the process. I don't remember why this happens, but I've dealt with it by inserting a null between the quote and the equals. I use export hooks to remove the null from the exported HTML and LaTeX files: (add-hook 'org-export-latex-final-hook (lambda () (goto-char (point-min)) (while (re-search-forward "^@" nil t) (replace-match "") ) ) ) (add-hook 'org-export-html-final-hook (lambda () (goto-char (point-min)) (while (re-search-forward "^@" nil t) (replace-match "") ) ) ) --(a different) Mike
Re: [O] HTML5 presentations
Matt Price writes: > On Wed, Aug 24, 2011 at 8:14 AM, zwz wrote: >> Those days I came across two tools which I thought interesting and >> helpful if could be combined with org-export in some way. >> >> 1. Deck.js: a js lib for making modern html presentation. See >> http://imakewebthings.github.com/deck.js/#intro for more info. >> > I would really like to see an exporter for this, in part because > Drupal integration for deck.js is underway. Having just walked through the introduction I will say that deck appears to be the most polished of the html presentation engines I have yet seen. It would be nice to see some support for fitting html exported from Org into deck. > We already have several html5 presentation modes described on worg: > http://orgmode.org/worg/org-tutorials/non-beamer-presentations.html > > but there are lots of html5 methods out there; here are some resources: > http://slides.html5rocks.com/#landing-slide > http://usepow.com/about/# > http://code.google.com/p/html5slides/ > http://code.google.com/p/sfeir/source/browse/trunk/html5-slides/ > > so here are a couple of questions: > > - is one of these frameworks better than/easier to work with than the > others? Can any of them be shared on slideshare or another archiving > service? I don't know of any standout in the space of html presentation engines, and it seems to be fast-moving at the moment. > > - can we standardize on a feature-rich exporter Given that, it may be wiser to continue supporting Org-mode integration with as many of the engines as possible and wait to see if one naturally rises above the competition. Or, said another way, my opinion is that it may not be a good idea to try to standardize on a single html presentation engine at this time. > and start building a useful interface to it (e.g., on e that allows > users to specify transitions & so forth in a property)? This can happen without limiting to a single exporter. > > - what would be the best starting point for a new exporter? > Jambunathan has the generic html exporter, surely that could be a > starting point? But the simple html5presentation exporter (see link > above) produces pretty good presentations already. > I had a very good experience using the existing html exporter to generate S5 presentations. All that was needed was a little bit of post-processing and judicious use of existing export customization options. I like this approach because it relies on existing Org-mode functionality which is known to work well, and because it does not require as much extra maintenance moving forward as would a whole new export backend. > > Anyway, I'm very glad to see these possibilities emerging in recent > months. I'm looking forward to the end of powerpoint! If I never have > to use OOo Present again it'll be too soon... > here here! -- Eric > > Matt > -- Eric Schulte http://cs.unm.edu/~eschulte/
[O] monospace (=) and quotes not getting along
Greetings. I have another dumb question related to HTML export. In the document I'm revising I have some R code and some references to R variables. I'd like the R code and variables to appear in monospaced font. This seems easy enough. Here's an example that works as I want it to work: To define =my_foobar= in this model, we issue the command: => my_foobar = dataset$foobar= I've got a whole series of similar expressions, and they mostly do work, but here's one that doesn't: To define =my_frabbitz= in this model, we issue the command: => my_frabbitz = "someRandomWord"= The "my_frabbitz" in the sentence comes out in monospace, but the R code doesn't. It seems that the quotation marks are killing the process. I've tried a number of stupid quoting tricks, such as using: ...\"someRandomWord\"= ...""someRandomWord""= etc., but they typically make things worse. BTW, using the begin/end_example construct does more or less what I want, but it breaks the flow of the document, and there are many places in the document where the =...= construct works just fine and gives the look I need. Any suggestions? Thanks, -- Mike
Re: [O] org->odt/html table export: adjusting default behaviour?
Matt Price writes: > The attached test file shows an org file with tables whose columns > include substantial amounts of text. The default export to odt is > pretty ugly in this case, and even in html (where things work to some > extent) I would rather be able to control to some extent the way that > long fields wrap. is there a recommended way to do set values like > table and column width for these two exports? I guess I am > particularly concerned with the odt export -- can I e.g. adjust a > default value somewhere in the styles.xml file? I doubt the problem > will be easily solved but if someone can point me in the right > direction I'd really appreciate it. If you are creating big tables a better alternative would be to create ods/xls spreadsheets from Orgmode tables. So 1. Export the table to csv format using M-x org-table-export RET etc etc 2. C-x C-f test.csv 3. C-u M-x org-lparse-convert RET 4. When prompted for output format use TAB for completion to see the available formats. Pick ods or xls. (Hint: For a superior completion experience enable ido mode) 5. You will see the ods file opening up automagically under writer. (If you have not used C-u in step 4, only conversion will happen. The resulting file will not be opened) Jambunathan K. --
Re: [O] [bug] Inconsistent tag alignment in org-indent-mode
Hi Michael and Jason, Michael Brand writes: > This reminds me of a similar problem with tag alignment that I solved > with a patch that did not get any feedback yet. Can you try if this > patch solves your problem too? > http://thread.gmane.org/gmane.emacs.orgmode/42564 yes, this fix your case, Michael. Jason, let me know if this fix yours, I'll then push the fix. Best, -- Bastien
Re: [O] agenda: "void: category-pos"
Achim Gratz writes: > The byte compiler still complains about this: Grr.. fixed, thanks!! -- Bastien
Re: [O] org->odt/html table export: adjusting default behaviour?
Matt Price writes: > The attached test file shows an org file with tables whose columns > include substantial amounts of text. The default export to odt is > pretty ugly in this case, and even in html (where things work to some > extent) I would rather be able to control to some extent the way that > long fields wrap. is there a recommended way to do set values like > table and column width for these two exports? I guess I am > particularly concerned with the odt export -- can I e.g. adjust a > default value somewhere in the styles.xml file? I doubt the problem > will be easily solved but if someone can point me in the right > direction I'd really appreciate it. The issue is not that fields don't wrap well but that the table is big for the width of the paper and columns are as a result getting congested. I have pushed a fix whereby tables now occupy bigger space [1]. I also noticed that columns are unevenly spaced. Now I have updated the styles so that columns are equally spaced [2]. Orgmode exporters can never be layout engines. They are also typically useful for personal (as opposed to professional) production. In some sense they are good for handouts, pamphlets and drafts etc. So some amount of hand fixing and finer adjustments would always be required. You choose a smaller font for text in the table with: F11->Paragraph Styles->OrgTableContents->Choose a smaller (say 10 pt) font. This will affect the text in all the tables. For the sake of documentation, Vertical and horizontal grid lines in the exported table correspond to colgroups (specified in table cookie lines) and by horizontal rulers in the org table [3]. You can use these grid lines in the Org file and automatically the exporter will create the grid lines for you. If you need really prettier tables you can rely on Table->Autoformat. Footnotes: [1] So there is now a reverse problem of tables with less number of columns and not having copious text looking too big. But big is better even if it is ugly. The workaround is to rely on Table Properties->Table->Width [2] Pre-processor in org-exp.el groks l, r, c cookies but ignores the colwidth directives. With some changes these colwidth directives could be used for controlling the relative width of columns on a per-table basis. This has to wait. If there is sufficient demand I can consider adding this support. The workaround is to rely on Table Properties->Columns->Column Width [3] The exporter wouldn't still create vertical lines on the extreme ends. I believe the default style of tables is so selected based on some standard styling manual. --
Re: [O] Underline ONLY the first character of a word?
Thanks to Suvayu, John, and Nick (in chronological order) for thoughtful comments on this. I'm still considering my options. -- Mike
Re: [O] collapsing some headings on html export?
Hi, org-info-js may be your best bet, but for a lightweight solution that works with your sample text without a single line of javascript, try this (mouse over headings to display contents): - #+TITLE: Folded headings in html export #+style: .folded > div {display: none;} #+style:.folded > *:after {content: " ..."; #+style: background: yellow} #+style:.folded:hover > div {display: block} #+style:.folded:hover > *:after {content: ""} * Outline: Semester 1 ** 1.<2011-09-15 Thu> [[file:./syllabus/what-is-history-for][What is History For?]] :PROPERTIES: :HTML_CONTAINER_CLASS: folded :END: Why we should write history, why everyone should do it, and why that means we need the Web. Hacker cultures, collaborative learning, knowledge sharing, non-expert culture. Background: [[http://www.journalofamericanhistory.org/issues/952/interchange/index.html][JAH - The Promise of Digital History]] *** Lab: Introduction to Wordpress & the course site. :PROPERTIES: :HTML_CONTAINER_CLASS: folded :END: Blogging & social media review. Preliminary listing of potential NGO partners. - Drawbacks: You need to set a HTML_CONTAINER_CLASS property to "folded" on any subtree you want hidden from the start. And the unfolded text folds away again when your reader mouses out of the containing div. Yours, Christian On 8/25/11 5:41 PM, Matt Price wrote: does anyone have any advice on the following: I'm thinking I would like to collapse certain segments of a document when exporting to HTML, so e.g., if it looks like this: * Outline: Semester 1 ** 1.<2011-09-15 Thu> [[file:./syllabus/what-is-history-for][What is History For?]] Why we should write history, why everyone should do it, and why that means we need the Web. Hacker cultures, collaborative learning, knowledge sharing, non-expert culture. Background: [[http://www.journalofamericanhistory.org/issues/952/interchange/index.html][JAH - The Promise of Digital History]] *** Lab: Introduction to Wordpress& the course site. Blogging& social media review. Preliminary listing of potential NGO partners. I'd like to display just this by default: Outline: Semester 1 1. Sept. 15, 2011 What is History For but permit viewers to click on the headline or a '+' box to see the details. Is it possible to do this somehow, e.g. by embedding some javascript code somewhere or something? Really just wondering... Thanks, Matt
Re: [O] Styling HTML output
Very nice, thanks!
[O] Styling HTML output
I wanted to share some CSS code that I've found useful for exported HTML documents. It adds a little "R" or "sh" or "Perl" (etc.) label to the top of a source block. (setq org-export-html-style " ") I got help on Stack Overflow to figure that out: http://stackoverflow.com/questions/7192054/create-box-with-title-legend-in-css . I stick that in my .emacs file and I get output with nice little labels. Hopefully someone else will find it useful too. -- Ken Williams Senior Research Scientist Thomson Reuters http://labs.thomsonreuters.com
Re: [O] agenda: "void: category-pos"
Bastien writes: > This should be fixed -- please confirm. > > Nick, thanks for the patch, I pushed a more complete one. The byte compiler still complains about this: In org-search-view: org-agenda.el:3944:48:Warning: assignment to free variable `category-pos' org-agenda.el:3944:26:Warning: reference to free variable `category-pos' In org-agenda-get-todos: org-agenda.el:4611:34:Warning: assignment to free variable `category-pos' org-agenda.el:4611:12:Warning: reference to free variable `category-pos' In org-agenda-get-deadlines: org-agenda.el:5215:42:Warning: assignment to free variable `category-pos' org-agenda.el:5215:20:Warning: reference to free variable `category-pos' In org-agenda-get-scheduled: org-agenda.el:5336:40:Warning: assignment to free variable `category-pos' org-agenda.el:5336:18:Warning: reference to free variable `category-pos' In org-agenda-get-blocks: org-agenda.el:5409:42:Warning: assignment to free variable `category-pos' org-agenda.el:5409:20:Warning: reference to free variable `category-pos' Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
Re: [O] [bug] Inconsistent tag alignment in org-indent-mode
Hi Jason This reminds me of a similar problem with tag alignment that I solved with a patch that did not get any feedback yet. Can you try if this patch solves your problem too? http://thread.gmane.org/gmane.emacs.orgmode/42564 Michael On Thu, Aug 25, 2011 at 18:15, Jason Dunsmore wrote: > I noticed the tag alignment produces inconsistent results in > org-indent-mode. If you type in the header, the normal > (non-indent-mode) indentation is used, and the tags do not appear > aligned. If you add tags or type "C-c C-c" the tags are aligned > correctly. > > Here's an example file: > > --8<---cut here---start->8--- > * Heading :tag: > ** Subheading :tag: > --8<---cut here---end--->8--- > > Here's what happens before and after typing in the heading: > http://imgur.com/a/Ljpw2 > > I'm using: > Org-mode version 7.7 (release_7.7.201.gcd8d) > GNU Emacs 23.2.1 > > Great work on org-ident-mode by the way! I've noticed a bunch of recent > improvements.
[O] [bug] Inconsistent tag alignment in org-indent-mode
I noticed the tag alignment produces inconsistent results in org-indent-mode. If you type in the header, the normal (non-indent-mode) indentation is used, and the tags do not appear aligned. If you add tags or type "C-c C-c" the tags are aligned correctly. Here's an example file: --8<---cut here---start->8--- * Heading:tag: ** Subheading :tag: --8<---cut here---end--->8--- Here's what happens before and after typing in the heading: http://imgur.com/a/Ljpw2 I'm using: Org-mode version 7.7 (release_7.7.201.gcd8d) GNU Emacs 23.2.1 Great work on org-ident-mode by the way! I've noticed a bunch of recent improvements. Regards, Jason
Re: [O] src blocks, listings package and captions
Bastien writes: > Hi Giles, > > Giles Chamberlin writes: > >> I'm using the listings package and org-version 7.4 to generate latex/pdf >> output including source snippets. I'd like to add captions: "Figure 1: >> My code" and tried with the following to no avail: >> >> #+caption: My code >> #+begin_src clojure >> ;; stuff >> #+end_src >> >> Do I have to wrap this in \begin{figure}\caption{} or is there a simpler >> way? > > Since captions make sense for figures, I think you have to wrap this > in \begin{figure}\caption{}. But maybe there is a way to automatically > wrap source blocks into a caption-aware LaTeX environment -- Eric might > give a more useful answer. > > Thanks, Aloha Giles, A caption-aware LaTeX environment is provided by the minted package. If you use org-special-blocks, then you can wrap your source block in #+BEGIN_listing ... #+END_listing. You can get a caption and label by also including something like this within the special block: #+LATEX: \caption{The caption.}\label{fig:src_blk} If you want to stick with the listings package, then you will need to define a listing environment that mimics what the minted package does. There are at least two ways to do this in LaTeX (and probably others). One way is to use the float package and then do something like this: {\newfloat{listing}{h}{lol} \newcommand\listingscaption{Listing} \floatname{listing}{\listingscaption} \newcommand\listoflistingscaption{List of Listings} \providecommand\listoflistings{\listof{listing}{\listoflistingscaption}} \floatplacement{listing}{htb!} hth, Tom -- Thomas S. Dye http://www.tsdye.com
[O] collapsing some headings on html export?
does anyone have any advice on the following: I'm thinking I would like to collapse certain segments of a document when exporting to HTML, so e.g., if it looks like this: * Outline: Semester 1 ** 1.<2011-09-15 Thu> [[file:./syllabus/what-is-history-for][What is History For?]] Why we should write history, why everyone should do it, and why that means we need the Web. Hacker cultures, collaborative learning, knowledge sharing, non-expert culture. Background: [[http://www.journalofamericanhistory.org/issues/952/interchange/index.html][JAH - The Promise of Digital History]] *** Lab: Introduction to Wordpress & the course site. Blogging & social media review. Preliminary listing of potential NGO partners. I'd like to display just this by default: Outline: Semester 1 1. Sept. 15, 2011 What is History For but permit viewers to click on the headline or a '+' box to see the details. Is it possible to do this somehow, e.g. by embedding some javascript code somewhere or something? Really just wondering... Thanks, Matt
Re: [O] org->odt/html table export: adjusting default behaviour?
this time I've actually attached the file... On Thu, Aug 25, 2011 at 11:12 AM, Matt Price wrote: > The attached test file shows an org file with tables whose columns > include substantial amounts of text. The default export to odt is > pretty ugly in this case, and even in html (where things work to some > extent) I would rather be able to control to some extent the way that > long fields wrap. is there a recommended way to do set values like > table and column width for these two exports? I guess I am > particularly concerned with the odt export -- can I e.g. adjust a > default value somewhere in the styles.xml file? I doubt the problem > will be easily solved but if someone can point me in the right > direction I'd really appreciate it. > > thanks, > Matt > test.org Description: Binary data
Re: [O] [babel] link type to execute src_block
Torsten Wagner writes: > Hi, > is there a way already to execute a (named source block) by creating a > link type? > I checked the manual and there is a link type for shell and elisp but > it seems not for babel. > Something like > > [[babel: src_block_name()][Text]] > > With this, one could create all kind of little features within an org-file > * start often used shell, python, and other language scripts, > * start little GUIs in a different programming language (e.g., java > works fine) to allow a more mouse centric input (there was a tablet > discussion recently) > * link blocks to descriptive text making reproducible research more > readable (e.g. ...after the applying a _FFT-transform_, the dataset > was _plotted_) > > Would be nice to have the option to either execute the link and to > jump to the code block > No such link type exists, although the custom link creation functionality is fairly powerful so I would imagine that you could create such a link type locally without any requirement to modify the Org-mode source code. If you do this it would be a fun thing to share on the list and/or on worg. As an interim solution the `sbe' function could be used inside of an elisp link to easily execute code blocks in the same way it is used in table formula. Best -- Eric > > All the best > > Totti > -- Eric Schulte http://cs.unm.edu/~eschulte/
Re: [O] src blocks, listings package and captions
Giles Chamberlin writes: > I'm using the listings package and org-version 7.4 to generate latex/pdf > output including source snippets. I'd like to add captions: "Figure 1: > My code" and tried with the following to no avail: > > #+caption: My code > #+begin_src clojure > ;; stuff > #+end_src > > Do I have to wrap this in \begin{figure}\caption{} or is there a simpler > way? Currently code blocks are not wrapped in begin/end{figure} environments as are links and tables. I do not know of an easy way to do this aside from manually inserting the LaTeX using #+LaTeX: lines in the Org-mode file. I personally would like to treat code blocks in the same way as links and tables, but I'm not sure if there is a specific reason we do not do this currently. Thanks -- Eric -- Eric Schulte http://cs.unm.edu/~eschulte/
[O] org->odt/html table export: adjusting default behaviour?
The attached test file shows an org file with tables whose columns include substantial amounts of text. The default export to odt is pretty ugly in this case, and even in html (where things work to some extent) I would rather be able to control to some extent the way that long fields wrap. is there a recommended way to do set values like table and column width for these two exports? I guess I am particularly concerned with the odt export -- can I e.g. adjust a default value somewhere in the styles.xml file? I doubt the problem will be easily solved but if someone can point me in the right direction I'd really appreciate it. thanks, Matt
Re: [O] Org-babel results preamble
On Thu, Aug 25, 2011 at 9:50 AM, Eric S Fraga wrote: > I am slowly going through all the org emails that I have received in the > three weeks I was off. This was one of them and appears to not have > been answered? > > In any case, possibly naming the src block may achieve what you want > because then the results are placed in the same place every time > regardless of where the results block is... not tested, especially in > the context of plotting mind you. Thanks for the response, naming the src block has been working great so far. Derek
Re: [O] Todo with checkboxes is grayed out in agenda
On Thu, Aug 25, 2011 at 2:53 AM, Bastien wrote: > Hi Nathan, > > Nathan Neff writes: > >> I have a todo like this: >> >> * todo something >> - [ ] first >> - [ ] next >> >> In the agenda, the todo something header is displayed grayed out. > > I lack contextual information -- Emacs and Org versions, and part of > your Org configuration relevant to todos and checkboxes. What agenda > view are you using? Hello Bastien and Nicolas -- My org-enforce-checkbox-dependencies is t Emacs version is 23.2 (9.0) Org-mode version is "7.5" The agenda view is the "a" (Agenda for the current day) Thanks for the help! --Nate > > Please help us reproduce the problem so that we can fix it! > > Thanks, > > -- > Bastien >
Re: [O] Org-babel results preamble
Derek Thomas writes: > I have found that using org-plot to plot the results output of an > org-babel code block is very useful in prototyping my code. One minor > annoyance is the need to remove and replace the #+PLOT: header at the > beginning of the results output. Is it possible to specify a > "preamble" in the source block? I am looking to produce something > like this: > > #+begin_src sh :results wrap > ./dtest > #+end_src > #+PLOT: ind:1 deps:(2) > #+results: > #+BEGIN_RESULT > | 0.000E+000 | 1.0 | > | 9.99776482582E-003 | 0.99000223517 | > | 1.99955296516E-002 | 0.98000447035 | > | 2.99932944775E-002 | 0.97000670552 | > | 3.99910593033E-002 |0.9600089407 | > | 4.99888241291E-002 | 0.95001117587 | > #+END_RESULT > Thanks, > > Derek I am slowly going through all the org emails that I have received in the three weeks I was off. This was one of them and appears to not have been answered? In any case, possibly naming the src block may achieve what you want because then the results are placed in the same place every time regardless of where the results block is... not tested, especially in the context of plotting mind you. HTH, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.7 (release_7.7.175.g8478)
Re: [O] Not merging org-lparse, org-xhtml & org-odt to the core
>>> And I'm *really* glad I can rely on people like you, Carsten, Eric, >>> Nicolas, David and many others to help me wear them :) >> >> Remove me from the list. I am a charlatan and I don't want to even >> pretend to be otherwise. >> > Please stay on the list! I meant the list of people Bastien lined up not the mailing list. I am simply overwhelmed and humbled by the enthusiasm shown for my work. I should say your words (boxquoted here) , | I think when people work really hard on these voluntary contributions | it's not at all unusual for them to feel frustrated when the process | doesn't move as smoothly as it could. ` personally made most emotional sense to me. It rightly captures what I was trying to articulate (very poorly). Btw, one of the reasons this list doesn't get insane is because it has people from "humanities" who have a natural flair for neutralizing any discord. The conventional stereotype of a geek as a social misfit also has some truth to it. I truly appreciate your kind words. I have no doubt that they are genuine words of love that bring LOTS OF understanding. Jambunathan K.
Re: [O] [PATCH] icalendar: Make alarm duration RFC5545 compliant
Michal Sojka writes: > * org-icalendar.el (org-print-icalendar-entries): Make alarm duration > RFC5545 compliant. Applied -- thanks a lot for making the effort of providing the ChangeLog! Best, -- Bastien
[O] [Accepted] icalendar: Make alarm duration RFC5545 compliant
Patch 913 (http://patchwork.newartisans.com/patch/913/) is now "Accepted". Maintainer comment: none This relates to the following submission: http://mid.gmane.org/%3C1314282867-11165-1-git-send-email-sojka%40os.inf.tu-dresden.de%3E Here is the original message containing the patch: > Content-Type: text/plain; charset="utf-8" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Subject: [O] icalendar: Make alarm duration RFC5545 compliant > Date: Thu, 25 Aug 2011 19:34:27 - > From: Michal Sojka > X-Patchwork-Id: 913 > Message-Id: <1314282867-11165-1-git-send-email-so...@os.inf.tu-dresden.de> > To: b...@altern.org > Cc: Michal Sojka , cdomi...@newartisans.com, > emacs-orgmode@gnu.org > > * org-icalendar.el (org-print-icalendar-entries): Make alarm duration > RFC5545 compliant. > > The format of alarm trigger was incorrect because "T" letter from > dur-time element was missing (see > http://tools.ietf.org/html/rfc5545#section-3.3.6). This caused some > software (such as KOrganizer) to not interpret the alarms correctly. > > TINYCHANGE > > --- > lisp/org-icalendar.el |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/lisp/org-icalendar.el b/lisp/org-icalendar.el > index bc0efce..a3ea88e 100644 > --- a/lisp/org-icalendar.el > +++ b/lisp/org-icalendar.el > @@ -419,7 +419,7 @@ When COMBINE is non nil, add the category to each line." > (let ((t1 (ignore-errors (org-parse-time-string ts 'nodefault > (if (and (> org-icalendar-alarm-time 0) >(car t1) (nth 1 t1) (nth 2 t1)) > - (setq alarm (format > "\nBEGIN:VALARM\nACTION:DISPLAY\nDESCRIPTION:%s\nTRIGGER:-P0D0H%dM0S\nEND:VALARM" > summary org-icalendar-alarm-time)) > + (setq alarm (format > "\nBEGIN:VALARM\nACTION:DISPLAY\nDESCRIPTION:%s\nTRIGGER:-P0DT0H%dM0S\nEND:VALARM" > summary org-icalendar-alarm-time)) > (setq alarm "")) > ) > (if (string-match org-bracket-link-regexp summary) >
[O] [PATCH] icalendar: Make alarm duration RFC5545 compliant
* org-icalendar.el (org-print-icalendar-entries): Make alarm duration RFC5545 compliant. The format of alarm trigger was incorrect because "T" letter from dur-time element was missing (see http://tools.ietf.org/html/rfc5545#section-3.3.6). This caused some software (such as KOrganizer) to not interpret the alarms correctly. TINYCHANGE --- lisp/org-icalendar.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org-icalendar.el b/lisp/org-icalendar.el index bc0efce..a3ea88e 100644 --- a/lisp/org-icalendar.el +++ b/lisp/org-icalendar.el @@ -419,7 +419,7 @@ When COMBINE is non nil, add the category to each line." (let ((t1 (ignore-errors (org-parse-time-string ts 'nodefault (if (and (> org-icalendar-alarm-time 0) (car t1) (nth 1 t1) (nth 2 t1)) - (setq alarm (format "\nBEGIN:VALARM\nACTION:DISPLAY\nDESCRIPTION:%s\nTRIGGER:-P0D0H%dM0S\nEND:VALARM" summary org-icalendar-alarm-time)) + (setq alarm (format "\nBEGIN:VALARM\nACTION:DISPLAY\nDESCRIPTION:%s\nTRIGGER:-P0DT0H%dM0S\nEND:VALARM" summary org-icalendar-alarm-time)) (setq alarm "")) ) (if (string-match org-bracket-link-regexp summary) -- 1.7.5.4
Re: [O] HTML publishing broken?
Bastien There has been too much churn around this area. Let me raise my voice again. Don't define variables. Define hooks, sexps or functions. Give enough ropes to the user. Patiently consider my inputs on s5 exporting. Make the div elements take attrs. You have earlier dismissed my inputs as complicated and proceeded ahead with a fix. There is room for improvement. ps: I don't intend to provide a patch for this. Jambunathan K.
[O] [babel] link type to execute src_block
Hi, is there a way already to execute a (named source block) by creating a link type? I checked the manual and there is a link type for shell and elisp but it seems not for babel. Something like [[babel: src_block_name()][Text]] With this, one could create all kind of little features within an org-file * start often used shell, python, and other language scripts, * start little GUIs in a different programming language (e.g., java works fine) to allow a more mouse centric input (there was a tablet discussion recently) * link blocks to descriptive text making reproducible research more readable (e.g. ...after the applying a _FFT-transform_, the dataset was _plotted_) Would be nice to have the option to either execute the link and to jump to the code block All the best Totti
Re: [O] Problem with exporting image to PDF
suvayu ali wrote: > Hi Toby, John and Nick, > > Its early in the morning for me, so whatever follows could simply be > wrong. :-p > > On Thu, Aug 25, 2011 at 3:59 AM, Nick Dokos wrote: > > Thomas S. Dye wrote: > > > >> Toby writes: > >> > >> > I have tried different classes (article and koma-article) such as: ^^^ > >> > #+LaTeX_CLASS: koma-article > >> > #+LaTeX_CLASS_OPTIONS: [a4paper] > >> > > > I believe this might be your problem. Org recognises only a few document > classes by default. You need to add to the org-export-latex-classes > variable to support other classes. Presently the supported classes are: > article, report, book and beamer. > The OP tried article - see above. > >> > >> Out of the box, Org-mode uses pdflatex to create pdf from LaTeX source > >> (although this can be modified). Pdflatex does not accept eps files for > >> graphic input, so this might have been part of your problem. It does > >> accept png files, though, so it appears something else might be going > >> on. > >> > > > > It's probably the case that even though there is a processing error with > > .eps files, in some circumstances, a PDF file *is* produced, but it's > > just a skeleton and therefore does not properly render even the "good" > > image. If the OP deletes the .eps lines, the .png one will probably > > work. > > > > Actually for TeXLive 2010 and above all included eps files are converted > to pdf (with eps2pdf I think) and included. I am not sure if this is the > case for earlier versions though. > Not sure what version I have, but it does throw an error w/eps. I'll see if I can upgrade. Thanks, Nick > HTH > > -- > Suvayu > > Open source is the future. It sets us free. >
[O] Mediawiki export bugs and export to Doxygen
Hi all, I wanted to try the experimental Mediawiki exporter and it fails to export documents with dot code blocks (as the one provided below). I tried to fix that myself but my elisp and org-babel knowledge is not sufficient for that. I used org-mode 7.7. The error was: "file-name-extension: Wrong type argument: stringp, nil". I tracked it down and it seems that it is caused by (nth 2 info) being nil in org-babel-exp-do-export, whereas in org-babel-exp-src-block, which calls org-babel-exp-do-export, the information about :file and :cmdline is still present. Another problem is that the Mediawiki export doesn't obey the org-confirm-babel-evaluate variable - it always wants to confirm the evaluation of code block. I have also seen http://thread.gmane.org/gmane.emacs.orgmode/40746/focus=40749 but this seems to solve different thing. Does anybody have a suggestion how to solve this. Additionally, I'm thinking about writing org exporter to Doxygen syntax. I wanted to based it on Mediawiki exporter but I'm not sure whether it is a good idea since the Mediawiki exporter doesn't seem to be maintained. Again, any suggestions are welcomed. And finally, the example that fails to export to mediawiki: --8<---cut here---start->8--- #+TITLE: Test #+begin_src dot :file generic_proto.png :cmdline -Tpng digraph com { in -> out; in -> call } #+end_src # Local Variables: # org-confirm-babel-evaluate: nil # End: --8<---cut here---end--->8--- Thanks, -Michal
Re: [O] two tools may be useful for org-export
Bastien writes: > zwz writes: > >> Those days I came across two tools which I thought interesting and >> helpful if could be combined with org-export in some way. >> >> 1. Deck.js: a js lib for making modern html presentation. See >> http://imakewebthings.github.com/deck.js/#intro for more info. >> >> 2. Tralics: a LaTeX to XML translator, >> http://www-sop.inria.fr/apics/tralics/ I wonder if epubs could be generated using LaTeX → Tralics . . . -- Sent from my Emacs
Re: [O] Not merging org-lparse, org-xhtml & org-odt to the core
Jambunathan K writes: > Bastien has stepped in to big shoes and he has to measure up. Those shoes are so big that there is room for more than one guy. And I'm *really* glad I can rely on people like you, Carsten, Eric, Nicolas, David and many others to help me wear them :) -- Bastien
Re: [O] Not merging org-lparse, org-xhtml & org-odt to the core
Bastien writes: > Jambunathan K writes: > >> Bastien has stepped in to big shoes and he has to measure up. > > Those shoes are so big that there is room for more than one guy. > > And I'm *really* glad I can rely on people like you, Carsten, Eric, > Nicolas, David and many others to help me wear them :) Remove me from the list. I am a charlatan and I don't want to even pretend to be otherwise. Jambunathan K.
Re: [O] HTML publishing broken?
Hi Bastien, On Thu, Aug 25, 2011 at 03:08:38PM +0200, Bastien wrote: > Sean Whitton writes: > > > All of a sudden I’m finding that my website won’t publish. The only > > change I’ve made has been setting (setq org-export-html-divs '()) > > because this new variable breaks my CSS otherwise. > > Can you try (setq org-export-html-divs '("" "" "")) and report? This makes the export work again, but I get a div with class "" again where the preamble div used to be. And further this seems to duplicate my page title, in the preamble and then at the top of the content div (which *does* have a class="content"). See http://sean.whitton.me/geek/pastebin.shtml Is it no longer possible to drop these three divs in this version of Org? I can work round this by putting s in my preamble I guess. Thanks for your help. -- Sean Whitton / OpenPGP KeyID: 0x3B6D411B http://sean.whitton.me/ signature.asc Description: Digital signature
Re: [O] two tools may be useful for org-export
zwz writes: > Those days I came across two tools which I thought interesting and > helpful if could be combined with org-export in some way. > > 1. Deck.js: a js lib for making modern html presentation. See > http://imakewebthings.github.com/deck.js/#intro for more info. > > 2. Tralics: a LaTeX to XML translator, > http://www-sop.inria.fr/apics/tralics/ Thanks for sharing those links -- this contributes to the silent brainstorming that occurs in the "uncounscious" of this list :) Best, -- Bastien
Re: [O] org-toggle-inline-images bug
2011/8/25 Bastien : > Hi William, > > William Xu writes: > >> M-x org-toggle-inline-images doesn't work for links like this: >> [[./ref/diskStructures.png]] > > It works well here on Emacs GNU Emacs 24.0.50.1 or 23.3.1 and > Org 7.7 (latest git version.) > > What version of Emacs and Org are you using? Hmm, i'm using Org bundled with Emacs. emacs-version: GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600) of 2011-06-28 on 3249CTO org-version: 7.4 (BTW, why such big difference from org git...) -William
Re: [O] [Accepted] icalendar: Make alarm duration RFC5545 compliant
Hi Michal, Michal Sojka writes: > Shall I resend it with the commit message according to > http://orgmode.org/worg/org-contribute.html#sec-5, especially with > TINYCHANGE? Yes, please do. Take care of the following: - use git format-patch if possible - create a ChangeLog entry with `C-x 4 a' - start sentences with an upper-case letter - add "." at the end of the sentences - use two whitespaces at the end of sentences - put variable and function names within `...' - add TINYCHANGE Thanks! -- Bastien, un-procrastinating nitpicking :)
Re: [O] agenda: "void: category-pos"
Hi Bastien On Thu, Aug 25, 2011 at 15:20, Bastien wrote: > Michael Brand writes: >> Since >> http://orgmode.org/w/?p=org-mode.git;a=commitdiff;h=15798836e2bb84bebfb005375e08e38830fc90ee >> from yesterday or with the newest release_7.7-194-gd203b61 when I try >> to open the agenda with a minimal setup I get "save-excursion: >> Symbol's value as variable is void: category-pos". Anybody else too? > > This should be fixed -- please confirm. Confirmed, thanks. Michael
Re: [O] Not merging org-lparse, org-xhtml & org-odt to the core
Jambunathan K writes: >> I hope that you'll join me in expressing gratitude for all that they >> have contributed > > Ok. Done. > > Let bygones be bygones. What is important to me is that my work be > available and used widely. All other concerns are secondary. > > I am on a sabbatical from work and I will be failing myself badly if I > let my natural confrontational self to get the better of me. > > Jambunathan K. > Aloha Jambunathan K., Thank you for this. I appreciate the passion you bring to Org-mode development and am pleased at the thought the Org-mode community will continue to enjoy your efforts. All the best, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] [bug] Asterisks in source and example blocks interpreted as headings
On Aug 25, 2011, at 3:27 PM, Bastien wrote: > Hi Jason, > > Jason Dunsmore writes: > >> Bastien writes: >> >>> Hi Jason, >>> >>> Jason Dunsmore writes: >>> I noticed that lines with leading asterisks inside of source and example blocks are interpreted as headings: >>> >>> The attached patch should fix this -- please confirm. >> >> Hm, I'm still seeing the same issue with both source and example >> blocks. > > Yes -- my patch only took care of not allowing *manually* folding > headlines in selected environments. But those headlines were still > folded when finding an org file with "#+STARTUP: fold" in it. > > In the meantime, is it okay for you to TAB and have the commas > automatically added, as Sébastien suggested? This requires (setq org-src-tab-acts-natively t) - Caraten > > -- > Bastien > - Carsten
Re: [O] Code vanishes on export
> > If you kave not updated your org *.el files lately, I suggest you do so > before going any further. I just did a git pull Let me see if it solves the problem. Vikas
Re: [O] Not merging org-lparse, org-xhtml & org-odt to the core
> I hope that you'll join me in expressing gratitude for all that they > have contributed Ok. Done. Let bygones be bygones. What is important to me is that my work be available and used widely. All other concerns are secondary. I am on a sabbatical from work and I will be failing myself badly if I let my natural confrontational self to get the better of me. Jambunathan K.
Re: [O] Not merging org-lparse, org-xhtml & org-odt to the core
Jambunathan K writes: >> Hi Jambunathan, >> >>> I have made a decision not to merge org-lparse, org-xhtml & org-odt in >>> to Orgmode core. It is a very difficult decision for me to take >>> considering that I had put all my heart in to it. (Btw, this decision >>> has nothing to with me not having enough time at hand.) >> >> As all, I'm puzzled by this statement, and wonder what went wrong >> somehow. > > Without mincing words, Bastien has to learn how to respect and engage > with serious contributors. He should take time to look at the data > presented to him and put some serious effort before sending out an > email. I am willing to overlook the fact that he seriously pissed me off > with unkind words and committed a greater faux paus by inviting Lennart > Borgman in to merge discussions. I am sorry to say this - Lennart > Borgman did a half-baked work. > > I have been patient and tried my best to be as co-operative as > possible. He just manages to get me on my nerves somehow. He simply > didn't have the courtesy to reply to my mails when he simply disappeared > from the list for 3 months or so. I hate to such callous attitude who > claims to be a maintainer and wants to act like a maintainer. > Aloha Jambunathan K, It is good to have you back. The Org-mode community is poorer without you. Please understand that the Org-mode community is a community of volunteers, committed to the cause of interesting and useful software. When one of us contributes, as you have so generously, the contribution represents commitment to that cause. I have nothing but admiration for the contributions of Lennart Borgman and Bastien Guerry. I am eager to see what they will contribute next. I hope that you'll join me in expressing gratitude for all that they have contributed and that, like me, you'll encourage them to contribute as the spirit moves them. I don't see any other way a community of volunteers can move forward. All the best, Tom >> What you did is a really important piece of the puzzle, as it finally >> let us cooperate more easily with people we can't convert as >> Org'ers. At least, they won't bother us to fit their software >> requirement: we can work in Org up till the very end, and then produce >> a final result in the expected (by others) format. >> >>> I leave it up to the community on what would be the best place to "host" >>> this software. >> >> For me, the answer to this was/is clear: Org-mode itself, hence the reason >> why I don't understand the above. > > I have definite ideas on how the merge should proceed. He should be > willing to concede to the fact that I have a far better understanding on > what the most effective method of merge is. > > Bastien has stepped in to big shoes and he has to measure up. > >> Best regards, >> Seb -- Thomas S. Dye http://www.tsdye.com
Re: [O] [Accepted] icalendar: Make alarm duration RFC5545 compliant
Hi, it seems that the following patch still didn't appear in the official repo. Shall I resend it with the commit message according to http://orgmode.org/worg/org-contribute.html#sec-5, especially with TINYCHANGE? Thanks, Michal On Fri, 13 May 2011, Carsten Dominik wrote: > Patch 803 (http://patchwork.newartisans.com/patch/803/) is now "Accepted". > > Maintainer comment: none > > This relates to the following submission: > > http://mid.gmane.org/%3C1305189019-23615-1-git-send-email-sojka%40os.inf.tu-dresden.de%3E > > Here is the original message containing the patch: > > > Content-Type: text/plain; charset="utf-8" > > MIME-Version: 1.0 > > Content-Transfer-Encoding: 7bit > > Subject: [O] icalendar: Make alarm duration RFC5545 compliant > > Date: Thu, 12 May 2011 13:30:19 - > > From: Michal Sojka > > X-Patchwork-Id: 803 > > Message-Id: <1305189019-23615-1-git-send-email-so...@os.inf.tu-dresden.de> > > To: Eric S Fraga , > > emacs-orgmode@gnu.org > > Cc: Michal Sojka > > > > The format of alarm trigger was incorrect because "T" letter from > > dur-time element was missing (see > > http://tools.ietf.org/html/rfc5545#section-3.3.6). This caused some > > software (such as KOrganizer) to not interpret the alarms correctly. > > > > --- > > lisp/org-icalendar.el |2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > > diff --git a/lisp/org-icalendar.el b/lisp/org-icalendar.el > > index c4b1f89..3632b5e 100644 > > --- a/lisp/org-icalendar.el > > +++ b/lisp/org-icalendar.el > > @@ -419,7 +419,7 @@ When COMBINE is non nil, add the category to each line." > > (let ((t1 (ignore-errors (org-parse-time-string ts 'nodefault > > (if (and (> org-icalendar-alarm-time 0) > > (car t1) (nth 1 t1) (nth 2 t1)) > > - (setq alarm (format > > "\nBEGIN:VALARM\nACTION:DISPLAY\nDESCRIPTION:%s\nTRIGGER:-P0D0H%dM0S\nEND:VALARM" > > summary org-icalendar-alarm-time)) > > + (setq alarm (format > > "\nBEGIN:VALARM\nACTION:DISPLAY\nDESCRIPTION:%s\nTRIGGER:-P0DT0H%dM0S\nEND:VALARM" > > summary org-icalendar-alarm-time)) > > (setq alarm "")) > > ) > > (if (string-match org-bracket-link-regexp summary) > >
Re: [O] [bug] Asterisks in source and example blocks interpreted as headings
Hi Jason, Jason Dunsmore writes: > Bastien writes: > >> Hi Jason, >> >> Jason Dunsmore writes: >> >>> I noticed that lines with leading asterisks inside of source and example >>> blocks are interpreted as headings: >> >> The attached patch should fix this -- please confirm. > > Hm, I'm still seeing the same issue with both source and example > blocks. Yes -- my patch only took care of not allowing *manually* folding headlines in selected environments. But those headlines were still folded when finding an org file with "#+STARTUP: fold" in it. In the meantime, is it okay for you to TAB and have the commas automatically added, as Sébastien suggested? -- Bastien
Re: [O] agenda: "void: category-pos"
Hi Michael, Michael Brand writes: > Since > http://orgmode.org/w/?p=org-mode.git;a=commitdiff;h=15798836e2bb84bebfb005375e08e38830fc90ee > from yesterday or with the newest release_7.7-194-gd203b61 when I try > to open the agenda with a minimal setup I get "save-excursion: > Symbol's value as variable is void: category-pos". Anybody else too? This should be fixed -- please confirm. Nick, thanks for the patch, I pushed a more complete one. Best, -- Bastien
Re: [O] HTML publishing broken?
Hi Sean, Sean Whitton writes: > All of a sudden I’m finding that my website won’t publish. The only > change I’ve made has been setting (setq org-export-html-divs '()) > because this new variable breaks my CSS otherwise. Can you try (setq org-export-html-divs '("" "" "")) and report? Thanks, -- Bastien
[O] HTML publishing broken?
All of a sudden I’m finding that my website won’t publish. The only change I’ve made has been setting (setq org-export-html-divs '()) because this new variable breaks my CSS otherwise. Backtrace and page in question attached; any advice appreciated. S -- Sean Whitton / OpenPGP KeyID: 0x3B6D411B http://sean.whitton.me/ Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil) org-export-as-html(4 nil (:buffer-will-be-killed t :base-directory "~/doc/www/" :base-extension "org" :publishing-directory "/athena:htdocs/static" :recursive t :publishing-function org-publish-org-to-html :auto-sitemap t :sitemap-root "[[http://sean.whitton.me/"; :sitemap-filename "sitemap.map" :sitemap-title "Sitemap" :sitemap-style (quote tree) :sitemap-sort-folders (quote last) :style "\n\n\n " :style-include-default nil :exclude "sitemap\\|blog\\|notes" :html-preamble " \n\n \n %t" :html-postamble "\n \n\n \n \n\n \n\n \n\n This page is part of Sean Whitton's website. Return to\n the homepage, visit his http://blog.sean.whitton.me/\";>blog, or\nchoose from the static content below.\n\n \n\n \n\n\n \n \n\n\nPage last updated: %d.\n\n E-mail author/webmaster: http://safemail.justlikeed.net/e/5a36d58072489e3f78678e3820d15cdf.png\"\n title=\"Email image created with\nsafemail.justlikeed.net\" alt=\"spam-protected e-mail\naddress\" style=\"vertical-align: bottom\" />\n\nXHTML generated by %c.\n\nhttp://validator.w3.org/check?uri=referer\";>http://www.anybrowser.org/campaign/\";>\n\n© 2005–2011 Sean Whitton, Some Rights\nReserved (see licensing\n for details).\n\n \n \n \n \n" :html-extension "shtml" :headline-levels 4) nil nil "/ssh:swhitton@athena:/home/swhitton/htdocs/static/geek/") org-publish-org-to("html" (:base-directory "~/doc/www/" :base-extension "org" :publishing-directory "/athena:htdocs/static" :recursive t :publishing-function org-publish-org-to-html :auto-sitemap t :sitemap-root "[[http://sean.whitton.me/"; :sitemap-filename "sitemap.map" :sitemap-title "Sitemap" :sitemap-style (quote tree) :sitemap-sort-folders (quote last) :style "\n\n\n " :style-include-default nil :exclude "sitemap\\|blog\\|notes" :html-preamble " \n\n \n %t" :html-postamble "\n \n\n \n \n\n \n\n \n\n This page is part of Sean Whitton's website. Return to\n the homepage, visit his http://blog.sean.whitton.me/\";>blog, or\nchoose from the static content below.\n\n \n\n \n\n\n \n \n\n\nPage last updated: %d.\n\n E-mail author/webmaster: http://safemail.justlikeed.net/e/5a36d58072489e3f78678e3820d15cdf.png\"\n title=\"Email image created with\nsafemail.justlikeed.net\" alt=\"spam-protected e-mail\naddress\" style=\"vertical-align: bottom\" />\n\nXHTML generated by %c.\n\nhttp://validator.w3.org/check?uri=referer\";>http://www.anybrowser.org/campaign/\";>\n\n© 2005–2011 Sean Whitton, Some Rights\nReserved (see licensing\n for details).\n\n \n \n \n \n" :html-extension "shtml" :headline-levels 4) "/home/swhitton/doc/www/geek/pastebin.org" "/ssh:swhitton@athena:/home/swhitton/htdocs/static/geek/") ad-Orig-org-publish-org-to-html((:base-directory "~/doc/www/" :base-extension "org" :publishing-directory "/athena:htdocs/static" :recursive t :publishing-function org-publish-org-to-html :auto-sitemap t :sitemap-root "[[http://sean.whitton.me/"; :sitemap-filename "sitemap.map" :sitemap-title "Sitemap" :sitemap-style (quote tree) :sitemap-sort-folders (quote last) :style "\n\n\n " :style-include-default nil :exclude "sitemap\\|blog\\|notes" :html-preamble " \n\n \n %t" :html-postamble "\n \n\n \n \n\n \n\n \n\n This page is part of Sean Whitton's website. Return to\n the homepage, visit his http://blog.sean.whitton.me/\";>blog, or\nchoose from the static content below.\n\n \n\n \n\n\n \n \n\n\nPage last updated: %d.\n\n E-mail author/webmaster: http://safemail.justlikeed.net/e/5a36d58072489e3f78678e3820d15cdf.png\"\n title=\"Email image created with\nsafemail.justlikeed.net\" alt=\"spam-protected e-mail\naddress\" style=\"vertical-align: bottom\" />\n\nXHTML generated by %c.\n\nhttp://validator.w3.org/check?uri=referer\";>http://www.anybrowser.org/campaign/\";>\n\n© 2005–2011 Sean Whitton, Some Rights\nReserved (see licensing\n for details).\n\n \n \n \n \n" :html-extension "shtml" :headline-levels 4) "/home/swhitton/doc/www/geek/pastebin.org" "/ssh:swhitton@athena:/home/swhit
Re: [O] Is it possible to markup one character in a word?
This seems incredibly similar to a thread that *just* took place. Take a look at this: --- http://www.mail-archive.com/emacs-orgmode@gnu.org/msg45883.html Any help there? John On Thu, Aug 25, 2011 at 3:00 AM, Vladimir Lomov wrote: > Hi. > > Is it possible to markup one character in a word, like e*X*ecute. For > now this don't work. I tried to add ZERO WIDTH SPACE (found on mailing > list) before first * and last * like in example e*X*ecute but this > don't work also. > > --- > WBR, Vladimir Lomov > >
Re: [O] Emacs and tablet devices
T Helms writes: > On 07/28/2011 08:44 AM, Jason F. McBrayer wrote: >> On Thu, 28 Jul 2011 13:59:18 +0200, Piter_ wrote: >> > >>> It may be not the best place to ask, but: >>> How useful is emacs on tablet devices. I have been thinking about >>> emacs and freerunner. But I have no clue how the keybindings work >>> with it. >> Another possible device you might consider is the N850/900/950 >> series. I'm fairly certain there is a native emacs build for those >> that requires no special jiggery-pokery. >> > > I have an n900. Emacs and org work wonderfully for a small device. > I'm using 23.2 compiled by Sander Boer on this list. > > The keyboard is easily remapped. The only downsides are the screen > size & speed. A task that takes 4 sec. to run on my laptop takes over > 30 on the phone (iterating large tables and the like). > > Capture & clocking make it very useful in the handheld, so useful that > I just picked a 2nd device to have when my current one dies. > > I can't speak to tablets or the freerunner but I would think the lack > of a real keyboard would be difficult to overcome. +1 I've used Emacs + org mode on the Nokia n800 and n810 internet tablets. The n800 has no keyboard and I found it incredibly frustrating to use, either because a reasonably sized virtual keyboard took too much of the screen, leaving too little for Emacs, or the keyboard was too small to type confidently. The n810, on the other hand, is a joy to use. The keyboard is just about right and is good for Emacs with a few key mappings (xmodmap). Also, the speed keys for outline heading movements and cycling that org provides are quite useful on small systems. So I would recommend a system with a real keyboard. I would be very curious to hear from anybody that has real experience of using Emacs (+ org mode) on the Ben Nanonote as it's quite an attractive little system. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.7 (release_7.7.175.g8478)
Re: [O] [PATCH 0/5] loop over headlines in active region
On Thu, 25 Aug 2011 06:25:29 +0200 David Maus wrote: > As for the macro: What stop me to implement a macro for the generic > operation is that for now the macro would depend on the global > customization variable. That's not a problem per se but according to > my readings about macros (mostly in context of Common Lisp, but that > shouldn't matter) it should be considered bad style. Could you expand on this a bit? As far as I can tell, you obviously shouldn't depend on a customisation variable at macro expansion time, but I don't see how depending on it at run time is any different from a function doing the same. -- Štěpán
[O] extending automatic screenshot insertion
hello, i would like to extend the auto screenshot method described here: http://comments.gmane.org/gmane.emacs.orgmode/33770 first: a way in which i can be prompted to enter a filename instead of having a random string second: a timestamp be appended after i have entered the filename third: to specify somehow, the dimensions of the bounding box of the screenshot how can this be done? thanks, a
Re: [O] [bug] removing last column with a column formula
Carsten Dominik writes: >> Is this something that we can (easily) fix? > > Not easily. I have made it throw an error now, but there may be > other situations like this which are not yet captured. Throwing an error in this case is already an improvement -- thanks for this! -- Bastien
[O] Is it possible to markup one character in a word?
Hi. Is it possible to markup one character in a word, like e*X*ecute. For now this don't work. I tried to add ZERO WIDTH SPACE (found on mailing list) before first * and last * like in example e*X*ecute but this don't work also. --- WBR, Vladimir Lomov
Re: [O] Todo with checkboxes is grayed out in agenda
Hi Nathan, Nathan Neff writes: > I have a todo like this: > > * todo something > - [ ] first > - [ ] next > > In the agenda, the todo something header is displayed grayed out. I lack contextual information -- Emacs and Org versions, and part of your Org configuration relevant to todos and checkboxes. What agenda view are you using? Please help us reproduce the problem so that we can fix it! Thanks, -- Bastien
Re: [O] src blocks, listings package and captions
Hi Giles, Giles Chamberlin writes: > I'm using the listings package and org-version 7.4 to generate latex/pdf > output including source snippets. I'd like to add captions: "Figure 1: > My code" and tried with the following to no avail: > > #+caption: My code > #+begin_src clojure > ;; stuff > #+end_src > > Do I have to wrap this in \begin{figure}\caption{} or is there a simpler > way? Since captions make sense for figures, I think you have to wrap this in \begin{figure}\caption{}. But maybe there is a way to automatically wrap source blocks into a caption-aware LaTeX environment -- Eric might give a more useful answer. Thanks, -- Bastien
Re: [O] org-toggle-inline-images bug
Hi William, William Xu writes: >> What version of Emacs and Org are you using? > > Hmm, i'm using Org bundled with Emacs. I guess it has been fixed in the meantime. If you have the opportunity to use Org from git, please do so: http://orgmode.org/index.html#sec-3-2 > emacs-version: GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600) of > 2011-06-28 on 3249CTO > org-version: 7.4 (BTW, why such big difference from org git...) Because I did not take the time to merge Org into Emacs before the 7.7 release of Org. Merges should happen more often in the future. -- Bastien
Re: [O] My apprehensions listed (Re: Not merging org-lparse, org-xhtml & org-odt to the core)
Hi Jambunathan, Jambunathan K writes: > You either accept the freeze or reject the freeze. You don't overlook > it. Because the later leaves me confused on where you stand on the > matter. I'm not yet clear about what would be the purpose of this freeze. If we need to freeze org-html.el in the future, in order to ease the org-html.el/org-xhtml.el merge process, sure, we will freeze this file for the necessary amount of time. Let's decide this after sept. 5th, when I'm back from vacation. Thanks, -- Bastien
Re: [O] Problem with exporting image to PDF
Hi Toby, John and Nick, Its early in the morning for me, so whatever follows could simply be wrong. :-p On Thu, Aug 25, 2011 at 3:59 AM, Nick Dokos wrote: > Thomas S. Dye wrote: > >> Toby writes: >> >> > I have tried different classes (article and koma-article) such as: >> > #+LaTeX_CLASS: koma-article >> > #+LaTeX_CLASS_OPTIONS: [a4paper] >> > I believe this might be your problem. Org recognises only a few document classes by default. You need to add to the org-export-latex-classes variable to support other classes. Presently the supported classes are: article, report, book and beamer. >> >> Out of the box, Org-mode uses pdflatex to create pdf from LaTeX source >> (although this can be modified). Pdflatex does not accept eps files for >> graphic input, so this might have been part of your problem. It does >> accept png files, though, so it appears something else might be going >> on. >> > > It's probably the case that even though there is a processing error with > .eps files, in some circumstances, a PDF file *is* produced, but it's > just a skeleton and therefore does not properly render even the "good" > image. If the OP deletes the .eps lines, the .png one will probably > work. > Actually for TeXLive 2010 and above all included eps files are converted to pdf (with eps2pdf I think) and included. I am not sure if this is the case for earlier versions though. HTH -- Suvayu Open source is the future. It sets us free.
Re: [O] My apprehensions listed (Re: Not merging org-lparse, org-xhtml & org-odt to the core)
Hi Jambunathan, Thanks for your reply. I will take one week of vacation next week (till sept. 5th) and try to tackle the various issues about org-html.el and org-xhtml.el -- I will then make a proposal that I hope we can both agree upon. Again, let me rephrase that I have two goals: merging the ODT exporter into Org's core, and keeping you as a motivated contributor to Org. So be reassured that I will do whatever I can in order to smooth out the way we collaborate on this. For the record, I disagree that those who make changes to org-html.el should also backport their changes to org-xhtml.el. For example: Emacs developers make changes to Org in Emacs, and it is my responsability to backport these changes into upstream Org, not their responsability. It doesn't mean we are stuck in a painful process. I'm sure we can find a smart way of dealing with this issue. I like the motherhood metaphor: to my hears, it underlines how *patient* we need to be! And focused on the baby, not on our hope and fears. So be it :) Thanks! -- Bastien
Re: [O] Code vanishes on export
Hi Vikas, On Thu, Aug 25, 2011 at 1:37 AM, Vikas Rawal wrote: > For the last few days, I have been manually copying my org file before > every export to save it. Maybe an easier option would be make the buffer read-only before export. `C-x C-q' > The problem is that the file I am talking about reads a mysql > database, and does a lot of processing using R. The file will simply > not work for anyone else because you will not have the database that > it needs. > Maybe for the ECM (Minimal Complete Example, in French) you could substitute the reading from sql part by a table with dummy data which is then processed by some small R block. -- Suvayu Open source is the future. It sets us free.