texlive[74939] trunk: tex4ebook (14apr25)

commits+karl at tug.org commits+karl at tug.org
Mon Apr 14 21:49:39 CEST 2025


Revision: 74939
          https://tug.org/svn/texlive?view=revision&revision=74939
Author:   karl
Date:     2025-04-14 21:49:38 +0200 (Mon, 14 Apr 2025)
Log Message:
-----------
tex4ebook (14apr25)

Modified Paths:
--------------
    trunk/Build/source/texk/texlive/linked_scripts/tex4ebook/tex4ebook
    trunk/Master/texmf-dist/doc/support/tex4ebook/changelog.tex
    trunk/Master/texmf-dist/doc/support/tex4ebook/tex4ebook-doc.pdf
    trunk/Master/texmf-dist/scripts/tex4ebook/tex4ebook
    trunk/Master/texmf-dist/scripts/tex4ebook/tex4ebook-exec_epub.lua
    trunk/Master/texmf-dist/tex/latex/tex4ebook/tex4ebook.sty

Modified: trunk/Build/source/texk/texlive/linked_scripts/tex4ebook/tex4ebook
===================================================================
--- trunk/Build/source/texk/texlive/linked_scripts/tex4ebook/tex4ebook	2025-04-13 23:42:08 UTC (rev 74938)
+++ trunk/Build/source/texk/texlive/linked_scripts/tex4ebook/tex4ebook	2025-04-14 19:49:38 UTC (rev 74939)
@@ -68,7 +68,7 @@
 end
 
 if args.version then
-  print "tex4ebook 0.4a"
+  print "tex4ebook v0.4b"
   return 
 end
 

Modified: trunk/Master/texmf-dist/doc/support/tex4ebook/changelog.tex
===================================================================
--- trunk/Master/texmf-dist/doc/support/tex4ebook/changelog.tex	2025-04-13 23:42:08 UTC (rev 74938)
+++ trunk/Master/texmf-dist/doc/support/tex4ebook/changelog.tex	2025-04-14 19:49:38 UTC (rev 74939)
@@ -2,6 +2,32 @@
 
 \begin{itemize}
 \item
+  2025/04/14
+
+  \begin{itemize}
+  \tightlist
+  \item
+    version \texttt{0.4b} released.
+  \end{itemize}
+\item
+  2025/03/17
+
+  \begin{itemize}
+  \tightlist
+  \item
+    redefine \texttt{\textbackslash{}title} and
+    \texttt{\textbackslash{}author} after the document class is loaded.
+    https://github.com/michal-h21/tex4ebook/issues/138
+  \end{itemize}
+\item
+  2025/03/13
+
+  \begin{itemize}
+  \tightlist
+  \item
+    use \texttt{Make:autohlatex} for the default compilation mode.
+  \end{itemize}
+\item
   2025/02/19
 
   \begin{itemize}

Modified: trunk/Master/texmf-dist/doc/support/tex4ebook/tex4ebook-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/scripts/tex4ebook/tex4ebook
===================================================================
--- trunk/Master/texmf-dist/scripts/tex4ebook/tex4ebook	2025-04-13 23:42:08 UTC (rev 74938)
+++ trunk/Master/texmf-dist/scripts/tex4ebook/tex4ebook	2025-04-14 19:49:38 UTC (rev 74939)
@@ -68,7 +68,7 @@
 end
 
 if args.version then
-  print "tex4ebook 0.4a"
+  print "tex4ebook v0.4b"
   return 
 end
 

Modified: trunk/Master/texmf-dist/scripts/tex4ebook/tex4ebook-exec_epub.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/tex4ebook/tex4ebook-exec_epub.lua	2025-04-13 23:42:08 UTC (rev 74938)
+++ trunk/Master/texmf-dist/scripts/tex4ebook/tex4ebook-exec_epub.lua	2025-04-14 19:49:38 UTC (rev 74939)
@@ -73,9 +73,7 @@
     if mode == "draft" then
       params.config_file.Make:htlatex()
     else
-      params.config_file.Make:htlatex()
-      params.config_file.Make:htlatex()
-      params.config_file.Make:htlatex() 
+      params.config_file.Make:autohtlatex()
     end
 	end
 	if #params.config_file.Make.image_patterns > 0 then

Modified: trunk/Master/texmf-dist/tex/latex/tex4ebook/tex4ebook.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tex4ebook/tex4ebook.sty	2025-04-13 23:42:08 UTC (rev 74938)
+++ trunk/Master/texmf-dist/tex/latex/tex4ebook/tex4ebook.sty	2025-04-14 19:49:38 UTC (rev 74939)
@@ -1,6 +1,6 @@
 % Package tex4ebook. Author Michal Hoftich <michal.h21 at gmail.com>
 % This package is subject of LPPL license, version 1.3 
-\ProvidesPackage{tex4ebook}[2025-02-19 version 0.4a]
+\ProvidesPackage{tex4ebook}[2025-04-14 version v0.4b]
 \RequirePackage{etoolbox}
 \RequirePackage{kvoptions}
 \RequirePackage{graphicx}
@@ -121,9 +121,6 @@
 \def\Title{Unnamed}
 \def\Author{Anonymous}
 
-% We need to save values of title, author etc.
-\let\tf at orig@title\title
-
 % normal \title
 \newcommand\tf at title[1]{%
   \tf at orig@title{#1}%
@@ -136,12 +133,6 @@
   \let\Title\@title%
 }
 
-% some classes (amsart) define \title command with optional argument
-\renewcommand\title{%
-\@ifnextchar[\tf at opttitle\tf at title%
-}
-
-\let\tf at orig@author\author
 \newcommand\tf at author[1]{%
   \tf at orig@author{#1}%
   \gdef\Author{#1}%
@@ -152,27 +143,33 @@
   \gdef\Author{#2}%
 }
 
-% support optiona argument for \author as well
-\renewcommand\author{%
-\@ifnextchar[\tf at optauthor\tf at author%
-}
+\AddToHook{class/after}{%
+  % We need to save values of title, author etc.
+  \let\tf at orig@title\title
 
-%\let\Author\@author
-\let\Date\today
-\let\origdate\date
-\renewcommand\date[1]{%
-  \origdate{#1}%
-  \global\let\Date\@date%
-}
-%}
+  % some classes (amsart) define \title command with optional argument
+  \renewcommand\title{%
+    \@ifnextchar[\tf at opttitle\tf at title%
+  }
 
+  \let\tf at orig@author\author
+  % support optiona argument for \author as well
+  \renewcommand\author{%
+    \@ifnextchar[\tf at optauthor\tf at author%
+  }
 
-% Fixes for AMS classess
-\AddToHook{class/after}{%
+  \let\Date\today
+  \let\tf at orig@date\date
+  \renewcommand\date[1]{%
+    \tf at orig@date{#1}%
+    \global\let\Date\@date%
+  }
+
+  % Fixes for AMS classess
   \ifx\authors\@empty%
-  \def\@maketitle at hook{
-  \global\let\Author\authors
-  }
+    \def\@maketitle at hook{
+      \global\let\Author\authors
+    }
   \fi%
 }
 



More information about the tex-live-commits mailing list.