Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

additional key for supertabular #9

Open
hvoss49 opened this issue Nov 9, 2022 · 1 comment
Open

additional key for supertabular #9

hvoss49 opened this issue Nov 9, 2022 · 1 comment
Labels
enhancement New feature or request long-term

Comments

@hvoss49
Copy link

hvoss49 commented Nov 9, 2022

With supertabular I can set it in twocolumn mode. There is only a \noalign at the end of the example which must be fixed.

\documentclass[a4paper,landscape,twocolumn]{article}
\usepackage[margin=1cm,includeheadfoot]{geometry}
\usepackage{kantlipsum}
\usepackage{libertinus-otf}
\usepackage{unicodefonttable}

\begin{document}
	
	\kant[1] 

\tablefirsthead{}
\tablehead{}
\tabletail{\\\hline}
\tablelasttail{\\\hline}

\displayfonttable
		[range-start=00000,range-end=F005F,
		nostatistics,noheader,hex-digits=block,
		supertabular]%%%%  new %%%%%%%%%%%
		{LibertinusSans-Regular.otf}

\kant[2-10]

\end{document}

The code changes ...

bash-3.2$ diff -u unicodefonttable.sty unicodefonttable-hv.sty 
--- unicodefonttable.sty	2021-10-29 23:33:13
+++ unicodefonttable-hv.sty	2022-11-09 15:18:48
@@ -39,7 +39,7 @@
 \def\unicodefonttableversion{v1.0f}
 
 
-\RequirePackage{xcolor}
+\RequirePackage{xcolor,supertabular}
 
 \RequirePackage{xparse,l3keys2e}
 \ProvidesExplPackage{unicodefonttable}
@@ -71,12 +71,24 @@
          \cs_set_eq:NN \__fmuft_handle_missing_glyph:n
                        \__fmuft_handle_missing_glyph_compare:n
        }
-    \begin{longtable\bool_if:NF\l__fmuft_display_header_bool{*}}
+      \bool_if:NTF \l__fmuft_display_supertabular_bool
+      {
+    	\begin{supertabular}{@{}r@{\quad}*{16}{c}@{}}
+      }
+      {
+        \begin{longtable\bool_if:NF\l__fmuft_display_header_bool{*}}
           {@{}r@{\quad}*{16}{c}@{}}
       \__fmuft_setup_header_footer:nn{#2}{#3}
+      }
       \__fmuft_produce_table_rows:
-      \__fmuft_handle_table_ending:n {#2}
-    \end{longtable\bool_if:NF\l__fmuft_display_header_bool{*}}
+    \bool_if:NTF \l__fmuft_display_supertabular_bool
+	  {
+	    \end{supertabular}
+	  }
+	  {
+        \__fmuft_handle_table_ending:n {#2}
+        \end{longtable\bool_if:NF\l__fmuft_display_header_bool{*}}
+      }
   \group_end:
 }
 
@@ -191,6 +203,8 @@
     ,statistics .initial:n   = true
     ,nostatistics .bool_set_inverse:N = \l__fmuft_display_statistics_bool
     ,nostatistics .default:n = true
+    ,supertabular .bool_set:N = \l__fmuft_display_supertabular_bool
+    ,supertabular .default:n = true
     ,statistics-font    .tl_set:N  = \l__fmuft_stats_font_tl
     ,statistics-font    .initial:n = \normalfont\small
     ,statistics-format  .cs_set:Np = \__fmuft_format_stats:nn #1#2

@FrankMittelbach
Copy link
Owner

FrankMittelbach commented Nov 9, 2022

Maybe something to think about, but longtable and supertabular require different header/footer handling and that would have to be accounted for as well, so I doubt that this would work well with several of the other keys wthout more adjustments. But anyway, thanks for the idea.

Not sure I will have the bandwidth to look at this seriously any time soon -- ie for me the package is a tool to get some idea what is in a font not something for extremly flexible typesetting (even though I added some flexibility).

@FrankMittelbach FrankMittelbach added enhancement New feature or request long-term labels Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request long-term
Projects
None yet
Development

No branches or pull requests

2 participants