I was perusing through thesis and came across the following formatting (as shown in the picture attached) where there is a line separating the figure and its caption.  I really like this formatting, but have no idea how to actually reproduce it. I am currently using the following preamble,  \documentclass[12pt]{article} \usepackage{graphicx} \usepackage[margin=1 in]{geometry} \usepackage{amsmath,amsfonts,amsthm,amssymb} \begin{document} ... \end{document}   Any help would be appreciated.
I need to add a coloured line before my caption; this is what I used:  \usepackage[labelfont=bf]{caption}  \DeclareCaptionFormat{myformat}{\hrulefill #1  #2 #3} \captionsetup[figure]{format=myformat}   but the figure turns out to be line this:    and not a horinzontal line which what I want  2) I want the line to be coloured RGB [152 204 204] with thickness about the same as \top rule. Can anyone show me how to do this?
How to terminate a script? How do I halt an android phone using adb command? I can reboot, but I don't know how to halt.  I tried shutdown -k wait command, but it did not work. I know I need to have (although I don't know why) a GROUP BY clause on the end of a SQL query that uses any aggregate functions like count, sum, avg, etc:  SELECT count(userID), userName FROM users GROUP BY userName   When else would GROUP BY be useful, and what are the performance ramifications? Words that mean ''to say something unintentional'' I am looking for words that mean ''to say something unintentionally'' I was working on historical data looking for anomalous patterns that we would not expect to occur at random. I'd like to create a scheme to analyze data and markets to test for statistical significance and consistency over time.  Question : Are there some tools we could use to evaluate the nonrandomness of a database? What do we use usually to say that something is random or not (statistically)? Figure we work with change in some value over time. How to find the nearest parent of a Git branch? What physical properties of materials trigger the capacitive touch screen? I have watched some youtube videos about capacitive touch screen      The videos show that a conductor(finger), in which charges can be induced, can be used to trigger the capacitive touch screen. However, I tried to wear a plastic glove to hold a metal rod to touch the screen and no detection is triggered.  I really want to know the physics theory about the capacitive sensing.  Can someone tell me what physical properties or shape trigger the capacitive touch screen?  Is there any examples that something WITHOUT conducting to human body can trigger the screen?  (P.S. I have read other posts about capacitive touch screen here and do not find a good answer so this is not a duplicate) Light "diode" and 2nd law of thermodynamics If I had a light "diode" - an object that only allowed light (at least for a range of frequencies) to travel through it in one direction, would this necessarily allow violations of the 2nd Law of Thermodynamics?  Or would it be possible to restrict other properties of the device such that it could be okay.  Why I think it should violate 2nd law:   I can place such devices at temperature T in a bath of thermal radiation at temperature T, such that it forms a box which only lets the light in or out.  This would appear to always allow one to create a thermal gradient.  Once a thermal gradient is formed, useful energy can be extracted.  This seems to allow useful energy to always be extracted from a thermal bath and thus give perpetual motion. Release one such device at temperature T in a bath of thermal radiation at temperature T.  Since the photons are absorbed or reflected in one direction, and undisturbed in the other, the device will start moving.  It can use a thermal bath to directly generate useful motion.   Why I think I'm missing something and such a device could potentially co-exist with the 2nd Law:   The above arguments seem valid if the diode was only 'partially' rectifying as well.  However there exist sunglasses which largely reflect on one side, but not from the other side. Researchers have succeeded in using meta-materials to create a "blackhole" for microwaves.   Can anyone help sort this out? When "etc." is at the end of a phrase, do you place a period after it? Example:     It's all about apples, oranges, bananas, etc.   VS.     It's all about apples, oranges, bananas, etc..   Update  What happens if the abbreviation is inside parentheses, do you place a dot after and before the closing parenthesis?     It's all about fruit (apples, bananas, etc.). In PostgreSQL is the row ordering preserved in functions and CTEs? Receiving Push Notifications while in background Probability brain teaser with infinite loop I found this problem and I've been stuck on how to solve it.     A miner is trapped in a mine containing 3 doors. The first door leads to a tunnel that will take him to safety after 3 hours of travel. The second door leads to a tunnel that will return him to the mine after 5 hours of travel. The third door leads to a tunnel that will return him to the mine after 7 hours. If we assume that the miner is at all times equally likely to choose any one of doors, what is the expected length of time until he reaches safety?   The fact that the miner could be stuck in an infinite loop has confused me. Any help is greatly appreciated. When/Why Did Love Escape Voldemort? We know that Voldemort does not love. He does not understand it, nor (generally) the magic that it possesses. He knows  of the sort.  [...] &quot;you possess in such quantities and which Voldemort has not at all.&quot; [...] &quot;because he could not bear to reside in a body so full of the force he detests. In the end, it mattered not that you could not close your mind. It was your heart that saved you.&quot; (Harry Potter and the Order of the Phoenix, page 1075)  The above confirms it (although I believe there is a better quote), though  reinforces it. The fact that he hugs so awkwardly shows that he does not really know how, due to his lack of love. I realize that Voldemort's appearance started to change after he started to create Horcruxes, but surely he had an ounce of love when he was a child? The hugging scene perhaps shows that he never once loved his whole life (possibly due to the love potion with his parents?). If so, when did Voldemort begin to have no love at all, and why? What is the idiom for "as anyone can see" or "clearly"? I keep wanting to say "the handwriting on the wall," but that's not correct. The place I'm trying to use it is, "Alice likes Bob, Carol likes Bob, Alice thinks Bob likes her, but Bob dates Carol, and so as anyone can see, Bob did not like Alice."  What is the appropriate idiom here? 'Wouldn't wake up' vs. 'didn't wake up' I'm reading an article about two pets rescuing their owners. After the cat managed to wake up the mother, she tried to wake up other members but they wouldn't wake up.     Cathy tried to tell her husband and son to leave the house, but they wouldn't wake up.   Why wouldn't and not didn't?   (I checked possible duplicates but they weren't convincing at all. Besides, none of the answers were confirmed. One said would is used for permission and another said it's for emphasis!) How disk space is used on Android device? I have critical low storage level and can't understand what takes much of it and how that's possible that the installed applications can use 7 GB? I only use a few social media clients without any games or soft like Photoshop. Also on the second screenshot it indicates that the apps are using just 1.13 GB and so I can't understand the situation. Also what is the "Other"? Given n distinct objects, there are $n!$ permutations of the objects and $n!/n$ "circular permutations" of the objects (orientation of the circle matters, but there is no starting point, so $1234$ and $2341$ are the same, but $4321$ is different).  Given $n$ objects of $k$ types (where the objects within each type are indistinguishable), $r_i$ of the $i^{th}$ type, there are   \begin{equation*} \frac{n!}{r_1!r_2!\cdots r_k!} \end{equation*}  permutations.  How many circular permutations are there of such a set? Cyclic Quadrilateral Problems Is it bad to defrag a ssd? Or just pointless? I've read on some websites that it's bad to defrag an ssd. But I'm reading on this website now and one person was like "You didnt do any harm its just not necessary to defrag it." I feel like that's wrong since every other website I've read says it will damage the ssd. I have a homework question that asks     Find necessary and sufficient conditions on $1 \leq i &lt; j \leq n$ so that $(i \, j)$ and $(1 \, 2 \, \dotsc \, n)$ generate $S_n$.   Here is what I have done so far.  Call $c = (1 \, 2 \, \dotsc \, n)$.  I made the observation that $$ \overbrace{c c \dotsb c}^{n - j + 1} (i \, j) \overbrace{c^{-1} c^{-1} \dotsb c^{-1}}^{n - j + 1} = (1 + i - j + n \, 1). $$ Thus, $\langle (i \, j), c \rangle = \langle (1 \, i - j + n + 1), c \rangle$, so it suffices to look at $\langle (1 \, k), c \rangle$ for positive integers $2 \leq k \leq n$.  I've checked that, for the value $k=2$, $\langle (1 \, 2), c \rangle = S_n$.  This immediately implies $\langle (1 \, n), c \rangle = S_n$.  I suspect that no other values of $k$ will work, but am not sure how to prove it.