\hoy no muestra más que "0"

\hoy no muestra más que "0"

Buenas noches, no sé cómo poner la fecha adecuada en mi primera página y ya lo hice \maketitleen el pasado sin problemas. Documento grande, tan anidado:

root: -> title
      -> any other file needed
      -> the one forgotten file

Recibo el siguiente documentoingrese la descripción de la imagen aquí

Principal:

\documentclass[10pt,a4paper,twoside]{article}
\usepackage{ragged2e}   % toglie il rientro anglosassone dei paragrafi nuovi
%\usepackage[T1]{fontenc}       % non necessario con XeLaTeX
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage{datetime}
\usepackage{mwe}
\usepackage{blindtext}
\usepackage{fontspec}   % per selezionare nuovi font
\setmainfont{Arial}
\setsansfont{Arial}
\setlength\evensidemargin{0.0in}
\setlength\oddsidemargin{0.0in}
\setlength\textwidth{6.5in}
\setlength\textheight{9.5in}
\setlength\topmargin{-0.5in}
\usepackage[raggedright]{titlesec}
\usepackage{nicefrac}
\usepackage[dvipsnames]{xcolor}
%\usepackage{fr3d-colors}     %% my personal defined colors, will change in something dvipsname
\usepackage{float}
\usepackage{wrapfig}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}
\usetikzlibrary{positioning,calc}
\usepackage{lscape}
\usepackage{csvsimple}
\usepackage{anyfontsize}
\usepackage{rotating}
\usepackage[normalem]{ulem} % permette di avere testo barrato
\usepackage{tocloft}
\usepackage{titletoc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% For "Outlining pain"
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% \def\Vicodin{Vicodin 150mg}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{pstricks}
\usepackage{pstricks-add}
\usepackage{auto-pst-pdf} 
%\usepackage{}  % Ps fill

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% For Footer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{fancyhdr}

\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0.2pt}
\renewcommand{\footrulewidth}{0.2pt}
%\rhead{Share\LaTeX}
%\lhead{Guides and tutorials}
\rhead{\month \year}
\rfoot{\thepage}
\def\day{}
\cfoot{\scriptsize \textit{\textsf{\sffamily\textcopyright} Stupid \textsc{Guy}} 2023}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% For Multiple Columns within Text
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{multicol}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% For Links to Websites
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% https://www.sharelatex.com/learn/Hyperlinks
\usepackage{hyperref}
\hypersetup{
    colorlinks=true,
    linkcolor=blue,
    filecolor=magenta,      
    urlcolor=cyan,
}

\urlstyle{same}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  More customisation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%\setcounter{secnumdepth}{1}
%\setcounter{tocdepth}{1}

%\copyright symbol
\usepackage{textcomp}

% note a piè pagina per altre parti nel corpo di testo
%\usepackage{scrextend}
\usepackage{footmisc}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %Title Page
    % \begin{titlepage}
        \include{title}
        \newpage
        \pagestyle{empty}
        \cleardoublepage    %in aggiunta alla paginabianca
    % \end{titlepage}
%   \newpage
%   \thispagestyle{empty}
%   \cleardoublepage    %in aggiunta alla paginabianca
    \include{otherFile}
\end{document}

Title.tex, que debería mostrar \today:

\begin{titlepage}   

    \pagestyle{empty}
    
    \begin{tikzpicture}[remember picture, overlay]
        \draw[fill=black] (current page.north west) rectangle (current page.south east);
        
        %Striscia verticale Green4!25
        \node[rectangle, fill=OliveGreen!30, anchor=south west, minimum width=12mm, minimum height=\paperheight](sidebar) at ($(current page.south west)+(0,0)$){};
    
        \node [anchor=north west, xshift=-1mm, yshift=2mm] (colVert) at ($(sidebar.north east)+(-.02,0)$) {\includegraphics[width=0.5\paperwidth]{example-image-c}};
        
        %Striscia orizontale 
        \node[rectangle, fill=OliveGreen, anchor=north west, minimum width=\paperwidth, minimum height=24mm](footbar) at ($(colVert.south west)+(0.1,0.12)$){};
        
        \node [anchor=east, text width=\paperwidth, color=white, 
    %   below right=of colVert,
        ] (titolo) at ($(footbar.east)+(-.3,-.0)+(-1.3,0)$)
        {
            \begin{flushright}
                \fontsize{32pt}{32pt}\selectfont \bfseries Spinal surgery
            \end{flushright}
        };
    %   \node (sTitolo) {Diario medico postoperatorio}
    
        \node [anchor=east, text width=\textwidth, color=white, 
        %   below right=of colVert,
        ] (sTitolo) 
        at ($(footbar.east)+(-.3,-2.25)+(-1.3,-0)$)
        {
            \begin{flushright}
                \fontsize{26pt}{30pt}\selectfont  \itshape Journal
            \end{flushright}
        };
        
        \node [anchor=east, text width=\textwidth, color=white, 
        %   below right=of colVert,
        ] (autore) 
        at ($(footbar.east)+(-.3,-5.25)+(-1.3,-0)$)
        {
            \begin{flushright}
                \fontsize{16pt}{20pt}\selectfont  \bfseries \scshape Stupid guy
            \end{flushright}
        };
        
        \node [anchor=east, text width=\textwidth, color=white, 
        %   below right=of colVert,
        ] (info) 
        at ($(footbar.east)+(-.3,-15.75)+(-1.3,-0)$)
        {
    %       \raggedright
            \begin{flushright}
                \fontsize{12pt}{18pt}\selectfont  
                    \begin{tabular}{rl}
    %                   %more text as Admission date ,ecc
                        \textbf{v 1.16}&   \today   \\
                    \end{tabular}
            \end{flushright}
        };
        
    \end{tikzpicture}
\end{titlepage}

Y finalmente la versión simplificada con 5 archivos diferentes parecidos a este que también se unirán en el archivo principal o raíz:

\section*{1st day}
\blindtext

\section*{2nd day}
\begin{wrapfigure}[22]{l}{0.63\textwidth}
    \centering
    \includegraphics[\width=0.6\textwidth]{example-image-a}
\end{wrapfigure}
\blindtext
\blindtext

\subsection*{3rd day}
\begin{wrapfigure}[22]{l}{0.63\textwidth}
    \centering
    \includegraphics[\width=0.6\textwidth]{example-image-a}
\end{wrapfigure}
\blindtext
\blindtext

\section*{4th day}
\begin{wrapfigure}[22]{l}{0.63\textwidth}
    \centering
    \includegraphics[\width=0.6\textwidth]{example-image-a}
\end{wrapfigure}
\blindtext
\blindtext

\subsection*{6th day}
\begin{wrapfigure}[22]{l}{0.63\textwidth}
    \centering
    \includegraphics[\width=0.6\textwidth]{example-image-a}
\end{wrapfigure}
\blindtext
\blindtext

and so on for the other important days

Sí, wrapfig se usa con trucos de PS para resaltar las cosas importantes y muchos paquetes para trazar más gráficos pgf, y también estoy trabajando en una guerra para obtener siunitxun comando \qty{}{}que muestre el número de acuerdo con la fuente del texto, pero eso no es así. por su puesto.

Ya intenté crear un falso \maketitle, donde pretendía poner el mío, nada, \date{\today}tampoco funcionó, así que lo intenté titlepage envdentro y fuera del archivo incluido (mira todas esas líneas comentadas).

Hace 2 semanas actualicé TeXstudio de la versión 4.6.3 a la 4.7.0, si es importante.

Gracias por toda la ayuda.

Trabajé un poco en torno a esta plantilla de diario personal que encontré al dorso (https://www.overleaf.com/latex/templates/personal-journal-template/cnhkpjpfkrdn), al leer los comentarios de @campa, sospeché que la redefinición recursiva de \day en el diario podría afectar el comportamiento de \today. ¿Estoy en lo correcto?

Si ese es el caso, merezco perder 100 puntos de repetición ya que no noté algo tan obvio... Lamento mucho haberte hecho perder el tiempo con mi estúpida pregunta.

Respuesta1

Mire el comentario de @campa, seguí tímidamente una plantilla al dorso... https://www.overleaf.com/latex/templates/personal-journal-template/cnhkpjpfkrdn

11º mandamiento, nunca confíes en nada en Internet. Lamento mucho que hayan perdido una hora para ayudarme, muchas gracias amigos.

Así que la nueva definición con mayúscula resolvió el problema, hasta que no fue así... Pero finalmente el culpable estuvo \def\day{}en la fancyhfparte del preámbulo. ¡Ahora funciona según lo previsto!

Yuhuuuuu

información relacionada