Re: [O] Convert list to paragraph

2011-08-26 Thread Nicolas Goaziou
Hello, Nick Dokos writes: > (defun org-list-to-paragraph () > "Convert the list at point into a paragraph." > (interactive) > (insert (org-list-to-generic (org-list-parse-list t) '(:ustart "" :splice t > :isep " " :nobr t > > > (defun org-lists-to-paragraphs () > (goto-char (point-

Re: [O] C-c '

2011-08-26 Thread Nick Dokos
Henri-Paul Indiogine wrote: > Hi Bernt! > > 2011/8/26 Bernt Hansen : > > It's not supposed to do that.  It is supposed to indent by 2 spaces and > > then remove those 2 spaces in C-c ' again. > > > > There's a variable (that I just found out about yesterday -- Thanks > > Nick!) which will turn t

Re: [O] C-c '

2011-08-26 Thread Henri-Paul Indiogine
Hi Bernt! 2011/8/26 Bernt Hansen : > It's not supposed to do that.  It is supposed to indent by 2 spaces and > then remove those 2 spaces in C-c ' again. > > There's a variable (that I just found out about yesterday -- Thanks > Nick!) which will turn this indentation off completely. > > Try settin

Re: [O] Styling HTML output

2011-08-26 Thread Bastien
Hi Ken, writes: > Thanks, I think this update is better. Unfortunately I don't think my > mailer (stupid Outlook) can change the attachments, so I'll inline it > here. Applied, thanks! -- Bastien

Re: [O] C-c '

2011-08-26 Thread Bernt Hansen
Henri-Paul Indiogine writes: > Greetings! > > I noticed something strange when I edit a block of source code using C-c '. > > Each time I close the editor, using C-c ' the code block shift 2 > places to the right. That is, 2 black spaces are added at the > beginning of each line. Each time I e

Re: [O] Styling HTML output

2011-08-26 Thread Ken.Williams
On 8/26/11 2:26 PM, "Nick Dokos" wrote: >Two things: > >o application/octet-stream is not the right MIME type for the > attachment.[...] > >o Presumaby the following should say :[...] > Thanks, I think this update is better. Unfortunately I don't think my mailer (stupid Outlook) can change th

[O] C-c '

2011-08-26 Thread Henri-Paul Indiogine
Greetings! I noticed something strange when I edit a block of source code using C-c '. Each time I close the editor, using C-c ' the code block shift 2 places to the right. That is, 2 black spaces are added at the beginning of each line. Each time I edit a code block this happens again. So, e

Re: [O] Using Code Blocks in Org Tables

2011-08-26 Thread Henri-Paul Indiogine
Hi Eric! 2011/8/26 Eric Schulte : > sh code blocks are different in that they don't really have a ":results > value" option in the same way as most code blocks.  Two options would be > to either > 1. remove the "echo $HOME" line from your code blocks, or > 2. change the '(sbe "test-sh") formula to

Re: [O] Convert list to paragraph

2011-08-26 Thread Nick Dokos
Derek Thomas wrote: > I find it convenient to outline LaTeX documents using org-mode. I > often find myself with every sentence in a paragraph as an item in an > org list. This makes it convenient to manipulate the paragraph. Is > it possible to export a certain list bullet style (+,-, etc.) a

[O] Convert list to paragraph

2011-08-26 Thread Derek Thomas
I find it convenient to outline LaTeX documents using org-mode. I often find myself with every sentence in a paragraph as an item in an org list. This makes it convenient to manipulate the paragraph. Is it possible to export a certain list bullet style (+,-, etc.) as a paragraph instead of as a

Re: [O] [odt] equation labels

2011-08-26 Thread Jambunathan K
Hello Myles > \begin{equation*} > \label{eq:psychrometric} > \capillaryPressure = ln(RH)\cdot \dens_w\frac{RT}{M_w} > \end{equation*} dvipng refuses to produce png tex snippet above. I am not at all familiar with latex. I am not sure what is wrong. If you have a good number of equations in yo

Re: [O] Styling HTML output

2011-08-26 Thread Nick Dokos
wrote: > > On 8/26/11 4:01 AM, "Bastien" wrote: > > > >Cool - it deserves to be put on Worg org-hacks.org! > > > Good idea, here's a patch (I hope attachments work on this list?) that > adds it. > Two things: o application/octet-stream is not the right MIME type for the attachment. If yo

[O] difference between "#+source" and "#+srcname"; passing parameters to Awk.

2011-08-26 Thread Feiming Chen
Hi, I'd like to ask two questions. 1. What's the difference between header options "#+source" and "#+srcname"? They seem to have identical utilities. 2. I'd like to pass parameters (filenames) to Awk (language) code block, but #+srcname: subset(file="~/tmp/a") #+begin_src awk #+end_src

Re: [O] Styling HTML output

2011-08-26 Thread Ken.Williams
On 8/26/11 4:01 AM, "Bastien" wrote: > >Cool - it deserves to be put on Worg org-hacks.org! Good idea, here's a patch (I hope attachments work on this list?) that adds it. -- Ken Williams Senior Research Scientist Thomson Reuters http://labs.thomsonreuters.com 0001-Add-an-entry-for-code-ou

Re: [O] Styling HTML output

2011-08-26 Thread Eric S Fraga
writes: > 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. [...] Very nice. Thanks. I've already started using it, having added some other languages. Thanks again, eric -

Re: [O] collapsing some headings on html export?

2011-08-26 Thread Matt Price
On Fri, Aug 26, 2011 at 12:04 PM, Daniel Clemente wrote: > El Fri, 26 Aug 2011 09:41:38 -0400 Matt Price va escriure: > > > > On Fri, Aug 26, 2011 at 4:58 AM, Daniel Clemente > wrote: > > > I did it with this code: > > > http://www.danielclemente.com/pagina/esquemadorg.js > > > http://www.danie

Re: [O] collapsing some headings on html export?

2011-08-26 Thread Daniel Clemente
El Fri, 26 Aug 2011 09:41:38 -0400 Matt Price va escriure: > > On Fri, Aug 26, 2011 at 4:58 AM, Daniel Clemente wrote: > >  I did it with this code: > > http://www.danielclemente.com/pagina/esquemadorg.js > > http://www.danielclemente.com/pagina/esquemadorg.css > > > > Demo: http://www.danielclem

Re: [O] problem with find-file in --eval from command line

2011-08-26 Thread Eric S Fraga
Achim Gratz writes: > Eric S Fraga writes: >> The even simpler solution worked for me: >> >> emacs --eval '(find-file "/home/somefile.org")' > > ...as I had already said (this also has the charm of working in other > shells, like tcsh). Ah, sorry, I missed that! >> with bash (4.1-3) on Debia

Re: [O] nested and partially emphasizing

2011-08-26 Thread suvayu ali
On Fri, Aug 26, 2011 at 4:27 PM, joe wrote: > What would make me sad, because it actually has too much other > features being unavailable within the Wiki world... > You can always export to wiki formats and edit the wiki source. I believe there are some hints about exporting to wiki formats on Wo

Re: [O] [BABEL, PATCH] ob-maxima.el add variables and graphical output

2011-08-26 Thread Eric Schulte
Eric S Fraga writes: > Litvinov Sergey writes: > >> I would like to contribute an extension of babel maxima support. >> The patch adds variables and graphical output (currently limited to png >> files). There is a file with examples (tests). It is not ERTed yet. >> /testing/examples/ob-maxima-te

Re: [O] problem with find-file in --eval from command line

2011-08-26 Thread Achim Gratz
Eric S Fraga writes: > The even simpler solution worked for me: > > emacs --eval '(find-file "/home/somefile.org")' ...as I had already said (this also has the charm of working in other shells, like tcsh). > with bash (4.1-3) on Debian Linux (testing+unstable). Not sure why > others have need

Re: [O] [BABEL, PATCH] ob-maxima.el add variables and graphical output

2011-08-26 Thread Eric S Fraga
Litvinov Sergey writes: > I would like to contribute an extension of babel maxima support. > The patch adds variables and graphical output (currently limited to png > files). There is a file with examples (tests). It is not ERTed yet. > /testing/examples/ob-maxima-test.org Sergey, thanks for th

Re: [O] Using Code Blocks in Org Tables

2011-08-26 Thread Eric Schulte
Henri-Paul Indiogine writes: > 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<---

Re: [O] nested and partially emphasizing

2011-08-26 Thread joe
Jambunathan K gmail.com> writes: > This will interest you > > http://www.mail-archive.com/emacs-orgmode gnu.org/msg45991.html > Thank you very much, an actually helpful hint. It does not solve the problem of nested emphasizing, but it's a pragmatic way to solve some problems concerning emph

Re: [O] org->odt/html table export: adjusting default behaviour?

2011-08-26 Thread Matt Price
On Thu, Aug 25, 2011 at 5:40 PM, Jambunathan K wrote: > 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 >> ext

Re: [O] org->odt/html table export: adjusting default behaviour?

2011-08-26 Thread Matt Price
On Thu, Aug 25, 2011 at 6:01 PM, Jambunathan K wrote: > 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 >> ext

Re: [O] problem with find-file in --eval from command line

2011-08-26 Thread Eric S Fraga
Viktor Rosenfeld writes: > Hi, > > This works on Bash (tested on 4.2.10) and should be easy to remember: > > emacs --eval "(find-file \"/home/somefile.org\" )" The even simpler solution worked for me: emacs --eval '(find-file "/home/somefile.org")' with bash (4.1-3) on Debian Linux (testin

[O] [PATCH] org.texi: yasnippet nested snippet

2011-08-26 Thread Sylvain Rousseau
Hi, The proposed workaround doesn't support nested snippet! (setq yas/triggers-in-field t) to enable it. Here is a patch to fix this: diff --git a/doc/org.texi b/doc/org.texi index 002ada1..2295fd0 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -14097,7 +14097,7 @@ Then, tell Org mode what to

Re: [O] Is it possible to markup one character in a word?

2011-08-26 Thread joe
Jambunathan K gmail.com> writes: > > Create string like > > e|*X*|ecute > > where the | stands for ZERO WIDTH SPACE > Hi, thanks for this pragmatic solution. What now would be interesting: how to toggle on/off a display of those small helpers? F.e. by showing/hiding some grayed '|' for

Re: [O] Schedule event

2011-08-26 Thread Greg Troxel
Bastien writes: > Jason Dunsmore writes: > >> Carsten Dominik writes: >> >> Yes, that was my original reason. But your suggestion of adding a >> special keyword for events is another good reason. Also, as recently >> discussed, consistent formatting conventions and clarifying the >> frequent

Re: [O] HTML5 presentations

2011-08-26 Thread zwz
Eric Schulte writes: > 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 >

Re: [O] [Babel] Blank line preceeds tangled data

2011-08-26 Thread Bernt Hansen
Rainer M Krug writes: > On Fri, Aug 26, 2011 at 6:35 AM, Nick Dokos > wrote: > > 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

Re: [O] [Babel] Preserving tabs in code blocks

2011-08-26 Thread Bernt Hansen
Nick Dokos writes: > Bernt Hansen wrote: > >> 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 pre

Re: [O] nested and partially emphasizing

2011-08-26 Thread Jambunathan K
> Neither for bar*keeper* nor for *bar*keeper. This will interest you http://www.mail-archive.com/emacs-orgmode@gnu.org/msg45991.html ,[ C-h v org-emphasis-regexp-components RET ] | org-emphasis-regexp-components is a variable defined in `org.el'. | Its value is (" ('\"{" "- .,:

[O] nested and partially emphasizing

2011-08-26 Thread joe
Hi there, often discussed here, but seems have not lead to an actual solution yet: /italic/ *bold* _underlined_ works fine, but nested emphasizing not, as: *This is /actually/ bold.* Also partial emphasizing is not working by default: Neither for bar*keeper* nor for *bar*keeper. Not to speak

Re: [O] [Babel] Blank line preceeds tangled data

2011-08-26 Thread Rainer M Krug
On Fri, Aug 26, 2011 at 6:35 AM, Nick Dokos wrote: > 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.s

Re: [O] Styling HTML output

2011-08-26 Thread Bastien
Hi Ken, writes: > 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. Cool - it deserves to be put on Worg org-hacks.org! Thanks, -- Bastien

Re: [O] collapsing some headings on html export?

2011-08-26 Thread Daniel Clemente
If you only want to expand/collapse headers in a web page, you may use jQuery to handle each click. I did it with this code: http://www.danielclemente.com/pagina/esquemadorg.js http://www.danielclemente.com/pagina/esquemadorg.css Demo: http://www.danielclemente.com/hacer/emacs.html The

Re: [O] Underline ONLY the first character of a word?

2011-08-26 Thread Carsten Dominik
Hi, I don't think the following trick has come up yet. If you are only exporting to HTML, you can do: @e@vent HTH - Carsten On 25.8.2011, at 01:34, Nick Dokos wrote: > Nick Dokos wrote: > >> Not without some code I think. >> > > D'oh - as John Hendy points out, you can do it by hand: >

Re: [O] extending automatic screenshot insertion

2011-08-26 Thread Aankhen
Hi, On Thu, Aug 25, 2011 at 15:41, Aditya Mandayam wrote: > 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 times