The main font options allow building the actual file names and are not likely to be changed. They must be declared by their file names, which are in general their names without spaces, in lower case. XeLaTeX is not able to find fonts by their name if they are not installed at the system level, namely when installed by packages. The fonts are declared in the header of index.Rmd. build_ghworkflow() does it automatically if it recognizes the font, see below. This command must be added to the GitHub Action script created by build_ghworkflow(), just after tinytex::install_tinytex(). Tinytex :: tlmgr_install ( c ( "tex-gyre", "tex-gyre-math" ) ) Note that the apa style requires the biblatex-apa package installed in the LaTeX distribution. If verbose citations in large margins are wanted but another bibliographic style is desired, style can be replaced by two separate instructions for citation and bibliographic styles, such as: biblatexoptions : - citestyle = verbose - inote - pageref = true - bibstyle = apa The pageref option must be commented out if the chosen style does not support it or an error may occur during the LaTeX compilation of the document. More styles can be used, including specific styles requiring an extra LaTeX package that is usually installed automatically by LaTeX distributions. When large margins are available, the verbose-inote style is appropriate for the reader to have the full references close to the text, including a DOI link. The default style of the template is a classical author-year style, with the ibidem option, i.e. the authors are not repeated if they are the same as in the previous reference. The style is selected in the options of biblatex: biblatexoptions : - style = verbose - inote - pageref = true Many bibliographic styles come with biblatex, the LaTeX package in charge of reference management. Delete or comment out the undesired option, either pdftitlepage or the whole maintitlepage. Of course, only one of the two covers should be kept even though the template prints both. Note that the maintitlepage: key must contain something to be taken into account, so if you use none of epigraph:, credits, logo or filigrane:, just write: maintitlepage : true Their content must be written in plain LaTeX rather than Markdown. The verso page is made of an epigraph at the top and credits at the bottom. An illustration (example here can be added at the bottom right of the page, declared as filigrane: maintitlepage : filigrane : images / filigrane.png The title and authors of the document will be printed with the current date on the cover page. Or build a cover based on the options declared as maintitlepage. Its value is the path to a PDF file whose first page will be extracted. To do that, set the pdftitlepage option in the header of index.Rmd. The full set of settings is described below.Įither insert a PDF page as the first page of the printed document, followed by a verso blank page. It can be changed quickly for a wide-margin layout, whose parameters are given in comments. The default options produce a small-margin document, with an elaborate chapter style. Large margins host sidenotes rather than footnotes, bibliographic references and figure captions. As a general rule, the latex/template.tex should not be modified. Occasionally, advanced customization can be made by adding LaTeX code in the latex/preamble.tex file as described below. The details to implement them, namely the options in the header of index.Rmd are in the template text. This short article presents the main features of the customization. The template can be highly customized by simple changes in the header of index.Rmd. It is optimized for long documents and is very versatile, with very different possible layouts. The Memoir template is based of the LaTeX memoir package.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |