^\\*+$" (buffer-substring
(point-at-bol) (point
(- (match-end 1) (match-beginning 1)))
((and (bolp)
(looking-at org-outline-regexp))
(- (match-end 0)
HEADLINE-TEXT
\label{sec-1-3}\\
CONTENTS
Or:
\item HEADLINE-TEXT
\label{sec-1-3}
CONTENTS
The first variant means modifying the headline-label variable (or
something like that) in org-latex-headline. The second is less messy to
implement.
Cheers,
Anders Johansson
Nicolas Goaziou writes:
Hello,
Anders Johansson writes:
Currently low-level headlines in latex export to:
\item HEADLINE-TEXT
\label{sec-1-3}
CONTENTS
Not really. Export respects blank lines between the headline an its
contents. So
* Headline
Contents
will be exported as
ts don't have as wide stars as spaces we get a mismatch. But I don't know
how this can have worked better before.
Doesn't anyone else use variable-pitch-mode for org and suffer from this?
Cheers,
Anders Johansson
Anders Johansson gmail.com> writes:
>
> Tobias Getzner gmx.de> writes:
>
> >
> > Hello,
> >
> > After updating to Emacs 24.4 and org-mode 20141020, I’ve noticed that
> > org-indent-mode now underindents item bodies when variable-pitch-mode
Anders Johansson gmail.com> writes:
>
> Anders Johansson gmail.com> writes:
>
> >
> > Tobias Getzner gmx.de> writes:
> >
> > >
> > > Hello,
> > >
> > > After updating to Emacs 24.4 and org-mode 20141020, I’ve notic
has greater knowledge of the code could see if this
is really the case and fix it.
I can provide more debugging output and examples if needed and if others
can't reproduce this.
Greetings,
Anders Johansson
Hi,
2013-02-10 20:31, Nicolas Goaziou skrev:
Hello,
Anders Johansson writes:
When I'm exporting to icalendar, the priorities of todo items (or
perhaps any items) don't get carried through correctly. It always
falls back to priority 5 (the default).
After doing some edebugging I
eveals that nil is interpreted as a
string, "nil", in the info-plist and therefore evaluates as true in the
check in org-html--build-head:
(when (plist-get info :html-head-include-default-style)
(org-element-normalize-string org-html-style-default))
(from: ox-html.el:1448)
Gr
ifficult for me.
If someone else thinks this is a good idea I think there are more people
than me that would find it quite useful though.
Greetings from Sweden,
Anders Johansson
l.
I don't understand much more of this really.
Is it a bug? Have I misunderstood something?
Greetings,
Anders Johansson
ts (but I also
made it work for latex).
I chose to implement it via a unicode-bracket ❰❙❱, like this:
❰Simple comment❱
❰Text that is commented on❙Comment❱
❰[Author] Simple comment❱
❰Commented text❙[Author] Comment❱
These are inserted with a custom command to make it easy (including an
author-history-list selectable with helm).
I've put it up in a gist if anyone finds it useful:
https://gist.github.com/andersjohansson/6baa1e42ad4d7353e125
Cheers,
Anders Johansson
Anders Johansson gmail.com> writes:
> I hacked together something like this a while ago when I needed to add
> inline-comments that would later be exported as odt-comments (but I also
> made it work for latex).
>
> I chose to implement it via a unicode-bracket ❰❙❱, like
Hi,
I have been using "degenerate" inlinetasks with empty titles but many
tags for implementing a kind of coding scheme for coding texts for
qualitative data analysis. Like this:
-
Some text that I want to tag (The inlinetask in my scheme refers to the
paragraph above it)
***
Den 2015-04-10 18:24, Nicolas Goaziou skrev:
Hello,
Anders Johansson writes:
I have been using "degenerate" inlinetasks with empty titles but many
tags for implementing a kind of coding scheme for coding texts for
qualitative data analysis. Like this:
-
Some text that I w
s folded: expand it.
((eq 'outline (get-char-property (1+ start) 'invisible))
I don't know if this has any unwanted side-effects though. Or if this
should be avoided for some reason.
This is using the latest org from git.
Cheers,
Anders Johansson
Emacs : GNU Emacs 24.4.1 (x86_6
ers org-zotxt and org-pdcite, ox-odt for converting to
odt, and then the tool http://zotero-odf-scan.github.io/zotero-odf-scan/ to
convert the generated citations like { | Smith, (2012) | |
|zu:2433:WQVBH98K} to Zotero citation marks in the odt-file.
Perhaps someone else will have use for this as well,
Cheers,
Anders Johansson
t's special value.
Fix: Explicitly set "org-use-fast-tag-selection" to t in the
let*-construct in "org-use-fast-tag-selection", as is now done with
"org-fast-tag-selection-single-key".
Greetings,
Anders Johansson
-end) (point
But perhaps this is too unstable? (Although it could be expected from
the comments above).
Cheers,
Anders Johansson
Great!
Taking a look at your solution I realize where the bug lay as well.
Level is unimportant, it just scanned too long previously (it should
only look if the next headline contains "END", not look for the next
headline with "END").
Regards,
Anders Johansson
Den mån
quot;langle" and "rangle". I guess it seems pretty confusing
when you try to use the latex-macros you are used to.
Maybe these aliases could also be added, like what is done for e.g. "clubs":
("langle" "\\langle" t "⟨" "<" "<" "⟨")
("rangle" "\\rangle" t "⟩" ">" ">" "⟩")
Cheers,
Anders Johansson
in "a_{b}c" (or sometimes
"a_bc", but should be "a_{bc}") and gives the message "Unfolding
invisible region around point before editing".
Setting org-catch-invisible-edits to nil let's cdlatex do it's work so I
guess an easy solution would be
in "a_{b}c" (or
sometimes "a_bc", but should be "a_{bc}") and gives the message
"Unfolding invisible region around point before editing".
Setting org-catch-invisible-edits to nil let's cdlatex do it's work so
I guess an easy solution would be
quot; folding
which is the problem, regardless of org-check-before-invisible-edit. The
cursor jumps out of the {}-brackets after the first character, when the
hiding/folding is done. I have no idea what should be done about this.
Cheers,
Anders Johansson
ctivated. It could as well be:
(completing-read "Tags: "
'org-tags-completion-function
nil nil current 'org-tags-history)))))
Cheers,
Anders Johansson
2013-11-01 02:33, Eric Abrahamsen skrev:
Anders Johansson writes:
Greetings,
I want to use ido everywhere and wante
ouldn't use
ido in this case either
Cheers,
Anders Johansson
2014-02-23 16:20, Anders Johansson wrote:
Hi,
I used the configuration:
org-catch-invisible-edits 'show
org-pretty-entities t
together with org-cdlatex. This breaks the insertion of subscripts
and superscripts through org-cdlatex because _{} is fontified and the
{} are hidden so typin
he case of wanting to
enter a date a few days back and preferring the future otherwise.
Perhaps this would add to much complexity to org-read-date, with little
gain, and there may certainly be complications I haven't thought of, but
I think it would be an interesting option for many people.
Cheers,
Anders Johansson
the same thing as just
entering "/" in LaTeX).
So it should rather be: ("slash" "\\slash" nil "/" "/" "/" "/")
Could this be changed without breaking people's documents?
Cheers,
Anders Johansson
A hack to get ido selection for multiple tags. It uses
ido-completing-read-multiple (available here and included below:
https://gist.github.com/mgalgs/1329188) to allow for completing one tag
at a time and ending it by typing ":".
I haven't tested it much and it might possibly break things (or
-environment:
(org-tag-persistent-alist nil)
Cheers,
Anders Johansson
f pdf-cmd) but doesn't.
An ugly patch to fix it is attached (this is ugly because it repeats the
line:
(org-babel-process-file-name (concat in-file ".eps"))
)
Cheers,
Anders Johansson
--- "/home/aj/H\303\244mtningar/ob-ditaa.el"2014-05-22 17:15:35.489071991
+020
epend on the appearance of org-quote and org-verse (I have them
as font-lock-comment-face, just a slightly different colour, on
top of which italics etc. look good).
--
Anders Johansson
This means fontification of emphasis, links etc. is kept in quote
and
verse blocks even with org-fontify-quote-and-verse-blocks non-nil.
TINYCHANGE
---
lisp/org.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/org.el b/lisp/org.el
index 3290a2b..282c078 100644
---
/archive/html/emacs-orgmode/2014-12/msg00014.html
--
Anders Johansson
fancy tag-completion via helm that optionally fetches info
from the codebook file.
Another approach for keeping a sort of index is John Kitchin’s
org-db
http://kitchingroup.cheme.cmu.edu/blog/2017/01/03/Find-stuff-in-org-mode-anywhere/
Current code:
https://github.com/jkitchin/scimax/blob/ma
I just noticed a place where it would be appropriate to use
regexp-opt instead of doing:
(concat ":\\(" (mapconcat 'car value "\\|") "\\):"
regexp-opt promises to be more efficient.
--
Anders Johansson
>From 2a70a709dcbdb1ff7d00b20de8410935d725ac70
unwanted effects from using
~insert-file-contents~, but otherwise this seems to me to be a
more correct solution.
Cheers,
Anders Johansson
hat org-get-tags doesn't fetch tags for inlinetasks, is
this really right? Otherwise, the small patch below gets me the right
behaviour (tags returned also for inlinetasks) for these tests.
Best,
Anders Johansson
---
lisp/org.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --
> Thanks for reporting! You encountered a bug in org-get-tags. It ignored
> inlinetasks in some cases. Fixed in 7a14d6035.
Thank you!
It works very well now, and indeed the counting and collection of
tagged extracts (done with org-scan-tags) is much quicker now with
cache enabled. I tested with so
e best solution though.
Perhaps this is needed also in org--get-local-tags where a similar
thing is done? (but only the fontification seems to matter there)
Best,
Anders Johansson (who is otherwise as mentioned in an earlier
discussion very appreciative of org-element-cache)
> I don’t know if this is the best solution though.
> Perhaps this is needed also in org--get-local-tags where a similar
> thing is done? (but only the fontification seems to matter there)
I now noted that this differed in Ihor's org-fold-universal-core
branch which I use and main (org-get-tags ha
against the idea of saving options with
transient. So still some work to do there.
By the way. Getting started with transient is way easier with this tutorial
than with the rather abstract info pages:
https://github.com/magit/transient/wiki/Developer-Quick-Start-Guide
Best,
Anders Johansson
Hi,
>We should also get pandoc to support updated org-cite syntax.
> https://github.com/jgm/pandoc/issues/7329
Now that pandoc has org-cite support, I found it simpler to reuse
ox-pandoc (https://github.com/emacsorphanage/ox-pandoc) and just do
this very simple configuration. ox-pandoc exports to
Hi,
I noticed that this commit:
b1a570b3b org-agenda: Fix regression when diary sexp timestamps are ignored
made a call like (org-at-timestamp-p 'agenda) match against the regexp
`org-element--timestamp-regexp`. However, this regexp doesn’t have the
match groups setup as the others (`org-ts-regex
---
lisp/org-cycle.el | 2 +-
lisp/org-keys.el | 4 ++--
lisp/org.el | 1 +
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/lisp/org-cycle.el b/lisp/org-cycle.el
index d2fcc356c..df0a3761a 100644
--- a/lisp/org-cycle.el
+++ b/lisp/org-cycle.el
@@ -811,7 +811,7 @@ (defun org-c
Fixes #26, where fontification could make the matching and extraction of heading
components fail.
---
lisp/org.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lisp/org.el b/lisp/org.el
index 0f31e7794..ff17bf001 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -6167,8 +616
---
lisp/org-fold-core.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/org-fold-core.el b/lisp/org-fold-core.el
index 6ea374498..121c6b5c4 100644
--- a/lisp/org-fold-core.el
+++ b/lisp/org-fold-core.el
@@ -592,7 +592,7 @@ (defun org-fold-core--property-symbol-get-create
example
`with-silent-modifications`.
I didn’t want to create a patch, since it would involve whitespace changes
on quite a lot of places, but I thought it could be good to highlight now
that org-fold just got merged.
Best,
Anders Johansson
I found an easily solved bug in org-num.
This happens when org-num-skip-commented is non-nil.
When creating a new headline, often org-num--skip-value is invoked
before any headline text is created. This means that ‘title‘ is nil
and the string-match check breaks. Checking if title is non-nil fixes
tag)) t hashed
Best,
Anders Johansson
task, so `inlinetask-at-task-p` is still t and the loop continues
infinitely in this fashion.
I don’t have a good suggestion for a solution that would still solve the
problem addressed in that commit.
Best,
Anders Johansson
Something like this could work. Just ensuring that we haven’t ended back at the
start of the current (degenerate) inlinetask. I don’t know if this would be the
most elegant solution though. I also considered whether org-inlinetask-goto-end
should really move to the point after the last line of a
in org. Feel free to use it as
suitable (I have FSF copyright assignment for emacs).
Best,
Anders Johansson
;;; oc-pandoc.el --- Export org to pandoc markdown with citations -*- lexical-binding: t; -*-
;; Copyright (C) 2021 Anders Johansson
;; Author: Anders Johansson
;; Created: 2021-06-23
> Anders, I just want to say that I tested this out and it works great. It's
> quite shocking, actually, to have such an easy path from org to odt with live
> citations. I'd love to see this stuff in MELPA or otherwise made more
> generally accessible, as i think it fills a substantial need.
H
org-duration-from-minutes was called with canonical = t, but without
providing a corresponding format only using the canonical units. This
broke if the user’s org-duration-format used other than the canonical units.
---
lisp/org-agenda.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff
Hi,
Oh, I sent a response but failed to send it to the list and only to
Nicolas (hard to do things right using the gmail web interface)
I include it below:
> I think a proper fix would be to change `org-duration-from-minutes' so
> it removes any unknown unit from what is provided from fmt or
> `or
plied.
For my case, org-duration-format is (("m") ("w") ("d") (special . h:mm)).
This call to org-duration-from-minutes (like in org-agenda-format-item):
(org-duration-from-minutes MINUTES nil t)
will then result in a full format amounting to (("d")), (since
&qu
58 matches
Mail list logo