Skip to content

Instantly share code, notes, and snippets.

@karvus
Last active October 21, 2016 05:13
Show Gist options
  • Save karvus/da4523fdef8f644a6aa183028093d0ca to your computer and use it in GitHub Desktop.
Save karvus/da4523fdef8f644a6aa183028093d0ca to your computer and use it in GitHub Desktop.
Demonstration of how exporting a table to LaTeX math mode yields correct output with Org version 8.2.10, but corrupt output with 8.3.6
% Created 2016-10-21 Fri 00:49
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\date{\today}
\title{table-matrix}
\hypersetup{
pdfkeywords={},
pdfsubject={},
pdfcreator={Emacs 25.1.1 (Org mode 8.2.10)}}
\begin{document}
\maketitle
\tableofcontents
\[\begin{bmatrix}
1 & 2 \\
\end{bmatrix}\]
whops
% Emacs 25.1.1 (Org mode 8.2.10)
\end{document}
% Created 2016-10-21 Fri 00:53
% Intended LaTeX compiler: pdflatex
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{grffile}
\usepackage{longtable}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[libertine]{newtxmath}
\usepackage{newtxtext}
\usepackage{capt-of}
\usepackage{hyperref}
\date{\today}
\title{}
\hypersetup{
pdfauthor={},
pdftitle={},
pdfkeywords={},
pdfsubject={},
pdfcreator={Emacs 25.1.1 (Org mode 8.3.6)},
pdflang={English}}
\begin{document}
\tableofcontents
\[
\begin{bmatrix}
1 & 2 \\
\end{bmatrix}
\] whops
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment