texlive[71800] Master: responsive (14jul24)

commits+karl at tug.org commits+karl at tug.org
Sun Jul 14 22:18:11 CEST 2024


Revision: 71800
          https://tug.org/svn/texlive?view=revision&revision=71800
Author:   karl
Date:     2024-07-14 22:18:11 +0200 (Sun, 14 Jul 2024)
Log Message:
-----------
responsive (14jul24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/responsive/README
    trunk/Master/texmf-dist/doc/latex/responsive/responsive-doc.pdf
    trunk/Master/texmf-dist/doc/latex/responsive/responsive-doc.tex
    trunk/Master/texmf-dist/tex/latex/responsive/responsive.sty
    trunk/Master/tlpkg/bin/ctan2tl
    trunk/Master/tlpkg/bin/tlpkginfo

Modified: trunk/Master/texmf-dist/doc/latex/responsive/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/responsive/README	2024-07-14 20:14:08 UTC (rev 71799)
+++ trunk/Master/texmf-dist/doc/latex/responsive/README	2024-07-14 20:18:11 UTC (rev 71800)
@@ -1,6 +1,6 @@
 The Responsive Package
 
-Version 0.1
+Version v0.1a
 
 Change font sizes and other typographic details in LaTeX documents depending on
 the page dimensions.
@@ -21,7 +21,7 @@
 - Line Spacing Control: adjust line spacing determining the x-height percentage
   for enhanced readability.
 
-Copyright: 2023-2023 Michal Hoftich
+Copyright: 2023-2024 Michal Hoftich
 
 This work may be distributed and/or modified under the
 conditions of the LaTeX Project Public License, either version 1.3

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

Modified: trunk/Master/texmf-dist/doc/latex/responsive/responsive-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/responsive/responsive-doc.tex	2024-07-14 20:14:08 UTC (rev 71799)
+++ trunk/Master/texmf-dist/doc/latex/responsive/responsive-doc.tex	2024-07-14 20:18:11 UTC (rev 71800)
@@ -22,7 +22,7 @@
 \usepackage{booktabs}
 \usepackage[style=iso-authoryear]{biblatex}
 \addbibresource{responsive-doc.bib}
-\newenvironment{changelog}{\longtable{@{} l p{30em}}}{\endlongtable}
+\newenvironment{changelog}{\longtable{@{} l p{20em}}}{\endlongtable}
 \newcommand\change[2]{#1 & #2\\}
 \ifdefined\HCode
   % I want to convert parts of the document to images,
@@ -525,6 +525,9 @@
 \section{Changes}
 
 \begin{changelog}
+  \change{2024-07-14}{Version 0.1a released}
+  \change{2024-03-16}{Set the \texttt{topmargin} dimension}
+  \change{}{Call Geometry's \texttt{\textbackslash Gm at process} command to fix page dimensions, if Geometry is loaded}
   \change{2023-12-13}{Version 0.1 released.}
   \change{}{Finished documentation.}
   \change{2023-12-07}{Added the \texttt{lineheight} property.}

Modified: trunk/Master/texmf-dist/tex/latex/responsive/responsive.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/responsive/responsive.sty	2024-07-14 20:14:08 UTC (rev 71799)
+++ trunk/Master/texmf-dist/tex/latex/responsive/responsive.sty	2024-07-14 20:18:11 UTC (rev 71800)
@@ -3,7 +3,7 @@
 \RequirePackage{expl3,l3keys2e}
 \RequirePackage{kvoptions}
 \ProvidesExplPackage{responsive}
-{2023-12-15}{0.1}{Responsive design for LaTeX}
+{2024-07-14}{v0.1a}{Responsive design for LaTeX}
 
 %%%%%%%%%%%%%%%%%%%%%%
 % keyval  processing %
@@ -168,6 +168,10 @@
   \@setfontsize#1{\resp_multiply_note:nnn\resp_font_size{#2}{1}}{\resp_multiply_note:nnn\resp_line_skip{#2}{\l_resp_lineheight_multiplier}}
 }
 
+% This is a dummy definition. It should restore page dimensions using the Geometry package if it is loaded.
+% The correct definition is added in \AtBeginDocument
+\cs_set:Npn\resp_reset_geometry{}
+
 % recalculate \textheight and \headheight with the changed font size
 % this is necessary to prevent the underfull \vbox messages from the output rutine
 \cs_set:Npn\resp_textheight:n {
@@ -182,6 +186,9 @@
   \setlength\headheight{\resp_font_size}
   \setlength\headsep   {1.5\resp_font_size}
   \setlength\footskip{\fp_to_dim:n{2*\resp_font_size+1}}
+  \setlength\topmargin{\fp_to_dim:n{(\paperheight-\textheight -\headheight-\headsep-\footskip)/2 - 1in}}
+  \resp_reset_geometry
+  % \addtolength\topmargin{\topskip}
 }
 
 % the functionality to fix the textheight should be available as a document command
@@ -355,6 +362,9 @@
 
 % setup font sizes at the begin document, in order to support Geometry etc.
 \AtBeginDocument{
+  \@ifpackageloaded{geometry}{
+    \cs_set:Npn\resp_reset_geometry{\Gm at process}
+  }{}
   % set the default font size, based on numbers of characters we want to show on a line of text
   % \fonttobox[32]\textwidth{\tl_range:Nnn\l_resp_charlist_tl{1}{\l_resp_charlines_int}}%
   \bool_if:NTF\l_resp_no_execute {}{

Modified: trunk/Master/tlpkg/bin/ctan2tl
===================================================================
--- trunk/Master/tlpkg/bin/ctan2tl	2024-07-14 20:14:08 UTC (rev 71799)
+++ trunk/Master/tlpkg/bin/ctan2tl	2024-07-14 20:18:11 UTC (rev 71800)
@@ -10,7 +10,7 @@
 umask 022
 
 # to avoid the svn hit on every run when developing.
-TLPKGINFO_CATALOGUE_NO_UPDATE=1; export TLPKGINFO_CATALOGUE_NO_UPDATE
+#TLPKGINFO_CATALOGUE_NO_UPDATE=1; export TLPKGINFO_CATALOGUE_NO_UPDATE
 
 mydir=`cd \`dirname $0\` && pwd`	# Master/tlpkg/bin
 libexec=`cd $mydir/../libexec && pwd`	# Master/tlpkg/libexec

Modified: trunk/Master/tlpkg/bin/tlpkginfo
===================================================================
--- trunk/Master/tlpkg/bin/tlpkginfo	2024-07-14 20:14:08 UTC (rev 71799)
+++ trunk/Master/tlpkg/bin/tlpkginfo	2024-07-14 20:18:11 UTC (rev 71800)
@@ -405,7 +405,7 @@
     # redirect to stderr because we want the only stdout to be the
     # directory name for ctan2tl to use. Intentionally do not use -q
     # so that we have a chance of noticing errors.
-    system ("echo '*** sup'; timeout 4s svn update $catfile </dev/null >&2")
+    system ("timeout 4s svn update $catfile </dev/null >&2")
       unless $ENV{"TLPKGINFO_CATALOGUE_NO_UPDATE"};
     
     open (CATFILE, "<$catfile") || die "open($catfile) failed, fixme: $!";



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