I defined a new environment eq to simplify the equation,  \newenvironment{eq}{\begin{equation}}{\end{equation}   It works, but it seems that there is a extra space at the end of the environment, which can be tested as in the following command:  \documentclass{amsart} \begin{document} \begin{eq} a+b=c \end{eq} There is a extra space at the end of ``eq'' environment.  \begin{eq} a+b=c \end{eq}% NO extra space exists at the end of ``eq'' environment. \end{document}   My question is how to delete the extra space automatically?
If I create a custom environment based on the equation environment, I get a spacing issue: the next line of text after my environment closes doesn't start on the left margin.  Example code:  \documentclass{article} \begin{document} \newenvironment{myenv}{\begin{equation}}{\end{equation}} \noindent $| \leftarrow$ this is the left margin. \begin{myenv} e ^{i \pi} + 1 = 0 \end{myenv} $| \leftarrow$ this isn't the left margin. \end{document}   Output:    Removing the newline after \end{myenv} solves the spacing problem, but the resulting code is not readable.  Of course, in this example I could just use the equation environment itself. My real issue involves a more complex custom environment that suffers from the same problem, and which also includes an equation environment within it.
In various articles it is mentioned that for secure communications, the recommended key sizes are 128-bit key size for symmetric encryption (which makes it $2^{128}$ possible keys?) and 2048-bit key size for asymmetric encryption ($2^{2048}$ possible keys?).  Why do they differ so greatly? It seems like I am missing a very big part of the equation. jQuery call function from a string I made changes to iptables config file in /etc/iptables/filter in Ubuntu and want to reload them. I read the man page and also googled but couldn't find the information. Any help will be appreciated. How to typeset subscript in usual text mode? Why does Spring MVC respond with a 404 and report "No mapping found for HTTP request with URI [...] in DispatcherServlet"? How are app sales/acquisitions taxed in the US? Hypothetical scenario: I identify a gap in a company's product offering. I, as an independent developer, write a desktop, web, or mobile application that bridges this gap, and I contact the company in question. They like the product, and agree to acquire it from me.  To be clear, this scenario again isn't suggesting I've written an app and have put it on the App Store for continuous sale, but that I've written an app, and it has been acquired for a lump sum of money.  How is this taxed in the US? (Specifically, California.) Some thoughts I have:   Self-employment tax rate (currently 15.3%, I believe) CA sales tax (currently 7.25%) (Other income tax?)   Would this be taxed as a sale? Self-employment income? Both? What if I'm not self-employed, but the sale is much higher than my gross income? Example: $100,000 salary at company ___ that has no stake in the app invention, $1,000,000 app acquisition. Unable to cover get set in apex test class I am unable to cover the following class get set method. Need help in creating test class  public class Aresult{      public class Parent {         public String type {get; set;}         public String id {get; set;}         public String sequence_id {get; set;}         public String etag {get; set;}         public String name {get; set;}     } }   Please suggest  @isTest  public class CirriusGetItemsResultTest {     public static void myUnitTest(){         Aresult.parent a = new Aresult.parent();         a.type='hello';         a.id='hello';         a.sequence_id ='hello';         a.etag ='hello';         a.name ='hello';     } } How much sleep do adults actually need? The common consensus is that most adults should get 8 hours of sleep a night.  However, sleep needs are highly variable, with some people needing more to function properly, and some gaining little benefit past just a few hours. I'm trying to learn more about the statistics here.  I'd imagine sleep needs would fit a normal distribution, with a median of around 8 hours and a standard deviation of around an hour. The  would then put 68% of adults in the 7-9 hour range, 95% in the 6-10 hour range, and 99.7% in the 5-11 hour range, but that's just a guess.  Has this distribution been studied, and where? I've been making a map for 1.10 and it's going great, but 1.11 shows great mobs to use for it. However, most things have channged in command syntax. For example, /kill @e[type=ArmorStand,r=6] is now /kill @e[type=Armor_Stand,r=6]  What about /testfor? I can't find a way to testfor a player to stand on a block and give them an effect.   What's is going on in this image is that a redstone clock is running into this command /testfor @a[1117,20,507,r=1] (if I was to stand on them cords the comparator would turn on and power that command block), but it only works in 1.10... from 1.11 snapshots, I've seen some errors of it, like it now needs to have {} at the beginning and end of it. (e.g. /testfor @a{[1117,20,507,r=1]})   It's still not working, though, so does anyone know how to get it to work? Prove: $\gcd(a,b) = \gcd(a, b + at)$. I know that $\gcd(a,b)$ divides $a$ and $b$, and must also then divide $(a)(t)$ ($t$ being some integer).  This makes sense to me, but how do I prove it?  It seems that the addition of $(a)(t)$ is a continuation of the linear combination of $\gcd(a,b) = av + bu$ for some $v$, $u$ being elements of $\mathbb{Z}$.    Any help? Using Sequence to delete a part of an expression Odd behavor with POSIXct/POSIXlt and subsecond accuracy Does Facebook allow a user to give my app access to their friends email addresses? I've been working with the Fermat numbers recently, but this problem has really tripped me up. If the Fermat theorem is set as $f_a=2^{2^a}+1$, then how can we say that for an integer $b&lt;a$, the $\gcd(f_b,f_a)=1$? Which manga chapters correspond to the 2nd season (or "Season 3" on Netflix) of the anime, "Revival of the Commandments"? How is the popularity of "recent tags" calculated? How are these calculated? I see them going up and down all the time, and there are obviously way more than 48 questions about C# so how are these calculated? If $q$ is coprime to $a$ then $a\mid nq-1,\,$ so $q$ is invertible mod $a$ I think the following is true:  If $q$ is coprime to $a$ then $a\mid (nq-1)$ for some $n\in\mathbb Z$.  I have started to first reducing $n\in\mathbb Z$ to $n\in\{1,\ldots,a-1\}$ and then considering all the cases $q = ka + j$ for $j=1,2,3,\ldots,a-1$. I stopped at $j=3$ and found that this is kinda messy. Does anyone have an elegant proof for this (maybe using some results from number theory)?  [Note: question has been generalized from prime $q\nmid a$ to $\,q$ coprime to $a$] Which files shouldn't be checked in into version control in Android Studio How do I connect the initial highway to my six-lane road? Is there a constructive way to exhibit a basis for $\mathbb{R}^\mathbb{N}$? Assuming the Axiom of Choice, every vector space has a basis, though it can be troublesome to show one explicitly. Is there any constructive way to exhibit a basis for $\mathbb{R}^\mathbb{N}$, the vector space of real sequences?