public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Andreas Scherer <andreas_scherer-KuiJ5kEpwI6ELgA04lAiVw@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: [LaTeX] Problem with Links in headers
Date: Mon, 2 Sep 2019 19:13:29 +0200	[thread overview]
Message-ID: <89c31dd5-d85e-2e68-5cf5-7e818db48a1a@freenet.de> (raw)
In-Reply-To: <m28sr7cq31.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>


[-- Attachment #1.1.1: Type: text/plain, Size: 1450 bytes --]

> pandoc -t latex -s

I've set up a git environment and inspected the diff's between 'master'
and 'header-line' and 'text-line', resp.

Branch 'text-line' shows that deleting the 'paragraph' line from
'taocp.md' simply removes the related parts from 'taocp.tex' and
'taocp.aux'. It takes a single run through pdflatex to get a complete
PDF file.

Branch 'header-line', however, shows one non-trivial difference in
'taocp.aux', i.e., the 'spaces' have non-escaped percent characters; see
attachment. Running pdflatex twice resolves all references.

> (You may need to enlist a tex expert for this.)
> If something is wrong in pandoc's latex output, it can be fixed

It appears that the problem is caused by the space characters in the
'file:///' directory reference. If I replace them with, e.g., '-', the
original TeX code compiles fine. (However, I do _not_ want to rename the
directory structure.)

Trying to escape the spaces in 'taocp.md' fails with both '\ ' and '%20'.

I wonder how deleting the neighboring text line can satisfy pdflatex.

-- 
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/89c31dd5-d85e-2e68-5cf5-7e818db48a1a%40freenet.de.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1.2: taocp.aux.diff --]
[-- Type: text/x-diff; name="taocp.aux.diff", Size: 1127 bytes --]

diff --git a/taocp.aux b/taocp.aux
index a2ce93a..31475e6 100644
--- a/taocp.aux
+++ b/taocp.aux
@@ -19,4 +19,4 @@
 \providecommand\HyField@AuxAddToFields[1]{}
 \providecommand\HyField@AuxAddToCoFields[2]{}
 \newlabel{fascicle-1-for-section-1.3-mmix-orig}{{}{1}{\texorpdfstring {Fascicle 1 for Section 1.3: \href {file:///opt/archive/Code\%20For\%20Books/TAoCP\%20(Knuth)/fasc1.ps.gz}{MMIX} (\href {https://www-cs-faculty.stanford.edu/~knuth/fasc1.ps.gz}{orig})}{Fascicle 1 for Section 1.3: MMIX (orig)}}{section*.1}{}}
-\@writefile{toc}{\contentsline {paragraph}{\nonumberline Fascicle 1 for Section 1.3: \href  {file:///opt/archive/Code%20For%20Books/TAoCP%20(Knuth)/fasc1.ps.gz}{MMIX} (\href  {https://www-cs-faculty.stanford.edu/\nobreakspace  {}knuth/fasc1.ps.gz}{orig})}{1}{section*.1}\protected@file@percent }
+\@writefile{toc}{\contentsline {paragraph}{\nonumberline Fascicle 1 for Section 1.3: \href  {file:///opt/archive/Code\%20For\%20Books/TAoCP\%20(Knuth)/fasc1.ps.gz}{MMIX} (\href  {https://www-cs-faculty.stanford.edu/\nobreakspace  {}knuth/fasc1.ps.gz}{orig})}{1}{section*.1}\protected@file@percent }

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  parent reply	other threads:[~2019-09-02 17:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-01 13:16 Andreas Scherer
     [not found] ` <9600a513-8196-4747-953f-70ada224a688-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-09-02  3:52   ` John MacFarlane
     [not found]     ` <m28sr7cq31.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-09-02 17:13       ` Andreas Scherer [this message]
2019-09-03  8:43 Andreas Scherer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=89c31dd5-d85e-2e68-5cf5-7e818db48a1a@freenet.de \
    --to=andreas_scherer-kuij5kepwi6elga04laivw@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).