From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23064 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: mb21 Newsgroups: gmane.text.pandoc Subject: Re: Markdown->Latex and Inline Links referencing included subdirectory files Date: Fri, 28 Jun 2019 01:59:23 -0700 (PDT) Message-ID: <9a46e30b-742a-4987-9832-c658ae26641b@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_293_1377269357.1561712363405" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="222053"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDCMBBVJ5EFBB3FN27UAKGQED66MTFI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jun 28 10:59:27 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi1-f190.google.com ([209.85.167.190]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hgmj8-000vcn-Ci for gtp-pandoc-discuss@m.gmane.org; Fri, 28 Jun 2019 10:59:26 +0200 Original-Received: by mail-oi1-f190.google.com with SMTP id d12sf2233016oic.10 for ; Fri, 28 Jun 2019 01:59:26 -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=TgzfeIdyf7Bu8m3MihxsSRL9FXD1c8dkqbLxTYohqBw=; b=MjdH6GPR0K2U3VcoC0p5mRfuQfdOE1aNLSShoW8+WLgrS3EuFLU55U+RQ7sBBUQmUd 63zGXMXgbxMTdPJU/Ra9YvUc3tgjqX/9abaR08p64GwEHvqZEIbNT3v7SlLxXzRnQkvH Np8Zqd+igz7jLDpLMhD1HxkAgH6HK2JzR6LqX0NUEuvIMYUdGtqwPU1grHjE8+ECVl2+ c2EZIS92QW9qto5qAT/2Ta03YFgD8fy+binozW0SiYjaOfh0TLwRSbaXImcYb4vOSP9G Y2xUtUwU3vPipi1mOVLTnyJi125LlJhLGBCdmk/ddXok6zzL+wlfKZ+AGZu60eLZGWxR tUYQ== 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=TgzfeIdyf7Bu8m3MihxsSRL9FXD1c8dkqbLxTYohqBw=; b=kc2zYRBS+nFh17BS+xpyXxRQGsmGg7gHlPrKrMtY5qjGom8VOJFzlYaS3/qd51RPOW V7/0Bud+TsX26XSyd8PQ/GfGzJj5NjwusZsexqzgDjqOAl37OF6cqYqYDmXO2vk9t069 3YirL4Voawi8XGoqTFbNNzW/Jst8J1ejdBn0UKQBOV6JdPofijCAm++Ib12WTs22cFwI SAeJqVtWugbNM7xGKzl0omk0HN83Uy8ZyoZQd2iwlrbTrb7X+jUN2RT+ANPUae7ESSBW eovNpPf8oTTmLwEPdmfyJyraTMn8pmj8f3SxKnKI1C0CDHc0JHn8T4aWS2GiAkk2K0Nl q86A== 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=TgzfeIdyf7Bu8m3MihxsSRL9FXD1c8dkqbLxTYohqBw=; b=JUDatD/cNNimD27a3Js0mARmXUIRCh18DHhuNl0Aavyxd2+/qRB+kuHfPwyg9fJhn0 rEzyzwSS7Zz9eTHSarKcXhdFsxq+CvUocR3sb9TTWKxM03FplPtZXXZxjZGRkjW4ylkT ct0EkJditNJKutY+Wl1VJxufgc1zWKUcPfIF5oMmDs3ZyGCDoJvRabEnXm503ix/ejLD Kib5qU7+E0JSQsJ+xz2Zl7Bf+5ly4cCnYp+BapzK5UZouiw1eB8RSxTHVc0YDs5xzpUY bTDqTOtyi6BIKjEvRPdTtPL6tjsMxNRQgJGLC2l/ne4PRECiVx0OTB1pILX8R/sdamGe IuSg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAUENIhXQGExor/j5iqXT5jKQF+WQwdgUne3aIxWE5fLd6CRTknb jZkTJpzPg9e+7iC4W/9kS/o= X-Google-Smtp-Source: APXvYqxL56ILYFXygbukJVEYxF3UBrSCu2ky/FiXS4P3TT9F8UVDoXGm7CoHzZnLoxRg09d5O20mjA== X-Received: by 2002:aca:bc02:: with SMTP id m2mr1068366oif.139.1561712365028; Fri, 28 Jun 2019 01:59:25 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:4ad3:: with SMTP id x202ls268561oia.0.gmail; Fri, 28 Jun 2019 01:59:24 -0700 (PDT) X-Received: by 2002:aca:e086:: with SMTP id x128mr1006800oig.127.1561712363915; Fri, 28 Jun 2019 01:59:23 -0700 (PDT) In-Reply-To: X-Original-Sender: mauro.bieg-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:23064 Archived-At: ------=_Part_293_1377269357.1561712363405 Content-Type: multipart/alternative; boundary="----=_Part_294_1922677339.1561712363405" ------=_Part_294_1922677339.1561712363405 Content-Type: text/plain; charset="UTF-8" Since you're catting all the files with your shell before sending them to pandoc, it looks to pandoc like they all live in the same directory. Thus you should just link them like it was one big file. On Thursday, June 27, 2019 at 2:52:18 AM UTC+2, Mike Crowe wrote: > > Hey folks, > > So, I'm building a PDF from bunch of markdown files. Starting at the top > file, I build a list of all the files references in a link, such as [Some > Topic](file1.md), [Another Topic](file2.md). My list would then contain: > > README.md > file1.md > file2.md > > etc. > > However, I have subdirectories of markdown files, so my list of files is > more like: > > README.md > file1.md > file2.md > topic1/file3.md > topic1/file4.md > topic2/file5.md > topic2/file6.md > > To build the PDF, I'm essentially calling pandoc as follows: > > pandoc --template templates/mytemplate.latex --listings --file-scope > --self-contained \ > -f gfm \ > -s $(cat files.lis) \ > -o $OUTPUT.pdf > > Overall, this is working great for all the markdown files in the root > directory (so file1.md, file2.md). However, all the markdown files in a > subdirectory (such as topic1/file3) show up as a link in the PDF, rather > than an inline link, and try to open up topic1/file3.md rather than jump to > the anchor. > > As an aside, it *appears* that pandoc is creating the anchor for > topic1/file3.md as file3, though I'd prefer it were topic1file3. > > > > > > > -- 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 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/9a46e30b-742a-4987-9832-c658ae26641b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_294_1922677339.1561712363405 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Since you're catting all the files with your shell bef= ore sending them to pandoc, it looks to pandoc like they all live in the sa= me directory. Thus you should just link them like it was one big file.
<= br>On Thursday, June 27, 2019 at 2:52:18 AM UTC+2, Mike Crowe wrote:
Hey folks,

<= /div>
So, I'm building a PDF from bunch of markdown files.=C2=A0 St= arting at the top file, I build a list of all the files references in a lin= k, such as [Some Topic](file1.md), [Another Topic](file2.md).=C2=A0 My list= would then contain:

README.md
file1.md<= /div>
file2.md

etc.

H= owever, I have subdirectories of markdown files, so my list of files is mor= e like:

README.md
file1.md
file2.md
topic1/file3.md
topic1/file4.md
to= pic2/file5.md
topic2/file6.md

To b= uild the PDF, I'm essentially calling pandoc as follows:

=
pandoc --template templates/mytemplate.latex --listings --file-s= cope --self-contained \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -f gfm \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -s $(cat files.lis) \
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 -o $OUTPUT.pdf

Overall, this = is working great for all the markdown files in the root directory (so file1= .md, file2.md).=C2=A0 However, all the markdown files in a subdirectory (su= ch as topic1/file3) show up as a link in the PDF, rather than an inline lin= k, and try to open up topic1/file3.md rather than jump to the anchor.
=

As an aside, it *appears* that pandoc is creating the a= nchor for topic1/file3.md as file3, though I'd prefer it were topic1fil= e3.




<= br>

--
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/9a46e30b-742a-4987-9832-c658ae26641b%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_294_1922677339.1561712363405-- ------=_Part_293_1377269357.1561712363405--