[Orgmode] Re: AI for orgmode
On 2010-03-19 17:08 +, Carsten Dominik wrote: > I would be interested in a discussion on how to decrease the startup > pain in a clever way. > > - Carsten The 88th slide says: We implemented a rule-based expert system that provides the functionality of systems like CLIPS, LISA or OPS5. Anybody on the list know how expert system can help orgmode? Leo ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: AI for orgmode
I quite like Thomas' idea of packets for specific org mode uses. As a starting list consdier: writing for the web, writing for print, basic task management, "full" GTD, time tracking, code/LaTeX tangling. The list could obviously be edited down or up in length. Each of these packets might include Thomas' list (relevant .emacs code, sample org document, tutorial document and a screencast.) It's true that org is in some ways very simple (remember the 'taskpaper' discussion of a year ago?), for basic outlining. But it's also true that the minimal code-and-knowhow needed to do some of the specific tasks which org has proven so good at it can be a fair hurdle for a beginner to put together. In this respect the raw flexibility of org-mode (exactly like Emacs itself) has its down side. We might be able to lower the getting-started hurdle if we were able to tell people; "You want to do GTD-like task management? Look and follw the recipe. You want to outline your writing? Look . Heaven knows you can always tweak it later." I have often thought that there would be ways to get people up and running even without the venerable Emacs tutorial. Scot ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] PROJ category from the org-mode front page?
On Nov 19, 2009, at 5:13 PM, Matt Price wrote: Hi everyone, I've just been looking at this picture from the org-mode home page: http://orgmode.org/img/tasks.png I like the line : * PROJ Organize the interstellar dust meeting Is "PROJ" a custom TODO 'type' keyword? I have to say I quite like it... but would it be possible to have combine types with more complex (non-DONE) states, so that e.g. the heading displays: * PROJ INPROGRESS Organize the interstellar dust meeting or * PROJ DONE Organize the interstellar dust meeting No. Org-mode supports only one TODO keyword. What I am doing is #+TODO: PROJ | PRDONE PRCANCELED - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Error when exporting to LaTeX
On Jan 18, 2010, at 1:43 PM, Sébastien Vauban wrote: Hi Carsten, Carsten Dominik wrote: On Jan 14, 2010, at 12:15 PM, Sébastien Vauban wrote: Sébastien Vauban wrote: Here a problem when exporting such a file: --8<---cut here---start->8--- #+MACRO: rest {\leavevmode \leaders \hrule height 0.7pt\hfill} \\ Nombre y apellidos del estudiante: {{{rest}}} --8<---cut here---end--->8--- The `rest' macro is for filling the rest of the current line with an horizontal rule. It needs to be enclosed between accolades. The macro just does text replacement, so the LaTeX exporter sees naked braces which it escapes as it should. In fact there seems to be a bug causing the opening "{" not to be escaped - I have just fixed that, I hope. The above, and the "accolade workaround" (in front of the LaTeX environment), work fine in some cases. Though, here is a relatively simple Org file that exposes some of the problems I'm still confronted with: --8<---cut here---start->8--- #+TITLE: Spanish manual #+AUTHOR:Me #+EMAIL: n...@one.com #+DATE: 2010-01-18 #+OPTIONS: H:4 num:t toc:nil #+LaTeX_CLASS: article #+LaTeX_HEADER: \usepackage{xcolor} #+LaTeX_HEADER: \usepackage{fancybox} #+LaTeX_HEADER: \usepackage{tikz} #+LaTeX_HEADER: \usetikzlibrary{shapes,calc} #+LaTeX_HEADER: \newenvironment{etiket} {\fboxsep 10pt \begin{Sbox} \begin{minipage}{\linewidth}} {\end{minipage}\end{Sbox} \shadowbox{\TheSbox}} #+LaTeX_HEADER: \newcommand{\rfill}{{\leavevmode \color{blue! 80}\leaders \hrule height 0.7pt\hfill} \\} #+LaTeX_HEADER: \newcommand{\rsh}{{\color{blue!80}\rule{0.7cm} {0.7pt}}} #+LaTeX_HEADER: \newcommand{\titlebox}[3]{\begin{tikzpicture}[every text node part/.style={text centered}] \node[rectangle split, rectangle split parts=2, rectangle split part fill={blue!50,white}, line width=0.5mm, draw=blue, text width=#1, rounded corners](rs) {#2 \nodepart{second} #3}; \end{tikzpicture}} * Table in LaTeX environment #+BEGIN_etiket Nombre y apellidos del estudiante: \rfill Día(s) de la semana que tiene clase y de qué hora a qué hora: | lunes | martes | miércoles | jueves | | de \rsh{} a \rsh{} | de \rsh{} a \rsh{} | de \rsh{} a \rsh{} | de \rsh{} a \rsh{} | #+END_etiket Here, you just see a nice result of mixing a table and a LaTeX environment... Excellent!!! * List items DECIR - presentarse - saludar - despedirse Here, though, I can't get such *list items* framed, what ever workaround I'm trying to use. \titlebox{8cm}{DECIR}{ - presentarse - saludar - despedirse } #+LaTeX: \titlebox{8cm}{LEER}{ - las instrucciones en clase - algunos letreros públicos #+LaTeX: } #+LaTeX: {}\titlebox{8cm}{ESCRIBIR}{ - el nombre y apellido - cuándo uno tiene clase (días de la semana) - quién es el profesor #+LaTeX: } #+LaTeX: {}\titlebox{8cm}{OBJETIVOS GRAMATICALES}{ | - singular de SER y de LLAMARSE | | - ¿Cómo?| | - ¿Quién? | #+LaTeX: } * Other table Here, I'm trying to use the "accolades" workaround for allowing Org to interpret what will be inside LaTeX environments. #+LaTeX: {}\titlebox{8cm}{El presente (singular): Llamarse y ser.}{ #+ATTR_LaTeX: align=p{4cm}p{4cm} | *LLAMARSE* | *SER*| | *Me llam\rsh{}* Isabel. | *\rsh{}* Isabel. | | ¿Cómo *te llam\rsh{}?* | ¿Quién *eres*? | | *Se llam\rsh{}* Ana.| *\rsh{}* Ana.| #+LaTeX: } Though, it fails converting the above table to a LaTeX table. *Removing the ATTR LaTeX line* allows a conversion to a compilable LaTeX document, but, still, the table is not converted. For this last thing the following pretty bad work-around should work: #+ATTR_LaTeX: align=p{4cm}p{4cm} #+LaTeX: {}\titlebox{8cm}{El presente (singular): Llamarse y ser.}{ %} | *LLAMARSE* | *SER*| | *Me llam\rsh{}* Isabel. | *\rsh{}* Isabel. | | ¿Cómo *te llam\rsh{}?* | ¿Quién *eres*? | | *Se llam\rsh{}* Ana.| *\rsh{}* Ana.| #+LaTeX: } A better way would probably be to create an environment that makes the title box, so that the table is not an argument of a LaTeX macro (which Org-mode always protects). #+ATTR_LaTeX: align=p{4cm}p{4cm} #+LaTeX: {}\begin{mytitlebox}{8cm}{El presente (singular): Llamarse y ser.} | *LLAMARSE* | *SER*| | *Me llam\rsh{}* Isabel. | *\rsh{}* Isabel. | | ¿Cómo *te llam\rsh{}?* | ¿Quién *eres*? | | *Se llam\rsh{}* Ana.| *\rsh{}* Ana.| #+LaTeX: \end{mytitlebox} I do not know how to define such an environment, but I am sure that this is easy to do. The same should work with lists. HTH - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/ema
Re: [Orgmode] html export: specifying meta tags
Hi Ilya, the various style variables get inserted into the head section. I believe that #+STYLE: should do the trick. HTH, and sorry that this took s long. - Carsten On Feb 4, 2010, at 2:14 PM, Ilya Shlyakhter wrote: Is there a way to specify code to be inserted as meta tags in the ... section of the exported HTML document? E.g. I'd like to insert the lines to force a frequently-updated document to be reloaded every time, rather than being cached by the browser. If there isn't a way to do that I'd like to propose this as a feature. Thanks, ilya ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] BUG: org-insert-link doesn't use ido completion when org-completion-use-ido is t
On Feb 22, 2010, at 6:28 AM, Nathaniel Flath wrote: I'd really like to be able to use ido to insert links, but even though I have org-completion-use-ido set to t this does not occur. This seems to be because of org-insert-link in org.el, line8061: (let ((org-completion-use-ido nil) However, just removing this causes org-insert-link to not work. Yes, I remember that ido cannot be used for this for some reason - unfortunately I do not remember what the reason was :( - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Wikipedia article on Org-mode
On Mar 14, 2010, at 9:56 PM, smc wrote: Ok, btw I also created the org-mode Spanish translation page at the Wikipedia as I am translating the texi manual, in the hope that Org developers implement in a near future a i18n feature for the mode!! How would such a feature look like? - Carsten 2010/3/14 Carsten Dominik That was fast, thanks. - Carsten On Mar 14, 2010, at 12:36 PM, David Maus wrote: Carsten Dominik wrote: Hi, there is a Wikipedia article about Org-mode, and it has problems in the reference section. Somehow I feel I should not be he one editing this article - can someone here fix these issues? Thanks - Carsten Fixed. Missing angle bracket in a reference tag. -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode -- Suso http://gnu.manticore.es - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Custom agenda view: Select specific tag (or category) + display timestamps
On Mar 19, 2010, at 8:46 AM, Bernd Weiss wrote: Dear all, I'm having trouble with agenda customization. I have a couple of entries (+ timestamp) which are tagged with 'conference' and I'd like to have a list of conferences + timestamps. Hi Bernd, what do you mean by "a list of conferences + timestamps". Have you tried to use the customize interface - it is quite helpful for generating org-agenda-custom-commands. There is also an excellent tutorial by Matt Lundin - maybe it will give you the right ideas? http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.php HTH - Carsten (setq org-agenda-custom-commands '( ("c" "conferences" ((tags "CONFERENCE")) ) ) ) Many thanks in advance for your help, Bernd ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] PROJ category from the org-mode front page?
At Sat, 20 Mar 2010 15:47:35 +0100, Carsten Dominik wrote: > > > On Nov 19, 2009, at 5:13 PM, Matt Price wrote: > > > Hi everyone, > > > > I've just been looking at this picture from the org-mode home page: > > http://orgmode.org/img/tasks.png > > I like the line : > > * PROJ Organize the interstellar dust meeting > > > > Is "PROJ" a custom TODO 'type' keyword? I have to say I quite like > > it... but would it be possible to have combine types with more complex > > (non-DONE) states, so that e.g. the heading displays: > > * PROJ INPROGRESS Organize the interstellar dust meeting > > or > > * PROJ DONE Organize the interstellar dust meeting > > No. Org-mode supports only one TODO keyword. > > What I am doing is > > #+TODO: PROJ | PRDONE PRCANCELED > > - Carsten > ah, that's obvious but still great, thx Carsten. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Custom agenda view: Select specific tag (or category) + display timestamps
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 20.03.2010 16:31, schrieb Carsten Dominik: > > On Mar 19, 2010, at 8:46 AM, Bernd Weiss wrote: > >> Dear all, >> >> I'm having trouble with agenda customization. I have a couple of entries >> (+ timestamp) which are tagged with 'conference' and I'd like to have a >> list of conferences + timestamps. > > Hi Bernd, > > what do you mean by "a list of conferences + timestamps". > > Have you tried to use the customize interface - it is quite helpful > for generating org-agenda-custom-commands. There is also an excellent > tutorial by Matt Lundin - maybe it will give you the right ideas? > > http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.php > Hi Carsten, Thanks a lot for your replay! Sorry, my fault. I didn't assign proper timestamps to some of my entries. That's what I was looking for: Headlines with TAGS match: CONFERENCE work: Conf A <2010-03-24 Mi> :CONFERENCE:PLAN2010: . . . Everything is fine now :-) Thanks, Bernd -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) iQEcBAEBAgAGBQJLpPkPAAoJEEs3GEaRJz0hQxEH/iBUP6j2isUmc82f56dPUKWY UrIPkGc+2MF45WzjlIoUvMGUtfVgr7IHp95K9Hshz9cKVfphxYtMv/mLrBG1vsae +Zgr9WR68FAuKV6QNlXcwapIiwJsksNlUIncDLY0zmTefdceMGKpS4n1pSz9DEfV u246qxv2gnmu3bCWsyfp1FOc1/SENgIvER2wiWjd2RIy1rOCBpiLO7GYkhPmfTu/ UOhlwgz0lMIwqx2tlQrRodRScZGRFHQTVxfFar3srnu4n5glHIegnSvWhH8cxAvi m5dYJeu2Vwql7ff6GVa+JGcS7RbD9hEL7+W5obiO7eUlcr4m+YsAbM7Ep46rGNQ= =QupX -END PGP SIGNATURE- ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Exporting babel-result images inline
Hi Taur, Maybe you could wrap the entire source code block in a div and then use CSS to change the attributes of the div and the contained paragraph and image #+HTML: source block #+HTML: -- Eric Taru Karttunen writes: > Hello > > I have org-babel code like > > #+begin_src R :var data=foo :file foo.png :exports results > > pie(data[,2], labels = data[,1]) > #+end_src > > Which ends up html-exported as: > > > > I would like to export the generated image inline rather than as a > separate paragraph. However matching that does not work with > CSS as it lacks parent selectors. ATTR_HTML only affects the > which does not help. > > Any ideas? > > - Taru Karttunen > > > > > ___ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] stuck todos agenda view
I want to make an agenda view for todos older than 7 days sorted by oldest date first. My TODOs have a timestamp inside the logbook which shows when they got the TODO status. >*** TODO headline >:LOGBOOK: >- State "TODO" from "" [2010-03-20 Sat 19:39] >:END: How can I get an Agenda view, showing only TODOs with the most recent timestamp older than 7 days. And then if possible sorting them so that the oldest todo is shown fist. Any ideas how such a view could be configured/coded? Are there options already present with which I can get such a view? Greetings from Austria, Eraldo ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [babel] Babel as a test harness?
On Fri, Mar 19, 2010 at 7:45 PM, Dan Davison wrote: > Nathan Neff writes: > > > I think it would be cool to use Org-babel as a simple test harness. > > > > I'd like to have an org file, with various sections that demonstrate how > to do > > something in Groovy. I'd like to be able to run all the code in the org > file > > and make sure > > they all run successfully (return code 0). > > > > In Groovy, the "assert" function will exit with a non-zero code if it > fails. > > How > > would I use org-babel to generate a "summary" table with the name of > > each patch of code and whether or not it succeeded? > > Like below? This is all Eric's doing. For quite a while now org-babel > has used a table like this to validate itself. It took me a while to > understand it, but basically Eric designed a special function (actually, > a macro) called sbe (source block evaluate) to be used in table formulas > to call org-babel source blocks. Use C-u C-c C-c to update the table. > > * Tests > | functionality | block| arg | expected | results | > pass | > > |+--+-+--+--+| > | simple regexp | simple_regex | | | | > pass | > | regexp with or | regex_or | | | A pretend problem... | > expected "" but was "A pretend problem..." | > #+TBLFM: $5='(if (= (length $3) 1) (sbe $2 (n $3)) (sbe $2)) :: $6='(if > (string= $4 $5) "pass" (format "expected %S but was %S" $4 $5)) > > * Code blocks for tests > ** Here's how to match "foo" > #+source: simple_regex > #+begin_src groovy > assert "foo" =~ /foo/ > #+end_src > > ** Here's how to match "bar" or "baz" > #+source: regex_or > #+begin_src groovy > assert "bar" =~ "ba(z|r)" > println "A pretend problem" > #+end_src > > This is awesome. I tried it and it works. The table's "results" column says exactly what went wrong. For example, if I have the following: ** Here's how to match "bar" or "baz" #+source: regex_or #+begin_src groovy assert "bar" =~ "this ain't gonna match" #+end_src Then, my results table looks like this: | results | | Caught: java.lang.AssertionError: Expression: (bar =~ this ain't gonna | really cool! --Nate > You can put any arguments to your source blocks in the arg column. See > > http://orgmode.org/worg/org-contrib/babel/intro.php#spreadsheet > > (It often makes most sense to clone Worg and view the org files > themseleves) > > And for a more complex example, including how to pass arguments to > source blocks to sbe, see our full test suite in the file > development.org in the devel repo > > http://github.com/eschulte/babel-dev/ > > Dan > > p.s. groovy seems to be funny about hyphens in the input file name. I > think you want to apply this: > > diff --git a/contrib/babel/lisp/langs/org-babel-groovy.el > b/contrib/babel/lisp/langs/org-babel-groovy.el > index 02b3272..d6a28a7 100644 > --- a/contrib/babel/lisp/langs/org-babel-groovy.el > +++ b/contrib/babel/lisp/langs/org-babel-groovy.el > @@ -88,7 +88,7 @@ print o join(\"\\n\", @r), \"\\n\"") > (defun org-babel-groovy-evaluate (session body &optional result-type) > "Evaluate Groovy code in BODY" > ;; external process evaluation > - (let ((infile (make-temp-file "org_babel_groovy_input_"))) > + (let ((infile (replace-regexp-in-string "-" "_" (make-temp-file > "org_babel_groovy_input_" >(save-excursion > (with-temp-buffer >(with-temp-file infile (insert body)) > > > > > > > Something like this would be cool: > > > > * Regular Expressions > > ** Here's how to match "foo" > > > > #+source simple_regex > > #+begin_src groovy > > assert "foo" =~ /foo/ > > #+end_src > > > > ** Here's how to match "bar" or "baz" > > #+source regex_or > > #+begin_src groovy > > assert "bar" =~ "ba(z|r)" > > #+end_src > > > > * Results: > > | simple_regex | success | > > | regex_or| success | > > > > ___ > > Emacs-orgmode mailing list > > Please use `Reply All' to send replies to the list. > > Emacs-orgmode@gnu.org > > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [babel] Babel as a test harness?
On Fri, Mar 19, 2010 at 7:45 PM, Dan Davison wrote: > Nathan Neff writes: > > > I think it would be cool to use Org-babel as a simple test harness. > > > > I'd like to have an org file, with various sections that demonstrate how > to do > > something in Groovy. I'd like to be able to run all the code in the org > file > > and make sure > > they all run successfully (return code 0). > > > > In Groovy, the "assert" function will exit with a non-zero code if it > fails. > > How > > would I use org-babel to generate a "summary" table with the name of > > each patch of code and whether or not it succeeded? > > Like below? This is all Eric's doing. For quite a while now org-babel > has used a table like this to validate itself. It took me a while to > understand it, but basically Eric designed a special function (actually, > a macro) called sbe (source block evaluate) to be used in table formulas > to call org-babel source blocks. Use C-u C-c C-c to update the table. > > * Tests > | functionality | block| arg | expected | results | > pass | > > |+--+-+--+--+| > | simple regexp | simple_regex | | | | > pass | > | regexp with or | regex_or | | | A pretend problem... | > expected "" but was "A pretend problem..." | > #+TBLFM: $5='(if (= (length $3) 1) (sbe $2 (n $3)) (sbe $2)) :: $6='(if > (string= $4 $5) "pass" (format "expected %S but was %S" $4 $5)) > > * Code blocks for tests > ** Here's how to match "foo" > #+source: simple_regex > #+begin_src groovy > assert "foo" =~ /foo/ > #+end_src > > ** Here's how to match "bar" or "baz" > #+source: regex_or > #+begin_src groovy > assert "bar" =~ "ba(z|r)" > println "A pretend problem" > #+end_src > > You can put any arguments to your source blocks in the arg column. See > > http://orgmode.org/worg/org-contrib/babel/intro.php#spreadsheet > > (It often makes most sense to clone Worg and view the org files > themseleves) > > And for a more complex example, including how to pass arguments to > source blocks to sbe, see our full test suite in the file > development.org in the devel repo > > http://github.com/eschulte/babel-dev/ > > Dan > > This is really cool Dan! I simplified the test table -- it runs the test in column 1, then prints the output to the second column, and puts "pass" or "fail" in the 3rd column if the 2nd column is blank. * Tests, Simpler Output from each source block should be nothing. | block| output| result | |--+---+| | simple_regex | | pass | | regex_or | | pass | | regex_fail | Caught: java.lang.AssertionError: Expression: (bar =~ foo)... | fail | #+TBLFM: $2='(sbe $1) :: $3='(if (string= $2 "") "pass" "fail") * Code blocks for tests ** Here's how to match "foo" #+source: simple_regex #+begin_src groovy results: output assert "foo" =~ /foo/ #+end_src ** Here's how to match "bar" or "baz" #+source: regex_or #+begin_src groovy assert "bar" =~ "ba(z|r)" #+end_src ** A failing test #+source: regex_fail #+begin_src groovy assert "bar" =~ "foo" #+end_src ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Fail to compile a file's LaTeX export
Hello, While taking some common lisp notes, I found compiling the following org file's LaTeX output fails. #+title: test file * one 1. (char "string" 2) => #\r 2. define-modify-macro 3. (code-char 66) => #\B and (char-code #\B) => 66 4. terpri and fresh-line 5. "~n&" print a new line if not at the beginning of a line and then n-1 new lines. Leo ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Fail to compile a file's LaTeX export
On 2010-03-20 20:29 +, Leo wrote: > Hello, > > While taking some common lisp notes, I found compiling the following org > file's LaTeX output fails. > > > #+title: test file > > * one > 1. (char "string" 2) => #\r > 2. define-modify-macro > 3. (code-char 66) => #\B and (char-code #\B) => 66 > 4. terpri and fresh-line > 5. "~n&" print a new line if not at the beginning of a line and then n-1 > new lines. > > > Leo BTW, this was tested with the devel version of org. Leo ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Fail to compile a file's LaTeX export
Leo wrote: >On 2010-03-20 20:29 +, Leo wrote: >> Hello, >> >> While taking some common lisp notes, I found compiling the following org >> file's LaTeX output fails. >> >> >> #+title: test file >> >> * one >> 1. (char "string" 2) => #\r >> 2. define-modify-macro >> 3. (code-char 66) => #\B and (char-code #\B) => 66 >> 4. terpri and fresh-line >> 5. "~n&" print a new line if not at the beginning of a line and then n-1 >> new lines. >> >> >> Leo >BTW, this was tested with the devel version of org. Can confirm this for Org-mode version 6.34trans (release_6.34c.225.g1576) on GNU Emacs 24.0.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.7) of 2010-03-11 on elegiac, modified by Debian Exporting to LaTeX works fine but compiling the LaTeX file errors out with: , | ERROR: LaTeX Error: Something's wrong--perhaps a missing \item. | | --- TeX said --- | | See the LaTeX manual or LaTeX Companion for explanation. | Type H for immediate help. | ... | | l.37 \item |define-modify-macro | --- HELP --- | The most probable cause is an omitted \item command in a list-making | environment. It is also caused by forgetting the argument of a | thebibliography environment. ` Where the LaTeX code for the enumerate environment reads: , | \begin{enumerate} | \item (char ``string'' 2) => \#\r | \item define-modify-macro | \item (code-char 66) => \#\B and (char-code \#\B) => 66 | \item terpri and fresh-line | \item ``\~{}n\&'' print a new line if not at the beginning of a line and then n-1 new lines. | \end{enumerate} ` I suppose the \#\r is the problematic piece, will look into it tomorow. HTH -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgp7tQN3b2hvt.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: AI for orgmode
Carsten Dominik writes: > On Mar 18, 2010, at 9:32 PM, Leo wrote: > >> Thinking about my own experience, I didn't feel the pain since I >> gradually changing my org mode configuration over a few years. but I >> could understand the frustration. > > I would be interested in a discussion on how to decrease the startup > pain in a clever way. I've always been a kind of a defeatist so take my words with a grain of salt but... People who use or are willing to use Emacs are by no means ordinary users. The have their really own preferences and habits. They (like me) even have their own visions of GTD, let alone other workflows. If they choose org-mode it is because it is super-hyper-mega-customisable. With great power comes great[1]... Software achieve gradual learning curve (thus becoming available to ordinary users) by applying sane default settings but there is no such thing for users I've just described. They (with all due respect for everyone reading this) all are kind of insane to use text editor as a PIM, aren't they (we)? Giving those people "sane defaults" may only make some (most?) of them give up on org-mode as it might suggest less flexibility than there actually is. On the other hand I am going to try to convince some of my colleagues to use it and they don't seem to be so weird as I am. I will probably take my configuration weed out some really personal stuff and give them as the "sane default". These are of course only my 2 cents (Euro ones ;) [1] http://xkcd.com/643/ -- Miłego dnia, Łukasz Stelmach ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Fail to compile a file's LaTeX export
David Maus writes: > Leo wrote: > >On 2010-03-20 20:29 +, Leo wrote: > >> Hello, > >> > >> While taking some common lisp notes, I found compiling the following org > >> file's LaTeX output fails. > >> > >> > >> #+title: test file > >> > >> * one > >> 1. (char "string" 2) => #\r > >> 2. define-modify-macro > >> 3. (code-char 66) => #\B and (char-code #\B) => 66 > >> 4. terpri and fresh-line > >> 5. "~n&" print a new line if not at the beginning of a line and then > >> n-1 new lines. > >> > >> > >> Leo > > >BTW, this was tested with the devel version of org. > > Can confirm this for > > Org-mode version 6.34trans (release_6.34c.225.g1576) > > on > > GNU Emacs 24.0.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.7) of > 2010-03-11 on elegiac, modified by Debian > > Exporting to LaTeX works fine but compiling the LaTeX file errors out > with: > > , > | ERROR: LaTeX Error: Something's wrong--perhaps a missing \item. > | > | --- TeX said --- > | > | See the LaTeX manual or LaTeX Companion for explanation. > | Type H for immediate help. > | ... > | > | l.37 \item > |define-modify-macro > | --- HELP --- > | The most probable cause is an omitted \item command in a list-making > | environment. It is also caused by forgetting the argument of a > | thebibliography environment. > ` > > Where the LaTeX code for the enumerate environment reads: > > , > | \begin{enumerate} > | \item (char ``string'' 2) => \#\r > | \item define-modify-macro > | \item (code-char 66) => \#\B and (char-code \#\B) => 66 > | \item terpri and fresh-line > | \item ``\~{}n\&'' print a new line if not at the beginning of a line and > then n-1 new lines. > | \end{enumerate} > ` > > I suppose the \#\r is the problematic piece, will look into it > tomorow. Indeed \r is one of the problematic pieces; the other is the \B. The LaTeX exporter does not modify them since they look like LaTeX commands already, which is true in the case of \r (see below) but not in that for \B. Either way I don't get the impression that either is intended to be used as a LaTeX command so they should be marked somehow for conversion, but I don't know what would be most satisfactory. The \r is a LaTeX command that puts a ring accent over the next character. For example, \r{A} looks somewhat like the Angstrom unit. My fractured fairy tale is that the generated LaTeX code breaks because the character following \r is not one that can be accented in a way that keeps the lists (especially the \item command) sane. Tim ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Is it possible to expand the quick tag selection key
Dear all, As I'm using more and more tags, I found the keys are not enough. It is possible to define keymaps like emacs? (setq org-tag-alist '(("Culture" . ?c) ("ComputerSE" . ?C) ("English" . ?e) ("GuoXue" . ?g) ("Humor" . ?h) ("IMP" . ?i) * ("LIB" . ?l) ("Life" . ?L) ; ("Love" . ?) ; ("List" . ?)* ("Mathematics" . ?m) ("MAYBE" . ?M) ("Obtain" . ?o) ("Org" . ?O) ("Physics" . ?p) ("P525" . ?P) ("Question" . ?q) ("TODO" . ?t) ("Video" . ?v) )) The best, Chao ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Tag inheritance
Dear all, Is it possible for all the headlines inherit tags from the *filename?* If we could make it a in-buffer setting, that will be great. For example, I usually write notes related to Emacs in a file called Emacs.org. ^.^ All the best, Chao * * ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Fail to compile a file's LaTeX export
On Mar 20, 2010, at 9:29 PM, Leo wrote: Hello, While taking some common lisp notes, I found compiling the following org file's LaTeX output fails. #+title: test file * one 1. (char "string" 2) => #\r 2. define-modify-macro 3. (code-char 66) => #\B and (char-code #\B) => 66 4. terpri and fresh-line 5. "~n&" print a new line if not at the beginning of a line and then n-1 new lines. These things are code examples, and I think the bes way to deal with them is by markign them as such: * one 1. =(char "string" 2)= => =#\r= 2. define-modify-macro 3. =(code-char 66)= => and =(char-code #\B)= => 66 4. terpri and fresh-line 5. "~n&" print a new line if not at the beginning of a line and then n-1 new lines. HTH - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Is it possible to expand the quick tag selection key
On Mar 21, 2010, at 6:30 AM, Chao Lu wrote: Dear all, As I'm using more and more tags, I found the keys are not enough. It is possible to define keymaps like emacs? (setq org-tag-alist '(("Culture" . ?c) ("ComputerSE" . ?C) ("English" . ?e) ("GuoXue" . ?g) ("Humor" . ?h) ("IMP" . ?i) ("LIB" . ?l) ("Life" . ?L) ; ("Love" . ?) ; ("List" . ?) ("Mathematics" . ?m) ("MAYBE" . ?M) ("Obtain" . ?o) ("Org" . ?O) ("Physics" . ?p) ("P525" . ?P) ("Question" . ?q) ("TODO" . ?t) ("Video" . ?v) )) No, we do not have keymaps for this. You can press TAB at the tags interface and use completion. - Carsten The best, Chao ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Tag inheritance
On Mar 21, 2010, at 6:35 AM, Chao Lu wrote: Dear all, Is it possible for all the headlines inherit tags from the filename? If we could make it a in-buffer setting, that will be great. For example, I usually write notes related to Emacs in a file called Emacs.org. ^.^ Hi Chao, that would be #+FILETAGS: Emacs HTH - Carsten All the best, Chao ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode