Help Understanding/Adapting the Definition of Beamer's 'lecture' Command

Hot bath for aluminium engine block and heads

Bob has never been a M before

Does the Mind Blank spell prevent the target from being frightened?

Can a Necromancer reuse the corpses left behind from slain undead?

why `nmap 192.168.1.97` returns less services than `nmap 127.0.0.1`?

Two-sided logarithm inequality

What linear sensor for a keyboard?

Extending the spectral theorem for bounded self adjoint operators to bounded normal operators

How can "mimic phobia" be cured or prevented?

Is Asuka Langley-Soryu disgusted by Shinji?

Will adding a BY-SA image to a blog post make the entire post BY-SA?

On a tidally locked planet, would time be quantized?

Is camera lens focus an exact point or a range?

When quoting, must I also copy hyphens used to divide words that continue on the next line?

anything or something to eat

Gibbs free energy in standard state vs. equilibrium

Greco-Roman egalitarianism

Translation of Scottish 16th century church stained glass

Flux received by a negative charge

Did arcade monitors have same pixel aspect ratio as TV sets?

Should I stop contributing to retirement accounts?

Visiting the UK as unmarried couple

Can the Supreme Court overturn an impeachment?

Global amount of publications over time



Help Understanding/Adapting the Definition of Beamer's 'lecture' Command














0















Beamer's 'lecture' command has been a great way for me to have all my lecture notes in one document, but typeset only the segments that I need for any given day/week of class. Ultimately I would like to try and adapt this command to other document classes (currently it is very embedded in the 'beamer' class).



I would consider myself an advanced TeX user, but a novice when it comes to advanced programming (I've put together a few of my own `class' files, but nothing too advanced).



Here's what I found in 'beamerbasesection.sty':



%
% Lecture Definitions
%
newififbeamer@inlecture
beamer@inlecturetrue

newcommandbeamer@if@in@clist@TF[2]%
defbeamer@if@in@clist@aux##1,#2,%
expandafterexpandafterexpandafterifx
expandafterexpandafterexpandafter@nil
expandafterbeamer@if@in@clist@auxexpandafter,#1,,#2,@nil
expandafter@secondoftwo
else
expandafter@firstoftwo
fi


newcounterlecture
renewcommandthelecture@arabicc@lecture
letinsertlecturenumber=thelecture
newrobustcmd*lecture@dblargbeamer@lecture
longdefbeamer@lecture[#1]#2#3%
beamer@savemode
mode<all>%
refstepcounterlecture%
defbeamer@currentlecturelabel#3%
@onelevel@sanitizebeamer@currentlecturelabel
defbeamer@lecturename#2%
defbeamer@shortlecturename#1%
ifxbeamer@onlylecture@empty
else
expandafterbeamer@if@in@clist@TFexpandafterbeamer@onlylecture
expandafterbeamer@currentlecturelabel%
beamer@inlecturetrue%
beamer@inlecturefalse%
fi
beamer@atbeginlecture
beamer@resumemode



So how does this command work its magic? When I type includeonlylecturefoo, how does it know to grab only the text after lecture[]foo and before the next 'lecture' command? Thanks for any insight you can give!



Just for completeness I've included a minimal working example:



documentclass[]beamer

includeonlylecturefoo

begindocument
lecture[]notfoo1
beginframe
frametitleText1
This frame won't show.
endframe


lecture[]foo
beginframe
frametitleHello, World!
Greetings.
endframe


lecture[]notfoo2
beginframe
frametitleText2
This frame won't show either.
endframe
enddocument








share


























    0















    Beamer's 'lecture' command has been a great way for me to have all my lecture notes in one document, but typeset only the segments that I need for any given day/week of class. Ultimately I would like to try and adapt this command to other document classes (currently it is very embedded in the 'beamer' class).



    I would consider myself an advanced TeX user, but a novice when it comes to advanced programming (I've put together a few of my own `class' files, but nothing too advanced).



    Here's what I found in 'beamerbasesection.sty':



    %
    % Lecture Definitions
    %
    newififbeamer@inlecture
    beamer@inlecturetrue

    newcommandbeamer@if@in@clist@TF[2]%
    defbeamer@if@in@clist@aux##1,#2,%
    expandafterexpandafterexpandafterifx
    expandafterexpandafterexpandafter@nil
    expandafterbeamer@if@in@clist@auxexpandafter,#1,,#2,@nil
    expandafter@secondoftwo
    else
    expandafter@firstoftwo
    fi


    newcounterlecture
    renewcommandthelecture@arabicc@lecture
    letinsertlecturenumber=thelecture
    newrobustcmd*lecture@dblargbeamer@lecture
    longdefbeamer@lecture[#1]#2#3%
    beamer@savemode
    mode<all>%
    refstepcounterlecture%
    defbeamer@currentlecturelabel#3%
    @onelevel@sanitizebeamer@currentlecturelabel
    defbeamer@lecturename#2%
    defbeamer@shortlecturename#1%
    ifxbeamer@onlylecture@empty
    else
    expandafterbeamer@if@in@clist@TFexpandafterbeamer@onlylecture
    expandafterbeamer@currentlecturelabel%
    beamer@inlecturetrue%
    beamer@inlecturefalse%
    fi
    beamer@atbeginlecture
    beamer@resumemode



    So how does this command work its magic? When I type includeonlylecturefoo, how does it know to grab only the text after lecture[]foo and before the next 'lecture' command? Thanks for any insight you can give!



    Just for completeness I've included a minimal working example:



    documentclass[]beamer

    includeonlylecturefoo

    begindocument
    lecture[]notfoo1
    beginframe
    frametitleText1
    This frame won't show.
    endframe


    lecture[]foo
    beginframe
    frametitleHello, World!
    Greetings.
    endframe


    lecture[]notfoo2
    beginframe
    frametitleText2
    This frame won't show either.
    endframe
    enddocument








    share
























      0












      0








      0








      Beamer's 'lecture' command has been a great way for me to have all my lecture notes in one document, but typeset only the segments that I need for any given day/week of class. Ultimately I would like to try and adapt this command to other document classes (currently it is very embedded in the 'beamer' class).



      I would consider myself an advanced TeX user, but a novice when it comes to advanced programming (I've put together a few of my own `class' files, but nothing too advanced).



      Here's what I found in 'beamerbasesection.sty':



      %
      % Lecture Definitions
      %
      newififbeamer@inlecture
      beamer@inlecturetrue

      newcommandbeamer@if@in@clist@TF[2]%
      defbeamer@if@in@clist@aux##1,#2,%
      expandafterexpandafterexpandafterifx
      expandafterexpandafterexpandafter@nil
      expandafterbeamer@if@in@clist@auxexpandafter,#1,,#2,@nil
      expandafter@secondoftwo
      else
      expandafter@firstoftwo
      fi


      newcounterlecture
      renewcommandthelecture@arabicc@lecture
      letinsertlecturenumber=thelecture
      newrobustcmd*lecture@dblargbeamer@lecture
      longdefbeamer@lecture[#1]#2#3%
      beamer@savemode
      mode<all>%
      refstepcounterlecture%
      defbeamer@currentlecturelabel#3%
      @onelevel@sanitizebeamer@currentlecturelabel
      defbeamer@lecturename#2%
      defbeamer@shortlecturename#1%
      ifxbeamer@onlylecture@empty
      else
      expandafterbeamer@if@in@clist@TFexpandafterbeamer@onlylecture
      expandafterbeamer@currentlecturelabel%
      beamer@inlecturetrue%
      beamer@inlecturefalse%
      fi
      beamer@atbeginlecture
      beamer@resumemode



      So how does this command work its magic? When I type includeonlylecturefoo, how does it know to grab only the text after lecture[]foo and before the next 'lecture' command? Thanks for any insight you can give!



      Just for completeness I've included a minimal working example:



      documentclass[]beamer

      includeonlylecturefoo

      begindocument
      lecture[]notfoo1
      beginframe
      frametitleText1
      This frame won't show.
      endframe


      lecture[]foo
      beginframe
      frametitleHello, World!
      Greetings.
      endframe


      lecture[]notfoo2
      beginframe
      frametitleText2
      This frame won't show either.
      endframe
      enddocument








      share














      Beamer's 'lecture' command has been a great way for me to have all my lecture notes in one document, but typeset only the segments that I need for any given day/week of class. Ultimately I would like to try and adapt this command to other document classes (currently it is very embedded in the 'beamer' class).



      I would consider myself an advanced TeX user, but a novice when it comes to advanced programming (I've put together a few of my own `class' files, but nothing too advanced).



      Here's what I found in 'beamerbasesection.sty':



      %
      % Lecture Definitions
      %
      newififbeamer@inlecture
      beamer@inlecturetrue

      newcommandbeamer@if@in@clist@TF[2]%
      defbeamer@if@in@clist@aux##1,#2,%
      expandafterexpandafterexpandafterifx
      expandafterexpandafterexpandafter@nil
      expandafterbeamer@if@in@clist@auxexpandafter,#1,,#2,@nil
      expandafter@secondoftwo
      else
      expandafter@firstoftwo
      fi


      newcounterlecture
      renewcommandthelecture@arabicc@lecture
      letinsertlecturenumber=thelecture
      newrobustcmd*lecture@dblargbeamer@lecture
      longdefbeamer@lecture[#1]#2#3%
      beamer@savemode
      mode<all>%
      refstepcounterlecture%
      defbeamer@currentlecturelabel#3%
      @onelevel@sanitizebeamer@currentlecturelabel
      defbeamer@lecturename#2%
      defbeamer@shortlecturename#1%
      ifxbeamer@onlylecture@empty
      else
      expandafterbeamer@if@in@clist@TFexpandafterbeamer@onlylecture
      expandafterbeamer@currentlecturelabel%
      beamer@inlecturetrue%
      beamer@inlecturefalse%
      fi
      beamer@atbeginlecture
      beamer@resumemode



      So how does this command work its magic? When I type includeonlylecturefoo, how does it know to grab only the text after lecture[]foo and before the next 'lecture' command? Thanks for any insight you can give!



      Just for completeness I've included a minimal working example:



      documentclass[]beamer

      includeonlylecturefoo

      begindocument
      lecture[]notfoo1
      beginframe
      frametitleText1
      This frame won't show.
      endframe


      lecture[]foo
      beginframe
      frametitleHello, World!
      Greetings.
      endframe


      lecture[]notfoo2
      beginframe
      frametitleText2
      This frame won't show either.
      endframe
      enddocument






      beamer macros robust-commands





      share












      share










      share



      share










      asked 1 min ago









      stevo1977stevo1977

      2113




      2113




















          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%2f481263%2fhelp-understanding-adapting-the-definition-of-beamers-lecture-command%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%2f481263%2fhelp-understanding-adapting-the-definition-of-beamers-lecture-command%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

          Isabella Eugénie Boyer Biographie | Références | Menu de navigationmodifiermodifier le codeComparator to Compute the Relative Value of a U.S. Dollar Amount – 1774 to Present.

          Join wedge with single bond in chemfigHow to make only one part of double bond bold with chemfig?Crossing bonds in chemfigjoining atoms in chemfig. Two adjacent molculesHow do I selectively change bond length in chemfig?Ugly bond joints in chemfigchemfig: reaction above arrowUsing the mhchem and chemfig packages in conjunctionBonding to specific element letter using chemfigResonance hybrids in chemfigScale chemfig molecule in beamer with tikzWhy does this chemfig bond with a hook start in the middle of the atom?

          Should we avoid writing fiction about historical events without extensive research?How do we write a story about genocide committed by a fascist government without falling into the “Nazi Germany” cliché?Researching sensitive subjectsShould I avoid “lecturing” my readers?Archetypical/popular historical fictionHow to write a “strong” passage?Will what worked 'back then' work today? (Novels)Historical Fiction: using you and thouHow do you make characters relatable if they exist in a completely different moral context?How do I write a MODERN combat/violence scene without being dry?Fictionizing firsthand accounts from history?Is it possible to narrate a novel in a faux-historical style without alienating the reader?