Coder Social home page Coder Social logo

naletter's Introduction

naletter

GitHub Action Status

This is a Quarto extension to provide a PDF letter template.

Installation

If you want to start with a template do:

quarto use template nareal/naletter

You just want to install the extension use:

quarto add nareal/naletter

This command installs the extensions under the _extension subdirectory.

If you want you can specify the version number:

quarto add nareal/[email protected]

To update the extension use:

quarto update extension nareal/naletter

and to remove it:

quarto remove extension nareal/naletter

Usage

You can use the following metadata fields:

title: "Notes title"
subtitle: "Notes subtitle"
author: "Author name"
date: "2022-10-06"
format:
  nanotes-pdf: 
    fromname: Nelson Areal
    fromaddress: |
                 | School of Economics and Management
                 | University of Minho
                 | Campus de Gualtar
                 | 4710-057 Braga - Portugal
    fromtitle: Associate Professor
    fromWWW: nelsonareal.net
    fromemail: [email protected]
    fromphone: +351 253 601 923
    toname: Helen of Troy
    toaddress: University of Greece\newline Athens
    opening: Dear Helen,
    closing: Best regards,
    spacing: 1.4
    #sansfont: NewsGotT # Make sure you select a font installed in your system 
    lang: en-GB # pt-PT
    babel-lang: british # portuguese
    #date: Thursday, 18 October 2022
    #logofilepath:  um-eeg
    #keep-tex: true

Example

Here is the source code of the template: template.qmd and the rendered PDF file.

naletter's People

Contributors

nareal avatar

Stargazers

Arthur avatar Norbert Köhler avatar

Watchers

 avatar  avatar

naletter's Issues

Package fontspec Error: The font "NewsGotT" cannot be found

I get the following error when trying to render the qmd letter. Any help would be appreciated.

This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023) (preloaded format=xelatex 2023.10.4)  4 OCT 2023 17:08
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**kyungmo.tex
(./kyungmo.tex
LaTeX2e <2023-06-01> patch level 1
L3 programming layer <2023-08-29>
(/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/base/letter.cls
Document Class: letter 2021/12/07 v1.3c Standard LaTeX document class
(/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/base/size11.clo
File: size11.clo 2023/05/17 v1.4n Standard LaTeX file (size option)
)
\longindentation=\dimen140
\indentedwidth=\dimen141
\labelcount=\count181
) (/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/bera/bera.sty
Package: bera 2004/01/31 (WaS)
(/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2021/04/29 v2.0v Standard LaTeX package
LaTeX Font Info:    Trying to load font information for T1+lmr on input line 112.
(/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/lm/t1lmr.fd
File: t1lmr.fd 2015/05/01 v1.6.1 Font defs for Latin Modern
)) (/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/base/textcomp.sty
Package: textcomp 2020/02/02 v2.0n Standard LaTeX package
) (/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/bera/beraserif.sty
Package: beraserif 2004/01/30 (WaS)
(/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2022/05/29 v1.15 key=value parser (DPC)
\KV@toks@=\toks17
)
LaTeX Font Info:    Trying to load font information for T1+fve on input line 30.
(/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/bera/t1fve.fd
File: t1fve.fd 2004/09/07 scalable font definitions for T1/fve.
)
LaTeX Font Info:    Font shape `T1/fve/m/n' will be
(Font)              scaled to size 9.85492pt on input line 30.
) (/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/bera/berasans.sty
Package: berasans 2004/01/30 (WaS)
) (/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/bera/beramono.sty
Package: beramono 2004/01/31 (WaS)
)) (/Users/ovandef/Library/TinyTeX/texmf-dist/tex/generic/iftex/ifxetex.sty
Package: ifxetex 2019/10/25 v0.7 ifxetex legacy package. Use iftex instead.
(/Users/ovandef/Library/TinyTeX/texmf-dist/tex/generic/iftex/iftex.sty
Package: iftex 2022/02/03 v1.0f TeX engine tests
)) (/Users/ovandef/Library/TinyTeX/texmf-dist/tex/generic/iftex/ifluatex.sty
Package: ifluatex 2019/10/25 v1.5 ifluatex legacy package. Use iftex instead.
) (/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/base/fixltx2e.sty
Package: fixltx2e 2016/12/29 v2.1a fixes to LaTeX (obsolete)
Applying: [2015/01/01] Old fixltx2e package on input line 46.

Package fixltx2e Warning: fixltx2e is not required with releases after 2015
(fixltx2e)                All fixes are now in the LaTeX kernel.
(fixltx2e)                See the latexrelease package for details.

Already applied: [0000/00/00] Old fixltx2e package on input line 53.
) (/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/unicode-math/unicode-math.sty (/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/l3kernel/expl3.sty
Package: expl3 2023-08-29 L3 programming layer (loader) 
(/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/l3backend/l3backend-xetex.def
File: l3backend-xetex.def 2023-04-19 L3 backend support: XeTeX
\g__graphics_track_int=\count182
\l__pdf_internal_box=\box51
\g__pdf_backend_object_int=\count183
\g__pdf_backend_annotation_int=\count184
\g__pdf_backend_link_int=\count185
))
Package: unicode-math 2023/08/13 v0.8r Unicode maths in XeLaTeX and LuaLaTeX
(/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/unicode-math/unicode-math-xetex.sty
Package: unicode-math-xetex 2023/08/13 v0.8r Unicode maths in XeLaTeX and LuaLaTeX
(/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
Package: xparse 2023-08-29 L3 Experimental document command parser
) (/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty
Package: l3keys2e 2023-08-29 LaTeX2e option processing using LaTeX3 keys
) (/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/fontspec/fontspec.sty
Package: fontspec 2022/01/15 v2.8a Font selection for XeLaTeX and LuaLaTeX
(/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
Package: fontspec-xetex 2022/01/15 v2.8a Font selection for XeLaTeX and LuaLaTeX
\l__fontspec_script_int=\count186
\l__fontspec_language_int=\count187
\l__fontspec_strnum_int=\count188
\l__fontspec_tmp_int=\count189
\l__fontspec_tmpa_int=\count190
\l__fontspec_tmpb_int=\count191
\l__fontspec_tmpc_int=\count192
\l__fontspec_em_int=\count193
\l__fontspec_emdef_int=\count194
\l__fontspec_strong_int=\count195
\l__fontspec_strongdef_int=\count196
\l__fontspec_tmpa_dim=\dimen142
\l__fontspec_tmpb_dim=\dimen143
\l__fontspec_tmpc_dim=\dimen144
(/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2021/04/29 v2.0v Standard LaTeX package
) (/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/base/fix-cm.sty
Package: fix-cm 2020/11/24 v1.1t fixes to LaTeX
(/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/base/ts1enc.def
File: ts1enc.def 2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
LaTeX Font Info:    Redeclaring font encoding TS1 on input line 47.
)) (/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2023/05/13 v2.17o AMS math features
\@mathmargin=\skip48
For additional information on amsmath, use the `?' option.
(/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/amsmath/amstext.sty
Package: amstext 2021/08/26 v2.01 AMS text
(/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks18
\ex@=\dimen145
)) (/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen146
) (/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/amsmath/amsopn.sty
Package: amsopn 2022/04/08 v2.04 operator names
)
\inf@bad=\count197
LaTeX Info: Redefining \frac on input line 234.
\uproot@=\count198
\leftroot@=\count199
LaTeX Info: Redefining \overline on input line 399.
LaTeX Info: Redefining \colon on input line 410.
\classnum@=\count266
\DOTSCASE@=\count267
LaTeX Info: Redefining \ldots on input line 496.
LaTeX Info: Redefining \dots on input line 499.
LaTeX Info: Redefining \cdots on input line 620.
\Mathstrutbox@=\box52
\strutbox@=\box53
LaTeX Info: Redefining \big on input line 722.
LaTeX Info: Redefining \Big on input line 723.
LaTeX Info: Redefining \bigg on input line 724.
LaTeX Info: Redefining \Bigg on input line 725.
\big@size=\dimen147
LaTeX Font Info:    Redeclaring font encoding OML on input line 743.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 744.
\macc@depth=\count268
LaTeX Info: Redefining \bmod on input line 905.
LaTeX Info: Redefining \pmod on input line 910.
LaTeX Info: Redefining \smash on input line 940.
LaTeX Info: Redefining \relbar on input line 970.
LaTeX Info: Redefining \Relbar on input line 971.
\c@MaxMatrixCols=\count269
\dotsspace@=\muskip16
\c@parentequation=\count270
\dspbrk@lvl=\count271
\tag@help=\toks19
\row@=\count272
\column@=\count273
\maxfields@=\count274
\andhelp@=\toks20
\eqnshift@=\dimen148
\alignsep@=\dimen149
\tagshift@=\dimen150
\tagwidth@=\dimen151
\totwidth@=\dimen152
\lineht@=\dimen153
\@envbody=\toks21
\multlinegap=\skip49
\multlinetaggap=\skip50
\mathdisplay@stack=\toks22
LaTeX Info: Redefining \[ on input line 2953.
LaTeX Info: Redefining \] on input line 2954.
)
\g__um_fam_int=\count275
\g__um_fonts_used_int=\count276
\l__um_primecount_int=\count277
\g__um_primekern_muskip=\muskip17
(/Users/ovandef/Library/TinyTeX/texmf-dist/tex/latex/unicode-math/unicode-math-table.tex)))

! Package fontspec Error: The font "NewsGotT" cannot be found.

For immediate help type H <return>.
 ...                                              
                                                  
l.13 \fi
         
Here is how much of TeX's memory you used:
 7296 strings out of 477570
 161049 string characters out of 5816930
 1910422 words of memory out of 5000000
 28497 multiletter control sequences out of 15000+600000
 562951 words of font info for 40 fonts, out of 8000000 for 9000
 14 hyphenation exceptions out of 8191
 90i,0n,95p,320b,154s stack positions out of 10000i,1000n,20000p,200000b,200000s

No pages of output.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.