I'm trying to use color
and background
color together. But, for example, the following is not working - showing only a black box. What I may be missing here and how can it be fixed.?
Remark: I'm using MikTeX
(with default installation) on my Windows-10
\documentclass{article}
\usepackage{amsmath}
\title{\LaTeX}
\begin{document}
\[\colorbox{black}{\color{white}\LaTeX}\]
\end{document}
Desired output: Something like the following:
xcolor
package, it works ontexlive
. Does it make any difference by loading it inMikTeX
? – Alan Xiang Jan 15 at 5:06MikTeX
, as well. It also worked withcolor
package. – nam Jan 15 at 15:05\colorbox
so your question is very misleading. – David Carlisle Jan 15 at 15:39color
package, following works on myMikTeX
installation on Windows-10. Am I not be doing something right here?:\documentclass{article} \usepackage{amsmath} \usepackage{color} \begin{document} \[\colorbox{black}{\color{white}\LaTeX}\] \end{document}
– nam Jan 15 at 15:54