From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25891 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Porting this code as raw latex to a pandoc.markdown environment Date: Sat, 15 Aug 2020 17:40:55 -0700 Message-ID: References: <2d70da44-8dec-4029-b1f6-14cc2fe689e7o@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21844"; mail-complaints-to="usenet@ciao.gmane.io" To: Charles Richer Saint-Faure , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBJMB4L4QKGQEH6BFAPY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Aug 16 02:41:13 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yb1-f184.google.com ([209.85.219.184]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k76jZ-0005aL-6T for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 16 Aug 2020 02:41:13 +0200 Original-Received: by mail-yb1-f184.google.com with SMTP id a127sf14362784ybb.14 for ; Sat, 15 Aug 2020 17:41:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1597538472; cv=pass; d=google.com; s=arc-20160816; b=0iBGwX/jn07ktBFVr4F5NpjCyHbyt8lbj3+wYwCORruE1b2BZFNf88W7INvDdgnFmI zyR0qxPEitUtF/mVatI4HjR/iG0q4Sg9vfmJUa5kXrokv5m+RlzMrU01kO/seMRbaoHU JDBqK7V3E6YzBQ1YC3eZArsLq6mgx1LCBfhk7of8Nw9xzxJswWm847deCoND3gSahHFV XhTnNoDnJkhh9NCUtb5S5N9H7LyxDCxfUFYFouMdHx03qYLmc/1429BFU1Yy8I8adv9s Rviau5SSgw37Cdq6r+zKPD/dukVxSWutUq62an6KJZzDyK7ybnnikeFImidNXBbhO/ta QqLw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:to:from :sender:dkim-signature; bh=pPq0zsRZ09lTEyQFh7iMPWfQ8jiQGPnnMa4kVlhGQ5o=; b=zRorGJSyvsH3QX8yp6cvq/72oaB81wcERGEcRE1mk9xQt8n1tAIgQ8IBFLAJCm2SQg 1QEgqOMpZPaRd8A8Ld8aoJvQMUs+1r6A8FsXA/IPa+ng6DlYP9sD8Z6CcHELk3Eeacak S+ttdvA9GgCuTM93GMifpFjaxjCFbJKg0xO43I01ilZkoWpheKeisF/7YuQNx8zLKxnj l7p5xPUaZ+ZUrJ5kyZVrZbRaTjAT/XISMG4PF+9+SvENtaYCRa4PLCekC/0vUhuoBtPS H/4sGLweJ3nbyL4Sd/tRfeaI0rN4/CY7qYpY0sxTOgkhYQ4LVpBY+8wg06KIyj438UFo p+dw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=NCK6OUFa; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1034 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=pPq0zsRZ09lTEyQFh7iMPWfQ8jiQGPnnMa4kVlhGQ5o=; b=AolSo+LHwvNPk6fD4Ofb3HrdEfaw5utRED5DKucfFlKo0evVEI03NkmDqT1j1HoppX vPGKEUvOd2Ld9iSidg7tuNjIFHxhVcM8FTOV+X0deuM0URLpZFSKa509MRKHOocFuHe/ QJcx7agnzi2/+zRCPH6yHKqzm8HB3Kkq2L6V71TOZbBu7jo50j+rm0h8IoUwGIJIgeIU 38HtkLTzlIEEHYtP5bU+URCwxc9O6GckNAewneT8A4o7m775JPbZ0vAbMYoyTR7Iwg/U Kk93fXkArXw6EMAX1Fsx2+rghn9Kx+t6GqfNe3VyDrsyeT+/EWrn2UKPfCWkkrJJWwx+ 0QlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:content-transfer-encoding :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=pPq0zsRZ09lTEyQFh7iMPWfQ8jiQGPnnMa4kVlhGQ5o=; b=Ih8AX0OJprSmy0wQtg9jHAIIjAdeSowaIVtFLqfx24YdaSNgooSwlAxMl8KfOap8aC GQOqIT4UzKvX9MRoDJTXx83Yipel/PqCIl01x9BaQnIjv5Cn2o3h/bwIa4xqZc+It1xA EVnsNTWU+0T5r3OOtG5t25QXCwr6kvPi9kIX1ud1tXd5HpvPMHbWaCORGKRY/wkg+Z5h Z4iz5CVGVXgGo3CoujrMBet7DEEWBbpvA4hibprG6d9w6SH0Zf14KxIzcMumaSa+z6am Hkv6ZGHY6u8FYQFpx6uO/ReP+VBqHdT3DleXhom+EYzOUuakoG/7dgAQjJAz055348cq Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM53330glUsdiEk9vvP9ru/FqAyIMgvjFe+SRWHeXRF6fQTJxKF9aL dKgJIJH7h6uyc9iRO/z15lc= X-Google-Smtp-Source: ABdhPJxa8+JoVOmAcLP59IUHEkPXWtv1oDdECfdec4v/UrtQlh1mYYXqvcHP/SRUlIrJhJ4Pe5E8mQ== X-Received: by 2002:a5b:44b:: with SMTP id s11mr12028377ybp.342.1597538472254; Sat, 15 Aug 2020 17:41:12 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:cace:: with SMTP id a197ls5218359ybg.11.gmail; Sat, 15 Aug 2020 17:41:09 -0700 (PDT) X-Received: by 2002:a25:b741:: with SMTP id e1mr12515836ybm.178.1597538469244; Sat, 15 Aug 2020 17:41:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597538469; cv=none; d=google.com; s=arc-20160816; b=AVZaFH4O09SV7oCt/TX5U3yaTlewY/zMrUQnagvQJ7b5I66PbpSbiC+gW4ac8ewMd2 wBgYgNbKWZkfahjniE6XbmurdnWEreocd9ppTYj0iuMBcb0/k1zO+sY4OYfTFWl2TejI zPCeeetQsUDwJNvlCoOo5Wc2Ig/KhQuGPBGTcAdAQNwIuv103ACWon43j+GFboVHDhEi j1aIgDkLSlZsEibnv0rJlYeBFdoi7tM9orWr7bSVhXumy2ip/2cF0w977/2+xtJZviuX wU2qF6xdw8fK3bCyICvlas3s7GAfGJDHz2NHapt0cAkEr4gL7AA5NUs+G/p/MXHEH76p 6R8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=fnEOTIGNCScFsZRTkXi51KrF3j+D5SfXmhb9ancwCaI=; b=J8oUTZa6Nej4pLxCsTkzcqOpOKUtLb2VK8CcThMGfwEZtIUE4vT0dJfkT+FeFp55dt ZWwt5gsHvMhU2WUAJ3BudGXvYCN8JipaWorRr3cnR7/USDwe9+FLC81xb/E61Fuq08D5 VFdG+elmbN9GlYAxZ2AgmVImcLBCjxPVcbSRbGEYrT1gg8hW9N/IPoG4FaiGEjdClb6b Wv3DsWH83Jhz7ASRTd5jDJifly2iSdlzzZPxJCDXIU95NKNSGN0YRRrL1nuP4jMeMQhO ezBSnI3B3XrX9tR0PviqsYF33pAerdEFsme8J1xEYaDOq4BuJvr4NkhHFcZoaL1i6ExU mCLA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=NCK6OUFa; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1034 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com. [2607:f8b0:4864:20::1034]) by gmr-mx.google.com with ESMTPS id p67si687327ybg.2.2020.08.15.17.41.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 15 Aug 2020 17:41:08 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1034 as permitted sender) client-ip=2607:f8b0:4864:20::1034; Original-Received: by mail-pj1-x1034.google.com with SMTP id ep8so5978889pjb.3 for ; Sat, 15 Aug 2020 17:41:08 -0700 (PDT) X-Received: by 2002:a17:902:bd8d:: with SMTP id q13mr6499716pls.142.1597538467700; Sat, 15 Aug 2020 17:41:07 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id n26sm11959633pgl.42.2020.08.15.17.41.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Aug 2020 17:41:06 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id EE279A2A1; Sat, 15 Aug 2020 20:40:55 -0400 (EDT) In-Reply-To: <2d70da44-8dec-4029-b1f6-14cc2fe689e7o-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=NCK6OUFa; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1034 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:25891 Archived-At: For best results, wrap the header-includes in ```{=3Dlatex} ``` so that pandoc will know it's all raw LaTeX. See the manual under raw_attribute extension. Charles Richer Saint-Faure writes: > 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=3Dwhite, > borderline=3D{1pt}{-2pt}{black}, > fontupper=3D{\setlength{\parindent}{20pt}}, > #1 > } > \begin{document} > > \begin{tcbdoublebox} > \begin{tabular}{llll} > praesentium & facilis & assumenda & mollitia \\ > sit & consequuntur & omnis & facere=20 > \end{tabular} > \end{tcbdoublebox} > > \end{document} > > > I tried to add the \\usepackage{tcolorbox} statement and the=20 > \\newtcolorbox{...} definition to a yaml block that lives in front of the= =20 > input to pandoc like so: > > > > --- > indent: true > subparagraph: yes > header-includes: | > \usepackage{ragged2e} > \usepackage{epigraph} > \renewcommand{\textflush}{flushepinormal} > =20 > \usepackage{indentfirst} > \usepackage{relsize} > =20 > \usepackage{fancyhdr} > \pagestyle{fancy} > \fancyhf{} > \fancyhead[R]{\thepage} > \renewcommand{\headrulewidth}{0pt} > \usepackage{quoting} > > \newlength\mylen > \settowidth\mylen{...................} > > \newcommand{\pro}{\addfontfeature{Numbers=3DProportional}} =20 > \newcommand{\mon}{\addfontfeature{Numbers=3DMonospaced}} =20 > \newcommand{\lin}{\addfontfeature{Numbers=3DLining}} =20 > \newcommand{\old}{\addfontfeature{Numbers=3DOldStyle}} =20 > > \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=3Dwhite, > borderline=3D{1pt}{-2pt}{black}, > fontupper=3D{\setlength{\parindent}{20pt}}, > #1 > } > =20 > ```{=3Dlatex} > \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 compilin= g=20 > error telling me that it can't find the \\begin{document} statement=E2=80= =A6 a sure=20 > 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= =20 > of the box's definition (newtcolorbox{...}) > > What is the correct way to integrate this to my otherwise OK yaml=20 > block/preamble?=20 > > --=20 > 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/msgi= d/pandoc-discuss/2d70da44-8dec-4029-b1f6-14cc2fe689e7o%40googlegroups.com. --=20 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 e= mail 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/m21rk7fmnc.fsf%40johnmacfarlane.net.