public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: Andreas Scherer
	<andreas_scherer-KuiJ5kEpwI6ELgA04lAiVw@public.gmane.org>,
	pandoc-discuss
	<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: [LaTeX] Problem with Links in headers
Date: Sun, 01 Sep 2019 20:52:18 -0700	[thread overview]
Message-ID: <m28sr7cq31.fsf@johnmacfarlane.net> (raw)
In-Reply-To: <9600a513-8196-4747-953f-70ada224a688-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>


Not sure.  The way to diagnose this is to use

pandoc -t latex -s

to generate a latex file, then build using pdflatex;
you may get more informative errors this way, and you
can inspect the intermediate tex and see if anything
looks wrong. (You may need to enlist a tex expert for
this.)  If something is wrong in pandoc's latex output,
it can be fixed, but we need to understand the problem
first.  Does anyone have ideas? The latex is produced
below:

\hypertarget{fascicle-1-for-section-1.3-mmix-orig}{%
\paragraph{\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)}}\label{fascicle-1-for-section-1.3-mmix-orig}}

\href{file:///opt/archive/Code\%20For\%20Books/TAoCP\%20(Knuth)/err1f1.ps.gz}{Errata
for Fascicle 1}
(\href{https://www-cs-faculty.stanford.edu/~knuth/err1f1.ps.gz}{orig}).




Andreas Scherer <andreas_scherer-KuiJ5kEpwI6ELgA04lAiVw@public.gmane.org> writes:

> What's wrong with the attached MWE? If I try to compile *taocp.md* with *pandoc 
> taocp.md -o taocp.pdf*, I receive the error message from LaTeX: 
>
> Error producing PDF.
> ! File ended while scanning use of \@writefile.
> <inserted text>  
>                \par  
> l.49 \begin{document}
>
>
> If I delete either non-empty input line, the compilation is successful and 
> the links work in the PDF dile.
>
> (*pandoc taocp.md -s -o taocp.html* works fine.)
>
> -- 
> 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/9600a513-8196-4747-953f-70ada224a688%40googlegroups.com.
>
> #### Fascicle 1 for Section 1.3: [MMIX](file:///opt/archive/Code For Books/TAoCP (Knuth)/fasc1.ps.gz) ([orig](https://www-cs-faculty.stanford.edu/~knuth/fasc1.ps.gz))
>
> [Errata for Fascicle 1](file:///opt/archive/Code For Books/TAoCP (Knuth)/err1f1.ps.gz) ([orig](https://www-cs-faculty.stanford.edu/~knuth/err1f1.ps.gz)).


  parent reply	other threads:[~2019-09-02  3:52 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 [this message]
     [not found]     ` <m28sr7cq31.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-09-02 17:13       ` Andreas Scherer
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=m28sr7cq31.fsf@johnmacfarlane.net \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
    --cc=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).