Skip to content

Instantly share code, notes, and snippets.

@harriott
Created May 31, 2017 19:46
Show Gist options
  • Save harriott/b33e254e8118e0c4679f6b06fbe6d3b6 to your computer and use it in GitHub Desktop.
Save harriott/b33e254e8118e0c4679f6b06fbe6d3b6 to your computer and use it in GitHub Desktop.
Pandoc of eurosym.md - for SOQ 44032498
\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}
\usepackage{eurosym}
\else % if luatex or xelatex
\usepackage{unicode-math}
\defaultfontfeatures{Ligatures=TeX,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
}{}
\PassOptionsToPackage{hyphens}{url} % url is loaded by hyperref
\usepackage[unicode=true]{hyperref}
\hypersetup{
pdfborder={0 0 0},
breaklinks=true}
\urlstyle{same} % don't use monospace font for urls
\IfFileExists{parskip.sty}{%
\usepackage{parskip}
}{% else
\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}
% 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
% set default figure placement to htbp
\makeatletter
\def\fps@figure{htbp}
\makeatother
\date{}
\begin{document}
\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
\begin{verbatim}
pandoc eurosym.md -o eurosym.pdf --latex-engine=xelatex
pandoc -H euro-H.tex euro.md -o euro.pdf --latex-engine=xelatex
pandoc -s eurosym.md -o eurosym.tex --latex-engine=xelatex
\end{verbatim}
\section{2\euro{}}\label{section}
2\euro{}
\end{document}
@harriott
Copy link
Author

As suggested by mb21 May 18.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment