Answer by matexmatics for Find the highest year in a string
The year is extracted with the regular expression [0-9]{4}. With \regex_extract_all:nnN all matches are stored in the sequence \l__Skay_dates_seq. This sequence is used with \seq_use:Nn and a , between...
View ArticleFind the highest year in a string
I would like to hide sections of my document according to their publication date.This is how I define my section:\primarySection {Data 1} {Data 2} {Data 3} {Jan. 1930 - June 2023} % Dates {Data 4}This...
View ArticleAnswer by egreg for Find the highest year in a string
I'd go with expl3 all along.\documentclass{article}\ExplSyntaxOn\NewDocumentCommand{\primarySection}{O{primary}mmmmm} { \__sky_year_extract:n { #5 } \int_compare:nTF { \c_sys_year_int - 5 >...
View Article
More Pages to Explore .....