Use the titlepage environment instead of \maketitle. https://www.overleaf.com/learn/latex/How_to_Write_a_Thesis_in_LaTeX_(Part_5):_Customising_Your_Title_Page_and_Abstract Den tors 12 aug. 2021 00:48Hugh Esco skrev: > I tried moving the `$url_for_article$` below the `\begin{document}`, and > it rendered the correct value, but as a part of the two-column formatted > text body, rather than the one-column header for the paper. > > It appears that the `\maketitle` might be responsible for the one-column > header with the `$title$`, `$author$` and `$date$`. What I really need I > guess is a means to inject the url and the publication name into that title > block. my custom --template= argument was created like so: > > `cp /usr/share/pandoc/data/templates/default.latex > ~/.pandoc/templates/default-2col-3.latex` > > On Wednesday, August 11, 2021 at 3:18:37 PM UTC-4 Bastien Dumont wrote: > >> You've placed $url_for_article$ before \begin{document}, which should >> trigger an error. Are you sure that Pandoc gives a PDF output using this >> template? >> >> Le Wednesday 11 August 2021 à 11:46:07AM, John MacFarlane a écrit : >> > >> > So you have a variable in your template >> > url_for_article >> > and you're setting >> > >> > url_for_article: something >> > >> > in your YAML metadata? That should work. >> > >> > Hugh Esco writes: >> > >> > > My client wants me to create pdfs from articles extracted from the >> > > internet. >> > > >> > > I am able to successfully use yaml at the top of a markdown document >> > > extracted from the html to define the title, author and date. But it >> fails >> > > to render the subtitle, or institute in the pdf. Also the abstract, >> if >> > > defined in the yaml, shows up in the two-column body of the result >> file, >> > > rather than in the one column header of the result file. >> > > >> > > Any attempts to add support to the template (copied to >> ~/.pandoc/templates/ >> > > and invoked from the command line as >> --template=copied-template-name.latex) >> > > are failing for yaml defined variables url and publication, including >> > > variations on those names, in case those happen to be reserved >> keywords. >> > > >> > > ``` >> > > $ diff -u /usr/share/pandoc/data/templates/default.latex >> > > ~/.pandoc/templates/default-2col-3.latex >> > > --- /usr/share/pandoc/data/templates/default.latex 2018-01-26 >> > > 07:52:22.000000000 -0500 >> > > +++ /home/hesco/.pandoc/templates/default-2col-3.latex 2021-08-11 >> > > 14:03:34.846709357 -0400 >> > > @@ -220,6 +220,7 @@ >> > > \institute{$for(institute)$$institute$$sep$ \and $endfor$} >> > > $endif$ >> > > \date{$date$} >> > > +$url_for_article$ >> > > >> > > \begin{document} >> > > $if(title)$ >> > > ``` >> > > >> > > -- >> > > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > > To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/7b1f7006-853f-4cfe-8ecd-d8bf7de153f9n%40googlegroups.com. >> >> > >> > -- >> > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/m24kbvhlao.fsf%40MacBook-Pro-2.hsd1.ca.comcast.net. >> >> > -- > 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/db7f9173-e6ba-413b-9a23-6b79cdb30c9an%40googlegroups.com > > . > -- 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/CADAJKhDyNp65TVS5hQ4bPbD8nfWCuvYeb_z0HCoZpAk4qtrnog%40mail.gmail.com.