[O] ditaa diagram not as expected
Hi there, I'm preparing a document in which I discuss the CSS box model and wanted to include a diagram, this diagram: #+begin_ditaa boxmodel.png -S +---=---+ | margin | | +-+ | | |border | | | | +=--+ | | | | | padding | | | | | | +=+ | | | | | | | content| | | | | | | | | | | | | | | | | | | | | | | +=+ | | | | | | | | | | | +=--+ | | | | | | | +-+ | | | +---=---+ #+end_ditaa However, the diagram that org/ditaa creates is missing the third box (counting from the outside inwards), the box between border and padding. I tried removing the = (which would make the line solid), but the box still did not appear. I've tried this snippet in an org document by itself, and I've tried putting the diagram in a file by itself and running ditaa directly. Still no middle box. I realise this may be a ditaa rather than an org-mode problem, but can anyone suggest anything? Particularly, does anyone else get the same effect? org-mode version: 7.8.11; ditaa version: 0.9; Emacs version: 24.1.1. Thanks, Richard
Re: [O] ditaa diagram not as expected
At Tue, 07 Aug 2012 07:48:36 -0600, Eric Schulte wrote: Richard Lewis richardle...@fastmail.co.uk writes: However, the diagram that org/ditaa creates is missing the third box (counting from the outside inwards), the box between border and padding. I tried removing the = (which would make the line solid), but the box still did not appear. I've tried this snippet in an org document by itself, and I've tried putting the diagram in a file by itself and running ditaa directly. Still no middle box. I realise this may be a ditaa rather than an org-mode problem, but can anyone suggest anything? Particularly, does anyone else get the same effect? This is a ditaa issue and probably isn't affected by Org-mode. I have had issues like this in the past with ditaa, I often find that the solution is to leave more space between my shapes or lines. Oh. Well that's fixed it. I also tried various other spacing and found all sorts of ways of breaking it. But at least one arrangement works! Thanks, Richard
[O] #+LaTeX_CLASS regex too restrictive?
Hi there, I updated my org-mode repository last night and found today that my LaTeX export wasn't working anymore because it couldn't find the LaTeX class: No definition for class `%s' in `org-export-latex-classes'. The class name I'm using includes / characters. However, the regex for matching #+LaTeX_CLASS allows only alphabetic characters or -. The following change fixed this for me, but perhaps it's now a little too inclusive? diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 649e4a7..e9502ae 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -1346,7 +1346,7 @@ LEVEL indicates the default depth for export. (save-restriction (widen) (goto-char (point-min)) - (and (re-search-forward ^#\\+LaTeX_CLASS:[ \t]*\\([-a-zA-Z]+\\) nil t) + (and (re-search-forward ^#\\+LaTeX_CLASS:[ \t]*\\(.+\\)$ nil t) (match-string 1 (plist-get org-export-latex-options-plist :latex-class) org-export-latex-default-class) Best, Richard -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Richard Lewis ISMS, Computing Goldsmiths, University of London Tel: +44 (0)20 7078 5134 Skype: richardjlewis JID: ironchic...@jabber.earth.li http://www.richardlewis.me.uk/ -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Re: [O] #+LaTeX_CLASS regex too restrictive?
At Sat, 29 Oct 2011 12:34:25 -0400, Nick Dokos wrote: Richard Lewis richardle...@fastmail.co.uk wrote: The class name I'm using includes / characters. It seems to me that that's a bad idea: class names correspond to file names (without the .cls extension), so / characters will probably cause confusion (at least on Unix-based filesystems). But what's the relationship between org-export-latex-classes and LaTeX class files? Best, Richard
[O] Escaping Square Brackets in LaTeX Export
Hi there, I want to include the following in an org-mode buffer and be able to export it to LaTeX: #+begin_src python :exports code s[0] #+end_src The problem is that org-mode treats s[0] as a footnote reference and produces LaTeX like this: \begin{verbatim} s\footnote{DEFINITION NOT FOUND: 0 } \end{verbatim} Is it possible to escape the square brackets? Thanks, Richard
Re: [O] Escaping Square Brackets in LaTeX Export
At Thu, 01 Sep 2011 17:58:00 +0530, Jambunathan K wrote: The problem is that org-mode treats s[0] as a footnote reference and produces LaTeX like this: Make sure your Org version is NEWER than this post. https://lists.gnu.org/archive/html/emacs-orgmode/2011-07/msg00447.html From the above post , | Footnotes cannot live anymore in example, src, verse, latex, html and | docbook blocks. ` Thanks for the pointer. It led me to discover that some of my org-mode libraries were coming from the Debian emacs package, and some from my git repository. So a site-specific problem. I've actually been caught out by this before, so no excuse really. Thanks, Richard
[O] Problems with LaTeX export
Hi there, Last week I made a customised latex class for generating the LaTeX version of my thesis (as a displacement activity for actually writing said thesis). It all worked fine about last Wednesday, but today it's not working very well at all. Coincidentally (by which I mean not to imply causality) I updated my org-mode git repository this morning. I have an org-export-latex-class defined: (add-to-list 'org-export-latex-classes '(thesis \\documentclass[11pt,a4paper]{report} \\usepackage[T1]{fontenc} \\usepackage{fontspec} \\usepackage{graphicx} \\defaultfontfeatures{Mapping=tex-text} \\setromanfont{Gentium} \\setromanfont [BoldFont={Gentium Basic Bold}, ItalicFont={Gentium Basic Italic}]{Gentium Basic} \\setsansfont{Charis SIL} \\setmonofont[Scale=0.8]{DejaVu Sans Mono} \\usepackage{geometry} \\geometry{a4paper, textwidth=6.5in, textheight=10in, marginparsep=7pt, marginparwidth=.6in} \\pagestyle{empty} \\title{} [NO-DEFAULT-PACKAGES] [NO-PACKAGES] (\\chapter{%s} . \\chapter*{%s}) (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \\subparagraph*{%s}))) (It used to be called rjl/thesis, but then when I tried to export this morning it said it couldn't find the class rjl so I changed the name.) This class is mainly taken from emacsfu (http://emacs-fu.blogspot.com/2011/04/nice-looking-pdfs-with-org-mode-and.html) The problem I am experiencing now is that the TeX source that it outputs looks like this: \documentclass[11pt,a4paper]{report} \usepackage[T1]{fontenc} \usepackage{fontspec} \usepackage{graphicx} \defaultfontfeatures{Mapping=tex-text} \setromanfont{Gentium} \setromanfont [BoldFont={Gentium Basic Bold}, ItalicFont={Gentium Basic Italic}]{Gentium Basic} \setsansfont{Charis SIL} \setmonofont[Scale=0.8]{DejaVu Sans Mono} \usepackage{geometry} \geometry{a4paper, textwidth=6.5in, textheight=10in, marginparsep=7pt, marginparwidth=.6in} \pagestyle{empty} \title{} [NO-DEFAULT-PACKAGES] [NO-PACKAGES] \title{Foo Bar} \author{Richard Lewis} \date{16 May 2011} \begin{document} I'm sure it's not supposed to contain that empty \title{} environment, or the [NO-DEFAULT-PACKAGES] thing. Any ideas why this might be happening? Thanks, Richard
Re: [Orgmode] Re: icalendar export incomplete
At Thu, 1 Oct 2009 13:52:39 +0200, Carsten Dominik wrote: On Oct 1, 2009, at 11:14 AM, Richard Lewis wrote: At Wed, 30 Sep 2009 11:43:05 +0100, Richard Lewis wrote: Hi there, I've been trying to get org-mode to export all my TODOs and diary file entries to a single iCalendar file (which I then intend to import to my phone). However, when I run the command org-export-icalendar-combine-agenda-files it only exports a selection of TODOs and events to the output file. They come from the various .org files, but do not include all the TODOs and events from those files. They seem to the ones wit the earliest time stamps. I also notice that it's only added ID PROPERTIES to headlines marked as DONE (or any of the DONE-like SEQ_TODO options I have). (I have the following SEQ_TODO setup: #+SEQ_TODO: TODO(t) STARTED(s) WAITING(w) APPT(a) | DONE(d) CANCELLED(c) DEFERRED(f) ) Though many of the DONE (etc.) headlines which have been assigned IDs do not appear in the icalendar export. Also, it seems to export the TODO items as VEVENTs rather than VTODOs. I also tried org-export-icalendar-all-agenda-files and each individual file contained exaclt the same selection of TODOs and events that appeared in the combined file. Any ideas how to get all my TODOs and events into an ics file? I should also add that I'm using org-mode from the git repository fetched yesterday. I've also checked that it's always exactly the same selection of headlines that get exported. Ultimately what I'd really like to be able to do is export from the Agenda day/week view and just get a day (or week's) worth of events and TODOs at a time. Hi Richard, please take a look at the following variables: org-icalendar-include-todo org-icalendar-use-deadline org-icalendar-use-scheduled org-icalendar-store-UID The dosctrings of these variables should explain the behavior you are seeing, and show ways how to change the behavior. Thanks for your pointers (and sorry for not acknowledging them earlier.) I still haven't quite satisfactorially solved this problem. My current method is to use (org-write-agenda) and specify a .ics file. However, this doesn't seem to include entries from my ~/diary file (which *are* included in my agenda view). I have org-agenda-include-diary set to T but ~/diary is not in my org-agenda-files. (Which I just tested and it seems [quite reasonably] that only org mode files can go in this list.) Is it possible for org-write-agenda to include ~/diary information? -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Richard Lewis ISMS, Computing Goldsmiths, University of London Tel: +44 (0)20 7078 5134 Skype: richardjlewis JID: ironchic...@jabber.earth.li http://www.richard-lewis.me.uk/ -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +--+ | Support open access to scholarship | | http://freeculture.org/ http://www.doaj.org/ | +--+ ___ 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: icalendar export incomplete
At Wed, 30 Sep 2009 11:43:05 +0100, Richard Lewis wrote: Hi there, I've been trying to get org-mode to export all my TODOs and diary file entries to a single iCalendar file (which I then intend to import to my phone). However, when I run the command org-export-icalendar-combine-agenda-files it only exports a selection of TODOs and events to the output file. They come from the various .org files, but do not include all the TODOs and events from those files. They seem to the ones wit the earliest time stamps. I also notice that it's only added ID PROPERTIES to headlines marked as DONE (or any of the DONE-like SEQ_TODO options I have). (I have the following SEQ_TODO setup: #+SEQ_TODO: TODO(t) STARTED(s) WAITING(w) APPT(a) | DONE(d) CANCELLED(c) DEFERRED(f) ) Though many of the DONE (etc.) headlines which have been assigned IDs do not appear in the icalendar export. Also, it seems to export the TODO items as VEVENTs rather than VTODOs. I also tried org-export-icalendar-all-agenda-files and each individual file contained exaclt the same selection of TODOs and events that appeared in the combined file. Any ideas how to get all my TODOs and events into an ics file? I should also add that I'm using org-mode from the git repository fetched yesterday. I've also checked that it's always exactly the same selection of headlines that get exported. Ultimately what I'd really like to be able to do is export from the Agenda day/week view and just get a day (or week's) worth of events and TODOs at a time. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Richard Lewis ISMS, Computing Goldsmiths, University of London Tel: +44 (0)20 7078 5134 Skype: richardjlewis JID: ironchic...@jabber.earth.li http://www.richard-lewis.me.uk/ -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +---+ |Please avoid sending me Word or PowerPoint attachments.| |http://www.gnu.org/philosophy/no-word-attachments.html | +---+ ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] icalendar export incomplete
Hi there, I've been trying to get org-mode to export all my TODOs and diary file entries to a single iCalendar file (which I then intend to import to my phone). However, when I run the command org-export-icalendar-combine-agenda-files it only exports a selection of TODOs and events to the output file. They come from the various .org files, but do not include all the TODOs and events from those files. They seem to the ones wit the earliest time stamps. I also notice that it's only added ID PROPERTIES to headlines marked as DONE (or any of the DONE-like SEQ_TODO options I have). (I have the following SEQ_TODO setup: #+SEQ_TODO: TODO(t) STARTED(s) WAITING(w) APPT(a) | DONE(d) CANCELLED(c) DEFERRED(f) ) Though many of the DONE (etc.) headlines which have been assigned IDs do not appear in the icalendar export. Also, it seems to export the TODO items as VEVENTs rather than VTODOs. I also tried org-export-icalendar-all-agenda-files and each individual file contained exaclt the same selection of TODOs and events that appeared in the combined file. Any ideas how to get all my TODOs and events into an ics file? Best, Richard -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Richard Lewis ISMS, Computing Goldsmiths, University of London Tel: +44 (0)20 7078 5134 Skype: richardjlewis JID: ironchic...@jabber.earth.li http://www.richard-lewis.me.uk/ -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +---+ |Please avoid sending me Word or PowerPoint attachments.| |http://www.gnu.org/philosophy/no-word-attachments.html | +---+ ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Accidentally holding down LEFT arrow in Agenda
Hi there, This is sort of a bug query. Occasionally, I accidentally hold down the LEFT cursor key in Agenda mode, hoping to move the cursor left, but forgetting that it actually moves to next week. This is sort of a nuisance because it renders every week I've accidentally requested (I think) and takes ages. I know the best solution is for me to be more careful, but I wonder if any alterations could be made to (org-agenda-later) (possibly) to detect multiple calls or something? Best, Richard ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode