You should be able to cut and paste mathematics from your web browser to Word (or any of the Micorsoft Office suite). Unfortunately at present you have to make a small edit but any text editor will do for that.
Given
x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}
Make a small html file that looks like
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<title>tex texample</title>
</head>
<body>
$$x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$$
</body>
</html>
View that in a web browser and select "show MathML as/MathML Code" from the right menu:
Select the MathML text from the popup window.
Normally you can paste MathML in to word but for various reasons you need to give Word a hint in this case, so first paste it into a text editor and add the line
<?xml version="1.0"?>
to the start:
Then cut out the edited text and paste it into Word (any version since 2007).
Note the result is a fully editable Word Math Zone, using scalable fonts, not an image.
I used MathJax in a web browser for the initial TeX to MathML conversion as it is the easiest to set up, there are other alternatives. Also, to make it simple, I described the process in terms of cutting and pasting, which works well for one or two expressions but clearly not if you are converting thousands, however the process can be automated in various ways.
We can convert the stored version of the color definition (which is expressed in rgb) to HTML with
\newcommand{\colrow}[1]{%
#1 & \colpic{#1} & \extractcolorspecs{#1}{\model}{\mycolor}%
\convertcolorspec{\model}{\mycolor}{HTML}\tmp\tmp
}
Also we can squeeze in the definitions of the commands like \somecolorhtml
with some extra coding.
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{tikz,booktabs,xcolor}
\newcommand{\definemycolor}[2]{%
\definecolor{#1}{HTML}{#2}%
\expandafter\def\csname#1html\endcsname{#2\relax} %Which defines \colornamehtml
}
\newcommand{\colpic}[1]{\tikz \draw[#1,fill=#1,draw](0,0)circle(0.1cm);}
\newcommand{\colrow}[1]{#1 & \colpic{#1} &\csname#1html\endcsname}
\definemycolor{mapblue}{0000FF}%
\definemycolor{maproyalblue}{0088FF}%
\definemycolor{mapskyblue}{00CCFF}%
\definemycolor{mapgreen}{00CC00}%
\definemycolor{mapdandelion}{FFCC00}%
\definemycolor{maporange}{FF8800}%
\definemycolor{mapred}{FF0000}%
\begin{document}
\begin{tabular}{cccc}
\toprule
\multicolumn{1}{c|}{\textsc{Relevance Interval}} &
\multicolumn{1}{c|}{\textsc{Color}} &
\multicolumn{1}{c|}{\textsc{Picture}} &
\multicolumn{1}{c}{\textsc{ Color Definition}}\\ \midrule
0 - 5 & \colrow{mapblue}\\
5 - 10 & \colrow{maproyalblue}\\
10 - 25 & \colrow{mapskyblue}\\
25 - 50 & \colrow{mapgreen}\\
50 - 100 & \colrow{mapdandelion}\\
100 - 200 & \colrow{maporange}\\
>200 & \colrow{mapred}\\
\bottomrule
\end{tabular}
Since we defined the \verb|\colornamehtml| command versions of the colors,
\verb|\mapbluehtml| gives \textcolor{mapblue}{\mapbluehtml} and
\verb|\mapdandelionhtml| gives \textcolor{mapdandelion}{\mapdandelionhtml}.
\end{document}
Also, I think a monospaced font would please more in the last column so replacing the colrow
command with the following
\newcommand{\colrow}[1]{#1 & \colpic{#1} &\expandafter\texttt{\csname#1html\endcsname}}
would lead to
Best Answer
With the help of the
tabularray
package, you can quite easily get a similar output: