Is there a way to define a new command so that existing  \includegraphics[scale=x]{fig_name}   becomes  \includegraphics[scale=x]{fig_name.eps}   for any x and fig_name? This is for automatic conversion of eps to pdf because eps may cause out of memeory issues with xdvipdfmx: .
I'm using Mathematicato produce some of my graphics (when i'm not able to just TikZ them easily). All these images are availabvle as .eps and .pnghaving the same file name - let's use img.eps / img.png in the following.  I would like to set a preference for graphicx to use only one type, i.e. using  \includegraphics[width=.6\textwitdh]{img}   I would like to specify, which img to use with one switch, (package) option or variable.  I tried  \DeclareGraphicsExtension{.eps}   to restrict the allowed image extension to .eps, but still the .png file is included. It seems, .pngis preferred over .eps.  Though this is of course restricted to XeTeX it might be interesting for others, if you use .png together with some lossy format like .jpg to have a file extension preference.   Is there a package option for that or an easy command (global document option) for that?  To provide an MWE is - I think - difficult, because it would be necessary to provide at least 3 files.
What are the TeX definitions for the hyphen and dashes -, --, and ---? I've tried latexdef which does not handle --- as the operand. And \texemdash is defined as a character. So that leaves me once again leaning on the collective wisdom of the group :) If $\lim_{x \to +\infty} f'(x) = L$, then $\lim_{x \to \infty} \frac {f(x)}{x} = L$ I'm trying to solve this question:     Let $f:[0,+\infty) \to \mathbb{R}$ be derivable and $\lim_{x \to +\infty} f'(x) = L$, then $\lim_{x\to \infty}\frac {f(x)}{x}=L$.   I'm trying to solve this question using l'Hôpital rule, but I couldn't use it, because I don't know if $\lim_{x\to +\infty} f(x)=+\infty$.  I need help.  Thanks a lot. Can Selenium interact with an existing browser session? I have a firewall with these simple rules:  iptables -A INPUT -p tcp -s 127.0.0.1/32 --dport 6000 -j ACCEPT iptables -A INPUT -p tcp -s 192.168.16.20/32 --dport 6000 -j ACCEPT iptables -A INPUT -p tcp --dport 6000 -j REJECT   Now, suppose I am using TCPDUMP like this:  tcpdump port 6000   And I have host 192.168.16.21 trying to connect to port 6000.  Will/should tcpdump output some packets coming from 192.168.16.21? Is there an ingame way to change volume? I like the music, but I still prefer my own music.  Is there an ingame way to change the volume?   I can't find it. XML to CSV Using XSLT I have the following XML document:  &lt;projects&gt;   &lt;project&gt;    &lt;name&gt;Shockwave&lt;/name&gt;     &lt;language&gt;Ruby&lt;/language&gt;     &lt;owner&gt;Brian May&lt;/owner&gt;     &lt;state&gt;New&lt;/state&gt;     &lt;startDate&gt;31/10/2008 0:00:00&lt;/startDate&gt;    &lt;/project&gt;   &lt;project&gt;    &lt;name&gt;Other&lt;/name&gt;     &lt;language&gt;Erlang&lt;/language&gt;     &lt;owner&gt;Takashi Miike&lt;/owner&gt;     &lt;state&gt; Canceled &lt;/state&gt;     &lt;startDate&gt;07/11/2008 0:00:00&lt;/startDate&gt;    &lt;/project&gt; ...   And I'd like to get this from the transformation (XSLT) result:  Shockwave,Ruby,Brian May,New,31/10/2008 0:00:00 Other,Erlang,Takashi Miike,Cancelled,07/11/2008 0:00:00   Does anyone know the XSLT to achieve this? I'm using .net in case that matters. How to see what's going on during Windows shutdown/logging off process? Windows 7 msconfig lets users select the options No GUI boot and OS boot information to have a list of drivers being loaded during boot. Is it possible to have similar detailed messages during shutting down/restarting/logging off? Here's the screen I want disable or give me more details: How can the Next Generation's unfamiliarity with the Borg be explained after Archer's encounter? In  Starfleet learns about a culture that we (as audience) know as The Borg. According to TNG, the Federation doesn't seem to know anything about these beings when . Although Archer's crew doesn't learn the name of the Borg, it would be reasonable that the Federation would inherit the information about such a menacing enemy and it would also be reasonable to assume the crew of the Enterprise-D to be able to match their encounter with their databases' information.  Obviously, out-of-universe the explanation is that the scripts weren't written in chronological order, but how can the apparent obliviousness about the Borg be explained in-universe? I am curious as to why "nay" replaces the simple unequivocal "no" in the context of voting.  My research in Merriam-Webster tells me that "nay" means "no" (not the other way around) and the first known use of "nay" appeared in 1400s. Since the use of "no" existed before 1400 and the word remains to be used afterward, why would "nay" become the preferred choice of word when it comes to voting. Any idea? How do you detect Credit card type based on number? I'm trying to figure out how to detect the type of credit card based purely on its number. Does anyone know of a definitive, reliable way to find this? Proving $v(s,p)=2^{p-1}(2s-1)$ is a bijection of natural numbers and $f(s)=2s-1$ is a bijection between natural numbers and odd numbers. How do I prove this function is bijective? $$ v(s,p)=2^{p-1}(2s-1). $$ The domain is natural numbers and the codomain is also the natural numbers.  And this one: $$ f(s)=2s-1. $$ The domain is the natural numbers, and the codomain is the odd numbers in the natural numbers.  With this one I would do this to show it's injective: $$ \begin{align} v(s)&amp;=v(s_1)\\ \implies 2s-1&amp;=2s_1-1\\ \implies (2s_1)/2&amp;=(2s_2)/2\\ \implies s=s_1 \end{align} $$ So it's injective since if $v(s)=v(s_1)$ then $s=s_1$.  And to show it's surjective $f(s)=y$: $$ \begin{align} y&amp;=2s-1\\ \implies s&amp;=(y+1)/2 \end{align} $$ Then the function must be surjective since every $y$ is the same as the codomain for $f$.  Am I correct? How to Select Columns in Editors (Atom,Notepad++, Kate, VIM, Sublime, Textpad,etc) and IDEs (NetBeans, IntelliJ IDEA, Eclipse, Visual Studio, etc) What is different about the Mac ISO image? At that location there is an ISO image which is described as "This image is adjusted to work properly on Mac systems."  What specific problems on the Mac does this image address that the standard images don't? I ask because I need to know which ISO to recommend to Apple Mac users. I looked up a few grammar-teaching websites (in Chinese language). The website says many people do not use the phrase "A xxx of" correctly because they do not identify the subject of the phrase correctly.   The website says phrases like "A range of; A high percentage of" is singular, while "a number of; a group of; a couple of; a total of" is plural.  Therefore according to the website, the correct sentences should be as follows.     A wide range of courses is available. ("A wide range" is the subject)      A high percentage of peptides that are made of amino acids is present   in the sample. ("A high percentage" is the subject)      A number/ group/ couple of people were killed in the earthquake.("people" is the subject )       A total of 230 employees were laid off. ("employees" is the subject)   I don't get the pattern here. All of this looks (or should I use "look"?) arbitrary to me. In fact I thought this phrase is supposed to be arbitrary and whether the phrase is plural or singular should depend on the the person's own judgment.   How do I identify the correct subject in the "A xxx of" phrase? Allow flags on locked posts What are 'return' pins? On a VGA connector, there are numerous 'ground' pins. Three of these are Red return, Green return and Blue return; But why does each color component have its own ground pin? Windows INSERT key anti-functionality accidentally triggers; how to stop it permanently? The + vowel letter I've been told that when "the" is proceeded by a vowel sound, like "apple" or "hour", it's pronounced as "thee" and not as "thu".  But after listening to a couple of songs, I noticed that sometimes this "rule" is not followed. Take for example the two Katy Perry's songs, "Roar" and "The one that got away". In the first she sings "I got thee eye of thu tiger", but in the second she sings "Thu one that got away".  I don't know if it was sang this way to better suit the song melody (I understand nothing about those techniques), but I got confused. What's the correct pronunciation?  Thanks in advance. My grandparents bought a flight on United Airlines that departs on Feb 10 2019, as the one and same ticket, from Toronto, to ORD with 1 55-minute layover, then Maui. Please ping me if I ought post their return flight on Feb 24's details.   advises:     There should be no customs and immigrations formalities at ORD, as YYZ is a , and CBP matters will be handled in Toronto.    I'm assuming that  persists during their vacation to Maui.   reported some TSA agents' refusal to work.  Will  refuse to work, or any other federal workers pertinent to travelling to and from the US? I'm using BibLaTeX to handle my bibliography and I want a reference to be placed in a footnote on every page where I cite the same work and have the same number. Also I want to be able to cite the same work on one page several times. The latter could be done by using  from the Joseph Wright's blog. However, it puts a reference in a footnote only once.