Skip to content

Instantly share code, notes, and snippets.

@pschloss
Created March 14, 2016 20:07
Show Gist options
  • Save pschloss/564abc92af6e23e9079f to your computer and use it in GitHub Desktop.
Save pschloss/564abc92af6e23e9079f to your computer and use it in GitHub Desktop.
tex file that I need to convert to doc
\documentclass[]{article}
\usepackage{lmodern}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
\usepackage{fixltx2e} % provides \textsubscript
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\else % if luatex or xelatex
\ifxetex
\usepackage{mathspec}
\usepackage{xltxtra,xunicode}
\else
\usepackage{fontspec}
\fi
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\newcommand{\euro}{€}
\fi
% use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
% use microtype if available
\IfFileExists{microtype.sty}{%
\usepackage{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\usepackage[margin=1.0in]{geometry}
\ifxetex
\usepackage[setpagesize=false, % page size defined by xetex
unicode=false, % unicode breaks when used with xetex
xetex]{hyperref}
\else
\usepackage[unicode=true]{hyperref}
\fi
\hypersetup{breaklinks=true,
bookmarks=true,
pdfauthor={},
pdftitle={},
colorlinks=true,
citecolor=blue,
urlcolor=blue,
linkcolor=magenta,
pdfborder={0 0 0}}
\urlstyle{same} % don't use monospace font for urls
\usepackage{longtable,booktabs}
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setcounter{secnumdepth}{0}
%%% Use protect on footnotes to avoid problems with footnotes in titles
\let\rmarkdownfootnote\footnote%
\def\footnote{\protect\rmarkdownfootnote}
%%% Change title format to be more compact
\usepackage{titling}
% Create subtitle command for use in maketitle
\newcommand{\subtitle}[1]{
\posttitle{
\begin{center}\large#1\end{center}
}
}
\setlength{\droptitle}{-2em}
\title{}
\pretitle{\vspace{\droptitle}}
\posttitle{}
\author{}
\preauthor{}\postauthor{}
\date{}
\predate{}\postdate{}
\usepackage{helvet} % Helvetica font
\renewcommand*\familydefault{\sfdefault} % Use the sans serif version of the font
\usepackage[T1]{fontenc}
\usepackage{multirow}
\pagenumbering{gobble}
\usepackage{array}
\newcommand{\bigcell}[2]{\begin{tabular}{@{}#1@{}}#2\end{tabular}}
\usepackage{rotating}
\usepackage{caption}
% Redefines (sub)paragraphs to behave more like sections
\ifx\paragraph\undefined\else
\let\oldparagraph\paragraph
\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
\fi
\ifx\subparagraph\undefined\else
\let\oldsubparagraph\subparagraph
\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
\fi
\begin{document}
\maketitle
\captionsetup{labelformat=empty}
\textbf{Table 1. Status of microbial census by habitat classifications
and domain.} The isolation\_source field from the SILVA reference
database was manually curated to assign bacterial and archaeal sequences
coarse and fine scale habitat classifications. We calculated the number
of sequences and OTUs observed and the percent coverage on a sequence or
OTU basis for each classification and domain. Descriptions of each
category are provided in Table S1.
\begin{table}[!ht]
\centering
{\scriptsize
\begin{tabular}{llcccccccc}
\hline
\multirow{4}{*}{\textbf{Coarse}} & \multirow{4}{*}{\textbf{Fine}} & \multicolumn{4}{c}{\textbf{Bacteria}} & \multicolumn{4}{c}{\textbf{Archaea}} \\ \cmidrule(r){3-6} \cmidrule(r){7-10} & & \textbf{\bigcell{c}{Sequences \\ (N)}} & \textbf{\bigcell{c}{OTUs \\ (N)}} & \textbf{\bigcell{c}{\% Seq. \\ Coverage}} & \textbf{\bigcell{c}{\% OTU \\ Coverage}} & \textbf{\bigcell{c}{Sequences \\ (N)}} & \textbf{\bigcell{c}{OTUs \\ (N)}} & \textbf{\bigcell{c}{\% Seq. \\ Coverage}} & \textbf{\bigcell{c}{\% OTU \\ Coverage}} \\
\hline Aerosol & & 3,472 & 1,068 & 79.5 & 33.2 & 2 & 1 & 100.0 & 100.0 \\
Aquatic & Brackish & 1,094 & 646 & 54.6 & 23.1 & 1,368 & 314 & 87.4 & 44.9 \\
& Brackish sediment & 390 & 243 & 54.4 & 26.7 & 525 & 208 & 76.8 & 41.3 \\
& Freshwater & 21,647 & 6,689 & 80.8 & 37.7 & 1,540 & 439 & 84.7 & 46.5 \\
& Freshwater sediment & 6,733 & 3,549 & 63.0 & 29.8 & 1,324 & 488 & 79.3 & 43.9 \\
& Marine & 134,727 & 14,287 & 94.3 & 46.7 & 10,983 & 830 & 95.8 & 44.5 \\
& Marine sediment & 27,801 & 9,567 & 79.6 & 40.8 & 14,049 & 1,507 & 95.0 & 53.7 \\
& Hydrothermal vent & 10,860 & 4,216 & 75.4 & 36.5 & 3,797 & 734 & 90.4 & 50.3 \\
& Ice & 2,073 & 936 & 71.2 & 36.1 & 42 & 5 & 95.2 & 60.0 \\
& Other & 8,760 & 3,802 & 71.7 & 34.8 & 772 & 313 & 80.7 & 52.4 \\
Built & Digesters & 33,152 & 8,949 & 82.9 & 36.8 & 4,764 & 483 & 93.6 & 36.4 \\
& Food-associated & 11,813 & 1,632 & 92.0 & 41.9 & 117 & 40 & 80.3 & 42.5 \\
& Industrial/mining & 16,582 & 6,099 & 76.6 & 36.3 & 1,245 & 336 & 84.4 & 42.3 \\
& Pollution associated & 38,696 & 10,602 & 84.1 & 41.9 & 716 & 249 & 79.2 & 40.2 \\
& Other & 8,556 & 2,730 & 79.1 & 34.7 & 444 & 111 & 90.8 & 63.1 \\
Plant associated & Root & 19,695 & 5,052 & 84.3 & 38.7 & 200 & 61 & 85.5 & 52.5 \\
& Surface & 4,892 & 1,385 & 82.7 & 38.8 & 0 & 0 & NA & NA \\
& Other & 9,753 & 3,217 & 78.8 & 35.8 & 22 & 7 & 90.9 & 71.4 \\
Soil & Agriculture & 10,051 & 4,017 & 73.6 & 34.0 & 146 & 56 & 80.8 & 50.0 \\
& Desert & 3,042 & 1,280 & 73.7 & 37.5 & 245 & 79 & 77.6 & 30.4 \\
& Permafrost & 1,922 & 870 & 73.0 & 40.3 & 39 & 20 & 64.1 & 30.0 \\
& Other & 59,855 & 17,166 & 82.9 & 40.4 & 2,087 & 516 & 89.1 & 55.8 \\
Host-associated & Vertebrate & 773,045 & 42,497 & 96.1 & 29.5 & 5,389 & 454 & 95.1 & 41.6 \\
& Arthropod & 13,209 & 3,688 & 81.8 & 34.7 & 87 & 52 & 58.6 & 30.8 \\
& Other invertebrate & 7,476 & 2,626 & 78.0 & 37.3 & 67 & 30 & 73.1 & 40.0 \\
& Other & 10,855 & 1,754 & 89.2 & 33.4 & 54 & 17 & 87.0 & 58.8 \\
Other & & 19,414 & 5,930 & 81.6 & 39.9 & 882 & 249 & 84.2 & 44.2 \\
No source data & & 151,669 & 14,144 & 94.9 & 45.6 & 2,565 & 559 & 88.6 & 47.6 \\
\hline
Total & & 1,411,234 & 108,950 & 94.5 & 29.2 & 53,546 & 4,252 & 95.1 & 38.5 \\
\hline
\end{tabular}
}
\end{table}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment