breve under letter is not in italics when using textit












5















Because the beginning of the letter is moved a bit to the left when in italics mode, the breve also needs to move to the left,otherwise it is no longer under the letter.



documentclass{article}
usepackage{semtrans}
begin{document}
Right position: U{h}

Wrong position: textit{U{h}}
end{document}


Sample output



Any ideas how to correctly use a breve with italics?










share|improve this question

























  • Do you really want to use that package? It dates back to 1998.

    – TeXnician
    May 26 '17 at 8:38











  • I am open to suggestions for better ways to create a breve under a letter.

    – arved
    May 26 '17 at 8:46
















5















Because the beginning of the letter is moved a bit to the left when in italics mode, the breve also needs to move to the left,otherwise it is no longer under the letter.



documentclass{article}
usepackage{semtrans}
begin{document}
Right position: U{h}

Wrong position: textit{U{h}}
end{document}


Sample output



Any ideas how to correctly use a breve with italics?










share|improve this question

























  • Do you really want to use that package? It dates back to 1998.

    – TeXnician
    May 26 '17 at 8:38











  • I am open to suggestions for better ways to create a breve under a letter.

    – arved
    May 26 '17 at 8:46














5












5








5








Because the beginning of the letter is moved a bit to the left when in italics mode, the breve also needs to move to the left,otherwise it is no longer under the letter.



documentclass{article}
usepackage{semtrans}
begin{document}
Right position: U{h}

Wrong position: textit{U{h}}
end{document}


Sample output



Any ideas how to correctly use a breve with italics?










share|improve this question
















Because the beginning of the letter is moved a bit to the left when in italics mode, the breve also needs to move to the left,otherwise it is no longer under the letter.



documentclass{article}
usepackage{semtrans}
begin{document}
Right position: U{h}

Wrong position: textit{U{h}}
end{document}


Sample output



Any ideas how to correctly use a breve with italics?







italic






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 26 '17 at 9:01







arved

















asked May 26 '17 at 8:33









arvedarved

1677




1677













  • Do you really want to use that package? It dates back to 1998.

    – TeXnician
    May 26 '17 at 8:38











  • I am open to suggestions for better ways to create a breve under a letter.

    – arved
    May 26 '17 at 8:46



















  • Do you really want to use that package? It dates back to 1998.

    – TeXnician
    May 26 '17 at 8:38











  • I am open to suggestions for better ways to create a breve under a letter.

    – arved
    May 26 '17 at 8:46

















Do you really want to use that package? It dates back to 1998.

– TeXnician
May 26 '17 at 8:38





Do you really want to use that package? It dates back to 1998.

– TeXnician
May 26 '17 at 8:38













I am open to suggestions for better ways to create a breve under a letter.

– arved
May 26 '17 at 8:46





I am open to suggestions for better ways to create a breve under a letter.

– arved
May 26 '17 at 8:46










2 Answers
2






active

oldest

votes


















8














The package is old and the definition is missing a ltx@sh@ft that helps correct such positioning. A more modern definition for the U macro is



newcommand*U[1]{oalign{#1crcrhidewidthltx@sh@ft{-3ex}%
vbox to .2ex{hbox{u{}}vss}hidewidth}}


In your own file you will need to enclose this in a makeatletter...makeatother pair. If you are loading the semtrans package you will need to use renewcommand* instead.



Sample output



documentclass{article}
usepackage{semtrans}

makeatletter
renewcommand*U[1]{oalign{#1crcrhidewidthltx@sh@ft{-3ex}%
vbox to .2ex{hbox{u{}}vss}hidewidth}}
makeatother

begin{document}
Upright position: U{h}

Italic position: textit{U{h}}
end{document}


The above is modelled on the definition of the b accent defined in the LaTeX kernel, namely:



DeclareTextCommand{b}{OT1}[1]
{hmode@bgroupo@lign{relax#1crcrhidewidthltx@sh@ft{-3ex}%
vbox to.2ex{hbox{char22}vss}hidewidth}egroup}


You could thus mimic this completely and use



makeatletter
DeclareTextCommand{U}{OT1}[1]
{hmode@bgroupo@lign{relax#1crcrhidewidthltx@sh@ft{-3ex}%
vbox to.2ex{hbox{u{}}vss}hidewidth}egroup}
makeatother





share|improve this answer

































    5














    The simplest way these days is probably to use xelatex (used for the image here) or lualatex.



    enter image description here



    documentclass{article}

    usepackage{fontspec}

    begin{document}

    zzz ḫ

    textit{zzz ḫ}

    end{document}





    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%2f371759%2fbreve-under-letter-is-not-in-italics-when-using-textit%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









      8














      The package is old and the definition is missing a ltx@sh@ft that helps correct such positioning. A more modern definition for the U macro is



      newcommand*U[1]{oalign{#1crcrhidewidthltx@sh@ft{-3ex}%
      vbox to .2ex{hbox{u{}}vss}hidewidth}}


      In your own file you will need to enclose this in a makeatletter...makeatother pair. If you are loading the semtrans package you will need to use renewcommand* instead.



      Sample output



      documentclass{article}
      usepackage{semtrans}

      makeatletter
      renewcommand*U[1]{oalign{#1crcrhidewidthltx@sh@ft{-3ex}%
      vbox to .2ex{hbox{u{}}vss}hidewidth}}
      makeatother

      begin{document}
      Upright position: U{h}

      Italic position: textit{U{h}}
      end{document}


      The above is modelled on the definition of the b accent defined in the LaTeX kernel, namely:



      DeclareTextCommand{b}{OT1}[1]
      {hmode@bgroupo@lign{relax#1crcrhidewidthltx@sh@ft{-3ex}%
      vbox to.2ex{hbox{char22}vss}hidewidth}egroup}


      You could thus mimic this completely and use



      makeatletter
      DeclareTextCommand{U}{OT1}[1]
      {hmode@bgroupo@lign{relax#1crcrhidewidthltx@sh@ft{-3ex}%
      vbox to.2ex{hbox{u{}}vss}hidewidth}egroup}
      makeatother





      share|improve this answer






























        8














        The package is old and the definition is missing a ltx@sh@ft that helps correct such positioning. A more modern definition for the U macro is



        newcommand*U[1]{oalign{#1crcrhidewidthltx@sh@ft{-3ex}%
        vbox to .2ex{hbox{u{}}vss}hidewidth}}


        In your own file you will need to enclose this in a makeatletter...makeatother pair. If you are loading the semtrans package you will need to use renewcommand* instead.



        Sample output



        documentclass{article}
        usepackage{semtrans}

        makeatletter
        renewcommand*U[1]{oalign{#1crcrhidewidthltx@sh@ft{-3ex}%
        vbox to .2ex{hbox{u{}}vss}hidewidth}}
        makeatother

        begin{document}
        Upright position: U{h}

        Italic position: textit{U{h}}
        end{document}


        The above is modelled on the definition of the b accent defined in the LaTeX kernel, namely:



        DeclareTextCommand{b}{OT1}[1]
        {hmode@bgroupo@lign{relax#1crcrhidewidthltx@sh@ft{-3ex}%
        vbox to.2ex{hbox{char22}vss}hidewidth}egroup}


        You could thus mimic this completely and use



        makeatletter
        DeclareTextCommand{U}{OT1}[1]
        {hmode@bgroupo@lign{relax#1crcrhidewidthltx@sh@ft{-3ex}%
        vbox to.2ex{hbox{u{}}vss}hidewidth}egroup}
        makeatother





        share|improve this answer




























          8












          8








          8







          The package is old and the definition is missing a ltx@sh@ft that helps correct such positioning. A more modern definition for the U macro is



          newcommand*U[1]{oalign{#1crcrhidewidthltx@sh@ft{-3ex}%
          vbox to .2ex{hbox{u{}}vss}hidewidth}}


          In your own file you will need to enclose this in a makeatletter...makeatother pair. If you are loading the semtrans package you will need to use renewcommand* instead.



          Sample output



          documentclass{article}
          usepackage{semtrans}

          makeatletter
          renewcommand*U[1]{oalign{#1crcrhidewidthltx@sh@ft{-3ex}%
          vbox to .2ex{hbox{u{}}vss}hidewidth}}
          makeatother

          begin{document}
          Upright position: U{h}

          Italic position: textit{U{h}}
          end{document}


          The above is modelled on the definition of the b accent defined in the LaTeX kernel, namely:



          DeclareTextCommand{b}{OT1}[1]
          {hmode@bgroupo@lign{relax#1crcrhidewidthltx@sh@ft{-3ex}%
          vbox to.2ex{hbox{char22}vss}hidewidth}egroup}


          You could thus mimic this completely and use



          makeatletter
          DeclareTextCommand{U}{OT1}[1]
          {hmode@bgroupo@lign{relax#1crcrhidewidthltx@sh@ft{-3ex}%
          vbox to.2ex{hbox{u{}}vss}hidewidth}egroup}
          makeatother





          share|improve this answer















          The package is old and the definition is missing a ltx@sh@ft that helps correct such positioning. A more modern definition for the U macro is



          newcommand*U[1]{oalign{#1crcrhidewidthltx@sh@ft{-3ex}%
          vbox to .2ex{hbox{u{}}vss}hidewidth}}


          In your own file you will need to enclose this in a makeatletter...makeatother pair. If you are loading the semtrans package you will need to use renewcommand* instead.



          Sample output



          documentclass{article}
          usepackage{semtrans}

          makeatletter
          renewcommand*U[1]{oalign{#1crcrhidewidthltx@sh@ft{-3ex}%
          vbox to .2ex{hbox{u{}}vss}hidewidth}}
          makeatother

          begin{document}
          Upright position: U{h}

          Italic position: textit{U{h}}
          end{document}


          The above is modelled on the definition of the b accent defined in the LaTeX kernel, namely:



          DeclareTextCommand{b}{OT1}[1]
          {hmode@bgroupo@lign{relax#1crcrhidewidthltx@sh@ft{-3ex}%
          vbox to.2ex{hbox{char22}vss}hidewidth}egroup}


          You could thus mimic this completely and use



          makeatletter
          DeclareTextCommand{U}{OT1}[1]
          {hmode@bgroupo@lign{relax#1crcrhidewidthltx@sh@ft{-3ex}%
          vbox to.2ex{hbox{u{}}vss}hidewidth}egroup}
          makeatother






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited May 26 '17 at 8:56

























          answered May 26 '17 at 8:50









          Andrew SwannAndrew Swann

          76.7k9128325




          76.7k9128325























              5














              The simplest way these days is probably to use xelatex (used for the image here) or lualatex.



              enter image description here



              documentclass{article}

              usepackage{fontspec}

              begin{document}

              zzz ḫ

              textit{zzz ḫ}

              end{document}





              share|improve this answer






























                5














                The simplest way these days is probably to use xelatex (used for the image here) or lualatex.



                enter image description here



                documentclass{article}

                usepackage{fontspec}

                begin{document}

                zzz ḫ

                textit{zzz ḫ}

                end{document}





                share|improve this answer




























                  5












                  5








                  5







                  The simplest way these days is probably to use xelatex (used for the image here) or lualatex.



                  enter image description here



                  documentclass{article}

                  usepackage{fontspec}

                  begin{document}

                  zzz ḫ

                  textit{zzz ḫ}

                  end{document}





                  share|improve this answer















                  The simplest way these days is probably to use xelatex (used for the image here) or lualatex.



                  enter image description here



                  documentclass{article}

                  usepackage{fontspec}

                  begin{document}

                  zzz ḫ

                  textit{zzz ḫ}

                  end{document}






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited May 26 '17 at 9:13

























                  answered May 26 '17 at 8:54









                  David CarlisleDavid Carlisle

                  484k4111171859




                  484k4111171859






























                      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%2f371759%2fbreve-under-letter-is-not-in-italics-when-using-textit%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 change which sound is reproduced for terminal bell?

                      Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                      Can I use Tabulator js library in my java Spring + Thymeleaf project?