Re: Using org-latex-preview in other major modes

2024-04-22 Thread Tony Zorman
/path/to/«pkg» to LaTeX's search path, but that will never happen :)) > 3. How to force precompilation to occur in the default-directory instead > of in /tmp: > >Based on 1 and 2, the easiest way would be to add an \input{} or >\include{} statement to the preamble. The current test is very >simple, you can even place it in a LaTeX comment and it should work. This does indeed work; thanks! Tony -- Tony Zorman | https://tony-zorman.com/

Re: Using org-latex-preview in other major modes

2024-04-21 Thread Tony Zorman
On Tue, Apr 09 2024 22:06, Tony Zorman wrote: > As a very brief summary, one currently needs to—in addition to supplying > a preamble and a way to recognise maths and environments—patch the > following functions: > > · org-latex-preview--place-from-elements > · org-

Re: Using org-latex-preview in other major modes

2024-04-09 Thread Tony Zorman
.el would need to be nudged to more easily facilitate this kind of integration. After that I guess there's still the issue of caching and numbering, but I'll cross that bridge once we get to it :) Tony -- Tony Zorman | https://tony-zorman.com/

Re: Using org-latex-preview in other major modes

2024-04-07 Thread Tony Zorman
ems to require a bit more work. Then again, maybe I'm being too negative—after taking another quick look at the code I think you're right in that this should not be impossible to overcome. I'll try to conjure up some time this week to get live previews up and running; will report back if I hit any unforeseen major bumps. Tony -- Tony Zorman | https://tony-zorman.com/

Using org-latex-preview in other major modes

2024-04-07 Thread Tony Zorman
tinue prodding the code a little bit and will report back with any bumps that are hit along the way. Tony [1]: https://abode.karthinks.com/org-latex-preview/latex-preview-everywhere.html latex-latex-preview.el Description: application/emacs-lisp -- Tony Zorman | https://tony-zorman.com/

Re: The org--math-p advice around texmathp

2024-03-16 Thread Tony Zorman
x. Ah indeed, this is a good point. I guess I would wish for more granular advice, but I recognise the difficulty in getting this exactly right. Thanks for your patience! Tony -- Tony Zorman | https://tony-zorman.com/

Re: The org--math-p advice around texmathp

2024-03-15 Thread Tony Zorman
On Fri, Mar 15 2024 14:14, Ihor Radchenko wrote: > Tony Zorman writes: > >>> Because Org mode syntax is not LaTeX and `texmathp' assumes that we are >>> inside >>> LaTeX buffer. So, we first check using Org syntax whether the point is >>> inside la

Re: The org--math-p advice around texmathp

2024-03-14 Thread Tony Zorman
On Wed, Mar 13 2024 12:58, Ihor Radchenko wrote: > Tony Zorman writes: > >> I recently stumbled upon the fact that Org has some around advice for >> texmathp: org--math-p. For reasons that aren't entirely clear to me, >> this has some special handling for cdlate

The org--math-p advice around texmathp

2024-03-12 Thread Tony Zorman
esort? I'm asking because I wrote a small package to switch between environments, and the position information that texmathp-why provides is very useful in choosing the closest environment. Thanks! Tony -- Tony Zorman | https://tony-zorman.com/

Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2023-03-28 Thread Tony Zorman
.el unprettifies a rendered LaTeX fragment. This is very convenient when, for example, going through a rendered document by pressing C-n or , as unprettifying in this case is (at least in my case) a mistake more often than not. Thanks! Tony -- Tony Zorman | https://tony-zorman.com/

Re: [BUG] link abbreviations do not work inside property drawers [9.5.2 (release_9.5.2-38-g682ccd @ /home/ignacio/repos/emacs/lisp/org/)]

2022-04-27 Thread tony aldon
I quietly followed the conversation. Thank you for the advice. On Wed, Apr 27, 2022 at 9:06 AM Ignacio Casso wrote: > > Ihor Radchenko writes: > > > Ignacio Casso writes: > > > >>> A better approach could be using org-link-expand-abbrev. It is an API > >>> function and should be forward-compa

Re: [PATCH] ol: Fix org-link-search

2022-04-21 Thread tony aldon
On Thu, Apr 21, 2022 at 12:23 PM tony aldon wrote: > You're right I was effectively missing affiliated keywords and so my > patch is wrong. > > Thank you for your quick feedback and insight. > > Have a nice day, > Tony Aldon > > On Thu, Apr 21, 2022 at 7:39 AM

[PATCH] ol: Fix org-link-search

2022-04-20 Thread tony aldon
Hey everyone, If I'm not wrong, name defined after #+NAME: should be match first before trying a fuzzy search in the function `org-link-search`. You can find the patch in attachment (hope it feat in Tiny changes [though I also sent a request today for the FSF agreement]). Have a nice day.

when ellipsis are "removed", org-cycle doesn't work "correctly" on list

2021-11-11 Thread tony aldon
97 0 \"- \" nil nil nil 131) (109 2 \"+ \" nil nil \"tag\" 131)) But if you removed the ellipsis (as specified previously), and you collapse the first item, evaluating `(org-list-struct)` with point on the first item gives you: ((1 0 "- " nil "[X]&qu

Re: [O] part of table name in remote(NAME, ...) is mangled by org-edit-special

2019-04-15 Thread Tony E. Bennett
On Mon, Apr 15, 2019 at 6:30 AM Nicolas Goaziou wrote: > > "Tony E. Bennett" writes: > > > A reference to a table name such as '2019-Q1-X' is rewritten to '2019-@1 > $17-X' > > by org-edit-special. And also for '2019_Q1_X'. v

[O] part of table name in remote(NAME, ...) is mangled by org-edit-special

2019-04-14 Thread Tony E. Bennett
,$total) A workaround is to use 1Q instead of Q1 in table name. *--tony*

Re: [O] org-open-line inconsistent treatment of marking characters '#' and '*'

2019-01-13 Thread Tony E . Bennett
Nicolas Goaziou writes: > Hello, > > Tony E. Bennett writes: > >> How would org verify column 1 is a special column beyond just checking for >> [#*$] which it does already ? > > It would require to check every row. For example, there is no special &

Re: [O] org-open-line inconsistent treatment of marking characters '#' and '*'

2019-01-12 Thread Tony E . Bennett
Nicolas Goaziou writes: > Tony E. Bennett writes: > >> org-open-line replicates the table marking character '#' (if present) into >> the new table line but does not do the same for '*'. > OK, I applied the change in maint. However, I tend to think w

[O] org-open-line inconsistent treatment of marking characters '#' and '*'

2019-01-10 Thread Tony E . Bennett
line. Within defun org-table-insert-row, changing this line: ;; Fix the first field if necessary (when (string-match "^[ \t]*| *[#$] *|" line) to: ;; Fix the first field if necessary (when (string-match "^[ \t]*| *[#*$] *|" line) gives the expected behavior. Can this be fixed? thanks -- --tony

Re: [O] emacs initialization files in org mode

2013-01-11 Thread Tony Day
old emacs version and half is the shiny new repository. https://github.com/tonyday567/dotemacs.org for my messy orgish dot files, which are mostly orgified https://github.com/jwiegley/dot-emacs, or eric's orgified starter kit: https://github.com/eschulte/emacs24-starter-kit Tony

Re: [O] org bingo

2013-01-11 Thread Tony Day
updated. thanks guys and gals :) https://gist.github.com/4343164 tony day tonyday...@gmail.com On 7 Jan 2013, at 18:16, Achim Gratz wrote: > Yasushi SHOJI writes: >> + (org-agenda-buffer (if (buffer-live-p org-agenda-buffer) >> + or

Re: [O] collaborating between org-mode and MS Word users

2012-12-30 Thread Tony Day
"Julian Burgos" writes: > - Is there a better way to have a non-org mode use to edit/correct a > org-mode document and then bring back the corrections to an org-mode > document? If MS Word users can't tolerate plain text org-mode files then I can't think of many shortcuts. This works well when

Re: [O] org reserved and special words in drawers

2012-12-30 Thread Tony Day
Bastien writes: > > I would first ask myself "what is the new org format for? > Is it worth implementing this?" > > Best, My motivation is to have an ability to create a virtual org file. My workflow involves sharing bits and pieces of plain text with non-org users and, right now, this means h

Re: [O] org reserved and special words in drawers

2012-12-28 Thread Tony Day
> Bastien writes: >> In other words, we could then /apply/ org-mode >> on a document rather than transforming a document into an org >> document. > What we may think about is a "Org readable exchange format (oref?)", > which would take the output of Nicolas' parser, export it in Org-mode > using

Re: [O] org bingo

2012-12-20 Thread Tony Day
> > I added an entry in org-hacks.org: > http://orgmode.org/worg/org-hacks.html#sec-1-1-1 I never knew about the org-hacks section. *adds a TODO*

[O] org bingo

2012-12-19 Thread Tony Day
I have exactly 386 TODO entries and may as well introduce some randomness to get to them. org-random-entry: select and goto a random todo entry. Prefix allows you to select which todo keyword. https://gist.github.com/4343164

Re: [O] indentation across multiple source blocks

2012-12-18 Thread Tony Day
On 18 Dec 2012, at 22:55, Bastien wrote: > Hi Tony, > Hi Bastien, Thanks for the flurry of activity :) > Tony Day writes: > >> Is there an easy way to preserve indentation for a source block taking >> into account previous blocks? > > No. Besides, I don&

[O] indentation across multiple source blocks

2012-12-17 Thread Tony Day
Any help much appreciated. Tony

Re: [O] org-export-handle-include-files

2012-12-08 Thread Tony Day
On 9 Dec 2012, at 02:24, Nick Dokos wrote: > > >> Is there a method where you can use >> #+INCLUDE without overwriting the current buffer? >> > > You can do what org-export-preprocess-string does: create a temp > buffer, insert the contents of the original buffer and call > org-export-handle

[O] org-export-handle-include-files

2012-12-07 Thread Tony Day
behaviour? Is there a method where you can use #+INCLUDE without overwriting the current buffer? tony tonyday...@gmail.com

[O] Adding a class to html export of a list

2012-12-07 Thread Tony Day
lace a way to do it, other than to drop back to raw html (and I love my plain lists). Any help appreciated. tony

Re: [O] "What's new" in an orgmode based website

2012-12-07 Thread Tony Day
"%s/%s" (ob:path-to-root) (ob:post-htmlfile (ob:get-last-post "Tips" 3))){/lisp}][{lisp}(ob:post-title (ob:get-last-post "Tips" 3)){/lisp}]] - [[file:{lisp}(format "%s/%s" (ob:path-to-root) (ob:post-htmlfile (ob:get-last-post "Tips" 4))){/lisp}][{lisp}(ob:post-title (ob:get-last-post "Tips" 4)){/lisp}]] Tony

[O] org reserved and special words in drawers

2012-11-06 Thread tony day
y adding a header? One solution that comes to mind is to define an item (or a subtree in other words) as all content until the next properties drawer. Is there anything else missing from this list? Tony

[O] Header Jumping

2012-10-24 Thread tony day
ive) (if (equal (point) (bookmark-get-position "org-jumped-from")) (bookmark-jump "org-jumped-to") (if (bookmark-get-position "org-jumped-to") (bookmark-jump "org-jumped-from" (bind-key "C-. j" 'org-jump) (bind-key "C-. l" 'org-jump-back) #+end_src tony

[O] indentation following yas snippet insert

2012-10-23 Thread tony day
-refresh-indentation-around-point" command? I've looked and looked and the closest I can find is org-indent-indent-buffer. But this seems a little over-the-topish for the task. Tony

Re: [O] org-anywhere

2012-10-18 Thread tony day
On 18 Oct 2012, at 22:50, Rasmus wrote: > Perhaps something like fold mode of AUCTex would be useful. I.e. all > deadline markers would be replace by a [d] which folds out when the > cursor is on [d]. It might even be possible with the magic which > replaces \delta with δ in org buffers. . .

[O] org-anywhere

2012-10-17 Thread tony day
ve a go at fixing some of this but would like to know if it would be generally useful to others, and what priorities may be. Tony

[O] [PATCH] * org-insert-link: use ido when inserting links

2012-10-12 Thread tony day
Please do not add unrelated "features" during a patch review. By the > way, I'm not sure to agree with you: it /is/ meaningful to have > user-defined link abbrevs before default types. Excellent advice (yes, even the nitpicks :) From 31c9855ca6db95d10ca09611f749d74074b19b0

[O] [PATCH] * org-insert-link: use ido when inserting links

2012-10-11 Thread tony day
org.el (org-insert-link): removed a list within the list of link creation that was causing a bug when using ido. Removed the hard coded iswitch and ido switches. Changed the order of prefixes so http came up first. (org-iread-file-name): created a function that can use ido-read-file-name if flag

Re: [O] [PATCH] org-insert-link: allow ido usage when inserting links

2012-10-11 Thread tony day
(mapcar 'car abbrevs) (mapcar 'car org-link-abbrev-alist))) (setq all-links (append (mapcar 'cadr org-stored-links) (mapcar (lambda (x) (concat x ":")) all-prefixes) (mapcar 'car org-stored-links))) ;;(setq all-links (delete nil all-links)) (print (loop for link in all-links collect (list link))) #+end_src Tony

[O] link creation, ido usage, and headers

2012-10-11 Thread tony day
has to be present in all target headlines, inheritance will not be considered. #+end_quote Rerouting the org refile technology to the link tech may be a one liner, or may be hard. Others will have a better sense of the scope. Tony

[O] [PATCH] org-insert-link: allow ido usage when inserting links

2012-10-10 Thread tony day
From a8f301277e15bc786fa63bbcce3ba1afb85c46aa Mon Sep 17 00:00:00 2001 From: Tony Day Date: Mon, 10 Sep 2012 13:54:38 +1000 Subject: [PATCH 41/41] org-insert-link: allow ido usage when inserting links * lisp/org.el (org-insert-link): added all-links to cleanly create prefix+st (org-i-read-file

[O] Macro and babel

2012-09-18 Thread tony day
C-c C-c? That would be an awesome feature, basically adding macro capabilities to every babelable language. Or am I missing something? Tony

[O] [PATCH] org-insert-link: allow ido usage when inserting links

2012-09-14 Thread tony day
. The other thought here is to add an 'org:' link type so you can fire up ido just like org-capture (not sure what non-ido org-capture looks like). This is my first patch, so please let me know if I'm not doing things right. Tony [PATCH] org-insert-link: allow ido usage when

[O] PATCH: using ido when inserting links

2012-09-14 Thread tony day
add an 'org:' link type so you can fire up ido just like org-capture (not sure what non-ido org-capture looks like). This is my first patch, so please let me know if I'm not doing things right. Tony 0001-org-insert-link-allow-ido-usage-when-inserting-links.patch Description: Binary data

[O] Problems with pdf export (and bibtex) after upgrading to TeXLive-2011 on Lion

2011-09-22 Thread Tony Ware
11/texmf.cnf. Apparently, the default is openout_any=p, where the p stands for 'paranoid', and as a result bibtex refuses to write the .blg file. Cheers, Tony Ware -- http://www.math.ucalgary.ca/~aware

[Orgmode] GtD with org-mode and a Palm PDA

2010-03-27 Thread Tony McC
ows and the shell script would need to be replaced by a batch file, but I don't imagine those modifications would be too difficult. I hope this is of some use, I have certainly found the process helpful in my own work. Tony P.S. I know Palm devices are old fashioned now, but as long as

[Orgmode] Folding comments under clock entries

2009-10-30 Thread Tony Ware
6 This time wasn't wasted either :END: It would be great to be able to see this as a list of clock entries only (with trailing ellipses perhaps) and to be able to expand to see the text if desired. Thanks, Tony -- http://www.math.ucalgary.ca/~aware _

[Orgmode] find-library-name, used by org-reload, missing on XEmacs

2009-03-31 Thread Tony E . Bennett
filename) (defun find-library-name (library) (find-library library nil 'find-library-name-helper)) )) thanks --tony ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-org

[Orgmode] XEmacs complains about a few define-key sequences in org-mouse.el

2009-03-30 Thread Tony E . Bennett
define-key org-agenda-keymap (if (featurep 'xemacs) [(control mouse-4)] [C-mouse-4]) 'org-agenda-earlier) Here is full set: org-mouse.pat Description: org-mouse.pat thanks --tony ___ Emacs-orgmode mailing list Remember: use `Reply All

[Orgmode] Re: Installing on windows

2009-02-05 Thread Tony Mc
the unpacking, batch compiling, installing into my elisp directory and cleaning up temporary files afterwards. You will probably need to change some of the paths (I have Emacs installed in C:\Emacs and my customization directory is D:\.emacs.d I hope that is of some help to you. Tony org_update.b

[Orgmode] Publish multi-file project to LaTeX

2008-11-05 Thread Tony
each .org file into a .tex file which would be processed separately by latex. Thanks, Tony ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode

[Orgmode] Re: Updating OrgMode

2007-11-14 Thread Tony Mc
ble INFOPATH set to include ~/.elisp.d/info before the standard emacs info directory, so that info in emacs picks up the documentation for the latest version. HTH, Tony Batch file org_update.btm --- @ECHO OFF REM Update the Emacs org-mode automatically REM