For some reason I'm not able to have a top alignment of figures using subfigure and the environmental option [t]. I have search the internet for solutions and found them pretty complex for such a simple and general problem... What is the simple solution?  \documentclass[11pt]{article} \usepackage[draft]{graphicx} \usepackage{caption} \usepackage{subcaption}  \begin{document}  \begin{figure}[h!] \centering  \begin{subfigure}[t]{.49\linewidth} \centering \includegraphics[width=1\textwidth]{calCurve.pdf} \caption{Caption 1} \end{subfigure}% \begin{subfigure}[t]{.49\linewidth} \centering \includegraphics[scale=0.7]{anova.pdf} \caption{Caption 2} \end{subfigure}% \end{figure}  \end{document}
This is a follow-up to an earlier question regarding .  Having achieved the left-alignment goal, I would now like the caption of the subfigure to be bottom-aligned, while having the subfigure itself be top-aligned. As an example, in the figure below, subfigures (a) and (b) would share an uppermost edge, and their captions would share a lowermost edge, and similarly for subfigures (c) and (d). This is most appropriate for the overall layout style of my document and also the content of the subfigures themselves.    \documentclass{article} \usepackage[font=footnotesize]{subcaption} \usepackage[draft]{graphicx}  \begin{document} \begin{figure}[!ht] \captionsetup[subfigure]{justification=justified,singlelinecheck=false} \centering \begin{subfigure}[b]{0.3\textwidth} \includegraphics[scale=0.8]{fig/workflow-S} \caption{workflow $S$} \end{subfigure} \begin{subfigure}[b]{0.5\textwidth} \includegraphics[scale=0.8]{fig/workflow-S-run} \caption{run of $S$} \end{subfigure} \vskip 8pt \begin{subfigure}[b]{0.3\textwidth} \includegraphics[scale=0.8]{fig/workflow-S'} \caption{workflow $S'$} \end{subfigure} \begin{subfigure}[b]{0.5\textwidth} \includegraphics[scale=0.8]{fig/workflow-S'-run} \caption{run of $S'$} \end{subfigure} \caption{Here's a figure} \end{figure} \end{document}   I've experimented with the minipage settings for subfigure, specifically using [t] instead of [b], but it seems to have no effect. I'm unsure as to whether a position of [t] would produce the right effect anyway, or whether it would shift the captions up as well.  Why is [t] not working here, and what's the right way to produce the layout I need?   The solution should generalise to an arbitrary number of subfigures per row, subfigures which are text or tables rather than images, and should not require any hard-coded sizes.
Please add TeX rendering on the Android app MathJax isn't currently working on the Android app, which makes it totally useless for the 'technical' sites like  or .  For example, in the Android app:    Same post in a (mobile) browser:     Please add this functionality! Since it seems to me, that a lot of people still need sidebar workarounds, I would be interested to learn about the use-cases, experienced challenges and (most important) possible strategies to avoid them by using different approaches. This is related to the methods discussed here:   In my experience there are a few extremely important and constantly repeating patterns, which to my knowledge are still very hard to be solved using more official techniques. I will also contribute my own top-N use-cases, which are mostly related to UX and UI concerns. You are very welcome to add your own scenarios as answers and add comments on how you would avoid a workaround. My dream would be to team-elaborate strong and repeatable solution-patterns for the most common use-cases.  Finally I would be interested in the experiences of all of you who participate in the Aura pilot, which hopefully could make this kind of workarounds obsolete. How do you define an arbitrary sort sequence for views? Optimal drive configuration for SQL Server 2008R2 I have a fairly busy database server running SQL Server 2008 R2 that has the following setup:   SATA RAID 1 (2 Drives)  - OS / Programs SAS  RAID 10 (4 Drives) - Sql Database Files (data and logs) SAS  RAID 1 (2 Drives)  - TempDB (data and logs)   Assuming I can't add additional drives into this server, have I made the best use of the configuration I have available? Or should I consider another scheme here where logs are isolated from the data files, for example?  Update:  For those that requested further hardware details:   The SATA drives (used for the OS / Program partition) are: WD 7200 RPM 3 Gb/s 3.5 Inch SATA The SAS drives used in the other arrays are: Seagate 15K RPM 6 Gb/s 3.5 inch SAS The RAID controller used is an: LSI 9260-8i SAS/SATA 6 Gb 8 port   Update 2:  Based upon the feedback I've received, it looks like I have the following viable options to choose from - I will award the bounty to someone that can tell me which is likely to be the best in the environment that I've outlined:   Leave everything as is - I probably won't do much better  Move my 2 SAS RAID 1 drives into my existing RAID 10 array to have it composed of 6 disks in total  Move my log files onto the SAS RAID 1 and/or relocate TempDB (data or logs) back to the RAID 10 I want to learn to use biper and biblatex in Lyx. This is how I would do it in LaTeX traditionally with biblatex and biber  \documentclass[12pt,a4paper,oneside,pdftex]{report} \usepackage[backend=biber]{biblatex} \addbibresource{minCuts.bib} ... \printbibliography \end{document}   The error is apparently originating from the \bibliographystyle command and biblatex package getting mixed, by . But I have no \bibliographystyle command in Preamble so they should not be mixed unless Lyx is somehow importing the \bibliographystyle.   How to resolve the biblioraphystyle error in Lyx with Biber and Biblatex?    Settings by the instructions  and Error        Document > Settings > Bibliography > Biber                  In Document > Settings > LaTeX Preamble                   Insert > List / TOC > BibTeX Bibliography...                        Package biblatex Error : '\bibliographystyle' invalid. What are the limits of house-elf apparition? I know Wizards can't apparate where they want on the Earth, except if they are very powerful but what about a house-elf ? Their magic is different so I was wondering if they can apparate wherever they want or if they have a limit too. Lets say I have a  creature that says "Whenever another creature enters the battlefield under your control, you may gain 1 life." and I currently have all 4 of them in the battlefield. Then I cast another creature and : Do I get 1 or 4 life? Does that effect trigger for every priest or just once? thanks for help proving $\left(1+\frac 1n\right)^{n} = 1 + \sum_{k=1}^n \{\frac 1{k!}\prod_{r=0}^{k-1}(1-\frac rn)\}$ using the binomial theorem Do I need internet/3G to use GPS? I have a Samsung Galaxy S2 that has some problems with the GPS: If I use internet my navigation works but when I turn the 3G off, GPS does not work.  Do I need internet/3G to use GPS? Prove by induction that $$(a_{1}+a_{2}+\cdots+a_{n})\left(\frac{1}{a_{1}}+\frac{1}{a_{2}}+\cdots+\frac{1}{a_{n}}\right)\geq n^{2}$$  where $n$ is a positive integer and $a_1, a_2,\dots, a_n$ are real positive numbers   Hence, show that  $$\csc^{2}\theta +\sec^{2}\theta +\cot^{2}\theta \geq 9\cos^{2}\theta$$  Please help me.  Thank you! Clarify an idiom in a political text Please carefully read the text below:     On 24 November, 1993, a meeting of Leftist intellectuals occurred in   London under the auspices of the Institute for Public Policy   Research (IPPR), which is a Labour-leaning think-tank.  A short document   was circulated in advance of the said meeting to clarify its   purpose.        Among other things, the document declared that the task of the   IPPR was: "To do what the Right did in the seventies, namely to break   through the prevailing parameters of debate and offer a new   perspective on contemporary British politics."    The explanatory document also said, "Our concern is not to engage in a   philosophical debate about foundations of socialism."      If this meant that those foundations were not the appropriate thing to   talk about at the 24 November meeting, then that might have been   right; not every thing has to be discussed at every meeting.  But if   what was meant was that discussion of philosophical foundations is not   what the Left now needs, then I disagree, and if that indeed is what   was meant, then it is curious that the breakthrough by the Right should   have been invoked as an achievement for the left to emulate, for if   there is a lesson for the Left in the Right's breakthrough, it is that   the Left must repossess itself of its traditional foundations on   pain of continuing along its present, politically feeble, reactive   course.  If the Left turns its back on its foundations, it will be   unable to make statements that are truly its own.   Since I've heard only one definition of the part identified in bold, I am at a dead end.  As you know, and according to Oxford's dictionary, the verb "repossess" means: To take back property or goods from SB who has arranged to buy them and can not pay.  Here, the object of verb is a thing not a person, but in the text, first,itself comes before of and its traditional foundations. As a result, I thought that this phrase might be an idiom and so has a different meaning with the original verb.  Please explain the meaning of this phrase. Proving a triangle with different edge colors exists in a graph. This is again some homework translated (hopefully not too badly) from my book  The graph $K_{n}$ is colored using $n$ different colors, in a way that each color is used at least once. Prove that there exists a triangle with its edges colored in different colors. Counting overlapping polygons in GeoJSON to result in new set of polygons? I've recently been learning about differential equations, and my teacher has been giving some particularly difficult examples out for those of us who finish early. He gave us the following differential equation: $$x=y\frac{dy}{dx}-\left(\frac{dy}{dx}\right)^{2}$$ With the hint "Differentiate with respect to $y$, then let $\frac{dy}{dx}=p$". I've solved it after the lesson and would like someone to check whether or not I've done so correctly.    Following the hint, $$\frac{dx}{dy}=\frac{1}{p}=p+y\frac{dp}{dy}-2p\frac{dp}{dy}$$ Which rearranges to $$p-\frac{1}{p}+y\frac{dp}{dy}=2p\frac{dp}{dy}$$ Multiplying through by $\frac{dy}{dp}$, $$\left(p-\frac{1}{p}\right)\frac{dy}{dp}+y=2p$$ Rearranging into the form $\frac{dy}{dp}+f(p)y=g(p)$, and writing $p-\frac{1}{p}=\frac{p^{2}-1}{p}$ $$\frac{dy}{dp}+\frac{p}{p^{2}-1}y=\frac{2p^{2}}{p^{2}-1}$$ Our integrating factor is $$e^{\int\frac{p}{p^{2}-1}dp}=e^{\frac{1}{2}\ln(p^{2}-1)}=\sqrt{p^{2}-1}$$ So we have $$\sqrt{p^{2}-1}\frac{dy}{dp}+\frac{p}{\sqrt{p^{2}-1}}y=\frac{2p^{2}}{\sqrt{p^{2}-1}}$$ The left hand side is, by design, $\frac{d}{dp}(y\sqrt{p^{2}-1})$, and the right hand side can be integrated as follows: $$\int \frac{2p^{2}}{\sqrt{p^{2}-1}}dp=\int\frac{2(p^{2}-1)+2}{\sqrt{p^{2}-1}}dp=\int 2\sqrt{p^{2}-1}dp+\int \frac{2}{\sqrt{p^{2}-1}} dp$$ These can both be solved using the substitution $p=\cosh(u)$, and gives $$y\sqrt{p^{2}-1}=p\sqrt{p^{2}+1}-\cosh^{-1}(p)+\alpha$$ Where $\alpha$ is an arbitrary constant. Dividing, we finally have $$y=p+\frac{\cosh^{-1}(p)+\alpha}{\sqrt{p^{2}-1}}$$  Here I was stuck for a long time, until I realised that we also have the equation we began with: $x=py-p^{2}$, which we can solve as a quadratic in $p$ to also get $$p=\frac{y\pm \sqrt{y^{2}-4x}}{2} \implies p^{2}=\frac{y^{2}+y^{2}-4x \pm 2y\sqrt{y^{2}-4x}}{4}$$  Thus, $$y=\frac{y\pm \sqrt{y^{2}-4x}}{2}+\frac{\cosh^{-1}\left(\frac{y\pm \sqrt{y^{2}-4x}}{2}\right)+\alpha}{\sqrt{\frac{y^{2}-2x \pm y\sqrt{y^{2}-4x}}{2}-1}}$$  This is as good as I can do - we have a relation between $y$ and $x$ - am I done? Is this the correct answer? Is there an easier way?     Thank you for your time.    Following the suggestion by @Valentin $$\frac{dy}{dp}=1+\frac{\frac{1}{\sqrt{p^{2}-1}}\sqrt{p^{2}-1}-p\frac{\cosh^{-1}(p)+\alpha}{\sqrt{p^{2}-1}}}{p^{2}-1}=1+p\frac{1-\frac{\cosh^{-1}(p)+\alpha}{\sqrt{p^{2}-1}}}{p^{2}-1}$$ Hence, $$dx=\frac{dy}{p}=dp\left(\frac{1}{p}+\frac{1-\frac{\cosh^{-1}(p)+\alpha}{\sqrt{p^{2}-1}}}{p^{2}-1}\right)$$ Here is what I do:   restart machine with Windows 8.1 determine "EFI System" partition with the Disk Management utility run command prompt as administrator type diskpart type select disk 0 then select partition 2 then assign open windows explorer windows+e refresh if the drive is not showing F5 try to open drive by double clicking   What I expected to happen:  I can at least look at my EFI partition files.  What happened:    after clicking continue    after clicking "security tab" link, no security tab    What do I need to do to access my EFI partition on Windows 8.1? What is the maximum RAM supported by the desktop and server editions? I have just downloaded "ubuntu-14.04.1-desktop-amd64.iso" and "ubuntu-14.04.1-server-amd64.iso" through "".   Please can someone confirm the maximum RAM that is supported.  According to many sites, Maximum RAM supported by the OS  ubuntu-14.04.1-desktop : " 2^64 bytes " -- Kindly confirm  ubuntu-14.04.1-server : " 2^64 bytes " -- Kindly confirm Find $\space\ \begin{align*} \lim_ {x \to+\infty} \left [ \frac{\log_{2}(x-1)}{x}\right]   \end{align*}$.   After some minutes around this limit I did it this way:  $\log_{2}(x-1)=y \Leftrightarrow 2^y=x-1$  So,$\space x=2^y+1$.  When $x \to +\infty$,$\space y \to +\infty$ also. By substitution:  $\begin{align*} \lim_ {y \to+\infty} \left [ \frac{\log_{2}(2^y+1-1)}{2^y+1}\right]=\lim_ {y \to+\infty} \left [ \frac{\log_{2}(2^y)}{2^y+1}\right]=\end{align*}$  $\begin{align*}\lim_ {y \to+\infty} \left [ \frac{y}{2^y+1}\right]=\lim_ {y \to+\infty} \left [ \frac{1}{\frac{2^y+1}{y}}  \right]=\lim_ {y \to+\infty} \left [ \frac{1}{\frac{2^y}{y}+\frac{1}{y}}\right]= \frac{1}{+\infty+0}=0  \end{align*}$  Is this correct?Are there any other easy way to find this limit?Thanks Limit problem arctg (1 ^ infinty) Can anyone help me with this limit problem without L'Hopital rule and Taylor series? $$\lim_{x\rightarrow\ -\infty}\left(-2\frac{\arctan(x)}{\pi}\right)^x$$ JavaScript: document.getElementById slow performance? Why do I get 'UnknownHostException: session.minecraft.net' when attempting to log in to Minecraft servers?