Latex学习笔记

 latex中文教程-15集从入门到精通包含各种latex操作

P4 Latex的字体字号设置

\documentclass[UTF8,12pt]{article}%字体normal size 只有10、11、12磅可选

\usepackage{ctex}%用中文字体要加这个宏包
\newcommand{\myfont}{\textit{\textbf{\textsf{Fancy Text}}}}
\begin{document}

    %字体族设置(罗马字体、无衬线字体、打字机字体)
    % 字体族设置命令text***
    \textrm{Roman Family} \textsf{Sans Serif Family} \texttt{Typewriter Family}

    % **family 字体声明 声明后续字体为**字体
    %可用大括号对字体分组 限定字体声明的作用范围
    \rmfamily Roman Family {\sffamily Sans Serif Family} {\ttfamily Typewriter Family}

    \rmfamily Of course it was impossible to connect the dots looking forward when I was in college, 
    but it was very, very clear looking backwards 10 years later.

    %当遇到另一个字体声明命令时 会结束当前字体声明 启用另一个

    \sffamily Again, you can't connect the dots looking forward. 

    {\ttfamily You can only connect them looking backwards, so you have to trust that the dots will somehow connect in your future. }

    %字体系列设置(粗细、宽度)
    \textmd{Medium Series} \textbf{Boldface Series}

    {\mdseries Medium Series} {\bfseries Boldface Series}

    %字体形状(直立、斜体、伪斜体、小型大写)
    \textup{Upright Shape} \textit{Italic Shape}
    \textsl{Slanted Shape} \textsc{Small Caps Shape}

    {\upshape Upright Shape} {\itshape Italic Shape} 
    {\slshape Slanted Shape} {\scshape Small Caps Shape}
    
    %中文字体
    {\songti 宋体} \quad {\heiti 黑体} \quad {\fangsong 仿宋}
    \quad{\kaishu 楷书}

    中文字体的\textbf{粗体}与\textit{斜体}
    %粗体用黑体表示 斜体用楷书表示

    %字体大小 
    {\tiny Hello}\\ % \\表示换行
    {\scriptsize Hello}\\
    {\footnotesize Hello}\\
    {\small Hello}\\
    {\normalsize Hello}\\
    {\large Hello}\\
    {\Large Hello}\\
    {\LARGE Hello}\\
    {\huge Hello}\\
    {\Huge Hello}\\
    %字体大小是由一系列声明实现的
    %“大小”是相对于normal size的大小
    %normal size 的大小由article类的参数控制
    %文档类的参数是可选参数,可在方括号中添加
    
    %ctex中文字号设置命令
    \zihao{5}你好!% 参数-0 小初号

    \myfont
    
\end{document}

 

P5 Latex的文章结构

%开始菜单 texdoc ctex 可查看ctex宏集手册
\documentclass[UTF8]{ctexbook} %ctexart引言标题等居中排版(当然这些设置可以在ctexset里面改) article左对齐 
%ctexbook有chapter类
%\usepackage{ctex}
%设置标题的格式
\ctexset{
    section = {
        format+ = \zihao{-4} \heiti \raggedright,
        name = {,、},
        number = \chinese{section},
        beforeskip = 1.0ex plus 0.2ex minus .2ex,
        afterskip = 1.0ex plus 0.2ex minus .2ex,
        aftername = \hspace{0pt}
    },
    subsection = {
        format+ = \zihao{5} \heiti \raggedright,
        %name={\thesubsection、},
        name = {,、},
        number = \arabic{subsection},
        beforeskip = 1.0ex plus 0.2ex minus .2ex,
        afterskip = 1.0ex plus 0.2ex minus .2ex,
        aftername = \hspace{0pt}
    }
}
%正文区(文稿区)
\begin{document}
    \tableofcontents
    \chapter{绪论}
    \section{研究的目的和意义}
    \section{国内外研究现状}
    \subsection{国外研究现状}
    \subsection{国内研究现状}
    \section{研究内容}
    \section{研究方法与技术路线}
    \subsection{研究内容}
    \subsection{技术路线}

    9月7日,第60届IEEE计算机科学基础年度研讨会(FOCS 2019)最佳学生论文奖揭晓,获奖论文为来自麻省理工学院的Lijie Chen(陈立杰)和Josh Alman的合作论文Efficient Construction of Rigid Matrices Using an NP Oracle。\par 在计算机科学顶级会议FOCS 2019上,陈立杰“连中三元”,共有三篇论文入围,是入围论文最多的研究者之一。
    % \par+空格 产生新的段落
    %为了保证原文件的清晰 分段通常用插入空行来实现 不用\par 

    FOCS是计算机科学领域最顶级的国际会议,在整个理论计算机科学领域享有崇高的声望,并被公认属于难度最高的会议之一,与ACM计算理论年会(STOC)并称理论计算机科学两大顶会。\\值得一提的是,在STOC 2019上,陈立杰同样获得了最佳学生论文奖,实现了STOC和FOCS最佳学生论文奖的“梅开二度”。
    % \\只是换行 不产生新的段落 所以没有首行缩进

    \chapter{实验与结果分析}
    \section{引言}
    \section{实验方法}
    \section{实验结果}
        \subsection{数据}
        \subsection{图表}
            \subsubsection{实验条件}%加上chapter后 subsubsection 不起作用了
            \subsubsection{实验过程}
        \subsection{结果分析}
    \section{结论}
    \section{致谢}
\end{document}

 

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值