I am used to using \newenvironment to wrap an environment:  \newenvironment{wrappedequation}     {Look out for the equation!     \begin{equation}}     {\end{equation}     Phew, it's over.}   This works fine.  However, it doesn't seem to work with align or align*:  \documentclass{amsart} \newenvironment{wrappedalign}     {Look out for the aligned equation!     \begin{align}}     {\undefinedcommand     \end{align}     Phew, it's over.} \begin{document} \begin{wrappedalign}\end{wrappedalign} \end{document}   produces  ! LaTeX Error: \begin{align} on input line 9 ended by \end{wrappedalign}.   This error must be produced somehow very early in the expansion process (maybe in the argument-grabbing process?), because it doesn't mention the \undefinedcommand that I snuck in there.  EDIT:  Darn it, I knew that this looked familiar.  Is it the same as  ?  Is there any (good) way to wrap align environments?
In the example below, an error is caused by \begin{align} and \end{align} but I do not see why:  \documentclass{book} \usepackage{amsmath} \newenvironment{subalign}{\begin{subequations}\begin{align}}{\end{align}\end{subequations}} \begin{document} \begin{subalign}      a&amp;=b\\     &amp;=b \end{subalign} \end{document}
limsup of intersection of events as a subset of intersection of limsups Let $A_1, A_2, \ldots$ and $B_1, B_2, \ldots$ be two sequences of events in some probability triple $(\Omega, \mathcal{F}, \mathbf{P})$. Now, it is true that $\left(\limsup_n A_n\right) \cap \left(\limsup_n B_n\right) \supseteq \limsup_n (A_n \cap B_n)$, and I can think of many different cases where this relation holds true for equality (e.g., let $A_n = B_n$, or $A_n = B_n^c$, or $B_n = \emptyset$, or $B_n = \Omega$). However, I cannot think of any case where $\left(\limsup_n A_n\right) \cap \left(\limsup_n B_n\right) \supset \limsup_n (A_n \cap B_n)$ holds for strict inclusion.  My proof for the relation is simple. Since $A_n \cap B_n \subseteq A_n$ and $A_n \cap B_n \subseteq B_n$, then we can perform some set algebra as follows:  $$\bigcup_{k=n}^\infty (A_k \cap B_k) \subseteq \bigcup_{k=n}^\infty A_k$$ $$\bigcap_{n=1}^\infty \bigcup_{k=n}^\infty (A_k \cap B_k) \subseteq \bigcap_{n=1}^\infty \bigcup_{k=n}^\infty A_k$$  Then we can use the same logic for $B_n$, and come to the conclusion as stated in the beginning. How to display random jokes from www.icndb.com in your terminal? I already know that you can get some nice quotes/jokes using the  program.  But I've found in this  a new source of fun that I'd like to have when I open a new terminal.  This time the jokes come from . Happened on , fwiw. In particular I voted to reject it, then visited to add comment and vote to close, and wanted to add a  tag, but couldn't because had to wait to see the fate of the edit. What is the best way to iterate over a dictionary? I've seen a few different ways to iterate over a dictionary in C#.  Is there a standard way? How to reset Canon 70D WiFi? Cannot edit posts on iOS app When I try to submit an edit in the iOS app it returns this message:        Text:     Account is not allowed to suggest edits   What happened and can it be fixed please? How to cut holes in an object using another object? I'm trying to model a M16 but I have a problem with cutting the holes on top of the handguard of the weapon.     As you can see in the picture above, I have tried to cut holes into the handguard (The marked mesh in edit mode) with the object above it (The multiple cylinder one). But I simply can't. I have tried the Boolean modifier but the handguard just disappears and doesn't make any holes. Same with the Knife Project thing. Nothing works, it won't make a hole in it. I also installed the BoolTool 0.2 but that didn't work either...The multiple cylinder object goes invisible and doesn't make any cuts.    In the picture above you can see how I want the cuts to be made. I want the holes of the multiple cylinder object to be there on the handguard when I take it away. Nothing works. The 3 methods I tried with worked on other parts of this model but not on the handguard. It should be the handguards mesh's fault but I can do nothing about it. Is there any solution? Who did that to the priest's dog? In John Michael McDonagh's wonderful philosophical black comedy , a good priest receives a death threat during a confessional giving him a week to sort out his affairs.   During the course of the week there are a lot of encounters between the priest and his parishioners, many acting as red herrings to distract the audience form the identity of the potential killer. Several threatening acts also take place: the church is burned and the priest's dog is killed.   But in the final encounter between the priest and the mystery antagonist (I'm not saying who to avoid spoilers) the antagonist admits burning the church but claims not to have killed the priest's dog.  Are they lying? Or is there a good reason that someone else might have killed the dog? I thought I remembered hearing the food agency  say that you should never reheat chicken meat after the initial cooking. However, I cannot find the statement of it anymore. Now I'm starting to suspect my memory.  Could this statement be true?  Is it unsafe to reheat chicken? Messed up my PATH environment variable and can't login to desktop To get an maven environment variable to run, I tried several options. Basically, I followed some options from , such as ~/.pam_environment, /etc/bash.bashrc and I don't really know anymore. Within them I exported sth like export PATH=/opt/apache-maven-3.6.0/bin:$PATH (I'm being so unconcrete because I cannot look it up).   Afterwards, I did run gnome-session-quit and my machine got stuck.   So after hard restart I try to login again, but I'm not able to do that: I see my username, enter the password, hit enter, screen turns black and after 2 seconds I'm back at the login screen.   So, that very strange and worrying. Next step: Login via tty (Strg + ALT + F3). Within there I can login, but can not do much. I thought about sth like . But whatever I do: The command could not be located because '\bin' is not included in the PATH environment variable. I think, altogether thats alarming and I'm getting really nervous.  Executing export PATH="/usr/bin:$PATH seems to work and echo $PATHgives an output starting with /usr/bin:/usr/bin:/usr/bin:/home/user/Documents/.../esper/examples/transaction/etc:/home/user/anaconda3/bin:/usr/lib/jvm/java-1.8.0-openjdk-amd64/bin:/opt/apache-maven-3.6.0/bin:/opt/apache-maven-3.6.0/bin:/opt/apache-maven-3.6.0/bin but does not really help.  I'm running an Ubuntu 18.04 on an Lenovo G50-70.   Can you help me accessing my desktop again and/or fixing my PATH issue? Understanding quantum entanglement.. help me validate this analogy! I'm struggling to understand the concept of quantum entanglement. I've distilled my understanding into an analogy, and I need your help to validate it. Here it is:  Let's say I receive two envelopes. Both envelopes have this written on them:     Hello! Open this letter...   If the paper inside is red, then other envelope has blue paper.   If the paper inside is blue, then other envelope has red paper.   So, if I open one letter, and the paper inside is red, then I know the other letter contains the blue paper.  Is this equivalent to quantum entanglement? The fact that I will know the color of the other paper when I open (i.e. observe) one envelope?  In theory, if one of the letters "appeared" in a different galaxy, I would still know the color of the paper inside that letter, just by opening my letter, instantly, correct?  Before I open the letter, is the paper inside each envelope in superposition (??), i.e. 50/50, red or blue?  In this analogy, I am assuming that what's written on the letters is true. Is this a correct assumption in quantum physics? I think so yes?  In real quantum physics, would I be able to change the color of one paper, so that I change the color of the other one? No right? Why doesn't the UK ask for travel bookings for a tourist visitor visa? How do I remove the limit on PC keyboard button presses? Whenever I play a PC game with the directional keys, I can only press two buttons at a time.  For instance if I am playing a shooter like R-Type, I cannot hold down the fire button while moving diagonally at the same time.  The computer simply ignores the extra button press.  How do I remove this limit so I can shoot while moving diagonally?  This limitation seems to apply for every game.  I am running Windows 7 if it makes any difference.  I noticed the same problem back when I used Windows XP. SOQL query for Multiselect picklist Getting the array length of a 2D array in Java Previous question:    That was when my buttons died.  On other days, my text dies.    And some times it's just italics.    Now, I like blaming @skiwi for this, and he's often nearby when it happens.  But today, he's not here, and it happened again.    I'm running Windows 8 and using Chrome 40.0.2214.94 m.  Refreshing and such does not fix the issue.  Inspect element -> console -> error log:  http://chat.stackexchange.com/chats/8595/messages/new Failed to load resource: the server responded with a status of 409 (Conflict) http://i.stack.imgur.com/2ZJdJ.png?s=128&amp;g=1&amp;g&amp;s=16 Failed to load resource: the server responded with a status of 502 (Bad Gateway) http://i.stack.imgur.com/boUZp.jpg?g&amp;s=16 Failed to load resource: the server responded with a status of 502 (Bad Gateway) http://i.stack.imgur.com/U8P3C.jpg?s=128&amp;g=1&amp;g&amp;s=32 Failed to load resource: the server responded with a status of 502 (Bad Gateway) http://i.stack.imgur.com/boUZp.jpg?g&amp;s=16 Failed to load resource: the server responded with a status of 504 (Gateway Time-out) http://chat.stackexchange.com/messages/19891816 Failed to load resource: the server responded with a status of 409 (Conflict)   What's going on here?  I should note, I can view italics by selecting, then alt-tabbing:    So it reeks of a client-side issue. What's hiding the text from me?  EDIT:  30 april 2015 it happened again =/ Get week of year in JavaScript like in PHP SEVERE: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Can I move Xcode and Android Studio to SD card I'm planning to buy a 64GB SD card to supplement the storage on my MacBook Air 128GB (early 2015)  I wanted to know if I can move my Xcode and android studio to it as both have them take a significant part of the memory.  If this can happen, I wanted to know how can I move these two to the SD card. I'm fairly new to macOS and have no idea how to do this. I've come across quite a few answers that request the asker to, for example: "send the user an email", after which the answerer will provide them with the code or other resources they're looking for.  A few examples:          Should we take action against these questions?  I feel like these answers aren't appropriate (see my answer below).  Update:  Perhaps there are some cases where this is acceptable. I've seen a few questions regarding a particular piece of commercial software where the author/developer of the software answers, telling the asker to contact either them or their organization's in-house support.  I'm on the fence about this case. If I came across a question here describing a similar problem I was having, it would be useful to me to have the support information and know that I could contact it for assistance.  I'm interested in others' opinions on this situation in particular.