Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么把每段的首字符大写强调? #56

Closed
kuku1993 opened this issue Sep 16, 2019 · 1 comment
Closed

怎么把每段的首字符大写强调? #56

kuku1993 opened this issue Sep 16, 2019 · 1 comment

Comments

@kuku1993
Copy link

首字符大写.zip

@Liam0205
Copy link
Contributor

Liam0205 commented Sep 16, 2019

@kuku1993

常见需求,建议自己搜索。这个功能叫做「首字下沉」。

https://www.zhihu.com/question/29118898

\documentclass{article}
\usepackage{lettrine}
\begin{document}
\lettrine[lines=2]{T}{HERE} has been considerable interest in solving the convex unconstrained optmization problem.
\end{document}

附一个 Plain TeX 风格的解法。

\documentclass{article}
\newcommand{\resizefont}[1]{\fontsize{#1}{#1}\selectfont}
\begin{document}
\noindent\hangafter-2\hangindent18pt
\smash{\lower10pt\hbox to 0pt{\hskip-\hangindent\resizefont{35pt}\selectfont T\hfill}}%
{HERE}
has been considerable interest in solving the convex unconstrained optmization problem.
\end{document}

@stone-zeng stone-zeng changed the title 怎么每段的首字符大写强调? 怎么把每段的首字符大写强调? Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants