pandoc fonts
This commit is contained in:
parent
a95c66f21a
commit
24ab1ec141
6
Makefile
6
Makefile
|
@ -17,6 +17,12 @@ clean:
|
||||||
bash:
|
bash:
|
||||||
$(DOCKER) $(MOUNTS) --entrypoint /bin/bash -t $(DOCKER_IMAGE)
|
$(DOCKER) $(MOUNTS) --entrypoint /bin/bash -t $(DOCKER_IMAGE)
|
||||||
|
|
||||||
|
pdflatex:
|
||||||
|
$(DOCKER) $(MOUNTS) \
|
||||||
|
--env PATH=/opt/texlive/x86_64-linux/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
|
||||||
|
--entrypoint /opt/texlive/bin/x86_64-linux/pdflatex \
|
||||||
|
$(DOCKER_IMAGE) /var/task/test.latex
|
||||||
|
|
||||||
all result/bin/x86_64-linux/latex: build result cache
|
all result/bin/x86_64-linux/latex: build result cache
|
||||||
$(DOCKER) $(MOUNTS) --entrypoint /usr/bin/make -t $(DOCKER_IMAGE) TARGET_DIR=$(TARGET) -f ../Makefile_Latex $@
|
$(DOCKER) $(MOUNTS) --entrypoint /usr/bin/make -t $(DOCKER_IMAGE) TARGET_DIR=$(TARGET) -f ../Makefile_Latex $@
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ pandoc-packages: $(TLMGR)
|
||||||
ifxetex ifluatex listings fancyvrb booktabs \
|
ifxetex ifluatex listings fancyvrb booktabs \
|
||||||
hyperref ulem geometry setspace babel upquote \
|
hyperref ulem geometry setspace babel upquote \
|
||||||
microtype parskip xurl oberdiek tools \
|
microtype parskip xurl oberdiek tools \
|
||||||
graphics footnotehyper mdwtools
|
graphics footnotehyper mdwtools etoolbox
|
||||||
|
|
||||||
all: $(TLMGR) pandoc-packages
|
all: $(TLMGR) pandoc-packages
|
||||||
|
|
||||||
|
|
74
test/example.latex
Normal file
74
test/example.latex
Normal file
|
@ -0,0 +1,74 @@
|
||||||
|
\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere
|
||||||
|
\PassOptionsToPackage{hyphens}{url}
|
||||||
|
%
|
||||||
|
\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{textcomp} % provides euro and other symbols
|
||||||
|
\else % if luatex or xelatex
|
||||||
|
\usepackage{unicode-math}
|
||||||
|
\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
|
||||||
|
\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
|
||||||
|
}{}
|
||||||
|
\IfFileExists{parskip.sty}{%
|
||||||
|
\usepackage{parskip}
|
||||||
|
}{% else
|
||||||
|
\setlength{\parindent}{0pt}
|
||||||
|
\setlength{\parskip}{6pt plus 2pt minus 1pt}
|
||||||
|
}
|
||||||
|
\usepackage{hyperref}
|
||||||
|
\hypersetup{
|
||||||
|
pdfborder={0 0 0},
|
||||||
|
breaklinks=true}
|
||||||
|
\urlstyle{same} % don't use monospace font for urls
|
||||||
|
\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}
|
||||||
|
|
||||||
|
\hypertarget{heading}{%
|
||||||
|
\section{heading}\label{heading}}
|
||||||
|
|
||||||
|
\begin{itemize}
|
||||||
|
\tightlist
|
||||||
|
\item
|
||||||
|
list 1
|
||||||
|
\item
|
||||||
|
list 2
|
||||||
|
\item
|
||||||
|
list 3
|
||||||
|
\end{itemize}
|
||||||
|
|
||||||
|
This is a \href{https://serverless.pub}{hyperlink}
|
||||||
|
|
||||||
|
\end{document}
|
|
@ -6,8 +6,13 @@ TEXMFLOCAL /opt/texlive/texmf-local
|
||||||
TEXMFHOME /tmp/texmf
|
TEXMFHOME /tmp/texmf
|
||||||
TEXMFCONFIG /tmp/texmf-config
|
TEXMFCONFIG /tmp/texmf-config
|
||||||
TEXMFVAR /tmp/texmf-var
|
TEXMFVAR /tmp/texmf-var
|
||||||
|
binary_x86_64-linux 1
|
||||||
collection-basic 1
|
collection-basic 1
|
||||||
collection-latex 1
|
collection-latex 1
|
||||||
|
collection-luatex 0
|
||||||
|
collection-xetex 0
|
||||||
|
collection-fontsrecommended 0
|
||||||
|
collection-fontsextra 0
|
||||||
tlpdbopt_autobackup 0
|
tlpdbopt_autobackup 0
|
||||||
tlpdbopt_backupdir tlpkg/backups
|
tlpdbopt_backupdir tlpkg/backups
|
||||||
tlpdbopt_create_formats 0
|
tlpdbopt_create_formats 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user