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

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

[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

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

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

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

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 >

[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

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

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:

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

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,

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

[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

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

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

[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

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

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 l

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

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

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

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. > >

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

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

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

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

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

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: 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 from

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,

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

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?

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

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 >

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,

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

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

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

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

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,

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

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-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

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

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

Re: Footnote tooltips (an attempt)

2022-02-22 Thread Juan Manuel Macías
(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-display-local-help) └ Best regards, Juan Man

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

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

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

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": PS: Sorr

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-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 you that

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: >

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

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

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)

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: > >> A

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: 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. > >

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,

[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

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

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

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

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

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"]

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: [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/ >

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

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

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

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

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:

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

[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

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

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

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 >

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: 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

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

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

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,

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: > 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-:

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

Re: Playing down the text in org-mode

2022-01-13 Thread Juan Manuel Macías
fatipa...@tutanota.com writes: > If I do something in emacs-lisp I would still need some form of > containment characters. I think a custom link would suffice for text within the paragraph. A quick example: #+begin_src emacs-lisp (defface smaller '((t :foreground "#8D8D84" :height

Re: Playing down the text in org-mode

2022-01-13 Thread Juan Manuel Macías
fatipa...@tutanota.com writes: > I am discussing something slightly different. > > Here is normal text within -which there is some understated text- before > continuing with normal text. Yes, it seems that I have understood you horribly wrong, sorry for the noise (it must be the effects of the

Re: Playing down the text in org-mode

2022-01-13 Thread Juan Manuel Macías
fatiparty--- via "General discussions about Org-mode." writes: > _a geographical region that corresponds to present-day Israel and Palestine_ In any case, from a strictly (ortho)typographical point of view this is a matter of nesting emphasis. If what you want to do is highlight a word within

Re: Playing down the text in org-mode

2022-01-13 Thread Juan Manuel Macías
John Kitchin writes: > It depends on what you mean. I can't think of a standard markup for > de-emphasis. You could imply it with color perhaps, e.g. some shade of > grey, or size by making it smaller. At least for LaTex/HTML, both of > those can be done. You would either need to use something

Re: Playing down the text in org-mode

2022-01-13 Thread Juan Manuel Macías
Hi, fatiparty--- via "General discussions about Org-mode." writes: > Is there anything to perform the opposite, playing down the text? Are you referring to nested emphasis, something like in LaTeX \emph{foo \emph{bar} baz} = foo...baz in italic; bar in normal font? Best regards, Juan Manuel

Re: puzzled about :fit for LaTeX src block

2022-01-13 Thread Juan Manuel Macías
Eric S Fraga writes: > This did it! Thank you. I am curious now to find out what tool was > used instead... something for later today! Well, it seems that if you use ":imagemagick yes", the image is created with the `org-babel-latex-convert-pdf' function. I almost always use this to create

Re: puzzled about :fit for LaTeX src block

2022-01-13 Thread Juan Manuel Macías
Hi Eric, Eric S Fraga writes: > Both the same and the default value from org. I'm not sure, but maybe the problem comes from the \documentclass{article} in org-format-latex-header. Can you try replacing that with "\\documentclass[varwidth]{standalone}"? Another possibility: please try adding

Re: puzzled about :fit for LaTeX src block

2022-01-12 Thread Juan Manuel Macías
Hi Eric, Eric S Fraga writes: > I have a LaTeX src block which creates an image using tikz. In a book > I'm writing, the image, when created as a png, does not get shrunk but > is instead a full page (with the actual diagram in the top left corner). > If I create a PDF, instead, it works fine.

Re: Filter to put decorative initial letters

2022-01-11 Thread Juan Manuel Macías
Hi William, William Denton writes: > This is beautiful, and a nice Org hack. I appreciate the > typographical and design examples you send, and have learned a lot > from them. Thank you. > > Bill Thanks for your kind words, I'm glad you found that code useful. Best regards, Juan Manuel

Preview fonts from Dired with org-latex-preview (and test opentype features)

2022-01-10 Thread Juan Manuel Macías
Hi, I have written for my personal use this code (still quite crude) that allows me to preview with org-latex-preview small text strings in a font marked in dired, and test open type features too. The preview is compiled with LuaLaTeX, since LuaTeX allows to load fonts that are not installed in

[tip] Inline tasks as anonymous sections

2022-01-08 Thread Juan Manuel Macías
Hi, I think that a very efficient way to take advantage of inline tasks (in the framework of document authoring and exporting) is to treat them as anonymous sections, that is, those sections that do not have a title and are normally separated in books by some special symbol: three asterisks (a

Re: A simple Lua filter for Pandoc

2022-01-07 Thread Juan Manuel Macías
Max Nikulin writes: > Form my point of view it is not worse than "\slash{}" entities. Yes, I also use macros a lot, especially for more complex constructions. Macros, entities and other tricks have their pros and cons, but they allow me to have a certain group of characters under control. >>

Filter to put decorative initial letters

2022-01-06 Thread Juan Manuel Macías
Hi, These past holidays I've been experimenting with some little useful, but fun stuff. This is an export filter to put a decorative initial letter in the first paragraphs of the first level sections, using the LaTeX package lettrine (https://www.ctan.org/pkg/lettrine). A screenshot:

<    1   2   3   4   5   6   7   8   9   >