Layout presets for LaTeX Beamer
Beamer consists of multiple frame layouts
Accoring to Joseph Wright's answer at   The k-type argument has recently been adjusted: you now want e-type  Questions:  What is the functionality of the new e-type argument and how does it differ from the previous k-type argument?  The 2016-11-21 version of the xparse documentation does not mention the k-type argument at all. Is the plan to leave the earlier k functionality intact (but deprecated so no documentation) or will it eventually be removed and any usage of that should eliminated? If the plan is for it to be removed, how long will the older k-type argument functionality be kept in xparse.   Code: Example of the k-type argument from . Would be useful to see how this would be modified to use the new e-type argument. \documentclass{article}  \usepackage{amsmath} \usepackage{xparse} \usepackage{xcolor}  \NewDocumentCommand\MyMacro{k_}{%     \IfNoValueTF{#1}{%         \mathbf{A}     }{%         A_{\textcolor{red}{#1}}     }% }  \begin{document}  With a subscript: $\MyMacro_{\pi}$   Without any subscript: $\MyMacro$   \end{document} How to Store Fresh Herbs What is the best way to store fresh herbs like parsley or cilantro?  I find I have about the same luck with them whether they are left in a plastic bag or I put them in a cup of water. Can't move/snap Nautilus window to occupy left or right half of the 1366x768 screen - is it just me? I'm running Ubuntu 18.04 LTS with GNOME Shell. Nautilus does not want to occupy 50% (left or right) of the screen sized at 1366x768.    Other applications (such as GNOME Terminal, Eye of GNOME, Gedit) are normally snapping to the left/right half of the screen.  But Nautilus can be resized to the width lower than half of screen (I can get 650 px, which is smaller than 1366/2 = 683 px).  The first usable screen resolution seems to be 1400x1050, then goes 1440x900. But large amount of current devices .  Is it just me?     Updates: 1. standard shortcut Super+← or Super+→ do not work too. 2. I reported  which has linked upstream . 3. It does not work on GNOME FlashBack session too. I am working to integrate unit testing into the development process on the team I work on and there are some sceptics. What are some good ways to convince the sceptical developers on the team of the value of Unit Testing? In my specific case we would be adding Unit Tests as we add functionality or fixed bugs. Unfortunately our code base does not lend itself to easy testing. How to minimize residual sum of squares of an exponential fit? I have the following data and would like to fit a negative exponential growth model to it:  Days &lt;- c( 1,5,12,16,22,27,36,43) Emissions &lt;- c( 936.76, 1458.68, 1787.23, 1840.04, 1928.97, 1963.63, 1965.37, 1985.71) plot(Days, Emissions) fit &lt;- nls(Emissions ~ a* (1-exp(-b*Days)), start = list(a = 2000, b = 0.55)) curve((y = 1882 * (1 - exp(-0.5108*x))), from = 0, to =45, add = T, col = "green", lwd = 4)   The code is working and a fitting line is plotted. However, the fit is visually not ideal, and the residual sum of squares seems to be quite huge (147073).   How can we improve our fit? Does the data allow a better fit at all?  We could not find a solution to this challenge on the net. Any direct help or linkage to other websites/posts is greatly appreciated. Is there a GLM bible? Is there consensus in the field of statistics that one book is the absolute best source and completely covering every aspect of GLM - detailing everything from estimation to inference? Fastest way to convert string to integer in PHP Using PHP, what's the fastest way to convert a string like this: "123" to an integer?  Why is that particular method the fastest? What happens if it gets unexpected input, such as "hello" or an array? Make tools indestructible in Minecraft How exactly does Knuth's Up-Arrow notation work? Condition on a,b and c satisfying an equation(TIFR GS 2017) Let $a,b,c$ be positive real numbers satisfying $$(1+a+b+c)\left(1+\frac{1}{a}+\frac{1}{b}+\frac{1}{c}\right)=16,$$ then $a+b+c=3$.  I thought about the application of the AM-GM-HM inequality, but in vain. I also thought about splitting 16 into factors and comparing but went nowhere. Any ideas. Thanks beforehand. Access Java / Servlet / JSP / JSTL / EL variables in JavaScript Probability of success on third and fourth trials? I have a pretty basic probability question, but I'm just having difficulties remembering what distribution this is.  A coin is tossed until a head appears two times in a row. Given that we are using a fair coin, what is the probability that we toss the coin exactly 4 times such that the two consecutive heads are the 3rd and 4th trials?  I know that this would be fairly easy to solve by brute force and listing out the different probabilities, but I'm a little confused as to how to use a "shortcut" such as identifying this as a binomial distribution. I also don't know how to account for the probability that we are using 4 tosses.  Any help is appreciated. Thanks! Area of a parallelogram, vertices $(-1,-1), (4,1), (5,3), (10,5)$. I need to find the area of a parallelogram with vertices $(-1,-1), (4,1), (5,3), (10,5)$.  If I denote $A=(-1,-1)$, $B=(4,1)$, $C=(5,3)$, $D=(10,5)$, then I see that $\overrightarrow{AB}=(5,2)=\overrightarrow{CD}$. Similarly $\overrightarrow{AC}=\overrightarrow{BD}$. So I see that these points indeed form a parallelogram.  It is assignment from linear algebra class. I wasn't sure if I had to like use a matrix or something. Today I was walking using my iPhone 6S running iOS 9.3 as a pedometer and it shutdown.   When I got home and plugged it in, it said 30% capacity.   That seems strange. I would expect it for 2% or 5% to preserve RAM, but 30%? Maybe there is a setting I don't know about.   My question is: Why does my iPhone power off when the battery is down to 30%?   Edit: this is not a duplicate of the low battery crash as I witnessed the low power shutdown and it was not a crash. Remap Keys in Linux I'd like to switch my Ctrl and Alt keys under Linux (to make it more Mac-like).  How do I do this?  If it helps, I'm running Ubuntu 9.04. Restoring MySQL database from physical files Is it possible to restore a MySQL database from the physical database files. I have a directory that has the following file types:  client.frm client.MYD client.MYI    but for about 20 more tables.  I usually use mysqldump or a similar tool to get everything in 1 SQL file so what is the way to deal with these types of files? Mannequin Duplication glitch I'm wanting to use Xen Hypervisor to be able to run both Ubuntu 12.04 and Windows 7 at the same time using virtualization. I can find plenty of XCP tutorials but I'm not looking to install the cloud stack, I just want the server confined to my machine.  All I need is a link to a decent tutorial for this purpose. I've read a ton of articles that lead me to believe I'm on the right track, but not enough to feel comfortable getting it right if I just dive in. I'm getting caught up on whether I need to install Ubuntu and then install Xen into it, or do I need to install Xen on a small partition and then leave the rest of the hard drive open for the virtualization... I dunno.  Basically, I need the virtualization of Windows 7 for Adobe Premiere and After Effects (until Lightworks for Linux comes out and I can afford NUKEX). If I didn't need those, I'd be rocking out a straight up Ubuntu machine or just using VirtualBox for my virtualization. However, I need Windows to run as an HVM so it runs like I would expect rather than having the issues I may run into with VirtualBox (video drivers, etc).  So, any suggestions? How do I stop program from skipping over getline? Space $\mathcal{L}^p(X, \Sigma, \mu)$ is separable iff $(\Sigma, \rho_\Delta)$ is separable Let's consider the space $\mathcal{L}^p(X, \Sigma, \mu)$ of all functions $f\colon X \to \mathbb{R}$ (or $\mathbb{C}$) for which: $$ \int\limits_X|f|^p \mu(dx) &lt; \infty. $$ Here $X$ is a metric space, $\Sigma\subset 2^X$ — sigma-algebra on $X$ and $\mu$ — is the measure on $\Sigma$. As usual, functions that are equal almost everywhere considered to be equivalent, so technically we are dealing with classes $$[f]=\{g\in \mathcal{L}^\infty(X,\Sigma, \mu) \colon \mu \{x\in X\colon f(x)\neq g(x)\}=0\}.$$ This space is endowed with integral metric $$\rho_p(f,g)=\left(\int\limits_X|f-g|^p \mu(dx)\right)^{1/p}$$  The statement is that space $\mathcal{L}^p(X, \Sigma, \mu)$ is separable iff $(\Sigma, \rho_\Delta)$ is separable, where $\forall A,B\in\Sigma$ $$\rho_\Delta(A,B)=\mu(A\Delta B)$$ Here, again, we consider $A\in \Sigma$ as a class $[A]=\{A'\in\Sigma\colon \mu(A\Delta A')=0\}$ to have the identity of indiscernibles.  How do one prove the statement?