From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25991 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pranesh Prakash Newsgroups: gmane.text.pandoc Subject: Hiding TeX headers from HTML output Date: Tue, 25 Aug 2020 11:20:33 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1126_834645886.1598379633260" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1395"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDA2Z3PTWYIBB4VMSX5AKGQECKOTLUA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Aug 25 20:20:37 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f62.google.com ([209.85.161.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kAdYj-0000He-JP for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 25 Aug 2020 20:20:37 +0200 Original-Received: by mail-oo1-f62.google.com with SMTP id g2sf7600007ooe.23 for ; Tue, 25 Aug 2020 11:20:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=PqXsGkA+q8cTBfoR09UJOkhYKvgdKLkxzBMpPwy7dBo=; b=rabuhcxnjcsgcDXn9iNVrSG8JJ50yEpn/+sY8Hd542oTGSC4hsQLkL/GCpas6DXoYK /Cj97bO4unhFEN4mBHTxce4MkcpKMtQWxBs8wL0JFbqWkF/fWyPbmdITm+t5kblB7u9g ik59qlRwbj1FCWI4IOjzV3NURiHS9gERYAqW0AIgpOzMYo2VJsLfohkDVLzSOrsYn9/J yHuEkSDmZh8OuL7zTKiMlKs+BtHoCwPE6TVthWcLE9FulD3JMN1itkmq+BQAzr11KXkS P4auAo4uvZC13TbPIMG2IHn2ohTovGiAOYSFy2B6FRPRnEYNp9uL43fCDRTbNJZVoku7 BLHQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=PqXsGkA+q8cTBfoR09UJOkhYKvgdKLkxzBMpPwy7dBo=; b=kmb4NN/a4NB0oB2jXO4+cCjpKwnGrAZucVArdYMbt3MHmEu9sbqtdLXNBd7Ykk7LRw z06x+1R6RCMZIW98/u2j8AL51EDd6QCEubKQq92c8R5/RErcRACMuHNBxxOJ44kH1spA gQ7yL9tpiLFKgYtM1Q+qvzTfY3geEpgC4/AqhD7+ed5v8ezESiVOH4oe7TC70mCvWtfU SyOxjIVFUwftecj4rbaYUedkBeNwZJLs+FHLnL5ADwxLM2KLpGGSIHt6HTW/CHyYJuhH D3qWRaaR1Dz7pkeTiW9wDm/oLRVF/ZLeYlZ0w8fmCKsbzWAyW9lqS9/DL4wAwuLuZq+v iY8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=PqXsGkA+q8cTBfoR09UJOkhYKvgdKLkxzBMpPwy7dBo=; b=MUCzVa00U9xl/HeBjYT8opiIE7RC2ERGnLm92AQKF5L5ebMkTxhKuqMNZPO2Xqcrz3 dU0mNR/RX6TFQ7tdEGe/A15bGO22rdwhERrf7lz02oLvDO5SeD5STcjZteLj48Uj/oh5 puUA8L34T7Qc3vk5RCJy8gG5W624cXg65D1LWIA8mkub4yEV/S6Y0jMfOQjIP6ctiqSW dBx0+Cse0eN6+mxMIK0qM30xNNy/MLrU2lLATVVphSuXAZIHs4EnIse2lOENAZu6HqZ1 j9yGukf2drfoBn/UJVom7XOThlMK37ICoAy7oz3iDrQ+OsJM/O1ZFBf+Bp9JaomGkkXC B7vA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532aZvCsiaUe+BkU61rC6m9/SYftsvvAQfRUkcy2nMPefv43MKv7 NGYpvSa/mCmQ1F5dMxNSsZM= X-Google-Smtp-Source: ABdhPJwSGVBtcBDNnZbEt8HB541gu/41xOI5eR/+lrDFrS+H3+WRKLPkzxpmlLq5wdXOqHq511e4Cg== X-Received: by 2002:a9d:c03:: with SMTP id 3mr7180495otr.159.1598379636494; Tue, 25 Aug 2020 11:20:36 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:4745:: with SMTP id u66ls3046519oia.11.gmail; Tue, 25 Aug 2020 11:20:34 -0700 (PDT) X-Received: by 2002:aca:cd05:: with SMTP id d5mr1651795oig.138.1598379633995; Tue, 25 Aug 2020 11:20:33 -0700 (PDT) X-Original-Sender: the.solipsist-Re5JQEeQqe8AvxtiuMwx3w@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:25991 Archived-At: ------=_Part_1126_834645886.1598379633260 Content-Type: multipart/alternative; boundary="----=_Part_1127_291287129.1598379633260" ------=_Part_1127_291287129.1598379633260 Content-Type: text/plain; charset="UTF-8" Hi all, I use the TeX files paragraphs.tex and footnotes.tex to style the paragraphs and footnotes in PDFs. (The input file is in pandoc-flavour markdown.) I use them via a defaults files using "include-in-header: \n - paragraphs.tex \n - footnotes.tex". When I convert the file to HTML, the TeX component shows up. (It is in the part, before , but still shows up on the screen when I open the file.) I've tried using the modified TeX files where I enclose them in code fences with {=pdf} and {=latex} as well. Each time I do this, I get the error: > Error producing PDF. > ! LaTeX Error: Missing \begin{document}. > > See the LaTeX manual or LaTeX Companion for explanation. > Type H for immediate help. > ... > > l.43 ` > I get this same error if I try to include the headers using "header-include:" instead of "include-in-header:". I've tried marking the input format as "markdown+raw_attribute" and as "markdown+raw_tex", but that doesn't change anything. What am I doing wrong? How do I prevent the PDF/LaTeX-specific headers from being used for outputs like HTML? Regards, Pranesh -- 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/a669b6a7-167e-4056-b0fa-546e4fe53d7fn%40googlegroups.com. ------=_Part_1127_291287129.1598379633260 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,
I use the TeX files paragraphs.tex and footnotes= .tex to style the paragraphs and footnotes in PDFs.  (The input file = is in pandoc-flavour markdown.)  I use them via a defaults files using= "include-in-header: \n - paragraphs.tex \n - footnotes.tex".  When I = convert the file to HTML, the TeX component shows up.  (It is in the &= lt;head> </head> part, before <body>, but still shows up on = the screen when I open the file.)

I've tried u= sing the modified TeX files where I enclose them in code fences with {=3Dpd= f} and {=3Dlatex} as well. Each time I do this, I get the error:
=
> Error producing PDF.
> ! LaTeX Error: Missing \be= gin{document}.
>
>  See the LaTeX manual or LaTeX Compani= on for explanation.
> Type  H <return>  for immediate= help.
>  ...        &nb= sp;            =             &nb= sp;           
&= gt;             = ;            &n= bsp;            = ;             <= br>> l.43 `
>

I get this same= error if I try to include the headers using "header-include:" instead of "= include-in-header:".

I've tried marking the i= nput format as "markdown+raw_attribute" and as "markdown+raw_tex", but that= doesn't change anything.

What am I doing wrong?&n= bsp; How do I prevent the PDF/LaTeX-specific headers from being used for ou= tputs like HTML?

Regards,
Pranesh

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/a669b6a7-167e-4056-b0fa-546e4fe53d7fn%40googlegroups.= com.
------=_Part_1127_291287129.1598379633260-- ------=_Part_1126_834645886.1598379633260 Content-Type: text/x-tex; charset=US-ASCII; name=paragraphs-pdf.tex Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=paragraphs-pdf.tex X-Attachment-Id: 21e3078c-7de6-4dff-bc0f-1e5fb7ef8f98 Content-ID: <21e3078c-7de6-4dff-bc0f-1e5fb7ef8f98> ```{=pdf} \usepackage{parskip} \setlength{\parskip}{5pt plus1pt} \setlength\parindent{1.5em} ``` ------=_Part_1126_834645886.1598379633260 Content-Type: text/x-tex; charset=US-ASCII; name=footnotes-latex.tex Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=footnotes-latex.tex X-Attachment-Id: 22770d73-d785-4a4f-9d19-445da654a4a5 Content-ID: <22770d73-d785-4a4f-9d19-445da654a4a5> ```{=latex} \usepackage{microtype,parskip,bookmark,setspace,xurl,secdot} \usepackage[hang,bottom,multiple]{footmisc} \setlength{\footnotesep}{3mm} ``` ------=_Part_1126_834645886.1598379633260 Content-Type: text/x-tex; charset=US-ASCII; name=paragraphs.tex Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=paragraphs.tex X-Attachment-Id: 37f287a7-eddb-4551-ad77-cbc00f214e46 Content-ID: <37f287a7-eddb-4551-ad77-cbc00f214e46> \usepackage{parskip} \setlength{\parskip}{5pt plus1pt} \setlength\parindent{1.5em} ------=_Part_1126_834645886.1598379633260 Content-Type: text/x-tex; charset=US-ASCII; name=footnotes.tex Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=footnotes.tex X-Attachment-Id: 4c528d0e-f921-40da-9725-348effe22ae0 Content-ID: <4c528d0e-f921-40da-9725-348effe22ae0> \usepackage{microtype,parskip,bookmark,setspace,xurl,secdot} \usepackage[hang,bottom,multiple]{footmisc} \setlength{\footnotesep}{3mm} ------=_Part_1126_834645886.1598379633260 Content-Type: text/x-tex; charset=US-ASCII; name=footnotes-pdf.tex Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=footnotes-pdf.tex X-Attachment-Id: 84b89cd6-b5f2-4f1e-a5ac-77ae71f8b32c Content-ID: <84b89cd6-b5f2-4f1e-a5ac-77ae71f8b32c> ```{=pdf} \usepackage{microtype,parskip,bookmark,setspace,xurl,secdot} \usepackage[hang,bottom,multiple]{footmisc} \setlength{\footnotesep}{3mm} ``` ------=_Part_1126_834645886.1598379633260 Content-Type: text/x-tex; charset=US-ASCII; name=paragraphs-latex.tex Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=paragraphs-latex.tex X-Attachment-Id: ca1249c8-88df-4cd0-a79e-c26393e9fbd1 Content-ID: ```{=latex} \usepackage{parskip} \setlength{\parskip}{5pt plus1pt} \setlength\parindent{1.5em} ``` ------=_Part_1126_834645886.1598379633260--