Hi,
I want what may be two conflicting things:
- Produce a monolithic HTML export of an main org file that #+include:'s
other org files.
- Have links in the other org files that are valid both when the
monolith is exported to HTML and when visiting the individual org
files in Emacs.
Below
"M. P." writes:
> I create a TODO and save the file but I can’t see the todo when I
> select todo view in agenda? What am I doing wrong?
Maybe your file is not in the org-agenda-files list. If so, a quick
check is to visit the file and do "C-c [" (org-agenda-file-to-front).
Then, recheck your a
Hi Nicolas,
Nicolas Goaziou writes:
> So, basically, upon exporting the following document to HTML:
>
> #+html_link_root: /tmp/
> [[/tmp/unicorn.jpg]]
>
> the link becomes
>
>
Is this saying "subtract the value of 'html_link_root' from the Org link
to make its URL"?
If so, I think this
Brett Viren writes:
> Or, maybe you suggest I do direct "surgery" on the TEXT argument that
> gets passed in to the filter and insert the "..." that way? I guess it
> could work to find the end of the "" opening tag and then insert
> my "..."
Marcin Borkowski writes:
> It's been a while since I did that, but AFAIR deriving a new, slightly
> midified backend may be exactly what you want, since you seem to need to
> modify just one of the exporter functions.
Right, by my concern is I'm copy-pasting a large function just to change
basic
"Charles C. Berry" writes:
> You do have that wrong. This is exactly what export filters and
> derived backends are for. In fact, you can use both. For an example,
> see
>
> http://orgmode.org/worg/exporters/filter-markup.html
>
> You will want to change `latex' to `html' in the
>
> `(or
Hi,
I am writing a manual in Org which gets exported/published to HTML and
styled with org-html-themes. I want the HTML to include a little icon
next to each headline which is a direct link to the headline itself.
Basically, I want to rip off what GitHub does when it renders Org.
First, is there
Karl Voit writes:
> -* NEXT test with DAVdroid
> +* Lesestoff [1/26]:2read:
> :PROPERTIES:
> -:CREATED: [2016-05-08 Sun 12:51]
> +:CREATED: [2012-04-17 Tue 10:39]
> +:ARCHIVE: %s_archive::* Lesestoff
> +:CATEGORY: reading
> :END:
Without seeing bef
Aaron Ecay writes:
> Have a look at the org-element library,
Just to add, there are circular dependencies in this data structure due
to ":parent" and potentially some of the ":structure" elements. They
obviously need to be broken to avoid infinite loops.
Here my hackish attempt to deal with th
Thanks for your example.
A few ideas:
- When you begin developing your paper, or sometime before submission,
make a break from your personal ~/.emacs.d/ environment and begin
processing the .org in an explicitly configured Emacs session. Submit
the needed, minimal, paper-specific Emacs set
Marcin Borkowski writes:
> On 2016-04-29, at 11:21, Michael Welle wrote:
>
>> Marcin Borkowski writes:
>> I assume that you use a laptop or some other portable device? In that
>> case you can grep the IP address (which might change when you change
>> workplaces) and timestamps from the log file
Rainer Hansen writes:
> Sometimes I should read more carefully what I write. I want to use a
> static web site generator! So Wordpress is no option for me.
Ah, okay! That makes more sense. One day I will also learn to read what
I write. :)
> Of course I could use Bootstrap with an Org-based s
Rainer Hansen writes:
> I wonder what is the best way to create a blog for a company website
> with Orgmode. I do not want to use a static web site generator. The
> design of the web site is relying on Bootstrap and customs CSS.
Just curious, why does wanting to use Bootstrap rule out an Org-bas
"Charles C. Berry" writes:
> Try `:wrap src json':
Works perfectly, thanks. I had missed this in the manual, but it was
there for me all along!
http://orgmode.org/manual/wrap.html
-Brett.
signature.asc
Description: PGP signature
Hi,
I have some shell command line program that spits out JSON. I want Org
execute that command from a source block (of type "sh") and have the
result displayed as another source block of type "json". I can almost
get all that working except the resulting block is also of type "sh":
I have:
#
Peter Davis writes:
> For the first time, I'm trying to export just a single subtree of my overall
> document, by typing
>
> C-c C-e C-s H O
>
> However, I get this error:
>
> apply: Wrong type argument: listp, #("Details, November 2015" 0 22 (:parent
> (#0)))
FWIW, I had this problem on my ho
torys.ander...@gmail.com (Tory S. Anderson) writes:
> I'd love to. Unfortunately, search engines were unable to give me
> decisive answer on what an ECM is.
Heh. I guessed what it meant, but not what it stood for, and found:
http://orgmode.org/worg/org-faq.html
Some users call this an "E
David Bjergaard writes:
> I know this is working "against the grain" of the literate programming
> paradigm where the document and the source code are coupled, and
> tangling the document produces a program that can be executed. I'm just
> wondering if its possible. If not that's fine. Really
David Bjergaard writes:
> I use org mode as a lab notebook. I write org-src blocks to keep track
> of tasks I do at the command line, and then I copy paste them into the
> terminal. I would really like to hit "C-c C-c" on the source block and
> have it executed on the remote machine. I know th
Hi Louis,
Louis writes:
> I've been using org-mode for a variety of purposes for a few years. I
> find that it suffers from the same problem that other such tools
> do. The problem is me. I can't remember week to week how I may have
> classified some scrap of information. Did I drop it into
> no
"Monroe, Will" writes:
> Thanks so much for your reply, Tim. git-annex does seem like a
> possibility for syncing org-mode files but it appears that there's a
> lot to consider when setting it up.
This thread prompted me last weekend to try git-annex via its
"assistant". It was pretty painless
Alexis writes:
> If i may ask, which email front-end were you using? (Gnus, perhaps?) i
> used to use notmuch.el, and currently use mu4e, and basically don't have
> this issue
My GNUS + IMAP subprocess + Maildir used to lead to long wait times when
updating for new mail ("g" in Groups). Th
Hi,
die...@duenenhof-wilhelm.de (H. Dieter Wilhelm) writes:
> But what is missing is to assign variables within a source block
>
> #+BEGIN_SRC calc :var L1 = "5 mm"
> L2 := cvun( L1, m)
> #+END_SRC
>
> Unfortunately this is not working. Do you have an idea how to
> i
Matt Lundin writes:
> That sounds interesting. I look forward to hearing more!
It's not yet usable for anything real but I'm keeping the work here:
https://github.com/brettviren/orgonpy
-Brett.
pgptNgTBz8D6F.pgp
Description: PGP signature
Matt Lundin writes:
> Brett Viren writes:
>>
>> Maybe it would be more convenient to add the "meta-ness" you want as
>> part of a new exporter process?
>
> To change the "meta" wrappers for code block results, we would have to
> modify org ba
Matt Lundin writes:
> Let's hope the real blog (when I get around to publishing it) is more
> interesting than the example above. ;)
Maybe it would be more convenient to add the "meta-ness" you want as
part of a new exporter process?
-Brett.
pgpX0dUH7NC9P.pgp
Description: PGP signature
Nick Dokos writes:
> I think you'd be better off with the tip that Rick Frankel posted in
> the same thread:
>
> #+BEGIN_SRC emacs-lisp
> (add-hook 'org-babel-after-execute-hook
> (lambda () (org-display-inline-images nil t)))
> #+END_SRC
Thanks Nick (and Rick). I changed this to use the "re" v
Someone recently posted a tip to add
:post (org-redisplay-inline-images)
to a SRC block which generates an image in order to freshen the Emacs
buffer with the regenerated image each time the block is executed. It
works *almost* fine but I have two problems which I hope someone can
help with.
Hi,
Alexander Baier writes:
> On 2014-07-06 20:03 York Zhao wrote:
...
>> #+BEGIN_EXAMPLE
>> * Example at level one
>> #+END_EXAMPLE
>>
>> Indentation is wrong.
>
> The asterisk followed by a space followed by text in your example block
> is recognized by org as a headline. So org thinks everyth
David Masterson writes:
> How do I control the page margins that Org uses in its Latex/PDF output?
I also just started a new doc today and wanted reduce the margins.
Normally I set all the various margin-related distances which I can
never seem to remember and have to go search for. This time
Rainer M Krug writes:
> Brett Viren writes:
>> file:///path/to/foo.tex.orglink?line=42
> But jumping to the .org file would be the aim - right?
Yes, right. Maybe a better example is:
file://foo.orglink?line=42
which might get interpreted as "go to line 42 in ./foo.or
Nick Dokos writes:
> One more (half-)possibility is as follows: produce the tex file and
> compile it not with pdflatex, but with plain latex, producing a DVI
> file. Passing the -src option to the latex invocation inserts "source
> specials" into the DVI file that some DVI viewers (in particular
Rainer M Krug writes:
> Therefore I export the document to pdf, and look for errors there. Now I
> have to find the corresponding section in the org file - possible, but
> tedious.
Not quite what you have in mind and maybe only a half-measure but when I
produce draft latex documents I like to tu
Bastien writes:
> Please test the attached patch against the tip of the master branch
> and let me know if it works: it checks against a .oxignore file, one
> regexp on each line. If you find it useful, I'll commit this for
> the next version.
I had some unrelated trouble with the head of maste
Hi,
I'm trying to set up org-publish and am looking for more fine-grained
control over what files get published than what (I think) I can get from
configuring org-publish-project-alist. I've played with the
publishing-function of org-publish-attachment and :exclude/:include and
:base-extension re
Lawrence Bottorff writes:
> being able to organize and
> extract based on your stuff being stored graph-aware would be nice,
> IMHO.
I'm by no means an expert on this but I know org-element-parse-buffer
returns a data structure which is a directed-graph.
http://orgmode.org/worg/org-api/org-e
Gregor Zattler writes:
> Hi Achim,
> * Achim Gratz [10. Feb. 2014]:
>> You cannot enter C-: in some terminals because it would require
>> simultaneous processing of shift and control (these terminals ignore
>> shift while control is pressed).
>
> this is true for xterm, rxvt-unicode, gnome-termi
Hi John,
John Kitchin writes:
> The files are all on a unix file system served over nfs, so everyone
> has the same / root. the users (students) have read access to my
> files.
>
> I am working towards creating "packages" of notes in org-mode (they
> might even be installed as emacs packages) fo
David Belohrad writes:
> 1) privacy: you're basically giving your data to somebody else. In case
>of emacs init there is no danger. In case of your org data, which
>might contain sensitive information you want to encrypt it, what
>complicates matter when switching between two win/lin
Hi Daniel,
Daniel Clemente writes:
> Are there already Python parsers for it?
Parsing generic JSON is fairly trivial in Python.
import json
data = json.dumps(open('file.json').read())
The resulting "data" is then a bunch of Python lists and/or dicts
matching whatever structure was outpu
François Pinard writes:
> Brett Viren writes:
>
>> http://permalink.gmane.org/gmane.emacs.orgmode/79838
>
> This yields:
>
> ,
> | Not Found
> |
> | The requested URL /gmane.emacs.orgmode/79838 was not found on this server.
> `
Huh, maybe a t
Hi Karl,
Karl Voit writes:
> Hi!
>
> * Daniel Clemente wrote:
>>>
>>> I dream of having a general Python parser for Org mode files, knowing
>>> every bit about the current syntax for Org files, surrounded by enough
>>> Python machinery to make it useful.
>
> Oh, this would be great since there
Peter Davis writes:
> I use half a dozen email clients, including mutt, which lets me easily
> pipe a message to a script.
The need to support multiple clients may rule out my suggestion but
capturing a TODO or a note while visiting a GNUS message and thus
preserving the link back to the article
Hi Eric,
Eric Schulte writes:
> This should work in a recent Emacs.
>
> (require 'json)
> (defun org-as-json-to-file (&optional path)
> "Export the current Org-mode buffer as JSON to the supplied PATH."
> (interactive "Fwrite to file: ")
> (let ((tree (org-element-parse
Matt Price writes:
> I am pretty ignorant and may have missed a referene o this in the
> thread, but this (very outdated) code is on the emacswiki:
>
> http://www.emacswiki.org/emacs/org-json.el
Thanks. My searches didn't find this. It looks like this is parsing
the org buffer directly and onl
Hi,
Nicolas Goaziou writes:
> You can walk the tree, e.g. with `org-element-map', and remove
> all :parent references if you don't need them.
I figured out how to follow this advice. I can even make valid JSON
From the filtered parse tree by handing it to Edward O'Conner's
json.el (link in exa
Hi John,
John Kitchin writes:
> that sounds like an interesting approach. xml seems like what you
> really want, since looking at the parsetree there is a lot of
> information (e.g. attributes, properties, etc...) that would be tricky
> to generate a fully representative json scheme.
I see fro
Eric Schulte writes:
> You can use `org-element-parse-buffer' to convert an Emacs Buffer to a
> structured Emacs Lisp object. At that point you can use existing tools
> for converting lisp to JSON or YAML. I've used cl-json for Common Lisp,
> I would imagine something similar exists for Emacs L
Has anyone written any new-style exporter which will produce a common
markup/data language format like JSON or YAML? I'm looking for
something that fully preserves the original org document structure and
does no semantic interpretation along the way.
What I really want is to parse arbitrary org f
Bastien writes:
> Capture templates using `function' should now return back to the
> correct window location. Thanks for raising this,
Thanks so much for putting time in it!
Regards,
-Brett.
pgpgYsSYgPjri.pgp
Description: PGP signature
Hi Bastien,
Bastien writes:
> You may try this (not tested myself):
>
> (defun bv-daily-log-file ()
> (save-window-excursion
> (find-file (concat "~/org/web/notes/"
> (format-time-string "%Y-%m-%d") ".org"))
> (goto-char (point-max))
> (newline 2)))
>
> The tr
Hi,
I'm trying to set up a capture template of type "function" in order to
produce a daily log file named after today's date.
It mostly works. However, after doing the C-cC-c to close the capture
buffer the window is left holding the daily log file which the capture
just updated instead of going
Hi,
I'd like to produce an organization chart using org. What I want to do
is:
- enter an organization role as a section heading
- have the heading hierarchy map to the organization hierarchy
- enter optional section properties to specify:
- the name of the individual who might fill the ro
John Kitchin writes:
> Here is part of how I use org-mode to publish to my blog:
> http://jkitchin.github.io/blog/2013/09/27/Publishing-to-blogofile-using-org-mode/
Thank you very much for typing this up! I now have some weekend
entertainment to try and replicate it for myself.
-Brett.
pgpEe
John, I finally got a chance to watch your really nice SciPy talk last
night.
I've been trying to incorporate Reproducible Research methods with org
into my own work. I strive to do more and what you are doing looks to
provide a wealth of examples. I hope more researchers follow this
methodology
Hi,
Suvayu Ali writes:
> * TODO Subject :emacs_ver:org_ver:org_module:
...
> Emacs version ends up as a tag:
>
> * TODO . :24.3:
Or, if I add an Org version:
* TODO . :24.3:8.0.3:
These bare numbers
Hi Johannes,
Johannes Rainer writes:
> well, I'm using emacs/org for my data analyses in R. I thus combine
> documentation (i.e. the conclusions drawn from e.g. plots created in
> R) and the R code to perform the analysis in my org file. Since I'm
> analysing high throughput data some tasks to h
Hi Christophe,
Christophe Rhodes writes:
> In org-mode 7, I was able to use the (documented) variable
> org-export-current-backend to test what the current backend is, allowing
> me to dynamically produce and include images of different formats
> depending on whether I was exporting to latex (ti
Hi organistas.
I'd like to have my executable code blocks get exported to HTML/LaTeX
with some prompt prefixed to each line of code but still let the blocks
themselves remain executable in their given language. Is there already
a nice way to do this?
For example, if there was something like a "p
Hi,
I'm hitting on an old theme in a new way here.
I want graphics files which are exported by evaluated code blocks to be
generated in a format best suited to their intended use. For HTML I
want either PNG or SVG. For LaTeX/PDF I almost always want PDF. For
inline viewing in emacs I want ei
Alan Schmitt writes:
> Well, what would be there? If there is (and there may be) an external
> tool that knows how to merge org files (it can be a 3-way merge, if it
> makes things simpler), I could try to devise the magical incantation to
> use it.
It is not org-specific, but meld [1] is a Free
Max Mikhanosha writes:
> Just committed a potential fix, can you see if it works? Commit
> 0d68eef0372b6b57359a49cb5e35b67c651c5ee2
Works great!
Thanks,
-Brett.
pgpAYtFdzq95n.pgp
Description: PGP signature
Hi Max,
Max Mikhanosha writes:
> I have committed org-screenshot to master
This sounds like a great idea. And just to prove that no good deed goes
unpunished, here is a bug report:
In an org-mode file I run "M-x org-screenshot-take", scrot runs and I
can either click on a window or draw a se
Bastien writes:
> Check boxes have only three state: empty, checked, undecided.
>
> If you need more states, I suggest using a property.
> Then the column view can be used to display a summary
> of the "sum" of all properties in the subtree.
Thanks for the pointer, Bastien. This looks like a fi
Hi,
I'm helping to edit a large document with section contributions from
many people. Any given section may come in some bizarre format (ie,
.doc) which I convert to LaTeX, leave open a time for subsequent edits
and finally freeze the section.
I'd like to track this state using org-mode.
So far
Rasmus writes:
>> Orgmode: your life, in plain text.
>
> I like the idea of a catch phrase (your life, in plain text) and
> perhaps a more detailed paragraph belows, potentially with links.
This phrase is also what first comes to my mind when I try to explain
org-mode to others.
However, it is
Hi Bastien,
Bastien writes:
> Brett Viren writes:
>
>> Can they have newlines?
>
> I don't think so -- did you try?
Now, there is an idea! I had not tried, but yes, the are accepted and a
"multiline" macro can be defined using '\n' character
Hi,
I'm back wanting to specify per-export image formats again.
I learned about macros in org-mode and I have found a half-solution:
#+MACRO: himg #+HTML: $3
#+MACRO: limg #+LATEX:
\begin{figure}\label{$1}\includegraphics[width=\textwidth]{$2.pdf}\caption{$3}\end{figure}
I then call each ma
Hi Martin,
M writes:
> One example of helpful integration: if I send or get an e-mail which I want
> to follow-up on later, I want to track that in org-mode and I want to have a
> way to quickly find the original message in Outlook again (to reply or
> forward it or whatever), which can be done
Hi Suvayu,
suvayu ali writes:
> Glad to see another HEP researcher using org-mode. :)
Greetings!
> Sadly my solution is a big bad hack:
>
> #+begin_latex
> \begin{figure}
> \centering
> \begin{tabular}{c}
> \includegraphics[]{plots/file1.eps} \\
> \includegraphics[]{plots
I'm using GNU emacs 23.2+1-7 and org-mode 6.27a-1 on Debian.
I want to put two images in one figure for LaTeX/PDF export but can't
find a way. Googling has not born fruit. I have tried a few naive
things like:
#+caption: Caption.
#+label: fig:figure
[[./img1.pdf]][[./img2.pdf]]
or:
#+caption:
henry atting writes:
> I do not succeed in generating an inline image as a result of a
> python code block. The code itself works, C-c C-c generates the
> according picture, but only in my home directory. The code block:
Could you not just follow the block with a hand-written link to the
output
Hi,
How can I tell org-mode to use different file formats for an image for
different purposes?
What I really want is a scalable format to embed "line art" type images
(plots) into org-mode documents so that they can display inline and in
both HTML and LaTeX exports. SVG seems good for the first
73 matches
Mail list logo