Re: [PATCH] A proposal to add LaTeX attributes to verse blocks

2021-05-01 Thread Juan Manuel Macías
Hi Bastien, Thank you very much again for your kind suggestions. Bastien writes: > I'm copying Eric, a poweruser of the LaTeX backend, so that he can > perhaps comment on the general usefulness of this addition. I think these additions (line numbers, optical centering of the poem, etc.) can be

Re: How to create a macro that inserts multiline text with :B_ignoreheading: tag?

2021-04-30 Thread Juan Manuel Macías
Hi Richard, Richard Stanton writes: > I’d like to define a macro called, say, articletext, to insert this > header into my document before exporting to LaTeX, so the org file > would look something like this: > > {{{article text}}} > This text appears only in the article version. Macro definiti

[PATCH] Possibility of using alternative separators in macros

2021-04-30 Thread Juan Manuel Macías
Hi all, I would like to propose (patch attached) the possibility of using an alternate character for separate arguments in replacement macros, following a suggestion from Nicolas Goaziou in this (closed) thread: https://orgmode.org/list/87o8ead42u@nicolasgoaziou.fr/ The idea would be to expli

Re: [patch] to allow org-attach-git to handle individual repositories

2021-04-28 Thread Juan Manuel Macías
Hi Bastien, Bastien writes: > It looks good but it is significative enough to require you to sign > the FSF copyright assignment. If you're willing to go through this > (which will secure future contributions too), please see: Thanks for the advice. I just signed and sent the FSF copyright assi

Re: [tip] search this mailing list with helm-surfraw

2021-04-27 Thread Juan Manuel Macías
Hi Bastien, Bastien writes: > Neat! > > You might want to write another one for the public-inbox archive: > > E.g. https://orgmode.org/list/?q=Juan+Manuel+Mac%C3%ADas I was unaware that searches in the public-box archive are faster... Thank you very much for the advice :-) Best regards, Juan

Re: [PATCH] Startup option to separate macros arguments with an alternative string

2021-04-22 Thread Juan Manuel Macías
Hi Nicolas, Thank you very much for your suggestions. Nicolas Goaziou writes: > This change will need to be tested extensively in "test-org-element.el" > and "test-org-macro.el". > > However, as a start, I suggest starting a new thread about a suggested > change in the syntax, with a clear title

Re: [PATCH] Startup option to separate macros arguments with an alternative string

2021-04-21 Thread Juan Manuel Macías
Hello again. I forgot to answer this question on your previous message, sorry... Nicolas Goaziou writes: > That being said, we can discuss syntax that is not depending upon some > variable. For example macro names are written with a limited set of > characters (alphanumeric, dash, underscore). W

Re: [Patch] to correctly sort the items with emphasis marks in a list

2021-04-21 Thread Juan Manuel Macías
Hi all, Maxim Nikulin writes: > I think, new variant should be committed even it does not fix Juan's > case. He have not confirmed the fix yet. Sorry, I have been busy with other matters and had lost the thread of the discussion. I'm catching up on the messages... I have tried the Nicolas' patc

Re: [PATCH] Startup option to separate macros arguments with an alternative string

2021-04-20 Thread Juan Manuel Macías
Hi Nicolas Nicolas Goaziou writes: > Even though Org syntax partly is, I don't think parameterizable syntax > is a way to go. I'd rather have less variables controlling it. (I'm > looking at you `org-list-allow-alphabetical', and > `org-plain-list-ordered-item-terminator'.) Thanks for your expla

Re: [Patch] to correctly sort the items with emphasis marks in a list

2021-04-18 Thread Juan Manuel Macías
Juan Manuel Macías writes: > It seems that what I was proposing as a patch at the beginning is not, > finally, a viable solution for all contexts... > > The problem is that, if the first space is removed, we get this > abnormal result: > > #+begin_src emacs-lisp > (org-sor

Re: [Patch] to correctly sort the items with emphasis marks in a list

2021-04-18 Thread Juan Manuel Macías
Hi Maxim, Maxim Nikulin writes: > On 10/04/2021 07:01, Juan Manuel Macías wrote: >> Nicolas Goaziou writes: >>> Could you apply the same fix to the `org-verbatim-re' match above, and >>> provide an appropriate commit message? >> Done! I've attached the

Re: [Patch] to correctly sort the items with emphasis marks in a list

2021-04-15 Thread Juan Manuel Macías
Hi Maxim Maxim Nikulin writes: > I can reproduce the issue with emacs-27.1 from ubuntu-21.04 beta live > image running in qemu. Org mode is current git HEAD. It seems that > something is changed in emacs since locale is correct: > > ubuntu@ubuntu:~$ printf '%s- v\n- /v/\n- a\n- /a/\n' '' \ > |

Re: [Patch] to correctly sort the items with emphasis marks in a list

2021-04-14 Thread Juan Manuel Macías
ctly, but I observe that similar forms with or without emphasis are not always ordered in the same way. Sometimes the non-emphasized forms are ordered before and sometimes they are ordered after (?). I don't know if I'm missing something... Best regards, Juan Manuel Juan Manuel Macías write

Re: [Patch] to correctly sort the items with emphasis marks in a list

2021-04-14 Thread Juan Manuel Macías
ugh it was also reproducible in the test I did with Fedora in virtual machine and Emacs 27. Best regards, Juan Manuel Maxim Nikulin writes: > On 14/04/2021 02:08, Juan Manuel Macías wrote: >> The situation is that with locales configured for Spanish from Spain >> (en_ES.UTF-8) the

Re: [Patch] to correctly sort the items with emphasis marks in a list

2021-04-13 Thread Juan Manuel Macías
Hi, Maxim, Thanks for clearing things up. So it seems obvious that the root of the problem is in the locales and the collation rules. The situation is that with locales configured for Spanish from Spain (en_ES.UTF-8) the list is not ordered correctly, unless those three spaces from org-sort-remov

Re: [Patch] to correctly sort the items with emphasis marks in a list

2021-04-13 Thread Juan Manuel Macías
Hi Samuel, Samuel Wales writes: > probably not a relevant non-confirmation but in recent maint, my config: > > - a > - /a/ > - b Thanks for trying. I've uploaded this screencast with a minimal Emacs on a virtual machine: https://gnutas.juanmanuelmacias.com/images/org-sort-issue-2021-04-13_15.44

Re: [Patch] to correctly sort the items with emphasis marks in a list

2021-04-12 Thread Juan Manuel Macías
Hi Ypo, Ypo writes: > This is my result after doing "org-sort-list a": > > - /a/ > - /v/ > - a > - b > > Regards Thanks for trying. So it seems that you can reproduce the problem as well... I wonder if anyone else is able to reproduce it, preferably in a minimal emacs. Best regards, Ju

Re: [Patch] to correctly sort the items with emphasis marks in a list

2021-04-12 Thread Juan Manuel Macías
Nicolas Goaziou writes: > I cannot reproduce it. With your initial list, and a minimal init file, > I get: > > - /a/ > - a > - b > - /v/ > > Could you try with a minimal Emacs, too? That's weird ... I have tried launching emacs -q in a virtual machine, and I keep getting the wrong result

Re: [Patch] to correctly sort the items with emphasis marks in a list

2021-04-10 Thread Juan Manuel Macías
Hello Nicolas, Nicolas Goaziou writes: > Do you have a simple test case to reproduce the problem? Currently > sorting the following trivial lists causes no issue: > > - b > - *a* > > and > > - *b* > - a Consider this (unordered) list: - a - b - /v/ - /a/ The current result is w

Re: [Patch] to correctly sort the items with emphasis marks in a list

2021-04-09 Thread Juan Manuel Macías
Hellow Nicolas: Nicolas Goaziou writes: > Thank you. > > Could you apply the same fix to the `org-verbatim-re' match above, and > provide an appropriate commit message? Done! I've attached the corrected patch. Sorry for the flaws in me previous patch: I'm a bit of a novice at submitting patches.

Re: Choosing a LaTeX Compiler (my predilection for LuaTeX)

2021-04-07 Thread Juan Manuel Macías
Hello again, physiculus writes: > Yes that works! > usually i do not use imagemagick. I use graphicsmagick, but ido not know > how i have to set the right command line. > SVG does nothing. > Very sad :-( > I want to use this because of quality reasons. > Do you know, how i can test svg? the dvis

Re: Choosing a LaTeX Compiler (my predilection for LuaTeX)

2021-04-07 Thread Juan Manuel Macías
Hello, physiculus writes: > Hello again, > > thanks for the snippet, but unfortunately it doesn't work :-( > > Now it doesn't stop with error, it happens nothing. > here is my config. > > Variable: > org-preview-latex-default-process is a variable defined in ‘org.el’. > Its value is ‘luasvg’ > O

Re: Choosing a LaTeX Compiler (my predilection for LuaTeX)

2021-04-07 Thread Juan Manuel Macías
Hi Diego Diego Zamboni writes: > Hi Juan Manuel, > > Thank you for writing this, which is the clearest explanation I have > seen of the advantages of LuaLaTeX/XeLaTeX. I have been using LaTeX > for nearly 30 years, but stopped using it intensively every day when > pdfLaTeX was still the bleeding

Re: Choosing a LaTeX Compiler (my predilection for LuaTeX)

2021-04-06 Thread Juan Manuel Macías
Hi Tomas, to...@tuxteam.de writes: > AFAIK Lua(La)Tex can output dvi (and Juan Manuel's answer implies > thati, too). Either via the option --output-format=dvi or invoking > it as "dviluatex". > > But perhaps I missed something. Yes, the first option I have commented in my previous mail (setq lu

Re: Choosing a LaTeX Compiler (my predilection for LuaTeX)

2021-04-06 Thread Juan Manuel Macías
Hi physiculus, physiculus writes: > Hello, > i use LuaTex / LuaLatex successfully after some configs and readings. > The result (quality and speed) for me is better then with the old latex > engine. > I'm satisfied. > BUT one thing isn't working and as far as i read here, there is no > solution

Re: Choosing a LaTeX Compiler (my predilection for LuaTeX)

2021-04-05 Thread Juan Manuel Macías
Hi Arne, Dr. Arne Babenhauserheide writes: > Except if there is any feature you want to use that doesn’t work under > LuaTeX. > > pdfpages for example says that it only supports pdflatex and vtex. pdfpages works perfectly with both LuaTeX and XeTeX. I've been using it in LuaLaTeX for quite some

Choosing a LaTeX Compiler (my predilection for LuaTeX)

2021-04-05 Thread Juan Manuel Macías
Hi all, There have been some threads recently about exporting to LaTeX, but I think something that I consider interesting for novice Org/LaTeX users has not been commented: the choice of the TeX engine. I think this is important because although people often say they "use LaTeX", what they actuall

[tip] search this mailing list with helm-surfraw

2021-04-05 Thread Juan Manuel Macías
Hi all, I am a fanatic Helm user, and within Helm I make intensive use of helm-surfraw. It is necessary to install Surfraw on the system (in Arch it is in the community repository). For who does not know, Surfraw (https://en.wikipedia.org/wiki/Surfraw) is a script written by Julian Assange that le

Re: First steps exporting to tex

2021-04-04 Thread Juan Manuel Macías
Ypo writes: > I've already tried that. But it doesn't seem to understand the HOME > directory ~~/~. At least at Windows. I haven't touched Windows for a thousand years :-), but maybe this thread can help you: https://stackoverflow.com/questions/13584118/how-to-write-a-path-with-latex best regards

Re: how to export (latex) a image without using figure

2021-04-04 Thread Juan Manuel Macías
Hi Uwe, Try: #+ATTR_LaTeX: :float nil #+CAPTION: La función La función $x^2 e^{-\alpha x} = \frac{1}{\alpha}$, $\alpha=-\ln(1-p)$ con $p=0.01$ con $p=0.3$ [[./images/dfp_03.png]] Best regards, Juan Manuel Uwe Brauer writes: > Hi > > Currently > > #+CAPTION: La función La función $x

Re: How to expand macro in LaTeX export? How to use different options per export type?

2021-04-03 Thread Juan Manuel Macías
Jean Louis writes: > Another issue related to this setup is that I would like: > > - for HTML export: title:t toc:t > > - for LaTeX PDF export: title:nil toc:nil > > Is there way to have options different for different exports? You can do it with a macro like this: #+MACRO: titletoc (eval (cond

Re: First steps exporting to tex

2021-04-03 Thread Juan Manuel Macías
Hi Jean Louis, Jean Louis writes: > Do you have a specific remark on what would be major wrong with the > default LaTeX export from your viewpoint? > > For me, I like larger letters and more space on paper. I find it > narrow and not enough legible. But that is not typographically > technical com

Re: How to get a table into a variable in a shell code block?

2021-04-03 Thread Juan Manuel Macías
Hi Greg and William, Greg Minshall writes: > William, > > try > > #+begin_src shell :results output :var n=numbers > echo ${n[1]} > #+end_src > > cheers, Greg I don't know if I'm saying something wrong, but wouldn't it be better this way?: #+begin_src shell :results output :var n=numbers echo $

Re: First steps exporting to tex

2021-04-03 Thread Juan Manuel Macías
William Denton writes: > [...] and it looks like a published book or journal article! Something similar I thought, in my student days, when at the early '90 I saw a document printed in word perfect, just because it had a book typeface (Times Roman), footnotes and many more fancy stuff. It looked

Re: First steps exporting to tex

2021-04-03 Thread Juan Manuel Macías
Hi Ypo, I think that, as a starting point, the concepts that belong to Org and those that belong to LaTeX should be separated. Ypo writes: > [...] > 2 template.tex -> this could be added to the SETUPFILE: > #+LATEX_HEADER: \input{template.tex}. But it seems to have no effect > on the PDF ou

Re: Including Email Address in the Reply in Mailing-list

2021-04-02 Thread Juan Manuel Macías
Tim Cross writes: > I have no issue with this suggestion and am happy to try and comply. > > The challenge for many will be that they either > > - need to remember to remove the email details manually (line/header > automatically added by mail client) while sorting out either > > - how to modify m

[Patch] to correctly sort the items with emphasis marks in a list

2021-04-02 Thread Juan Manuel Macías
Hi all, I have noticed that a couple of (spurious?) spaces in a `format' expression of `org-sort-remove-invisible' is causing `org-sort-list' not to sort correctly (alphabetically) the items that contain emphasis marks in a plain list. I propose this very simple patch to fix that problem. Best re

Re: About exporting

2021-04-01 Thread Juan Manuel Macías
Eric S Fraga writes: > On Wednesday, 31 Mar 2021 at 20:28, Martin Steffen wrote: >> And there is a final thing which (for me) seem to work better in >> latex-mode compared to org. That's jumping to the ``next error'' with >> some key stroke. That's important, LaTeX's own error output it quite >>

Re: About exporting

2021-03-31 Thread Juan Manuel Macías
Martin Steffen writes: > [...] And last not least; if I ``compile'' the document (firing off latex, > bibtex, or index or whatever), the compilation runs in the background. > As far as I do that in org (exporting to pdf), it blocks emacs. Not > that it's a huge delay even, at least for smaller do

Re: About exporting

2021-03-30 Thread Juan Manuel Macías
Martin Steffen writes: > In my experience, ith latex, it's possible to write text together for > well-intended people. Publishing houses tell you ``these are the classes > and style files (among perhaps others) that you _have_ to use, and also > do the following...'' (same possible for wisiwyg-e

Re: About exporting

2021-03-30 Thread Juan Manuel Macías
Eric S Fraga writes: > On Tuesday, 30 Mar 2021 at 09:06, Tim Cross wrote: >> The trick with Latex is to go with the flow, not against it. > > +1 > > This is the first thing I tell my students. LaTeX knows much much more > about how to make documents look good than any of us ever will. If you d

Re: About exporting

2021-03-29 Thread Juan Manuel Macías
Hi, Ypo writes: > LaTeX: I can see some masters here that make professional books, and I > have some friends that publish scientific papers using LaTeX. But, it > looks like a like a rabbit hole to me, since even the masters seem to > have to modify the tex file directly (is this correct?), not

Re: "Org" source blocks and minted

2021-03-26 Thread Juan Manuel Macías
Hi Timothy, I really like your approach. And it is org/emacscentric! Minted has never quite convinced me, and gives me some trouble with certain packages in LuaLaTeX that I have not been able to solve. Thank you for this promising alternative. Best regards, Juan Manuel Timothy writes: > Jua

An interesting LaTeX package

2021-03-25 Thread Juan Manuel Macías
Hi all, This is not directly related to Org-Mode (apologies for the light off-topic), but I thought this new LaTeX package uploaded to CTAN could be of interest to those who regularly export from Org to LaTeX and want to get a document as 'perfect' as possible, typographically speaking ;-) The Lu

Re: "Org" source blocks and minted

2021-03-23 Thread Juan Manuel Macías
Hi Mike, Michael Gauland writes: > I want to include an "org" source block in a document as an example, > and have it formatted with minted. Unfortunately, minted doesn't seem > to recognize "org" as a language,and the block is missing in the > resulting PDF. For the moment, I've changed this to

Re: Items with emphasis marks are not sorted properly in a list

2021-03-23 Thread Juan Manuel Macías
h emphasis marks are sorted correctly in the list: 7org-emph-re (lambda (m) (format "%s" (match-string 4 m))) Can this be a fix? Or were those spaces there for any other reason? Best regards, Juan Manuel Juan Manuel Macías writes: > Hi, > > Consider this list: > > -

Items with emphasis marks are not sorted properly in a list

2021-03-22 Thread Juan Manuel Macías
Hi, Consider this list: - vol. - adj. - /circa/ - /vid./ If I evaluate `(org-sort-list t ?a)', it seems that `org-sort-list' doesn't sort correctly items that contain an emphasis mark: - /circa/ - /vid./ - adj. - vol. I don't know if there is any solution to this, or if I'm doing something wr

Re: Syntax Proposal: Multi-line Table Cells/Text Wrapping

2021-03-21 Thread Juan Manuel Macías
Hi Samuel, Samuel Wales writes: > i like that. such an org edit special type feature could efven in > principle work for a column or a row all at once. I like the idea of being able to edit rows or columns as well... As I mentioned in a previous message, I made this rudimentary proof of conce

Re: Syntax Proposal: Multi-line Table Cells/Text Wrapping

2021-03-20 Thread Juan Manuel Macías
Tim Cross writes: > It has also been stated that the Latex exporter won't be a problem as > tabularx (and other Latex packages) will just handle this. Sadly, I > don't think it is that simple. I have used that package a lot over the > years and there have been times I've had to render tables with

Re: Syntax Proposal: Multi-line Table Cells/Text Wrapping

2021-03-19 Thread Juan Manuel Macías
to...@tuxteam.de writes: > [...] My point was that it probably makes sense to separate concerns > here. Yes, that separation is essential. I agree. > That's right. OTOH, people will try to stretch it in every conceivable > direction. That's in a way Org's biggest strength (and at the same time >

Re: Syntax Proposal: Multi-line Table Cells/Text Wrapping

2021-03-19 Thread Juan Manuel Macías
* sorry for the typo. I meant "...n columns x n rows..." Juan Manuel Macías writes: > Anyway, I suspect that Org tables are not originally intended for such a > 'literary' content :-) ... LaTeX tabular(x) environment and Org tables > have in common that they are

Re: Syntax Proposal: Multi-line Table Cells/Text Wrapping

2021-03-19 Thread Juan Manuel Macías
to...@tuxteam.de writes: > For export formats, there could be (yet another) "signal" to convey > "new paragraph here" which then is the exporter's job. Perhaps an > empty line (as is traditional in TeX) or something else. I think that signal would be a good solution within a single line. For exam

Re: Syntax Proposal: Multi-line Table Cells/Text Wrapping

2021-03-19 Thread Juan Manuel Macías
to...@tuxteam.de writes: > My post was rather a warning that "multi-line" will mean > different things to different people. Yes I agree. It is not the same as how a table is represented in Org and how it should be rendered when exported to some typographic format like (let's say) LaTeX. I think a

Re: Syntax Proposal: Multi-line Table Cells/Text Wrapping

2021-03-19 Thread Juan Manuel Macías
Hi Tomas, writes: > If the aim is "just rendering in Org" and "breaks have no special > meaning" (so each render is allowed to re-flow), then your approach > makes sense (I think Org table has something like that: you can > set the column width and shrink/expand the column appropriately. > Perso

Re: Syntax Proposal: Multi-line Table Cells/Text Wrapping

2021-03-18 Thread Juan Manuel Macías
Tim Cross writes: > From watching these discussions in the past, I think the big stumbling > block is how easily multi-row columns can be added and maintained in the > various export formats. Some are easy, like HTML, but others are less > so. In particular, I know from my many years working with

Re: Syntax Proposal: Multi-line Table Cells/Text Wrapping

2021-03-18 Thread Juan Manuel Macías
Atlas Cove writes: > In effect, yes. I'm proposing it as a syntax addition to make it easier to > read, export, and manage, larger tables. > I'm unsure if this would fit within the scope of org, but > [[https://github.com/RedBug312/markdown-it-multimd-table][other projects]], > like > [[https:

Re: Syntax Proposal: Multi-line Table Cells/Text Wrapping

2021-03-17 Thread Juan Manuel Macías
Hi, Atlas Cove writes: > Code-wise, the use of the '\\' symbol is only tentative, as I > understand that '\' has special meaning elsewhere in org's syntax, (I > was even going to submit a patch to add two special symbols somewhere > down the line). '\\' (or whatever symbol is decided on) would c

Nested macros and fontification

2021-03-15 Thread Juan Manuel Macías
Hi, I make heavy use of replacement macros, and often my Org documents are full of nested macros (in the 'LaTeX way') throughout the text. The problem is that `org-fontify-macros' breaks the macro fontification when it is a nested construction. I've found a simple high level solution that consist

Re: Org as a book publisher

2021-03-07 Thread Juan Manuel Macías
Hi Bob, thank you for your comment. Bob Newell writes: > Aloha, > > Thank you for your interesting and useful post. > > I must really look into your examples and process. I have > published quite a number of books with LaTeX but my process > has been to write in org-mode, then export, and do all

Re: Org as a book publisher

2021-03-07 Thread Juan Manuel Macías
Hi Arne, Thank you very much for sharing the code of your book. It seems very interesting, I have to take a closer look at it. I want to upload to GitLab all the code of those two books of my samples, but I need to rearrange it before, as most of that code is in Spanish :-) But, broadly speaking,

Re: Org as a book publisher

2021-03-07 Thread Juan Manuel Macías
Hi Diego, Thank you very much for your comments. Diego Zamboni writes: > I think with Org and a setup like you describe, we are one step closer > to separating content (what) from form (how) in a document. This was > one of the original goals of LaTeX, but of course in a LaTeX document > much o

Re: Org as a book publisher

2021-03-07 Thread Juan Manuel Macías
Hi Quintus: Thank you very much for your comments. M. ‘quintus’ Gülker writes: > [...] Many people seem to use org rather than direct LaTeX because they > dislike LaTeX's syntax or find LaTeX too complex, which I never really > understood. But you make some great points for why this combination

Org as a book publisher

2021-03-06 Thread Juan Manuel Macías
Hi, I would like to share here two samples of one of the most intense uses that I give Org Mode: for typesetting, layout and editorial design. In other words, I use Org (and Org-Publish) where publishers today use DTP proprietary software like InDesign or QuarkXpress (a type of software, on the ot

Re: Bug: alphabetical lists will not show up as such in LaTeX export [9.3.6 (9.3.6-71-g7684b5-elpaplus @ /home/qqwy/.emacs.d/elpa/org-plus-contrib-20200518/)]

2021-03-05 Thread Juan Manuel Macías
Hi, Qqwy/Wiebe-Marten writes: > However, the LaTeX that is exported will still create normal `enumerize` > lists that do /not/ show up as alphabetical but rather still use `1.`, > `2.`, `3.` for numbering. > > I think this current behaviour is at the very least surprising, and > possibly uninten

Re: Org mode links: Open a PDF file at a given page and highlight a given string

2021-03-03 Thread Juan Manuel Macías
Hi Maxim Thanks for your advice, which I appreciate very much. Maxim Nikulin writes: > On 03/03/2021 09:31, Juan Manuel Macías wrote: >> (start-process-shell-command "zathura" nil (concat "zathura " >>

Re: Org mode links: Open a PDF file at a given page and highlight a given string

2021-03-02 Thread Juan Manuel Macías
Hi Rodrigo, Rodrigo Morales writes: > I want to be able to > > + create a Org link to specific pages of a PDF. I've managed to > accomplish this by setting the following value. > [ ... ] > + create a Org link to specific pages of a PDF and highlight a given > string. A possible alternative,

Re: [tip for EXWM users] An alternative method for isolate trees

2021-03-01 Thread Juan Manuel Macías
Hi Julian, "Julian M. Burgos" writes: > This does not seem to be a limitation from emacs, as it is possible to > open multiple indirect buffers from a base buffer, using for example > clone-indirect-buffer. So it should be possible to make a function > combining "clone-indirect-buffer" and "org-

Re: [tip for EXWM users] An alternative method for isolate trees

2021-03-01 Thread Juan Manuel Macías
Hi Julian, thanks for your comment. "Julian M. Burgos" writes: > Thank you, although I tested your functions and compared with the > original org-tree-to-indirect-buffer, the only difference I see is > that your function creates a new exwm workspace. The original function > already creates indir

[tip for EXWM users] An alternative method for isolate trees

2021-03-01 Thread Juan Manuel Macías
Hi, Since EXWM uses Emacs frames as virtual desktops, I have written this alternative method of `org-tree-to-indirect-buffer', which I share here. With this method I can have several isolated trees, with their own name, and access them quickly (with helm-buffer-list, for example): #+begin_src ema

Re: printing org table landscape on complete page

2021-02-28 Thread Juan Manuel Macías
Hi, You can use: #+ATTR_LaTeX: :float sideways which is exported to LaTeX with the sidewaystable environment (rotating package). And for the table to fit vertically on the page: #+LaTeX_Header: \usepackage{tabularx} #+ATTR_LaTeX: :float sideways :environment tabularx :width \textheigtht Rega

Re: content management in emacs

2021-02-27 Thread Juan Manuel Macías
Martin Steffen writes: > I am not sure about the question. If I send to an email list, it's an > address in BBDB. So I ``invoke'' BBDB (M-x bbdb) and give it the name of > the entry (say org-mode). That's analogous to send to a person: If you > remember the name (or part of the name), you find th

Add color space and icc profile information to images

2021-02-25 Thread Juan Manuel Macías
Hi, When working with images for print, I often need to get quickly the color space and icc profile information of each included image, so I came up with this function (code at the end of this mail) that I share here, in case it is useful to someone. The function inserts the information I need, un

false-list-item-mode?

2021-02-23 Thread Juan Manuel Macías
Hi, This is not a solution to what was commented in this recent thread (https://lists.gnu.org/archive/html/emacs-orgmode/2021-02/msg00239.html) on the false list item issue. But, in case anyone finds it useful, I happened to sketch this minor mode to highlight, while typing, *only* (+/-) those lin

Re: 'false' list item

2021-02-21 Thread Juan Manuel Macías
Tim Cross writes: > The issue is, if we decide this is a bug, can we fix it? Is it a bug or > is it just an accepted limitation of the org document format and what we > have to do is ensure either no line starts with a '1. ' or we use > something like a unicode character so that it doesn't look l

Re: 'false' list item

2021-02-21 Thread Juan Manuel Macías
Samuel Wales writes: > perhaps if there is no blank line above or below, then it could be not a list. I think this solution would be fine, although plain paragraphs starting with digit/letter + period + space would be false positives. Anyway, some kind of highlighting in the items, a defined fac

Re: 'false' list item

2021-02-21 Thread Juan Manuel Macías
Kyle Meyer writes: > It seems that your approach would do a good job of helping you catch > cases that you don't want to be treated as lists. I'm not aware of any > related functionality in Org, so I don't think you're missing something > there. > > Once you know that there is a particular spot

Re: 'false' list item

2021-02-21 Thread Juan Manuel Macías
Hi, Tim Cross writes: > If a line starts with a number, period and space, but that line is > within a paragraph (i.e. no blank line above), then I don't think it > should be interpreted as an enumerated list item. If this is what the OP > is referring to, I would argue it is a bug. If it is a 'p

[PATCH] Startup option to separate macros arguments with an alternative string

2021-02-18 Thread Juan Manuel Macías
Hi, I would like to propose this (possible) patch. With `#+STARTUP: macro-arg-sep-other' the macros arguments can be separated by a string other than comma, whose value is defined in `org-macro-arg-sep-other' (by default it is "'@"). Rationale for this patch: There are many contexts where the co

Re: [question] lisp code in :results header arg.?

2021-02-16 Thread Juan Manuel Macías
"Berry, Charles" writes: > I think you might do better to use noweb chunks, viz. > > #+name: pre-amble > #+begin_src latex :exports none > > \usepackage{luacode} > \usepackage{fontspec} > \directlua > { > [...] > } > } > \setmainfont{Linux Libertine O} > [RawFeature={+ktest}] >

[question] lisp code in :results header arg.?

2021-02-16 Thread Juan Manuel Macías
Hi, I'm exploring some ways to include a complex LaTeX preamble using source blocks. Consider this (code at the end of this message), that works fine. My question is: In order to do it all in a single block, would there be any way to pass the output of the first block as an argument to a function

'false' list item

2021-02-15 Thread Juan Manuel Macías
Hi, If a line in a paragraph starts with a digit (or letter) + period + space, Org misinterprets that as a list item. I almost always notice this only when I export my document, which is a nuisance. I wonder if there is any standard solution to that, or if I'm missing something... All that occurr

[Tip] Write the LaTeX preamble in a source block

2021-02-13 Thread Juan Manuel Macías
Hi, Although I almost always use custom LaTeX classes and a separate file for the preamble, I came up with this method to take advantage of the 'latex' source blocks and write the entire preamble there. I guess there will be a more elegant way to do it, but I think that it works reasonably well ;-

Macros and possible alternatives to the comma character (enhancement?)

2021-02-12 Thread Juan Manuel Macías
Hi, In my Org docs I make a heavy use of replacement macros. I think they are a powerful and versatile. I only see one problem: in my opinion, the comma as a character to separate arguments seems unproductive to me. I often use macros to enter textual content, and I find it a bit tedious having to

Re: emphasizing source code words

2021-02-04 Thread Juan Manuel Macías
Hi Luca Luca Ferrari writes: > Thanks, but stil Im not able to figure it out. I've searched thru the > org documentation without any luck. > > Luca To use the minted package as backend (https://www.ctan.org/pkg/minted), I have in my Emacs: (setq org-latex-listings 'minted) (setq org-latex-mi

Re: word counts and org-mode drawers

2021-02-01 Thread Juan Manuel Macías
Hi, Sharon Kimble writes: > How can I exempt an org-mode drawer, and its contents, from word counts > please. I am using 'wc-mode' but I can't see how to do it. It is not a solution with wc-mode, but maybe this simple function, based on `count-words', can serve you. It counts the words in the b

Re: http links translated to html : target "_blank"

2021-02-01 Thread Juan Manuel Macías
Uwe Brauer writes: > That is odd (maybe my org version is a bit rusty (master june 2020) It's strange... It should work fine for you (as long as you set `org-export-allow-bind-keywords' as non-nil) You can also try `org-export-filter-link-functions' instead of `...-final-output-functions'. An

Re: http links translated to html : target "_blank"

2021-02-01 Thread Juan Manuel Macías
Hi Uwe, Uwe Brauer writes: > Thanks that works, but not for link in a list. The only solution > seems to be this one Doesn't it work for you in a list? I think it should work also in a list. If I export this: #+begin_src org ,#+BIND: org-export-filter-final-output-functions (correct-target-

Re: http links translated to html : target "_blank"

2021-02-01 Thread Juan Manuel Macías
I think the problem is how the exporter understands the url string. Note that this: @@html:https://www.mpic.de/4747361/risk-calculator"; target="_blank">Simulador de riesgo con más detalle@@ [[https://www.mpic.de/4747361/risk-calculator target="_blank"][Simulador de riesgo con más detalle]] i

[patch] to allow org-attach-git to handle individual repositories

2021-01-31 Thread Juan Manuel Macías
Hi, I would like to propose and discuss this patch for org-attach-git, following a series of comments and suggestions from Ihor Radchenko in this thread: https://lists.gnu.org/archive/html/emacs-orgmode/2021-01/msg00483.html This patch would allow org-attach-git to handle individual repositories,

Re: org-attach-git don't automatically commit changes

2021-01-31 Thread Juan Manuel Macías
Ihor Radchenko writes: > What is more tricky is making sure that workflow for people using the > old behaviour is not broken. Just changing to (org-attach-dir) will > break existing git repos in org-attach-id-dir. This should also not be > too hard (say, we can introduce a custom variable default

Re: org-attach-git don't automatically commit changes

2021-01-31 Thread Juan Manuel Macías
Ihor Radchenko writes: > The other thing is that `org-attach-id-dir' makes much less sense from > the time :DIR: property was introduced. So, I believe that > org-attach-git should be updated. Probably, handling attachment dirs as > individual git repos can be one of the ways to upgrade the curre

Re: org-attach-git don't automatically commit changes

2021-01-31 Thread Juan Manuel Macías
Ihor Radchenko writes: > I think you misunderstood how org-attach-git works. > > org-attach-git is: > > ;; An extension to org-attach. If `org-attach-id-dir' is initialized > ;; as a Git repository, then org-attach-git will automatically commit > ;; changes when it sees them. Requires git-annex

Re: org-attach-git don't automatically commit changes

2021-01-31 Thread Juan Manuel Macías
Hi Ihor, Ihor Radchenko writes: > Does it mean that your attachment folder is set in :DIR: property? No, my attachment folder is build using :ID: property. For example, in my heading: * Test :PROPERTIES: :ID: d0e690e2-2ecd-4224-891a-b91257db5389 :END: And if I evaluate `org-atta

Re: org-attach-git don't automatically commit changes

2021-01-30 Thread Juan Manuel Macías
Hi Ihor, Ihor Radchenko writes: > Note that org "sees" changes in the attachment dir only when you use > M-x org-attach command to manage the attachments. Directly changing the > attachment directory will not be noticed. You can force org-mode to > check for changes in attachment dir by running

org-attach-git don't automatically commit changes

2021-01-29 Thread Juan Manuel Macías
Hi, I don't know if this is a bug or if I am doing something wrong... According to the manual: #+begin_quote If the directory attached to an outline node is a Git repository, Org can be configured to automatically commit changes to that repository when it sees them. To make Org mode take care o

Re: [Tip] Export a bibliography to HTML with bibLaTeX and make4ht

2021-01-25 Thread Juan Manuel Macías
Hi Gustavo, Gustavo Barros writes: > I'd also would love to see that. ;-) > > And I do think Org is, by far, the best placed tool to fill this > place. But I also think citations and bibliography are a big > bottleneck in that regard. Of course, there is a long ongoing effort > in that area, in

Re: [Tip] Export a bibliography to HTML with bibLaTeX and make4ht

2021-01-24 Thread Juan Manuel Macías
Hi Gustavo, Thank you for your interesting comments. Gustavo Barros writes: > On Sun, 24 Jan 2021 at 08:37, Gustavo Barros > wrote: > >> It should handle two limitations of your procedure, which >> are: getting the bibliography with the entries actually cited in the >> document and citation ca

[Tip] Export a bibliography to HTML with bibLaTeX and make4ht

2021-01-23 Thread Juan Manuel Macías
Hi, When I export to LaTeX an Org document that contains a bibliography, I use bibLaTeX with a very custom style (i.e. quite a few lines of code related to bibLaTeX in the preamble). I wanted to apply all that bibLaTeX setting and styles when exporting to HTML too, so I came up with this method, u

Re: Dealing with wide labels in description environment

2021-01-22 Thread Juan Manuel Macías
Hello, "Loris Bennett" writes: > I have tried tweaking options such as labelindent and labelwidth in a > somewhat haphazard manner with, say, > > #+attr_latex: :options [labelindent=0pt, labelwidth=10ex] > > but most of my attempts seem to have the main effect of just shifting > the whole l

Re: Region-based meta-notes

2021-01-19 Thread Juan Manuel Macías
Hello, Lawrence Bottorff writes: > So yes, simply being able to select regions and make side notes about > them could give you a very fine level of control over metadata in a > file. Is there such a thing in the Emacs/org-mode world? Take a look at the org-marginalia package: https://github.co

<    3   4   5   6   7   8   9   >