加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

Latex TeXstudio学习笔记——常用命令

(2016-05-19 22:30:49)
标签:

latex

高亮

highlight

landscape

分类: 其他软件及电子产品
highlight, 高亮:
\usepackage{soul,color}

 three \hl{of sorghum yields}
双倍行距:

\usepackage{setspace} 

\doublespacing
调整边距(margin)
\usepackage{geometry}
\geometry{margin=1in}
or
\usepackage[margin=0.7in]{geometry}
or
\usepackage[top=0.3in, bottom=0.3in, left=0.3in, right=0.3in]{geometry}
or

\usepackage{geometry}
 \geometry{
 a4paper,
 total={170mm,257mm},
 left=20mm,
 top=20mm,
 }
左对齐:
\raggedright 


landscape:
\begin{landscape}
\end{landscape}

插入空白行:
\bigskip

\usepackage{indentfirst}
首段缩写

有时候每行右边排列残次不齐,很难看,可以这么处理:
\usepackage{ragged2e}
\justify

这是没用之前的:
http://s12/bmiddle/002dDHI1gy727CPUfLd1b&690TeXstudio学习笔记——常用命令" TITLE="Latex TeXstudio学习笔记——常用命令" />
用了\justify 之后:
http://s10/bmiddle/002dDHI1gy727CVPJSFe9&690TeXstudio学习笔记——常用命令" TITLE="Latex TeXstudio学习笔记——常用命令" />

 插入图表,\includegraphics{}可以用\usepackage{graphicx},或者\usepackage{graphics},但用后者的话可以调整图片width 和 height,用graphics package的情况下调整宽度和高度会提示:

“Missing number, treated as zero”


http://tex.stackexchange.com/questions/16519/adding-space-between-columns-in-a-table

http://tex.stackexchange.com/questions/12703/how-to-create-fixed-width-table-columns-with-text-raggedright-centered-raggedlef


\documentclass{article}

\usepackage{array}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}

\begin{document}

\begin{tabular}{| c | L{3cm} | C{3cm} | R{3cm} |}
foo &
A cell with text that wraps around, is raggedright and allows \newline
    manual line breaks &
A cell with text that wraps around, is centered and allows \newline
    manual line breaks &
A cell with text that wraps around, is raggedleft and allows \newline
    manual line breaks \\
\end{tabular}

\end{document}



-----------------------------------------------------------------------------------------------


\documentclass{ajae}

%\usepackage[T1]{fontenc}

%\usepackage[latin1]{inputenc}

%\usepackage{timesnew}

%\usepackage[margin=0.7in]{geometry}



%\usepackage[top=0.3in, bottom=0.3in, left=0.3in, right=0.3in]{geometry}

\usepackage{multido}

\usepackage{hyperref}

\usepackage{indentfirst}

\usepackage{graphicx}

\usepackage{float}

\usepackage{cleveref}

\usepackage{amsmath}

\usepackage{tabularx}

\usepackage{multirow}

\usepackage{lscape}

\usepackage{geometry}

\usepackage{array}

\usepackage{makecell}%thicken lines

\usepackage[bottom]{footmisc}

\usepackage{hyperref}

\usepackage{soul,color}

\pdfbookmark[3]{bookmarktext}{anchorname}

\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}

\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}

\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}



\geometry{margin=1in}

\hypersetup{%

       colorlinks = {true},

      urlcolor = {blue},

        linkcolor = {blue},

       citecolor = {blue},

       pdfauthor = {Jing Yi},

    pdftitle = {How Do Premium Subsidies Affect Crop Insurance Demand at Different Coverage Levels: the Case of Corn},

        pdfkeywords = {AJAE, BibTeX, LaTeX}

}

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有