public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Error parsing tex with %\ after empty line inside of block
@ 2015-03-09 16:20 Daurnimator
       [not found] ` <CAEnbY+dCD2Hp9_Py+9o5zP88JjyuCBMWbqM3bg5hDX=FDXXbxw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Daurnimator @ 2015-03-09 16:20 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Trying to compile:

\title{
Test

%\vspace*{20pt}
}

Results in:

pandoc:
Error at "source" (line 4, column 1):
unexpected '\n'
%\vspace*{20pt}
^

(I hope I reduced the test case down correctly)

Daurn.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error parsing tex with %\ after empty line inside of block
       [not found] ` <CAEnbY+dCD2Hp9_Py+9o5zP88JjyuCBMWbqM3bg5hDX=FDXXbxw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-03-09 19:31   ` John MacFarlane
       [not found]     ` <20150309193104.GB8520-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: John MacFarlane @ 2015-03-09 19:31 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

It actually has nothing to do with the %. The problem is the blank line
inside \title{...}.

This sufficies to reproduce the problem:

```
\title{
Test

}
```

But note!  This won't compile with pdflatex either.  You can't have a blank line inside \title{}.
I don't think it's a bug if pandoc chokes on invalid latex.

+++ Daurnimator [Mar 09 15 12:20 ]:
>Trying to compile:
>
>\title{
>Test
>
>%\vspace*{20pt}
>}
>
>Results in:
>
>pandoc:
>Error at "source" (line 4, column 1):
>unexpected '\n'
>%\vspace*{20pt}
>^
>
>(I hope I reduced the test case down correctly)
>
>Daurn.
>
>-- 
>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/CAEnbY%2BdCD2Hp9_Py%2B9o5zP88JjyuCBMWbqM3bg5hDX%3DFDXXbxw%40mail.gmail.com.
>For more options, visit https://groups.google.com/d/optout.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error parsing tex with %\ after empty line inside of block
       [not found]     ` <20150309193104.GB8520-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
@ 2015-03-09 19:41       ` Daurnimator
       [not found]         ` <CAEnbY+eFE7D-G9aKST2MO-xdrNCqURnYZOrG=Ost2gs_jduzyQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Daurnimator @ 2015-03-09 19:41 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

On 9 March 2015 at 15:31, John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> wrote:
> It actually has nothing to do with the %. The problem is the blank line
> inside \title{...}.
>
> This sufficies to reproduce the problem:
>
> ```
> \title{
> Test
>
> }
> ```
>
> But note!  This won't compile with pdflatex either.  You can't have a blank
> line inside \title{}.
> I don't think it's a bug if pandoc chokes on invalid latex.

xelatex seems to allow it.
I get the same error passing --latex-engine=xelatex

Some background: I wanted to see how pandoc compiled
https://github.com/wahern/cqueues/blob/master/doc/cqueues.tex


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error parsing tex with %\ after empty line inside of block
       [not found]         ` <CAEnbY+eFE7D-G9aKST2MO-xdrNCqURnYZOrG=Ost2gs_jduzyQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-03-10  0:27           ` John MacFarlane
       [not found]             ` <20150310002710.GA12098-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: John MacFarlane @ 2015-03-10  0:27 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

+++ Daurnimator [Mar 09 15 15:41 ]:
>On 9 March 2015 at 15:31, John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> wrote:
>> It actually has nothing to do with the %. The problem is the blank line
>> inside \title{...}.
>>
>> This sufficies to reproduce the problem:
>>
>> ```
>> \title{
>> Test
>>
>> }
>> ```
>>
>> But note!  This won't compile with pdflatex either.  You can't have a blank
>> line inside \title{}.
>> I don't think it's a bug if pandoc chokes on invalid latex.
>
>xelatex seems to allow it.

xelatex chokes on my example with the same error as
pdflatex.

>Some background: I wanted to see how pandoc compiled
>https://github.com/wahern/cqueues/blob/master/doc/cqueues.tex

OK, here there is \\ before the blank line, preventing a
paragraph break.  This is where the problem really lies, I
think.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error parsing tex with %\ after empty line inside of block
       [not found]             ` <20150310002710.GA12098-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
@ 2015-03-10 16:43               ` John MacFarlane
       [not found]                 ` <20150310164339.GH67493-0VdLhd/A9Pm0ooXD8Eul3QV/cM5bZUxVaxvHy9gZ5WyVc3sceRu5cw@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: John MacFarlane @ 2015-03-10 16:43 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

+++ John MacFarlane [Mar 09 15 17:27 ]:
>+++ Daurnimator [Mar 09 15 15:41 ]:
>>On 9 March 2015 at 15:31, John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> wrote:
>>>It actually has nothing to do with the %. The problem is the blank line
>>>inside \title{...}.
>>>
>>>This sufficies to reproduce the problem:
>>>
>>>```
>>>\title{
>>>Test
>>>
>>>}
>>>```
>>>
>>>But note!  This won't compile with pdflatex either.  You can't have a blank
>>>line inside \title{}.
>>>I don't think it's a bug if pandoc chokes on invalid latex.
>>
>>xelatex seems to allow it.
>
>xelatex chokes on my example with the same error as
>pdflatex.
>
>>Some background: I wanted to see how pandoc compiled
>>https://github.com/wahern/cqueues/blob/master/doc/cqueues.tex
>
>OK, here there is \\ before the blank line, preventing a
>paragraph break.  This is where the problem really lies, I
>think.

Why don't you submit an issue report with a link to the cqueues.tex
file and this thread?  That way we won't lose track of it.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error parsing tex with %\ after empty line inside of block
       [not found]                 ` <20150310164339.GH67493-0VdLhd/A9Pm0ooXD8Eul3QV/cM5bZUxVaxvHy9gZ5WyVc3sceRu5cw@public.gmane.org>
@ 2015-03-10 17:01                   ` Daurnimator
  0 siblings, 0 replies; 6+ messages in thread
From: Daurnimator @ 2015-03-10 17:01 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

On 10 March 2015 at 12:43, John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> wrote:
> Why don't you submit an issue report with a link to the cqueues.tex
> file and this thread?  That way we won't lose track of it.

Done :)
https://github.com/jgm/pandoc/issues/2001


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-03-10 17:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-09 16:20 Error parsing tex with %\ after empty line inside of block Daurnimator
     [not found] ` <CAEnbY+dCD2Hp9_Py+9o5zP88JjyuCBMWbqM3bg5hDX=FDXXbxw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-03-09 19:31   ` John MacFarlane
     [not found]     ` <20150309193104.GB8520-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
2015-03-09 19:41       ` Daurnimator
     [not found]         ` <CAEnbY+eFE7D-G9aKST2MO-xdrNCqURnYZOrG=Ost2gs_jduzyQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-03-10  0:27           ` John MacFarlane
     [not found]             ` <20150310002710.GA12098-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
2015-03-10 16:43               ` John MacFarlane
     [not found]                 ` <20150310164339.GH67493-0VdLhd/A9Pm0ooXD8Eul3QV/cM5bZUxVaxvHy9gZ5WyVc3sceRu5cw@public.gmane.org>
2015-03-10 17:01                   ` Daurnimator

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).