I am trying to combine two presentations into one tex file. After the title of the second one, I still get the sidebar components of the first presentation. Do you know any way to 'restart' the sidebar to reflect only the second table of contents?
I have too many sections in my presentation such that the left-hand-side navigation bar is full and only shows the first sections in Fig. 2, initial situation in Fig. 1.  Pseudocode    clean the left-hand-hand side navigation bar when exceed the threshold and start a new one there when on sufficient page  this feature occurs with Beamer Berkeley appendix so it is possible also with the main document   Code which problem shown in Fig. 2   \documentclass{beamer} \usetheme{Berkeley}  \logo{\includegraphics{logo.png}} \usepackage{hyperref} % https://tex.stackexchange.com/a/346486/13173 \newenvironment{slide}[1] {\begin{frame}[environment=slide,allowframebreaks] \frametitle{\insertsection-#1} } {\end{frame}} % fragile only if code % allowframebreaks not by default   \begin{document}  \title{Sensory system. Primary sensory modalities. Cortical modalities. Kinds of sensory disturbances. Spinal cord disorders. Spinal cord transverse and partial lesion. Cauda equina damage.} \author{Leo}  \section{Cortical modalities} \begin{slide}{basics}      More refined aspects of sensation ... \end{slide}  \section{Cortical modalities} \begin{slide}{basics}      More refined aspects of sensation ... \end{slide}  \section{Cortical modalities 2} \begin{slide}{basics}      More refined aspects of sensation ... \end{slide}  \section{Cortical modalities 3} \begin{slide}{basics}      More refined aspects of sensation ... \end{slide}  \section{Cortical modalities 4} \begin{slide}{basics}      More refined aspects of sensation ... \end{slide}  \end{document}   Fig. 1 Situation at the first page,  Fig. 2 Situation at Section 6 wheere the navbar has not changed,  Fig. 3 Samcarter's answer output + one slide addition but without \part{} - fails on sufficient page count       Output: the left-hand-side navigation bar is not refreshed when the amount of sections exceed its capacity on suffcient enough page     Testing Samcarter's proposal  I include one slide before Samcarter's body so I get the wrong output in Fig. 3.  Solution: Eventually correct output by just adding \part{} in the place where the new navbar is wanted.   TeXLive: 2016 OS: Debian 8.7
Multiple cases in switch statement Is there a way to fall through multiple case statements without stating case value: repeatedly?  I know this works:  switch (value) {    case 1:    case 2:    case 3:       // Do some stuff       break;    case 4:    case 5:    case 6:       // Do some different stuff       break;    default:        // Default stuff       break; }   but I'd like to do something like this:  switch (value) {    case 1,2,3:       // Do something       break;    case 4,5,6:       // Do something       break;    default:       // Do the Default       break; }   Is this syntax I'm thinking of from a different language, or am I missing something? Remove HTML tags from a String Is there a good way to remove HTML from a Java string? A simple regex like replaceAll(&quot;\\&lt;.*?&gt;&quot;, &quot;&quot;)   will work, but things like &amp;amp; wont be converted correctly and non-HTML between the two angle brackets will be removed (i.e. the .*? in the regex will disappear). Editing a starred post in chat breaks display for user who starred it Steps to reproduce:   User A posts a message User B stars it, the star next to the post appears yellow User A edits the post The display of the star in User B's view becomes black, as if they haven't starred it   This is the worst bug ever in the history of StackExchange and makes the entire network completely unusable for me. I'm going to Yahoo! Answers until this is fixed. I've shown the existence of unique square roots of all positive rational numbers, so now I want to prove that the square root is monotone:   $0&lt;a&lt;b$ if and only if $\sqrt{a} &lt; \sqrt{b}$ Regex exec only returning first match requireJS optional dependency Want to fill line with repeating string Similar to the \dotfill command, but with your own text, rather than dots.  If the string was: kitty!  The entire line would look like the following: kitty!kitty!kitty!kitty!kitty!kitty!kitty!kitty!kitty!  Is there any way to do this? Is there a way to log all Microsoft SQL Server queries executed on a certain server, with their respective durations?  I'd like to be able to analyze all queries will a tool like what  does for PostgreSQL. While we're at it: do you know of any such tools? Proving that a Binary Tree of $n$ nodes has a height of at least $\log(n)$. Word for two collections that do not have any elements in common I'm looking for a word for when you have a collection A and a collection B and they have no overlap.  In mathematical terms: the relation between two sets where the intersection is empty. Like in this Venn diagram:    The word that keeps popping up in my mind is disparate sets, but I don't feel that completely covers the meaning when I look at the definition, because that doesn't seem to preclude overlapping sets that are different:     disparate   1. distinct in kind; essentially different; dissimilar:   disparate ideas. In many courses, say Linear Algebra, Group Theory, Topology, instructors often say that knowing that certaing objects are isomorphic, sometimes makes life easier because we can work with more friendly objects.  Is there any example of using isomorphism concept to solve a non trivial concrete problem?   I must say, I'm not looking on important or famous isomorphic objects, but on non trivial application of the concept of isomorphism used in order to solve another kind of problem. I would like to remove my Raspberry Pi from my iPhone 8 (running iOS 11.2.1) as a connected bluetooth device.  Normally, I would go into my Settings -> Bluetooth and select the Info button (a small blue circled "i") to show the "Disconnect" and "Forget Device" dialogs:    Unfortunately, iOS does not give me this option for my device. The bluetooth device list does not contain an "i" for the item, and there is seemingly no other way to disconnect.    How do I unpair this device if there is no button to trigger to the unpair prompt?  Due to work restrictions I cannot completely reset the device. Non academic career options for PhD in Math I am thinking of getting my M.S. in Computer Science. I chose C.S. because I enjoy programming and because its a solid choice, career wise.  Low unemployment, good pay, all that jazz.  But my real passions has always been math and lately I have been thinking about swapping and going for my graduate degree in Math. If I went the math route I would probably go full PhD (since I don't think there is much you can do with just a Masters in math).  But as much as I love math, I can't see myself being a math teacher. I would want to work in research or industry, applying math to solve real world problems.    What kind of non-academic jobs are there for someone with a PhD in math (or what is the best resource to see what jobs are out there)? Make back/forward work on paginated lists Allowing FTP access to a local user without allowing SSH/command line access For context, see .  In essence:     "This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation (not including the ) on this site."   Suggested addition to existing message is in bold. What is the reason Men play 5 sets & Women play 3 sets in a Grand Slam in Tennis? In the ATP &amp; WTA events, both Men &amp; Women tennis players play best of 3 sets. But when it comes to Grand Slams, the Men play 5 sets. At the risk of sounding a misogynist, I always believe the reason to be strength &amp; endurance. After all, a 5 set EPIC match lasts 5 hours while a 3 set EPIC last 3 hours.    Is that the only reason. Or am I a naive misogynist? Also was that the case since the history of Grand Slams or did Men play 3 sets before? I've managed to create a custom keyboard layout for .  Now that the keyboard is in a state that I can share it. I don't know how to make it a redistributable package. Refer to renamed columns in WHERE clause SELECT name, gdp/population as capita  FROM world w1  WHERE continent = 'Europe'       AND capita &gt;  (     SELECT gdp/population      FROM world      WHERE name = 'United Kingdom' );   How come I can't refer to capita in the WHERE clause? It returns this error:  Unknown column 'capita' in 'where clause'   I can however, run the query if I replace capita with gdp/population.  I don't want to do gdp/population &gt; .... How can I do capita &gt; ...? Or is this not possible? No matter what I do I'm stuck with &gt;. How can I enter a new command?  $ chmod -R 600 `/ .ssh &gt;  &gt; chmod &gt; id_rsa.pub &gt;  &gt; sudo chmod 600 ~/ssh/id_rsa     I was trying to sync the master and slave by following a youtube video when I encountered the "permission denied" issue. While trying to resolve it I got stuck with &gt;. Now I can't enter any new command.   Please guide me. I'm a Linux/AWS newbie.