[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Tue, 16 Apr 2024 03:08:17 -0400 (EDT) |
branch: master
commit 7e33a4fe515078c91c0ffef6d011adec55f4d072
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Apr 16 09:07:47 2024 +0200
* doc/texinfo.texi (@LaTeX{} Customization Variables),
tp/Texinfo/Convert/LaTeX.pm (%defaults, _latex_header),
tp/Texinfo/options_data.txt: add new customization variable
LATEX_FLOATS_FILE_EXTENSION.
---
ChangeLog | 7 +++++++
doc/texinfo.texi | 5 +++++
tp/Texinfo/Convert/LaTeX.pm | 8 +-------
tp/Texinfo/options_data.txt | 1 +
4 files changed, 14 insertions(+), 7 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 08e5c11f75..6fd14c3018 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-04-16 Patrice Dumas <pertusus@free.fr>
+
+ * doc/texinfo.texi (@LaTeX{} Customization Variables),
+ tp/Texinfo/Convert/LaTeX.pm (%defaults, _latex_header),
+ tp/Texinfo/options_data.txt: add new customization variable
+ LATEX_FLOATS_FILE_EXTENSION.
+
2024-04-15 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/XS/structuring_transfo/transformations.c
diff --git a/doc/texinfo.texi b/doc/texinfo.texi
index 66e29d171e..f44840a919 100644
--- a/doc/texinfo.texi
+++ b/doc/texinfo.texi
@@ -15973,6 +15973,11 @@ lists, and @code{@@float}:
\usepackage@{float@}
\usepackage[hidelinks]@{hyperref@}
@end example
+
+@item LATEX_FLOATS_FILE_EXTENSION
+Set new floats definition file extension for @LaTeX{} output.
+Default @samp{tfl}.
+
@end vtable
diff --git a/tp/Texinfo/Convert/LaTeX.pm b/tp/Texinfo/Convert/LaTeX.pm
index 907d760a8f..b48551c614 100644
--- a/tp/Texinfo/Convert/LaTeX.pm
+++ b/tp/Texinfo/Convert/LaTeX.pm
@@ -781,15 +781,9 @@ my %defaults = (
# Not customization option variables
'converted_format' => 'latex',
- # FIXME this sets an option that is not a customization variable
- # and will not be documented anywhere. It should probably be better
- # to add and document a customization variable in the Texinfo manual
- # if needed.
# For LaTeX in general, it could make sense to have some customization,
# for example of packages, fonts, document type, to be discussed/though
# about how to setup this customization.
- # FIXME any idea what could be used?
- 'floats_extension' => 'tfl',
# Customization option variables
'OUTPUT_CHARACTERS' => 0,
@@ -1362,6 +1356,7 @@ sub _latex_header() {
}
if ($floats) {
+ my $floats_extension = $self->get_conf('LATEX_FLOATS_FILE_EXTENSION');
foreach my $normalized_float_type
(sort(keys(%{$self->{'normalized_float_latex'}}))) {
my $latex_float_name
@@ -1374,7 +1369,6 @@ sub _latex_header() {
my $float_type = _convert($self, $float->{'args'}->[0]);
_pop_context($self);
}
- my $floats_extension = $self->{'floats_extension'};
$header_code .= "% new float for type `$normalized_float_type'\n";
$header_code
.= "\\newfloat{$latex_float_name}{htb}{$floats_extension}[chapter]
diff --git a/tp/Texinfo/options_data.txt b/tp/Texinfo/options_data.txt
index 10f8476fab..d0f72d8bc0 100644
--- a/tp/Texinfo/options_data.txt
+++ b/tp/Texinfo/options_data.txt
@@ -256,6 +256,7 @@ INLINE_CSS_STYLE converter_customization
undef integer
INPUT_FILE_NAME_ENCODING converter_customization undef char
JS_WEBLABELS converter_customization undef char
JS_WEBLABELS_FILE converter_customization undef char
+LATEX_FLOATS_FILE_EXTENSION converter_customization tfl char
LOCALE_ENCODING converter_customization undef char
L2H_CLEAN converter_customization undef integer
L2H_FILE converter_customization undef char