From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/20530 Path: news.gmane.org!.POSTED!not-for-mail From: Gandalf Saxe Newsgroups: gmane.text.pandoc Subject: Re: \textcolor - markdown->PDF works, but not latex->pdf? Date: Wed, 4 Jul 2018 03:48:25 -0700 (PDT) Message-ID: <7e3ddc50-55c9-4ee0-950e-555c1e98385c@googlegroups.com> References: <48f22ec4-c76d-4b09-a27e-8a2072bc2f54@googlegroups.com> <34c7193c-3ae9-4295-92fb-4c59b469cdf4@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_11588_1486674161.1530701305278" X-Trace: blaine.gmane.org 1530701180 20119 195.159.176.226 (4 Jul 2018 10:46:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 4 Jul 2018 10:46:20 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCIKPZWIREMBB6WL6LMQKGQE3RMYGMI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jul 04 12:46:16 2018 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot0-f188.google.com ([74.125.82.188]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fafIe-00056y-7b for gtp-pandoc-discuss@m.gmane.org; Wed, 04 Jul 2018 12:46:16 +0200 Original-Received: by mail-ot0-f188.google.com with SMTP id f7-v6sf3450216oti.5 for ; Wed, 04 Jul 2018 03:48:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=Xz0NjHa0JLBzihiJMxrMbbYaQq99RJxr9rntm5PVHGk=; b=P7KxiF+K+m05mkvNA3lOokslvMBQxhnXH5E2pMPVJ2/hgwYfI64aou5L0pauQlSfOl Jexu5rCyh3xkVww3ySbM4JcJTwpqZQfgDLO99++wSeeelxOrO+58VrEPbAB+ubUjGcoy IsWUSHgwyCxLQrMPJuLjwymm1iXI1dmbhfRT/sQ96pnj2yKN0SpwrPENEQyWQo2RN/2H 8AP4j8mmLDFv1EsURVRbrkiwpZ11bO+dgYnDFe2zcYcRoCU2sorTYkNNgKMMJ4loz0lF mUhLm4gw4F69itW+c8crUFI8AgwZO78IZvI219JX9CkUmmjUp6UEVy3DQ5+PrLn6UkAP b9vA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=Xz0NjHa0JLBzihiJMxrMbbYaQq99RJxr9rntm5PVHGk=; b=Pxju48VOBh8mJyIKinhtZs0j0S3JQ21+hZ1LQkGhDZhxVVQV38C+z8IuzOKUNIVQKl fuiMbR0azJDEYmXGgXy2wVd7trpU0IQ6QiK3OfCavjKbM+FhJde6mfDGvl7HldCpKVQS FPizPtOC3Uu+33JV4E+sjNhG4Gz19L9M7Mag5CY+Xb5WdmF8HXS9xtlsja1ZlGAmBQaH L4rl/gBY19XGZDTKbXWNKKkWwsVNjlPlklG9I++3br9CuIDUqPBwdgIbmZeb+fBHouEC BNqZIec+vWH1CpCAR6ce4WEpbQ59C95N5huv0A8Ol9HqyUWyuKtVKqGHro3yoTGuaqSV f5AQ== 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:in-reply-to :references: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=Xz0NjHa0JLBzihiJMxrMbbYaQq99RJxr9rntm5PVHGk=; b=VUNH4aLEpVZ/I29jpoIm9la9EppyChRQWRQZC7uhuuVRafFUeE2zhtsGFK14fmEME5 usTfK9qHR80xVf4aFmSbWO6VkrT41bHw1qfoWjCIow9Oh/bHpxhV4q6jOB7Rs4iEbALS 5LuWRBaVg+Fs4ICAPJn2EOMelKoYj41B5N5zRiq9HQnKVn3aycTnTlBbnqtpxXUplaaq iBKsh9gsNJwfp5+qAeC4VG/IWPVr+Cv0dpDAzrpts8ZiRQJy3vawGOydwdCE2nIOIQ9n Um6coqhdLsUkivlJj9zJQZD6p2K7Z1iPfNnEfcf4W9ofL2pGDWTHXtFjjdZqBB5uKioy LX/g== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APt69E36/4L4H184alw5xpjJVnUbzUZRsiAnJFdz0e0IGrtLZSHpuExJ fI4L/q5oxbfhisRqRXZv4uY= X-Google-Smtp-Source: AAOMgpdAf43tG5JFlLdwYk7xcxn+a1ZL7xZu1yjoQruhLlKeLSAe51MlRq7sip9DbW3aa5kTWv7zKg== X-Received: by 2002:aca:f495:: with SMTP id s143-v6mr326839oih.7.1530701307385; Wed, 04 Jul 2018 03:48:27 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:3844:: with SMTP id f65-v6ls894116oia.4.gmail; Wed, 04 Jul 2018 03:48:26 -0700 (PDT) X-Received: by 2002:aca:c744:: with SMTP id x65-v6mr332932oif.2.1530701305864; Wed, 04 Jul 2018 03:48:25 -0700 (PDT) In-Reply-To: X-Original-Sender: gandalfsaxe-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-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:20530 Archived-At: ------=_Part_11588_1486674161.1530701305278 Content-Type: multipart/alternative; boundary="----=_Part_11589_1683619619.1530701305279" ------=_Part_11589_1683619619.1530701305279 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I just don't understand why pandoc can produce the right output directly=20 from markdown, but not intermediately through latex. It should be possible= =20 to get the intermediate latex representation that also compiles with=20 pandoc. You're right, I could use pdflatex, I'm just puzzled at why it=20 works for md to pdf then. On Monday, 2 July 2018 10:08:33 UTC+2, Christophe Demko wrote: > > pandoc does not interpret all LaTeX commands. Don't use pandoc if you wan= t=20 > to compile a LaTeX file > > Le dimanche 1 juillet 2018 13:34:37 UTC+2, Gandalf Saxe a =C3=A9crit : >> >> It does not work; try to copy the second example above into a test.tex= =20 >> and run: >> >> pandoc test.tex -o test.pdf >> >> It will not color any of the text. pdflatex will work fine though, so=20 >> something happens with using pandoc. >> >> On Friday, 29 June 2018 16:52:45 UTC+2, Christophe Demko wrote: >>> >>> The LaTeX code is convert correctly to pdf with correct colors >>> >>> Le jeudi 28 juin 2018 16:59:43 UTC+2, Gandalf Saxe a =C3=A9crit : >>>> >>>> Why does this convert correctly `pandoc test.md -o test.pdf`: >>>> >>>> --- >>>> header-includes: \usepackage{xcolor} >>>> --- >>>> >>>> >>>> This is normal content, \textcolor{orange}{warning content} and >>>> \textcolor{red}{important content}. >>>> >>>> >>>> >>>> >>>> But this doesn't ``: >>>> \documentclass[]{article} >>>> \usepackage{xcolor} >>>> >>>> >>>> \begin{document} >>>> >>>> >>>> This is normal content, \textcolor{orange}{warning content} and >>>> \textcolor{red}{important content}. >>>> >>>> >>>> \end{document} >>>> >>>> >>>> >>>> >>>> That is, the content is completely the same, but it works from=20 >>>> markdown, but just not from latex? >>>> >>>> A little ironic since the syntax is latex :) >>>> >>> --=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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/7e3ddc50-55c9-4ee0-950e-555c1e98385c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_11589_1683619619.1530701305279 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I just don't understand why pandoc can produce the rig= ht output directly from markdown, but not intermediately through latex. It = should be possible to get the intermediate latex representation that also c= ompiles with pandoc. You're right, I could use pdflatex, I'm just p= uzzled at why it works for md to pdf then.

On Monday, 2 July 2018 10= :08:33 UTC+2, Christophe Demko wrote:
pandoc does not interpret all LaTeX commands. Don&= #39;t use pandoc if you want to compile a LaTeX file

Le dimanche 1 j= uillet 2018 13:34:37 UTC+2, Gandalf Saxe a =C3=A9crit=C2=A0:
It does not work; try to copy the= second example above into a test.tex and run:

pandoc test.tex=C2=A0-o test.= pdf

It will = not color any of the text. pdflatex will work fine though, so something hap= pens with using pandoc.

On Friday, 29 June 2018 16:52:45 UTC+2, Ch= ristophe Demko wrote:
The LaTeX code is convert correctly to pdf with correct colors

L= e jeudi 28 juin 2018 16:59:43 UTC+2, Gandalf Saxe a =C3=A9crit=C2=A0:
Why does this conve= rt correctly `pandoc test.md -o test.pdf`:

---
header
-includes: \usepackage{xcolor}
---


This<= /span> is
normal content, \<= /span>textcolor{orange}{warning content} and
\textcolor{red}{important content}.




But t= his doesn't ``:
\documentclass[]{article= }
\usepackage{xcolor}

\begin= {docume= nt}
=

This is normal content, \textcolor{orange}{warning content} and
\textcolor{red}{important content}.


= \end{document}=




That is, the content is completely the same, but it works from markdown, b= ut just not from latex?

A little ironic since the = syntax is latex :)

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/7e3ddc50-55c9-4ee0-950e-555c1e98385c%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_11589_1683619619.1530701305279-- ------=_Part_11588_1486674161.1530701305278--