zoukankan      html  css  js  c++  java
  • LaTex字体属性

    在LaTex中,一个字体有五种属性:
    (1)字体编码:
    正文字体编码:OT1、T1、EU1等
    数学字体编码:OML、OMS、OMX等
    (2)字体族:
    罗马字体:笔划起始处有装饰
    无衬线字体:笔划起始处无装饰
    打字机字体:每个字符宽度相同,又称等宽字体

     %字体族设置(罗马字体,无衬线字体,打字机字体)
       	extrm{Roman Family}quad
       	extsf{Sans Serif Family}quad
       	exttt{Typewriter Family}
       %或者用大括号进行分组,限定声明作用的范围与上面等价,声明后,其后格式一直不变,直到下一个声明出现
       
       {
    mfamily Roman Family}quad
       {sffamily Sans Serif Family}quad
       {	tfamily Typewriter Family}
       
       sffamily who are you?
       
       	tfamily what can you achieve?
    

    编译结果:

    (3)字体系列:
    粗细:
    宽度:

    %字体系列设置
       	extmd{Medium Series}quad
       	extbf{Boldface Series}
       
       {mdseries Medium Series}quad
       {fseries Boldface Series}
    

    编译结果:

    (4)字体形状:
    直立:
    斜体:
    伪斜体:
    小型大写:

     %字体形状(直立、斜体、伪斜体、小型大写)
       	extup{Upright Shape}quad
       	extit{Italic Shape}quad
       	extsl{Slant Shape}quad
       	extsc{Small Caps Shape}
       
       {upshape Upright Shape}quad
       {itshape Italic Shape}quad
       {slshape Slant Shape}quad
       {scshape Small Caps Shape}
    

    编译结果:

    在document中添加documentclass[AutoFakeBold]{article} ,即可解决汉字不加粗的问题

     %中文字体
       {songti 宋体}quad{heiti 黑体}quad{fangsong 仿宋}quad{kaishu 楷书}
       
       中文字体的	extbf{粗体}与	extit{斜体}
    

    编译结果:

    (5)字体大小:

    %字体大小\为换行符
      {	iny hello}\
      {scriptsize hello}\
      {footnotesize hello}\
      {small hello}\
      {
    ormalsize hello}\
      {large hello}\
      {Large hello}\
      {LARGE hello}\
      {huge hello}\
      {Huge hello}\
    

    编译结果:

    完整代码:

    % 导言区,进行全局设置
    documentclass[AutoFakeBold]{article} 
    
    % 导入中文宏
    usepackage{ctex}
    
    % 正文区
    egin{document}
       %字体族设置(罗马字体,无衬线字体,打字机字体)
       	extrm{Roman Family}quad
       	extsf{Sans Serif Family}quad
       	exttt{Typewriter Family}
       %或者用大括号进行分组,限定声明作用的范围与上面等价,声明后,其后格式一直不变,直到下一个声明出现
       
       {
    mfamily Roman Family}quad
       {sffamily Sans Serif Family}quad
       {	tfamily Typewriter Family}
       
       sffamily who are you?
       
       	tfamily what can you achieve?
       
       %字体系列设置
       	extmd{Medium Series}quad
       	extbf{Boldface Series}
       
       {mdseries Medium Series}quad
       {fseries Boldface Series}
       
       %字体形状(直立、斜体、伪斜体、小型大写)
       	extup{Upright Shape}quad
       	extit{Italic Shape}quad
       	extsl{Slant Shape}quad
       	extsc{Small Caps Shape}
       
       {upshape Upright Shape}quad
       {itshape Italic Shape}quad
       {slshape Slant Shape}quad
       {scshape Small Caps Shape}
       
       %中文字体
       {songti 宋体}quad{heiti 黑体}quad{fangsong 仿宋}quad{kaishu 楷书}
       
       中文字体的	extbf{粗体}与	extit{斜体}
      
      %字体大小\为换行符
      {	iny hello}\
      {scriptsize hello}\
      {footnotesize hello}\
      {small hello}\
      {
    ormalsize hello}\
      {large hello}\
      {Large hello}\
      {LARGE hello}\
      {huge hello}\
      {Huge hello}\
      
       
    end{document}
    
    

    完整结果图:

  • 相关阅读:
    solaris 10 root忘记密码的解决方法
    c程序设计--指针与数组
    photoshop之色阶的使用
    Handling Errors Exceptionally Well in C++ 在C++中良好地捕获意外的错误
    自动换行 wordbreak:breakall和wordwrap:breakword
    透明度
    position:fixed在IE6下的实现
    JavaScript教程:常用DOM操作方法,JavaScriptDOM基本操作
    30 个免费的 UI 工具箱
    去掉虚线框兼容所有浏览器
  • 原文地址:https://www.cnblogs.com/lihao-bupt/p/13191179.html
Copyright © 2011-2022 走看看