Re: Playing down the text in org-mode

2022-01-13 Thread Juan Manuel Macías
fatipa...@tutanota.com writes: > but with the variation that the text is also within the square brackets You can use inline footnotes, but I'm afraid you couldn't stop using "fn" here (unless you hack the Org code). However you can use a convention, something like: Lorem[fn:mg1:blah blah blah]

Re: Playing down the text in org-mode

2022-01-14 Thread Juan Manuel Macías
fatiparty--- via "General discussions about Org-mode." writes: > What is the face name associated with inline footnotes? M-x describe-face RET Is your friend. Place the cursor on any inline note, run this command and you will see that the face you need to modify is called `org-footnote'. M-: (in

Re: Playing down the text in org-mode

2022-01-14 Thread Juan Manuel Macías
fatipa...@tutanota.com writes: > But this is giving "error: Invalid face, org-footnote" Try this (I forgot to mention this, sorry): (with-eval-after-load 'org (set-face-attribute 'org-footnote nil :foreground "d2691e" :height 0.8 :extend t :underline "red"))

Re: Playing down the text in org-mode

2022-01-14 Thread Juan Manuel Macías
fatiparty--- via "General discussions about Org-mode." writes: > Is this requirement just associated with org-footnote, as it is not usual to > use "with-eval-after-load" > to apply customisations. It's a face defined by org, and org must be loaded before. You can also put before, simply, (requi

Re: Playing down the text in org-mode

2022-01-14 Thread Juan Manuel Macías
fatipa...@tutanota.com writes: > That works well.  But although I am atttempting to remove the > background and change the foreground colour, the old colours remain. > > (with-eval-after-load 'org >   (set-face-attribute 'org-footnote nil > :foreground "d2691e" :background 'nil :underline 'ni

Re: Playing down the text in org-mode

2022-01-14 Thread Juan Manuel Macías
fatiparty--- via "General discussions about Org-mode." writes: > It is much better now.  In Emacs, footnotes have a background  color.  I > still > can see the footnote background colour with ":background 'nil". What theme are you using? Usually, org-footnote does not have a defined background

Re: Playing down the text in org-mode

2022-01-14 Thread Juan Manuel Macías
fatiparty--- via "General discussions about Org-mode." writes: > Doing describe-face on the footnote I have "Background: unspecified" So org-footnote does not have a defined background, which is usual. You don't need to remove any background color. You should be seeing in your notes the backgrou

Re: org-->html text between @ should be red.

2022-01-15 Thread Juan Manuel Macías
Uwe Brauer writes: > Can I have a similar setting when exporting an org file to html via the > «normal» html exporter? Using a custom filter? #+begin_src emacs-lisp (defun foo (text backend info) (when (org-export-derived-backend-p backend 'html) (replace-regexp-in-string "@\\([^@]*\\

Re: org-->html text between @ should be red.

2022-01-15 Thread Juan Manuel Macías
Uwe Brauer writes: > Thanks very much it works as expected. However I just realized (and > this is true also for the org-mime filter that the reg-exp has a flaw. > > I used the text > > > =email:o...@mat.ucm.es= > > So there is only one @, nevertheless the exporter translated that to > email:ou

Re: org-->html text between @ should be red.

2022-01-15 Thread Juan Manuel Macías
Uwe Brauer writes: > (add-to-list 'org-export-filter-plain-text-functions 'my-html-red) > > How could I remove something from a list? I think this would work: (setq org-export-filter-plain-text-functions (remove 'my-html-red org-export-filter-plain-text-functions)) Anyway, I recommend t

Re: Depreciating TeX-style LaTeX fragments

2022-01-16 Thread Juan Manuel Macías
Colin Baxter writes: > Ah, LaTeX3 - whatever happened to that? If you're a LaTeX user, you're already using LaTeX3 to a very high extent, even if you don't see it. The current idea is not to replace LaTeX2e with LaTeX3 as a new version, but to gradually incorporate elements of LaTeX3 into the LaT

[ann] org-font-spec-preview (preview fonts and test open type features)

2022-01-16 Thread Juan Manuel Macías
Hi, I've polished some raw ideas that I shared here a few days ago, and I have written this little package: https://gitlab.com/maciaschain/org-font-spec-preview org-font-spec-preview allows you to preview arbitrary text strings in a chosen font (or generate a complete specimen) as well as test o

Re: latex block tikz to svg

2022-01-17 Thread Juan Manuel Macías
Hi Edouard, Edouard Debry writes: > I would like to find a way to generate svg images from latex src blocks > (using tikz) which works and is compatible with default orgmode settings > for latex export (at least does not break it) > > Did you experience such issues ? do you have some workings set

Re: change the fontsize when exporting to HTML, header not really changed

2022-01-20 Thread Juan Manuel Macías
Hi Uwe Uwe Brauer writes: > Now some text is changed as expected the text in the header not really. > > Any idea what would be a more appropriate setting? Taking into account that h1 is the title, h2, h3, etc. are the classes for the different header levels. You can put something like this: #+H

Re: change the fontsize when exporting to HTML, header not really changed

2022-01-20 Thread Juan Manuel Macías
Uwe Brauer writes: >But it did not work neither. Did you test it? I am on GNU Emacs master >and git master (ok several weeks old, but still recent enough I'd say) I hadn't seen Eric's message, but what he says makes a lot of sense: are you applying a separate style sheet, perhaps with a *.setup d

Re: Exporting Org file to Html with collapsable headings

2022-01-21 Thread Juan Manuel Macías
ZIPING CHEN writes: > I am working on a large org file with exceptional number of > subheadings. For example, I may have org headings inside headings up > to 20 or 30 layers deep. > > I may have many things like this in the middle of the file. > ** a new heading. > > When I

Re: [O] [RFC] Creole-style / Support for **emphasis**__within__**a word**

2022-01-24 Thread Juan Manuel Macías
Hi Vincent, Vincent Belaïche writes: > Hello, > > Sorry to dig out this almost 8 year old discussion, but after looking > into the git HEAD Org Mode manual (v9.5 or so) (info "(org) Emphasis and > Monospace") node, and after looking into the mail archive I could not > find any answer to this ques

Re: Missing the second '}'

2022-01-24 Thread Juan Manuel Macías
Hi Sharon, Sharon Kimble writes: > Hi folks. > > In a document that I'm compiling I seem to have failed to close the '{' > and '}', and the second one isn't in the document. If I write '\label{}' > then it succeeds, but at a couple of places in the document this show > '\label{'. > > How can I fi

Re: [RFC] Creole-style / Support for **emphasis**__within__**a word**

2022-01-25 Thread Juan Manuel Macías
Hi Vincent, Vincent Belaïche writes: > My conlcusion is that for what I am after, an evolution of org-mode > would be preferable, maybe I contribute something someday, so that > writing one of the following would make it: > >~--my-option=~\relax{}/option value/ >~--my-option=~@@:@@/option

Re: [PATCH] Intra-word markup: \relax

2022-01-28 Thread Juan Manuel Macías
Max Nikulin writes: > I have an idea how to implement *intra*/word/ markup with minimal > change of Org syntax. At first I had a hope that it is enough to > introduce \relax entity that expands to empty string, but it does not > work for second part of words: *intra*\relax{}/word/ is exported to >

Re: date format in agenda view

2022-01-28 Thread Juan Manuel Macías
Hi Uwe, Uwe Brauer writes: > How can I obtain the Spanish week names? I have this in my init: #+begin_src emacs-lisp (setq calendar-week-start-day 1 calendar-day-name-array ["domingo" "lunes" "martes" "miércoles" "jueves" "viernes" "sábado"] calendar-m

Re: Org-syntax: Intra-word markup

2022-01-29 Thread Juan Manuel Macías
Ihor Radchenko writes: > Maybe we should introduce an equivalent of special blocks, but for > inline use? Or should we modify _both_ inline export snippets and export > blocks to allow fallback mechanism? I find the idea of inline special blocks very interesting, but I think there are a couple of

A callygraphy notebook environment

2022-01-30 Thread Juan Manuel Macías
Hi all, This is more related to LaTeX than Org, but I'm sharing it here in case anyone is interested. For a work I'm doing I've written a LaTeX environment that tries to mimic the look of a calligraphy notebook. By default it uses the qtmerryscript font, included in TeX live, but this can be chang

Re: A callygraphy notebook environment

2022-01-30 Thread Juan Manuel Macías
Hi Uwe, Thanks for testing the document. Uwe Brauer writes: > Interesting I like them all. I converted your org file to latex and run > it with lualatex but the font used there does not correspond to all the > three screenshots. The default font for the environment 'mynotebook" is qtmerryscript

Re: Org-syntax: Intra-word markup

2022-02-02 Thread Juan Manuel Macías
Max Nikulin writes: > ATTR_X attributes are supported for links as well, see > info "(org) Links in HTML export" > https://orgmode.org/manual/Links-in-HTML-export.html > However it is rather verbose, may have problems with LaTeX, and I am > unsure if they can be accessed from export link handlers

[PATCH] org-manual.org: update and add info for arbitrary :float values

2022-02-11 Thread Juan Manuel Macías
Hi all, >From the commit: e0bc2b37f :: lisp/ox-latex.el: Allow arbitrary float environments The `t' option for `:float' in tables and images is no longer valid. That is, something like #+ATTR_LaTeX: :float t [[file:foo.jpg]] would create in LaTeX export: \begin{t} \centering \includegraphics[

Re: [PATCH] org-manual.org: update and add info for arbitrary :float values

2022-02-13 Thread Juan Manuel Macías
Hi Nicolas, Nicolas Goaziou writes: > Thanks. Note you need to add two spaces between sentences. Ah, sorry, I hadn't noticed that :-). The thing is that I have in my ~/.emacs `sentence-end-double-space' set to nil. > However, isn't it a bug? Shouldn't t value default to "figure" > environment,

Re: Root heading when exporting sub-trees

2022-02-15 Thread Juan Manuel Macías
Hi Michael, Michael Dauer writes: > When I export a subtree I normally want to produce a document for the > topic of the subtree. So I would expect that the contents of the > subtree would be exported with the heading as title (and maybe file > name) and the children promoted to level 1. > > What

Re: table format during html export

2022-02-15 Thread Juan Manuel Macías
Hi Leo, Leo Butler writes: > Hello, > > I have some tables like > > | a | b | > | c | d | > > I would like to have this export (in html) to something like > > | a b | > | c d | > > i.e., add a vertical bar on the extreme left and right. > > I have searched the org manual and online and I can't

Re: [PATCH] ox-latex.el: Add a `t' value for `:float' in tables and figures (was: update and add info for arbitrary :float values)

2022-02-16 Thread Juan Manuel Macías
Hi, I am attaching an updated version of the patch, which retrieves the `t' value for `:float' in tables and figures. The necessary information in the Manual is also updated. Best regards, Juan Manuel Nicolas Goaziou writes: > Hello, > > Juan Manuel Macías writes: >

Re: Question Regarding Creating HTML Style Buttons With Org Mode

2022-02-17 Thread Juan Manuel Macías
Hi Samuel: Samuel Banya writes: > Is it possible to create HTML style buttons using Org Mode itself? One possibility is to use a custom link. For example: #+begin_src emacs-lisp (org-link-set-parameters "button" :face '(:foreground "green" :underline t)

Pandoc and nested emhases

2022-02-17 Thread Juan Manuel Macías
Hi all, Sorry in advance if this may sound too trivial, imprecise or naive: it's just for my curiosity, as I've recently been doing some tests with Pandoc and I've seen something that has caught my attention. It is known that LaTeX-style nested emphases of the same category are not possible in Or

Re: Pandoc and nested emhases

2022-02-18 Thread Juan Manuel Macías
Hi Maxim, Max Nikulin writes: > So formally this feature of pandoc is a bug (due to different kind of > parser). It is the reason why a corpus of tests should exist in a > format that can be easily imported from various programming languages. Your conclusions seem logical to me. It may sound a b

Re: Question Regarding Creating HTML Style Buttons With Org Mode

2022-02-18 Thread Juan Manuel Macías
Samuel Banya writes: > I tried to use this idea, but I'm not sure how to set the 'target' in > your example: > [[button:some target][This is a button]] > > For example, I tried this: > [[button:http://www.sambanya.com/artgallery.html][Art Gallery Page > Link]] > > But received this error: > user-e

Re: Question Regarding Creating HTML Style Buttons With Org Mode

2022-02-18 Thread Juan Manuel Macías
Juan Manuel Macías writes: > If you evaluate the `org-ling-set-parameters' expression that I gave > you, you should get when exporting to html: > > > formaction="http://www.sambanya.com/artgallery.html";>Art Gallery Page > Link > P.S.: I forgot to tell

Re: Question Regarding Creating HTML Style Buttons With Org Mode

2022-02-19 Thread Juan Manuel Macías
Samuel Banya writes: > To clarify, did you evaluate that code block on the org mode docs > itself? The code must be evaluated *before* using that new type of link, or saved to your ~/.emacs. You can simply evaluate it in your `scratch' buffer: (org-link-set-parameters "button"

Re: Question Regarding Creating HTML Style Buttons With Org Mode

2022-02-19 Thread Juan Manuel Macías
Juan Manuel Macías writes: > If you want to pass the class or id 'manually' to each link, and thus > have more control, you can evaluate this other version, where the class > or id would be added at the end of the link description, after (for > example) "!style":

Footnote tooltips (an attempt)

2022-02-21 Thread Juan Manuel Macías
Hi all, I think sometimes it would be nice to have tooltips in the footnote references, so I can see the contents of each footnote definition, especially when I'm in a narrowed subtree; so I've tried to write some code. I have achieved a "semi-automatic" solution. It doesn't work bad at all, but I

Open a footnote definition outside a narrowed subtree (workaround)

2022-02-22 Thread Juan Manuel Macías
Hi all, When I am working on a narrowed subtree and want to open a footnote for editing (`C-c C-o': `org-open-at-point'), I get the message: "Definition is outside narrowed part of buffer". I don't know if there is a "standard" solution for that (aside from cloning the buffer and/or removing the r

Re: Open a footnote definition outside a narrowed subtree (workaround)

2022-02-22 Thread Juan Manuel Macías
Nicolas Goaziou writes: > The "standard" solution is to use Thanks fot the tip! org-edit-special > org-edit-footnote-reference: it's clearly explained in the docstring, and I've been cloning buffers manually all my life (facepalm). Sorry for the noise, naturally the "standard" solution is pref

Re: Footnote tooltips (an attempt)

2022-02-22 Thread Juan Manuel Macías
(interactive) │ (if (and (derived-mode-p 'org-mode) │ (equal (org-element-type (org-element-context)) 'footnote-reference)) │ (my-org-footnote-show-content) │ (call-interactively 'display-local-help))) │ │ (global-set-key (kbd "C-h .") 'mi-displ

Re: Footnote tooltips (an attempt)

2022-02-22 Thread Juan Manuel Macías
Ypo writes: > I love it! > I am going to read your code, Juan Manuel, I won't understand anything > but that function is very interesting for me, since it could be used > too with internal links, I suppose. Org links already have tooltips out of the box. You can also display the tooltip in the ec

Re: Question Regarding Creating HTML Style Buttons With Org Mode

2022-02-22 Thread Juan Manuel Macías
Hi Samuel, Samuel Banya writes: > Hey Juan, > > Just wanted to let you know that this works beautifully! > > I wish I was as good at Elisp to make this in the first place, but > this really helps since I wanted to have some minimum overhead for 2 > separate websites to be able to just write in Or

Re: Footnote tooltips (an attempt)

2022-02-23 Thread Juan Manuel Macías
Hi Samuel, Samuel Wales writes: > what a great idea. i am interested in your comments. emacs has lots > of tooltip-related features. eldoc, help-at-pt, mouse-avoidance, etc. > you don't want tooltips when your mouse happens to end up over. or > for your mouse to go haywire just because you en

Re: Footnote tooltips (an attempt)

2022-02-23 Thread Juan Manuel Macías
Hi John, John Kitchin writes: > I think this might be a simpler approach. what you want (I think) is > to leverage font-lock on tooltips to set a help-echo function instead > of a string. You can override org-activate-footnote-links with an > advice (which makes it easy to undo of you need). The

Re: Footnote tooltips (an attempt)

2022-02-24 Thread Juan Manuel Macías
John Kitchin writes: > that is a nice solution. I probably should have read the docstring on > org-footnote-get-definition a little more closely, it has the > definition you need in it! Well, it's a minor detail. The really brilliant thing here is your idea of passing the function as a help-echo

Re: ConTeXt exporter makes me happy

2022-02-24 Thread Juan Manuel Macías
juh writes: > thanks a lot for org-mode and the ConTeXt exporter. > https://github.com/Jason-S-Ross/ox-context > > With your help, in the last few months I setup a complete authoring and > publishing environment for my needs with org-mode and ox-context. I > collect my thoughts with org-roam, outl

Re: including one double quote in an anonymous footnote?

2022-02-26 Thread Juan Manuel Macías
Hi Greg, Greg Minshall writes: > hi. experimenting [after significant confusion!], it appears that > including a single (unpaired) double quote inside an anonymous footnote > eliminates the recognition of the footnote. is this intentional? > > this works: > > this is a test.[fn:: a very lo

Re: including one double quote in an anonymous footnote?

2022-02-26 Thread Juan Manuel Macías
Greg Minshall writes: > Juan Manuel, > >> I can confirm that behavior. One possible solution is to use an entity >> (M-x org-entities-help): > > thanks very much -- that does the trick for my case. In any case, I don't know if that behavior should be considered a bug. I say this because other con

Re: including one double quote in an anonymous footnote?

2022-02-28 Thread Juan Manuel Macías
Hi Greg and Nicolas, Greg Minshall writes: > Nicolas and Juan Manuel, > > thanks very much. the bugfix branch seems to work for my case. Thank you very much Nicolas. In my case it also works fine. Best regards, Juan Manuel

Move or rename a file in a link

2022-03-05 Thread Juan Manuel Macías
Hi all, I have written this simple function to move or rename a destination file in an external link at point. I share it here in case it is useful to someone. Best regards, Juan Manuel #+begin_src emacs-lisp (defun my-org-replace-link-file (from to) (save-excursion (goto-char (point-min

Re: Filter for HTML footnotes?

2022-03-05 Thread Juan Manuel Macías
M. ‘quintus’ Gülker writes: > I recently discovered export filters and found some useful applications > for them. For instance, the scientific domain I work in (law) uses > footnote citations, and in these footnotes we abbreviate some words > which would otherwise be written out in ordinary text,

Re: interleaving comment between rows of a table?

2022-03-07 Thread Juan Manuel Macías
Hi Greg, Greg Minshall writes: > i don't remember anybody asking about this. > > i'd sometimes find it useful to be able to interleave comments -- using > (almost) whatever syntax -- between rows in an org-mode table. > (normally, this would be to provide context/rationale for the subsequent > ro

Re: Filter for HTML (cite) footnotes?

2022-03-08 Thread Juan Manuel Macías
M. ‘quintus’ Gülker writes: > That is, what I am after effectively, is post-processing the results > generated by org-cite resp. citeproc.el. I have names in my > bibliographic database like “Axel von Hellfeld”, which contain the > German name particle “von”. Some (not all) citation customs requir

Re: Move or rename a file in a link

2022-03-10 Thread Juan Manuel Macías
Hi João, Thanks for your comment. João Pedro de Amorim Paula writes: > Thanks for sharing! It'd be great if it worked for attachments as well, > but that is a whole can of worms. Regarding attachments, do you mean org attachments or email attachments? Could you give an example of a use case? Be

helm-org-names: browse the names of code blocks, tables and figures

2022-03-11 Thread Juan Manuel Macías
Hi all, I've written this little package to browse with helm through the names of code blocks, tables and figures in a document. A series of actions can be executed on the candidate (go to object, edit a code block, insert a link, etc.). In the list of figures that is displayed in Helm, each figur

Re: Code blocks and quotes export style

2022-03-13 Thread Juan Manuel Macías
Kaushal Modi writes: > Well, that will at least help the code blocks going out of bounds. It > won't help the quotes. With the quotes going out of bounds issue it would be nice to see a screenshot. But if a line of normal text goes outside the margin, it is usually due to a TeX overfull hbox, pe

Re: Code blocks and quotes export style

2022-03-14 Thread Juan Manuel Macías
Max Nikulin writes: > should be even better since, besides LaTeX "\-", HTML exporter uses > "­" or "­" (I would expect more consistent behavior > though.) Hi, Maxim. You're right, I didn't remember that there is a specific entity in Org for the discretionary hyphen. Sometimes I think too much fro

Re: LaTeX export of a file with some accented characters

2022-03-15 Thread Juan Manuel Macías
Hi Vikas, Vikas Rawal writes: > I have an org file with some names (not all) that have accented > characters. But when I try to export, I get errors such as this: > > Sāṅkr - 65190: word not found > > What do I do to make Org export these correctly? Is there a way to > make Org export even if it

Re: leading superscript on a line for ODT export

2022-03-16 Thread Juan Manuel Macías
Hi Eric, Eric S Fraga writes: > I need to have a line starting with a superscript, e.g. 1, in an ODT > exported file. If I write "^1 blah", it doesn't work. I need a > character before the ^ to have it interpreted as a superscript. > > Is there an "empty" character I can use? I tried a non-bre

Re: leading superscript on a line for ODT export

2022-03-16 Thread Juan Manuel Macías
Eric S Fraga writes: > Yes, I guess this is the best way to do this. Thank you in particular > for the xml code for odt which would have taken me some time to figure > out! When I need to find out some xml markup in odt or docx I open the document from Dired with view-mode, and run C-c C-c (doc-

Re: leading superscript on a line for ODT export

2022-03-16 Thread Juan Manuel Macías
Max Nikulin writes: > @@org:@@^1 blah This is a nice solution. I think a snipet with a "non-existent" backend would work here too: @@null:@@^1 (I use a lot export snipets with 'non-existent' backends for inline comments). Best regards, Juan Manuel

Org and multimedia (tips?)

2022-03-17 Thread Juan Manuel Macías
Hi all, I've been trying for a while to use Org also to store and org-anize the data of my music and video files, so that I can conveniently access them via helm-org-ql and play them using EMMS. I was wondering if anyone is trying this too, and thought maybe it would be nice to share tips and hack

Re: Org and multimedia (tips?)

2022-03-19 Thread Juan Manuel Macías
Max Nikulin writes: > org-web-tools is an interesting project, but if you have access to > files it should be easier to extract all meta information directly > using e.g. > > exiftool -json file.mp3 > > or another tool suitable to particular format. It seems emms has > interface to various too

Re: Move or rename a file in a link

2022-03-19 Thread Juan Manuel Macías
Hi João, João Pedro de Amorim Paula writes: > I mean org attachments. I use org-attach extensively to store documents > with notes. So I'd have a heading like so > > * Documents > :PROPERTIES: > :DIR: data/docs/ > :END: > > - [[Registration][attachment:registration.pdf]] :: My registration. > > A

Re: TOC and latex memoir class

2022-04-02 Thread Juan Manuel Macías
Hi Steve, Steve Downey writes: > In order to place the table of contents without a section name > "Contents" the memoir class uses \tableofcontents* rather than > \tableofcontents. > However, `org-latex-toc-command` is documented as: > "LaTeX command to set the table of contents, list of figure

Re: when exporting latex how to set with in the includegraphics command

2022-04-03 Thread Juan Manuel Macías
Hi Uwe, Uwe Brauer writes: > But I would like a smaller width say 0.5, how can I achieve that? #+ATTR_LaTeX: :float nil #+ATTR_LaTeX: :width #+CAPTION: El método del Trapecio punto fijo vs PC [[./diagram-trapfix-vs-trapfixpc-norigid.png]] (You can add more options to the includegraphics optio

Save Gnus attachments to Org using org-attach and helm-org-ql

2022-04-10 Thread Juan Manuel Macías
Hi all, I thought it wouldn't be a bad idea to be able to save attachments from GNUS (current article) to any Org node, via org-attach. Since I use helm-org-ql to quickly access the headlines of my org documents, it occurred to me to write this action for helm-org-ql. I share it here in case someo

Re: #+latex_header blocks, or, managing lots of LaTeX headers

2022-04-12 Thread Juan Manuel Macías
Hi William, William Denton writes: > What sorts of practices do people have for managing lots of LaTeX > headers? Juan Manuel Macías, you mentioned something like > this---literate programming in Org to export LaTeX source---may I ask > how you do it? When it comes to a large

Re: [PATCH] org-element-export-snippet-parser: Fix snippets without ending @@

2022-04-16 Thread Juan Manuel Macías
Ihor Radchenko writes: > Our current parser recognises the opening "@@html:" as a standalone > snippet. > > Unless I misunderstand something, it is not intentional. > > The fix is attached. This fix makes a lot of sense to me. I've always been intrigued by this 'strange' behavior of html export s

[tip] Org speed commands improved

2022-04-26 Thread Juan Manuel Macías
Hi all, Org speed commands are a major productivity boost and I love them. Lately it has occurred to me to make some modifications with the following configuration, which I share here in case someone wants to try it. The idea is that Org speed commands are activated anywhere in the header (not jus

Re: [tip] Org speed commands improved

2022-04-27 Thread Juan Manuel Macías
Hi Ihor, Ihor Radchenko writes: > If you are going this far with speed commands, you might as well switch > to modal editing. What you are describing is basically a modal command > map with ability to switch to insert map. I'm not a fan of modal editing, rather the opposite. But in this particul

Org as a workspace (an impromptu reflection)

2022-04-29 Thread Juan Manuel Macías
Hi all, Since I use Org Mode I have been noticing a gradual change in the way I work with a computer (as a simple user). It is not something consciously sought, but I have to say that I see it as a positive evolution. I've always been used to (or rather resigned to) the typical Unix directory/file

[PATCH] speed commands: error message when a key is not associated with a command

2022-04-30 Thread Juan Manuel Macías
Hi, If we have speed commands activated and we type (by mistake) a character not associated with a command, the letter is printed at point. I think a more appropriate behavior would be: - key associated with a command: the command is activated - key not associated with a command: an error messag

Re: [PATCH] speed commands: error message when a key is not associated with a command

2022-04-30 Thread Juan Manuel Macías
Ihor Radchenko writes: > Note that speed commands are not only decided by > org-speed-command-activate. Any function in org-speed-command-hook can > trigger speed command. Throwing an error in org-speed-command-activate > can potentially shadow other functions in the hook. Ah, I see... I had not

Re: [PATCH] speed commands: error message when a key is not associated with a command

2022-04-30 Thread Juan Manuel Macías
> Ihor Radchenko writes: > >> Note that speed commands are not only decided by >> org-speed-command-activate. Any function in org-speed-command-hook can >> trigger speed command. Throwing an error in org-speed-command-activate >> can potentially shadow other functions in the hook. This other, more

Re: [PATCH] speed commands: error message when a key is not associated with a command

2022-05-01 Thread Juan Manuel Macías
Ihor Radchenko writes: > This would not solve the problem of shadowing. > It may be better idea to provide a custom variable controlling > org-babel-speed-command-activate: do nothing or throw an error. > This custom variable should also be described in the docstring of > org-speed-command-hook to

Re: [PATCH] speed commands: error message when a key is not associated with a command

2022-05-03 Thread Juan Manuel Macías
Ihor Radchenko writes: > It is more complex and I do not see a clear benefit of introducing a > whole new hook. It would only be useful for people who define a large > number of extra speed command handlers. Yes, I agree. Also I'm afraid that this idea of mine added a drawback as a bonus track: i

Re: Org as a workspace (an impromptu reflection)

2022-05-03 Thread Juan Manuel Macías
Nick Dokos writes: > From my vantage point (of ignorance about it :-) ), this sounds like > org-roam to me: https://www.orgroam.com/ I've read here and there interesting things about org-roam, but I admit I've never had the courage to try it. Partly due to lack of time and partly because with my

[PATCH] org-attach: Attach current Gnus article parts

2022-05-07 Thread Juan Manuel Macías
Hi all, In the attached patch I add a new command for org-attach: save *all* attachments from the current Gnus article to the current org-attach-dir. (Sorry for repeating the word "attach" so much :-)) NB: 1. If no Gnus article is open, it returns an error message. 2. I've only tested it on Em

Re: Export LaTeX command inside figure environment

2022-05-07 Thread Juan Manuel Macías
Hi, Thomas, Thomas S. Dye writes: > Is there a way to add an arbitrary LaTeX command between > \begin{figure} ... \end{figure} during LaTeX export? I want to end up > with the following snippet, but can't figure out how to slip in > \setfloatalignment{b}. \begin{figure}[htb] > \centering > \inc

Re: [PATCH] org-attach: Attach current Gnus article parts

2022-05-08 Thread Juan Manuel Macías
Ihor Radchenko writes: > I think that supporting only Gnus is too specific. Not all the people > use Gnus as mail reader. And the extra menu option you propose will only > eat up space for people not using Gnus. > > I'd prefer a more generic approach working in any kind of email reader, > be it rm

Re: Export LaTeX command inside figure environment

2022-05-08 Thread Juan Manuel Macías
Thomas S. Dye writes: > It would be better to have a LaTeX attribute, say :commands, that > places commands within \begin{figure} ... \end{figure}. This is a possible solution from the LaTeX side, which would avoid having to modify the Org code and can also be used to introduce more complex arbit

Re: [PATCH] org-attach: Attach current Gnus article parts

2022-05-08 Thread Juan Manuel Macías
Ihor Radchenko writes: > I think that a good example implementation is from notmuch.el. It does > not use anything specific to notmuch, just built-in mm-*.el from gnus: Thanks for the tip, Ihor. I'll take a look at it, and see if I can sketch something usable... Best regards, Juan Manuel

[tip] Insert arbitrary LaTeX code at the beginning of any float environment

2022-05-08 Thread Juan Manuel Macías
Hi all, If we want to introduce arbitrary LaTeX code at the very beginning of a float environment, apart from the usual tricks of putting the code in :caption or :placement, this solution I describe here is more from the LaTeX side. I thik its advantages are more control and consistency from the p

Re: [tip] Insert arbitrary LaTeX code at the beginning of any float environment

2022-05-09 Thread Juan Manuel Macías
Ihor Radchenko writes: > I'd be happy to see a built-in solution for this. > I feel that the ability to insert arbitrary LaTeX code near the > begin/end of environment would be generally a useful feature to have in > ox-latex. It could be done via #+attr_latex: :pre/:post > > Moreover, it would be

A function that converts a LaTeX document to an Elisp expression (for org-latex-classes)

2022-05-10 Thread Juan Manuel Macías
Hi all, In case anyone finds it useful, I'm sharing this function here that I recently wrote, to convert a LaTeX buffer to an Elisp expression, suitable for adding to `org-latex-classes'. It's a bit rudimentary, but I think it does the trick. It can be useful for long preambles with a lot of (La)T

Re: export to latex: begin_example gets exported to verbatim (

2022-05-12 Thread Juan Manuel Macías
Hi Uwe, Uwe Brauer writes: > Which gets exported to verbatim not lstlisting as I want Try adding this: :wrap lstlisting (I don't use matlab, but I think that should work). Best regards, Juan Manuel

citation-style-language: new LaTeX package in TL 2022

2022-05-12 Thread Juan Manuel Macías
Hi all, TeX Live 2022 includes a new LaTeX package for citations, 'citation-style-language', written by Zeping Lee. According to the package description: "[...] The citation-style-language package is aimed to provide another reference formatting method for LaTeX that utilizes the CSL styles. It c

Re: simple request letter - help

2022-05-13 Thread Juan Manuel Macías
Hi Andrés, Andrés Ramírez writes: > When I export the file M-x org-export-distpach l p > > The second and third paragraph do nat have right alignment as the first > paragraph. Can you please copy the contents of your .tex file here: `M-x org-export-disptatch l l'? Best regards, Juan Manuel

Re: simple request letter - help

2022-05-13 Thread Juan Manuel Macías
hi Andrés, andrés ramírez writes: > Hi. Juan. > My comments below. I'll explain what happens. There really isn't an alignment issue. TeX by default applies a first line indent to paragraphs. It also defaults to applying English typographical conventions, as is the case in your document, where th

Re: simple request letter - help

2022-05-13 Thread Juan Manuel Macías
andrés ramírez writes: > Right. It is giving me an error I have NOT noticed it because the pdf is > being generated. Your document is probably compiled on export with the `-intercaction=nonstopmode' option, and thus does not break the compilation with an error. In any case, I don't really underst

Re: I can't set dabbrev to respect the writen case

2022-05-14 Thread Juan Manuel Macías
Ypo writes: > Hi > > I find dabbrev and fancy-dabbrev very useful to typing fast. But there > is a problem I am not able to solve: When I apply an expansion while > writing, the case is always that of the expansion, I can't make it to > respect what I have written. An example: > > — (Typing) "Hel

[tip] Export and open a PDF in Android via Termux

2022-05-15 Thread Juan Manuel Macías
Hi all, I have recently installed TeX live on Android inside Termux: $ pkg install texlive-installer (https://wiki.termux.com/wiki/TeX_Live) And I've managed to open a PDF exported from Org using an external android viewer (mupdf, downloaded from f-droid). The Termux command is termux-open. You

Re: I can't set dabbrev to respect the writen case

2022-05-15 Thread Juan Manuel Macías
Ypo writes: > These are my variables, it keeps changing what I have already written: > > '(case-replace nil) > > '(dabbrev-case-distinction t) > '(dabbrev-case-fold-search t) > '(dabbrev-case-replace t) > '(dabbrev-upcase-means-case-search nil) With those values it works for me as expected. M

Re: [tip] Export and open a PDF in Android via Termux

2022-05-16 Thread Juan Manuel Macías
Max Nikulin writes: > Does termux have a notion of mailcap, e.g. mime-support package or > something similar? I have a hope that > > application/pdf; termux-open %s > > in /etc/mailcap or in ~/.mailcap might be enough instead of explicit > configuration of particular packages. I've been playi

Re: [tip] Export and open a PDF in Android via Termux

2022-05-17 Thread Juan Manuel Macías
Max Nikulin writes: > Do termux and emacs build for it have support of D-Bus or notify-send > binary? I'm not sure, but I would say yes, because Termux has a repository for X11 applications and to be able to run desktop environments and graphical applications (via VNC). But in such a case, I unde

Re: [tip] Export and open a PDF in Android via Termux

2022-05-19 Thread Juan Manuel Macías
Eric S Fraga writes: > Same with me. I have to have a smartphone as our institution made the > decision to remove all landlines and have all staff use MS Teams as our > work "phone". I use termux to give me access to Emacs + org so that I > at least get some real use out of the "smart"phone. Sm

About 'inline special blocks'

2022-05-23 Thread Juan Manuel Macías
Hi all, I think this idea was suggested by Ihor in a thread from a few months ago (I don't remember which one), but since other topics were discussed, the idea remained a bit in limbo. I still find the idea very interesting, and I think it would be very productive for Org to have a multipurpose in

Re: About 'inline special blocks'

2022-05-23 Thread Juan Manuel Macías
Hi, Kaushal, thanks for all your interesting comments, Kaushal Modi writes: > The challenging part will be deciding the syntax so that there are no > false matches. > > May be reserve "inline_" for inline blocks? > > e.g. inline_[options]{text} ? It seems to me the most consistent option, if we

<    1   2   3   4   5   6   7   8   9   >