Is there a way to automatically count the number of words on each beamer slide, and to display it on the slide? I would like this feature to be available only when I am creating draft versions of the slides. Ideally, I should be able to toggle this feature off when I create the final version of the slides for distribution.  MWE  \documentclass{beamer}  \begin{document}  \begin{frame}{First Slide} This is my first slide.  % I want to generate the word count below automatically nwords = 7 \end{frame}  \begin{frame}{Second Slide} This is my second slide. It has more words than the first slide.  % I want to generate the word count below automatically nwords = 15 \end{frame}  \end{document}   The reason why I ask this question is because some people recommend that a slide should not have too many words. For example, an article by Presentation Magazine titled  gives the rule of thumb of "less than 40 words per slide." It would thus be useful to know how many words I have in each slide.
Often assignments (or even papers) have a word count limit. That is not a big deal when using Word, but I don't know how to do that using LaTeX. My solution has been so far to compile the document and then do a rough word count of my pdf file, sometimes even copying the contents of the pdf file and pasting in Word to get a mostly correct Word count.  Is there any tool (maybe even an online tool), package, script or software to do that directly from my .tex document and still get the right word count (i.e., ignore commands, equations, etc)?
Prove using natural deduction $((P \land Q) \rightarrow R) \vdash (P \rightarrow R) \lor (Q\rightarrow R)$ How do I prove the following using Natural Deduction?  $$((P \land Q) \rightarrow R) \vdash (P \rightarrow R) \lor (Q\rightarrow R)$$   My current approach:  So instead of proving $(P \rightarrow R) \lor (Q\rightarrow R)$, I figure I just need to prove $(P \rightarrow R)$ and use disjunction introduction.  The problem is my hypothesis requires $P$ and $Q$. How do I "create" this Q? I tried using the Law of the Excluded middle, but it does not seem to work.  Any help or insights is deeply appreciated. I cannot find these strings using Transifex:      (name hidden from user)       Regards,   {site name} Moderation Team          There is  and it seems like this string does not work ok (it is translated and approved, but, unfortunately, not rendered on the site).   All of the strings are taken from Moderator Private Messages interface.   Could you please fix it? How to find a function in $ L_{2}(0,\infty)$ but not $L_{q}(0,\infty)$, $q\neq 2 $ I was just wondering whether or not there have been mistakes in mathematics. Not a conjecture that ended up being false, but a theorem which had a proof that was accepted for a nontrivial amount of time before someone found a hole in the argument. Does this happen anymore now that we have computers? I imagine not. But it seems totally possible that this could have happened back in the Enlightenment.   Feel free to interpret this how you wish! Every element outside the maximal ideal of a local ring is a unit A homework question from my algebra class asks:     Show that in a local ring $R$ with maximal ideal $M$, every element outside $M$ is a unit.   My argument is that since $M$ is maximal $R /M $ is a field and so for any $ x \in R \backslash M $, $ x + M $ has a multiplicative inverse, which implies $ x $ is a unit.  I don't see where we need the fact that $R$ is a local ring. SQL function as default parameter value? I tried changing a default parameter value with this:  ALTER PROCEDURE [dbo].[my_sp] @currentDate datetime = GETDATE()   and all the SQL pre-compiler gave me was this error:     Msg 102, Level 15, State 1, Procedure my_sp, Line 8 Incorrect syntax near '('.   I have already created the procedure. (I'm not sure if that's relevant.) I was using a null default value and checking for that later, but that doesn't seem proper. Can I do this in one line?   Update: I was going off of :      [ = default ] Is a default value for the parameter. If a default value is defined, the function can be executed without specifying a value for that parameter.            Note:     Default parameter values can be specified for CLR functions except for the varchar(max) and varbinary(max) data types.         When a parameter of the function has a default value, the keyword DEFAULT must be specified when the function is called to retrieve the default value. This behavior is different from using parameters with default values in stored procedures in which omitting the parameter also implies the default value.   Am I reading this wrong?  Many thanks. How do I theme a webform? Title bar settings missing in GNOME Tweaks on Ubuntu 20.04 I tried to move my "close, minimise and maximise" to the right + add the macOS theme to it. However, I have not been able to find any settings for that. In GNOME Tweaks > Windows the settings to put the buttons to the right are missing completely. Indefinite articles used with plural nouns: It was AN amazing TWO DAYS Cannot refer to a non-final variable inside an inner class defined in a different method SCJP6 regex issue I'm  having some trouble editing the content of a Managed Email Template, I can quite easily modify the content of the Email Template, but when I wish to refer to an unmanaged component, like this:  &lt;messaging:attachment renderAs="PDF" filename="invoice.pdf"&gt;     &lt;c:MyComponent/&gt; &lt;/messaging:attachment&gt;   I get the error message:     Error: Unknown component c:mycomponent   Does anyone know if its possible to embed an unmanaged component in a managed Email Template? When I enter single quote ' in terminal it goes to some other mode, and commands don't execute. What is this mode and when do we use it?  root@sai:~# ' &gt; ls &gt; ' ls : command not found root@sai:~# A lot of missing dependencies when I try to install all software I have problem with missing dependencies, when I try to install some software by apt-get and also from downloaded .deb files.  I am using Debian 10. After installation I removed a lot of software which I no needed eg. Deluge, some terminals (I have only LXTerminal now), some tools from Libre Office Packet etc.  Now, when I try to install Atom, TeamViewer, or some RDP tools, every time I got information about missing unresolved dependencies, common it is libgconf, libcurl etc.  How can I resolve this issue? Now I can not install a lot of must have software, and when I try to apt-get install this packets, I got error, that no libs with this name were found.  Here is my sources.list. Maybe it will be some tip to fix this problem:  deb http://security.debian.org/debian-security/ buster/updates non-free contrib main deb-src  deb-src http://security.debian.org/debian-security/ buster/updates non-free contrib main deb-src   deb http://deb.debian.org/debian/ buster-backports main contrib non-free  deb-src http://deb.debian.org/debian/ buster-backports non-free contrib main   deb http://ftp.de.debian.org/debian stretch main contrib non-free deb-src http://ftp.de.debian.org/debian stretch main contrib non-free   Stretch repos were added for test purposes, but when I comment them, it looks the same. What counts as an attack? I was looking over the class feature of the 'fiend' patron warlock in 5e. I'm a bit confused on what actions the player needs to take before they can use the 'Hurl Through Hell' ability on an enemy. The PHB states:     Starting at 14th level, when you hit a creature with an attack, you can use this feature to instantly transport the target through the lower planes.   I'm not clear on what an 'attack' means in this context. Does it have to be a physical attack like a sword or crossbow? Do magical attacks like Eldritch Blast that require an attack roll count? What about spells with no attack roll? <50 reputation users can't delete comments that were posted on their behalf Some preface: I have an alternate account that I'm using to gain rep in order to help test/build bots for the  community on stackoverflow. Bot accounts are essentially users, and they need 20 rep to talk in chat, and 50 in order to add comments.  On this account (with 23 rep), I flagged a question as a duplicate of the wrong post by accident:        When I retracted the duplicate flag, I noticed that the comment was not removed. When I attempted to remove it, there was no [x] icon to the right of the post, and I had no recourse other than to leave the comment up (Which was 100% a wrong duplicate for that post). Additionally, I couldn't even flag it for mod attention, because it was my comment! Why does editing posts on SO require a minimum of 6 charaters? I have just recently started editing the post on Stack Overflow.  I found some posts which only required 2-3 character changes like they had correct grammar but some mistakes in spelling.  When I tried to correct the spelling mistakes, and clicked on "edit", it said:  Edits must be at least 6 characters   I don't know why Stack Overflow added this limit. How can I edit only 3-4 characters in a post? How to resize partitions? In order to show $e^{x+y}=e^{x}e^{y}$ by using Exponential Series, I got the following:   $$e^{x}e^{y}=\Big(\sum_{n=0}^{\infty}{x^n \over n!}\Big)\cdot \Big(\sum_{n=0}^{\infty}{y^n \over n!}\Big)=\sum_{n=0}^{\infty}\sum_{k=0}^n{x^ky^n \over {k!n!}}$$  But, where should I go next to get $e^{x+y}=\sum_{n=0}^{\infty}{(x+y)^n \over n!}$.  Thanks in advance. For some reasons, I would like to do an explicit quoting of a string value (becoming a part of constructed SQL query) instead of waiting for implicit quotation performed by cursor.execute method on contents of its second parameter.  By "implicit quotation" I mean:  value = "Unsafe string" query = "SELECT * FROM some_table WHERE some_char_field = %s;" cursor.execute( query, (value,) ) # value will be correctly quoted   I would prefer something like that:  value = "Unsafe string" query = "SELECT * FROM some_table WHERE some_char_field = %s;" % \     READY_TO_USE_QUOTING_FUNCTION(value) cursor.execute( query ) # value will be correctly quoted, too   Is such low level READY_TO_USE_QUOTING_FUNCTION expected by Python DB API specification (I couldn't find such functionality in  document). If not, maybe Psycopg2 provides such function? If not, maybe Django provides such function? I would prefer not to write such function myself...