New answers tagged

0

I came around \lower and \raise TeX "primitives" here at https://www.tug.org/utilities/plain/cseq.html. And manually lower and raise a box in the \overset works fine for me. \overset{\lower.5em\hbox{aaa}}{bbb}


3

You can use the UprightFeatures to limit the effect only to the upright fonts. \documentclass{article} \usepackage{fontspec} \directlua{ fonts.handlers.otf.addfeature { name = "ktest", { type = "kern", data = { ["A"] = { ["V"] = -1000 }, } }, "extra kerns" } } \setmainfont[UprightFeatures={RawFeature=+...


5

I couldn't resist to propose a small variant to Steven B. Segletes' solution using a font which has contextual historic S (EBGaramond doesn't, unfortunately), and a centred dot not on the base line. It compiles with xelatex or lualatex.. \documentclass[12pt]{article} \usepackage{stackengine} \usepackage{fontspec} \setmainfont{Sabon Next LT Pro} \...


9

Credit to Joseph at Detect which text "mode" (normal, italic, bold, etc.) is currently in use? for helping to determine if in italic shape. If so, an extra kern is applied to the over-script (relative to the dot below) to make it aesthetically compatible with italic shape. Note that I chose to center the dot under the first letter of the over-...


12

Centering is easy; the collision is cured by \/. \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage{ebgaramond} \newcommand{\oa}[1]{% \/{\ooalign{\textsuperscript{#1}\cr\hidewidth.\hidewidth\cr}}% } \begin{document} M\oa{o} Salazar, Villan\oa{co} al SS\oa{mo} a 8 {\itshape M\oa{o} Salazar, Villan\oa{co} al SS\oa{mo} a 8} \end{...


4

Yes, this can certainly be done. Try the following: \documentclass{article} \thispagestyle{empty} \newlength{\dotcenterwd} \def\dotcenter#1{% \settowidth{\dotcenterwd}{\textsuperscript{#1}}% \hbox to\dotcenterwd{\textsuperscript{#1}}% \kern-\dotcenterwd% \hbox to\dotcenterwd{\hfil.\hfil}% }% \begin{document} \Huge M\dotcenter{o} \textit{M\...


13

\makeatletter %% access private macros L%% print an L \kern -.36em%% add a negative kern {%% open a group \sbox \z@ T%% load box 0 with a T \vbox to\ht \z@ {%% start a vertical box as high as box 0 \hbox {% start a horizontal box \check@mathfonts%% ensure the math fonts sizes are set up at the current font size \fontsize \sf@size \z@%% ...


4

One more with TikZ: \documentclass[tikz,border=5mm]{standalone} \begin{document} \begin{tikzpicture}[ rdt/.style args = {#1/#2}%rdt: red dot text {shape=circle, fill=red, minimum size=#2, inner sep=0.2ex, label={[font=\sffamily,text depth=0.25ex]center:#1}, node contents={\vphantom{gh}}} ] \node[rdt=Text/2ex]; \...


6

Using tikzmark, we can put a mark on the page where you want the circle to be and then draw it "afterwards", only using a bit of shipout wizardry the "afterwards" magically becomes "before". (Note: I'm not an expert in shipout matters so I don't guarantee that this bit of shipouttery doesn't break something crucial. Others may be able to fix or reassure on ...


3

Here is a short solution with pstricks and xstring. I define a \InsertCircle command, with an optional argument (the number of characters before the circle is inserted) and a mandatory argument (the string). \documentclass[12pt, x11names, border=3pt]{standalone} \usepackage{pst-node} \usepackage{auto-pst-pdf} \usepackage{xstring} \newcommand\InsertCircle[2]...


7

Use picture mode. \documentclass{article} \usepackage{xcolor} \begin{document} \begin{picture}(0,0) \put(0,3){\color{red}\circle*{50}} \put(0,0){\hbox to 0pt{\hss Text\hss}} \end{picture} \end{document}


3

Here is a non-ideal, yet simple method, using the syntax requested by the OP, Te\myredcircle{}xt. It draws the circle with opacity, so that what was written prior (the "Te" in this case) can still be seen, though occluded. That may or may not be acceptable, based on your application. As mentioned in my comment to the OP, the requested syntax is tough to ...



Top 50 recent answers are included