TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My first lines in convert.md format document are:

\thispagestyle{empty} %line1
\changepage{}{}{}{-1.5cm}{}{2cm}{}{}{} %line2
![The Little MongoDB Book, By Karl Seguin](title.png)\ %line3
\clearpage %line4
\changepage{}{}{}{1.5cm}{}{-2cm}{}{}{} %line5

So run commond lines as follows in win7 cmd:

pandoc --latex-engine=xelatex --template=latex_template.tex convert.md -o convert.pdf

But result shows:

Error producing PDF from Tex source.
!Undefined control sequence.
1.78 \changepage

And if delete "line1, line2, line4, line5", then commond line runs well. What's the matter with the error, and how to handle it? Thank you!

share|improve this question

migrated from stackoverflow.com Dec 23 '13 at 2:13

This question came from our site for professional and enthusiast programmers.

Why do you think the Chinese language is relevant to this question? It might be, but why do you guess so? – Robin Green Dec 22 '13 at 10:47
oh,I'am sorry,yes,my arbitrary decision is wrong,here I modified the question title. – Dyllian Dec 22 '13 at 10:53
Try editing the produced document and adding \usepackage{changepage} before the \changepage line. – Robin Green Dec 22 '13 at 10:55
Thank you for your suggests,it's ok now with your method. My latex_template.tex is not complete enough before. – Dyllian Dec 22 '13 at 11:24
Welcome to TeX.SX! Your post was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. – Martin Schröder Dec 23 '13 at 13:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.