From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/17948 Path: news.gmane.org!.POSTED!not-for-mail From: dorice Newsgroups: gmane.text.pandoc Subject: Re: Pandoc is "accidentally" commenting wrong lines in produced tex file Date: Mon, 24 Jul 2017 07:24:36 -0700 (PDT) Message-ID: <42a14266-4afc-42ee-afc6-6490f7bca43a@googlegroups.com> References: <5ec5b2f3-8c0d-43bd-9827-356f3869fffa@googlegroups.com> <20170723101024.GD69282@macbook-air-2.home> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3471_1878948269.1500906277051" X-Trace: blaine.gmane.org 1500906278 16240 195.159.176.226 (24 Jul 2017 14:24:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 24 Jul 2017 14:24:38 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCGOJUGCR4BRBJMG3DFQKGQEGN6APJI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jul 24 16:24:33 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-qk0-f189.google.com ([209.85.220.189]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZeHh-0003wh-2W for gtp-pandoc-discuss@m.gmane.org; Mon, 24 Jul 2017 16:24:33 +0200 Original-Received: by mail-qk0-f189.google.com with SMTP id v76sf5634627qka.0 for ; Mon, 24 Jul 2017 07:24:39 -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=5aGqG0qYjOwq6p5Em0g80F3pr0KmVLo1q7+OZ2IyKF0=; b=e211n+9x76k4wLW3hchmB13in5TDeVQnd2ckQqp+Ezz1mMkV0HcEPKO8lnX0wjNQFB uaMAyoalCz0L0JvT0xIa6BlozXJXgpLrChx3ALU8oUF7+0C5HTmy2hwTZOr4H+QaGSEV 1UmEMlAPMfBznygLI3gV2mjtsKuxz7gUUWcvU2rfMUsgFbX5bYRUA70c5QCj3s+iDb50 D89TZh4UnIMudZxcoRVUQlypvkTFH26PBMzXsUTLyRD83HdEEJmI8/z/B4EW447J1bbP KlcbFqV2a607Dv4CDLfaEVJv8ghdkmsFH9IBqQMg/l3DY6H2ASy3VzZoP0PvFiNcqJj0 MI0Q== 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=5aGqG0qYjOwq6p5Em0g80F3pr0KmVLo1q7+OZ2IyKF0=; b=i2ofhvzpWPM01lb/ltpe4R7RfFyNVaAVzoeqBqym1+K4lSguhPt2rSbo75MmeCjGrE neUsq6N5KaZ53j9+Vr0T5v+nAtCK4MGVb92Xmagvj9SUIAfwO+WnLWymRGFnzEdaJfec m6G/jtLOokSRT15/xyWieY6D+oBAqqP5u/4Sp5aznqYzVXWhWiIEYZaYeBAGP1P4rfMZ 8jNXvUObDA0MaYyMyI5zZHfpRi268+EdlmGztUyJTdqO6+hYin29gDEwWLypYOABWbvR r5IWpREQzgUgW8oxow2plWbC6FPutecnWtMVynE6dD62zTqh5X4a9sFaU5veh47gK5JD CvjA== 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=5aGqG0qYjOwq6p5Em0g80F3pr0KmVLo1q7+OZ2IyKF0=; b=beTwyzFI3CzTAcLGssAYyORgk+wxecBS1l6hJ1hqTHKMCCpfsH1GlzuVpTGr3LUFu5 ThFv8AuEawPcm4uWLQc+cCp1owxdwIuPgB7APlpDWWbVHDgFEaWvuda4cNrDA1okb/S3 rc/wcaayb07irWCAAg6Xb1Xpe7ebbfDQPQVboaCRdH4mjId0WTCR4VW+fAkwv2M9QW2L 1Gsp6pJoPnywEyeDHOBnxXhFLj1QCMV24gxLwqO/GriI8HvWG4C0Zf9KfaXA7Vy/naLq rQkK3bfVhqcnIlv1mTI7ytcFT6QexvNrtRm7Fkb9SsJeJ3Svy751qOAltS5r3afwQV6T WNPQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AIVw11201kERwhNLiM+N0hbGEQfX9VOsXhSDskszI66xYlZmDVhemrBH Yl/+nevFaSRo6w== X-Received: by 10.36.80.193 with SMTP id m184mr270501itb.6.1500906278763; Mon, 24 Jul 2017 07:24:38 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.36.172.109 with SMTP id m45ls3621855iti.11.canary-gmail; Mon, 24 Jul 2017 07:24:37 -0700 (PDT) X-Received: by 10.36.89.7 with SMTP id p7mr271710itb.4.1500906277669; Mon, 24 Jul 2017 07:24:37 -0700 (PDT) In-Reply-To: <20170723101024.GD69282-gd5emFPDCk1l5R22fHXGm0EMvNT87kid@public.gmane.org> X-Original-Sender: dorice.nyamy-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.org gmane.text.pandoc:17948 Archived-At: ------=_Part_3471_1878948269.1500906277051 Content-Type: multipart/alternative; boundary="----=_Part_3472_444351699.1500906277052" ------=_Part_3472_444351699.1500906277052 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello John, Thanks a lot for this clarification Dorice On Sunday, July 23, 2017 at 12:10:41 PM UTC+2, John MacFarlane wrote: > > You're trying to comment out parts of the template using=20 > LaTeX's %. This doesn't really work. The template syntax=20 > is language independent, so the % isn't recognized as a=20 > comment and the 'for' and 'if' commands inside the commented=20 > part are still resolved.=20 > > See https://github.com/jgm/pandoc/issues/3806=20 > > +++ dorice [Jul 18 17 13:55 ]:=20 > > Hello,=20 > > I am using attached latex template to convert docx documents to latex= .=20 > > Also see result file attached.=20 > > To make it simple, I have the following lines (herited from default= =20 > > template) to include the appropriate packages for the tables=20 > >$if(tables)$=20 > >\usepackage{longtable,booktabs}=20 > >% Fix footnotes in tables (requires footnote package)=20 > >\IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{longta= ble}}{}=20 > > >$endif$=20 > >=20 > > In the generated tex file, I get this=20 > >%%%%%%%\usepackage{longtable,booktabs}=20 > >% Fix footnotes in tables (requires footnote package)=20 > >\IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{longta= ble}}{}=20 > > >=20 > > Can someone tell why the packages are not included while the second= =20 > > line of the conditionnal block is inserted ?=20 > > Thanks in advance=20 > > Dorice=20 > >=20 > > --=20 > > You received this message because you are subscribed to the Google=20 > > Groups "pandoc-discuss" group.=20 > > To unsubscribe from this group and stop receiving emails from it, sen= d=20 > > an email to [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org .=20 > > To post to this group, send email to=20 > > [2]pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org .=20 > > To view this discussion on the web visit=20 > > [3] > https://groups.google.com/d/msgid/pandoc-discuss/5ec5b2f3-8c0d-43bd-=20 > > 9827-356f3869fffa%40googlegroups.com.=20 > > For more options, visit [4]https://groups.google.com/d/optout.=20 > >=20 > >References=20 > >=20 > > 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org = =20 > > 2. mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org =20 > > 3.=20 > https://groups.google.com/d/msgid/pandoc-discuss/5ec5b2f3-8c0d-43bd-9827-= 356f3869fffa-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=3Demail&utm_source=3Dfooter=20 > > 4. https://groups.google.com/d/optout=20 > > > >\documentclass[12pt,french,a5paper,openright,twoside]{CPHessay}=20 > >%%%\usepackage{lmodern}=20 > >%%%\usepackage{amssymb,amsmath}=20 > >%\usepackage{ifxetex,ifluatex}=20 > >%\usepackage{fixltx2e} % provides \textsubscript=20 > >%\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=3D0 % if pdftex=20 > >% \usepackage[T1]{fontenc}=20 > >% \usepackage[utf8]{inputenc}=20 > >%%\else % if luatex or xelatex=20 > >%% \usepackage{unicode-math}=20 > >%% \defaultfontfeatures{Ligatures=3DTeX,Scale=3DMatchLowercase}=20 > >%%%%%%%%\fi=20 > >% use upquote if available, for straight quotes in verbatim environments= =20 > >%\IfFileExists{upquote.sty}{\usepackage{upquote}}{}=20 > >% use microtype if available=20 > >%\IfFileExists{microtype.sty}{%=20 > >%\usepackage[]{microtype}=20 > >%\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt=20 > fonts=20 > >%}{}=20 > >%%\IfFileExists{parskip.sty}{%=20 > >%\usepackage{parskip}=20 > >%}{% else=20 > >%\setlength{\parindent}{0pt}=20 > >%\setlength{\parskip}{6pt plus 2pt minus 1pt}=20 > >%}=20 > >%%\PassOptionsToPackage{hyphens}{url} % url is loaded by hyperref=20 > >%%\usepackage[unicode=3Dtrue]{hyperref}=20 > >%%\hypersetup{=20 > >%% pdftitle=3D{Titre livre titre livre},=20 > >%%% pdfauthor=3D{Auteur Livre},=20 > >%%%% pdfborder=3D{0 0 0},=20 > >%% breaklinks=3Dtrue}=20 > >%\urlstyle{same} % don't use monospace font for urls=20 > >%%%%%%%\usepackage{longtable,booktabs}=20 > >% Fix footnotes in tables (requires footnote package)=20 > >\IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{longta= ble}}{}=20 > > >%%%%\setlength{\emergencystretch}{3em} % prevent overfull lines=20 > >%\providecommand{\tightlist}{%=20 > >% \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}=20 > >%%\setcounter{secnumdepth}{0}=20 > >%%% Redefines (sub)paragraphs to behave more like sections=20 > >%\ifx\paragraph\undefined\else=20 > >%\let\oldparagraph\paragraph=20 > >%\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}=20 > >%\fi=20 > >%\ifx\subparagraph\undefined\else=20 > >%\let\oldsubparagraph\subparagraph=20 > >%\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}=20 > >%\fi=20 > >%%%\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=3D0 % if pdftex=20 > >% \usepackage[shorthands=3Doff,main=3Dfrench]{babel}=20 > >%%\else=20 > > % load polyglossia as late as possible as it *could* call bidi if RTL= =20 > lang (e.g. Hebrew or Arabic)=20 > >% \usepackage{polyglossia}=20 > >% \setmainlanguage[]{french}=20 > >%%\fi=20 > >%%=20 > >% set default figure placement to htbp=20 > >%\makeatletter=20 > >%\def\fps@figure{htbp}=20 > >%\makeatother=20 > >=20 > >%=20 > >\title{Titre livre titre livre}=20 > >\providecommand{\subtitle}[1]{}=20 > >\subtitle{Sous-titre livre sous-titre livre}=20 > >\author{Auteur Livre}=20 > >\providecommand{\originaltitle}[1]{}=20 > >\originaltitle{Titre original livre titre original livre titre original= =20 > livre}=20 > >\providecommand{\copyrightyear}[1]{}=20 > >\copyrightyear{0000}=20 > >\providecommand{\copyrightholder}[1]{}=20 > >\copyrightholder{Titulaire Copyright}=20 > >\newcommand{\isbn}[1]{}=20 > >\isbn{abc-d-ef-ghijkj-m}=20 > >\newcommand{\pinfos}[1]{}=20 > >\pinfos{Infos production infos production infos production}=20 > >\providecommand{\publishername}[1]{}=20 > >\publishername{Nom =C3=89diteur Livre}=20 > >\providecommand{\publisheraddressone}[1]{}=20 > >\publisheraddressone{Adresse =C3=A9diteur ligne 1}=20 > >\providecommand{\publisheraddresstwo}[1]{}=20 > >\publisheraddresstwo{Adresse =C3=A9diteur ligne 2}=20 > >\providecommand{\publisheremail}[1]{}=20 > >\publisheremail{Email =C3=A9diteur email =C3=A9diteur}=20 > >\providecommand{\publisherphone}[1]{}=20 > >\publisherphone{T=C3=A9l=C3=A9phone =C3=A9diteur}=20 > >=20 > >%=20 > >%\date{}=20 > >=20 > >=20 > >\begin{document}=20 > >=20 > >%\blankpage=20 > >%\cleardoublepage=20 > >=20 > >\maketitle=20 > >=20 > >%=20 > >=20 > >{=20 > >\setcounter{tocdepth}{2}=20 > >\tableofcontents=20 > >}=20 > >=20 > >%%=20 > >\begin{longtable}[]{@{}ll@{}}=20 > >\toprule=20 > >Auteur livre & Auteur livre\tabularnewline=20 > >\midrule=20 > >\endhead=20 > >Titre livre & Titre livre titre livre\tabularnewline=20 > >Sous-titre livre & Sous-titre livre sous-titre livre\tabularnewline=20 > >Titre original & Titre original livre titre original livre titre=20 > >original livre\tabularnewline=20 > >Ann=C3=A9e copyright & AAAA\tabularnewline=20 > >Titulaire copyright & Titulaire copyright\tabularnewline=20 > >Isbn & ABC-D-EF-GHIJKL-M\tabularnewline=20 > >Nom =C3=A9diteur & Nom =C3=A9diteur\tabularnewline=20 > >Adresse =C3=A9diteur ligne 1 & Adresse =C3=A9titeur ligne 1\tabularnewli= ne=20 > >Adresse =C3=A9diteur ligne 2 & Adresse =C3=A9diteur ligne 2\tabularnewli= ne=20 > >E-mail =C3=A9diteur & E-mail =C3=A9diteur\tabularnewline=20 > >T=C3=A9l=C3=A9phone =C3=A9diteur & T=C3=A9l=C3=A9phone =C3=A9diteur\tabu= larnewline=20 > >Auteur couverture & Auteur couverture\tabularnewline=20 > >Type document & Essai\tabularnewline=20 > >Langue & Fr\tabularnewline=20 > >\bottomrule=20 > >\end{longtable}=20 > >=20 > >\chapter{Pr=C3=A9face}\label{pruxe9face}=20 > >=20 > >Texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face.=20 > >=20 > >Texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte.=20 > >=20 > >Texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace.=20 > >=20 > >Texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9f= ace texte pr=C3=A9face=20 > >texte pr=C3=A9face texte pr=C3=A9face.=20 > >=20 > >Auteur Pr=C3=A9face=20 > >=20 > >\part{Premi=C3=A8re partie}\label{premiuxe8re-partie}=20 > >=20 > >\chapter{Premier chapitre}\label{premier-chapitre}=20 > >=20 > >Texte premier chapitre texte premier chapitre texte premier chapitre=20 > >texte premier chapitre texte premier chapitre texte premier chapitre=20 > >texte premier chapitre texte premier chapitre texte premier chapitre=20 > >texte premier chapitre texte premier chapitre texte premier chapitre=20 > >texte premier chapitre texte premier chapitre texte premier chapitre=20 > >texte premier chapitre texte premier chapitre texte premier chapitre=20 > >texte premier chapitre texte premier chapitre texte premier chapitre=20 > >texte premier chapitre texte premier chapitre texte premier chapitre.=20 > >=20 > >\section{Premi=C3=A8re section}\label{premiuxe8re-section}=20 > >=20 > >Texte premi=C3=A8re section texte premi=C3=A8re section texte premi=C3= =A8re section=20 > >texte premi=C3=A8re section texte premi=C3=A8re section texte premi=C3= =A8re section=20 > >texte premi=C3=A8re section.=20 > >=20 > >\subsection{Premi=C3=A8re sous-section}\label{premiuxe8re-sous-section}= =20 > >=20 > >Texte premi=C3=A8re sous-section texte premi=C3=A8re sous-section texte = premi=C3=A8re=20 > >sous-section texte premi=C3=A8re sous-section texte premi=C3=A8re sous-s= ection=20 > >texte premi=C3=A8re sous-section.=20 > >=20 > >\subsubsection{Premier paragraphe}\label{premier-paragraphe}=20 > >=20 > >Texte premier paragraphe texte premier paragraphe texte premier=20 > >paragraphe texte premier paragraphe texte premier paragraphe texte=20 > >premier paragraphe texte premier paragraphe.=20 > >=20 > >Texte premier paragraphe texte premier paragraphe texte premier=20 > >paragraphe texte premier paragraphe.=20 > >=20 > >%%=20 > >\end{document}=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 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/42a14266-4afc-42ee-afc6-6490f7bca43a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_3472_444351699.1500906277052 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello John,
Thanks a lot for this clarification
Dori= ce

On Sunday, July 23, 2017 at 12:10:41 PM UTC+2, John MacFarlane wr= ote:
You're trying to comme= nt out parts of the template using
LaTeX's %. =C2=A0This doesn't really work. =C2=A0The template s= yntax
is language independent, so the % isn't recognized as a
comment and the 'for' and 'if' commands inside the comm= ented
part are still resolved.

See https://github.c= om/jgm/pandoc/issues/3806

+++ dorice [Jul 18 17 13:55 ]:
> =C2=A0 Hello,
> =C2=A0 I am using attached latex template to convert docx document= s to latex.
> =C2=A0 Also see result file attached.
> =C2=A0 To make it simple, I have the following lines (herited from= default
> =C2=A0 template) to include the appropriate packages for the table= s
>$if(tables)$
>\usepackage{longtable,booktabs}
>% Fix footnotes in tables (requires footnote package)
>\IfFileExists{footnote.sty}{\usepackage{footnote}\makesav= enoteenv{longtable}}{}
>$endif$
>
> =C2=A0 In the generated tex file, I get this
>%%%%%%%\usepackage{longtable,booktabs}
>% Fix footnotes in tables (requires footnote package)
>\IfFileExists{footnote.sty}{\usepackage{footnote}\makesav= enoteenv{longtable}}{}
>
> =C2=A0 Can someone tell why the packages are not included while th= e second
> =C2=A0 line of the conditionnal block is inserted ?
> =C2=A0 Thanks in advance
> =C2=A0 Dorice
>
> =C2=A0 --
> =C2=A0 You received this message because you are subscribed to the= Google
> =C2=A0 Groups "pandoc-discuss" group.
> =C2=A0 To unsubscribe from this group and stop receiving emails fr= om it, send
> =C2=A0 an email to [1]pandoc-discus...@googlegroups.com.
> =C2=A0 To post to this group, send email to
> =C2=A0 [2]pandoc-...@googlegroups.com.
> =C2=A0 To view this discussion on the web visit
> =C2=A0 [3]http= s://groups.google.com/d/msgid/pandoc-discuss/5ec5b2f3-8c0d-43bd-<= /a>
> =C2=A0 9827-356f3869fffa%
40googlegroups.com.
> =C2=A0 For more options, visit [4]https:= //groups.google.com/d/optout.
>
>References
>
> =C2=A0 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> =C2=A0 2. mailto:pandoc-...@googlegroups.com
> =C2=A0 3. https://groups.google.com/d/msgid/pandoc-discuss/5ec5b2f3-8= c0d-43bd-9827-356f3869fffa@googlegroups.com?utm_medium=3Demail&am= p;utm_source=3Dfooter
> =C2=A0 4. https://groups.google.com/d/optout


>\documentclass[12pt,french,a5paper,openright,twoside]{CPH= essay}
>%%%\usepackage{lmodern}
>%%%\usepackage{amssymb,amsmath}
>%\usepackage{ifxetex,ifluatex}
>%\usepackage{fixltx2e} % provides \textsubscript
>%\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=3D0 % if pdftex
>% =C2=A0\usepackage[T1]{fontenc}
>% =C2=A0\usepackage[utf8]{inputenc}
>%%\else % if luatex or xelatex
>%% =C2=A0\usepackage{unicode-math}
>%% =C2=A0\defaultfontfeatures{Ligatures=3DTeX,Scale=3DMat= chLowercase}
>%%%%%%%%\fi
>% use upquote if available, for straight quotes in verbatim environ= ments
>%\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}
>%}
>%%\PassOptionsToPackage{hyphens}{url} % url is loaded by hyper= ref
>%%\usepackage[unicode=3Dtrue]{hyperref}
>%%\hypersetup{
>%% =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0pdftitle=3D{Titre livre= titre livre},
>%%% =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0pdfauthor=3D{Auteur Li= vre},
>%%%% =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0pdfborder=3D{0 0 0},
>%% =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0breaklinks=3Dtrue}
>%\urlstyle{same} =C2=A0% don't use monospace font for urls
>%%%%%%%\usepackage{longtable,booktabs}
>% Fix footnotes in tables (requires footnote package)
>\IfFileExists{footnote.sty}{\usepackage{footnote}\makesav= enoteenv{longtable}}{}
>%%%%\setlength{\emergencystretch}{3em} =C2=A0% prevent overful= l lines
>%\providecommand{\tightlist}{%
>% =C2=A0\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
>%%%\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=3D0 % if pdftex
>% =C2=A0\usepackage[shorthands=3Doff,main=3Dfrench]{babel}
>%%\else
> =C2=A0% load polyglossia as late as possible as it *could* call bi= di if RTL lang (e.g. Hebrew or Arabic)
>% =C2=A0\usepackage{polyglossia}
>% =C2=A0\setmainlanguage[]{french}
>%%\fi
>%%
>% set default figure placement to htbp
>%\makeatletter
>%\def\fps@figure{htbp}
>%\makeatother
>
>%
>\title{Titre livre titre livre}
>\providecommand{\subtitle}[1]{}
>\subtitle{Sous-titre livre sous-titre livre}
>\author{Auteur Livre}
>\providecommand{\originaltitle}[1]{}
>\originaltitle{Titre original livre titre original livre titre orig= inal livre}
>\providecommand{\copyrightyear}[1]{}
>\copyrightyear{0000}
>\providecommand{\copyrightholder}[1]{}
>\copyrightholder{Titulaire Copyright}
>\newcommand{\isbn}[1]{}
>\isbn{abc-d-ef-ghijkj-m}
>\newcommand{\pinfos}[1]{}
>\pinfos{Infos production infos production infos production}
>\providecommand{\publishername}[1]{}
>\publishername{Nom =C3=89diteur Livre}
>\providecommand{\publisheraddressone}[1]{}
>\publisheraddressone{Adresse =C3=A9diteur ligne 1}
>\providecommand{\publisheraddresstwo}[1]{}
>\publisheraddresstwo{Adresse =C3=A9diteur ligne 2}
>\providecommand{\publisheremail}[1]{}
>\publisheremail{Email =C3=A9diteur email =C3=A9diteur}
>\providecommand{\publisherphone}[1]{}
>\publisherphone{T=C3=A9l=C3=A9phone =C3=A9diteur}
>
>%
>%\date{}
>
>
>\begin{document}
>
>%\blankpage
>%\cleardoublepage
>
>\maketitle
>
>%
>
>{
>\setcounter{tocdepth}{2}
>\tableofcontents
>}
>
>%%
>\begin{longtable}[]{@{}ll@{}}
>\toprule
>Auteur livre & Auteur livre\tabularnewline
>\midrule
>\endhead
>Titre livre & Titre livre titre livre\tabularnewline
>Sous-titre livre & Sous-titre livre sous-titre livre\tabularnew= line
>Titre original & Titre original livre titre original livre titr= e
>original livre\tabularnewline
>Ann=C3=A9e copyright & AAAA\tabularnewline
>Titulaire copyright & Titulaire copyright\tabularnewline
>Isbn & ABC-D-EF-GHIJKL-M\tabularnewline
>Nom =C3=A9diteur & Nom =C3=A9diteur\tabularnewline
>Adresse =C3=A9diteur ligne 1 & Adresse =C3=A9titeur ligne 1\tab= ularnewline
>Adresse =C3=A9diteur ligne 2 & Adresse =C3=A9diteur ligne 2\tab= ularnewline
>E-mail =C3=A9diteur & E-mail =C3=A9diteur\tabularnewline
>T=C3=A9l=C3=A9phone =C3=A9diteur & T=C3=A9l=C3=A9phone =C3=A9di= teur\tabularnewline
>Auteur couverture & Auteur couverture\tabularnewline
>Type document & Essai\tabularnewline
>Langue & Fr\tabularnewline
>\bottomrule
>\end{longtable}
>
>\chapter{Pr=C3=A9face}\label{pruxe9face}
>
>Texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face.
>
>Texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte.
>
>Texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face.
>
>Texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face texte pr=C3=A9face texte pr= =C3=A9face texte pr=C3=A9face
>texte pr=C3=A9face texte pr=C3=A9face.
>
>Auteur Pr=C3=A9face
>
>\part{Premi=C3=A8re partie}\label{premiuxe8re-partie}
>
>\chapter{Premier chapitre}\label{premier-chapitre}
>
>Texte premier chapitre texte premier chapitre texte premier chapitr= e
>texte premier chapitre texte premier chapitre texte premier chapitr= e
>texte premier chapitre texte premier chapitre texte premier chapitr= e
>texte premier chapitre texte premier chapitre texte premier chapitr= e
>texte premier chapitre texte premier chapitre texte premier chapitr= e
>texte premier chapitre texte premier chapitre texte premier chapitr= e
>texte premier chapitre texte premier chapitre texte premier chapitr= e
>texte premier chapitre texte premier chapitre texte premier chapitr= e.
>
>\section{Premi=C3=A8re section}\label{premiuxe8re-section}
>
>Texte premi=C3=A8re section texte premi=C3=A8re section texte premi= =C3=A8re section
>texte premi=C3=A8re section texte premi=C3=A8re section texte premi= =C3=A8re section
>texte premi=C3=A8re section.
>
>\subsection{Premi=C3=A8re sous-section}\label{premiuxe8re-sous= -section}
>
>Texte premi=C3=A8re sous-section texte premi=C3=A8re sous-section t= exte premi=C3=A8re
>sous-section texte premi=C3=A8re sous-section texte premi=C3=A8re s= ous-section
>texte premi=C3=A8re sous-section.
>
>\subsubsection{Premier paragraphe}\label{premier-paragraphe}
>
>Texte premier paragraphe texte premier paragraphe texte premier
>paragraphe texte premier paragraphe texte premier paragraphe texte
>premier paragraphe texte premier paragraphe.
>
>Texte premier paragraphe texte premier paragraphe texte premier
>paragraphe texte premier paragraphe.
>
>%%
>\end{document}

--
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/42a14266-4afc-42ee-afc6-6490f7bca43a%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_3472_444351699.1500906277052-- ------=_Part_3471_1878948269.1500906277051--