I want to change the numbers in my List of Figures from '1, 2, 3' to Fig.1, Fig.2, Fig.3 but I have no real idea how to do that. I found this command but have no idea where to put it in my script or if it even works:  \renewcommand{\cftfignumwidth}{6em} \renewcommand{\cftfigpresnum}{Figure } \listoffigures   Does anyone have an Idea?  This is my code so far:  \documentclass[12pt]{article}  \usepackage[paperheight=29.7cm,paperwidth=21cm,tmargin=25mm,bmargin=25mm,lmargin=35mm,rmargin=25mm,heightrounded]{geometry} \usepackage{graphicx,siunitx,pdflscape} \usepackage{hyperref,amsmath,amssymb,graphicx,wasysym,paralist,textcomp} \usepackage[round]{natbib} \usepackage[nottoc,numbib]{tocbibind} \usepackage{setspace} \usepackage[labelfont=bf]{caption} \renewcommand{\listoffigures}{\begingroup \tocsection \tocfile{\listfigurename}{lof} \endgroup} \renewcommand{\listoftables}{\begingroup \tocsection \tocfile{\listtablename}{lot} \endgroup}  \begin{document}  \newpage \tableofcontents  \newpage \listoffigures \listoftables
I'm using the caption package.  In the List-Of-Figures I get only the numbers, but I also want to have the prefix. It currently looks like that:     List of Figures   1 Caption of Figure 1........1   2 Caption of Figure 2........9     And I want it to look like:     List of Figures   Figure 1: Caption of Figure 1...1   Figure 2: Caption of Figure 2...9     The same format is already used for the captions themselves.
Suppose that you are given a polynomial $p(x)$ as a black box (i.e. some oracle, to which you feed $x$ and it returns $p(x)$). It is known that the coefficients of $p(x)$ are all positive integers. How do you determine what $p(x)$ is in the quickest way possible?  (There are 2 metrics for quickness: the number of calls to the oracle and total number of operations. The relationship between the two is not given so we try to minimize both.) Which groups have precisely two automorphisms Which groups $G$ have precisely two automorphisms, i.e., precisely one non-trivial automorphism?  Examples: $G= C_3, \mathbf{Z},\ldots$.  I think $G$ has to be abelian. In fact, we have $ \vert G\vert \geq 3$. Therefore, if $G$ is not abelian, we have at least two non-trivial inner automorphisms.  If we can show that $G$ is cyclic the above examples are all of them. Use of the comment package How to plot and solve the numerical solution of a integro-differential equation I am trying to print a large quantity (several megabytes) of UTF-8 encoded text which consists of Chinese and Latin characters (and maybe a sprinkling of others). I would like to print it in several columns per page, in a very small, condensed font, preferably with control over line spacing. I'd quite like inter-column lines, but I can live without them. The aim is to print to PDF for transfer, as well as to paper.  I have tried enscript and a2ps, but neither of these support Unicode.  I have also tried paps, but this produces bitmapped outputs which cannot be PDF'd effectively, and also look terrible.  Is there a modern way to print UTF-8 text like this without resorting to something like constructing it manually in Python? Relating the Color of meat to doneness I want to know more about how to correlate the color of meat to its level of doneness. How do I recognize how cooked my meat is based solely on color? Isomorphism between dual space and bilinear forms Studying from Roman's Advanced Linear Algebra, I want to prove that $$U^* \otimes V^* \cong (U \otimes V)^* \cong \hom(U,V;\mathbb{F})$$ The author proves that $U^* \otimes V^* \cong (U \otimes V)^*$ by showing that there is an unique linear transformation   $$\theta:U^* \otimes V^* \to (U \otimes V)^*$$  defined by $\theta(f \otimes g)=f \odot g$ where $(f \odot g)(u \otimes v)=f(u)g(v)$  I want to prove that $U^* \otimes V^* \cong \hom(U,V;\mathbb{F})$. I tried to use the universal property by fixing $f \in U^*, g\in V^*$ and defining $S: U^*\times V^* \to \hom(U,V;\mathbb{F})$ as $S(f,g)=F_{f,g}$, where $F_{f,g}(u,v)=f(u)g(v)$, but I got stuck. Traveling Amsterdam-Brussels with KLM ticket on Thalys - When / where does my ticket get stamped? Is Angular Momentum truly fundamental? This may seem like a slightly trite question, but it is one that has long intrigued me.  Since I formally learned classical (Newtonian) mechanics, it has often struck me that angular momentum (and generally rotational dynamics) can be fully derived from normal (linear) momentum and dynamics. Simply by considering circular motion of a point mass and introducing new quantities, it seems one can describe and explain angular momentum fully without any new postulates. In this sense, I am lead to believe only ordinary momentum and dynamics are fundamental to mechanics, with rotational stuff effectively being a corollary.  Then at a later point I learned quantum mechanics. Alright, so orbital angular momentum does not really disturb my picture of the origin/fundamentality, but when we consider the concept of spin, this introduces a problem in this proposed (philosophical) understanding. Spin is apparently intrinsic angular momentum; that is, it applies to a point particle. Something can possess angular momentum that is not actually moving/rotating - a concept that does not exist in classical mechanics! Does this imply that angular momentum is in fact a fundamental quantity, intrinsic to the universe in some sense?  It somewhat bothers me that that fundamental particles such as electrons and quarks can possess their own angular momentum (spin), when otherwise angular momentum/rotational dynamics would fall out quite naturally from normal (linear) mechanics. There are of course some fringe theories that propose that even these so-called fundamental particles are composite, but at the moment physicists widely accept the concept of intrinsic angular momentum. In any case, can this dilemma be resolved, or do we simply have to extend our framework of fundamental quantities? How to Screen Sharing / VNC to an iMac without waking the display? I have an iMac mid 2011 at home. When I was not home, I may need to access my mac with Screen Sharing. However the iMac display will turn itself on when I connect via Screen Sharing. The problem is I don't want to scare my family at home (with the elders and kids) as the iMac "turn itself on suddenly".   This is a problem specific for iMac. On MacBooks (Pro, Air, whatever) I can set the brightness to the lowest setting so the screen is black (i.e. the LED light is off). However on an iMac you cannot turn off the LED backlit by setting brightness. The display is still bright and everything is clearly visible even on lowest brightness setting.  Therefore these solution are not working as the display will turn on as soon as you move your mouse or hit any key on the keyboard via Screen Sharing.   Sleep Display (by Ctrl+Shift+Eject) Using the code listed on    Question: Is the a way to keep the iMac display off entirely while you accessing it with Screen Sharing? In my CMS, I noticed that directories need the executable bit (+x) set for the user to open them. Why is the execute permission required to read a directory, and how do directory permissions in Linux work? Where does tidal energy come from? Kind of an odd, random question that popped into my head. Tidal energy - earth's ocean movement, volcanism on some of Jupiter's moons, etc. - obviously comes from the gravitational interaction between large bodies. On earth the interactions with the moon are pulling water around the surface, creating some amount of heat due to friction, etc.   My question is, where does that energy come from exactly? More specifically, what potential energy source is getting depleted to do that work? Is the earth minutely slowing down in its spin - or are the orbits of earth and the moon subtly altered over time by the counteractive movement and friction of liquids and gasses? Bug with Excavator Badge I edited this post today  on stack overflow. I was approved of the edit, so I waited a few minutes to get my  badge because this answer was posted on Jan 28 '10 at 1:06, but it never came. I have read multiple articles on meta that there have been bugs with this badge, but they have been about winning it multiple times (), or earning it then losing it (). Am I missing something here? Angle between 2 points Given the following image:   $\hskip{1.5 in}$   Supposing $A(100, 300)$ and $B(300, 100)$, how can I find the angle $\alpha$ between A and B?  On a side note, what's the main difference between a point and a vector? translating a point to a vector is as simple as Point = Vector? Sometimes I find articles where the terms are interchangable How to install apps which require a newer version of iOS on a 1st gen. iPad? Is it wasteful to use a heating element, instead of doing useful work? Consider a computer CPU consuming electrical energy to perform calculations and consequently emitting heat.  Assumption: That a CPU consuming x Watts of power, emits the same amount of heat as an incandescent heating element which consumes the same amount of power.  The rest of the question assumes that this is true: the energy has to go somewhere, and I can't see that the outcome of the calculations counts as "somewhere".  I've long repeated the claim that "wasteful" appliances such as incandescent lightbulbs, over-full kettles, computers left running, etc. are not wasting power if we make the assumptions:   the appliance is in a room which we aim to maintain at above a certain temperature, warmer than the external temperature (cf a home in winter) the room leaks heat to the outside faster than the "wasteful" appliances emit heat. the room contains an electric heater the electric heater is regulated by a thermostat   In these circumstances, I think (?), if a light bulb produces excess heat, its only effect is to cause the thermostat to switch off sooner, so what energy you've "wasted" in the light bulb, is "saved" at the heater.  I don't think that's controversial.  But my question is:   If a CPU does useful work, and emits all the input energy as heat as a side effect But a heating element emits the same heat, without doing useful work Is it therefore wasteful to use heating elements? Is it more efficient to (for example) run  on a CPU, to get "free" computation as a side-effect of heating?   One reason to heat a room with a heating element, rather than with CPUs, is that the heating element is much cheaper to produce. But ignoring the initial cost of the hardware, would a "heater" made out of 20 CPUs, each running at full capacity and consuming 50W each, output less thermal heat than a 1KW element that does nothing else useful?  To be useful, of course, the CPUs would need to output the result of their computations, which would account for a tiny amount of energy. Let's assume that's negligible.  I'm sure there's a flaw in there somewhere; probably that the assumption above is false. What have I missed? Fiction novel or movie about sentient dinosaurs Given 4 integers, $a, b, c, d > 0$, does $\frac{a}{b} < \frac{c}{d}$ imply $\frac{a}{b} < \frac{a+c}{b+d} < \frac{c}{d}$? Rename All Files with a Certain Name I'm trying to find certain files with the name "stringx" and replace the name (but not the extension) with "stringy". So basically for stringx.txt and stingx.cs, I'd want stringy.txt and stringy.cs. I've attempted to test my rename command regex using following, but it returns no results:  rename -n 'stringx./s/\*$stringy./\/' stringx.*   I'm running csh under Centos. I can see that my regex is probably not correct, but I can't see any results to verify this. I can see that there are files that are named stringx. with the following:  find ./ -name 'stringx.*' How do you use script variables in psql? In MS SQL Server, I create my scripts to use customizable variables:  DECLARE @somevariable int   SELECT @somevariable = -1  INSERT INTO foo VALUES ( @somevariable )   I'll then change the value of @somevariable at runtime, depending on the value that I want in the particular situation. Since it's at the top of the script it's easy to see and remember.  How do I do the same with the PostgreSQL client psql?