From: Charles Richer Saint-Faure <richer.saint.faure-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Porting this code as raw latex to a pandoc.markdown environment
Date: Sat, 15 Aug 2020 11:50:44 -0700 (PDT) [thread overview]
Message-ID: <2d70da44-8dec-4029-b1f6-14cc2fe689e7o@googlegroups.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 3288 bytes --]
I have this code that works fine in pure latex/xelatex:
\documentclass[11pt]{article}
\usepackage[most]{tcolorbox}
\newtcolorbox{tcbdoublebox}[1][]{%
enhanced jigsaw,
sharp corners,
colback=white,
borderline={1pt}{-2pt}{black},
fontupper={\setlength{\parindent}{20pt}},
#1
}
\begin{document}
\begin{tcbdoublebox}
\begin{tabular}{llll}
praesentium & facilis & assumenda & mollitia \\
sit & consequuntur & omnis & facere
\end{tabular}
\end{tcbdoublebox}
\end{document}
I tried to add the \\usepackage{tcolorbox} statement and the
\\newtcolorbox{...} definition to a yaml block that lives in front of the
input to pandoc like so:
---
indent: true
subparagraph: yes
header-includes: |
\usepackage{ragged2e}
\usepackage{epigraph}
\renewcommand{\textflush}{flushepinormal}
\usepackage{indentfirst}
\usepackage{relsize}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[R]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\usepackage{quoting}
\newlength\mylen
\settowidth\mylen{...................}
\newcommand{\pro}{\addfontfeature{Numbers=Proportional}}
\newcommand{\mon}{\addfontfeature{Numbers=Monospaced}}
\newcommand{\lin}{\addfontfeature{Numbers=Lining}}
\newcommand{\old}{\addfontfeature{Numbers=OldStyle}}
\usepackage{adjustbox}
\usepackage{multirow}
\usepackage{array}
\newcolumntype{P}[1]{>{\RaggedRight\hspace{0pt}}p{#1}}
\usepackage{blkarray}
\usepackage{booktabs}
\usepackage[usestackEOL]{stackengine}
\usepackage[normalem]{ulem}
\usepackage{setspace}
\usepackage{graphicx}
\def\asterism{\par\vspace{1em}{\centering\scalebox{.9}{%
\stackon[-0.6pt]{\bfseries*~*}{\bfseries*}}\par}\vspace{.8em}\par}
\newfontfamily\ff{Symbola}
\usepackage[most]{tcolorbox}
\newtcolorbox{tcbdoublebox}[1][]{%
enhanced jigsaw,
sharp corners,
colback=white,
borderline={1pt}{-2pt}{black},
fontupper={\setlength{\parindent}{20pt}},
#1
}
```{=latex}
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont\bfseries\filcenter}{}{0pt}{\Large}
\titleformat{\section}[display]
{\normalfont\bfseries\filcenter}{}{0pt}{\Large}
\titleformat{\subsection}[display]
{\normalfont\bfseries\filcenter}{}{0pt}{\Large}
```
\setcounter{secnumdepth}{1}
---
Unfortunately upon running pandoc to create a .pdf I get a latex compiling
error telling me that it can't find the \\begin{document} statement… a sure
sign that there is a syntax error in my latex preamble.
I suspect the problem may have something to do with the multi-line syntax
of the box's definition (newtcolorbox{...})
What is the correct way to integrate this to my otherwise OK yaml
block/preamble?
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/2d70da44-8dec-4029-b1f6-14cc2fe689e7o%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 30234 bytes --]
next reply other threads:[~2020-08-15 18:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-15 18:50 Charles Richer Saint-Faure [this message]
[not found] ` <2d70da44-8dec-4029-b1f6-14cc2fe689e7o-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-08-16 0:40 ` John MacFarlane
2020-08-16 20:33 ` Charles Richer Saint-Faure
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2d70da44-8dec-4029-b1f6-14cc2fe689e7o@googlegroups.com \
--to=richer.saint.faure-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).