Use the template feature. Use pandoc -Dlatex>template.tex to get template.tex and add \widowpenalty=10000 \clubpenalty=10000 to it before body. To use the template in pandoc. pandoc -V documentclass=memoir input.tex --latex-engine=xelatex *--template=template.tex* -o output.pdf Hi > > How do I prevent widow/orphan lines, tex to pdf conversion. (pandoc -V > documentclass=memoir input.tex --latex-engine=xelatex -o output.pdf) > > Thanks, > Magesh > -- 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/fb91b72b-0d6f-499e-9c9c-5f17705b096c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.