1

I'm writing an article and as I was editing it I noticed that sometime within the last half hour the text on one of the pages had turned blue. I wasn't doing anything other than adding/removing text, not editing any settings, so I don't know why it happened. It's also very curious that if I add extra lines to that page to push some of its text onto the next page, the parts that get pushed to the next page become black like the rest. So the color change is not tied to a particular section or subsection, but rather the page number.

Has anyone come across anything like this before?

edit: I've found another oddity. Here's the section layout: " \section{Results} \label{sec:Results} \begin{center} \begin{figure} \includegraphics{image.png} \caption{text} \label{fig:image} \end{figure} \end{center}

\subsection{subsection name} text... .... ... " Now, it turns out that if I add some plain text between the section header and the subsection header, the blue on page 5 goes away. None of my other sections have this problem.

  • 1
    Welcome to TeX.SX! You probably lost a color changing command somewhere when you were "adding/removing text". Try to narrow down the document to the part where the blue text begins and eventually you will find the source of the blueness. If you can't find, then show us the stripped document for we to find out what is causing this. – Phelype Oleinik Sep 26 '18 at 21:44
  • I haven't used any color changing commands anywhere. – user171241 Sep 26 '18 at 21:51
  • Maybe you have not used them explicitly, but something is changing the color. Maybe it's a command misbehaving, maybe a dubious package, or maybe (less likely) a bug, as you say. Either way, I've never seen something like this, so I would need to see the code to find out what it is. – Phelype Oleinik Sep 26 '18 at 21:53
  • I've just tried some experiments and it seems to be related to the placement of one of my figures. Anything that changes the location of that figure to a different page makes the text black instead of blue. I just typed the word "text " over and over again into a previous section, forcing the typesetter to move the figure. No /-commands or anything. And then, upon deleting that line, the blue comes back. (Same effect if I just delete the figure entirely) At least this offers a solution (add some extra text) but I still have no idea what caused it. – user171241 Sep 26 '18 at 21:59
  • 1
    Don't use a figure environment inside a center environment. If you want to center the figure, use \centering inside the figure environment. – user36296 Sep 26 '18 at 22:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.