public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Christopher <christopher.metrailler-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Multiple LaTeX files input in a template
Date: Fri, 17 Jul 2015 12:55:58 -0700 (PDT)	[thread overview]
Message-ID: <769f7c20-72e6-45b8-9d12-8f9fd06bc0bb@googlegroups.com> (raw)
In-Reply-To: <20150717195240.GF9326-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>


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

Okay thanks for our time.

Le vendredi 17 juillet 2015 21:52:55 UTC+2, John MacFarlane a écrit :
>
> Oh, I see.  The included file cannot contain template 
> instructions, no.  The templating system is fairly simple. 
>
>
>
> +++ Christopher [Jul 16 15 23:44 ]: 
> >   Hello John, 
> >   Thanks for your reply. 
> >   As you suggest, I check the generated tex file before converting it to 
> >   pdf: 
> >   \documentclass[10pt, a4paper]{report} 
> >   \input{path-to/my-included-tex-file} 
> >   \begin{document} 
> >   Hello World 
> >   \end{document} 
> >   The error log is more verbose using pdflatex. This is the error: 
> >   ! LaTeX Error: Missing \begin{document}. 
> >    ... 
> >   l.6 $ 
> >        if(title)$ 
> >   ? 
> >   The included file contains if statements which have not been 
> >   evaluated... 
> >   How can I solve this issue and include other tex files in a template ? 
> >   Included files also contains pandoc variables checks, etc. 
> >   Thanks in advance for you help. 
> >   Le vendredi 17 juillet 2015 00:10:58 UTC+2, John MacFarlane a écrit : 
> > 
> >     This should be possible.  Whatever is in your template will 
> >     just be passed through to the LaTeX output. 
> >     To get a better idea of what is happening, try using 
> >     pandoc -t latex -s --template /path/to/your/template 
> >          -o output.tex [1]input.md 
> >     to create a latex file, output.tex, which you can inspect. 
> >     Make sure it contains the `\input` line. 
> >     Then run pdflatex on it directly and see what happens. 
> >     +++ Christopher [Jul 16 15 14:27 ]: 
> >     >   Hi, 
> >     >   Is it possible to use the `input` command in a template file to 
> >     add 
> >     >   custom definitions from another LaTeX file ? 
> >     >   Here is my main template file: 
> >     >   ``` 
> >     >   \documentclass[10pt, a4paper]{report} 
> >     >   \input{path/my-other-file} 
> >     >   \begin{document} 
> >     >   $body$ 
> >     >   \end{document} 
> >     >   ``` 
> >     >   The input file looks like this : 
> >     >   ``` 
> >     >   $if(title)$ 
> >     >   \def\theTitle{$title$} 
> >     >   $else$ 
> >     >   \def\theTitle{The title} 
> >     >   $endif$ 
> >     >   ``` 
> >     >   When running, I have the following error : 
> >     >   ``` 
> >     >   ! LaTeX Error: Missing \begin{document}. 
> >     >   ``` 
> >     >   Are input files supported in templates ? 
> >     >   Thanks in advance, 
> >     >   Regards 
> >     >   Christopher 
> >     > 
> >     >   -- 
> >     >   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 [1][2]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 
> >     >   To post to this group, send email to 
> >     >   [2][3]pandoc-...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 
> >     >   To view this discussion on the web visit 
> >     > 
> >     [3][4]https://groups.google.com/d/msgid/pandoc-discuss/d9620980-3826 
> >     -44fa- 
> >     >   88a3-f6fa071f06b2%[5]40googlegroups.com. 
> >     >   For more options, visit 
> >     [4][6]https://groups.google.com/d/optout. 
> >     > 
> >     >References 
> >     > 
> >     >   1. mailto:[7]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 
> <javascript:> 
> >     >   2. mailto:[8]pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 
> >     >   3. 
> >     [9]https://groups.google.com/d/msgid/pandoc-discuss/d9620980-3826-44 
> >     fa-88a3-f6fa071f06b2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=fo 
> >     oter 
> >     >   4. [10]https://groups.google.com/d/optout 
> > 
> >   -- 
> >   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 [11]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 
> <javascript:>. 
> >   To post to this group, send email to 
> >   [12]pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. 
> >   To view this discussion on the web visit 
> >   [13]
> https://groups.google.com/d/msgid/pandoc-discuss/f068e7b2-35af-4ed9 
> >   -a6ad-dc7212713375%40googlegroups.com. 
> >   For more options, visit [14]https://groups.google.com/d/optout. 
> > 
> >References 
> > 
> >   1. http://input.md/ 
> >   2. javascript:/ 
> >   3. javascript:/ 
> >   4. 
> https://groups.google.com/d/msgid/pandoc-discuss/d9620980-3826-44fa- 
> >   5. http://40googlegroups.com/ 
> >   6. https://groups.google.com/d/optout 
> >   7. javascript:/ 
> >   8. javascript:/ 
> >   9. 
> https://groups.google.com/d/msgid/pandoc-discuss/d9620980-3826-44fa-88a3-f6fa071f06b2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer 
> >  10. https://groups.google.com/d/optout 
> >  11. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:> 
> >  12. mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:> 
> >  13. 
> https://groups.google.com/d/msgid/pandoc-discuss/f068e7b2-35af-4ed9-a6ad-dc7212713375-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer 
> >  14. https://groups.google.com/d/optout 
>
>

-- 
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/769f7c20-72e6-45b8-9d12-8f9fd06bc0bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

  parent reply	other threads:[~2015-07-17 19:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-16 21:27 Christopher
     [not found] ` <d9620980-3826-44fa-88a3-f6fa071f06b2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-07-16 22:10   ` John MacFarlane
     [not found]     ` <20150716221040.GA29452-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
2015-07-17  6:44       ` Christopher
     [not found]         ` <f068e7b2-35af-4ed9-a6ad-dc7212713375-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-07-17  7:19           ` Christopher
2015-07-17 19:52           ` John MacFarlane
     [not found]             ` <20150717195240.GF9326-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
2015-07-17 19:55               ` Christopher [this message]
     [not found]                 ` <769f7c20-72e6-45b8-9d12-8f9fd06bc0bb-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-07-18 15:36                   ` Christopher
     [not found]                     ` <90077c3f-5afe-49df-be51-80024d7c7492-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-07-26 12:45                       ` Christopher
2015-07-26 14:02                       ` John MacFarlane
     [not found]                         ` <20150726140206.GA22100-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org>
2015-08-08 20:26                           ` Christopher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=769f7c20-72e6-45b8-9d12-8f9fd06bc0bb@googlegroups.com \
    --to=christopher.metrailler-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).