public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Leading \qquad not rendering in PDF output
@ 2022-10-15 17:07 Asher Harvey-Smith
       [not found] ` <87599708-491c-42c5-b448-798644e592d6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Asher Harvey-Smith @ 2022-10-15 17:07 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1150 bytes --]

I have the following markdown:


# heading

$\text{if you're happy and you know it}$  
$\qquad\text{clap your}\qquad\text{hands!}$  


I'm converting this to pdf using

pandoc filename.md -o filename.pdf

and in the output pdf the \qquad between 'clap your' and 'hands' renders 
correctly, but the leading \qquad before 'clap your' appears to be missing 
as there is no space before the line begins. I tried generating tex instead 
of pdf and got the following:


\hypertarget{heading}{%
\section{heading}\label{heading}}

\(\text{if you're happy and you know it}\)\\
\(\qquad\text{clap your hands!}\qquad\pi\)


So the leading \qquad seems to be present in the intermediate stage. Does 
anybody know why it's not rendering in the output?

-- 
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/87599708-491c-42c5-b448-798644e592d6n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1670 bytes --]

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

* Re: Leading \qquad not rendering in PDF output
       [not found] ` <87599708-491c-42c5-b448-798644e592d6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2022-10-15 17:09   ` Asher Harvey-Smith
       [not found]     ` <5e3eaf24-bb25-4515-9300-0776d28cd544n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Asher Harvey-Smith @ 2022-10-15 17:09 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1460 bytes --]

correction - the generated tex is:


\hypertarget{heading}{%
\section{heading}\label{heading}}

\(\text{if you're happy and you know it}\)\\
\(\qquad\text{clap your}\qquad\text{hands!}\)
On Saturday, October 15, 2022 at 6:07:07 PM UTC+1 Asher Harvey-Smith wrote:

> I have the following markdown:
>
>
> # heading
>
> $\text{if you're happy and you know it}$  
> $\qquad\text{clap your}\qquad\text{hands!}$  
>
>
> I'm converting this to pdf using
>
> pandoc filename.md -o filename.pdf
>
> and in the output pdf the \qquad between 'clap your' and 'hands' renders 
> correctly, but the leading \qquad before 'clap your' appears to be missing 
> as there is no space before the line begins. I tried generating tex instead 
> of pdf and got the following:
>
>
> \hypertarget{heading}{%
> \section{heading}\label{heading}}
>
> \(\text{if you're happy and you know it}\)\\
> \(\qquad\text{clap your hands!}\qquad\pi\)
>
>
> So the leading \qquad seems to be present in the intermediate stage. Does 
> anybody know why it's not rendering in the output?
>

-- 
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/5e3eaf24-bb25-4515-9300-0776d28cd544n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 2230 bytes --]

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

* Re: Leading \qquad not rendering in PDF output
       [not found]     ` <5e3eaf24-bb25-4515-9300-0776d28cd544n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2022-10-15 20:09       ` John MacFarlane
       [not found]         ` <EEC5A828-F9B2-4EF9-9C25-09812C74F34B-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: John MacFarlane @ 2022-10-15 20:09 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Maybe this is a TeX issue?  Pandoc is simply passing it through verbatim.

> On Oct 15, 2022, at 10:09 AM, Asher Harvey-Smith <asherharveysmith-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> 
> correction - the generated tex is:
> 
> 
> \hypertarget{heading}{%
> \section{heading}\label{heading}}
> 
> \(\text{if you're happy and you know it}\)\\
> \(\qquad\text{clap your}\qquad\text{hands!}\)
> On Saturday, October 15, 2022 at 6:07:07 PM UTC+1 Asher Harvey-Smith wrote:
> I have the following markdown:
> 
> 
> # heading
> 
> $\text{if you're happy and you know it}$  
> $\qquad\text{clap your}\qquad\text{hands!}$  
> 
> 
> I'm converting this to pdf using
> 
> pandoc filename.md -o filename.pdf
> 
> and in the output pdf the \qquad between 'clap your' and 'hands' renders correctly, but the leading \qquad before 'clap your' appears to be missing as there is no space before the line begins. I tried generating tex instead of pdf and got the following:
> 
> 
> \hypertarget{heading}{%
> \section{heading}\label{heading}}
> 
> \(\text{if you're happy and you know it}\)\\
> \(\qquad\text{clap your hands!}\qquad\pi\)
> 
> 
> So the leading \qquad seems to be present in the intermediate stage. Does anybody know why it's not rendering in the output?
> 
> -- 
> 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/5e3eaf24-bb25-4515-9300-0776d28cd544n%40googlegroups.com.


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

* Re: Leading \qquad not rendering in PDF output
       [not found]         ` <EEC5A828-F9B2-4EF9-9C25-09812C74F34B-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2022-10-16  9:24           ` 'Nick Bart' via pandoc-discuss
  2022-10-16 11:08             ` Asher Harvey-Smith
  0 siblings, 1 reply; 5+ messages in thread
From: 'Nick Bart' via pandoc-discuss @ 2022-10-16  9:24 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

In fact, this has nothing to do with pandoc, but is a known behavior of LaTeX:

See https://tex.stackexchange.com/questions/318454/quad-not-working-after-using-newline.

Suggested solution: Use `\hspace*{2em}` instead of `\qquad`. (Do use the starred version, otherwise this will not work.)


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

* Re: Leading \qquad not rendering in PDF output
  2022-10-16  9:24           ` 'Nick Bart' via pandoc-discuss
@ 2022-10-16 11:08             ` Asher Harvey-Smith
  0 siblings, 0 replies; 5+ messages in thread
From: Asher Harvey-Smith @ 2022-10-16 11:08 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 825 bytes --]

Thank you! \hspace* works great.

On Sunday, October 16, 2022 at 10:24:24 AM UTC+1 Nick Bart wrote:

> In fact, this has nothing to do with pandoc, but is a known behavior of 
> LaTeX:
>
> See 
> https://tex.stackexchange.com/questions/318454/quad-not-working-after-using-newline
> .
>
> Suggested solution: Use `\hspace*{2em}` instead of `\qquad`. (Do use the 
> starred version, otherwise this will not work.)
>

-- 
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/98e1c77d-62e4-4f19-be83-18dff35a1469n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1685 bytes --]

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

end of thread, other threads:[~2022-10-16 11:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-15 17:07 Leading \qquad not rendering in PDF output Asher Harvey-Smith
     [not found] ` <87599708-491c-42c5-b448-798644e592d6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-10-15 17:09   ` Asher Harvey-Smith
     [not found]     ` <5e3eaf24-bb25-4515-9300-0776d28cd544n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-10-15 20:09       ` John MacFarlane
     [not found]         ` <EEC5A828-F9B2-4EF9-9C25-09812C74F34B-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-10-16  9:24           ` 'Nick Bart' via pandoc-discuss
2022-10-16 11:08             ` Asher Harvey-Smith

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