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

标签:
latex高亮highlightlandscape |
分类: 其他软件及电子产品 |
highlight, 高亮:
\usepackage{soul,color}
双倍行距:
\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 用了\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}
}
前一篇:Latex-标题左对齐, 加粗
后一篇:Latex 添加 R code