I am having an issue with code snippets. I am using babel as I am writing in Greek and when I want to use latin characters I type  \textlatin{} . Now I need to insert code in my document and latex prints the code with Greek characters. The problem is not solved using the above command outside of the;       \begin{lstlisting}             $ sudo apt-get install qemu-kvm     \end{lstlisting} which I want to print.  What I get is this:   I am using Miktex and TeXstudio on Win7. My preamble is this    \documentclass[12pt]{article} \usepackage{mathptmx} \usepackage{fullpage} \usepackage[titletoc,toc,page]{appendix} \usepackage{setspace} \usepackage{titlesec} \usepackage{blindtext} \usepackage{graphicx} \usepackage[english,greek]{babel} \usepackage[utf8]{inputenc} \usepackage[labelfont=bf]{caption} \usepackage{kerkis} \usepackage{url} \usepackage[titles]{tocloft} \usepackage[top=2.5cm, bottom=2.5cm, left=2.8cm, right=3cm]{geometry}  %-------------code snippets \usepackage{listings} %-------------hyperlinks \usepackage{hyperref} \hypersetup{     colorlinks=true,     linkcolor=black,      filecolor=blue,      urlcolor=blue,      citecolor=black} \urlstyle{same}  %------graphics------- \usepackage{float} \usepackage{wrapfig} \usepackage[export]{adjustbox}  \usepackage{enumerate,enumitem} \usepackage[autostyle=true,italian=guillemets]{csquotes} \MakeOuterQuote{"} \usepackage[style=numeric,sorting=none,url=false,isbn=false,doi=false,backend=bibtex,bibencoding=auto,autolang=other]{biblatex} \addbibresource{scholar} \renewcommand\cftsecfont{\normalfont} \renewcommand\cftsecpagefont{\normalfont}  \titlespacing*{\subsection} {0pt}{2.5ex plus 1ex minus .2ex}{0.3ex plus .2ex} \titlespacing*{\subsubsection} {0pt}{2.5ex plus 1ex minus .2ex}{0.3ex plus .2ex} \pagenumbering{gobble} \begin{document} ..... \end{document}   How can I solve this so code appears normally in latin characters? Thank you in advance.
I use the babel package in order to write in greek with font "kerkis".  I want to add code in english ("courier new" font) to my latex document but I get some difficulties.  Can anybody help me, please. Thank you in advance.  \documentclass[12pt]{article} \usepackage[english,greek]{babel} \usepackage[utf8x]{inputenc} \usepackage{graphicx} \usepackage{fancybox} \usepackage{verbatim} \usepackage{courier} \usepackage{kerkis} \usepackage{float} \usepackage{geometry} \usepackage{fancyhdr} \usepackage{titlesec} \usepackage{tocloft} \usepackage{hyperref} \usepackage{afterpage} \usepackage{color}    \usepackage{listings}  \renewcommand{\lstlistingname}{Κώδικας}  \lstset{  %matlab   backgroundcolor=\color{white},     basicstyle=\normalsize,    % COURIER NEW?        commentstyle=\color{green},    % comment style   escapeinside={\%*}{*)},           extendedchars=true,               frame=single,                              keywordstyle=\color{blue},       % keyword style   numbers=left,                     numbersep=5pt,                     numberstyle=\normalsize\color{black},    rulecolor=\color{black},           stepnumber=1,                      stringstyle=\color{magenta},     % string style }   \begin{document}  \selectlanguage{greek} Ελληνικά: \textlatin{this word means greek}  \selectlanguage{english} Now I write in english  \selectlanguage{greek} Ελληνικά  %\selectlanguage{english}???  \begin{lstlisting}[caption = \textlatin{example1.m}] { % Entropy E = 0; for i = 1:J     if p(i) ~= 0         E = E + p(i)*log2(1/p(i));     end end } \end{lstlisting}  \end{document}
Nautilus does not show the left bar, how do I turn it back on? When I open nautilus does not open the left bar where it says computer and down markers such as music, documents, videos, downloads. I reinstalled nautilus from the synaptic package manager but nothing happened. What I can do to make that bar visible again? In the United States we have a saying, "your mileage may vary", which means "your experience may be different".  In English-speaking countries that don't use Imperial miles, is there an equivalent expression? Subfields of finite fields How do I integrate Github files to Orange for ML? I am currently trying to make a facial recognition workflow with Orange but since the widgets are still prototypes they are not all available in Orange. I found the Github files for the widgets but don't know how to install this so that I can see and use the widgets in Orange. I have recently installed Ubuntu 14.04 LTS on my laptop Sony Vaio VPCEA16FG. I have been getting system freezes (everything including display, mouse, keyboard stops working and I have to do a restart with the power switch) and there are random popups of "System program problem Detected"  On startup my screen is all splashed with black and white pixels and a System program problem detected message.  My video card info:    01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Madison [Mobility Radeon HD 5650/5750 / 6530M/6550M Would it be possible to break an RSA key, in for example 1 week of time, if the cracker have already spent X number of years building an index of primes by performing every permutation of existing prime keys up to $2^{2048}$?  I understand this would take an immense amount of time to do, but it would only be done once. Obviously, computing such an index would take a considerable amount of time and would have to be done with someone having the right amount of resource. Given the public key, you would be able to look up what the two primes are, and hence retrieve the private key instantly.  Breaking an 256 AES would then be easier, as AES keys are often generated using the RSA private key.  Would it be possible to build such an index? How long would that take in permutations and perhaps with the fastest computer in the world? At work today, I came across the volatile keyword in Java. Not being very familiar with it, I found . Given the detail in which that article explains the keyword in question, do you ever use it or could you ever see a case in which you could use this keyword in the correct manner? Interscholastic Mathematics League Senior B Division #2 Points $P$, $Q$, $R$ and $S$ are chosen on the sides of parallelogram $ABCD$, so that $P$ is on line $AB$, $Q$ is on line $BC$, $R$ is on line $CD$, $S$ is on line $DA$, and $AP=BQ=CR=DS=\frac{1}{3}(AB)$. Compute the ratio of the area of $PQRS$ to the area of $ABCD$. Edit: The previous title didn't really ask the same thing as the question (sorry about that), so I've changed it. To clarify, I understand that the action isn't always a minimum. My questions are in the points 1. and 2. below.  I understand that &quot;principle of least action&quot; is somewhat of a misnomer, since we find that to determine the path taken by a system, we need only impose the condition that the action be stationary, i.e., that $\delta S$ should vanish to first order for small variations of the path, and this leads to the Euler-Lagrange equations. In The Classical Theory of Fields, Landau &amp; Lifshitz discuss the relativistic action for a free particle:  So for a free particle the action must have the form $$S = -\alpha \int_a^b ds$$ (...) It is easy to see that $\alpha$ must be a positive quantity for all particles. In fact, as we saw [earlier], $\int_a^b ds$ has its maximum value along a straight world line; by integrating along a curved world line we can make the integral arbitrarily small. Thus the integral $\int_a^b ds$ with the positive sign cannot have a minimum; with the opposite sign it clearly has a minimum, along the straight world line.  There is also a footnote, addressed a couple of paragraphs earlier, but which is relevant:  Strictly speaking, the principle of least action asserts that the integral $S$ must be a minimum only for infinitesimal lengths of the path of integration. For paths of arbitrary length we can say only that $S$ must be an extremum, not necessarily a minimum.  I have two questions regarding this:  How is the condition &quot;the action must be a minimum for infinitesimal displacements&quot; formulated? I've never heard of that outside of Landau &amp; Lifshitz's books, and in Mechanics they mention it as well but doesn't go into detail. Is this discussed a bit more somewhere?  If for the whole path the action only needs to be stationary, how can we make the argument for the negative sign? If the action had to be a minimum then it would make sense, but surely the fact that $\delta S$ = 0 isn't affected by an overall sign? Should I delete my own questions with answers? I don't know much about this,  But I've some of the questions on which some user has answered (not helpful answer) also but I want to delete those questions, but whenever I go to delete that question. It is prompting with     What does it mean? Can someone tell me what would be the action taken by Stack Exchange if I delete more questions? Can a single vertex be rotated? In the duplication options for the dupli verts there is a option for Rotation. Witch brings me to my question, is there anyway to rotate a vertex? Vertex's have normals, is there any way to control which way the normal of a single unconnected vertex points? Does Stack Exchange have an Economics section? Names of close-voters are not visible in the post notice but in the revision history and timeline I am not a user with close/reopen votes privileges on Travel Stack Exchange, therefore I can't see the names of the close voters :    However, they are visible when going to the revision history:    or the timeline of the post:    This also happens when I am not logged in: I cannot see the banner (and so if the question has been closed), but from the revision history/timeline of the post I can get that information.  Shouldn't names of close-voters be completely hidden from people without close/reopen privileges (even if the revision history is a little hard to find)? Clearing NSUserDefaults I'm using +[NSUserDefaults standardUserDefaults] to store application settings. This consists of roughly a dozen string values. Is it possible to delete these values permanently instead of just setting them to a default value? How to remove zsh alias? I have an alias which is predefined by an oh-my-zsh plugin.  -&gt; % alias gcm gcm='git checkout master'  I'd like to remove it, i.e. I'd like alias | pcregrep "\bgcm\b" return 1. I've tried with alias gcm='' but after that the alias is still existent. Lock questions in the review queue while being reviewed More and more frequently in the review queues, I am spending time either fixing a post or considering whether an edit is valid, etc, only to make changes and have them denied/not count because someone else has blindly hit the approve button in the meantime.  My proposal is for the system to "lock" a post in the review queue once it has been presented to someone for review.  Do not let anyone else (in the review queue) do anything with it until it is released by the last user it was presented to (or a certain amount of time has elapsed).    By "lock" I mean that it won't show up in anyone elses list until released.  I did NOT mean that it would be in multiple queues and be unactionable in some of them.  This would fit well as the queues only present one at a time anyway.  This will allow people trying to make good decisions the time to do it and prevent someone else from making that effort a waste of time.  As support, look to some of the published reasoning behind the auto-question ban.  A large portion of it is that bad questions waste the time of the community.  Taking the time to ensure you are making a good decision in the /review queue only to have it not count because someone was badge-whoring and clicking the approve button as fast as they could also wastes the users time... arguably the more (for lack of a better way to put it) valuable user who is willing to invest some time and thought into making the site better. Design a custom Beamer theme from scratch My floating point number has extra digits when I print it I have some problems with this exercise. I don't know if it can be done. Consider the polynomial $ x^n - a \in \mathbb{Q} $ Can I compute the Galois group of this over $\mathbb{Q}$? Maybe having a nice "basis.  The splitting field is given by $\mathbb{Q}(\zeta_n,\alpha)$ , where $\zeta_n$ is a primitive root of unity , and $\alpha$ is some number such that $\alpha^n = a $. Well first of all, I want a $\underline{"good basis"}$ for the splitting field. In the sense that the minimal polynomials, of the adjoined elements, are different (in this case the computation of the galois group is very simple).  For example one easy case, it's when $a&gt;0$, then $(a)^{\frac{1}{n}} \in \mathbb{R}$ , so clearly the minimal polynomial of $(a)^{\frac{1}{n}} , \zeta_n$ are distincs, and I'm done. If $n$ is odd then , it's also easy, since one root it's also real, for example $x^3-3 $, the real root is $ \root 3 \of { - 3}  =  - \root 3 \of 3  $ , so I can consider the splitting field as $\mathbb{Q}(-\root 3 \of 3 , \zeta_3 )=\mathbb{Q}(\root 3 \of 3 , \zeta_3 )$. The difficult case is when $n$ is even and $a&lt;0$ , for example  $x^8+20$ or $x^4+20$ in some cases as in the second, there are particular cases since there exist algorithms for the Galois group of quartics, but in general. It can be done?  $\underline{Remark}$ I'm searching a $\underline{"good basis"}$ for the splitting field. In the sense that the minimal polynomials, of the adjoined elements, are different since in this case the computation of the galois group is very simple. What kind of things can you take from a hotel? Hotels normally provide a big amount of sets (well, depending on the quality, but however, many!) that can help you feel more comfortable there.  So for example you can get towels, slippers, candies, pens, shampoos, shaving kits, sponges, ...  The same in the self-service breakfast: pastries, bread, ...  They are meant to be used during your stay. However, they can be provided in such an amount that there are some extra by the time you leave... and make you feel like taking some back home.  My general rule is to take those things that I used but didn't finish. However, sometimes I may be tempted to take the brand new stuff lying there before I close the door for the last time.  So the question that pops is: what kind of things is it correct to take from hotels and what is it not recommended? Else, what items may differ from country to country?