Creating two special characters












4















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.
enter image description here










share|improve this question























  • The command sf has been deprecated for more than 20 years. Use mathsf{R}.

    – egreg
    57 mins ago
















4















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.
enter image description here










share|improve this question























  • The command sf has been deprecated for more than 20 years. Use mathsf{R}.

    – egreg
    57 mins ago














4












4








4








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.
enter image description here










share|improve this question














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.
enter image description here







symbols characters






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 5 hours ago









yrodroyrodro

243138




243138













  • The command sf has been deprecated for more than 20 years. Use mathsf{R}.

    – egreg
    57 mins ago



















  • The command sf has been deprecated for more than 20 years. Use mathsf{R}.

    – egreg
    57 mins ago

















The command sf has been deprecated for more than 20 years. Use mathsf{R}.

– egreg
57 mins ago





The command sf has been deprecated for more than 20 years. Use mathsf{R}.

– egreg
57 mins ago










4 Answers
4






active

oldest

votes


















5














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}


enter image description here



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}


enter image description here






share|improve this answer

































    4














    Here is an option using ooalign.



    enter image description here



    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}





    share|improve this answer


























    • Not sure what's the point about ooalign. Anyway, you've better add a pair of braces around the code for RR.

      – egreg
      1 hour ago













    • 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
      1 hour ago



















    3














    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}


    enter image description here






    share|improve this answer































      2














      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}


      enter image description here






      share|improve this answer























        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
        });


        }
        });














        draft saved

        draft discarded


















        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









        5














        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}


        enter image description here



        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}


        enter image description here






        share|improve this answer






























          5














          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}


          enter image description here



          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}


          enter image description here






          share|improve this answer




























            5












            5








            5







            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}


            enter image description here



            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}


            enter image description here






            share|improve this answer















            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}


            enter image description here



            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}


            enter image description here







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 4 hours ago

























            answered 4 hours ago









            Steven B. SegletesSteven B. Segletes

            159k9204411




            159k9204411























                4














                Here is an option using ooalign.



                enter image description here



                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}





                share|improve this answer


























                • Not sure what's the point about ooalign. Anyway, you've better add a pair of braces around the code for RR.

                  – egreg
                  1 hour ago













                • 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
                  1 hour ago
















                4














                Here is an option using ooalign.



                enter image description here



                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}





                share|improve this answer


























                • Not sure what's the point about ooalign. Anyway, you've better add a pair of braces around the code for RR.

                  – egreg
                  1 hour ago













                • 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
                  1 hour ago














                4












                4








                4







                Here is an option using ooalign.



                enter image description here



                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}





                share|improve this answer















                Here is an option using ooalign.



                enter image description here



                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}






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 1 hour ago

























                answered 3 hours ago









                Sandy GSandy G

                3,7271429




                3,7271429













                • Not sure what's the point about ooalign. Anyway, you've better add a pair of braces around the code for RR.

                  – egreg
                  1 hour ago













                • 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
                  1 hour ago



















                • Not sure what's the point about ooalign. Anyway, you've better add a pair of braces around the code for RR.

                  – egreg
                  1 hour ago













                • 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
                  1 hour ago

















                Not sure what's the point about ooalign. Anyway, you've better add a pair of braces around the code for RR.

                – egreg
                1 hour ago







                Not sure what's the point about ooalign. Anyway, you've better add a pair of braces around the code for RR.

                – egreg
                1 hour ago















                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
                1 hour ago





                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
                1 hour ago











                3














                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}


                enter image description here






                share|improve this answer




























                  3














                  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}


                  enter image description here






                  share|improve this answer


























                    3












                    3








                    3







                    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}


                    enter image description here






                    share|improve this answer













                    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}


                    enter image description here







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered 5 hours ago









                    marmotmarmot

                    110k5137256




                    110k5137256























                        2














                        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}


                        enter image description here






                        share|improve this answer




























                          2














                          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}


                          enter image description here






                          share|improve this answer


























                            2












                            2








                            2







                            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}


                            enter image description here






                            share|improve this answer













                            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}


                            enter image description here







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered 58 mins ago









                            egregegreg

                            728k8819233233




                            728k8819233233






























                                draft saved

                                draft discarded




















































                                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.




                                draft saved


                                draft discarded














                                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





















































                                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







                                Popular posts from this blog

                                How to label and detect the document text images

                                Vallis Paradisi

                                Tabula Rosettana