The size of character changed in fbox
The source is as in the following
documentclass[a4paper]{ctexart}
begin{document}
noindent
【
setlength{fboxsep}{0pt}
noindent
fbox{【}
end{document}
The output looks like
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
add a comment |
The source is as in the following
documentclass[a4paper]{ctexart}
begin{document}
noindent
【
setlength{fboxsep}{0pt}
noindent
fbox{【}
end{document}
The output looks like
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
If you comparex【x
andfbox{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 withdocumentclass[a4paper,fontset=windows,UTF8]{ctexart}
, I get a space preceding the character in both cases. And also if I dofbox{hbox{【}}
. Without theUTF8
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
add a comment |
The source is as in the following
documentclass[a4paper]{ctexart}
begin{document}
noindent
【
setlength{fboxsep}{0pt}
noindent
fbox{【}
end{document}
The output looks like
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
The source is as in the following
documentclass[a4paper]{ctexart}
begin{document}
noindent
【
setlength{fboxsep}{0pt}
noindent
fbox{【}
end{document}
The output looks like
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
spacing symbols fbox
edited Feb 20 at 12:07
Martin Scharrer♦
202k47645821
202k47645821
asked Feb 20 at 11:38
RichardRichard
384
384
If you comparex【x
andfbox{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 withdocumentclass[a4paper,fontset=windows,UTF8]{ctexart}
, I get a space preceding the character in both cases. And also if I dofbox{hbox{【}}
. Without theUTF8
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
add a comment |
If you comparex【x
andfbox{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 withdocumentclass[a4paper,fontset=windows,UTF8]{ctexart}
, I get a space preceding the character in both cases. And also if I dofbox{hbox{【}}
. Without theUTF8
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
add a comment |
1 Answer
1
active
oldest
votes
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}
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.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%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
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}
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.
add a comment |
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}
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.
add a comment |
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}
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.
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}
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.
answered Feb 20 at 12:11
Martin Scharrer♦Martin Scharrer
202k47645821
202k47645821
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f475813%2fthe-size-of-character-changed-in-fbox%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
If you compare
x【x
andfbox{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 dofbox{hbox{【}}
. Without theUTF8
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