Creating two special characters The 2019 Stack Overflow Developer Survey Results Are InSpecial...
The phrase "to the numbers born"?
For what reasons would an animal species NOT cross a *horizontal* land bridge?
What do hard-Brexiteers want with respect to the Irish border?
I am an eight letter word. What am I?
Is bread bad for ducks?
What is preventing me from simply constructing a hash that's lower than the current target?
How come people say “Would of”?
How do PCB vias affect signal quality?
Button changing its text & action. Good or terrible?
Ubuntu Server install with full GUI
Deal with toxic manager when you can't quit
How can I add encounters in the Lost Mine of Phandelver campaign without giving PCs too much XP?
Falsification in Math vs Science
Why couldn't they take pictures of a closer black hole?
Cooking pasta in a water boiler
Unitary representations of finite groups over finite fields
Old scifi movie from the 50s or 60s with men in solid red uniforms who interrogate a spy from the past
Can a flute soloist sit?
Finding the area between two curves with Integrate
How do I free up internal storage if I don't have any apps downloaded?
How to charge AirPods to keep battery healthy?
Can you cast a spell on someone in the Ethereal Plane, if you are on the Material Plane and have the True Seeing spell active?
Is there a way to generate a uniformly distributed point on a sphere from a fixed amount of random real numbers?
Why are there uneven bright areas in this photo of black hole?
Creating two special characters
The 2019 Stack Overflow Developer Survey Results Are InSpecial characters in KileHandling of special LaTeX characters in textSpecial charactersSpecial characters in input fileSpecial characters in graphics filenamesUse ONLY two Chinese charactersIgnoring LATEX special charactersSpecial characters using XeLatex (š,č,ž)Remove special charactersTwo special characters
In a paper I'm writing, there are words using the alphabet ${{sf D,R}}$. It will be very convenient to add ornated versions as in the picture below, but I have no idea how to create something that is scalable and can be used in text (as opposed to being an included image); hence, no included code.
The little circles can be bullets, and are about flush with the top/bottom of their respective letters, and could be larger than shown.
symbols characters
add a comment |
In a paper I'm writing, there are words using the alphabet ${{sf D,R}}$. It will be very convenient to add ornated versions as in the picture below, but I have no idea how to create something that is scalable and can be used in text (as opposed to being an included image); hence, no included code.
The little circles can be bullets, and are about flush with the top/bottom of their respective letters, and could be larger than shown.
symbols characters
The commandsf
has been deprecated for more than 20 years. Usemathsf{R}
.
– egreg
Mar 21 at 22:11
add a comment |
In a paper I'm writing, there are words using the alphabet ${{sf D,R}}$. It will be very convenient to add ornated versions as in the picture below, but I have no idea how to create something that is scalable and can be used in text (as opposed to being an included image); hence, no included code.
The little circles can be bullets, and are about flush with the top/bottom of their respective letters, and could be larger than shown.
symbols characters
In a paper I'm writing, there are words using the alphabet ${{sf D,R}}$. It will be very convenient to add ornated versions as in the picture below, but I have no idea how to create something that is scalable and can be used in text (as opposed to being an included image); hence, no included code.
The little circles can be bullets, and are about flush with the top/bottom of their respective letters, and could be larger than shown.
symbols characters
symbols characters
asked Mar 21 at 17:59
yrodroyrodro
243138
243138
The commandsf
has been deprecated for more than 20 years. Usemathsf{R}
.
– egreg
Mar 21 at 22:11
add a comment |
The commandsf
has been deprecated for more than 20 years. Usemathsf{R}
.
– egreg
Mar 21 at 22:11
The command
sf
has been deprecated for more than 20 years. Use mathsf{R}
.– egreg
Mar 21 at 22:11
The command
sf
has been deprecated for more than 20 years. Use mathsf{R}
.– egreg
Mar 21 at 22:11
add a comment |
4 Answers
4
active
oldest
votes
documentclass{article}
usepackage{stackengine}
newcommanddotR{stackinset{r}{-.11em}{b}{}{.}{textsf{R}}kern0.075em}
newcommanddotD{kern.06emstackinset{l}{-0.06em}{t}{}{.}{textsf{D}}}
begin{document}
dotRdotD {LargedotRdotD}
end{document}
I added kerning to account for the extra width. However, if you prefer the original kerning of R and D,
documentclass{article}
usepackage{stackengine}
newcommanddotR{stackinset{r}{-.11em}{b}{}{.}{textsf{R}}}
newcommanddotD{stackinset{l}{-0.06em}{t}{}{.}{textsf{D}}}
begin{document}
dotRdotD {LargedotRdotD}
sffamily RD{Large RD}
end{document}
add a comment |
You can always patch things together.
documentclass{article}
newcommand{OrnatedD}{raisebox{1.35ex}{.}hspace*{-0.22em}textsf{D}}
newcommand{OrnatedR}{textsf{R}hspace*{-0.15em}.}
begin{document}
OrnatedD~OrnatedR {Large OrnatedD~OrnatedR}
end{document}
add a comment |
Here is an option using ooalign
.
documentclass{article}
usepackage{graphicx}
newcommandRR{{ooalign{textsf{R}kern.107emcrhfil.cr}}}
newcommandDD{reflectbox{rotatebox[origin=c]{180}{ooalign{kern.04emtextsf{D}cr.hfilcr}}}}
begin{document}
RRDD {LargeRRDD} {HugeRRDD}
end{document}
Not sure what's the point aboutooalign
. Anyway, you've better add a pair of braces around the code forRR
.
– egreg
Mar 21 at 21:34
Thanks for the reminder @egreg. Just putting another option out there. @Steven already did it a more intuitive way. Is there a reason to avoidooalign
? Or just no compelling reason to use it in this case?
– Sandy G
Mar 21 at 21:42
add a comment |
I prefer letting TeX doing the calculations. ;-)
Just the kerning needs optical adjustment.
documentclass{article}
usepackage{graphicx}
% a general purpose macro
newcommand{xmathpalette}[2]{mathchoice
{#1displaystyletextfont{#2}}%
{#1textstyletextfont{#2}}%
{#1scriptstylescriptfont{#2}}%
{#1scriptscriptstylescriptscriptfont{#2}}%
}
makeatletter
newcommand{Ro}{mathsf{R}mkern-1.7mu{xmathpaletteR@orelax}}
newcommand{Do}{mathsf{xmathpaletteD@orelaxmkern-2.7mu D}}
newcommand{R@o}[3]{%
scalebox{0.3}{%
raisebox{dimexprheight-2fontdimen22#22}{%
$m@th#1bullet$%
}%
}%
}
newcommand{D@o}[3]{%
raisebox{fontcharht#2fam`D}{%
scalebox{0.3}{%
raisebox{-height}{$m@th#1bullet$}%
}%
}%
}
makeatother
begin{document}
$Ro+Do_{Ro+Do}$
{Large $Ro$ $Do$}
end{document}
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f480737%2fcreating-two-special-characters%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
documentclass{article}
usepackage{stackengine}
newcommanddotR{stackinset{r}{-.11em}{b}{}{.}{textsf{R}}kern0.075em}
newcommanddotD{kern.06emstackinset{l}{-0.06em}{t}{}{.}{textsf{D}}}
begin{document}
dotRdotD {LargedotRdotD}
end{document}
I added kerning to account for the extra width. However, if you prefer the original kerning of R and D,
documentclass{article}
usepackage{stackengine}
newcommanddotR{stackinset{r}{-.11em}{b}{}{.}{textsf{R}}}
newcommanddotD{stackinset{l}{-0.06em}{t}{}{.}{textsf{D}}}
begin{document}
dotRdotD {LargedotRdotD}
sffamily RD{Large RD}
end{document}
add a comment |
documentclass{article}
usepackage{stackengine}
newcommanddotR{stackinset{r}{-.11em}{b}{}{.}{textsf{R}}kern0.075em}
newcommanddotD{kern.06emstackinset{l}{-0.06em}{t}{}{.}{textsf{D}}}
begin{document}
dotRdotD {LargedotRdotD}
end{document}
I added kerning to account for the extra width. However, if you prefer the original kerning of R and D,
documentclass{article}
usepackage{stackengine}
newcommanddotR{stackinset{r}{-.11em}{b}{}{.}{textsf{R}}}
newcommanddotD{stackinset{l}{-0.06em}{t}{}{.}{textsf{D}}}
begin{document}
dotRdotD {LargedotRdotD}
sffamily RD{Large RD}
end{document}
add a comment |
documentclass{article}
usepackage{stackengine}
newcommanddotR{stackinset{r}{-.11em}{b}{}{.}{textsf{R}}kern0.075em}
newcommanddotD{kern.06emstackinset{l}{-0.06em}{t}{}{.}{textsf{D}}}
begin{document}
dotRdotD {LargedotRdotD}
end{document}
I added kerning to account for the extra width. However, if you prefer the original kerning of R and D,
documentclass{article}
usepackage{stackengine}
newcommanddotR{stackinset{r}{-.11em}{b}{}{.}{textsf{R}}}
newcommanddotD{stackinset{l}{-0.06em}{t}{}{.}{textsf{D}}}
begin{document}
dotRdotD {LargedotRdotD}
sffamily RD{Large RD}
end{document}
documentclass{article}
usepackage{stackengine}
newcommanddotR{stackinset{r}{-.11em}{b}{}{.}{textsf{R}}kern0.075em}
newcommanddotD{kern.06emstackinset{l}{-0.06em}{t}{}{.}{textsf{D}}}
begin{document}
dotRdotD {LargedotRdotD}
end{document}
I added kerning to account for the extra width. However, if you prefer the original kerning of R and D,
documentclass{article}
usepackage{stackengine}
newcommanddotR{stackinset{r}{-.11em}{b}{}{.}{textsf{R}}}
newcommanddotD{stackinset{l}{-0.06em}{t}{}{.}{textsf{D}}}
begin{document}
dotRdotD {LargedotRdotD}
sffamily RD{Large RD}
end{document}
edited Mar 21 at 18:57
answered Mar 21 at 18:12
Steven B. SegletesSteven B. Segletes
161k9206417
161k9206417
add a comment |
add a comment |
You can always patch things together.
documentclass{article}
newcommand{OrnatedD}{raisebox{1.35ex}{.}hspace*{-0.22em}textsf{D}}
newcommand{OrnatedR}{textsf{R}hspace*{-0.15em}.}
begin{document}
OrnatedD~OrnatedR {Large OrnatedD~OrnatedR}
end{document}
add a comment |
You can always patch things together.
documentclass{article}
newcommand{OrnatedD}{raisebox{1.35ex}{.}hspace*{-0.22em}textsf{D}}
newcommand{OrnatedR}{textsf{R}hspace*{-0.15em}.}
begin{document}
OrnatedD~OrnatedR {Large OrnatedD~OrnatedR}
end{document}
add a comment |
You can always patch things together.
documentclass{article}
newcommand{OrnatedD}{raisebox{1.35ex}{.}hspace*{-0.22em}textsf{D}}
newcommand{OrnatedR}{textsf{R}hspace*{-0.15em}.}
begin{document}
OrnatedD~OrnatedR {Large OrnatedD~OrnatedR}
end{document}
You can always patch things together.
documentclass{article}
newcommand{OrnatedD}{raisebox{1.35ex}{.}hspace*{-0.22em}textsf{D}}
newcommand{OrnatedR}{textsf{R}hspace*{-0.15em}.}
begin{document}
OrnatedD~OrnatedR {Large OrnatedD~OrnatedR}
end{document}
answered Mar 21 at 18:09
marmotmarmot
117k5150283
117k5150283
add a comment |
add a comment |
Here is an option using ooalign
.
documentclass{article}
usepackage{graphicx}
newcommandRR{{ooalign{textsf{R}kern.107emcrhfil.cr}}}
newcommandDD{reflectbox{rotatebox[origin=c]{180}{ooalign{kern.04emtextsf{D}cr.hfilcr}}}}
begin{document}
RRDD {LargeRRDD} {HugeRRDD}
end{document}
Not sure what's the point aboutooalign
. Anyway, you've better add a pair of braces around the code forRR
.
– egreg
Mar 21 at 21:34
Thanks for the reminder @egreg. Just putting another option out there. @Steven already did it a more intuitive way. Is there a reason to avoidooalign
? Or just no compelling reason to use it in this case?
– Sandy G
Mar 21 at 21:42
add a comment |
Here is an option using ooalign
.
documentclass{article}
usepackage{graphicx}
newcommandRR{{ooalign{textsf{R}kern.107emcrhfil.cr}}}
newcommandDD{reflectbox{rotatebox[origin=c]{180}{ooalign{kern.04emtextsf{D}cr.hfilcr}}}}
begin{document}
RRDD {LargeRRDD} {HugeRRDD}
end{document}
Not sure what's the point aboutooalign
. Anyway, you've better add a pair of braces around the code forRR
.
– egreg
Mar 21 at 21:34
Thanks for the reminder @egreg. Just putting another option out there. @Steven already did it a more intuitive way. Is there a reason to avoidooalign
? Or just no compelling reason to use it in this case?
– Sandy G
Mar 21 at 21:42
add a comment |
Here is an option using ooalign
.
documentclass{article}
usepackage{graphicx}
newcommandRR{{ooalign{textsf{R}kern.107emcrhfil.cr}}}
newcommandDD{reflectbox{rotatebox[origin=c]{180}{ooalign{kern.04emtextsf{D}cr.hfilcr}}}}
begin{document}
RRDD {LargeRRDD} {HugeRRDD}
end{document}
Here is an option using ooalign
.
documentclass{article}
usepackage{graphicx}
newcommandRR{{ooalign{textsf{R}kern.107emcrhfil.cr}}}
newcommandDD{reflectbox{rotatebox[origin=c]{180}{ooalign{kern.04emtextsf{D}cr.hfilcr}}}}
begin{document}
RRDD {LargeRRDD} {HugeRRDD}
end{document}
edited Mar 21 at 21:35
answered Mar 21 at 19:20
Sandy GSandy G
4,3251635
4,3251635
Not sure what's the point aboutooalign
. Anyway, you've better add a pair of braces around the code forRR
.
– egreg
Mar 21 at 21:34
Thanks for the reminder @egreg. Just putting another option out there. @Steven already did it a more intuitive way. Is there a reason to avoidooalign
? Or just no compelling reason to use it in this case?
– Sandy G
Mar 21 at 21:42
add a comment |
Not sure what's the point aboutooalign
. Anyway, you've better add a pair of braces around the code forRR
.
– egreg
Mar 21 at 21:34
Thanks for the reminder @egreg. Just putting another option out there. @Steven already did it a more intuitive way. Is there a reason to avoidooalign
? Or just no compelling reason to use it in this case?
– Sandy G
Mar 21 at 21:42
Not sure what's the point about
ooalign
. Anyway, you've better add a pair of braces around the code for RR
.– egreg
Mar 21 at 21:34
Not sure what's the point about
ooalign
. Anyway, you've better add a pair of braces around the code for RR
.– egreg
Mar 21 at 21:34
Thanks for the reminder @egreg. Just putting another option out there. @Steven already did it a more intuitive way. Is there a reason to avoid
ooalign
? Or just no compelling reason to use it in this case?– Sandy G
Mar 21 at 21:42
Thanks for the reminder @egreg. Just putting another option out there. @Steven already did it a more intuitive way. Is there a reason to avoid
ooalign
? Or just no compelling reason to use it in this case?– Sandy G
Mar 21 at 21:42
add a comment |
I prefer letting TeX doing the calculations. ;-)
Just the kerning needs optical adjustment.
documentclass{article}
usepackage{graphicx}
% a general purpose macro
newcommand{xmathpalette}[2]{mathchoice
{#1displaystyletextfont{#2}}%
{#1textstyletextfont{#2}}%
{#1scriptstylescriptfont{#2}}%
{#1scriptscriptstylescriptscriptfont{#2}}%
}
makeatletter
newcommand{Ro}{mathsf{R}mkern-1.7mu{xmathpaletteR@orelax}}
newcommand{Do}{mathsf{xmathpaletteD@orelaxmkern-2.7mu D}}
newcommand{R@o}[3]{%
scalebox{0.3}{%
raisebox{dimexprheight-2fontdimen22#22}{%
$m@th#1bullet$%
}%
}%
}
newcommand{D@o}[3]{%
raisebox{fontcharht#2fam`D}{%
scalebox{0.3}{%
raisebox{-height}{$m@th#1bullet$}%
}%
}%
}
makeatother
begin{document}
$Ro+Do_{Ro+Do}$
{Large $Ro$ $Do$}
end{document}
add a comment |
I prefer letting TeX doing the calculations. ;-)
Just the kerning needs optical adjustment.
documentclass{article}
usepackage{graphicx}
% a general purpose macro
newcommand{xmathpalette}[2]{mathchoice
{#1displaystyletextfont{#2}}%
{#1textstyletextfont{#2}}%
{#1scriptstylescriptfont{#2}}%
{#1scriptscriptstylescriptscriptfont{#2}}%
}
makeatletter
newcommand{Ro}{mathsf{R}mkern-1.7mu{xmathpaletteR@orelax}}
newcommand{Do}{mathsf{xmathpaletteD@orelaxmkern-2.7mu D}}
newcommand{R@o}[3]{%
scalebox{0.3}{%
raisebox{dimexprheight-2fontdimen22#22}{%
$m@th#1bullet$%
}%
}%
}
newcommand{D@o}[3]{%
raisebox{fontcharht#2fam`D}{%
scalebox{0.3}{%
raisebox{-height}{$m@th#1bullet$}%
}%
}%
}
makeatother
begin{document}
$Ro+Do_{Ro+Do}$
{Large $Ro$ $Do$}
end{document}
add a comment |
I prefer letting TeX doing the calculations. ;-)
Just the kerning needs optical adjustment.
documentclass{article}
usepackage{graphicx}
% a general purpose macro
newcommand{xmathpalette}[2]{mathchoice
{#1displaystyletextfont{#2}}%
{#1textstyletextfont{#2}}%
{#1scriptstylescriptfont{#2}}%
{#1scriptscriptstylescriptscriptfont{#2}}%
}
makeatletter
newcommand{Ro}{mathsf{R}mkern-1.7mu{xmathpaletteR@orelax}}
newcommand{Do}{mathsf{xmathpaletteD@orelaxmkern-2.7mu D}}
newcommand{R@o}[3]{%
scalebox{0.3}{%
raisebox{dimexprheight-2fontdimen22#22}{%
$m@th#1bullet$%
}%
}%
}
newcommand{D@o}[3]{%
raisebox{fontcharht#2fam`D}{%
scalebox{0.3}{%
raisebox{-height}{$m@th#1bullet$}%
}%
}%
}
makeatother
begin{document}
$Ro+Do_{Ro+Do}$
{Large $Ro$ $Do$}
end{document}
I prefer letting TeX doing the calculations. ;-)
Just the kerning needs optical adjustment.
documentclass{article}
usepackage{graphicx}
% a general purpose macro
newcommand{xmathpalette}[2]{mathchoice
{#1displaystyletextfont{#2}}%
{#1textstyletextfont{#2}}%
{#1scriptstylescriptfont{#2}}%
{#1scriptscriptstylescriptscriptfont{#2}}%
}
makeatletter
newcommand{Ro}{mathsf{R}mkern-1.7mu{xmathpaletteR@orelax}}
newcommand{Do}{mathsf{xmathpaletteD@orelaxmkern-2.7mu D}}
newcommand{R@o}[3]{%
scalebox{0.3}{%
raisebox{dimexprheight-2fontdimen22#22}{%
$m@th#1bullet$%
}%
}%
}
newcommand{D@o}[3]{%
raisebox{fontcharht#2fam`D}{%
scalebox{0.3}{%
raisebox{-height}{$m@th#1bullet$}%
}%
}%
}
makeatother
begin{document}
$Ro+Do_{Ro+Do}$
{Large $Ro$ $Do$}
end{document}
answered Mar 21 at 22:11
egregegreg
733k8919313254
733k8919313254
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f480737%2fcreating-two-special-characters%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The command
sf
has been deprecated for more than 20 years. Usemathsf{R}
.– egreg
Mar 21 at 22:11