It will be like: How to change color of edge of characters?
The codes seem not to work under xelatex envirnment.
Does anyone know how to do this with xelatex?
Thanks
It will be like: How to change color of edge of characters?
The codes seem not to work under xelatex envirnment.
Does anyone know how to do this with xelatex?
Thanks
Several of the solutions you linked to are clearly unsuitable for use with XeLaTeX. However, morbusg's solution works fine for me:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
% ref https://tex.stackexchange.com/a/108348/ by morbusg
\special{pdf:bcolor [.8 0 .8] [0]} % two arrays: first defines fill, second the stroke.
% If array has one entry, it's meaning grayscale, if three: RGB, if four: CMYK.
\special{pdf:literal direct .4 w 2 Tr} % .4 here is the stroke width
Here is some text.
\end{document}

So you need to say more about what doesn't work or your configuration if you don't get the same results.
0 Tr (which is fill only), but I'm not sure this is the optimal solution.
– Artefact2
Feb 16 '17 at 01:26
\special{pdf:bcolor [0] [0]} \special{pdf:literal direct 0 w 0 Tr} seems to work. But I don't know if it is right. Your best bet is to comment on the linked answer and ask a new question if that doesn't get a response.
– cfr
Feb 16 '17 at 02:00
\special{pdf:bcolor 0} is probably better. See the slides linked in the comment on the original answer at http://project.ktug.org/dvipdfmx/doc/tug2005.pdf. Or it may not be. I know less about this than you do.
– cfr
Feb 16 '17 at 02:12