To create a .bib file that only includes the citations you used in the manuscript: bibexport -o extracted_file.bib manuscript.aux There are a few issues with this though. The command bibexport comes with the installation of TexLive, but my Windows computer (bless) does not cooperate (“bibexport is not recognised as an internal or external command…”) . So I can only use it on my Mac (luv ya).

Continue reading

By default, LaTex tables are very tight: \usepackage{booktabs} \begin{table}[] \centering \caption{My caption} \label{my-label} \begin{tabular}{@{}lll@{}} \toprule Rows & Column 1 & Column 2 \\ \midrule Row 1 & 1234 & 2345 \\ Row 2 & 3456 & 4567 \\ Row 3 & 5678 & 6789 \\ Row 4 & 7890 & 8901 \\ Row 5 & 9012 & 10000 \\ \bottomrule \end{tabular} \end{table} Adding this to the document preamble will add space between the rows:

Continue reading

My minimal example: \documentclass[a4paper]{article} %%% FIGURES AND TABLES %%%% \usepackage{graphicx} %gives the \includegraphics[width=0.5\textwidth]{my_image} %%% PAGE AND TEXT SET-UP %%%% \usepackage{fullpage} %gets rids of the wide default borders \renewcommand{\baselinestretch}{1.5} %space between lines \begin{document} Hello hello hello \end{document} And then one that is not so minimal, but still pretty basic and useful: \documentclass[a4paper]{article} %%% FIGURES AND TABLES %%%% \usepackage{graphicx} %gives the \includegraphics[width=0.5\textwidth]{my_image} \usepackage{booktabs} %for nicer tables \usepackage{tabu} %advanced control over tables \renewcommand{\thetable}{S\arabic{table}} %if this is supplement (this numbers figures as S1, S2.

Continue reading

Install Pandoc: http://pandoc.org/ library(knitr) knit('report.Rmd') #This creates 'report.md' Open the Terminal, Command Prompt (search for cmd) or Windows Powershell, go to the folder and do: pandoc -s report.md -o report.tex And that’s it! (Read this, if you want vector images.)

Continue reading

Firstly, start off your table in http://www.tablesgenerator.com/. Tables Generator will do a lot for you. Its most useful features are importing from .csv and merging cells. The Booktabs table style (alternative to default table style from the menu) looks a bit nicer and is “publication quality”. Note that publication quality tables should not contain vertical lines. Screen shot of Tables Generator Code#1 Code #1 is the code from Tables Generator with the addition of caption, label and Latex document begin-end (so it’s compilable).

Continue reading

Author's picture

Riinu Ots

if it aint broke, you’re outdated

Data Manager

Edinburgh, UK