I'm trying to do something like that:

I need to be able to create documents based on template that's written in LaTeX. But when I try using things like: \huge or \begin{center} \end{center} it doesn't work. Nothing happens (PDF gets generated but everything has the same size and is still aligned to the left)

I've tried editing default.latex file. But I have no idea how to allow the formatting that I need. The only thing that worked for me is putting all the text directly in the default.latex. But that's not a very good solution...

I'm a complete beginner when it comes to LaTeX and pandoc.

Edit (to provide more details):

I convert my .tex file to pdf using command:

pandoc --template=mytemplate.latex file.tex -o result.pdf

(where I create mytemplate.latex using pandoc -D latex command)

In order to make it work the way I want I have to put everything from file.tex to mytemplate.latex and keep file.tex empty (except of begin, end of document).

I would like to configure my mytemplate.latex so that I could use things like \huge, \tiny etc. directly in my file.tex and so that pandoc could correctly convert file.tex to PDF.

closed as off-topic by Bobyandbob, Stefan Pinnow, user36296, CarLaTeX, Schweinebacke Dec 16 '17 at 15:35

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    welcome to tex.sx. you have tagged this questionpandoc, but there's nothing in the question that mentions how you're using it. also, without a compilable example showing what you are actually doing, we don't have enough information to help. (our crystal balls are not functioning very well.) – barbara beeton Sep 20 '16 at 11:57
  • @barbarabeeton thank you. I edited my question and provided more information. – Porcupine Sep 20 '16 at 12:05
  • 4
    Why aren't you just using pdflatex to produce a pdf from a tex file? Pandoc would make sense if the source file were, say, plain text or markdown. But if the source is tex, then using pandoc doesn't make sense... – Seamus Sep 20 '16 at 12:06
  • 1
    You're right, I shouldn't have used pandoc in the first place. Than you all for you help! – Porcupine Sep 20 '16 at 12:30
  • 4
    I'm voting to close this question because it was solved in the comments. – Bobyandbob Dec 16 '17 at 12:19

Browse other questions tagged or ask your own question.