Tag Info

New answers tagged

5

Put one extra pair of braces around the arrow. \documentclass{article} \usepackage{stmaryrd,xspace} \newcommand{\deref}{\ensuremath{{\rightarrowtriangle}}\xspace} \begin{document} $b\deref\mathbf{r}_S$ \end{document} BTW, what is the intention of using ensuremath and \xspace here? It is better not to use them.


3

My suggestion is to slight re-design the \tooltip syntax. The first parameter of such macro is the whole word, but the highlighted text is surrounded into second braces pair, for example: \tooltip{A{V}Atar}{avatar} If there isn't the second brace pair then the whole text is highlighted: \tooltip{tipped text}{tip} This can be implemented simply without ...


9

You can use the LetterSpace option in fontspec. It preserves kerning as you can see if you compare it with the output of Renderer=basic: \documentclass{article} \usepackage{microtype} \usepackage{fontspec} \setmainfont{LinLibertine_R}[% Extension = .otf, SmallCapsFeatures = {% LetterSpace = 10, Letters = SmallCaps}] ...


2

probably I'd just re-add the kerns explictly after measuring the text with and without the adjacent characters being separated by box boundaries. \documentclass[varwidth=true]{standalone} \newcommand\tooltip[2]{% \special{pdf:bann<</Type/Annot /Subtype/Widget /FT/Btn /Ff 65536 /H/N /TU(#2)>>}% #1% \special{pdf:eann}% } ...


0

I had the same problem using \setmathfont. Here is a minimal working example exhibiting problem and solution (using f\prime instead of f'): \documentclass[fontsize=30pt]{scrartcl} \usepackage{unicode-math} \setmathfont{Latin Modern Math} \begin{document} \[ f'\,a'\quad f\prime\,a\prime \] \end{document} Here is the output, compiled by TeX Live 2013's ...


4

An image clarifies well the issue \documentclass{article} \usepackage{polyglossia} \setmainlanguage[variant=ancient]{greek} \newfontfamily\greekfont{GFS Porson}[Ligatures = TeX] \newfontfamily\othergreekfont{GFS Didot}[Ligatures = TeX] \begin{document} \setlength{\fboxsep}{0pt} % just to show the problem \fbox{--} Οὑτωσὶ--τοίνυν \othergreekfont ...



Top 50 recent answers are included