Re: [O] allow live execution of code snippets in html export

2016-12-14 Thread Matt Price
On Wed, Dec 14, 2016 at 5:36 AM, Bastien Guerry wrote: > That said, I think we can take this opportunity to slightly improve > how ox-html handles source code: > > - why only and not ? > Would we need a switch to permit the old syntax for people with complex setups who don't want to change? >

Re: [O] [PATCH] allow klipse export in html

2016-12-15 Thread Matt Price
On Thu, Dec 15, 2016 at 8:39 AM, Nicolas Goaziou wrote: > Hello, > > Matt Price writes: > > > I'm such a slow coder that this is all I got to in my free moments > > today:patch for defcustoms that inserts the necessary code into a src > > block. further re

Re: [O] [PATCH] allow klipse export in html

2016-12-15 Thread Matt Price
On Thu, Dec 15, 2016 at 9:50 AM, Kaushal Modi wrote: > On Thu, Dec 15, 2016, 8:14 PM Matt Price wrote: > >> >> I took a look at org.texi but my understanding of texi syntax is very >> poor and I don't think I have time to learn today. >> > > Why not wri

Re: [O] [PATCH] allow klipse export in html

2016-12-15 Thread Matt Price
(actually attaching the patch) (seemed silly to have a whole bunch of tiny patches but can resubmit as a series if that's preferred). On Thu, Dec 15, 2016 at 9:42 AM, Matt Price wrote: > > > On Thu, Dec 15, 2016 at 8:39 AM, Nicolas Goaziou > wrote: > >> Hello

Re: [O] allow live execution of code snippets in html export

2016-12-15 Thread Matt Price
On Thu, Dec 15, 2016 at 5:07 AM, Bastien wrote: > Hi Matt, > > Matt Price writes: > > > Would we need a switch to permit the old syntax for people with > > complex setups who don't want to change? > > Yes. We need to be more careful on being backward compatib

Re: [O] transcluding some org-elements in multiple places

2016-12-15 Thread Matt Price
Replying only to say that I think both the name and the idea are brilliant.

Re: [O] [PATCH] allow klipse export in html

2016-12-16 Thread Matt Price
On Fri, Dec 16, 2016 at 12:34 AM, Yehonathan Sharvit wrote: > > > On Thu, Dec 15, 2016 at 5:35 PM, Bastien Guerry wrote: > >> Hi Matt, >> >> thanks for the new patch! >> >> Before applying it (and working further on it), I suggest we wait for >> Yehonathan's feedback on making klipse.js librejs-

Re: [O] transcluding some org-elements in multiple places

2016-12-16 Thread Matt Price
On Thu, Dec 15, 2016 at 7:26 PM, Matt Price wrote: > Replying only to say that I think both the name and the idea are brilliant. > > In fact am in the middle of a very hectic time trying to write stuff up and if I had transclusion available right now it would be BRILLIANT. Instead res

[O] "cannot Revert nonexistent file" on odt export

2017-01-02 Thread Matt Price
I tried and then reverted a very simple change ot ox-odt.el -- I wanted to export a unicode symbol instead of [ ] for an empty checkbox. After this, odt export fails mysteriously with the following: Wrote /tmp/odt-3348W1J/meta.xml Using vacuous schema OpenDocument export failed: Cann

Re: [O] "cannot Revert nonexistent file" on odt export

2017-01-02 Thread Matt Price
Please ignore the noise. I had added the odt template to the file to be exported; it included the following line: #+ODT_STYLES_FILE: Which I guess overrode my setting for odt_styles_dir. solved. On Mon, Jan 2, 2017 at 8:59 PM, Matt Price wrote: > I tried and then reverted a very sim

Re: [O] transcluding some org-elements in multiple places

2017-01-05 Thread Matt Price
On Wed, Dec 14, 2016 at 11:55 AM, John Kitchin wrote: > > David Talmage writes: > > > On Fri, Dec 9, 2016 at 11:28 AM, Eric S Fraga wrote: > > > >> On Friday, 9 Dec 2016 at 15:29, John Kitchin wrote: > >> > Hi all, > >> > > >> > I have an idea for how I could transclude "copies" or links to > >

Re: [O] transcluding some org-elements in multiple places

2017-01-05 Thread Matt Price
On Thu, Jan 5, 2017 at 7:30 PM, John Kitchin wrote: > I didn't test it with other files, and it does not seem to work with > them. For some reason (org-open-link-from-string path) does not seem to > actually open the file at path. I am not sure why, since the follow code > works just fine. > > He

[O] org-ref: citation types (insert full citation); bib style; bib scope

2017-01-06 Thread Matt Price
After several years, I'm finally trying to move to bibtex from zotero, partly because org-zotxt has stopped working for me (both link insertion and html export seem at least temporarily broken). The UI for org-ref is pretty fantastic, and I love it. I'm having trouble getting the behaviour I want

Re: [O] transcluding some org-elements in multiple places

2017-01-06 Thread Matt Price
the link with the content it points to. > > John > > On Thu, Jan 5, 2017 at 9:17 PM, Matt Price wrote: > >> >> Would be cool to somehow include in export. But that's a little too hard >> for me to think about. This is already pretty good. Thank you! >> >> > >

Re: [O] org-ref: citation types (insert full citation); bib style; bib scope

2017-01-06 Thread Matt Price
On Fri, Jan 6, 2017 at 10:26 AM, John Kitchin wrote: > > Matt Price writes: > > > After several years, I'm finally trying to move to bibtex from zotero, > > partly because org-zotxt has stopped working for me (both link insertion > > and html export seem at least

Re: [O] org-ref: citation types (insert full citation); bib style; bib scope

2017-01-06 Thread Matt Price
Wow, this is pretty awesome, thank you. A couple of notes inline On Fri, Jan 6, 2017 at 3:42 PM, John Kitchin wrote: > > New org-ref update ;) > > I overhauled the formatted citation support in org-ref today. > > Now, you can do the following things: > > 1. from the C-c ] interface (helm-bibtex,

[O] publishing subtrees

2017-01-06 Thread Matt Price
In my course repositories, I have all my lecture notes in one file, and all my assignments in another. So they have the form * Lecture 1 ** Slide 1 ** Slide 2 * Lecture 2 ... * Assignment 1 ** Description ** Rubric * Assignment 2... I'd like to have publishing functions that, say, export all fi

Re: [O] publishing subtrees

2017-01-09 Thread Matt Price
On Sun, Jan 8, 2017 at 9:48 PM, Joon Ro wrote: > > In my course repositories, I have all my lecture notes in one file, and > all my assignments in another. So they have the form > > > > * Lecture 1 > > ** Slide 1 > > ** Slide 2 > > * Lecture 2 ... > > > > * Assignment 1 > > ** Description > > **

[O] org-map-entries with 'region-start-level in a buffer with header text

2017-01-10 Thread Matt Price
In a buffer with text before the first heading, I get an error using org-map-entries in this function: (defun org-export-all (backend) "Export all subtrees that are *not* tagged with :noexport: to separate files. Note that subtrees must have the :EXPORT_FILE_NAME: property set to a unique value

[O] strange results with org-map-entries

2017-01-10 Thread Matt Price
On Tue, Jan 10, 2017 at 9:47 AM, Matt Price wrote: > > In a buffer with text before the first heading, I get an error using > org-map-entries in this function: > > (defun org-export-all (backend) > "Export all subtrees that are *not* tagged with :noexport: to > sep

Re: [O] "COMMENT" keyword not properly documented in the manual

2017-01-10 Thread Matt Price
On Sun, Jan 8, 2017 at 6:51 PM, Nicolas Goaziou wrote: > Hello, > > alain.coch...@unistra.fr writes: > > > Unaware that "COMMENT" was a specific org string, > > It is special only at the beginning of a headline (but past TODO keyword > and priority cookie, if any). > > > I had used it at the begi

Re: [O] strange results with org-map-entries

2017-01-10 Thread Matt Price
On Tue, Jan 10, 2017 at 6:58 PM, Nicolas Goaziou wrote: > Hello, > > Matt Price writes: > > > What's going on here? Can anyone else reproduce this? I'm seeing it on > org > > 9.0.3 up to date as of today, emacs git from 2017-01-04. > > You mark a regio

Re: [O] strange results with org-map-entries

2017-01-11 Thread Matt Price
On Tue, Jan 10, 2017 at 7:34 PM, Matt Price wrote: > > > On Tue, Jan 10, 2017 at 6:58 PM, Nicolas Goaziou > wrote: > >> Hello, >> >> Matt Price writes: >> >> > What's going on here? Can anyone else reproduce this? I'm seeing it on >

[O] [OT] buffer or frame locale color-theme settings?

2017-01-11 Thread Matt Price
Shoot, I've just updated my emacs and and I guess I can no longer set frame-local color themes, a it says in NEWS: ** Some obsolete functions, variables, and faces have been removed: *** make-variable-frame-local. Variables cannot be frame-local any more. Does anyone else rely on multiple color

[O] org-get-heading and COMMENT

2017-01-11 Thread Matt Price
I see that (org-get-heading t t) executed on a heading like: * COMMENT Heading Title returns: COMMENT Heading Title Should there be a third switch, something like NO-COMMENT? Or should I maybe be using the org-element API instead? I'm just trying to generate custom id's from headline text + a

[O] org-mime: improve handling of cc & bcc

2017-01-11 Thread Matt Price
I have been having some trouble with org-mime & mu4e (iv cc & bcc are empty, then buffer creation fails), and this patch seems to have fixed it. Not 100% sure that this is really the origin of the problem but it fixed an issue for me. diff --git a/contrib/lisp/org-mime.el b/contrib/lisp/org-mime.el

Re: [O] org-mime: improve handling of cc & bcc

2017-01-12 Thread Matt Price
u. >> >> Could you send it again using git format-patch and with a proper commit >> message? >> >> Regards, >> >> -- >> Nicolas Goaziou >> >> -- > > Kaushal Modi > From ca4dfa5e5a83fe7243affbf7e34a1435cbc5b00a Mon Sep 17 00:00

Re: [O] org-get-heading and COMMENT

2017-01-17 Thread Matt Price
Sorry for the delay. I am very slow with regexps! On Sat, Jan 14, 2017 at 6:04 AM, Nicolas Goaziou wrote: > Hello, > > Matt Price writes: > > > I see that > > > > (org-get-heading t t) > > > > executed on a heading like: > > > > * COMMENT

Re: [O] org-get-heading and COMMENT

2017-01-18 Thread Matt Price
:-) I look forward to seeing the improved version -- mine felt very cumbersome! On Wed, Jan 18, 2017 at 6:31 PM, Nicolas Goaziou wrote: > Hello, > > Matt Price writes: > > > Sorry for the delay. I am very slow with regexps! > > No problem. I refactored your patch and

[O] extra paragraph in image export?

2017-01-21 Thread Matt Price
with org-html-html5-fancy is non-nil, images are exported with something like this code: https://imgs.xkcd.com/comics/proof_2x.png"; alt="proof_2x.png" class="fragment (appear) visible current-fragment" data-fragment-index="0"> At least in ox-reveal, this makes it quite difficult to address im

Re: [O] extra paragraph in image export?

2017-01-21 Thread Matt Price
On Sat, Jan 21, 2017 at 11:26 AM, Matt Price wrote: > with org-html-html5-fancy is non-nil, images are exported with something > like this code: > > > https://imgs.xkcd.com/comics/proof_2x.png"; > alt="proof_2x.png" class="fragment (appear) visible curr

[O] VM for org-based reproducible environment?

2017-01-23 Thread Matt Price
I'd like to provide a way for people to copy my course materials in the easiest possible way. At present my export & grading processes rely on some customization of various tools, mostly emacs-based. So I'm thinking the easiest thing might be fore me to define a virtual machine, maybe docker-based,

Re: [O] VM for org-based reproducible environment?

2017-01-24 Thread Matt Price
en heard of guix, it looks intriguing, thanks. On Tue, Jan 24, 2017 at 4:19 AM, Rasmus wrote: > Matt Price writes: > > > I'd like to provide a way for people to copy my course materials in the > > easiest possible way. At present my export & grading processes re

Re: [O] extra paragraph in image export?

2017-01-24 Thread Matt Price
On Tue, Jan 24, 2017 at 4:27 PM, Nicolas Goaziou wrote: > Hello, > > Rasmus writes: > > > I'm not an expert of HTML either. However, the "p" tag inside the > > "figure" is uncommon looking a bit on the example usages online. Thus, I > > agree with Matt that it should probably not be there. > >

Re: [O] extra paragraph in image export?

2017-01-24 Thread Matt Price
On Tue, Jan 24, 2017 at 4:27 PM, Nicolas Goaziou wrote: > Hello, > > Rasmus writes: > > > I'm not an expert of HTML either. However, the "p" tag inside the > > "figure" is uncommon looking a bit on the example usages online. Thus, I > > agree with Matt that it should probably not be there. > >

Re: [O] extra paragraph in image export?

2017-01-25 Thread Matt Price
(I totally misread the patch, sorry. duh.) On Wed, Jan 25, 2017 at 11:59 AM, Nicolas Goaziou wrote: > Hello, > > Rasmus writes: > > >> So would the following patch fix the issue? > > > > Looks fine to me. > > > > Thanks! > > Applied. Thank you. > > Regards, > > -- > Nicolas Goaziou > >

[O] org-annotate/collaboration?

2017-02-08 Thread Matt Price
Does anyone use org-annotate actively? I'm wondering what your workflow is, how you incorporate comments, etc. I'm hoping to embark on a book project with a colleague. I would like to use org-mode if I can, but I need to get a sense of the collaboration workflow. When you work on projects together

[O] "wrong=type-argument listp" on publish

2017-03-06 Thread Matt Price
Anyone else getting this? I'm unable to publish. I don't see what is unlist-like about the first argument to plist-put. -- Debugger entered--Lisp error: (wrong-type-argument listp (:base-directory "~/RLG231/Lectures/" :base-extension "org" :publishing-directory "/ssh:matt@shimano:/var/

Re: [O] [PATCH] allow klipse export in html

2017-03-09 Thread Matt Price
Hi Bastien, Just pinging on this. If the answer is no, that's fine; otherwise I'd love to get this merged so I can stop monkey-patching every time I update org :-) On Mon, Jan 30, 2017 at 11:04 PM, Matt Price wrote: > Hi Bastien, I thought I'd just check in on this again

Re: [O] "wrong=type-argument listp" on publish

2017-03-14 Thread Matt Price
On Mon, Mar 6, 2017 at 3:51 PM, Nick Dokos wrote: > Matt Price writes: > > > Anyone else getting this? I'm unable to publish. I don't see what is > unlist-like about the first > > argument to plist-put. > > -- > > Debugger entered--Lisp

Re: [O] [PATCH] allow klipse export in html

2017-03-21 Thread Matt Price
Hi Bastien, checking again to see if there's any movement on this. I can also repatch against master. m On Thu, Mar 9, 2017 at 10:18 AM, Matt Price wrote: > Hi Bastien, > > Just pinging on this. If the answer is no, that's fine; otherwise I'd love > to get this

Re: [O] [PATCH] allow klipse export in html

2017-03-24 Thread Matt Price
Yay! Thank you! On Mar 23, 2017 6:25 PM, "Bastien Guerry" wrote: > Hi Matt, > > I finally committed this. Sorry it took so long and thanks > again for the patch! > > Best, > > -- > Bastien >

[O] evil-mode and org

2017-03-28 Thread Matt Price
I've never used Vim but I see a lot of people online raving about evil mode and how much they love it. I'm considering giving it a whirl after the semester ends & I get some free time. I just wondered whether any heavy org users here on the list use evil, and if so, whether you see pain points with

Re: [O] evil-mode and org

2017-04-10 Thread Matt Price
I kind of let this thread drop, but I just wanted to say thanks to everyone for sharing. I am interested in exploring modal editing, maybe in June which, it turns out, is when I *actually* will have free time... thanks everyone! On Thu, Mar 30, 2017 at 11:48 AM, Eric S Fraga wrote: > On Thursda

[O] org to static site?

2017-05-31 Thread Matt Price
I'm trying to wean myself off of Wordpress for next year's teaching websites, and am wondering what solutions other people are using for turning a collection of org pages and/or subtrees into a static html site. I am leaning towards Hugo but honestly not for any sensible reason; I've seen other peo

Re: [O] [PATCH] ox-html.el: Fix display of language indicators for source blocks

2017-06-08 Thread Matt Price
ng the soliloquy, I was wondering if any of the maintainers have >> seen this patch, > I saw it. > >> and the bug that it addresses. > That is above my pay-grade. I'm Cc'ing Matt Price, who introduced klipse > feature, for some insight. > >> If they have, I

Re: [O] [PATCH] ox-html.el: Fix display of language indicators for source blocks

2017-06-12 Thread Matt Price
blems without losing klipse funcitonality? If not, would you be satisfied with an improved docstring and maybe turning klipse off by default? On Thu, Jun 8, 2017 at 3:42 PM, N. Raghavendra wrote: > At 2017-06-08T21:24:31+02:00, Nicolas Goaziou wrote: > > > I'm Cc'ing Matt P

[O] access value of an export option

2017-06-27 Thread Matt Price
Hi, I'm modifying https://github.com/helloyi/ox-hugo/edit/master/ox-hugo.el to make a few things a little easier. In particular, I'd like to be able to set the hugo content directory and hugo section paths as export options. to this end I have defined some new export options: :options-alist '((

[O] why prepend "file://" to abs paths in html output?

2017-07-07 Thread Matt Price
in org-html-link local links of the form "/some/path/to/file" are rewritten as "file:///some/path/to/file". This makes it difficult to write root-relative URL's in the way that one might expect to be able to (so that export produces links like Is this really the most desirable behaviour? In

[O] simulating counter macro in property values

2017-07-20 Thread Matt Price
I export a series of subtrees to a static website. The subtrees are listed in a menu that the site generator creates. The position in the menu is controlled by an org property (":HUGO_MENU_OVERRIDERS: :weight X"). I would really like to automate the "weight" value so that the menu order reflect

[O] ox-hugo-like "DWIM" cope for other exporters?

2018-09-27 Thread Matt Price
Kaushal's ox-hugo includes a "Do what I mean" scope which is different from other exporters I've seen. It goes up the heading tree looking for a heading with the "export_file_name" property set, and exports from there, or if it doesn't find one, from the whole file. The code is here: https://git

[O] use-package and "Error Autoloading file"

2018-10-17 Thread Matt Price
Hello everyone, I'm trying to switch my config over to use-package and running into an issue with org. Most of my init file seems to be org-related (!), so I won't post the whole thing, but will try to summarize. I've also posted a bug report to the use-package repo ( https://github.com/jwiegley/u

Re: [O] use-package and "Error Autoloading file"

2018-10-17 Thread Matt Price
oh jeez, this was a trivial fix: :mode "\\.org" . ;; ---> :mode ("\\.org" . org-mode) Sorry for the noise, hope that maybe someone benefits from my stupidity! On Wed, Oct 17, 2018 at 11:53 AM Matt Price wrote: > Hello everyone, > > I'm trying to

[O] electric-pair, autopair, smartparens, etc in org-mode

2018-10-20 Thread Matt Price
Hi eveyrone, I'm just wondering what tools other people use to manage paired parentheses and other markers in org. I'm revisiting my long-ago decision to turn all pairing tools off in org, but every tool I try is pretty frustrating out of the box: - smartparens steals a large number of really im

Re: [O] electric-pair, autopair, smartparens, etc in org-mode

2018-10-21 Thread Matt Price
y: (defun mwp-org-mode-electric-inhibit (c) (and (eq ?\[ c) (eq major-mode 'org-mode)) This works fine, though I'd still like the other :-/ Thanks Nicholas! On Sun, Oct 21, 2018 at 3:28 AM Nicolas Goaziou wrote: > Hello, > > Matt Price writes: > > > - electric

[O] lots of trouble w/ org-mime...

2018-10-21 Thread Matt Price
I'm having a whole bunch of trouble getting org-mime to work, and I wondered ifo ther people are using it productively? Two biggest issues so far, both reproduced with emacs -Q on recent emacs git, org-mode git, and org-mime git: - org-mime-org-subtree-htmlize fails for me with "org-back-to-headi

[O] slack syntax exporter/copier

2018-10-22 Thread Matt Price
A while ago I asked about a slack syntax exporter. I cpy text from org to slack often enough that I spent an hour or two today writing a simple one, which I put up in a gist: https://gist.github.com/titaniumbones/c0c171e4df8a6ff5f0f564b8a655c079 If people are interested, I will be happy to packa

Re: [O] slack syntax exporter/copier

2018-10-22 Thread Matt Price
On Mon, Oct 22, 2018 at 5:29 PM Neil Jerram wrote: > Matt Price writes: > > > A while ago I asked about a slack syntax exporter. I cpy text from org > to > > slack often enough that I spent an hour or two today writing a simple > one, > > which I put up in a gis

[O] access a let* value whe ndefining a function?

2018-10-23 Thread Matt Price
Hey, I guess this is OT. I'm trying to advice org-mime-org-buffer-htmlize so that it returns to the org buffer when its done. I want to do something like this: (let ((thisbuffer (current-buffer)) (advice-add 'mu4e-sent-handler :after (lambda (docid props) (switch-to-buffe

Re: [O] access a let* value whe ndefining a function?

2018-10-23 Thread Matt Price
x27;t really undertand backquotes and leading ocmmas even now. > John > > --- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnki

Re: [O] access a let* value whe ndefining a function?

2018-10-23 Thread Matt Price
On Tue, Oct 23, 2018 at 3:38 PM Matt Price wrote: > > > On Tue, Oct 23, 2018 at 2:32 PM John Kitchin > wrote: > >> I think that what you really want to do here is modify org-mime-compose >> so that you can use the send-actions argument to message-mail. In >>

Re: [O] access a let* value whe ndefining a function?

2018-10-24 Thread Matt Price
On Tue, Oct 23, 2018 at 4:34 PM John Kitchin wrote: > > Matt Price writes: > > > On Tue, Oct 23, 2018 at 2:32 PM John Kitchin > > wrote: > > > >> I think that what you really want to do here is modify org-mime-compose > so > >> that you can u

Re: [O] electric-pair, autopair, smartparens, etc in org-mode

2018-10-24 Thread Matt Price
Eric, you seem to be replying to an email that I sometimes don't have -- I would love to see what @stardiviner wrote, do you stil lhave the email? On Tue, Oct 23, 2018 at 9:12 AM Eric S Fraga wrote: > On Tuesday, 23 Oct 2018 at 19:48, stardiviner wrote: > > This is really helpful for me, I use s

[O] org-mime with recent versions of org and emacs

2018-10-25 Thread Matt Price
it versions of org and emacs. I'd love to hear comments from others. On Sun, Oct 21, 2018 at 10:04 PM Matt Price wrote: > I'm having a whole bunch of trouble getting org-mime to work, and I > wondered ifo ther people are using it productively? > > Two biggest issues so far, b

[O] letterhead and signature in odt export

2018-10-29 Thread Matt Price
in North America it's letter-of-reference season for professors, and I am writing a lot of them. These are some of the only documents I still compose in libreoffice, because I need to use a letterhead that contains both image and text, and I need to insert a .png of my signature near the bottom. I

Re: [O] letterhead and signature in odt export

2018-10-30 Thread Matt Price
On Tue, Oct 30, 2018 at 2:54 AM Eric S Fraga wrote: > On Tuesday, 30 Oct 2018 at 01:55, Matt Price wrote: > > in North America it's letter-of-reference season for professors, and I am > > writing a lot of them. > > I sympathise fully :) > > > These are some of

Re: [O] letterhead and signature in odt export

2018-10-30 Thread Matt Price
On Tue, Oct 30, 2018 at 5:41 PM Tim Cross wrote: > > I've never delved into the XML nightmare that is ODT and stick with > latex/PDF export. > > Here is how I handled needing to have a logo and banner at the top of my > documents. Essentially, it involves using the Latex 'minipage' > environment

Re: [O] letterhead and signature in odt export

2018-10-30 Thread Matt Price
Hi again Chris! OK, so I understand a little bit of this. I would like to keep all my letters in subheadings in a single org doc, and just export once. This version requires a fair amount of latex in every subtree. It would be nicer if the exporter just took care of the latex for me and I didn't h

Re: [O] letterhead and signature in odt export

2018-10-30 Thread Matt Price
letterhead. Which, I realize, is just a bunch of words written i nHelvetica with a picture of a beaver next to it. #+STARTUP: indent #+LANGUAGE: en #+OPTIONS: num:nil toc:nil ':t #+AUTHOR: Matt Price #+EMAIL: Your Email Here #+LATEX_HEADER: \usepackage[utf8]{inputenc} #+LATEX_HEADER: \usepacka

[O] getting close on latex letterheads [was: letterhead and signature in odt export]

2018-11-01 Thread Matt Price
OK, so I'm getting close to being able to do this. My almost-working example doc is at the bottom of this email, I have a question about suppressing the headline text. On Tue, Oct 30, 2018 at 11:50 PM ckelty ckelty wrote: > Matt, > > > > On Oct 30, 2018, at 6:26 P

Re: [O] Best way to process a collection of .org files as one?

2018-11-01 Thread Matt Price
This isn't really an answer to your question, but I keep all my lectures for each course in a single file, then export subtrees when I need them. For me, this works well. I have recently started using a -dwim export scope based on Kaushal's org-hugo-export-dwim functions. But... I seem to have l

Re: [O] getting close on latex letterheads [was: letterhead and signature in odt export]

2018-11-01 Thread Matt Price
On Thu, Nov 1, 2018 at 9:58 AM Eric S Fraga wrote: > Cannot help you on this but I did enjoy reading the references for the > students! :-) > -- > Eric S Fraga via Emacs 27.0.50, Org release_9.1.11-620-ga548e4 > Having @ckelty on the CC: list inspires me no end.

[O] using flet to suppress meta generation in html export?

2018-11-06 Thread Matt Price
Hi, I was writing a function to quickly post the ocntents of subtrees to the Canvas Learning Management System. I was trying to strip down the exported HTML to an absolute minimum and had forgotten about the body-only paramter to org-export-as (!!). So, my solution was to try to rebind 'org-html-

Re: [O] using flet to suppress meta generation in html export?

2018-11-06 Thread Matt Price
AH, THISI S SUPER-HELPFUL, aARON. MANY THANK. i'M HOPING THAT BY THE TIME i RETIRE i WILL BEGIN TO UNDERSTAND LEXICAL SCOPING IN LISP... On Tue, Nov 6, 2018 at 10:35 AM Aaron Ecay wrote: > Hi Matt, > > 2018ko azaroak 6an, Matt Price-ek idatzi zuen: > > > > Hi, > &

[O] Org --> Canvas LMS

2018-11-06 Thread Matt Price
So, this really isn't ready for anyone else to use yet, but I've spent the last day or so exploring the API for the Canvas Learning Management System and adapting my grading system to interact with it. My results are rough and I think a little buggy (I'm worried about timeouts and how to manage the

[O] map function definitions to org src blocks?

2018-11-08 Thread Matt Price
I feel like I saw someone do this but can't find it in my notes. When tangling code to elisp, is it possible to point ~describe-function~ to the original org-mode source (or at least the src block) as the "source code" for the function, rather than the resultant .e file produced by org-babel-tangle

Re: [O] map function definitions to org src blocks?

2018-11-08 Thread Matt Price
rks on describe-function. That would be an interesting > addition perhaps. I guess though that describe-function would go to the > elisp code. I never figured out how to get links in the tangled code to > jump back to the org file though. > > On Thu, Nov 8, 2018 at 5:39 PM Matt Price

[O] creating new #+KEYWORD: variables

2018-11-08 Thread Matt Price
I am writing this interface to my university's learning management system: https://github.com/titaniumbones/Org-Marking-Mode/tree/use-structured-course-def. I am only using hte exporting system tangentially and I have not defined a new exporter. However, I would really like to be able to set some v

Re: [O] creating new #+KEYWORD: variables

2018-11-09 Thread Matt Price
up, including the two functions, here: > https://github.com/zzamboni/dot-emacs/blob/master/init.org#publishing-to-leanpub > > Hope this helps! > > --Diego > > > > On Fri, Nov 9, 2018 at 4:33 AM Matt Price wrote: > >> I am writing this interface to my universit

[O] Writing Exporter Tests [was: slack syntax exporter/copier]

2018-11-09 Thread Matt Price
le getting started on my own, so, once again, I appreciate any help you cna give! Thanks, Matt On Mon, Oct 22, 2018 at 9:02 PM Matt Price wrote: > > > On Mon, Oct 22, 2018 at 5:29 PM Neil Jerram > wrote: > >> Matt Price writes: >> >> > A while ago I asked about

Re: [O] creating new #+KEYWORD: variables

2018-11-10 Thread Matt Price
On Sat, Nov 10, 2018 at 2:22 AM Nicolas Goaziou wrote: > Hello, > > Matt Price writes: > > > I am writing this interface to my university's learning management > system: > > > https://github.com/titaniumbones/Org-Marking-Mode/tree/use-structured-course-def &g

Re: [O] creating new #+KEYWORD: variables

2018-11-15 Thread Matt Price
On Sat, Nov 10, 2018 at 1:58 PM Nicolas Goaziou wrote: > Hello, > > John Kitchin writes: > > > You can retrieve keywords in the org-file like this: > > > > (defun get-keyword (key) > > (org-element-map (org-element-parse-buffer) 'keyword > > (lambda (k) > > (when (string= key (org-el

[O] overlay showing computed value of macro?

2018-11-22 Thread Matt Price
I use macros in my course syllabi to automate creation of timestamps It looksl ike this: # see bottom of this email for the defn of ~get-ts~ #+MACRO: ts (eval (get-ts+7)) ** Week {{{n}}} ({{{ts}}}): Time Scales in Rivers, Geology, and Human Relationships * Week {{{n}}} ({{{ts}}}): +READING WEEK:

[O] don't always restore previous window configuration?

2018-11-22 Thread Matt Price
I've recently switched to using the current window for editing src blocks w ~(setq org-src-window-setup 'current=window)~. I like this a lot, and it lets me swtich rapidly back and forth between the parent buffer and source code. Often when I ma working I split some of hte other windows to display

Re: [O] overlay showing computed value of macro?

2018-11-22 Thread Matt Price
On Thu, Nov 22, 2018 at 1:19 PM Matt Price wrote: > It would be nice for me to overlay the macro invocations with the values > that they will evaluate to on export. I guess I would have to figure out > when to trigger recalculation of the values (maybe not too often, say only > when

Re: [O] overlay showing computed value of macro?

2018-11-22 Thread Matt Price
On Thu, Nov 22, 2018 at 4:06 PM Matt Price wrote: > > > On Thu, Nov 22, 2018 at 1:19 PM Matt Price wrote: > >> It would be nice for me to overlay the macro invocations with the values >> that they will evaluate to on export. I guess I would have to figure out >> wh

Re: [O] overlay showing computed value of macro?

2018-11-23 Thread Matt Price
OH man, I know this is a lot of replies to my own thread. Sorry for the noise. I just wanted to point out something I somehow failed to see as I was pretending to cook Thanksgiving dinner while working on this project (!!) -- my code does just fine producing overlays, which might be useful to some

Re: [O] overlay showing computed value of macro?

2018-11-23 Thread Matt Price
On Fri, Nov 23, 2018 at 4:32 AM Eric S Fraga wrote: > Matt, > > you might like to have a look at how the n() macro was implemented as it > has some similar goals. Check out org-macro-initialize-templates and > org-macro--counter-increment. > ah. no stupid searching backwards through the buffer

[O] [PATCH] don't always restore previous window configuration?

2018-11-23 Thread Matt Price
a wrote: > On Thursday, 22 Nov 2018 at 14:09, Matt Price wrote: > > SO far this is working for me but I wondered whether other people would > > similarly want to change this behaviour and I should put together a > proper > > proposal & patch? > > Yes, please. This is

Re: [O] [PATCH] don't always restore previous window configuration?

2018-11-24 Thread Matt Price
On Sat, Nov 24, 2018 at 5:55 AM Nicolas Goaziou wrote: > Hello, > > Matt Price writes: > > > OH man, that was a little harder than I thought it would be. Does `make > > test` randomly checkout a new branch or something? > > No, it doesn't. > Then I'm s

Re: [O] [PATCH] don't always restore previous window configuration?

2018-11-25 Thread Matt Price
On Sun, Nov 25, 2018, 4:02 AM Nicolas Goaziou Hello, > > Matt Price writes: > > > Then I'm sorry for the noise (and also for this aside!). Magit, or git, > or > > some other tool was doing something quite strange and disturbing, and I > am > > now se

[O] PATCH: do not restore window config on exit from src buffer

2018-11-27 Thread Matt Price
As per our earlier thread, here is a patch to remove org-src--saved-temp-window-config from org-src.el. From ad2d8d26eee6c2bcfa517e0f7352406c9980bfd4 Mon Sep 17 00:00:00 2001 From: Matt Price Date: Tue, 27 Nov 2018 08:19:03 -0500 Subject: [PATCH] Org-sr.el: On exiting src buffer, do not restore

[O] Bug? svg images do not display on modenr browser on export

2019-01-15 Thread Matt Price
I think this is a bug but I don't know enough about svg images to be sure. On export, links to svg images produce an element rather than an . Here's the docstring of the function (from ox-heml): - Return \"object\" embedding svg file SOURCE with given ATTRIBUTES. INFO is a plist used as a co

[O] CSS Inliner for HTML emails?

2019-03-12 Thread Matt Price
Does anyone have a satisfactory solution for inlining CSS in HTML emails? I tried org-mime's built-in ~org-mime-change-element-style~ but it is pretty clumsy and does not, for instance, allow me to style "pre code" and "code" differently. Does anyone have a better solution? Thank you!

[O] property matching in org-agenda-custom-commands

2019-04-05 Thread Matt Price
Embarassed that I still don't really know how to use the agenda commands after all this time :-( I have a bunch of trees that look in part like this: * Asisgnment 1 ** Student A :PROPERTIES: :GRADE: 0 :END: I would like to store a search in org-agenda-custom-commands. I generated it initially wit

Re: [O] property matching in org-agenda-custom-commands

2019-04-05 Thread Matt Price
pr 5, 2019 at 4:17 PM Thomas Plass wrote: > Matt, > > Matt Price wrote at 13:31 on April 5, 2019: > : > : ("F" "Failing Students in Current Buffer Only" tags-tree "+GRADE=\"0\"") > : > : However, this seems to choke, and the agenda is n

[O] table --> org-drill

2019-04-22 Thread Matt Price
Hello everyone, I'm taking an informal but intensive Nepali language class. There's no textbook, and vocabulary comes rapidly from the teacher during lcass. I end up with notes that look like this: yo & tyo-based constructions *yo* | yatti | this much | | katti | how much | | yaha |

[O] best ways to generate simple diagrams?

2019-05-06 Thread Matt Price
So, I'm finding more and more that I want to include simple diagrams in my course materials. At present I am generating them as svg's using Inkscape, but that feels really tiresome to me. I would much rather make them programmatically, preferably including the source code as an org-mode block. I t

Re: [O] best ways to generate simple diagrams?

2019-05-07 Thread Matt Price
[<-,out=90,in=90,very thick,red] (humanities); \end{tikzpicture} #+end_src Can you see my error and/or reproduce the issue? Thanks all of you! On Tue, May 7, 2019 at 7:25 AM Fraga, Eric wrote: > On Monday, 6 May 2019 at 14:17, Matt Price wrote: > > So, I'm finding more and mo

Re: [O] best ways to generate simple diagrams?

2019-05-07 Thread Matt Price
hmm, I still get just the attached image (approx). Presumably osmehting wrong w/ my latex setup (I use latex only very rarely). On Tue, May 7, 2019 at 1:52 PM Fraga, Eric wrote: > On Tuesday, 7 May 2019 at 13:22, Matt Price wrote: > > I thought that a latex src block with :export

<    1   2   3   4   5   6   7   >