右对齐命令\raggedleft失效

2019-11-15 16:47发布

在测试对齐命令和环境是遇到问题,右对齐命令`\raggedleft`失效而左对齐命令`\raggedright`正常 ```tex \documentclass[a4paper,12pt,UTF8]{...

在测试对齐命令和环境是遇到问题,右对齐命令`\raggedleft`失效而左对齐命令`\raggedright`正常 ```tex \documentclass[a4paper,12pt,UTF8]{ctexart} \usepackage[left=3.18cm,right=3.18cm,top=2.54cm,bottom=2.54cm,showframe]{geometry}%页面设置 \pagestyle{plain} \begin{document} \noindent \fbox{\parbox[]{\linewidth}{{\raggedright 左对齐环境flushleft,左对齐命令raggedright} \\ {\raggedleft 右对齐环境flushright,右对齐命令raggedleft}} }\\ \fbox{\parbox[]{\linewidth}{{\raggedright 左对齐环境flushleft,左对齐命令raggedright} \\ {\rightline{右对齐环境flushright,右对齐命令raggedleft}}} }\\ {\raggedleft 右对齐}\\ \fbox{\parbox[]{\linewidth}{\CTEXindent {测试左对齐命令} \par {\raggedright 左对齐环境flushleft,左对齐命令raggedright}\par { 左对齐环境flushleft,左对齐命令raggedright}} }\\ \end{document} ``` 结果![运行结果](https://pics.latexstudio.net/data/images/201911/9e613007e457d75.png "运行结果")