I am tiling images in latex using subcaption's subfigure environment. And because I'm taking things very precisely, I tried to calculate exact spacings, so everything aligns nicely, as in the following example:   However, I want each of the small figures to have proper labels etc. So what I'm doing is: adding a phantomsubcaption and then adding the label. But as soon as I add one or more labels, things look weird like this:   The phantomsubcaptions do not seem to be the problem. I would like to understand, where this "negative spacing" or whatever this is comes from and how I could avoid it. My MWE is the following:  \documentclass{article} \usepackage{caption,subcaption} \usepackage{calc} \usepackage{tikz}  \begin{document} \newlength{\picutreHeightFramed} \setlength{\picutreHeightFramed}{.3746397694524496\textwidth} \newlength{\pictureDeltaX} \setlength{\pictureDeltaX}{-1pt+.0198\picutreHeightFramed}  Do not understand. \begin{figure}         \begin{subfigure}[b]{.495\textwidth}                 \includegraphics[width=\linewidth]{example-image-a}         \end{subfigure}\hfill         \begin{subfigure}[b]{0.495\textwidth}%                 \includegraphics[width=.49\linewidth]{example-image-b}\phantomsubcaption\hfill                 \includegraphics[width=.49\linewidth]{example-image-c}\phantomsubcaption                 \vspace{\pictureDeltaX}                 \includegraphics[width=.49\linewidth]{example-image-b}\phantomsubcaption\hfill                 \includegraphics[width=.49\linewidth]{example-image-c}\phantomsubcaption\label{fig:whyyyyy}%         \end{subfigure}%         \caption{Testy test.}         \label{fig:test} \end{figure} \end{document}   The newlength and setlength commands just help me to calculate proper lengths for the small tiled images. I already tried fiddling around with those comment marks at the end of the line and removing/adding breaks, but this seems to be another kind of issue.
Usually \label does not create any white spaces. However, It creates an white space when \label is used after \phantomsubcaption from subcaption package.   Why? How can I get rid of this white space?   Here is a MWE:  \documentclass{article} \usepackage{subcaption}  \begin{document}  \section{a} a\label{sec:a}b% no white space between `a' and `b'  \begin{figure}   \centering   {a\phantomsubcaption\label{fig:a}}%   {b\phantomsubcaption\label{fig:b}}   \caption{With label}% undesired white space between `a' and `b' \end{figure}  \begin{figure}   \centering   {a\phantomsubcaption}%   {b\phantomsubcaption}   \caption{Without label}% no white space between `a' and `b' \end{figure}  \end{document}
Best way to extract a subvector from a vector? Suppose I have a std::vector (let's call it myVec) of size N.  What's the simplest way to construct a new vector consisting of a copy of elements X through Y, where 0 &lt;= X &lt;= Y &lt;= N-1?  For example, myVec [100000] through myVec [100999] in a vector of size 150000.  If this cannot be done efficiently with a vector, is there another STL datatype that I should use instead? The problem:  Consider the smooth quadric $Q=V(X_{0}X_{1}+X_{2}X_{3}+X_{4}^{2})\subset\mathbb{P}^{4}$ and the line $L=V(X_{0},X_{2},X_{4})$ contained in it. Prove that there exists a vector bundle $F$ on $Q$ with a section vanishing exactly at $L$.  The hardest thing is to get the transition matrices. Any help is appreciated. In my opinion the accepted answer should permanently stick as only the original question submitter has the ability to accept. What's the name for the property of a function $f$ that means $f(f(x))=x$? I can think of several examples of functions such that twice application of the function is equivalent to no application of it.   Additive inverse Multiplicative inverse Fourier transform Complex conjugation Any group built up from $\mathbb{Z}_2$, applying (one of) the $\mathbb{Z}_2$ parts' operation.   "Idempotent" came to mind, but that's wrong. It means $f(f(x)) = f(x)$, not $f(f(x))=x$.  What is the word for this "flip-flop" property? Does "staff" take a plural verb? Which one of these two statements is correct?     Our staff do ...      Our staff does ...   And is staffs ever correct? Visited links within spoilers are not hidden anymore How to Split Features in QGIS? Difference between “with”, “at” and “for” with a business title and a company name The prepositions “with”, “at” and “for” are also used to associate a business title with a company's name. It seems that they are interchangeable, with no (significant) difference in meaning. The following examples taken from The New York Times website seem to confirm that:      Until now, said Justin Nielson, a senior analyst for the media   research firm SNL Kagan, “there really hasn't been any direct   competitor . . .      “The consumer is still deleveraging,” said Jason Goldberg, a senior   analyst with Barclays. “It's not a lack of supply; it's a lack of   demand.”      “There’s the party of fear and the party of despair,” Nikos Xydakis, a   political analyst and an editor at Kathimerini daily, said.   Are they really the same as for meaning? If it isn't so, what is the difference between them? This question is about cosmology and general relativity. I understand the difference between the universe and the observable universe. What I am not really clear about is what is meant when I read that the universe is infinite.   Does it have infinite mass or is it dishomogeneous?  How can the universe transition from being finite near the big bang and infinite 14 billion years later? Or would an infinite universe not necessarily have a big bang at all? Evaluating: $\lim\limits_{x\to0}\left(\frac{\sin x}{x}\right)^{{6}/{x^{2}}}$ I am trying to evaluate the following but without result.  $$\lim_{x\to0}\left(\frac{\sin x}{x}\right)^{{6}/{x^{2}}}$$  Can you please give me some hints? I have tried to put log to both sides but it hasn't lead me somewhere... Thanks a lot Prove that $T$ has an orbit of period 3 How to add a custom field to the media screen (image/gallery)? I’m trying to add a custom field to image and gallery edit screen.  I’m aware there are similar questions here, although answers either don’t work with the current version or they add field only to upload screen while I need a field to be visible in all edit screens (see below).  For this, I believe, you’ll have to mess with backbone.js as attachment_fields_to_edit only adds to upload screen.  Adding field with attachment_fields_to_edit    ↑ This is upload image screeen. Here Style is added with attachment_fields_to_edit filter, and my_field is added with ACF plugin.   But they are missing in edit screen in the post    ↑ Click edit on the actual post    ↑ No style &amp; my_field fields!  The question  How to add fields to still have them on the edit screen? Ideally answer will include adding fields to gallery edit screen if it’s a similar process  This question is really important for me so I’ll be adding a 100 rep bounty when it’s available.   Thanks! Single Variable Calculus Reference Recommendations This question is a  of the common question asking for calculus references. It is here to  away the repetition, and give a canonical resource for calculus references.      I'm looking for a resources to learn single-variable calculus. I have a polygon shape file that has many overlapping features. Each feature represents an area used by polar bears. So some of the polygons overlap and some don't, and there are separate clusters of overlapping areas.   I would like to get a measure of how much overlap there is in a particular area. But I have no clue how to do this. I'm pretty new to GIS and am still learning the ropes, it just seems I can't find an answer. Does there exist a holomorphic function with the following property? I want the QED symbol to be 1 line lower at the end of proof Jordan normal form for a characteristic polynomial $(x-a)^5$ Write down all the possible Jordan normal forms for matrices with characteristic polynomial $(x-a)^5$. In each case, calculate the minimal polynomial and the geometric multiplicity of the eigenvalue $a$. Verify that this information determines the Jordan normal form.  I found this question in a textbook that I'm using for a test I have tomorrow. I think that I need to use the method for finding the Jordan normal form of a matrix but I can't see how to apply it and I don't have much intuition about the answer...  I'm guessing that there are 5 possibilities since the minimal polynomial can be any factor of the characteristic, but I don't know how to prove this.  Some help would be great for my test tomorrow! Thanks Limit of $L^p$ norm when $p\to0$ Let ($\Omega$, $\cal{F}$, $\mu$) be a probability space and $f\in L^1(\Omega)$. Prove that  $$\displaystyle\lim_{p\to 0} \left[ \int_{\Omega}|f|^pd\mu \right]^{\frac{1}{p}}=\exp \left[ \int_{\Omega}\log|f| d\mu  \right],$$  where $\exp[-\infty]=0$. To simplify the problem, we may assume $\log|f|\in L^1(\Omega).$ How do I get the title of a .pdf document to appear as the page title? Is JavaScript's "new" keyword considered harmful? In another , a user pointed out that the new keyword was dangerous to use and proposed a solution to object creation that did not use new. I didn't believe that was true, mostly because I've used Prototype, Scriptaculous and other excellent JavaScript libraries, and everyone of them used the new keyword.  In spite of that, yesterday I was watching Douglas Crockford's talk at YUI theater and he said the exactly same thing, that he didn't use the new keyword anymore in his code ().  Is it 'bad' to use the new keyword? What are the advantages and disadvantages of using it?