Lstlisting running off screen The text in my lstlisting is running out of screen on the right. I googled, but only found problems with the code box's position on the left side, and white lines. My problem is that it does not know when to move text to the next line. All below shows as a single line, where most is outside the frame on the right. Any help is much appreciated. I compile using pdflatex.  \documentclass{article} \usepackage{listings} % Required for insertion of code \begin{document} \appendix \section{Appendix} \begin{lstlisting} This random text is going of screen to the right. This random text is going of screen to the right. This random text is going of screen to the right. This random text is going of screen to the right. This random text is going of screen to the right. This random text is going of screen to the right.  \end{lstlisting} \end{document}
Line breaks in listings Is there a way like wrap the line after at most 60 letters but it should not break inside some commands like listings does?  Example:      \documentclass[a5paper]{article}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{listings}     \usepackage{xcolor}      \lstset{%       language=[LaTeX]TeX,       backgroundcolor=\color{gray!25},       basicstyle=\ttfamily,       breaklines=true,       columns=fullflexible     }      \begin{document}     \begin{lstlisting}     The roadrunner is the fastest running bird \remark{Check this again with a zoologist!}.     \end{lstlisting}     \end{document}   Output:      The roadrunner is the fastest running bird         remark{Check this again with a zoologist!}.   That should not happen! In my eyes this problem is not discussed in .
Am wondering if somewhere there is a list of industry "minimums" for browser support. My company release two "portals" over the past 6 months and did very little to support IE8 users, who at this time, according to my G Analytics makes up about 14% of all IE visitors. Amazingly enough IE7 is 25%...  Figured support for IE7 was out the window already, but figured 14% was significant enough to warrant some support.  Any arguments to support my side of wanting to support IE8?  Any arguments to NOT support IE8? Evaluation of $\lim_{n\rightarrow \infty}\frac{1}{2n}\cdot \ln \binom{2n}{n}$ I was hoping I would find some people in the industry that could help me decide what's the best price to charge to design (in this case) business cards.  What are standard prices for professional designers?  From a firm point of view? From a freelancer?  I don't want to overcharge clients but I don't want to ruin the industry by underselling my services. Talk to him is what I did Talk to him is what I did.  (this sentence is from )  "Talk" is a verb here that is not in the imperative mood. I suppose, it's in the infinitive form. But then how can it stand alone, without "to"?  What will be if we add "to" to "talk"?  To talk to him is what I did.  If we can do so, then what will difference be between the initial sentence and the new one with "to"?  Maybe, there are some omitted words, after inserting which the sentence will immediately become understandable? I mean, maybe, there is an ellipsis?  Thanks!  To make it clearer:  Upd.1: if we type "bare infinitive" in google, we can't find any sites that could explain the absence from "to" before "talk".  Upd.2: Why can we replace "to talk" with only "talk" in "To talk to him is what I did."  Upd.3: I have my own logic but I don't know whether it's right or not:  1) I think that without an ellipsis "Talk to him is what I did." is to look like "I did talk to him is what I did do."  2) Also I know that we can't use "to" before "read" in "What we must do is read the manual." because in the left part we don't have "to" before "do".  By this logic, we can't use "to" before "talk" in "Talk to him is what I did." because in "what I did do" we don't have "to" before "do".  Am I right or not? Boundary conditions for calculus of variations in phase space and under canonical transformations This might be a stupid question, but I just don't get it. In Hamiltonian mechanics when examining conditions for a $(\boldsymbol{q},\boldsymbol{p})\rightarrow(\boldsymbol{Q},\boldsymbol{P})$ transformation to be canonical one starts with $$ \dot{q}_ip^i-H(\boldsymbol{q},\boldsymbol{p},t)= \dot{Q}_iP^i-\bar{H}(\boldsymbol{Q},\boldsymbol{P},t)+\frac{d}{dt}W(\boldsymbol{q},\boldsymbol{Q},t)$$ where $\bar{H}$ is the transformed Hamiltonian, and $W$ is the generating function (now a function of $\boldsymbol{q}$ and $\boldsymbol{Q}$). This term shouldn't break Hamilton's principle, since $$ \delta\int_{t_1}^{t_2} dt\frac{d}{dt}W(\boldsymbol{q},\boldsymbol{Q},t)=\delta W(\boldsymbol{q},\boldsymbol{Q},t)|_{t_2}-\delta W(\boldsymbol{q},\boldsymbol{Q},t)|_{t_1}=0-0=0 .$$ But I don't see why the variation of $W$ should disappear at the endpoints (say at $t_1$). Expanding leads to: $$ \delta W(\boldsymbol{q},\boldsymbol{Q},t)|_{t_1}=\left(\frac{\partial W}{\partial q_i}\right)_{t_1}\underbrace{\delta q_i(t_1)}_{=0}+ \left(\frac{\partial W}{\partial Q_i}\right)_{t_1}\delta Q_i(t_1)=\left(\frac{\partial W}{\partial Q_i}\right)_{t_1}\delta Q_i(t_1).$$ $\boldsymbol{Q}$ is itself a function of $\boldsymbol{q}$ and $\boldsymbol{p}$, so $$ \delta Q_i(t_1)=\left(\frac{\partial Q_i}{\partial q_k}\right)_{t_1}\underbrace{\delta q_k(t_1)}_{=0}+\left(\frac{\partial Q_i}{\partial p_k}\right)_{t_1}\delta p_k(t_1)=\left(\frac{\partial Q_i}{\partial p_k}\right)_{t_1}\delta p_k(t_1). $$ It seems as if we also needed the variation of $\boldsymbol{p}$ to vanish at the endpoints, and I don't get this because (at least in cartesian coordinates) $\boldsymbol{p}=m\dot{\boldsymbol{q}}$ and the velocity can be different along the original and the varied orbitals even at the endpoints (they can point in totally different directions), so in general $\delta \dot{\boldsymbol{q}}(t_1)\neq 0$. What am I doing wrong? Can someone help me with this, please? Using (or not) the word "to" in a sentence ending with "be able" Which of these is grammatically correct?   As educators, we are always looking for ways to reach all the learners in our classroom as effectively as we are able.   As educators, we are always looking for ways to reach all the learners in our classroom as effectively as we are able to. mod_rewrite to redirect URL with query string I have recently upgraded my OS to Ubuntu 18.04 (fresh install via boot device). However, when trying the command:  sudo apt-get upgrade   It works fine until ~75% when it stops and says:  snapd.snap-repair.service is a disabled or a static unit, not starting it.   I'm not quite sure what this means and if I Crtl-Z to get out of it, any time I try to install anything I get:  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?   and have to restart my computer to install anything. formal proof from calulus Given $f:R \to R$, $f$ is differentiable on $R$ and $\lim_{x \to \infty}(f(x)-f(-x))=0$. I need to show that there is $x_0 \in R$ such that $f'(x_0)=0$  I am trying to prove it by contradiction .... so i assume there is no $x_0 \in R$ such that  $f'(x_0)=0$ this means this function is strictly monotonic because the derivative "respects" the mean value theorem so it cannot be negative and positive without passing a zero value ....  (from what i understand the derivative function of a continuous/differentiable functions isn't necessarily continuous but it still respect the mean value theorem i think it's called darboux's theorem )  now from $\lim_{x \to \infty}(f(x)-f(-x))=0$ ,we get $\lim_{x \to \infty}f(x)=\lim_{x \to \infty}f(-x)$  now the last step is the contradiction its very intuitive and even maybe obvious that we can't get $\lim_{x \to \infty}f(x)=\lim_{x \to \infty}f(-x)$ for strictly monotonic function but i cant think of a formal way to prove it . "Delete this answered question?" when the only answer is deleted Looks like there's a small bug in the UI: I posted a question here on meta.SE which ended up being just something dumb I was doing and no use to anyone in the future. At first I posted an answer saying what the dumb thing was, but then I realized that the whole thing had no value, so I deleted the answer, and then deleted the question — whereupon it asked me:  Delete this answered question? We do not recommend deleting questions with answers because doing so deprives future readers of this knowledge. Repeated deletion of answered questions can result in your account being blocked from asking. Are you sure you wish to delete?  (Screenshot below) Probably shouldn't ask (or add to the tally) if the only answers are deleted ones... How to know if a time series is stationary or non-stationary? Social network login or not? I am developing a niche social networking iPhone app of my own.   I was wondering if it would be best to allow the user to connect to social networks such as Facebook and Twitter to login to my app (and of course an eMail/Password fallback) or just go with regular eMail and Password login.  Any thoughts would be appreciated! :) Running JAR file on Windows I have a JAR file named helloworld.jar. In order to run it, I'm executing the following command in a command-line window:  java -jar helloworld.jar   This works fine, but how do I execute it with double-click instead? Do I need to install any software? Correctness of questions without inversion, relying on intonation Java - Could not find the main class Where can I get a clean ISO of a specific build of Windows 10? I need to repair my Windows 10 installation. Where can I get a clean ISO (with install.wim, no Install.ESD, so that I can run DISM against the WIM) of the specific Windows 10 build required for this?  In my case, I need the Anniversary update (Build 14393), Creators Update (Build 15063) or Fall Creators Update (Build 16299.15). How does DC work with natural 20? How can I get form data with JavaScript/jQuery? Smooth rendering of bitmap fonts Where can I find a complete reference for the $PS1 variable? The default PS1 variable on my machine (Kubuntu 13.10) is this:  \[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$   I'm looking for a reference for how the $PS1 variable works that, at a minimum, allows me to understand the above PS1 variable.