The size of character changed in fbox












1















The source is as in the following



documentclass[a4paper]{ctexart}

begin{document}
noindent


setlength{fboxsep}{0pt}
noindent
fbox{【}
end{document}


The output looks like



enter image description here



As you can see, the widths of the same character are different.



I'm using texlive 2018.48691-6 and the file is compiled with the following command



xelatex main.tex









share|improve this question

























  • If you compare x【x and fbox{x【x} you see the width is the same. It looks to me that there is some correction done at the begin of the line, maybe some microtype feature etc.

    – Martin Scharrer
    Feb 20 at 12:07











  • @MartinScharrer Yes, you are correct.

    – Richard
    Feb 20 at 12:33






  • 1





    If I compile with documentclass[a4paper,fontset=windows,UTF8]{ctexart}, I get a space preceding the character in both cases. And also if I do fbox{hbox{【}}. Without the UTF8 option I get errors.

    – egreg
    Feb 20 at 18:43








  • 1





    As far as I can see, the space is added on purpose, in order to make the symbol the same width as other Chinese characters.

    – egreg
    Feb 20 at 18:58
















1















The source is as in the following



documentclass[a4paper]{ctexart}

begin{document}
noindent


setlength{fboxsep}{0pt}
noindent
fbox{【}
end{document}


The output looks like



enter image description here



As you can see, the widths of the same character are different.



I'm using texlive 2018.48691-6 and the file is compiled with the following command



xelatex main.tex









share|improve this question

























  • If you compare x【x and fbox{x【x} you see the width is the same. It looks to me that there is some correction done at the begin of the line, maybe some microtype feature etc.

    – Martin Scharrer
    Feb 20 at 12:07











  • @MartinScharrer Yes, you are correct.

    – Richard
    Feb 20 at 12:33






  • 1





    If I compile with documentclass[a4paper,fontset=windows,UTF8]{ctexart}, I get a space preceding the character in both cases. And also if I do fbox{hbox{【}}. Without the UTF8 option I get errors.

    – egreg
    Feb 20 at 18:43








  • 1





    As far as I can see, the space is added on purpose, in order to make the symbol the same width as other Chinese characters.

    – egreg
    Feb 20 at 18:58














1












1








1








The source is as in the following



documentclass[a4paper]{ctexart}

begin{document}
noindent


setlength{fboxsep}{0pt}
noindent
fbox{【}
end{document}


The output looks like



enter image description here



As you can see, the widths of the same character are different.



I'm using texlive 2018.48691-6 and the file is compiled with the following command



xelatex main.tex









share|improve this question
















The source is as in the following



documentclass[a4paper]{ctexart}

begin{document}
noindent


setlength{fboxsep}{0pt}
noindent
fbox{【}
end{document}


The output looks like



enter image description here



As you can see, the widths of the same character are different.



I'm using texlive 2018.48691-6 and the file is compiled with the following command



xelatex main.tex






spacing symbols fbox






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 20 at 12:07









Martin Scharrer

202k47645821




202k47645821










asked Feb 20 at 11:38









RichardRichard

384




384













  • If you compare x【x and fbox{x【x} you see the width is the same. It looks to me that there is some correction done at the begin of the line, maybe some microtype feature etc.

    – Martin Scharrer
    Feb 20 at 12:07











  • @MartinScharrer Yes, you are correct.

    – Richard
    Feb 20 at 12:33






  • 1





    If I compile with documentclass[a4paper,fontset=windows,UTF8]{ctexart}, I get a space preceding the character in both cases. And also if I do fbox{hbox{【}}. Without the UTF8 option I get errors.

    – egreg
    Feb 20 at 18:43








  • 1





    As far as I can see, the space is added on purpose, in order to make the symbol the same width as other Chinese characters.

    – egreg
    Feb 20 at 18:58



















  • If you compare x【x and fbox{x【x} you see the width is the same. It looks to me that there is some correction done at the begin of the line, maybe some microtype feature etc.

    – Martin Scharrer
    Feb 20 at 12:07











  • @MartinScharrer Yes, you are correct.

    – Richard
    Feb 20 at 12:33






  • 1





    If I compile with documentclass[a4paper,fontset=windows,UTF8]{ctexart}, I get a space preceding the character in both cases. And also if I do fbox{hbox{【}}. Without the UTF8 option I get errors.

    – egreg
    Feb 20 at 18:43








  • 1





    As far as I can see, the space is added on purpose, in order to make the symbol the same width as other Chinese characters.

    – egreg
    Feb 20 at 18:58

















If you compare x【x and fbox{x【x} you see the width is the same. It looks to me that there is some correction done at the begin of the line, maybe some microtype feature etc.

– Martin Scharrer
Feb 20 at 12:07





If you compare x【x and fbox{x【x} you see the width is the same. It looks to me that there is some correction done at the begin of the line, maybe some microtype feature etc.

– Martin Scharrer
Feb 20 at 12:07













@MartinScharrer Yes, you are correct.

– Richard
Feb 20 at 12:33





@MartinScharrer Yes, you are correct.

– Richard
Feb 20 at 12:33




1




1





If I compile with documentclass[a4paper,fontset=windows,UTF8]{ctexart}, I get a space preceding the character in both cases. And also if I do fbox{hbox{【}}. Without the UTF8 option I get errors.

– egreg
Feb 20 at 18:43







If I compile with documentclass[a4paper,fontset=windows,UTF8]{ctexart}, I get a space preceding the character in both cases. And also if I do fbox{hbox{【}}. Without the UTF8 option I get errors.

– egreg
Feb 20 at 18:43






1




1





As far as I can see, the space is added on purpose, in order to make the symbol the same width as other Chinese characters.

– egreg
Feb 20 at 18:58





As far as I can see, the space is added on purpose, in order to make the symbol the same width as other Chinese characters.

– egreg
Feb 20 at 18:58










1 Answer
1






active

oldest

votes


















1














Can't tell you why this is the case but I figured out that enclosing it into a mbox first fixes this issue.



% xelatax
documentclass[a4paper]{ctexart}

setlengthfboxsep{0pt}
begin{document}
noindent


noindent
fbox{mbox{【}}%

noindent
fbox{【}%

end{document}


enter image description here





Just adding a low-level hbox{..} is also enough. Seems to me that the way fbox boxes its content does something wrong here. If you use the adjustbox package with adjustbox{frame}{【} then it works fine as well.






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%2f475813%2fthe-size-of-character-changed-in-fbox%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Can't tell you why this is the case but I figured out that enclosing it into a mbox first fixes this issue.



    % xelatax
    documentclass[a4paper]{ctexart}

    setlengthfboxsep{0pt}
    begin{document}
    noindent


    noindent
    fbox{mbox{【}}%

    noindent
    fbox{【}%

    end{document}


    enter image description here





    Just adding a low-level hbox{..} is also enough. Seems to me that the way fbox boxes its content does something wrong here. If you use the adjustbox package with adjustbox{frame}{【} then it works fine as well.






    share|improve this answer




























      1














      Can't tell you why this is the case but I figured out that enclosing it into a mbox first fixes this issue.



      % xelatax
      documentclass[a4paper]{ctexart}

      setlengthfboxsep{0pt}
      begin{document}
      noindent


      noindent
      fbox{mbox{【}}%

      noindent
      fbox{【}%

      end{document}


      enter image description here





      Just adding a low-level hbox{..} is also enough. Seems to me that the way fbox boxes its content does something wrong here. If you use the adjustbox package with adjustbox{frame}{【} then it works fine as well.






      share|improve this answer


























        1












        1








        1







        Can't tell you why this is the case but I figured out that enclosing it into a mbox first fixes this issue.



        % xelatax
        documentclass[a4paper]{ctexart}

        setlengthfboxsep{0pt}
        begin{document}
        noindent


        noindent
        fbox{mbox{【}}%

        noindent
        fbox{【}%

        end{document}


        enter image description here





        Just adding a low-level hbox{..} is also enough. Seems to me that the way fbox boxes its content does something wrong here. If you use the adjustbox package with adjustbox{frame}{【} then it works fine as well.






        share|improve this answer













        Can't tell you why this is the case but I figured out that enclosing it into a mbox first fixes this issue.



        % xelatax
        documentclass[a4paper]{ctexart}

        setlengthfboxsep{0pt}
        begin{document}
        noindent


        noindent
        fbox{mbox{【}}%

        noindent
        fbox{【}%

        end{document}


        enter image description here





        Just adding a low-level hbox{..} is also enough. Seems to me that the way fbox boxes its content does something wrong here. If you use the adjustbox package with adjustbox{frame}{【} then it works fine as well.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 20 at 12:11









        Martin ScharrerMartin Scharrer

        202k47645821




        202k47645821






























            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%2f475813%2fthe-size-of-character-changed-in-fbox%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

            Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

            ComboBox Display Member on multiple fields

            Is it possible to collect Nectar points via Trainline?