Re: export dispatch → change the default "Contents" string

2021-10-01 Thread Juan Manuel Macías
Hi, jean-Christophe, Jean-Christophe Helary writes: > What is the parameter to change the default "Contents" ToC string when > exporting to PDF ? If I'm not wrong, I think there is no native Org way to change the default string for LaTeX literals. But if you use babel (the LaTeX package), you c

[Question] A single *-language-alist in ox-latex.el?

2021-10-02 Thread Juan Manuel Macías
s not make much sense to mantain in ox-latex.el two separate lists today. Maybe, for simplicity, it would be better to unify the two lists in a single db, something like `org-latex-language-alist'. What do you think? Best regards, Juan Manuel -- -- ------

Re: [Question] A single *-language-alist in ox-latex.el?

2021-10-02 Thread Juan Manuel Macías
tin" "classic") And then it would be necessary to make some minor modifications in org-latex-guess-polyglossia-language and org-latex-guess-babel-language. I will try to write a patch (or at least a proof of concept) in the next days ... Best regards, Juan Manuel -- -- -- Juan Manuel Macías https://juanmanuelmacias.com/

[PATCH] ox-latex.el: Unify in one single list Babel and Polyglossia languages alists

2021-10-03 Thread Juan Manuel Macías
Hi all, I'm attaching a patch with a proposal to unify in a single constant (named `org-latex-language-alist') `org-latex-polyglossia-language-alist' and `org-latex-babel-language-alist', along with some necessary (minor) modifications in `org-latex-guess-polyglossia-language' and `org-latex-guess

[PATCH] org-manual.org: List the languages supported by smart quotes feature

2021-10-03 Thread Juan Manuel Macías
Hi, I think a footnote with a list of (currently) supported languages could be helpful for users who want to apply this feature. Best regards, Juan Manuel >From 26f799a5a53b35f7f3e6e3df10689855832dbebd Mon Sep 17 00:00:00 2001 From: Juan Manuel Macias Date: Sun, 3 Oct 2021 19:11:48 +0200 Subje

[patch] ox-html.el: add html attribute (verse numbers) to verse blocks

2021-10-04 Thread Juan Manuel Macías
Hi all, I believe that an html attribute to display marginal verse numbers in sequence could be useful for certain content, as philological texts (like here: https://en.wikisource.org/wiki/The_Iliad_and_Odyssey_of_Homer_(Cowper)/Volume_2/The_Odyssey/Book_I) The `lines' property must be a digit th

Re: how to export to odt with 11 or 10 pt fonts? Default font setting

2021-10-07 Thread Juan Manuel Macías
Uwe Brauer writes: > I searched about google, but it seems that the only way to have a 10 or > 11 pt font size is, again, by using styles. Am I right? Yes, you are right. Word processors handle paragraph and character styles. Anything that is not styled is applied by direct formatting, manually,

Re: how to export to odt with 11 or 10 pt fonts? Default font setting

2021-10-07 Thread Juan Manuel Macías
Uwe Brauer writes: > Thanks, but it seems 11TeXpt-->10.95 > > So it is not that different. In typography it's a significant difference. It's not dramatic, but it can produce different results in a book using the same body text and the same line spacing, same margins, page dims. etc. Also TeX uses

[tip] Go to the org node from the attached directory

2021-10-07 Thread Juan Manuel Macías
Hi, I often come across the following use case: helm-locate leads me to a file named (for example) document.pdf, which is in an attached folder of an Org node. I open the document and then I would like to jump from there to the Org node. I don't know if anyone has found any solutions for this or

Re: how to export to odt with 11 or 10 pt fonts? Default font setting

2021-10-09 Thread Juan Manuel Macías
copropriete27ruemo...@gmail.com writes: > Unless you insist on using Computer Modern with a word processing > programm (yes, it can be done, at least with the OTF versions of these > fonts), or Times New Roman/Cambria with LaTeX (again possible thanks to > their OTF incarnation) and slaving to for

[minor tip] "TeXify" strings "TeX" and "LaTeX" when exporting to HTML

2021-10-15 Thread Juan Manuel Macías
Hi all, I wrote this simple filter for my blogs, which formats "TeX" and "LaTeX" strings in the TeX 'typographic' style (or something similar). First, these variables: #+begin_src emacs-lisp (setq my/tex-html-string "TEX") (setq my/latex-html-string "LATEX") #+end_src Of course, the stri

Re: Unable to configure emacs 27.2 to use org 9.5

2021-10-18 Thread Juan Manuel Macías
oked in your elpa directory if you see this path: .../elpa/org-9.5/? Have you tried uninstalling Org and reinstalling it? Best regards, Juan Manuel -- -- ------ Juan Manuel Macías https://juanmanuelmacias.com/

Fancy underlines in Org to LaTeX

2021-10-20 Thread Juan Manuel Macías
soulpos documentation. See this screenshot: https://i.imgur.com/UK6W8sl.png Best regards, Juan Manuel -- -- -- Juan Manuel Macías https://juanmanuelmacias.com/ soulpos-test.org Description: Lotus Organizer

[tip] Export some footnotes as pdf annotations (LaTeX) or comments (odt)

2021-10-22 Thread Juan Manuel Macías
ot;!noannot" text)) (replace-regexp-in-string ".+" "" text #+end_src Best regards, Juan Manuel -- -- -- Juan Manuel Macías -- https://juanmanuelmacias.com/

Re: Sub-figures in Org Mode

2021-10-22 Thread Juan Manuel Macías
Hi Jason, Jason Ross writes: > Are there any workarounds people use to create subfigures in Org Mode > when exporting to LaTeX? Example output: In this thread I explain a procedure to export images as subfigures using org links: https://list.orgmode.org/87mty1an66@posteo.net/ Best regards,

A quick LaTeX reference guide in Org

2021-10-24 Thread Juan Manuel Macías
Hi, The TeXstudio editor includes a comprehensive LaTeX reference guide in HTML (https://github.com/texstudio-org/texstudio/blob/master/utilities/latexhelp.html). I have converted it to Org with Pandoc (and then cleaned it up and fixed some broken links). It can be downloaded here: https://cloud.d

Re: A quick LaTeX reference guide in Org

2021-10-25 Thread Juan Manuel Macías
Tim Cross writes: > There is also a latex2e.info package 'out there'. I have it installed > from my Linux distro and find being able to run (info)Latex very useful > as a basic reference. Thank you very much for this information, I did not know it. I just saw that there is a `latex2e-help-texinf

Re: A quick LaTeX reference guide in Org

2021-10-25 Thread Juan Manuel Macías
Eric S Fraga writes: > It's in CTAN, the official (?) LaTeX repository. I just saw it now there. CTAN is an infinite bazaar :-) By the way, in CTAN there is also the /TeX for the Impatient/ book (I love that title), which is a very good manual for programming at low level in TeX/plainTeX: https:

Re: Support for tabularray in LaTeX export

2021-10-25 Thread Juan Manuel Macías
Vikas Rawal writes: >> >> Hi Vikas, >> >> You can define a modified version of `org-latex--org-table', >> adding a new LaTeX attribute `:options'. Something like this: > > Is there a case for incorporating this in orgmode itself? There is some > general utility for this in my view. I

[patch] ox-latex.el: add `:options' LaTeX attribute to tables

2021-10-26 Thread Juan Manuel Macías
Hi, The `:options' attr. allows adding an optional argument with various table options (between brackets in LaTeX export), since certain tabular environments, such as `longtblr' of the `tabularray' LaTeX package, provides this structure (see: https://list.orgmode.org/CALtzAB1yM+uG_xHghCxTLRX5mgbzN

Re: [patch] ox-latex.el: add `:options' LaTeX attribute to tables

2021-10-27 Thread Juan Manuel Macías
Hi Vikas, Vikas Rawal writes: > This is excellent. There is only one improvement that I would like you to > consider. Is it possible to allow multiple ":options " lines that are > appended when exported to > +latex? Something like this: > > #+ATTR_LATEX: :environment longtblr > #+ATTR_LATEX: :a

Re: [patch] ox-latex.el: add `:options' LaTeX attribute to tables

2021-10-28 Thread Juan Manuel Macías
Vikas Rawal writes: > This still seems to exporting the second "options" value only. Do you still keep this line in your init: (advice-add 'org-latex--org-table :override #'my/org-latex--org-table) ? If so, rename the function from my previous email as `my/org-latex-org-table' and re-evaluate i

Re: [patch] ox-latex.el: add `:options' LaTeX attribute to tables

2021-10-28 Thread Juan Manuel Macías
Juan Manuel Macías writes: > \begin{longtblr}[options 1 options 2 options 3 options 4]{align} PS: I think the options should be separated by commas. In this case, it's necessary to replace the line: (mapconcat (lambda (x) (mapconcat 'identity x "")) options-li

Re: Introducing Org-transclusion

2021-10-30 Thread Juan Manuel Macías
Hi Noboru, Noboru Ota writes: > I would like to introduce an add-on package I have been developing for > about one year and ask for discussion / advice. > > The package is named "Org-transclusion", and is available on GitHub at > https://github.com/nobiot/org-transclusion. Simply put, it lets yo

Re: Sub-figures in Org Mode

2021-10-30 Thread Juan Manuel Macías
Hi Jason, sorry for the late reply. Jason Ross writes: > I'm looking at declaring a "figure" block the way you are, but > `org-element-map'ing over the links inside the block and processing them > with the "normal" link-handling machinery. That way, image options work > the same way in a subfigur

Re: [patch] ox-latex.el: add `:options' LaTeX attribute to tables

2021-11-03 Thread Juan Manuel Macías
Hi Nicolas, Nicolas Goaziou writes: > Thank you. > > Could you also document it in the manual? Of course, tomorrow I will upload an updated version of the patch with the documentation in the manual. Should I also add an entry in ORG-NEWS, in "Version 9.6" node? Best regards, Juan Manuel

Re: [patch] ox-latex.el: add `:options' LaTeX attribute to tables

2021-11-04 Thread Juan Manuel Macías
Hi Nicolas, Nicolas Goaziou writes: > Good idea. Thanks. Attached here the updated patch. Best regards, Juan Manuel >From fc9062caf43956ac68b72f16afbd5584ec84e687 Mon Sep 17 00:00:00 2001 From: Juan Manuel Macias Date: Thu, 4 Nov 2021 21:38:26 +0100 Subject: [PATCH] ox-latex.el: add `options

A function to include a PDF with LaTeX commands for specific pages

2021-11-09 Thread Juan Manuel Macías
Hi, Sometimes I need to include a pre-compiled PDF in my main document. Of course, this can be done simply with the `pdfpages' LaTeX package. If we want to insert a complete PDF, it would be enough to add: #+latex: \includepdf[pages=-,noautoscale=true,page-command={\thispagestyle(plain}]{file.pd

Re: whitespace in org source files

2021-11-13 Thread Juan Manuel Macías
Hi, excalamus--- via "General discussions about Org-mode." writes: > I've not used the email contribution style before and have had > whitespace issues in the past with GitHub PRs.  I typically run > whitespace-cleanup with the before-save-hook which changes tabs to > spaces. I agree with Tim th

Re: Should be possible to export list items emphasized by default?

2021-11-17 Thread Juan Manuel Macías
Ypo writes: > /1. Introduction/ > > It doesn't work as a list item > > 1. /Introduction/ > > It works as a list item but, when exporting, it doesn't export the > whole item emphasized. If I have understood correctly, you want to export the label emphasized as well, not just the item content... It

Re: insert automatically a reference to a section header and a link

2021-11-17 Thread Juan Manuel Macías
Stefan Nobis writes: > Hmmm... for me, the default way to link to headings is just fine, I > seldom need more control over the generated labels: > > #+begin_src org > ,* Intro > > Lorem ipsum dolor sit amet... > > ,* Another section > > As seen in [[*Intro]] there is not much to say. > #+e

Re: insert automatically a reference to a section header and a link

2021-11-17 Thread Juan Manuel Macías
Stefan Nobis writes: > #+begin_src emacs-lisp > (defun sn/ox-latex-filter-special-ref-vref (text backend info) > (when (org-export-derived-backend-p backend 'latex) > (replace-regexp-in-string "ref{" "vref{" text))) > > (add-to-list 'org-export-filter-link-functions > #'s

org-critical-edition (new version)

2021-11-21 Thread Juan Manuel Macías
uan Manuel -- -- -- Juan Manuel Macías https://juanmanuelmacias.com/

Dired images in an Org buffer

2021-11-23 Thread Juan Manuel Macías
Hi, I don't like image-dired thumbnails, so I wrote this function to preview all images in a directory in an Org buffer. I share it here, in case it is useful to someone: #+begin_src emacs-lisp (defun my-org-img-dired-preview () (interactive) (if (not (derived-mode-p 'dired-mode))

Re: "Orgdown", the new name for the syntax of Org-mode

2021-11-28 Thread Juan Manuel Macías
Hi, I believe (IMHO) that it does not make much sense to separately name the Org Mode syntax (as a markup language). That would only generate confusion among users. Furthermore, 'Org Mode', as a whole, is already a sufficiently recognized and popular name, even outside the GNU Emacs community. A s

Re: "Orgdown", the new name for the syntax of Org-mode

2021-11-28 Thread Juan Manuel Macías
Joost Kremers writes: > Why not just use the term "Org markup"? It's descriptive and should be > understandable to people familiar with the concept of markup languages. This. 'Org markup language' and 'Org Syntax' are obvious and natural terms that can easily be inferred from the Org manual. Hon

Re: "Orgdown", the new name for the syntax of Org-mode

2021-11-29 Thread Juan Manuel Macías
Marcin Borkowski writes: > Quite the contrary. The amount of confusion between TeX (engine)/TeX > (language)/TeX (distro)/TeX-aware text editor/LaTeX (whatever) among > novice/casual users has always been terrible. It's natural when those novice/casual users approach something that is new to the

Re: how to export red colored TeX to latex

2021-11-30 Thread Juan Manuel Macías
Hi, Uwe Brauer writes: > Hi > > I want to obtain a latex file that contains > > \textcolor{red}{$\delta \phi = \frac{2 m}{R}$} > > > However when I add > \textcolor{red}{$\delta \phi = \frac{2 m}{R}$} > > To an org file and export it as Latex, the construct ends up like this > > > \textcolor{red

Re: how to export red colored TeX to latex

2021-11-30 Thread Juan Manuel Macías
Uwe Brauer writes: > Thanks, right now, I don't need links but it is good to know that there is a > way to use them. It's just a way of using links to produce different strings, depending on the export format (LaTeX, HTML...). I use them quite a bit for text segments as \foreignlanguage{}{}, \te

Re: Orgdown: negative feedback & attempt of a root-cause analysis

2021-11-30 Thread Juan Manuel Macías
Tom Gillespie writes: > Karl, >The exact naming of a thing is nearly always the most contentious > step in trying to promulgate it. In my own field we can easily get all > parties to agree on a definition, but they refuse to budge on a name. > As others have said, I wouldn't worry about kibiti

Re: how to export red colored TeX to latex

2021-12-01 Thread Juan Manuel Macías
Hi Eric, Eric S Fraga writes: > Very nice Juan! I would find this use of links quite useful. Thank you. Yes, org-link-set-parameters is quite productive, and addictive in occasions! :-): I also have link types defined for somewhat extravagant things, such as linking videos and music from the dl

Re: Org-syntax: Intra-word markup

2021-12-02 Thread Juan Manuel Macías
Hi Denis and Ihor, Ihor Radchenko writes: > Denis Maier writes: > >> Currently, org syntax doesn't officially seem to support intra-word >> emphasis. Am I missing something? > > intra-*word* works just fine for me. > > Best, > Ihor I think what Denis is referring to is a construction of the ty

Re: Org-syntax: Intra-word markup

2021-12-02 Thread Juan Manuel Macías
Ihor Radchenko writes: > Denis Maier writes: > >>> Can you create an example of such scenario and post it as a bug? >>> Probably, we just need to strip all zero-width spaces at the basic ox.el >>> level. >> To be clear: That's not an org bug. It's just that latex won't be able >> such a word. If

Re: Org-syntax: Intra-word markup

2021-12-02 Thread Juan Manuel Macías
Tom Gillespie writes: > I don't mean to be a wet blanket, but the edge cases for > the current markup syntax are already hard enough to > implement correctly, to the point where different parts of > Org mode are inconsistent. Intra-word markup isn't viable > because there simply isn't any sane way

Re: Org-syntax: Intra-word markup

2021-12-02 Thread Juan Manuel Macías
Hi Nicolas and all, Nicolas Goaziou writes: > I find zero-with spaces solution much more elegant. It also doesn't > change current syntax, which is a big advantage. I agree that zero width spaces work fine as a solution, but I think they should not be understood as part of the syntax but as a pu

Re: Org-syntax: Intra-word markup

2021-12-02 Thread Juan Manuel Macías
Nicolas Goaziou writes: > I'm suggesting to remove zero-width spaces contiguous to emphasis > markers only. Therefore LaTeX process would npot see them. Other zero > width spaces, e.g., inserted by user, are kept. AFAICT, the two last > points you mention are not relevant with my proposal. > > Bes

On zero width spaces and Org syntax

2021-12-03 Thread Juan Manuel Macías
Hi all, It is usually recommended, as you know, to insert a zero width space character (Unicode U+200B) as a sort of delimiter mark to solve the scenarios of emphasis within a word (for example, =/meta/literature=) and others contexts where emphasis marks are not recognized (for example =[/literat

Re: Org-syntax: Intra-word markup

2021-12-03 Thread Juan Manuel Macías
Hi Maxim, Max Nikulin writes: > More explicit markup leaves less room for ambiguities, and I like the > idea due to this reason. On the other hand it diverges from principle > of lightweight markup. The almost only special character in TeX is > "\", HTML has three ones "&<>" with simple escape ru

Re: On zero width spaces and Org syntax

2021-12-03 Thread Juan Manuel Macías
Hi Greg, thank you for your comment, Greg Minshall writes: > in fact, i am always queasy when i enter ZWNBSP in a .org (or any other) > file. some sort of "visible" sequence would be great. backwards > compatibility might be a problem. Yes I agree. I think that in this case, a new mark would n

Re: On zero width spaces and Org syntax

2021-12-03 Thread Juan Manuel Macías
Tim Cross writes: > I think I am in agreement regarding most of your points about the use of > the zero-width character. I see it as a type of escape hatch which > provides a solution in some less frequent situations. It is a somewhat > clever kludge to enable markup in some situations not support

Re: On zero width spaces and Org syntax

2021-12-03 Thread Juan Manuel Macías
Tom Gillespie writes: > I don't mean to be dismissive of the suggestion, but a lot of > time is spent on this list walking back ideas that have not > had sufficient time put into understanding what the > unintended consequences would be, so I wouldn't say > that it is irresponsible, I would say in

Re: Org-syntax: emphasis and not English punctuation

2021-12-04 Thread Juan Manuel Macías
Max Nikulin writes: > Maybe this issue should be considered independently of itra-word emphasis. Yes I agree. Apologies for mixing up this topic in the discussion about intra-word emphasis... > Second and third examples looks like they should be supported. Ihor > mentioned treating punctuation i

Re: Org-syntax: Intra-word markup

2021-12-04 Thread Juan Manuel Macías
Hi John, John Kitchin writes: > Along these lines (and combining the s-exp suggestion from Max) , you > can achieve something like this with links. I like this idea of merging the Maxim's proposal with the power of links. In any case, this and other workarounds provided here make it clear that

Re: Concrete suggestions to improve Org mode third-party integration :: an afterthought following Karl Voit's Orgdown proposal

2021-12-05 Thread Juan Manuel Macías
Ihor Radchenko writes: > The website title is "Org mode for Emacs", repelling users who _do >not want_ to use Org inside Emacs. Maybe we can do better? Something >with less accent on Emacs like "Org mode: your life in plain text" I am not at all in favor of separating the 'Org Mode' name

Re: Concrete suggestions to improve Org mode third-party integration :: an afterthought following Karl Voit's Orgdown proposal

2021-12-05 Thread Juan Manuel Macías
Ihor Radchenko writes: > I view "Org Mode" as a "brand name". Something uniquely identifying Org > mode and serving as a search term. Yes, it makes sense. > Is it your principal position about the title specifically? Do you think > that just referring to Emacs in the website description is not >

Re: Concrete suggestions to improve Org mode third-party integration :: an afterthought following Karl Voit's Orgdown proposal

2021-12-05 Thread Juan Manuel Macías
Ihor Radchenko writes: > Ok. Let me explain my thought process. > > First of all, there is no burden on users of Org mode in making edits to > orgmode.org. It is a burden on Org contributors. > > One of the aims of my proposal is reducing this burden by involving > non-emacs users to provide contr

Re: Concrete suggestions to improve Org mode third-party integration :: an afterthought following Karl Voit's Orgdown proposal

2021-12-05 Thread Juan Manuel Macías
Russell Adams writes: > What makes Org dramatically different is the editing experience in > Emacs. Collapsing the outline, filtering on metadata, exports, agenda, > etc. Those are Emacs features, not specific to the actual markup > format. > > My impression is we already have stretched our resour

Re: Concrete suggestions to improve Org mode third-party integration :: an afterthought following Karl Voit's Orgdown proposal

2021-12-05 Thread Juan Manuel Macías
Hi Timohy, Timothy writes: > I don’t think Ihor is suggesting we stop indicating that org-mode is part of > Emacs. Of course, I am convinced that Ihor is not saying that Org is not part of Emacs, and I have to make it clear, that I have never suggested such a thing. What's more, I understand and

Re: Concrete suggestions to improve Org mode third-party integration :: an afterthought following Karl Voit's Orgdown proposal

2021-12-06 Thread Juan Manuel Macías
Hi Greg, Greg Minshall writes: > i hope we don't adopt such an "official policy" regarding discussions on > this list. i don't think we've had any problems where non-FSF/GNU > topics have somehow swamped our discussions. Not that I want to put on a censor hat, far from it :-). But this is still

Re: Raw Org AST snippets for "impossible" markup

2021-12-06 Thread Juan Manuel Macías
Max Nikulin writes: > John, thank you for the reminding me of Juan Manuel's idea that > everything missed in Org may be polyfilled (ab)using links. > It is enough for proof of concept, special markers may be introduced > later. After some time spent exercising in monkey-typing, > I have got some c

Re: Raw Org AST snippets for "impossible" markup

2021-12-06 Thread Juan Manuel Macías
Juan Manuel Macías writes: > I would suggest, however, not to use the term 'italics [...blah blah...]' Sorry for the noise! I think I messed myself up... Naturally, 'italic' (or 'bold') is required: (italic () \"inter\") Best regards, Juan Manuel

Making a dictionary in Org

2021-12-08 Thread Juan Manuel Macías
entry only. Best regards, Juan Manuel -- Juan Manuel Macías https://juanmanuelmacias.com/ dictionary.org Description: Lotus Organizer

Re: Raw Org AST snippets for "impossible" markup

2021-12-08 Thread Juan Manuel Macías
Max Nikulin writes: > As you have guessed, It is not my choice, it is interface of ox.el and > org-element.el. Indeed. Sorry for my haste: it's the consequences of not read the code carefully :-) Of course, your orgia-link-procedure could be extended to more org elements. I can't think of what

Re: Raw Org AST snippets for "impossible" markup

2021-12-08 Thread Juan Manuel Macías
John Kitchin writes: > Have you seen > https://github.com/tj64/org-dp? It seems to do a lot with creating and > manipulating org elements. It might either be handy or lead to some > inspiration. Interesting package. Thanks for sharing. It gave me an idea, also borrowing part of Maxim's code, b

Re: Raw Org AST snippets for "impossible" markup

2021-12-09 Thread Juan Manuel Macías
Max Nikulin writes: > Looking into your code I have realized that it should be implemented > using filter, not through :export property of links. Maybe without > working proof of concept with link exporters, this session of > monkey-typing would not be successful. Jumping into the "real world"

Re: Raw Org AST snippets for "impossible" markup

2021-12-09 Thread Juan Manuel Macías
Juan Manuel Macías writes: > Jumping into the "real world", how about these two examples of nested > emphasis? By the way, what do you think about allowing the use of some kind of aliases, so that the aspect is less verbose? Maybe something like "(i::" instead of &

Re: format/fill of text in a cell in tables

2021-12-17 Thread Juan Manuel Macías
to...@tuxteam.de writes: > This reminds me of people advocating "semantic backup" (e.g. use > "emphasis" instead of "italics", until one realises that you just > managed to peel off one layer of the sematic onion. The onion just got > smaller (some literature perhaps might want to play with the am

Re: format/fill of text in a cell in tables

2021-12-18 Thread Juan Manuel Macías
Uwe Brauer writes: > I think, one attempt could be to use org-edit-special, to edit a cell, > type the text in a temporary buffer, fill it and then return to the table. > > That seems so obvious that I think there might be technical problems, > because otherwise it would have been implemented alr

Re: text after sub headings?

2021-12-23 Thread Juan Manuel Macías
Hi Robert, Robert Nikander writes: > I see why this is not possible, given the text format of an org file. > But I am curious if people think it would be useful. This is a bit > off-topic maybe, but I’m imagining what I would do if I created > something like org-mode using another underlying form

Re: text after sub headings?

2021-12-23 Thread Juan Manuel Macías
Robert Nikander writes: > If you view a "*" item as "book section", it's confusing. But if you > view a "*" item as "collapsible thing", then it makes more sense. I understand your use case. But I think in that context Org headings would still be useful (at least they remind us at what level we'r

Re: text after sub headings?

2021-12-24 Thread Juan Manuel Macías
Max Nikulin writes: > Text books and magazines may contain insets (side notes), sometimes > even page-long ones. They present independent material that may be > interesting or useful in particular context or may be just skipped > when a reader is concentrated on main material. Such inset may be >

Re: text after sub headings?

2021-12-26 Thread Juan Manuel Macías
Max Nikulin writes: > It is not necessary complex layout. It is a decoration similar to > pictures in fiction books. Unlike figures such additions are not > strictly important to understand material. In printed form it is like > figures however. Insets are appropriate in particular places, but >

Re: caption width in LateX export

2021-12-26 Thread Juan Manuel Macías
Hi Seb Seb writes: > When exporting to LaTeX, is there a mechanism to make the figure > captions as wide as the figure? In pure LaTeX, this can be easily > accomplished by placing the figure inside a minipage environment. > Using a special block, as in: > > \begin{minipage}{0.7\textwidth} > > #+

Re: caption width in LateX export

2021-12-27 Thread Juan Manuel Macías
t, consectetuer adipiscing elit #+ATTR_LaTeX: :width .3\linewidth [[img]] Best regards, Juan Manuel Juan Manuel Macías writes: > If you use the caption package (https://www.ctan.org/pkg/caption), you > can indicate in each figure the width of the caption. In this case, you >

Re: caption width in LateX export

2021-12-27 Thread Juan Manuel Macías
Sebastian P. Luque writes: > Thank you, Juan. Unfortunately, there is a price for this solution as > it is now impossible to name and refer to this segment as usual: I see. Have you tried the option with LuaTeX that I put in my other message? You can compile with LuaTeX also using latexmk: (set

Re: caption width in LateX export

2021-12-27 Thread Juan Manuel Macías
Sebastian P. Luque writes: > This is great, and very interesting to learn about the BIND keyword. > > Thank you, You're welcome. Of course, if you use the filter very often, it is not necessary to include it in a document or use the bind keyword. It would be enough to add the function to your ini

[BUG] Underlined text in parentheses is not exported correctly

2021-12-31 Thread Juan Manuel Macías
Hi all, I don't know if this is a known issue... Consider the text: (_underline_) When exported to LaTeX we get: (\textsubscript{underline}\_) And to HTML: (underline_) The same result with: (_underline_ text) LaTeX: (\textsubscript{underline}\_ text) But this: (this word is _underline

Re: [BUG] Underlined text in parentheses is not exported correctly

2021-12-31 Thread Juan Manuel Macías
Juan Manuel Macías writes: > If I do M-! (occur org-match-substring-regexp) > > I get: > > 10:(_underline_) > 22:(_underline_ text) Well, in my case the temporary workaround was to force super/subscripts with braces: #+begin_src emacs-lisp (defun my-org-element-sub

Re: [BUG] Underlined text in parentheses is not exported correctly

2021-12-31 Thread Juan Manuel Macías
Ihor Radchenko writes: > I am not sure if it is an actual issue. > > Note that (_u can be interpreted as a subscript. > Org prioritises subscript over underline. > > Looking at the code: > > (?_ (or (and (memq 'subscript restriction) > (org-element-subscript-parser)) > (and (memq '

Re: [PATCH] Re: [BUG] Underlined text in parentheses is not exported correctly

2022-01-01 Thread Juan Manuel Macías
Ihor Radchenko writes: > However, thinking about it more, I feel that prioritising underline > should work better. The underline parser recently got changed into a > stricter version. Now, only underlines starting after spaces,-,(,',", > and { are recognised as an underlines. > > So, the attached

A simple Lua filter for Pandoc

2022-01-04 Thread Juan Manuel Macías
Hi, Very often I need to convert docx documents to Org. There are a series of characters that I prefer to be passed to Org as Org entities and not literally, so I have written this little filter in Lua for Pandoc. I share it here in case it could be useful to someone. Of course, the associative ta

Re: A simple Lua filter for Pandoc

2022-01-04 Thread Juan Manuel Macías
Hi Timothy: Timothy writes: > I’m quite interested in this, thanks for sharing. In fact, I’ll probably add > this to . Interesting package. Until now I used a number of homemade functions to convert docx/odt files from Dired, but I think your packag

Re: A simple Lua filter for Pandoc

2022-01-04 Thread Juan Manuel Macías
Max Nikulin writes: > Ideally it should be done pandoc and only if it causes incorrect > parsing of org markup. NBSP, probably, should be replaced by some > exporters, I do not think, it is a problem e.g. in HTML files. The reason for this filter is my own comfort. Linguistics texts contains a lo

Re: Tool to compare and choose fonts

2022-01-05 Thread Juan Manuel Macías
Ypo writes: > Was a tool to compare fonts presented in this list some time ago? > > I lost it, I thought I discovered it on Reddit, but now I am thinking > I found it here. > > It was a script that presented on emacs every font in the computer, in > pairs; so the user chose one font each time, l

Re: A simple Lua filter for Pandoc

2022-01-05 Thread Juan Manuel Macías
Max Nikulin writes: > It seems, lightweight markup is more annoyance than advantage for you. > Tom posted some thoughts on more rigorous syntax in the following message: It's generally the opposite: working in Org is a pleasant journey for me... except when there are dozens of "/" and "*" in a d

Re: Way to mark contents of an Org special block as verbatim?

2022-01-06 Thread Juan Manuel Macías
Hi Kaushal, Kaushal Modi writes: > I would like to treat that block /like/ how Org treats the latex > environment blocks, but it needs to be a special block as > begin_katex/end_katex here is special and it could be a different > equation rendering backend for another user. > > So is that a heade

Re: Way to mark contents of an Org special block as verbatim?

2022-01-06 Thread Juan Manuel Macías
Kaushal Modi writes: > Wow, thanks for that complete code. I didn't know about the parse tree > functions. > > I was thinking if below is possible as any user running my exporter > would need to use this feature easily. > > #+begin_katex :verbatim t > E = -J \sum_{i=1}^N s_i s_{i+1} > #+end_katex

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: https://i.im

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

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

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 th

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

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

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 imag

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

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 ano

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 t

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

  1   2   3   4   5   6   7   8   9   >