whutug / course-report Goto Github PK
View Code? Open in Web Editor NEW课程报告模板
License: MIT License
课程报告模板
License: MIT License
example/cover-example3.tex
中使用了 {{}, 赵六},
来排版出换行的效果:
course-report/example/cover-example3.tex
Lines 12 to 19 in 13f0dc0
但作为模版来说,我并不建议这样处理。
模版具有传播性,可能这里传来传去,模版的手册可能会丢失,即使有模版手册,不能保证每个用户都能完整地看一遍手册(这是 LaTeX 模版的普遍现状),所以这个换行方法不能确保每个用户都知道。
还有一点,其实这个从某种角度也违背了”内容和样式分离”的**,因为作为一个好的模版来讲,用户要做的是输入内容,仅此而已。
第一个想法是用 \parbox
,但是这个就需要固定宽度,可能不太好。
可以尝试用 varwidth
环境来获得“弹性最大宽度“
\documentclass{ctexart}
\usepackage{varwidth}
\usepackage{xeCJKfntef}
\begin{document}
组员:
\begin{varwidth}[t]{0.5\textwidth}
\CJKunderline*{张三、李四、王五、赵六}
\end{varwidth}
组员:
\begin{varwidth}[t]{0.5\textwidth}
\centering
\CJKunderline*{张三、李四、王五 \\ 赵六}
\end{varwidth}
\end{document}
如果换行后还要是整行的下划线,可以参考我的那个 CCNUthesis
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.