The subcaption package counts incorrectly under KOMA script I have a figure with two subfigures, each with its own caption. When I refer to the figure the numbering is correct, but when I refer to a subfigure the figure number is one more than it should be. If I change the document class to article the error does not appear. How to fix the numbering when referencing under KOMA script?  MWE:  \documentclass{scrartcl}  \usepackage[hyphens]{url} \usepackage{graphicx} \usepackage{subcaption}  \begin{document}  \begin{figure}   \caption{Two photos} \label{fig:photos}         \centering   \begin{subfigure}[t]{0.45\textwidth}       \caption{People on a square}       \label{fig:square}           \includegraphics[width=\textwidth]{images/square.jpg}                 {\footnotesize By Lina Kivaka and available at                     \url{https://www.pexels.com/photo/people-walking-near-white-building-3989821/}                 \par}   \end{subfigure}   \quad   \begin{subfigure}[t]{0.45\textwidth}       \caption{Cabin over a lake}       \label{fig:cabin}                 \includegraphics[width=\textwidth]{images/cabin.jpg}                 {\footnotesize By Lucas Craig and available at                     \url{https://www.pexels.com/photo/cabin-on-green-grass-field-near-lake-under-white-clouds-3689772/}                 \par}   \end{subfigure} \end{figure}  When I refer to panel~\subref{fig:square} of Figure~\ref{fig:photos} it is displayed as Figure~\ref{fig:square}. Similarly panel~\subref{fig:cabin} is displayed as Figure~\ref{fig:cabin}.  \end{document}
wrong numbering for subcaption in scrbook When using the scrbook document class in combination with the subcaption  package, the numbering of subfigures seems broken. Consider:  \documentclass{scrbook} \usepackage{xcolor} \usepackage{caption} \usepackage{subcaption} \captionsetup{%   format=hang,%   font=small,%   labelfont={sf,bf},%   aboveskip=0.2\normalbaselineskip,%   position=top } \pagestyle{empty}  \begin{document} \begin{figure}   \caption{Black}   \label{fig1}   \centering \rule{2cm}{2cm} \end{figure}  \begin{figure}   \caption{More figures}   \label{fig2}   \centering   \begin{subfigure}{.3\textwidth}     \centering     \caption{Blue}     \label{fig2a}     \color{red}\rule{2cm}{2cm}   \end{subfigure}   \begin{subfigure}{.3\textwidth}     \centering     \caption{Green}     \label{fig2b}     \color{green}\rule{2cm}{2cm}   \end{subfigure}   \begin{subfigure}{.3\textwidth}     \centering     \caption{Blue}     \label{fig2c}     \color{blue}\rule{2cm}{2cm}   \end{subfigure} \end{figure}  Figure \ref{fig1} shows a black box. Figure \ref{fig2} shows colored boxes, where Figure \ref{fig2a} shows a red box, Figure \ref{fig2b} shows a green box, and Figure \ref{fig2c} shows a blue box. \end{document}   This results in the following display:    Clearly, the figure numbering in the text references is off by one for the subfigures. Instead, if I change the document class to article, it looks fine:     Why does this happen, and how can I prevent it?
Let $p,q$ be primes, $p≠q$, then I have to show that $\mathbb{Q}(\sqrt{p},\sqrt[3]{q})= \mathbb{Q}(\sqrt{p}\cdot \sqrt[3]{q})$  So far I've tried a lot of things with minimal polynomials and bases, but I'm far from any argument that I find sufficient.  This is an example from my algebra course, first chapter about field extension. So far we know about basic definitions, minimal polynomials and their properties, algebraic elements and algebraic fields.  Could someone maybe give me a hint about how to proceed? Thanks a lot!!! InDesign: How to restore text-frame position/size to be managed by the master page instead of the actual page? I have some designer that moved slightly a text-frame and in order to be managed again by the master page we need to remove the page and create a new one inserting the content in it.  Is there any different way to do it?  I would like to be able to restore the "power" of positioning/size to the master page because now we need to change the master-page to position the text-frame a little bit to the right and in the case above mentioned will not be updated.  Thanks Do the Imperials know they are evil? Intersection of all $p$-Sylow subgroups is normal I stupidly ran sudo rm /* followed by sudo rm -R /*  My sites still run, although the vast majority of commands like ls are now broken.  Is there a simple way to get data off the server or reverse some of damage? Changing password? I would like to change my password.  I have followed the instructions in  but I cannot find the "my logins" hyperlink. Deploy Community Builder audience page assignments with ant migration tool? Solving $\sin x\cos3x+\cos x\sin3x=\sqrt{3}/2$ in the interval $[0,2\pi]$ Solve the following trig equation: $$\sin(x)\cos(3x)+\cos(x)\sin(3x)=\frac{\sqrt{3}}{2}$$ in the interval $[0,2\pi]$.  Using trig identities, it is now at $$\sin(x+3x)=\sqrt{3}/2 \tag{1}$$ Next, it has become $$\sin(x+3x)=\sin 60^\circ \tag{2}$$ leading to $$\sin(x+3x)-\sin60^\circ=0 \tag{3}$$ From there, it is unclear what to do. Let's say there is a user who has found a satisfactory answer to a common question asked on Stack Overflow (or other Stack Exchange website).  This answer may be a snippet of code, or an addon, or a framework, or something else.    Is it acceptable for this user to formulate an answer for one question, find every related question and then copy the exact answer to each of those questions?  And, if not, what should  users who finds themselves in this situation do? Random spawn location despite sleeping in a bed I am trying to make Minecraft harder, and one of the ways I wish to do this is to have a "pseudo-hardcore" mode where dying spawns you in a random location rather than completely locking you out of the world.  I intend to do this by setting the spawn radius to be very high.  However, I also want to make this "bed-proof" - that is, if someone places a bed and sleeps in it, I want the player to still be spawned in a random location, regardless of their personal spawn point.  How do I do this? Command blocks are fine, but data packs are not preferred. This is the problem I am currently having trouble with:  If $\lambda_1$ and $\lambda_2$ are eigenvalues of matrix  $$         \begin{bmatrix}         a &amp; b\\         c &amp; d\\         \end{bmatrix}$$prove that $\lambda_1^2$, $\lambda_1\lambda_2$ and $\lambda_2^2$ are eigenvalues of matrix $A$.     $$A=\begin{bmatrix}     a^2 &amp; ab &amp; b^2\\     2ac &amp; ad+bc &amp;2bd\\     c^2 &amp; cd &amp;d^2\\     \end{bmatrix}$$  What have I considered so far:   I tried to find characteristic polynomial of first matrix and then find the roots which would be $\lambda_1$ and $\lambda_2$. I was hoping I can make a connection with characteristic polynomial of matrix $A$, but it got too complicated and did not seem like the right idea. Since there are two eigenvalues for first matrix, there are two eigenvectors. I thought about somehow using $A\vec v_i=\lambda_i\vec v_i$, where $i=1,2$  Also, I thought about finding a connection between these two matrices. What I see is that the sum of elements of first and second column, of first matrix, are $(a+c)$ and $(b+d)$, respectively.  Sum of first, second and third column of matrix $A$ are $(a+c)^2, (a+c)(b+d)$ and $(b+d)^2$. Now, if I could assign $\lambda_1$ and $\lambda_2$ to $(a+c)$ and $(b+d)$, then I would get that sum of first, second and third column of matrix $A$ are $\lambda_1^2$, $\lambda_1\lambda_2$ and $\lambda_2^2$, but what would be next?   I thought it would be good to combine 2. and 3rd idea, but I am not making any progress.  I appreciate any help. Does anyone know of any interesting subsets of the Cantor set? When I first started thinking about this, I thought that since the Cantor set $C$ is the intersection of disjoint unions of closed sets, those particular closed sets would be subsets of $C$. Those sets, however, happen to be intervals! The Cantor set contains no isolated points nor (open) intervals, so then what subsets does it contain besides $\varnothing$ and itself? Proof of the following inequality $ \frac{x - y}{\log x - \log y} > \sqrt{xy} $, $x>y$. I have seen the following inequality  $$ \frac{x - y}{\log x - \log y} &gt; \sqrt{xy} \ , \quad \forall x&gt;y $$ be stated as a near "obvious" fact in another , on the site.  The inequality is very cute, but so far I have not been able to prove it.  It reminds me of the Lipschitz inequality, but has some minor differences. Also Jensens inequality comes to mind. Is there something obvious I am missing, or is this ineqality not as easy to prove as it looks? Replicate data from one list to another list sharepoint I have a list A with columns Emp ID, First name &amp; last name and list B wih column name Emp ID, First name, last name , phone number and address.  I want functionality such that when i enter item in List A and save same data should get copied in 3 columns of list B. Can someone help me with the approach. Thnks Automatically convert quotations in the form of "abc" to become ``abc" I did not know that latex had different symbol for opening and closing quotation marks. I've used it like "abc" every where and just realised that I really should have used ``abc". Is there anyway I can convert all the quotations to become like ``abc"? Doing it manually will take forever as I have a lot of quotations. Gradient steepest direction and normal to surface? From this , I now understand the gradient to be the directional derivative that returns the steepest slope at a point. However, reading my textbooks, they all say that the gradient is normal to the tangent plane. In the above SE question, the gradient sounds like it should be parallel to a direction in the $xy$ plane, not actually up on the surface.   My question is therefore do I have a misunderstanding of the tangent plane, gradient or directional derivative?   In addition, I question how the gradient always passes through the origin or the $xy$ plane? If for instance in the graphic, the gradient had been another direction (say horizontal), then it wouldn't pass through the origin! In addition, the gradient of other points in the graphic would satisfy this example. Many thanks! Existence of irreducible polynomials over finite field Let $F$ be a finite field. How do we prove that for each $n \in \mathbb{N}$ there is an irreducible polynomial of degree $n$?  One can assume that $F = \mathbb{F}_{p^m}$ where $p$ is prime. If $n \ge |F|$ then I can construct an irreducible polynomial, namely  $ p(x) = 1 + \prod_{j=1}^{|F|} ( x - a_j )$  where $a_j$ are all the field elements. It is clear that $p(x)$ has no roots in $F$.  This trick doesn't work for $n &lt; |F|$. A counter-example: Let $F = \mathbb{F}_3$ and $p(x) = 1 + (x-1)(x-2)$, then $p(1) = 1$, $p(2) = 1$, $p(0) = 1 + (-1)(-2) = 1 + 2 = 3 = 0 \pmod 3$.  I know there is a way to count them using the Möbius function $\mu(n)$ but I want a proof without it that just shows existence. Site Analytics header does not show the link to "traffic sources" when in that section I was seeing the Site Analytics page (/site-analytics)  (>25K users) and also  and found out that the header is not consistent:   When in history, the header shows "history | traffic sources" When in traffic sources, the header just shows "history"   Graphically: What are the best SEO practices when changing domain names? I'm using the Yoast SEO plugin on a WordPress site on a new, more memorable domain to replace an old static HTML site with no SEO. I've followed , set up 301 redirects from the old domain to the new one, and filed a change of address in the Google Search Console. However, after a few days, the old site still shows in search results, and is ranked higher than the new one if you google our company name.   And, if I try to set the preferred domain in the Google Search Console Site Settings for the new site, I see this in place of the options to prefer www/non-www/http/https:     Not all options are available because of a Change of Address request   related to this site.   I've read of some cases where this condition has lasted for .  Is there anything more I can do to fix this? Have I done something wrong, or do I just need to wait, and for how long? One runtime platform provides an API that supplies PKCS#5 padding for block cipher modes such as ECB and CBC. These modes have been defined for the triple DES, AES and Blowfish block ciphers. The other platform API only provides PKCS#7 padding.  Are PKCS#5 padding and PKCS#7 padding compatible?