How do you make your own symbol when Detexify fails?newcommand vs. DeclareMathOperatorsubseteq + circ as a single symbol (“open subset”)The mysteries of mathpaletteSymbol for a “twisted product”?Square integral symbolFinding the package of a Detexify Symbolhow do you write the grad operator?How do you make the in symbol smaller?Detexify couldn't help me find >— and —<, can you?How to make own character map?Detexify-like service where I can paste a symbolHow do you make a big Laplace Transform symbolHow to create your own integral sign with limitsCan't “detexify” this symbol for the exponential functionHow do you make this symbol in math mode?

What kind of floor tile is this?

Does an advisor owe his/her student anything? Will an advisor keep a PhD student only out of pity?

"It doesn't matter" or "it won't matter"?

How much of a Devil Fruit must be consumed to gain the power?

Circuit Analysis: Obtaining Close Loop OP - AMP Transfer function

Mimic lecturing on blackboard, facing audience

Does Doodling or Improvising on the Piano Have Any Benefits?

Biological Blimps: Propulsion

US tourist/student visa

When were female captains banned from Starfleet?

How could a planet have erratic days?

Delete multiple columns using awk or sed

Is this toilet slogan correct usage of the English language?

What is the highest possible scrabble score for placing a single tile

Can I say "fingers" when referring to toes?

How much theory knowledge is actually used while playing?

How do I tell my boss that I'm quitting soon, especially given that a colleague just left this week

Can I turn my anal-retentiveness into a career?

What fields between the rationals and the reals allow a good notion of 2D distance?

Why do ¬, ∀ and ∃ have the same precedence?

How to convince somebody that he is fit for something else, but not this job?

Has any country ever had 2 former presidents in jail simultaneously?

awk assign to multiple variables at once

What is the English pronunciation of "pain au chocolat"?



How do you make your own symbol when Detexify fails?


newcommand vs. DeclareMathOperatorsubseteq + circ as a single symbol (“open subset”)The mysteries of mathpaletteSymbol for a “twisted product”?Square integral symbolFinding the package of a Detexify Symbolhow do you write the grad operator?How do you make the in symbol smaller?Detexify couldn't help me find >— and —<, can you?How to make own character map?Detexify-like service where I can paste a symbolHow do you make a big Laplace Transform symbolHow to create your own integral sign with limitsCan't “detexify” this symbol for the exponential functionHow do you make this symbol in math mode?













7















My first visit to TeX.SX came when I was looking for a symbol for a twisted product:



enter image description here



I knew about Detexify and the Comprehensive LaTeX Symbol List, but I could not find the symbol there. I tried the construction that was obvious to me, namely oversetscriptstyle simtimes, but the sim was much too high. I Googled, and found this solution by @Hendrik Vogt. Thus I learned about smash.



Later I needed the same symbol in a subscript, ultimately learning about mathchoice and ooalign. Since then I have found that many questions on TeX.SX needed similar techniques. I though it would be a good idea to have a single question whose answers gave visitors with modest LaTeX skills general guidelines on constructing new symbols using LaTeX and related systems.



So, how do you make your own symbol when Detexify fails?










share|improve this question




























    7















    My first visit to TeX.SX came when I was looking for a symbol for a twisted product:



    enter image description here



    I knew about Detexify and the Comprehensive LaTeX Symbol List, but I could not find the symbol there. I tried the construction that was obvious to me, namely oversetscriptstyle simtimes, but the sim was much too high. I Googled, and found this solution by @Hendrik Vogt. Thus I learned about smash.



    Later I needed the same symbol in a subscript, ultimately learning about mathchoice and ooalign. Since then I have found that many questions on TeX.SX needed similar techniques. I though it would be a good idea to have a single question whose answers gave visitors with modest LaTeX skills general guidelines on constructing new symbols using LaTeX and related systems.



    So, how do you make your own symbol when Detexify fails?










    share|improve this question


























      7












      7








      7


      2






      My first visit to TeX.SX came when I was looking for a symbol for a twisted product:



      enter image description here



      I knew about Detexify and the Comprehensive LaTeX Symbol List, but I could not find the symbol there. I tried the construction that was obvious to me, namely oversetscriptstyle simtimes, but the sim was much too high. I Googled, and found this solution by @Hendrik Vogt. Thus I learned about smash.



      Later I needed the same symbol in a subscript, ultimately learning about mathchoice and ooalign. Since then I have found that many questions on TeX.SX needed similar techniques. I though it would be a good idea to have a single question whose answers gave visitors with modest LaTeX skills general guidelines on constructing new symbols using LaTeX and related systems.



      So, how do you make your own symbol when Detexify fails?










      share|improve this question
















      My first visit to TeX.SX came when I was looking for a symbol for a twisted product:



      enter image description here



      I knew about Detexify and the Comprehensive LaTeX Symbol List, but I could not find the symbol there. I tried the construction that was obvious to me, namely oversetscriptstyle simtimes, but the sim was much too high. I Googled, and found this solution by @Hendrik Vogt. Thus I learned about smash.



      Later I needed the same symbol in a subscript, ultimately learning about mathchoice and ooalign. Since then I have found that many questions on TeX.SX needed similar techniques. I though it would be a good idea to have a single question whose answers gave visitors with modest LaTeX skills general guidelines on constructing new symbols using LaTeX and related systems.



      So, how do you make your own symbol when Detexify fails?







      math-mode symbols math-operators






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 3 hours ago







      Sandy G

















      asked 3 hours ago









      Sandy GSandy G

      3,7271429




      3,7271429




















          2 Answers
          2






          active

          oldest

          votes


















          7














          If it's really not in Detexify, check the Comprehensive LaTeX Symbol List to see if your symbol can be found in an existing package. Note, The Comprehensive List is long! Over 300 pages. But it is searchable, well-organized, and has a good table of contents and index.



          If that doesn't help, it may be time to design your own symbol. It's probably best to give your new symbol a name so it can be used repeatedly and transported more easily into another document.



          If your symbol will be used as an operator with limits (like an integral or summation), you should use the DeclareMathOperator or DeclareMathOperator* command. Both of these use the amsmath package. The unstarred version places sub- and superscript limits to the right of the operator; the starred version places limits above and below the operator when it is in displaystyle. To illustrate:



          DeclareMathOperator*squareopsquare
          DeclareMathOperatortriangleopbigtriangleup


          [Note that square uses the amssymb package.]



          Then the code



          [
          squareop_n=1^infty a_n qquad triangleop_n=1^infty a_n
          ]


          will produce the following output:



          enter image description here



          More information on DeclareMathOperator can be found in this answer by @Andrew Swann.



          If your symbol is not going to be used in that fashion, you should probably use newcommand.



          If your symbol is a math symbol: Is it a binary operator (such as + or times)? A binary relation (such as < or leq)? Or an ordinary math symbol (such as ! or infty)? The spacing is different for each case. Compare the three versions for the symbol times:



          newcommandreltimesmathreltimes
          newcommandbintimesmathbintimes
          newcommandchrtimestimes


          Then noindent $areltimes b newline abintimes b newline achrtimes b$ will produce the output:



          enter image description here



          Note the extra set of curly braces in chrtimes. If you remove them you'll get the same output as mathbintimes, since times is by default a binary operator. You can enclose most math symbols in to turn them into ordinary math symbols.



          Typically, binary relations have slightly more space than binary operators, and significantly more than ordinary symbols. However, the spacing changes when these appear as sub- or superscripts. All three examples above will look like A_atimes b if placed in a subscript.



          Many new symbols can be created by modifying or combining existing symbols. To rotate, scale or reflect existing symbols, use the graphicx or graphics package. Documentation is here. The commands are rotatebox, scalebox, resizebox and reflectbox.



          For example, if you want a cong symbol (≅), but with the tilde reversed, the reflectbox command from graphicx can be used. The code



          newcommandbackcongmathrelreflectbox$cong$


          will produce the desired effect with the code $Abackcong B$.



          enter image description here



          If you try using this code in a subscript (for example, $X_Abackcong B$), the new symbol will not scale down as it should. This is resolved below below using mathchoice.



          To combine multiple symbols (math or text) the ooalign command can be used. @egreg has a detailed explanation here. The basic idea is that ooalign creates a one-column table, with all rows superimposed on one another, and no padding outside the column. Each row of the "table" ends with cr. Entries can be centered in the column using hfil.



          For example, to produce



          enter image description here



          we superimpose a circ symbol with a text T character. The command



          newcommandTcircmathbin%
          ooalignhfil$circ$hfilcrhfil Thfilcr%



          together with $ATcirc B$ produces the output.



          To make sure your symbol looks right whether it's displayed, inline, script or scriptscript, you can use mathchoice. (Note mathpalette (explained here by @egreg and @Werner) can be used when the four versions are identical except for style.)



          mathchoice
          <do this if called in displaystyle>
          <do this if called in textstyle>
          <do this if called in scriptstyle>
          <do this if called in scriptscriptstyle>


          The above code will produce the corresponding output for each of the four math styles.



          To illustrate, here is a solution to the twisted product question that will adjust to scripts and scriptscripts.



          newcommandtwprodmathbinmathchoice%
          ooalignhfilraisebox1.15exmbox$scriptstylesim$hfilcrhfil$times$hfilcr%
          ooalignhfilraisebox1.15exmbox$scriptstylesim$hfilcrhfil$times$hfilcr%
          ooalignhfilraisebox.85exmbox$scriptscriptstylesim$hfilcrhfil$scriptstyletimes$hfilcr%
          ooalignhfilraisebox.65exscalebox.8$scriptscriptstylesim$hfilcrhfil$scriptscriptstyletimes$hfilcr%



          enter image description here



          S^2twprod S^2 quad F_S^2twprod S^2 quad F_K_S^2twprod S^2


          I downsized the sim in each style so it fit better over the times.



          Similar effects can be obtained using stackengine. Documentation is here.



          If you can't create your symbol by combining or modifying others, you can design your symbol from scratch using tikz, together with the ideas above. Here is an example by @marmot.






          share|improve this answer
































            2














            Another possibility with the stackinset command, from stackengine:



            documentclass[border = 2pt]standalone

            usepackagestackengine, graphicx %

            newcommandsimtimesstackMathmathbinmathchoice%
            stackinsetc0exc0.9exscalebox 0.67$sim $times%
            stackinsetc0exc0.9exscalebox 0.67$sim $times%
            stackinsetc0exc0.7exscalebox 0.67$scriptstylesim $scriptstyletimes%
            stackinsetc0exc0.6exscalebox 0.67$scriptscriptstylesim $scriptscriptstyletimes%


            begindocument

            $ S^2 simtimes S^2 quad F_S^2 simtimes S^2 quad F_K_S^2 simtimes S^2$

            enddocument


            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%2f480768%2fhow-do-you-make-your-own-symbol-when-detexify-fails%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              7














              If it's really not in Detexify, check the Comprehensive LaTeX Symbol List to see if your symbol can be found in an existing package. Note, The Comprehensive List is long! Over 300 pages. But it is searchable, well-organized, and has a good table of contents and index.



              If that doesn't help, it may be time to design your own symbol. It's probably best to give your new symbol a name so it can be used repeatedly and transported more easily into another document.



              If your symbol will be used as an operator with limits (like an integral or summation), you should use the DeclareMathOperator or DeclareMathOperator* command. Both of these use the amsmath package. The unstarred version places sub- and superscript limits to the right of the operator; the starred version places limits above and below the operator when it is in displaystyle. To illustrate:



              DeclareMathOperator*squareopsquare
              DeclareMathOperatortriangleopbigtriangleup


              [Note that square uses the amssymb package.]



              Then the code



              [
              squareop_n=1^infty a_n qquad triangleop_n=1^infty a_n
              ]


              will produce the following output:



              enter image description here



              More information on DeclareMathOperator can be found in this answer by @Andrew Swann.



              If your symbol is not going to be used in that fashion, you should probably use newcommand.



              If your symbol is a math symbol: Is it a binary operator (such as + or times)? A binary relation (such as < or leq)? Or an ordinary math symbol (such as ! or infty)? The spacing is different for each case. Compare the three versions for the symbol times:



              newcommandreltimesmathreltimes
              newcommandbintimesmathbintimes
              newcommandchrtimestimes


              Then noindent $areltimes b newline abintimes b newline achrtimes b$ will produce the output:



              enter image description here



              Note the extra set of curly braces in chrtimes. If you remove them you'll get the same output as mathbintimes, since times is by default a binary operator. You can enclose most math symbols in to turn them into ordinary math symbols.



              Typically, binary relations have slightly more space than binary operators, and significantly more than ordinary symbols. However, the spacing changes when these appear as sub- or superscripts. All three examples above will look like A_atimes b if placed in a subscript.



              Many new symbols can be created by modifying or combining existing symbols. To rotate, scale or reflect existing symbols, use the graphicx or graphics package. Documentation is here. The commands are rotatebox, scalebox, resizebox and reflectbox.



              For example, if you want a cong symbol (≅), but with the tilde reversed, the reflectbox command from graphicx can be used. The code



              newcommandbackcongmathrelreflectbox$cong$


              will produce the desired effect with the code $Abackcong B$.



              enter image description here



              If you try using this code in a subscript (for example, $X_Abackcong B$), the new symbol will not scale down as it should. This is resolved below below using mathchoice.



              To combine multiple symbols (math or text) the ooalign command can be used. @egreg has a detailed explanation here. The basic idea is that ooalign creates a one-column table, with all rows superimposed on one another, and no padding outside the column. Each row of the "table" ends with cr. Entries can be centered in the column using hfil.



              For example, to produce



              enter image description here



              we superimpose a circ symbol with a text T character. The command



              newcommandTcircmathbin%
              ooalignhfil$circ$hfilcrhfil Thfilcr%



              together with $ATcirc B$ produces the output.



              To make sure your symbol looks right whether it's displayed, inline, script or scriptscript, you can use mathchoice. (Note mathpalette (explained here by @egreg and @Werner) can be used when the four versions are identical except for style.)



              mathchoice
              <do this if called in displaystyle>
              <do this if called in textstyle>
              <do this if called in scriptstyle>
              <do this if called in scriptscriptstyle>


              The above code will produce the corresponding output for each of the four math styles.



              To illustrate, here is a solution to the twisted product question that will adjust to scripts and scriptscripts.



              newcommandtwprodmathbinmathchoice%
              ooalignhfilraisebox1.15exmbox$scriptstylesim$hfilcrhfil$times$hfilcr%
              ooalignhfilraisebox1.15exmbox$scriptstylesim$hfilcrhfil$times$hfilcr%
              ooalignhfilraisebox.85exmbox$scriptscriptstylesim$hfilcrhfil$scriptstyletimes$hfilcr%
              ooalignhfilraisebox.65exscalebox.8$scriptscriptstylesim$hfilcrhfil$scriptscriptstyletimes$hfilcr%



              enter image description here



              S^2twprod S^2 quad F_S^2twprod S^2 quad F_K_S^2twprod S^2


              I downsized the sim in each style so it fit better over the times.



              Similar effects can be obtained using stackengine. Documentation is here.



              If you can't create your symbol by combining or modifying others, you can design your symbol from scratch using tikz, together with the ideas above. Here is an example by @marmot.






              share|improve this answer





























                7














                If it's really not in Detexify, check the Comprehensive LaTeX Symbol List to see if your symbol can be found in an existing package. Note, The Comprehensive List is long! Over 300 pages. But it is searchable, well-organized, and has a good table of contents and index.



                If that doesn't help, it may be time to design your own symbol. It's probably best to give your new symbol a name so it can be used repeatedly and transported more easily into another document.



                If your symbol will be used as an operator with limits (like an integral or summation), you should use the DeclareMathOperator or DeclareMathOperator* command. Both of these use the amsmath package. The unstarred version places sub- and superscript limits to the right of the operator; the starred version places limits above and below the operator when it is in displaystyle. To illustrate:



                DeclareMathOperator*squareopsquare
                DeclareMathOperatortriangleopbigtriangleup


                [Note that square uses the amssymb package.]



                Then the code



                [
                squareop_n=1^infty a_n qquad triangleop_n=1^infty a_n
                ]


                will produce the following output:



                enter image description here



                More information on DeclareMathOperator can be found in this answer by @Andrew Swann.



                If your symbol is not going to be used in that fashion, you should probably use newcommand.



                If your symbol is a math symbol: Is it a binary operator (such as + or times)? A binary relation (such as < or leq)? Or an ordinary math symbol (such as ! or infty)? The spacing is different for each case. Compare the three versions for the symbol times:



                newcommandreltimesmathreltimes
                newcommandbintimesmathbintimes
                newcommandchrtimestimes


                Then noindent $areltimes b newline abintimes b newline achrtimes b$ will produce the output:



                enter image description here



                Note the extra set of curly braces in chrtimes. If you remove them you'll get the same output as mathbintimes, since times is by default a binary operator. You can enclose most math symbols in to turn them into ordinary math symbols.



                Typically, binary relations have slightly more space than binary operators, and significantly more than ordinary symbols. However, the spacing changes when these appear as sub- or superscripts. All three examples above will look like A_atimes b if placed in a subscript.



                Many new symbols can be created by modifying or combining existing symbols. To rotate, scale or reflect existing symbols, use the graphicx or graphics package. Documentation is here. The commands are rotatebox, scalebox, resizebox and reflectbox.



                For example, if you want a cong symbol (≅), but with the tilde reversed, the reflectbox command from graphicx can be used. The code



                newcommandbackcongmathrelreflectbox$cong$


                will produce the desired effect with the code $Abackcong B$.



                enter image description here



                If you try using this code in a subscript (for example, $X_Abackcong B$), the new symbol will not scale down as it should. This is resolved below below using mathchoice.



                To combine multiple symbols (math or text) the ooalign command can be used. @egreg has a detailed explanation here. The basic idea is that ooalign creates a one-column table, with all rows superimposed on one another, and no padding outside the column. Each row of the "table" ends with cr. Entries can be centered in the column using hfil.



                For example, to produce



                enter image description here



                we superimpose a circ symbol with a text T character. The command



                newcommandTcircmathbin%
                ooalignhfil$circ$hfilcrhfil Thfilcr%



                together with $ATcirc B$ produces the output.



                To make sure your symbol looks right whether it's displayed, inline, script or scriptscript, you can use mathchoice. (Note mathpalette (explained here by @egreg and @Werner) can be used when the four versions are identical except for style.)



                mathchoice
                <do this if called in displaystyle>
                <do this if called in textstyle>
                <do this if called in scriptstyle>
                <do this if called in scriptscriptstyle>


                The above code will produce the corresponding output for each of the four math styles.



                To illustrate, here is a solution to the twisted product question that will adjust to scripts and scriptscripts.



                newcommandtwprodmathbinmathchoice%
                ooalignhfilraisebox1.15exmbox$scriptstylesim$hfilcrhfil$times$hfilcr%
                ooalignhfilraisebox1.15exmbox$scriptstylesim$hfilcrhfil$times$hfilcr%
                ooalignhfilraisebox.85exmbox$scriptscriptstylesim$hfilcrhfil$scriptstyletimes$hfilcr%
                ooalignhfilraisebox.65exscalebox.8$scriptscriptstylesim$hfilcrhfil$scriptscriptstyletimes$hfilcr%



                enter image description here



                S^2twprod S^2 quad F_S^2twprod S^2 quad F_K_S^2twprod S^2


                I downsized the sim in each style so it fit better over the times.



                Similar effects can be obtained using stackengine. Documentation is here.



                If you can't create your symbol by combining or modifying others, you can design your symbol from scratch using tikz, together with the ideas above. Here is an example by @marmot.






                share|improve this answer



























                  7












                  7








                  7







                  If it's really not in Detexify, check the Comprehensive LaTeX Symbol List to see if your symbol can be found in an existing package. Note, The Comprehensive List is long! Over 300 pages. But it is searchable, well-organized, and has a good table of contents and index.



                  If that doesn't help, it may be time to design your own symbol. It's probably best to give your new symbol a name so it can be used repeatedly and transported more easily into another document.



                  If your symbol will be used as an operator with limits (like an integral or summation), you should use the DeclareMathOperator or DeclareMathOperator* command. Both of these use the amsmath package. The unstarred version places sub- and superscript limits to the right of the operator; the starred version places limits above and below the operator when it is in displaystyle. To illustrate:



                  DeclareMathOperator*squareopsquare
                  DeclareMathOperatortriangleopbigtriangleup


                  [Note that square uses the amssymb package.]



                  Then the code



                  [
                  squareop_n=1^infty a_n qquad triangleop_n=1^infty a_n
                  ]


                  will produce the following output:



                  enter image description here



                  More information on DeclareMathOperator can be found in this answer by @Andrew Swann.



                  If your symbol is not going to be used in that fashion, you should probably use newcommand.



                  If your symbol is a math symbol: Is it a binary operator (such as + or times)? A binary relation (such as < or leq)? Or an ordinary math symbol (such as ! or infty)? The spacing is different for each case. Compare the three versions for the symbol times:



                  newcommandreltimesmathreltimes
                  newcommandbintimesmathbintimes
                  newcommandchrtimestimes


                  Then noindent $areltimes b newline abintimes b newline achrtimes b$ will produce the output:



                  enter image description here



                  Note the extra set of curly braces in chrtimes. If you remove them you'll get the same output as mathbintimes, since times is by default a binary operator. You can enclose most math symbols in to turn them into ordinary math symbols.



                  Typically, binary relations have slightly more space than binary operators, and significantly more than ordinary symbols. However, the spacing changes when these appear as sub- or superscripts. All three examples above will look like A_atimes b if placed in a subscript.



                  Many new symbols can be created by modifying or combining existing symbols. To rotate, scale or reflect existing symbols, use the graphicx or graphics package. Documentation is here. The commands are rotatebox, scalebox, resizebox and reflectbox.



                  For example, if you want a cong symbol (≅), but with the tilde reversed, the reflectbox command from graphicx can be used. The code



                  newcommandbackcongmathrelreflectbox$cong$


                  will produce the desired effect with the code $Abackcong B$.



                  enter image description here



                  If you try using this code in a subscript (for example, $X_Abackcong B$), the new symbol will not scale down as it should. This is resolved below below using mathchoice.



                  To combine multiple symbols (math or text) the ooalign command can be used. @egreg has a detailed explanation here. The basic idea is that ooalign creates a one-column table, with all rows superimposed on one another, and no padding outside the column. Each row of the "table" ends with cr. Entries can be centered in the column using hfil.



                  For example, to produce



                  enter image description here



                  we superimpose a circ symbol with a text T character. The command



                  newcommandTcircmathbin%
                  ooalignhfil$circ$hfilcrhfil Thfilcr%



                  together with $ATcirc B$ produces the output.



                  To make sure your symbol looks right whether it's displayed, inline, script or scriptscript, you can use mathchoice. (Note mathpalette (explained here by @egreg and @Werner) can be used when the four versions are identical except for style.)



                  mathchoice
                  <do this if called in displaystyle>
                  <do this if called in textstyle>
                  <do this if called in scriptstyle>
                  <do this if called in scriptscriptstyle>


                  The above code will produce the corresponding output for each of the four math styles.



                  To illustrate, here is a solution to the twisted product question that will adjust to scripts and scriptscripts.



                  newcommandtwprodmathbinmathchoice%
                  ooalignhfilraisebox1.15exmbox$scriptstylesim$hfilcrhfil$times$hfilcr%
                  ooalignhfilraisebox1.15exmbox$scriptstylesim$hfilcrhfil$times$hfilcr%
                  ooalignhfilraisebox.85exmbox$scriptscriptstylesim$hfilcrhfil$scriptstyletimes$hfilcr%
                  ooalignhfilraisebox.65exscalebox.8$scriptscriptstylesim$hfilcrhfil$scriptscriptstyletimes$hfilcr%



                  enter image description here



                  S^2twprod S^2 quad F_S^2twprod S^2 quad F_K_S^2twprod S^2


                  I downsized the sim in each style so it fit better over the times.



                  Similar effects can be obtained using stackengine. Documentation is here.



                  If you can't create your symbol by combining or modifying others, you can design your symbol from scratch using tikz, together with the ideas above. Here is an example by @marmot.






                  share|improve this answer















                  If it's really not in Detexify, check the Comprehensive LaTeX Symbol List to see if your symbol can be found in an existing package. Note, The Comprehensive List is long! Over 300 pages. But it is searchable, well-organized, and has a good table of contents and index.



                  If that doesn't help, it may be time to design your own symbol. It's probably best to give your new symbol a name so it can be used repeatedly and transported more easily into another document.



                  If your symbol will be used as an operator with limits (like an integral or summation), you should use the DeclareMathOperator or DeclareMathOperator* command. Both of these use the amsmath package. The unstarred version places sub- and superscript limits to the right of the operator; the starred version places limits above and below the operator when it is in displaystyle. To illustrate:



                  DeclareMathOperator*squareopsquare
                  DeclareMathOperatortriangleopbigtriangleup


                  [Note that square uses the amssymb package.]



                  Then the code



                  [
                  squareop_n=1^infty a_n qquad triangleop_n=1^infty a_n
                  ]


                  will produce the following output:



                  enter image description here



                  More information on DeclareMathOperator can be found in this answer by @Andrew Swann.



                  If your symbol is not going to be used in that fashion, you should probably use newcommand.



                  If your symbol is a math symbol: Is it a binary operator (such as + or times)? A binary relation (such as < or leq)? Or an ordinary math symbol (such as ! or infty)? The spacing is different for each case. Compare the three versions for the symbol times:



                  newcommandreltimesmathreltimes
                  newcommandbintimesmathbintimes
                  newcommandchrtimestimes


                  Then noindent $areltimes b newline abintimes b newline achrtimes b$ will produce the output:



                  enter image description here



                  Note the extra set of curly braces in chrtimes. If you remove them you'll get the same output as mathbintimes, since times is by default a binary operator. You can enclose most math symbols in to turn them into ordinary math symbols.



                  Typically, binary relations have slightly more space than binary operators, and significantly more than ordinary symbols. However, the spacing changes when these appear as sub- or superscripts. All three examples above will look like A_atimes b if placed in a subscript.



                  Many new symbols can be created by modifying or combining existing symbols. To rotate, scale or reflect existing symbols, use the graphicx or graphics package. Documentation is here. The commands are rotatebox, scalebox, resizebox and reflectbox.



                  For example, if you want a cong symbol (≅), but with the tilde reversed, the reflectbox command from graphicx can be used. The code



                  newcommandbackcongmathrelreflectbox$cong$


                  will produce the desired effect with the code $Abackcong B$.



                  enter image description here



                  If you try using this code in a subscript (for example, $X_Abackcong B$), the new symbol will not scale down as it should. This is resolved below below using mathchoice.



                  To combine multiple symbols (math or text) the ooalign command can be used. @egreg has a detailed explanation here. The basic idea is that ooalign creates a one-column table, with all rows superimposed on one another, and no padding outside the column. Each row of the "table" ends with cr. Entries can be centered in the column using hfil.



                  For example, to produce



                  enter image description here



                  we superimpose a circ symbol with a text T character. The command



                  newcommandTcircmathbin%
                  ooalignhfil$circ$hfilcrhfil Thfilcr%



                  together with $ATcirc B$ produces the output.



                  To make sure your symbol looks right whether it's displayed, inline, script or scriptscript, you can use mathchoice. (Note mathpalette (explained here by @egreg and @Werner) can be used when the four versions are identical except for style.)



                  mathchoice
                  <do this if called in displaystyle>
                  <do this if called in textstyle>
                  <do this if called in scriptstyle>
                  <do this if called in scriptscriptstyle>


                  The above code will produce the corresponding output for each of the four math styles.



                  To illustrate, here is a solution to the twisted product question that will adjust to scripts and scriptscripts.



                  newcommandtwprodmathbinmathchoice%
                  ooalignhfilraisebox1.15exmbox$scriptstylesim$hfilcrhfil$times$hfilcr%
                  ooalignhfilraisebox1.15exmbox$scriptstylesim$hfilcrhfil$times$hfilcr%
                  ooalignhfilraisebox.85exmbox$scriptscriptstylesim$hfilcrhfil$scriptstyletimes$hfilcr%
                  ooalignhfilraisebox.65exscalebox.8$scriptscriptstylesim$hfilcrhfil$scriptscriptstyletimes$hfilcr%



                  enter image description here



                  S^2twprod S^2 quad F_S^2twprod S^2 quad F_K_S^2twprod S^2


                  I downsized the sim in each style so it fit better over the times.



                  Similar effects can be obtained using stackengine. Documentation is here.



                  If you can't create your symbol by combining or modifying others, you can design your symbol from scratch using tikz, together with the ideas above. Here is an example by @marmot.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 1 hour ago









                  Phelype Oleinik

                  24.6k54688




                  24.6k54688










                  answered 3 hours ago









                  Sandy GSandy G

                  3,7271429




                  3,7271429





















                      2














                      Another possibility with the stackinset command, from stackengine:



                      documentclass[border = 2pt]standalone

                      usepackagestackengine, graphicx %

                      newcommandsimtimesstackMathmathbinmathchoice%
                      stackinsetc0exc0.9exscalebox 0.67$sim $times%
                      stackinsetc0exc0.9exscalebox 0.67$sim $times%
                      stackinsetc0exc0.7exscalebox 0.67$scriptstylesim $scriptstyletimes%
                      stackinsetc0exc0.6exscalebox 0.67$scriptscriptstylesim $scriptscriptstyletimes%


                      begindocument

                      $ S^2 simtimes S^2 quad F_S^2 simtimes S^2 quad F_K_S^2 simtimes S^2$

                      enddocument


                      enter image description here






                      share|improve this answer



























                        2














                        Another possibility with the stackinset command, from stackengine:



                        documentclass[border = 2pt]standalone

                        usepackagestackengine, graphicx %

                        newcommandsimtimesstackMathmathbinmathchoice%
                        stackinsetc0exc0.9exscalebox 0.67$sim $times%
                        stackinsetc0exc0.9exscalebox 0.67$sim $times%
                        stackinsetc0exc0.7exscalebox 0.67$scriptstylesim $scriptstyletimes%
                        stackinsetc0exc0.6exscalebox 0.67$scriptscriptstylesim $scriptscriptstyletimes%


                        begindocument

                        $ S^2 simtimes S^2 quad F_S^2 simtimes S^2 quad F_K_S^2 simtimes S^2$

                        enddocument


                        enter image description here






                        share|improve this answer

























                          2












                          2








                          2







                          Another possibility with the stackinset command, from stackengine:



                          documentclass[border = 2pt]standalone

                          usepackagestackengine, graphicx %

                          newcommandsimtimesstackMathmathbinmathchoice%
                          stackinsetc0exc0.9exscalebox 0.67$sim $times%
                          stackinsetc0exc0.9exscalebox 0.67$sim $times%
                          stackinsetc0exc0.7exscalebox 0.67$scriptstylesim $scriptstyletimes%
                          stackinsetc0exc0.6exscalebox 0.67$scriptscriptstylesim $scriptscriptstyletimes%


                          begindocument

                          $ S^2 simtimes S^2 quad F_S^2 simtimes S^2 quad F_K_S^2 simtimes S^2$

                          enddocument


                          enter image description here






                          share|improve this answer













                          Another possibility with the stackinset command, from stackengine:



                          documentclass[border = 2pt]standalone

                          usepackagestackengine, graphicx %

                          newcommandsimtimesstackMathmathbinmathchoice%
                          stackinsetc0exc0.9exscalebox 0.67$sim $times%
                          stackinsetc0exc0.9exscalebox 0.67$sim $times%
                          stackinsetc0exc0.7exscalebox 0.67$scriptstylesim $scriptstyletimes%
                          stackinsetc0exc0.6exscalebox 0.67$scriptscriptstylesim $scriptscriptstyletimes%


                          begindocument

                          $ S^2 simtimes S^2 quad F_S^2 simtimes S^2 quad F_K_S^2 simtimes S^2$

                          enddocument


                          enter image description here







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 1 hour ago









                          BernardBernard

                          173k776205




                          173k776205



























                              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%2f480768%2fhow-do-you-make-your-own-symbol-when-detexify-fails%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

                              Андора Зьмест Гісторыя | Палітыка | Адміністрацыйны падзел | Геаграфія | Эканоміка | Дэмаграфія | Крыніцы | Вонкавыя спасылкі | Навігацыйнае мэню"CIA World Factbook entry: Andorra"."Andorra 2008, Departament d'estadística d'Andorra"Андорарр

                              J. J. Abrams Índice Traxectoria | Filmografía | Premios | Notas | Véxase tamén | Menú de navegacióne"J.J. Abrams: Biography"Arquivado"'Star Trek' sequel on track"Arquivado"J.J. Abrams Producing Samurai Jack Movie"Arquivado"EXCLUSIVE: J.J. Abrams Goes Into Warp Speed with Star Trek and Beyond"Arquivado"David Semel To Direct Jonah Nolan/J.J. Abrams' CBS Pilot 'Person Of Interest'"Arquivado"Fox orders J.J. Abrams pilot 'Alcatraz'"ArquivadoJ. J. AbramsJ. J. AbramsWorldCat81800131p24091041000XX116709414031616ma11226833654496ID052246713376222X511412nm00091900000 0001 1772 5428no98124254ID0000002883100650044xx0054597000141374297344064w64f2mjx14255303415344

                              Сэнт-Люіс Вонкавыя спасылкі | Навігацыйнае мэню38°37′38″ пн. ш. 90°11′52″ з. д. / 38.62722° пн. ш. 90.19778° з. д. / 38.62722; -90.1977838°37′38″ пн. ш. 90°11′52″ з. д. / 38.62722° пн. ш. 90.19778° з. д. / 38.62722; -90.19778stlouis-mo.govСэнт-ЛюісAnnual Estimates of the Resident Population for Incorporated Places – U.S. Census Bureau, Population Division