* Re: Re: [FR] Please add custom command variable to org-latex-footnote-refere
@ 2024-04-20 7:04 Pedro A. Aranda
2024-04-20 20:23 ` Alexander Gogl
2024-04-21 8:34 ` Alexander Gogl
0 siblings, 2 replies; 6+ messages in thread
From: Pedro A. Aranda @ 2024-04-20 7:04 UTC (permalink / raw)
To: gogl.alexander; +Cc: Org Mode List
/Hi, Alexander Gogl <gogl.alexander@gmail.com> writes: /> ox-latex: New option to customize LaTeX footnote command
I hope you are aware that with your patch you are not going to be aware to pass
extra options to your foot or side notes, right? And since I'm not familiar with
kaobook, just a question. Are you sure that the foot and side notes will not choke
at a \label{} inside the text?
//> PS: I have a hard time to setup an environment to test the patch because
> my Spacemacs configuration conflicts with the Org mode development
> version. Can anyone provide me a link to a ressource that describes the
> procedure?
I'm running on a vanilla Emacs and
---cut here --
(let ((org-devel-path (expand-file-name "~/Devel/org-mode/lisp")))
(when (file-directory-p org-devel-path)
;; (message "Adding %s to load-path" org-devel-path)
(add-to-list 'load-path org-devel-path)))
---cut here --
in my .emacs.d/early-init.el does the job. I have a general Devel directyl for my development jobs.
Hope it helps, /PA
PS: Cool kaobook. I've used koma-script for most of my LaTeX work in the last 15 years +/- ;-) though.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [FR] Please add custom command variable to org-latex-footnote-refere
2024-04-20 7:04 Re: [FR] Please add custom command variable to org-latex-footnote-refere Pedro A. Aranda
@ 2024-04-20 20:23 ` Alexander Gogl
2024-04-21 8:34 ` Alexander Gogl
1 sibling, 0 replies; 6+ messages in thread
From: Alexander Gogl @ 2024-04-20 20:23 UTC (permalink / raw)
To: Pedro A. Aranda; +Cc: Org Mode List
Hi Pedro,
thank you for the early-init.el suggestion. However, it doesn' work for me. I still get the following error (even in vanilla emacs):
..................................................
⛔ Warning (emacs): Org version mismatch. Org loading aborted.
This warning usually appears when a built-in Org version is loaded
prior to the more recent Org version.
Version mismatch is commonly encountered in the following situations:
...
..................................................
Maybe it has to do with the Mac OS Port "emacs-plus" (https://github.com/d12frosted/homebrew-emacs-plus) I am using?
I will test your concern as soon as I am able to solve the org version mismatch error.
Best
Alexander
"Pedro A. Aranda" <paaguti@gmail.com> --- 2024-04-20 Sa 09:04:
> /Hi, Alexander Gogl <gogl.alexander@gmail.com> writes: /> ox-latex: New option to customize LaTeX footnote command
>
> I hope you are aware that with your patch you are not going to be aware to pass
> extra options to your foot or side notes, right? And since I'm not familiar with
> kaobook, just a question. Are you sure that the foot and side notes will not choke
> at a \label{} inside the text?
> //> PS: I have a hard time to setup an environment to test the patch because
>> my Spacemacs configuration conflicts with the Org mode development
>> version. Can anyone provide me a link to a ressource that describes the
>> procedure?
>
> I'm running on a vanilla Emacs and
>
> ---cut here --
> (let ((org-devel-path (expand-file-name "~/Devel/org-mode/lisp")))
> (when (file-directory-p org-devel-path)
> ;; (message "Adding %s to load-path" org-devel-path)
> (add-to-list 'load-path org-devel-path)))
> ---cut here --
>
> in my .emacs.d/early-init.el does the job. I have a general Devel directyl for my development jobs.
>
> Hope it helps, /PA
>
> PS: Cool kaobook. I've used koma-script for most of my LaTeX work in the last 15 years +/- ;-) though.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [FR] Please add custom command variable to org-latex-footnote-refere
2024-04-20 7:04 Re: [FR] Please add custom command variable to org-latex-footnote-refere Pedro A. Aranda
2024-04-20 20:23 ` Alexander Gogl
@ 2024-04-21 8:34 ` Alexander Gogl
2024-04-21 13:45 ` Ihor Radchenko
1 sibling, 1 reply; 6+ messages in thread
From: Alexander Gogl @ 2024-04-21 8:34 UTC (permalink / raw)
To: Pedro A. Aranda; +Cc: Org Mode List
[-- Attachment #1: Type: text/plain, Size: 267 bytes --]
Hi Pedro,
dear community,
I have tested the global and buffer local options with kaoscript and the article class. I could't find any problems with the option. Labels and footnotes inside footnotes work.
The current version of the patch (fixed a typo) is attached.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0003-lisp-ox-latex.el-Fixed-typo.patch --]
[-- Type: text/x-patch, Size: 937 bytes --]
From 7ff2baa24dbcfa0675d8e797746f6f2965c19a8c Mon Sep 17 00:00:00 2001
From: Alexander Gogl <gogl.alexander@gmail.com>
Date: Sun, 21 Apr 2024 10:41:54 +0200
Subject: [PATCH 3/3] lisp/ox-latex.el: Fixed typo
* /ox-latex.el (org-latex-default-footnote-command): fixed typo in
description of option
TINYCHANGE
---
lisp/ox-latex.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 058b5a31a..22a9595ab 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -671,7 +671,7 @@ The function result will be used in the section format string."
(defcustom org-latex-default-footnote-command "\\footnote{%s%s}"
"Default command used to insert footnotes.
Customize this command if the LaTeX class provides a different
- command like `\sidenote{%s%s}' that you want to use.
+ command like `\\sidenote{%s%s}' that you want to use.
%s
"
:group 'org-export-latex
--
2.41.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-ox-latex-New-option-to-customize-LaTeX-footnote-comm.patch --]
[-- Type: text/x-patch, Size: 4117 bytes --]
From 12d211a5f0c56faf1b829fef26f788f210a31382 Mon Sep 17 00:00:00 2001
From: Alexander Gogl <gogl.alexander@gmail.com>
Date: Wed, 17 Apr 2024 21:22:51 +0200
Subject: [PATCH 2/3] ox-latex: New option to customize LaTeX footnote command
* lisp/ox-latex.el (org-export-define-backend): Add option.
(org-latex-default-footnote-command): New custom variable.
(org-latex-footnote-reference): Replace string "\\footnote{%s%s}"
with custom variable.
* etc/ORG-NEWS (New and changed options): Add description to option.
Some LaTeX classes define their own footnote commands. For example,
kaobook (https://github.com/fmarotta/kaobook/blob/master/example_and_documentation.pdf)
has \footnotes and \sidenotes, whereby sidenotes (notes are put into
the outter margin) are the dominant form of putting notes in
kaobook. It would be great if you could make the footnote command in
the footnote function customizable. My proposal is in the attachment.
Modified from a feature request by Alexander Gogl.
TINYCHANGE
---
etc/ORG-NEWS | 12 ++++++++++--
lisp/ox-latex.el | 12 ++++++------
2 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index a579260f5..571ab3c98 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -999,9 +999,17 @@ even though it does not have its own ID. By giving files top-level id
properties, links to headlines in the file can also be made more
robust by using the file id instead of the file path.
-*** New option ~latex-default-footnote-command~
+*** New option ~latex-default-footnote-command~ to customize the LaTeX footnote command
-This new option allows you to define the LaTeX command the org-mode footnotes are converted to (for example ~\\sidenote{%s%s}~).
+This new option allows you to define the LaTeX command the Org mode
+footnotes are converted to (for example ~\sidenote{%s%s}~ instead of
+the default ~\footnote{%s%s}~).
+
+The option can be customized either by
+
+a) setting the global variable in the ~org-export-latex~ customization
+ group or
+b) by setting the file local variable ~LATEX_FOOTNOTE_COMMAND~
** New features
*** =colview= dynamic block now writes column width specifications
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index b45d13ca2..058b5a31a 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -135,9 +135,7 @@
(:latex-default-table-environment nil nil org-latex-default-table-environment)
(:latex-default-quote-environment nil nil org-latex-default-quote-environment)
(:latex-default-table-mode nil nil org-latex-default-table-mode)
- ;; TODO implement options variable
- (:latex-default-footnote-command "\\footnote{%s%s}" nil org-latex-default-footnote-command)
- ;;
+ (:latex-default-footnote-command "LATEX_FOOTNOTE_COMMAND" nil org-latex-default-footnote-command t)
(:latex-diary-timestamp-format nil nil org-latex-diary-timestamp-format)
(:latex-engraved-options nil nil org-latex-engraved-options)
(:latex-engraved-preamble nil nil org-latex-engraved-preamble)
@@ -672,9 +670,11 @@ The function result will be used in the section format string."
(defcustom org-latex-default-footnote-command "\\footnote{%s%s}"
"Default command used to insert footnotes.
- Customize this command if the LaTeX class provides a different notation command like `\\sidenote{%s%s}' that you want to use."
+ Customize this command if the LaTeX class provides a different
+ command like `\sidenote{%s%s}' that you want to use.
+%s
+"
:group 'org-export-latex
- :version "24.4" ;; FIXME enter correct version
:package-version '(Org . "9.7")
:type 'string)
@@ -2249,7 +2249,7 @@ CONTENTS is nil. INFO is a plist holding contextual information."
(t
(let ((def (org-export-get-footnote-definition footnote-reference info)))
(concat
- (format org-latex-default-footnote-command (org-trim (org-export-data def info))
+ (format (plist-get info :latex-default-footnote-command) (org-trim (org-export-data def info))
;; Only insert a \label if there exist another
;; reference to def.
(cond ((not label) "")
--
2.41.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: 0001-added-option-to-customize-latex-footnote-command-in-.patch --]
[-- Type: text/x-patch, Size: 2964 bytes --]
From 1c7bee53ac91a8296c144f157ab8646b1a7a6595 Mon Sep 17 00:00:00 2001
From: Alexander Gogl <gogl.alexander@gmail.com>
Date: Wed, 17 Apr 2024 16:00:41 +0200
Subject: [PATCH 1/3] added option to customize latex footnote command in
export
---
etc/ORG-NEWS | 4 ++++
lisp/ox-latex.el | 14 ++++++++++++--
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index e61bd6988..a579260f5 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -999,6 +999,10 @@ even though it does not have its own ID. By giving files top-level id
properties, links to headlines in the file can also be made more
robust by using the file id instead of the file path.
+*** New option ~latex-default-footnote-command~
+
+This new option allows you to define the LaTeX command the org-mode footnotes are converted to (for example ~\\sidenote{%s%s}~).
+
** New features
*** =colview= dynamic block now writes column width specifications
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 5c19e1fe7..b45d13ca2 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -135,6 +135,9 @@
(:latex-default-table-environment nil nil org-latex-default-table-environment)
(:latex-default-quote-environment nil nil org-latex-default-quote-environment)
(:latex-default-table-mode nil nil org-latex-default-table-mode)
+ ;; TODO implement options variable
+ (:latex-default-footnote-command "\\footnote{%s%s}" nil org-latex-default-footnote-command)
+ ;;
(:latex-diary-timestamp-format nil nil org-latex-diary-timestamp-format)
(:latex-engraved-options nil nil org-latex-engraved-options)
(:latex-engraved-preamble nil nil org-latex-engraved-preamble)
@@ -667,6 +670,14 @@ The function result will be used in the section format string."
;;;; Footnotes
+(defcustom org-latex-default-footnote-command "\\footnote{%s%s}"
+ "Default command used to insert footnotes.
+ Customize this command if the LaTeX class provides a different notation command like `\\sidenote{%s%s}' that you want to use."
+ :group 'org-export-latex
+ :version "24.4" ;; FIXME enter correct version
+ :package-version '(Org . "9.7")
+ :type 'string)
+
(defcustom org-latex-footnote-separator "\\textsuperscript{,}\\,"
"Text used to separate footnotes."
:group 'org-export-latex
@@ -780,7 +791,6 @@ default we use here encompasses both."
:group 'org-export-latex
:type 'string)
-
;;;; Tables
(defcustom org-latex-default-table-environment "tabular"
@@ -2239,7 +2249,7 @@ CONTENTS is nil. INFO is a plist holding contextual information."
(t
(let ((def (org-export-get-footnote-definition footnote-reference info)))
(concat
- (format "\\footnote{%s%s}" (org-trim (org-export-data def info))
+ (format org-latex-default-footnote-command (org-trim (org-export-data def info))
;; Only insert a \label if there exist another
;; reference to def.
(cond ((not label) "")
--
2.41.0
[-- Attachment #5: Type: text/plain, Size: 1329 bytes --]
Best,
Alexander
PS: @Pedro I also use the great koma-script for a lot of my documents :)
"Pedro A. Aranda" <paaguti@gmail.com> --- 2024-04-20 Sa 09:04:
> /Hi, Alexander Gogl <gogl.alexander@gmail.com> writes: /> ox-latex: New option to customize LaTeX footnote command
>
> I hope you are aware that with your patch you are not going to be aware to pass
> extra options to your foot or side notes, right? And since I'm not familiar with
> kaobook, just a question. Are you sure that the foot and side notes will not choke
> at a \label{} inside the text?
> //> PS: I have a hard time to setup an environment to test the patch because
>> my Spacemacs configuration conflicts with the Org mode development
>> version. Can anyone provide me a link to a ressource that describes the
>> procedure?
>
> I'm running on a vanilla Emacs and
>
> ---cut here --
> (let ((org-devel-path (expand-file-name "~/Devel/org-mode/lisp")))
> (when (file-directory-p org-devel-path)
> ;; (message "Adding %s to load-path" org-devel-path)
> (add-to-list 'load-path org-devel-path)))
> ---cut here --
>
> in my .emacs.d/early-init.el does the job. I have a general Devel directyl for my development jobs.
>
> Hope it helps, /PA
>
> PS: Cool kaobook. I've used koma-script for most of my LaTeX work in the last 15 years +/- ;-) though.
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [FR] Please add custom command variable to org-latex-footnote-refere
2024-04-21 8:34 ` Alexander Gogl
@ 2024-04-21 13:45 ` Ihor Radchenko
2024-04-21 14:08 ` Alexander Gogl
0 siblings, 1 reply; 6+ messages in thread
From: Ihor Radchenko @ 2024-04-21 13:45 UTC (permalink / raw)
To: Alexander Gogl; +Cc: Pedro A. Aranda, Org Mode List
Alexander Gogl <gogl.alexander@gmail.com> writes:
> I have tested the global and buffer local options with kaoscript and the article class. I could't find any problems with the option. Labels and footnotes inside footnotes work.
>
> The current version of the patch (fixed a typo) is attached.
Thanks!
May you please send the final version of the patch, against main branch
rather than a series of incremental patches?
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [FR] Please add custom command variable to org-latex-footnote-refere
2024-04-21 13:45 ` Ihor Radchenko
@ 2024-04-21 14:08 ` Alexander Gogl
2024-04-23 11:04 ` Ihor Radchenko
0 siblings, 1 reply; 6+ messages in thread
From: Alexander Gogl @ 2024-04-21 14:08 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: Pedro A. Aranda, Org Mode List
[-- Attachment #1: Type: text/plain, Size: 33 bytes --]
Dear Ihor,
you mean like this?
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch-ox-latex-footnote-command-option.diff --]
[-- Type: text/x-patch, Size: 8005 bytes --]
From 1c7bee53ac91a8296c144f157ab8646b1a7a6595 Mon Sep 17 00:00:00 2001
From: Alexander Gogl <gogl.alexander@gmail.com>
Date: Wed, 17 Apr 2024 16:00:41 +0200
Subject: [PATCH] added option to customize latex footnote command in export
---
etc/ORG-NEWS | 4 ++++
lisp/ox-latex.el | 14 ++++++++++++--
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index e61bd6988..a579260f5 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -999,6 +999,10 @@ even though it does not have its own ID. By giving files top-level id
properties, links to headlines in the file can also be made more
robust by using the file id instead of the file path.
+*** New option ~latex-default-footnote-command~
+
+This new option allows you to define the LaTeX command the org-mode footnotes are converted to (for example ~\\sidenote{%s%s}~).
+
** New features
*** =colview= dynamic block now writes column width specifications
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 5c19e1fe7..b45d13ca2 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -135,6 +135,9 @@
(:latex-default-table-environment nil nil org-latex-default-table-environment)
(:latex-default-quote-environment nil nil org-latex-default-quote-environment)
(:latex-default-table-mode nil nil org-latex-default-table-mode)
+ ;; TODO implement options variable
+ (:latex-default-footnote-command "\\footnote{%s%s}" nil org-latex-default-footnote-command)
+ ;;
(:latex-diary-timestamp-format nil nil org-latex-diary-timestamp-format)
(:latex-engraved-options nil nil org-latex-engraved-options)
(:latex-engraved-preamble nil nil org-latex-engraved-preamble)
@@ -667,6 +670,14 @@ The function result will be used in the section format string."
;;;; Footnotes
+(defcustom org-latex-default-footnote-command "\\footnote{%s%s}"
+ "Default command used to insert footnotes.
+ Customize this command if the LaTeX class provides a different notation command like `\\sidenote{%s%s}' that you want to use."
+ :group 'org-export-latex
+ :version "24.4" ;; FIXME enter correct version
+ :package-version '(Org . "9.7")
+ :type 'string)
+
(defcustom org-latex-footnote-separator "\\textsuperscript{,}\\,"
"Text used to separate footnotes."
:group 'org-export-latex
@@ -780,7 +791,6 @@ default we use here encompasses both."
:group 'org-export-latex
:type 'string)
-
;;;; Tables
(defcustom org-latex-default-table-environment "tabular"
@@ -2239,7 +2249,7 @@ CONTENTS is nil. INFO is a plist holding contextual information."
(t
(let ((def (org-export-get-footnote-definition footnote-reference info)))
(concat
- (format "\\footnote{%s%s}" (org-trim (org-export-data def info))
+ (format org-latex-default-footnote-command (org-trim (org-export-data def info))
;; Only insert a \label if there exist another
;; reference to def.
(cond ((not label) "")
--
2.41.0
From 12d211a5f0c56faf1b829fef26f788f210a31382 Mon Sep 17 00:00:00 2001
From: Alexander Gogl <gogl.alexander@gmail.com>
Date: Wed, 17 Apr 2024 21:22:51 +0200
Subject: [PATCH] ox-latex: New option to customize LaTeX footnote command
* lisp/ox-latex.el (org-export-define-backend): Add option.
(org-latex-default-footnote-command): New custom variable.
(org-latex-footnote-reference): Replace string "\\footnote{%s%s}"
with custom variable.
* etc/ORG-NEWS (New and changed options): Add description to option.
Some LaTeX classes define their own footnote commands. For example,
kaobook (https://github.com/fmarotta/kaobook/blob/master/example_and_documentation.pdf)
has \footnotes and \sidenotes, whereby sidenotes (notes are put into
the outter margin) are the dominant form of putting notes in
kaobook. It would be great if you could make the footnote command in
the footnote function customizable. My proposal is in the attachment.
Modified from a feature request by Alexander Gogl.
TINYCHANGE
---
etc/ORG-NEWS | 12 ++++++++++--
lisp/ox-latex.el | 12 ++++++------
2 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index a579260f5..571ab3c98 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -999,9 +999,17 @@ even though it does not have its own ID. By giving files top-level id
properties, links to headlines in the file can also be made more
robust by using the file id instead of the file path.
-*** New option ~latex-default-footnote-command~
+*** New option ~latex-default-footnote-command~ to customize the LaTeX footnote command
-This new option allows you to define the LaTeX command the org-mode footnotes are converted to (for example ~\\sidenote{%s%s}~).
+This new option allows you to define the LaTeX command the Org mode
+footnotes are converted to (for example ~\sidenote{%s%s}~ instead of
+the default ~\footnote{%s%s}~).
+
+The option can be customized either by
+
+a) setting the global variable in the ~org-export-latex~ customization
+ group or
+b) by setting the file local variable ~LATEX_FOOTNOTE_COMMAND~
** New features
*** =colview= dynamic block now writes column width specifications
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index b45d13ca2..058b5a31a 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -135,9 +135,7 @@
(:latex-default-table-environment nil nil org-latex-default-table-environment)
(:latex-default-quote-environment nil nil org-latex-default-quote-environment)
(:latex-default-table-mode nil nil org-latex-default-table-mode)
- ;; TODO implement options variable
- (:latex-default-footnote-command "\\footnote{%s%s}" nil org-latex-default-footnote-command)
- ;;
+ (:latex-default-footnote-command "LATEX_FOOTNOTE_COMMAND" nil org-latex-default-footnote-command t)
(:latex-diary-timestamp-format nil nil org-latex-diary-timestamp-format)
(:latex-engraved-options nil nil org-latex-engraved-options)
(:latex-engraved-preamble nil nil org-latex-engraved-preamble)
@@ -672,9 +670,11 @@ The function result will be used in the section format string."
(defcustom org-latex-default-footnote-command "\\footnote{%s%s}"
"Default command used to insert footnotes.
- Customize this command if the LaTeX class provides a different notation command like `\\sidenote{%s%s}' that you want to use."
+ Customize this command if the LaTeX class provides a different
+ command like `\sidenote{%s%s}' that you want to use.
+%s
+"
:group 'org-export-latex
- :version "24.4" ;; FIXME enter correct version
:package-version '(Org . "9.7")
:type 'string)
@@ -2249,7 +2249,7 @@ CONTENTS is nil. INFO is a plist holding contextual information."
(t
(let ((def (org-export-get-footnote-definition footnote-reference info)))
(concat
- (format org-latex-default-footnote-command (org-trim (org-export-data def info))
+ (format (plist-get info :latex-default-footnote-command) (org-trim (org-export-data def info))
;; Only insert a \label if there exist another
;; reference to def.
(cond ((not label) "")
--
2.41.0
From 7ff2baa24dbcfa0675d8e797746f6f2965c19a8c Mon Sep 17 00:00:00 2001
From: Alexander Gogl <gogl.alexander@gmail.com>
Date: Sun, 21 Apr 2024 10:41:54 +0200
Subject: [PATCH] lisp/ox-latex.el: Fixed typo
* /ox-latex.el (org-latex-default-footnote-command): fixed typo in
description of option
TINYCHANGE
---
lisp/ox-latex.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 058b5a31a..22a9595ab 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -671,7 +671,7 @@ The function result will be used in the section format string."
(defcustom org-latex-default-footnote-command "\\footnote{%s%s}"
"Default command used to insert footnotes.
Customize this command if the LaTeX class provides a different
- command like `\sidenote{%s%s}' that you want to use.
+ command like `\\sidenote{%s%s}' that you want to use.
%s
"
:group 'org-export-latex
--
2.41.0
[-- Attachment #3: Type: text/plain, Size: 518 bytes --]
Best,
Alexander
Ihor Radchenko <yantar92@posteo.net> --- 2024-04-21 So 13:45:
> Alexander Gogl <gogl.alexander@gmail.com> writes:
>
>> I have tested the global and buffer local options with kaoscript and the article class. I could't find any problems with the option. Labels and footnotes inside footnotes work.
>>
>> The current version of the patch (fixed a typo) is attached.
>
> Thanks!
> May you please send the final version of the patch, against main branch
> rather than a series of incremental patches?
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [FR] Please add custom command variable to org-latex-footnote-refere
2024-04-21 14:08 ` Alexander Gogl
@ 2024-04-23 11:04 ` Ihor Radchenko
0 siblings, 0 replies; 6+ messages in thread
From: Ihor Radchenko @ 2024-04-23 11:04 UTC (permalink / raw)
To: Alexander Gogl; +Cc: Pedro A. Aranda, Org Mode List
Alexander Gogl <gogl.alexander@gmail.com> writes:
> you mean like this?
Not really, but I now squashed the previous patches manually.
Applied, onto main, with amendments.
I fixed some wording in the etc/NEWS entry, added description of %s%s to
the docstring, and removed BEHAVIOR=t from the new option - all other
similar options have BEHAVIOR=nil, so let's keep things consistent.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=46e13c3eb
You are also listed as an Org contributor now.
https://git.sr.ht/~bzg/worg/commit/ec8a1007
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-04-23 11:04 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-20 7:04 Re: [FR] Please add custom command variable to org-latex-footnote-refere Pedro A. Aranda
2024-04-20 20:23 ` Alexander Gogl
2024-04-21 8:34 ` Alexander Gogl
2024-04-21 13:45 ` Ihor Radchenko
2024-04-21 14:08 ` Alexander Gogl
2024-04-23 11:04 ` Ihor Radchenko
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).