How to detect if the date field is empty when designing a custom title page template?Use the values of title,...

Most cost effective thermostat setting: consistent temperature vs. lowest temperature possible

Why one should not leave fingerprints on bulbs and plugs?

What do you call the act of removing a part of a word and replacing it with an apostrophe

Official degrees of earth’s rotation per day

This word with a lot of past tenses

I got the following comment from a reputed math journal. What does it mean?

Print a physical multiplication table

Happy pi day, everyone!

How do you talk to someone whose loved one is dying?

Why does overlay work only on the first tcolorbox?

PTIJ: Who should I vote for? (21st Knesset Edition)

"of which" is correct here?

Time travel from stationary position?

Fastest way to pop N items from a large dict

How do I change two letters closest to a string and one letter immediately after a string using Notepad++?

How to write cleanly even if my character uses expletive language?

Describing a chess game in a novel

How could a scammer know the apps on my phone / iTunes account?

What options are left, if Britain cannot decide?

Problem with FindRoot

How do I hide Chekhov's Gun?

Examples of transfinite towers

Instead of a Universal Basic Income program, why not implement a "Universal Basic Needs" program?

Employee lack of ownership



How to detect if the date field is empty when designing a custom title page template?


Use the values of title, author and date on a custom title pagesupervisor field on the page of the title with BeamerBeamer Template - Disable Margins in Title pageCreate a document cover using style classAdding a new field to the title page in beamerLaTeX beamer: pagenumbering appendixModify the title page of a template?Help designing a Title Page for thesisDesigning Latex title page for Bachelor ThesisHow remove the date in template













0















I am trying to create a custom title page but I am not able to write a macro that detects whether the date field is empty or not. If it is then the block of the date entry should simply be bypassed.



enter image description here



The image above looks weird since the date block title is shown but the actual date is empty. Of course I can manually remove the date block for such case, but I still want this to be done automatically. I also want to know how to determine if some field is empty or not.



documentclass[aspectratio=169, xcolor={x11names}]{beamer}


usecolortheme{rose}

setbeamercolor{itemize item}{fg=black}

useoutertheme[]{tree}

useinnertheme{inmargin}

setbeamersize{text margin left=2mm, text margin right=2mm}

newlength{sidebarWidth}
setlength{sidebarWidth}{0.2paperwidth}

setbeamersize{sidebar width left=sidebarWidth, sidebar width right=0cm}

usefonttheme{structurebold}


title{The Main Title of The Presentation}
subtitle{Short Title Goes here}
author{Al-Motasem Aldaoudeyeh}
institute{North Dakota State University}
date{}

setbeamertemplate{headline}{}

setbeamertemplate{date}{nothing}

setbeamercolor{block title}{fg=blue}
setbeamerfont{title page}{shape=bfseries}


% Custome title page
setbeamertemplate{title page}{
vspace*{stretch{3}}
begin{block}{}
usebeamercolor[fg]{title page}usebeamerfont{block title}usebeamertemplate{block title}
inserttitle
end{block}
begin{block}{}
usebeamercolor[fg]{title page}usebeamerfont{block title}usebeamertemplate{block title}
large insertsubtitle
end{block}
vspace{stretch{2}}
begin{block}{Author}
insertauthor
end{block}
begin{block}{Institute}
insertinstitute
end{block}
begin{block}{Date}
insertdate
end{block}
vspace{stretch{5}}
}

begin{document}

begin{frame}
titlepage
end{frame}

end{document}








share



























    0















    I am trying to create a custom title page but I am not able to write a macro that detects whether the date field is empty or not. If it is then the block of the date entry should simply be bypassed.



    enter image description here



    The image above looks weird since the date block title is shown but the actual date is empty. Of course I can manually remove the date block for such case, but I still want this to be done automatically. I also want to know how to determine if some field is empty or not.



    documentclass[aspectratio=169, xcolor={x11names}]{beamer}


    usecolortheme{rose}

    setbeamercolor{itemize item}{fg=black}

    useoutertheme[]{tree}

    useinnertheme{inmargin}

    setbeamersize{text margin left=2mm, text margin right=2mm}

    newlength{sidebarWidth}
    setlength{sidebarWidth}{0.2paperwidth}

    setbeamersize{sidebar width left=sidebarWidth, sidebar width right=0cm}

    usefonttheme{structurebold}


    title{The Main Title of The Presentation}
    subtitle{Short Title Goes here}
    author{Al-Motasem Aldaoudeyeh}
    institute{North Dakota State University}
    date{}

    setbeamertemplate{headline}{}

    setbeamertemplate{date}{nothing}

    setbeamercolor{block title}{fg=blue}
    setbeamerfont{title page}{shape=bfseries}


    % Custome title page
    setbeamertemplate{title page}{
    vspace*{stretch{3}}
    begin{block}{}
    usebeamercolor[fg]{title page}usebeamerfont{block title}usebeamertemplate{block title}
    inserttitle
    end{block}
    begin{block}{}
    usebeamercolor[fg]{title page}usebeamerfont{block title}usebeamertemplate{block title}
    large insertsubtitle
    end{block}
    vspace{stretch{2}}
    begin{block}{Author}
    insertauthor
    end{block}
    begin{block}{Institute}
    insertinstitute
    end{block}
    begin{block}{Date}
    insertdate
    end{block}
    vspace{stretch{5}}
    }

    begin{document}

    begin{frame}
    titlepage
    end{frame}

    end{document}








    share

























      0












      0








      0








      I am trying to create a custom title page but I am not able to write a macro that detects whether the date field is empty or not. If it is then the block of the date entry should simply be bypassed.



      enter image description here



      The image above looks weird since the date block title is shown but the actual date is empty. Of course I can manually remove the date block for such case, but I still want this to be done automatically. I also want to know how to determine if some field is empty or not.



      documentclass[aspectratio=169, xcolor={x11names}]{beamer}


      usecolortheme{rose}

      setbeamercolor{itemize item}{fg=black}

      useoutertheme[]{tree}

      useinnertheme{inmargin}

      setbeamersize{text margin left=2mm, text margin right=2mm}

      newlength{sidebarWidth}
      setlength{sidebarWidth}{0.2paperwidth}

      setbeamersize{sidebar width left=sidebarWidth, sidebar width right=0cm}

      usefonttheme{structurebold}


      title{The Main Title of The Presentation}
      subtitle{Short Title Goes here}
      author{Al-Motasem Aldaoudeyeh}
      institute{North Dakota State University}
      date{}

      setbeamertemplate{headline}{}

      setbeamertemplate{date}{nothing}

      setbeamercolor{block title}{fg=blue}
      setbeamerfont{title page}{shape=bfseries}


      % Custome title page
      setbeamertemplate{title page}{
      vspace*{stretch{3}}
      begin{block}{}
      usebeamercolor[fg]{title page}usebeamerfont{block title}usebeamertemplate{block title}
      inserttitle
      end{block}
      begin{block}{}
      usebeamercolor[fg]{title page}usebeamerfont{block title}usebeamertemplate{block title}
      large insertsubtitle
      end{block}
      vspace{stretch{2}}
      begin{block}{Author}
      insertauthor
      end{block}
      begin{block}{Institute}
      insertinstitute
      end{block}
      begin{block}{Date}
      insertdate
      end{block}
      vspace{stretch{5}}
      }

      begin{document}

      begin{frame}
      titlepage
      end{frame}

      end{document}








      share














      I am trying to create a custom title page but I am not able to write a macro that detects whether the date field is empty or not. If it is then the block of the date entry should simply be bypassed.



      enter image description here



      The image above looks weird since the date block title is shown but the actual date is empty. Of course I can manually remove the date block for such case, but I still want this to be done automatically. I also want to know how to determine if some field is empty or not.



      documentclass[aspectratio=169, xcolor={x11names}]{beamer}


      usecolortheme{rose}

      setbeamercolor{itemize item}{fg=black}

      useoutertheme[]{tree}

      useinnertheme{inmargin}

      setbeamersize{text margin left=2mm, text margin right=2mm}

      newlength{sidebarWidth}
      setlength{sidebarWidth}{0.2paperwidth}

      setbeamersize{sidebar width left=sidebarWidth, sidebar width right=0cm}

      usefonttheme{structurebold}


      title{The Main Title of The Presentation}
      subtitle{Short Title Goes here}
      author{Al-Motasem Aldaoudeyeh}
      institute{North Dakota State University}
      date{}

      setbeamertemplate{headline}{}

      setbeamertemplate{date}{nothing}

      setbeamercolor{block title}{fg=blue}
      setbeamerfont{title page}{shape=bfseries}


      % Custome title page
      setbeamertemplate{title page}{
      vspace*{stretch{3}}
      begin{block}{}
      usebeamercolor[fg]{title page}usebeamerfont{block title}usebeamertemplate{block title}
      inserttitle
      end{block}
      begin{block}{}
      usebeamercolor[fg]{title page}usebeamerfont{block title}usebeamertemplate{block title}
      large insertsubtitle
      end{block}
      vspace{stretch{2}}
      begin{block}{Author}
      insertauthor
      end{block}
      begin{block}{Institute}
      insertinstitute
      end{block}
      begin{block}{Date}
      insertdate
      end{block}
      vspace{stretch{5}}
      }

      begin{document}

      begin{frame}
      titlepage
      end{frame}

      end{document}






      beamer titles templates





      share












      share










      share



      share










      asked 7 mins ago









      Al-Motasem AldaoudeyehAl-Motasem Aldaoudeyeh

      1,683413




      1,683413






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "85"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479859%2fhow-to-detect-if-the-date-field-is-empty-when-designing-a-custom-title-page-temp%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479859%2fhow-to-detect-if-the-date-field-is-empty-when-designing-a-custom-title-page-temp%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          IEEEtran - How to include ORCID in TeX/PDF with PdfLatexIs there a standard way to include ORCID in TeX /...

          Cicindela nigrior Przypisy | Menu nawigacyjneCicindela varians unicolorManual for the Identification of the...

          Glossaries-extra: Adding glossaries package to “Clas­sicTh­e­sis” template by Dr. André Miede v. 4.6 ...