I want to bring a code in my question. I've seen this link, but I didn't find any solution here.
How to include my codes in a blue box?
3 Answers
In addition to the fine suggestions given by Asaf, you can include your code inline in backquotes $ ^\grave{}\dots^\grave{}$ like this $e=e^1$
.
Do you mean like that:
$e=e^1$.
Or do you mean like that:
$e=e^1$.
The former is done by adding >
at the beginning of the line, and the latter is done by typing four whitespaces at the beginning of the line.
-
4$\begingroup$ $\bbox[5px,border:2px solid #0000FF]{\text{Evidently, they didn't mean something like this.}}$ $\endgroup$– robjohn ModCommented Jul 8, 2013 at 21:35
-
1$\begingroup$ @robjohn: I didn't even know that the box was blue until now. $\endgroup$– Asaf Karagila ModCommented Jul 8, 2013 at 21:36
-
$\begingroup$ I think the color of the highlighting depends on the visual theme of the site. Here I see it as $\bbox[5px,border:0px solid #0000FF,#EEEEEE]{\text{a background of gray: }\mathrm{0xEEEEEE}}$ $\endgroup$– robjohn ModCommented Jul 8, 2013 at 22:07
-
$\begingroup$ @robjohn: I too believe it depends on the theme. I'm just not very good with colors, and not once I have mistaken light shades of blue to be gray of some sort. $\endgroup$– Asaf Karagila ModCommented Jul 8, 2013 at 22:13
-
$\begingroup$ @robjohn: Could you please provide the code for your text in the blue box? $\endgroup$– user53259Commented Aug 16, 2013 at 16:30
-
1$\begingroup$ @LePressentiment: you can always see the MathJax source by right-clicking on the rendered MathJax and selecting "Show Math As > TeX Commands" $\endgroup$– robjohn ModCommented Aug 16, 2013 at 16:49
-
$\begingroup$ @robjohn: Many thanks! $\endgroup$– user53259Commented Aug 18, 2013 at 14:56
Granting that the OP quested after the box in robjohn's post, with many thanks to robjohn, I promulgate it explicitly:
\bbox[5px,border:2px solid #0000FF]{\text{ STUFF HERE }}
-
1$\begingroup$ When you mention robjohn's post, readers might assume that you mean his answer. (Answers are more visible than comments). Saying that you mean robjohn's comment would be, in my opinion, less ambiguous. (This was the reason why I've added a link to the comment.) $\endgroup$ Commented Oct 13, 2013 at 7:54
-
$\begingroup$ @MartinSleziak: Thanks for the edit! $\endgroup$– user53259Commented Dec 22, 2013 at 13:39