Re: [O] List of figures
John Kitchin jkitc...@andrew.cmu.edu writes: Maybe I am missing something, what would the utility of #+toc: figures be? Is it only for export? I would make a link: [[elisp:org-list-of-figures]] where org-list-of-figures is an emacs-lisp function that would parse the buffer and present you with a list of clickable links to the figures. You could alternatively make this a new org-link, so you could also specify how it exports, eg. [[lof:click-me][List of Figures]] That would be pure org-markup, and make org more useful, and it would also happen to support LaTeX export too. I guess you would recognize figures as extensions in the file links. This is more like org-toc.el, though I'm not sure if it can be configured to pick up figures. Using org-element it should be at least be relatively easy to pick up the structure of the document, though I think the reftex/org-toc way of displaying such structure is superior to something tied to a specific line in the buffer (I may want to jump to somewhere from the bottom of my file). —Rasmus -- Got mashed potatoes. Ain't got no T-Bone. No T-Bone
Re: [O] org todos on paper?
You may want to check out Christian Egli's org2hdpa in the contrib/scripts directory, cf. this thread: http://lists.gnu.org/archive/html/emacs-orgmode/2011-05/msg00577.html Peter Neilson writes: as much as I've loved using emacs for nearly 40 years, it's not my constant companion outdoors in the weather, or when handling horses or shearing sheep. What a great quote! And before long, someone will come up with M-x shear-sheep :) Yours, Christian Moe
Re: [O] org todos on paper?
Christian Moe m...@christianmoe.com writes: You may want to check out Christian Egli's org2hdpa in the contrib/scripts directory, cf. this thread: http://lists.gnu.org/archive/html/emacs-orgmode/2011-05/msg00577.html Peter Neilson writes: as much as I've loved using emacs for nearly 40 years, it's not my constant companion outdoors in the weather, or when handling horses or shearing sheep. What a great quote! And before long, someone will come up with M-x shear-sheep :) Its just a matter of time and the machine you use for shearing sheeps will be a kind of smart-phone too that peeps if you need more than the SCHEDULED time for one sheep, or the time for ,- | [#A] TODO Melk the Cows :farm: `- has arrived ... -- cheers, Thorsten
Re: [O] org todos on paper?
On Fri, 28 Feb 2014 05:44:52 -0500, Thorsten Jolitz tjol...@gmail.com wrote: Its just a matter of time and the machine you use for shearing sheeps will be a kind of smart-phone too that peeps if you need more than the SCHEDULED time for one sheep, or the time for ,- | [#A] TODO Melk the Cows :farm: `- has arrived ... We do not have cows, but I know what's involved. Dairy cows are on a strict schedule, milked twice daily. They are automatically the top priority at four in the morning and at four in the afternoon. Writing it down on paper or in emacs is superfluous. Nothing (except the barn being on fire) is more important. Why isn't Farbror Hans here at Grandfather's funeral? -- He had to milk the cows. Oh. Of course. I forgot. Yes, that's more important.
Re: [O] org todos on paper?
Christian Moe m...@christianmoe.com writes: You may want to check out Christian Egli's org2hdpa in the contrib/scripts directory, cf. this thread: http://lists.gnu.org/archive/html/emacs-orgmode/2011-05/msg00577.html This script prints a pocketMod calendar that includes entries from the diary file. However if you also want your todo items you need to extend the script. Thanks Christian -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland
[O] Fwd: differnace between org-id and internal links
Gotcha thx. a related question. can i map a command to open a specific header then (an org-id) one to a keybind? thx Z On Tue, Feb 25, 2014 at 9:24 PM, Oleh ohwoeo...@gmail.com wrote: Hya all. i cant understand what the advantages of org-id links over internal ones? in both cases it uses a fixed path right? its not like if i move my org files to another PC with different paths then the links will all work? whats the use case scenario to use org-id over internal links? As far as I understand, id links are unique, so you can have multiple headings with same name, and move them about as much you like within current file or multiple files. You can't do that with plain links which are *very* inflexible and become stale fast. Your scenario with another PC should also work, as org will search for the needed id across all known org files. So as long as the file you move across different PCs is in the search path, the links will still work. regards, Oleh
[O] Blank page in LaTeX/PDF output
I'm writing a short paper containing tables, images, etc., but I'm getting a blank page in the PDF output. That is, it's completely blank *except* for the page number. Any suggestions on how to trouble-shoot or fix this? If I could get rid of the page number on the blank page, I would just delete the page in Acrobat, but as it is, that would leave pages 1-5, 7-9. Thanks! -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
Re: [O] Blank page in LaTeX/PDF output
On Fri, Feb 28, 2014 at 10:59 AM, Peter Davis p...@pfdstudio.com wrote: I'm writing a short paper containing tables, images, etc., but I'm getting a blank page in the PDF output. That is, it's completely blank *except* for the page number. Any suggestions on how to trouble-shoot or fix this? Probably related to image/table float placement. I've had an image on one page trigger a blank page after it, and if your options or the size of the image on the next place won't fit on a single page, it might be skipping that blank one entirely and moving along to the next. Is it possible to share the document, or could you try to copy that .org file, remove the contents of p. 1-4 and 8-9, and then share the .org file that generates pages 5, 6 (blank), and 7? John If I could get rid of the page number on the blank page, I would just delete the page in Acrobat, but as it is, that would leave pages 1-5, 7-9. Thanks! -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
Re: [O] trunc fill modes?
Peter Davis p...@pfdstudio.com writes: On my MacBook Pro at work, running Aquamacs 3.0a, in Org mode the mode line shows ... Fill I think you want auto-fill-mode. See: https://www.gnu.org/software/emacs/manual/html_node/emacs/Auto-Fill.html Auto-fill-mode is an Emacs minor mode. You can make sure it's turned on in Org (which is a major mode) by adding it to Org's mode hook: (add-hook 'org-mode-hook ; add a function to the Org mode hook... (lambda () (auto-fill-mode 1))) ; that ensures auto-fill-mode is on Put that somewhere in your ~/.emacs, restart Emacs (to reload your ~/.emacs), and you should see Fill in the mode line when you're in Org mode. You can do the same for other modes by swapping out the org-mode-hook symbol for the appropriate hook variable for another mode (usually called MODE-NAME-hook). Best, Richard (If possible, please encrypt your reply to me using my PGP key: Key ID: CF6FA646 Fingerprint: 9969 43E1 CF6F A646. See http://www.ocf.berkeley.edu/~rwl/encryption.html for more information.)
Re: [O] Blank page in LaTeX/PDF output
On 2/28/14, 12:03 PM, John Hendy wrote: On Fri, Feb 28, 2014 at 10:59 AM, Peter Davis p...@pfdstudio.com wrote: I'm writing a short paper containing tables, images, etc., but I'm getting a blank page in the PDF output. That is, it's completely blank *except* for the page number. Any suggestions on how to trouble-shoot or fix this? Probably related to image/table float placement. I've had an image on one page trigger a blank page after it, and if your options or the size of the image on the next place won't fit on a single page, it might be skipping that blank one entirely and moving along to the next. Is it possible to share the document, or could you try to copy that .org file, remove the contents of p. 1-4 and 8-9, and then share the .org file that generates pages 5, 6 (blank), and 7? Thanks, John. I figured it has something to do with LaTeX float behavior, but I'm trying to understand how to control it through org-mode. I'm attaching a small sample that reproduces the problem. Thanks! -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com #+STARTUP: showeverything logdone #+options: num:nil #+OPTIONS: H:5 num:t \n:nil @:t ::t |:t ^:nil -:t f:t *:t :t #+LaTeX_CLASS: koma-article #+LATEX_HEADER: \setlength{\parskip}{2ex plus 4pt minus 2pt} #+LATEX_HEADER: \setlength{\parindent}{0pt} #+LATEX_HEADER: \renewcommand{\baselinestretch}{1.0} #+LATEX_HEADER: \setlength{\topsep}{-10pt} #+LATEX_HEADER: \setlength{\partopsep}{0pt} #+LaTeX_CLASS_OPTIONS: [article,letterpaper,times,12pt,listings-bw,microtype] #+author: Peter Davis (pdavis) #+title: My Title #+ATTR_LATEX: :height 5in [[/Users/peterdavis/Dropbox/Tufts/COMP171/force_a_page_break.png]] #+ATTR_LATEX: :height 6cm [[/Users/peterdavis/Dropbox/Tufts/COMP171/AS3_2.png]] /NOTE:/ User actions are indicated in lowercase letters. Software responses are indicated in UPPERCASE LETTERS. * Lexical Analysis The following table contains the word blah a lot. #+CAPTION: #+ATTR_LATEX: :align lp{2.75in}p{2.75in} |+--+-| | *blah* | *blah blah blah* | *blah blah blah blah* | |+--+-| | blah | blah blah blah | blah blah blah blah | | blah | blah blah blah | blah blah blah blah | | blah | blah blah blah | blah blah blah blah | | blah | blah blah blah | blah blah blah blah | | blah | blah blah blah | blah blah blah blah | | blah | blah blah blah | blah blah blah blah | | blah | blah blah blah | blah blah blah blah | | blah | blah blah blah | blah blah blah blah | |+--+-| * Storyboard #+ATTR_LATEX: :height 8.5in [[/Users/peterdavis/Dropbox/Tufts/COMP171/Storyboard.png]]
Re: [O] Blank page in LaTeX/PDF output
On 2/28/14, 12:26 PM, Peter Davis wrote: Thanks, John. I figured it has something to do with LaTeX float behavior, but I'm trying to understand how to control it through org-mode. I'm attaching a small sample that reproduces the problem. I'd also like to get rid of that stupid empty table of contents, which may in itself solve the problem. Thanks! -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
Re: [O] Blank page in LaTeX/PDF output
On Fri, Feb 28, 2014 at 11:26 AM, Peter Davis p...@pfdstudio.com wrote: On 2/28/14, 12:03 PM, John Hendy wrote: On Fri, Feb 28, 2014 at 10:59 AM, Peter Davis p...@pfdstudio.com wrote: I'm writing a short paper containing tables, images, etc., but I'm getting a blank page in the PDF output. That is, it's completely blank *except* for the page number. Any suggestions on how to trouble-shoot or fix this? Probably related to image/table float placement. I've had an image on one page trigger a blank page after it, and if your options or the size of the image on the next place won't fit on a single page, it might be skipping that blank one entirely and moving along to the next. Is it possible to share the document, or could you try to copy that .org file, remove the contents of p. 1-4 and 8-9, and then share the .org file that generates pages 5, 6 (blank), and 7? Thanks, John. I figured it has something to do with LaTeX float behavior, but I'm trying to understand how to control it through org-mode. I'm attaching a small sample that reproduces the problem. I was going to try and get back to you quickly, but I don't have koma-article defined and don't have the images you're using, so I won't be much help to you. Intuitively, I'd suggest you try playing with the image sizes to see if you can shrink them and make the problem go away. You can also try: #+latex: \scriptsize % or \small, \footnotesize, or \tiny before your table to make it smaller as well if you think that's contributing. Just saw your other email come in, and the TOC will be fixed by modifying your existing options at the top of the document: #+options: num:nil toc:nil Best regards, John Thanks! -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
[O] Wolfram Language versus org mode literate
Back when I was younger (half an hour ago?) I would have been wowed by this: http://youtu.be/_P9HqHVPeik which is Stephen Wolfram's intro into his new Wolfram language. But what puts me (way) off is -- once again -- I'm supposedly doing all these great things, but not with any sort of accounting for what's being done. Kein Protokoll. No Story. The nature of functional programming is to build, Russian doll-style, functions that use functions that use functions etc. But without something like a literate style, your efforts are quickly lost in the details. You do stuff -- and unless you have a phenomenal memory, you've simply dug a nice, deep tunnel that is, at the same time, collapsing behind you. *You* may know what you've done, but how to make others aware and get them involved? All they see is some collapsed tunnel with a sales pitch about how you should go re-dig that very same tunnel. Typically, with software projects you have hierarchical teams that plan what the project is and what it will do and who will do what. Again, it's just the tunneling with a bit less collapsing going on behind the actual shoveling. So far, software is all about drilling into the problem, writing a bunch of code, then flogging a group of users on how to use it. No Story. Just tunneling, with varying degrees of tunnel passageway, depending on how much effort is put into shoveling by coders and their users. But this is a hopeless model that cannot scale. How many billions of lines of code are out there . . . basically lost to everyone -- even the creator? Libraries, modules? Sure, and yet the whole effort at Wolfram seems only to be taking librarian duties to the next level. But still, where's The Story? Coding, solving problems needs a Story to go along with it. I don't think computing will advance until The Story is woven into the actual coding. Yes, functional is probably a step up from OO, (Smalltalkers don't agree), but it still doesn't tell a Story. It's just more powerful tunneling equipment. Humanity is The Big Story, which, in turn, is broken down into very many sub-Stories. We're Story-oriented. Code so far is not. Code is like networks of tunnels where, for all intents and purposes, most of the tunneling has already collapsed, the tunnel paths mostly unknowable. What makes me so excited about org mode is that it's the first time I've seen literate programming move a tick up into the realm of actually creating a tellable Story. At some point in the future, you will tell a Story. The Story may be how you created an inventory system, or tracked moose in the wild. Others -- human or machine -- on hearing your Story may then want to weave it into their Stories. Now, what I see Wolfram doing is just making The Ultimate Library, one with enough AI to obviate lots of library browsing. But there's still no Story. org mode, however, has the rudiments of being able to finally tell Stories. Ein schoenes Protokoll! Amen! Lawrence Bottorff North Shore MN
Re: [O] Blank page in LaTeX/PDF output
On 2/28/14, 12:37 PM, John Hendy wrote: I was going to try and get back to you quickly, but I don't have koma-article defined and don't have the images you're using, so I won't be much help to you. Intuitively, I'd suggest you try playing with the image sizes to see if you can shrink them and make the problem go away. Thanks, John. You shouldn't need the images, since their heights are specified in the .org file. But I guess it would not be reproducible without koma-article. You can also try: #+latex: \scriptsize % or \small, \footnotesize, or \tiny before your table to make it smaller as well if you think that's contributing. These seem like things to try after the content is completely locked down. Any edits after this could conceivably re-introduce the problem, requiring further tweaks. Just saw your other email come in, and the TOC will be fixed by modifying your existing options at the top of the document: #+options: num:nil toc:nil Thanks again! Yes, this works, and seems to eliminate the blank page (for now)! Cheers, -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
Re: [O] Wolfram Language versus org mode literate
I don't know that I agree with all of this, but I'm definitely glad I read it. Thanks for posting. Tom On 2014-02-28 12:53 PM, Lawrence Bottorff borg...@gmail.com wrote: Back when I was younger (half an hour ago?) I would have been wowed by this: http://youtu.be/_P9HqHVPeik which is Stephen Wolfram's intro into his new Wolfram language. But what puts me (way) off is -- once again -- I'm supposedly doing all these great things, but not with any sort of accounting for what's being done. Kein Protokoll. No Story. The nature of functional programming is to build, Russian doll-style, functions that use functions that use functions etc. But without something like a literate style, your efforts are quickly lost in the details. You do stuff -- and unless you have a phenomenal memory, you've simply dug a nice, deep tunnel that is, at the same time, collapsing behind you. *You* may know what you've done, but how to make others aware and get them involved? All they see is some collapsed tunnel with a sales pitch about how you should go re-dig that very same tunnel. Typically, with software projects you have hierarchical teams that plan what the project is and what it will do and who will do what. Again, it's just the tunneling with a bit less collapsing going on behind the actual shoveling. So far, software is all about drilling into the problem, writing a bunch of code, then flogging a group of users on how to use it. No Story. Just tunneling, with varying degrees of tunnel passageway, depending on how much effort is put into shoveling by coders and their users. But this is a hopeless model that cannot scale. How many billions of lines of code are out there . . . basically lost to everyone -- even the creator? Libraries, modules? Sure, and yet the whole effort at Wolfram seems only to be taking librarian duties to the next level. But still, where's The Story? Coding, solving problems needs a Story to go along with it. I don't think computing will advance until The Story is woven into the actual coding. Yes, functional is probably a step up from OO, (Smalltalkers don't agree), but it still doesn't tell a Story. It's just more powerful tunneling equipment. Humanity is The Big Story, which, in turn, is broken down into very many sub-Stories. We're Story-oriented. Code so far is not. Code is like networks of tunnels where, for all intents and purposes, most of the tunneling has already collapsed, the tunnel paths mostly unknowable. What makes me so excited about org mode is that it's the first time I've seen literate programming move a tick up into the realm of actually creating a tellable Story. At some point in the future, you will tell a Story. The Story may be how you created an inventory system, or tracked moose in the wild. Others -- human or machine -- on hearing your Story may then want to weave it into their Stories. Now, what I see Wolfram doing is just making The Ultimate Library, one with enough AI to obviate lots of library browsing. But there's still no Story. org mode, however, has the rudiments of being able to finally tell Stories. Ein schoenes Protokoll! Amen! Lawrence Bottorff North Shore MN
[O] [PATCH] Source block fontification handling indentation
I make a change to function which copies contents of source code block to temporary buffer, applies fontification through the means of relevant major mode and transcribes text-properties back to org-buffer so that they are applied on top of code in affected source code block. Primary reason for this change is to fix the problem which I describe as follows: This function is not 100% compatible with a org-edit-src facility, which provides an option to have indentation added to the code inside the block after using command `org-edit-src-code' to edit it. This command also handles removal of indentation upon insertion of the code in temporary buffer where editing of the code will in relevant major-mode. This behavior indicates presence of indentation to be irrelevant outside the context of org-buffer, and in some instances (e.g. diff-mode) presence of indentation may render the code incompatible with semantics of it's language. Here's a couple of points which guided me to implement the change in this particular way: Section of code which mirrors the fontification from temporary to org-buffer updates variable `start' for each fontified segment, allowing it to remain relevant as a value which, when added to the position of point in temporary buffer, will find position of that point mirrored upon source block in org-buffer. This variable follows same principle if `org-src-preserve-indentation' option is enabled. Segments of text fontified to be spanning several lines are broken in fashion that forces section to end at the newline and continue after the indentation. This approach prevents indentation characters to be colored in chaotic fashion when changes in background are used for fontification, e.g. diff-mode with standard emacs theme. --- lisp/org-src.el | 9 + 1 file changed, 9 insertions(+) diff --git a/lisp/org-src.el b/lisp/org-src.el index d1f6879..dd3f3c2 100644 --- a/lisp/org-src.el +++ b/lisp/org-src.el @@ -922,10 +922,19 @@ fontification of code blocks see `org-src-fontify-block' and (concat org-src-fontification: (symbol-name lang-mode))) (delete-region (point-min) (point-max)) (insert string ) ;; so there's a final property change + (unless org-src-preserve-indentation (org-do-remove-indentation)) (unless (eq major-mode lang-mode) (funcall lang-mode)) (font-lock-fontify-buffer) (setq pos (point-min)) (while (setq next (next-single-property-change pos 'face)) + (unless org-src-preserve-indentation + (let ((eol (save-excursion (goto-char pos) + (line-end-position + (with-current-buffer org-buffer + (goto-char (+ start (1- pos))) + (setq start (- (line-end-position) (1- eol + (when ( eol next) + (setq next (1+ eol) (put-text-property (+ start (1- pos)) (1- (+ start next)) 'face (get-text-property pos 'face) org-buffer)
[O] orgtbl export linbread source code possible?
Dear List, I have an org-radio table which I would like to export to latex. The table header looks like this: #+ORGTBL: SEND sec-6 orgtbl-to-latex :skip 3 :splice t :lend \\cmidrule(lr){4-4}\\\cmidrule(lr){5-5}\\\cmidrule(lr){6-6}\\\cmidrule(lr){7-7} :hline %% as you can see there are a lot of \cmidrules in the code which are exported to one long latex line like this: \cmidrule(lr){4-5}\cmidrule(lr){5-5}\cmidrule(lr){6-6}\cmidrule(lr){7-7}... is it possible to add a linbreak after two or three \cmidrule commands so that it looks like this [tabular code] \\ \cmidrule(lr){4-5}\cmidrule(lr){5-5} [linebreak] \cmidrule(lr){6-6}\cmidrule(lr){7-7} [linebreak] ... Thanks in advance! Regards Thorsten Grothe
Re: [O] Blank page in LaTeX/PDF output
On 2/28/14, 1:19 PM, Peter Davis wrote: On 2/28/14, 12:37 PM, John Hendy wrote: You can also try: #+latex: \scriptsize % or \small, \footnotesize, or \tiny before your table to make it smaller as well if you think that's contributing. These seem like things to try after the content is completely locked down. Any edits after this could conceivably re-introduce the problem, requiring further tweaks. I just found that adding or removing num:nil from the #+options: changes whether or not the blank page appears. I would have thought header numbering only affects horizontal line length (None of the headers wrap to more than one line), but apparently I'm wrong. Setting toc:nil got rid of the blank page, but removing num:nil re-introduced it. Weird. Thanks! -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
[O] Incorrect hexification in URLs in LaTeX Export
I've tried this with Org 7.9.3 and 8.2.5h to the same result: -- #+TITLE: Test * One Here is a [[http://google.com/search?q=orgmode][link]] -- Exporting to HTML doesn't transform the link but exporting to LaTeX results in the (non-working) http://google.com/search?%3Dorgmode Is there a reason for this behavior and, if so, a way to work around it? RFC 3986 2.2 explicitly says URLs may include `=` and =url-encode-url= doesn't change the link in question. I've played with org-url-hexify-p and read past ML discussions, but they seem primarily concerned with characters which should not appear in URIs. Thanks, Michael
Re: [O] Incorrect hexification in URLs in LaTeX Export
R. Michael Weylandt michael.weyla...@gmail.com michael.weyla...@gmail.com writes: I've tried this with Org 7.9.3 and 8.2.5h to the same result: -- #+TITLE: Test * One Here is a [[http://google.com/search?q=orgmode][link]] -- Exporting to HTML doesn't transform the link but exporting to LaTeX results in the (non-working) http://google.com/search?%3Dorgmode Is there a reason for this behavior and, if so, a way to work around it? RFC 3986 2.2 explicitly says URLs may include `=` and =url-encode-url= doesn't change the link in question. I've played with org-url-hexify-p and read past ML discussions, but they seem primarily concerned with characters which should not appear in URIs. Thanks, Michael Hi Michael, I have recently been bitten by this as well. Based on a block post [fn:1], I now have this in my .emacs as a work-around: --8---cut here---start-8--- (defun al-link-filter (contents backend info) (let ((contents (replace-regexp-in-string #\\+name:.*$ contents)));; old and unrelated (replace-regexp-in-string %3D = contents))) (add-to-list 'org-export-filter-final-output-functions 'al-link-filter) --8---cut here---end---8--- It seems to work for me. Regards, Andreas Footnotes: [fn:1] http://irreal.org/blog/?p=2175
[O] (setq org-icalendar-store-UID t) not working with --batch
Hi, Total newbie here I want to export my agenda stuff to ical and potentially sync with google. I have this in my .emacs: ;; found on the net to include todo itmes with iCalendar export (setq org-icalendar-include-todo t) (setq org-icalendar-store-UID t) ;;http://lists.gnu.org/archive/html/emacs-orgmode/2009-07/msg00839.html (setq org-icalendar-use-scheduled '(todo-start event-if-todo event-if-not-todo)) (setq org-icalendar-use-deadline '(todo-due event-if-todo event-if-not-todo)) (setq org-combined-agenda-icalendar-file ~/combined.ics) When I run C-c C-a I to export all my agenda files, all works fine. I get my todo's also as events, and the UID is added as a property to the .org file. But when I run: emacs -l ~/.emacs -eval '(org-export-icalendar-all-agenda-files)' --batch It doesn't store the UID. I tried my very first attempt at something lisp, and did this: (defun org-mycal-export () (interactive) (setq org-icalendar-include-todo t) (setq org-icalendar-store-UID t) (org-export-icalendar-all-agenda-files) ) With the same result. If I run M-x org-mycal-export, I get the UID entered to my agenda file. But if I run emacs --batch -l ~/.emacs -eval '(org-mycal-export)', it doesn't insert the UID. Any suggestions? Best, Boyd
Re: [O] Blank page in LaTeX/PDF output
Peter Davis p...@pfdstudio.com writes: On 2/28/14, 12:03 PM, John Hendy wrote: On Fri, Feb 28, 2014 at 10:59 AM, Peter Davis p...@pfdstudio.com wrote: I'm writing a short paper containing tables, images, etc., but I'm getting a blank page in the PDF output. That is, it's completely blank *except* for the page number. Any suggestions on how to trouble-shoot or fix this? Probably related to image/table float placement. I've had an image on one page trigger a blank page after it, and if your options or the size of the image on the next place won't fit on a single page, it might be skipping that blank one entirely and moving along to the next. Is it possible to share the document, or could you try to copy that .org file, remove the contents of p. 1-4 and 8-9, and then share the .org file that generates pages 5, 6 (blank), and 7? Thanks, John. I figured it has something to do with LaTeX float behavior, but I'm trying to understand how to control it through org-mode. I'm attaching a small sample that reproduces the problem. Thanks! -pd John is correct, I think, although latex's behavior in leaving an empty page does not make much sense to me. Nevertheless, when I reduce the height of the last image to less than about 7.85 inches, the empty page goes away. AFAICT, num: and toc: settings do not affect this behavior. -- Nick
[O] Bug -- Tag with space
I see that Org-mode places tags on the same line as the task header. It also puts whitespace between the header and the tags so that the tags line up on the right side of the screen. I think I've found that org-mode doesn't line up the tags on the right side of the screen *IF* one of the tags has a space in it. Anyone else noticed that? -- David Masterson
[O] [BUG] in org-element-link-parser (lilypond file does not export to latex)
Hi List, when trying to export this example lilypond file https://raw.github.com/mjago/ob-lilypond/master/examples/basic-mode/pdf-example/pdf-example.org to LaTeX (C-c C-e l L) I hit the following error: ,-- | Wrong type argument: integer-or-marker-p, nil `-- It turns out that org-element tries to parse a link but ,-- | (defun org-element-link-parser () | Parse link at point. `-- but none of the 4 Link types is matched and finally in this expression ,- | ;; In any case, deduce end point after trailing white space from | ;; LINK-END variable. | (setq post-blank (progn (goto-char link-end) (skip-chars-forward \t)) `- link-end is nil but goto-char requires an integer-or-marker-p. Not sure if there is wrong syntax in the file or if the parser is confused by (correct) lilypond syntax. PS Org-mode version 8.2.5g (release_8.2.5g-564-ge45d13) -- cheers, Thorsten
[O] org-export: how to copy the parsed tree?
Hi, Is there an easy way to copy org sub-tree in :filter-parse-tree? The structure of the parsed tree is somewhat complicated with recursive references to parents in multiple places. So, copy-tree infloops. Thanks, Vitalie
Re: [O] Blank page in LaTeX/PDF output
On 2/28/14, 7:38 PM, Nick Dokos wrote: John is correct, I think, although latex's behavior in leaving an empty page does not make much sense to me. Nevertheless, when I reduce the height of the last image to less than about 7.85 inches, the empty page goes away. AFAICT, num: and toc: settings do not affect this behavior. Thanks, Nick, but I have confirmed that adding num:nil eliminates the blank page, and removing that re-introduces the blank page. No other changes to the .org file were made. I was wondering if LaTeX has some predisposition to handle numbered section headings differently from unnumbered ones as far as pagination. I'll try to make a simple, clean sample that reproduces it, but it's going to take some trial-and-error testing. -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
Re: [O] Blank page in LaTeX/PDF output
On Feb 28, 2014 7:21 PM, Peter Davis p...@pfdstudio.com wrote: On 2/28/14, 7:38 PM, Nick Dokos wrote: John is correct, I think, although latex's behavior in leaving an empty page does not make much sense to me. Nevertheless, when I reduce the height of the last image to less than about 7.85 inches, the empty page goes away. AFAICT, num: and toc: settings do not affect this behavior. Thanks, Nick, but I have confirmed that adding num:nil eliminates the blank page, and removing that re-introduces the blank page. No other changes to the .org file were made. I was wondering if LaTeX has some predisposition to handle numbered section headings differently from unnumbered ones as far as pagination. I'll try to make a simple, clean sample that reproduces it, but it's going to take some trial-and-error testing. If you could include a minimal Emacs config as well, that would help others reproduce easier to help figure out what's going on. John -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
Re: [O] Blank page in LaTeX/PDF output
Attached is a simple file that demonstrates this. As is, it does not leave a blank page. But if you remove the num:nil option from the second line of this file, you do get a blank page. You (probably) need koma-article class for this. (I didn't install anything. It just worked for me.) You don't need the images. -pd On 2/28/14, 8:21 PM, Peter Davis wrote: On 2/28/14, 7:38 PM, Nick Dokos wrote: John is correct, I think, although latex's behavior in leaving an empty page does not make much sense to me. Nevertheless, when I reduce the height of the last image to less than about 7.85 inches, the empty page goes away. AFAICT, num: and toc: settings do not affect this behavior. Thanks, Nick, but I have confirmed that adding num:nil eliminates the blank page, and removing that re-introduces the blank page. No other changes to the .org file were made. I was wondering if LaTeX has some predisposition to handle numbered section headings differently from unnumbered ones as far as pagination. I'll try to make a simple, clean sample that reproduces it, but it's going to take some trial-and-error testing. -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com #+STARTUP: showeverything logdone #+options: num:nil toc:nil #+LaTeX_CLASS: koma-article #+LATEX_HEADER: \setlength{\parskip}{2ex plus 4pt minus 2pt} #+LATEX_HEADER: \setlength{\parindent}{0pt} #+LATEX_HEADER: \renewcommand{\baselinestretch}{1.0} #+LATEX_HEADER: \setlength{\topsep}{-10pt} #+LATEX_HEADER: \setlength{\partopsep}{0pt} #+LaTeX_CLASS_OPTIONS: [article,letterpaper,times,12pt,listings-bw,microtype] #+author: Peter Davis (pdavis) #+title: My Title #+ATTR_LATEX: :height 6in [[/Users/peterdavis/force_a_page_break.png]] #+ATTR_LATEX: :height 6cm [[/Users/peterdavis/AS3_2.png]] /NOTE:/ User actio]ns are indicated in lowercase letters. Software responses are indicated in UPPERCASE LETTERS. * Lexical Analysis The following table contains the word blah a lot. #+CAPTION: #+ATTR_LATEX: :align lp{2.75in}p{2.75in} |+--+-| | *blah* | *blah blah blah* | *blah blah blah blah* | |+--+-| | blah | blah blah blah | blah blah blah blah | | blah | blah blah blah | blah blah blah blah | | blah | blah blah blah | blah blah blah blah | | blah | blah blah blah | blah blah blah blah | | blah | blah blah blah | blah blah blah blah | | blah | blah blah blah | blah blah blah blah | | blah | blah blah blah | blah blah blah blah | | blah | blah blah blah | blah blah blah blah | |+--+-| * Storyboard #+ATTR_LATEX: :height 8.5in [[/Users/peterdavis/tall_image.png]]
[O] Change Todo colors
I'd like to change the color of Next to Red and Started to brown. At the moment, todo/ next and started all showing as red. Here is my .emacs snippet. (setq org-todo-keywords '((sequence TODO(t) Next(n) Started(s) | DONE(d!)) (sequence | CANCELED(c (setq org-todo-keyword-faces '((CANCELED . (:foreground blue :weight bold
Re: [O] Wolfram Language versus org mode literate
Great post; agreed. On Fri, Feb 28, 2014 at 11:52 AM, Lawrence Bottorff borg...@gmail.comwrote: Back when I was younger (half an hour ago?) I would have been wowed by this: http://youtu.be/_P9HqHVPeik which is Stephen Wolfram's intro into his new Wolfram language. But what puts me (way) off is -- once again -- I'm supposedly doing all these great things, but not with any sort of accounting for what's being done. Kein Protokoll. No Story. The nature of functional programming is to build, Russian doll-style, functions that use functions that use functions etc. But without something like a literate style, your efforts are quickly lost in the details. You do stuff -- and unless you have a phenomenal memory, you've simply dug a nice, deep tunnel that is, at the same time, collapsing behind you. *You* may know what you've done, but how to make others aware and get them involved? All they see is some collapsed tunnel with a sales pitch about how you should go re-dig that very same tunnel. Typically, with software projects you have hierarchical teams that plan what the project is and what it will do and who will do what. Again, it's just the tunneling with a bit less collapsing going on behind the actual shoveling. So far, software is all about drilling into the problem, writing a bunch of code, then flogging a group of users on how to use it. No Story. Just tunneling, with varying degrees of tunnel passageway, depending on how much effort is put into shoveling by coders and their users. But this is a hopeless model that cannot scale. How many billions of lines of code are out there . . . basically lost to everyone -- even the creator? Libraries, modules? Sure, and yet the whole effort at Wolfram seems only to be taking librarian duties to the next level. But still, where's The Story? Coding, solving problems needs a Story to go along with it. I don't think computing will advance until The Story is woven into the actual coding. Yes, functional is probably a step up from OO, (Smalltalkers don't agree), but it still doesn't tell a Story. It's just more powerful tunneling equipment. Humanity is The Big Story, which, in turn, is broken down into very many sub-Stories. We're Story-oriented. Code so far is not. Code is like networks of tunnels where, for all intents and purposes, most of the tunneling has already collapsed, the tunnel paths mostly unknowable. What makes me so excited about org mode is that it's the first time I've seen literate programming move a tick up into the realm of actually creating a tellable Story. At some point in the future, you will tell a Story. The Story may be how you created an inventory system, or tracked moose in the wild. Others -- human or machine -- on hearing your Story may then want to weave it into their Stories. Now, what I see Wolfram doing is just making The Ultimate Library, one with enough AI to obviate lots of library browsing. But there's still no Story. org mode, however, has the rudiments of being able to finally tell Stories. Ein schoenes Protokoll! Amen! Lawrence Bottorff North Shore MN -- Grant Rettke | ACM, AMA, COG, IEEE g...@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson
[O] Org indent mode
I'm trying to setup Org indent mode for cleaner view but the preceding starts show up dimmed in grey color. How do I make them totally invisible? I've put this at the top of the .emacs: (setq org-startup-indented t) (setq org-indent-mode t) and running emacs version 24.3.1 and org version 8.2.5 from the command-line.
Re: [O] Org indent mode
You may need to customize the org-hide face. See the section Hiding Leading Stars at http://orgmode.org/manual/Clean-view.html Josiah On Fri, Feb 28, 2014 at 6:27 PM, Chris Henderson henders...@gmail.comwrote: I'm trying to setup Org indent mode for cleaner view but the preceding starts show up dimmed in grey color. How do I make them totally invisible? I've put this at the top of the .emacs: (setq org-startup-indented t) (setq org-indent-mode t) and running emacs version 24.3.1 and org version 8.2.5 from the command-line.
Re: [O] Org indent mode
I've added (setq org-hide-leading-stars t) but still getting the leading stars. Thanks. On Sat, Mar 1, 2014 at 1:45 PM, Josiah Schwab jsch...@gmail.com wrote: You may need to customize the org-hide face. See the section Hiding Leading Stars at http://orgmode.org/manual/Clean-view.html Josiah On Fri, Feb 28, 2014 at 6:27 PM, Chris Henderson henders...@gmail.comwrote: I'm trying to setup Org indent mode for cleaner view but the preceding starts show up dimmed in grey color. How do I make them totally invisible? I've put this at the top of the .emacs: (setq org-startup-indented t) (setq org-indent-mode t) and running emacs version 24.3.1 and org version 8.2.5 from the command-line.
Re: [O] Blank page in LaTeX/PDF output
Peter Davis p...@pfdstudio.com writes: Attached is a simple file that demonstrates this. As is, it does not leave a blank page. But if you remove the num:nil option from the second line of this file, you do get a blank page. Not for me: in both cases, I get a blank page 3. You (probably) need koma-article class for this. (I didn't install anything. It just worked for me.) You don't need the images. You need *some* images in order to compile it. I just replaced all the image links with [[./foo.png]] where foo.png is the emacs logo. And my koma-article is a copy of the article class, except the document class is scrartcl instead of article. -pd On 2/28/14, 8:21 PM, Peter Davis wrote: On 2/28/14, 7:38 PM, Nick Dokos wrote: John is correct, I think, although latex's behavior in leaving an empty page does not make much sense to me. Nevertheless, when I reduce the height of the last image to less than about 7.85 inches, the empty page goes away. AFAICT, num: and toc: settings do not affect this behavior. Thanks, Nick, but I have confirmed that adding num:nil eliminates the blank page, and removing that re-introduces the blank page. No other changes to the .org file were made. I was wondering if LaTeX has some predisposition to handle numbered section headings differently from unnumbered ones as far as pagination. I'll try to make a simple, clean sample that reproduces it, but it's going to take some trial-and-error testing. -pd -- Nick
Re: [O] Blank page in LaTeX/PDF output
On 2/28/14, 10:32 PM, Nick Dokos wrote: Peter Davis p...@pfdstudio.com writes: Attached is a simple file that demonstrates this. As is, it does not leave a blank page. But if you remove the num:nil option from the second line of this file, you do get a blank page. Not for me: in both cases, I get a blank page 3. Interesting. I wonder what's different in our setups. You (probably) need koma-article class for this. (I didn't install anything. It just worked for me.) You don't need the images. You need *some* images in order to compile it. I just replaced all the image links with [[./foo.png]] I did not need any images. In fact, the version I posted I had just tested, and the image links in there are completely bogus. I just get empty boxes of the height I specified. where foo.png is the emacs logo. And my koma-article is a copy of the article class, except the document class is scrartcl instead of article. I don't know where that came from. I can post my copy of koma-article, if that would help. -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
Re: [O] Org indent mode
But did you try customizing the org-hide face? Josiah On Feb 28, 2014 7:14 PM, Chris Henderson henders...@gmail.com wrote: I've added (setq org-hide-leading-stars t) but still getting the leading stars. Thanks. On Sat, Mar 1, 2014 at 1:45 PM, Josiah Schwab jsch...@gmail.com wrote: You may need to customize the org-hide face. See the section Hiding Leading Stars at http://orgmode.org/manual/Clean-view.html Josiah On Fri, Feb 28, 2014 at 6:27 PM, Chris Henderson henders...@gmail.comwrote: I'm trying to setup Org indent mode for cleaner view but the preceding starts show up dimmed in grey color. How do I make them totally invisible? I've put this at the top of the .emacs: (setq org-startup-indented t) (setq org-indent-mode t) and running emacs version 24.3.1 and org version 8.2.5 from the command-line.
Re: [O] Org indent mode
Hi, I'm not sure how to customize this. I have tried different variations of #+STARTUP: hidestars #+STARTUP: odd #+STARTUP: oddeven but they don't seem to be working. Maybe I'm doing something wrong. On Sat, Mar 1, 2014 at 3:10 PM, Josiah Schwab jsch...@gmail.com wrote: But did you try customizing the org-hide face? Josiah On Feb 28, 2014 7:14 PM, Chris Henderson henders...@gmail.com wrote: I've added (setq org-hide-leading-stars t) but still getting the leading stars. Thanks. On Sat, Mar 1, 2014 at 1:45 PM, Josiah Schwab jsch...@gmail.com wrote: You may need to customize the org-hide face. See the section Hiding Leading Stars at http://orgmode.org/manual/Clean-view.html Josiah On Fri, Feb 28, 2014 at 6:27 PM, Chris Henderson henders...@gmail.comwrote: I'm trying to setup Org indent mode for cleaner view but the preceding starts show up dimmed in grey color. How do I make them totally invisible? I've put this at the top of the .emacs: (setq org-startup-indented t) (setq org-indent-mode t) and running emacs version 24.3.1 and org version 8.2.5 from the command-line.
Re: [O] Org indent mode
Yes. We are clearly talking past each other. You need to set the org-hide text style (or face) so that it is the same color as your background. Then the stars will appear invisible. This is explained in the section of the docs I linked to: The leading stars are not truly replaced by whitespace, they are only fontified with the face org-hide that uses the background color as font color. If you are not using either white or black background, you may have to customize this face to get the wanted effect. Here's one way you might do that. Do M-x apropos and then search for org-hide. Click org-hide and then click customize this face. Then set the foreground color to be the same as your background color. Hope that helps. Josiah On Fri, Feb 28, 2014 at 8:27 PM, Chris Henderson henders...@gmail.comwrote: Hi, I'm not sure how to customize this. I have tried different variations of #+STARTUP: hidestars #+STARTUP: odd #+STARTUP: oddeven but they don't seem to be working. Maybe I'm doing something wrong. On Sat, Mar 1, 2014 at 3:10 PM, Josiah Schwab jsch...@gmail.com wrote: But did you try customizing the org-hide face? Josiah On Feb 28, 2014 7:14 PM, Chris Henderson henders...@gmail.com wrote: I've added (setq org-hide-leading-stars t) but still getting the leading stars. Thanks. On Sat, Mar 1, 2014 at 1:45 PM, Josiah Schwab jsch...@gmail.com wrote: You may need to customize the org-hide face. See the section Hiding Leading Stars at http://orgmode.org/manual/Clean-view.html Josiah On Fri, Feb 28, 2014 at 6:27 PM, Chris Henderson henders...@gmail.comwrote: I'm trying to setup Org indent mode for cleaner view but the preceding starts show up dimmed in grey color. How do I make them totally invisible? I've put this at the top of the .emacs: (setq org-startup-indented t) (setq org-indent-mode t) and running emacs version 24.3.1 and org version 8.2.5 from the command-line.
[O] binding org-id-goto to a key
hi all im trying to bind some headers to specific keys using the org-id-goto command and so far have this: (global-set-key (kbd f9 l) 'org-id-goto 8460d499-ea32-4693-a8d4-0d08b00ba3f3) but im aware that this code isnt wrong. can anyone guide me in the right direction? best Z
Re: [O] Blank page in LaTeX/PDF output
On Fri, Feb 28, 2014 at 9:39 PM, Peter Davis p...@pfdstudio.com wrote: On 2/28/14, 10:32 PM, Nick Dokos wrote: Peter Davis p...@pfdstudio.com writes: Attached is a simple file that demonstrates this. As is, it does not leave a blank page. But if you remove the num:nil option from the second line of this file, you do get a blank page. Not for me: in both cases, I get a blank page 3. Interesting. I wonder what's different in our setups. You (probably) need koma-article class for this. (I didn't install anything. It just worked for me.) You don't need the images. You need *some* images in order to compile it. I just replaced all the image links with [[./foo.png]] I did not need any images. In fact, the version I posted I had just tested, and the image links in there are completely bogus. I just get empty boxes of the height I specified. where foo.png is the emacs logo. And my koma-article is a copy of the article class, except the document class is scrartcl instead of article. I don't know where that came from. I can post my copy of koma-article, if that would help. We really need a minimal config, in my opinion. I just tried fiddling again and am having no luck after installing koma-script from CTAN (or is that even something I need?) and adding =(require 'ox-koma-letter)= to my emacs config (again, is that even needed?). I don't use koma, so I'm lost as to how to get anything usable from your document in order to troubleshoot. John -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
Re: [O] Change Todo colors
You should use custom-set-faces instead of setq. Chris Henderson henders...@gmail.com writes: I'd like to change the color of Next to Red and Started to brown. At the moment, todo/ next and started all showing as red. Here is my .emacs snippet. (setq org-todo-keywords '((sequence TODO(t) Next(n) Started(s) | DONE(d!)) (sequence | CANCELED(c (setq org-todo-keyword-faces '((CANCELED . (:foreground blue :weight bold
Re: [O] Bug -- Tag with space
Hi David, David Masterson dsmaster...@gmail.com writes: I see that Org-mode places tags on the same line as the task header. It also puts whitespace between the header and the tags so that the tags line up on the right side of the screen. I think I've found that org-mode doesn't line up the tags on the right side of the screen *IF* one of the tags has a space in it. Anyone else noticed that? Spaces are not allowed in tags, see the manual: Tags are normal words containing letters, numbers, ‘_’, and ‘@’. HTH, -- Bastien
Re: [O] binding org-id-goto to a key
Hi Xebar, Xebar Saram zelt...@gmail.com writes: im trying to bind some headers to specific keys using the org-id-goto command and so far have this: (global-set-key (kbd f9 l) 'org-id-goto 8460d499-ea32-4693-a8d4-0d08b00ba3f3) but im aware that this code isnt wrong. can anyone guide me in the right direction? (global-set-key (kbd C-f9) (lambda () (interactive) (org-id-goto 8460d499-ea32-4693-a8d4-0d08b00ba3f3))) For (kbd f9 l) to work, you need to have f9 to be a prefix key, so I changed it to (kbd C-f9) for my own test. (lambda () ...) is an anonymous function. (interactive) makes the function an interactive command, which is needed for the form to be bound to the key. HTH, -- Bastien
Re: [O] MobileOrg
Hi David, David Masterson dsmaster...@gmail.com writes: Are the maintainers of MobileOrg watching this mailing list? I'm not sure, but you can contact them/him here: https://github.com/mobileorg/mobileorg PS: I'm not using MobileOrg so I can't really help more, sorry. -- Bastien
Re: [O] Graph not hierarchical?
Hi Lawrence, Lawrence Bottorff borg...@gmail.com writes: Is this ID spoken of? http://orgmode.org/worg/org-api/org-id-api.html Yes, but this API documentation is old and should be removed. So far it's just a field in Property, correct? Correct. -- Bastien