From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29057 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hugh Esco Newsgroups: gmane.text.pandoc Subject: Re: How do I control and embed the fonts in my pdfs? Date: Wed, 18 Aug 2021 10:52:23 -0700 (PDT) Message-ID: References: <543536ca-7ced-4033-ad1a-ecdd3fedaf44n@googlegroups.com> <512edc0d-8cbb-4e97-92b9-5cd1a1bdfffen@googlegroups.com> <0735c963-74ca-4917-99d7-2b058b0d205cn@googlegroups.com> <895ca2cc-d5a6-c55a-ddbb-ea3ca9c441e4@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_70_1147279354.1629309143194" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9521"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDQ33EPTRYLBBWER6WEAMGQEGWN6KIA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Aug 18 19:52:27 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f60.google.com ([209.85.210.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mGPjn-0002FQ-B0 for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 18 Aug 2021 19:52:27 +0200 Original-Received: by mail-ot1-f60.google.com with SMTP id n42-20020a9d202d0000b02904fc72900a74sf1376917ota.12 for ; Wed, 18 Aug 2021 10:52:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=db1HCkoYFZWtt8GpjPya/2PKtqdLWQ7AsH5VxR/cnyk=; b=EGKRv9lWmv8nt5agPQwuXVN3J54Q5iruOmCl6M+Fc4LUJkcrniytxuQwVnx3IwP+pC EpKxaSrszIYzZZMvW9V724bnDdoqcf3hDSRkc11ZnDKOSyty3ukg+pno8cFt0Je/Yrhy 7+0guRhDXLGqA+mKW2rzAr7P6b/DsPpJsirRMDTTdg5Gy1jCNevYzflzWgcw9wnEfSD9 3BGhSVrHrRTeDg8v7oMjHh5zOqM61Pc1x4N7/r+HslHzZaG09ps68xsFYDaOryWbEg58 aqu152MdiBR2NYI8OmUQVAPjg0XbGAdX93IJLfM7L0fFovY9r6VJs671aVx1xf8ZUB8q fFZw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=db1HCkoYFZWtt8GpjPya/2PKtqdLWQ7AsH5VxR/cnyk=; b=sa/LiFrrZkYTq5mytVk38rDtyEVCADejLEQAgY3XEg48LfkNmeoEaq/htco1OtVovH +036ucT68X4qoz9uWO2wIqxbUab3biMKWLY/1+Lzp6F2VjbpJcr/zo7qR9TV+CEVoS7i JbFPMe9yrwbpgUt+5DChJijJJS7swAO3KroTB7/D15EzCWThfPw0LqE7tXUA648ZuU7V vpem7rymp9E1a6fY4gI8nU1a7wi0m6uNrfYVnqCfXPD+qNycMJd/eRnMYbQFLbGU4oDY OmalwfpSMzSofplPEi6X8lKOlNoecYuQnbKhrMtYzkwPPvrJQt/bA6vBdI9YQF05yPco Q2Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=db1HCkoYFZWtt8GpjPya/2PKtqdLWQ7AsH5VxR/cnyk=; b=fM52QJ8k20yW8WcIzbsYOJ0LtEvAwoxSoZAVMTPoSpPMPXwSO76gP5V3mXWaOkK+HO 6mAVZFSez4r3jIhuLZ6d8D/zJeabzgDuioFfXndWN9Hqr53wOBtPnMNzIdAOo6OLMBUx myfZ80VvgY2BPXeo+K+5gaKpBUBDzsUvYl68aT3T2NOth2RTbsmZVKpiUaAP4FCZYzg1 6Y05U188edDbPePy+wQaWe9nxQLR+oUiVkYeq8OgtWH7yaK863hYjvKmttQ3xBoICncw QVUoLauC1nUtUaHTR5jJDivLO9acytqwWF5LRX0vzD67yoVyCynrc22rL8A8/UdEu6OV xkSg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532w5D0CjW2r7tnd1uUMMSgEHvSvEIIKIcm2Yv3WRHfqAU5tVo8C fUJYLlAxlHyJk99qOZWlB84= X-Google-Smtp-Source: ABdhPJw4GZqNnQccePZVO0X+FRsFL9XP1BjUQyPkN5JwtFgUaTV4StIj1NGCdU4+EL6psBh7px4zMg== X-Received: by 2002:a05:6808:200b:: with SMTP id q11mr8205557oiw.75.1629309145640; Wed, 18 Aug 2021 10:52:25 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:760b:: with SMTP id t11ls194546ooc.6.gmail; Wed, 18 Aug 2021 10:52:24 -0700 (PDT) X-Received: by 2002:a4a:8c33:: with SMTP id u48mr7839865ooj.63.1629309143796; Wed, 18 Aug 2021 10:52:23 -0700 (PDT) In-Reply-To: <895ca2cc-d5a6-c55a-ddbb-ea3ca9c441e4-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Original-Sender: hresco3-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:29057 Archived-At: ------=_Part_70_1147279354.1629309143194 Content-Type: multipart/alternative; boundary="----=_Part_71_172418305.1629309143194" ------=_Part_71_172418305.1629309143194 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you @BP !!! that seems to have moved me forward. =20 One more question, please, if I may; . . .=20 When I add variables.fontsize: 12pt, I am able to bump the font size up a= =20 bit, but when I make it 14pt, it looks as if I said 10pt, and I get two=20 more complete paragraphs on page 1. =20 I'm using this font: https://ctan.org/pkg/tinos Is there some version of Times (my client's preference) which would support= =20 a larger font than 12pt? And more importantly, how is it would can=20 effectively search for this information myself? -- Hugh=20 On Tuesday, August 17, 2021 at 1:03:39 PM UTC-4 BP wrote: > On 2021-08-16 18:31, Hugh Esco wrote: > > Reason I ask is that this query of my file system was not very helpful = to > > narrowing down what path to a noto font was being used, or what file > > extension I might be interested in as I explore my options to satisfy m= y > > client's requirements. > >=20 > > ``` > > $ find /usr/share/ -name noto > > /usr/share/texlive/texmf-dist/fonts/truetype/google/noto > > /usr/share/texlive/texmf-dist/fonts/enc/dvips/noto > > /usr/share/texlive/texmf-dist/fonts/opentype/google/noto > > /usr/share/texlive/texmf-dist/fonts/map/dvips/noto > > /usr/share/texlive/texmf-dist/fonts/type1/google/noto > > /usr/share/texlive/texmf-dist/fonts/vf/google/noto > > /usr/share/texlive/texmf-dist/fonts/tfm/google/noto > > /usr/share/texlive/texmf-dist/tex/latex/noto > > /usr/share/fonts/truetype/noto > > /usr/share/fonts/opentype/noto > > ``` > >=20 > > There is info in secs 2.2 and 2.3 of the fontspec docs which I linked to= =20 > earlier on how to load fonts by path and file name. Basically like this= =20 > if doing it from a defaults file: > > ``````yaml > from: markdown > to: latex > pdf-engine: xelatex > variables: > mainfont: NotoSerif-Condensed > mainfontoptions: &fontoptions > - 'Path=3D/home/benct/.fonts/Noto/' > - 'UprightFont=3D*Medium.ttf' > - 'BoldFont=3D*SemiBold.ttf' > - 'ItalicFont=3D*MediumItalic.ttf' > - 'BoldItalicFont=3D*SemiBoldItalic.ttf' > sansfont: NotoSans-Condensed > sansfontoptions: *fontoptions > monofont: NotoSansMono- > monofontoptions: > - 'Path=3D/home/benct/.fonts/Noto/' > - 'UprightFont=3D*Medium.ttf' > - 'BoldFont=3D*SemiBold.ttf' > `````` > > Pandoc just copies all this into the fontspec `\setmainfont` etc.=20 > commands. It is possible that the quotes aren't always necessary but the= =20 > likelihood that the YAML parser doesn't like asterisks in unquoted=20 > strings is high, so use quotes when in doubt. > You can use YAML anchors and references to save on the typing inside the= =20 > same defaults file but as you see I couldn't do it with SansMono because= =20 > it doesn't have any italic styles. You could fake italic with fontspec's= =20 > FakeSlant feature if you really needed it. > > > > > >=20 > > On Monday, August 16, 2021 at 12:10:54 PM UTC-4 Hugh Esco wrote: > >=20 > >> OK, this seems to be working better now: > >> > >> ``` > >> pandoc 2.14.1 > >> Compiled with pandoc-types 1.22, texmath 0.12.3, skylighting 0.11, > >> citeproc 0.4.1, ipynb 0.1.0.1 > >> User data directory: /home/hesco/.pandoc > >> Copyright (C) 2006-2021 John MacFarlane. Web: https://pandoc.org > >> ``` > >> > >> NEXT QUESTIONS: > >> > >> What path is being searched for fonts? > >> How do I know what my options are? > >> > >> On Monday, August 16, 2021 at 11:55:41 AM UTC-4 Hugh Esco wrote: > >> > >>> pandoc 1.19.2.4 > >>> Compiled with pandoc-types 1.17.0.5, texmath 0.9.4.4, skylighting=20 > 0.3.3.1 > >>> Default user data directory: /home/hesco/.pandoc > >>> Copyright (C) 2006-2016 John MacFarlane > >>> Web: http://pandoc.org > >>> > >>> On Monday, August 16, 2021 at 11:46:08 AM UTC-4 BPJ wrote: > >>> > >>>> You probably need to upgrade pandoc. > >>>> What does pandoc --version say? > >>>> > >>>> Den m=C3=A5n 16 aug. 2021 17:10Hugh Esco skrev: > >>>> > >>>>> My attempts to test this yield errors looking like this: > >>>>> > >>>>> ``` > >>>>> $ pandoc --defaults `pwd`/defaults --latex-engine=3Dlualatex > >>>>> --template=3Dmy_client.latex my_source_file.pdc -o my_result_file.p= df > >>>>> pandoc: unrecognized option `--defaults' > >>>>> Try pandoc --help for more information. > >>>>> ``` > >>>>> looking at the --help output yields this: > >>>>> > >>>>> ``` > >>>>> $ pandoc --help | grep default > >>>>> -D FORMAT --print-default-template=3DFORMAT > >>>>> --print-default-data-file=3DFILE > >>>>> --default-image-extension=3Dextension > >>>>> ``` > >>>>> > >>>>> but no `--defaults` switch. What am I missing here, please? > >>>>> > >>>>> -- Hugh > >>>>> > >>>>> On Monday, August 16, 2021 at 4:32:15 AM UTC-4 BPJ wrote: > >>>>> > >>>>>> > >>>>>> > >>>>>> Den m=C3=A5n 16 aug. 2021 10:25BPJ skrev: > >>>>>> > >>>>>>> You use the `mainfont`, `sansfont`, `monofont`, `mathfont`, > >>>>>>> `CJKmainfont` > >>>>>>> variables for the font names and the corresponding=20 > `mainfontoptions` > >>>>>>> etc. > >>>>>>> variables. The latter are lists of strings with raw fontspec[^1] > >>>>>>> options in the format `'Option=3DValue'` or `'Option=3D{Multi-wor= d=20 > value}'`. The > >>>>>>> easiest way is to specify them is in a defaults file[^2] like thi= s: > >>>>>>> > >>>>>>> from: markdown > >>>>>>> to: latex > >>>>>>> pdf-engine: xelatex > >>>>>>> variables: > >>>>>>> mainfont: Noto Serif > >>>>>>> sansfont: Noto Sans > >>>>>>> monofont: Noto Mono > >>>>>>> monofontoptions: > >>>>>>> - 'Scale=3DMatchLowercase' > >>>>>>> > >>>>>>> For some reason the default latex template[^3] does not contain a= ny > >>>>>>> variable for `defaultfontfeatures` but > >>>>>>> `\defaultfontfeatures{Scale=3DMatchLowercase}` is hard coded. In = my > >>>>>>> custom > >>>>>>> template I have added that variable[^4]: > >>>>>>> > >>>>>>> $if(defaultfontfeatures)$ > >>>>>>>=20 > >>>>>>>=20 > \mainfontfeatures{$for(mainfontfeatures)$$mainfontfeatures$$sep$,$endfor$= } > >>>>>>> $else$ > >>>>>>> > >>>>>> \defaultfontfeatures{Scale=3DMatchLowercase} > >>>>>>> $endif$ > >>>>>>> > >>>>>> > >>>>>> Sorry, a typo: it should be `defaultfontfeatures` rather than > >>>>>> `mainfontfeatures`. That's what happens when you copy the wrong=20 > line and > >>>>>> use search/replace to make up for it! :-/ > >>>>>> > >>>>>> > >>>>>>> Font embedding depends on your XeTeX/LuaTeX settings. Usually it= =20 > Just > >>>>>>> Works. > >>>>>>> > >>>>>>> > >>>>>>> [^1]: https://ctan.org/pkg/fontspec > >>>>>>> > >>>>>>> [^2]: https://pandoc.org/MANUAL.html#default-files > >>>>>>> > >>>>>>> [^3]: https://pandoc.org/MANUAL.html#templates > >>>>>>> > >>>>>>> [^4]: https://git.io/J0UJS > >>>>>>> > >>>>>>> > >>>>>>> Den m=C3=A5n 16 aug. 2021 06:56Hugh Esco skrev= : > >>>>>>> > >>>>>>>> My tests seem to indicate that the fonts which are available to = me > >>>>>>>> are a function of the value of the `--latex-engine=3D` switch. > >>>>>>>> > >>>>>>>> If I set that switch to pdflatex (which seems to be the default)= ,=20 > I > >>>>>>>> can choose any font installed as a .sty file at this path: > >>>>>>>> `/usr/share/texlive/texmf-dist/tex/latex/psnfss/`, by setting a= =20 > value to > >>>>>>>> the fontenc key at the top of my markdown source file. > >>>>>>>> > >>>>>>>> But I have not been able to sort out how to access other fonts > >>>>>>>> installed at `/usr/share`, by setting the `--latex-engine` to=20 > `lualatext` > >>>>>>>> or `xelatex`. > >>>>>>>> > >>>>>>>> All my tests seem to look alike, and changing my fonts has no=20 > impact > >>>>>>>> on how the resulting pdf looks. > >>>>>>>> > >>>>>>>> Can someone please point me to some documentation which would he= lp > >>>>>>>> me understand how to use the full range of fonts available on=20 > this system, > >>>>>>>> suitable for which ever value I set to the `--latext-engine`=20 > switch? > >>>>>>>> > >>>>>>>> Thanks, > >>>>>>>> -- Hugh Esco > >>>>>>>> > >>>>>>>> --=20 > >>>>>>>> You received this message because you are subscribed to the Goog= le > >>>>>>>> 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 > >>>>>>>>=20 > https://groups.google.com/d/msgid/pandoc-discuss/543536ca-7ced-4033-ad1a-= ecdd3fedaf44n%40googlegroups.com > >>>>>>>> < > https://groups.google.com/d/msgid/pandoc-discuss/543536ca-7ced-4033-ad1a-= ecdd3fedaf44n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter > > > >>>>>>>> . > >>>>>>>> > >>>>>>> --=20 > >>>>> 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,= =20 > send > >>>>> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >>>>> > >>>> To view this discussion on the web visit > >>>>>=20 > https://groups.google.com/d/msgid/pandoc-discuss/512edc0d-8cbb-4e97-92b9-= 5cd1a1bdfffen%40googlegroups.com > >>>>> < > https://groups.google.com/d/msgid/pandoc-discuss/512edc0d-8cbb-4e97-92b9-= 5cd1a1bdfffen%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter > > > >>>>> . > >>>>> > >>>> > >=20 > > --=20 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 e= mail 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/e775729a-ce74-4727-a451-bc9058b5086en%40googlegroups.com. ------=_Part_71_172418305.1629309143194 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you @BP !!! that seems to have moved me forward. 
One more q= uestion, please, if I may; . . .

When I add variables.fontsize: 12p= t, I am able to bump the font size up a bit, but when I make it 14pt, it lo= oks as if I said 10pt, and I get two more complete paragraphs on page 1.&nb= sp;

I'm using this  font:
https://ctan.org/pkg/tinos
Is there some version of Times (my client's preference) which would s= upport a larger font than 12pt?   And more importantly, how is it= would can effectively search for this information myself?

-- Hugh

On Tuesday, August 17, 2021 at 1:03:39 PM UTC-4 BP wr= ote:
On 2021-= 08-16 18:31, Hugh Esco wrote:
> Reason I ask is that this query of my file system was not very hel= pful to
> narrowing down what path to a noto font was being used, or what fi= le
> extension I might be interested in as I explore my options to sati= sfy my
> client's requirements.
>=20
> ```
> $ find /usr/share/ -name noto
> /usr/share/texlive/texmf-dist/fonts/truetype/google/noto
> /usr/share/texlive/texmf-dist/fonts/enc/dvips/noto
> /usr/share/texlive/texmf-dist/fonts/opentype/google/noto
> /usr/share/texlive/texmf-dist/fonts/map/dvips/noto
> /usr/share/texlive/texmf-dist/fonts/type1/google/noto
> /usr/share/texlive/texmf-dist/fonts/vf/google/noto
> /usr/share/texlive/texmf-dist/fonts/tfm/google/noto
> /usr/share/texlive/texmf-dist/tex/latex/noto
> /usr/share/fonts/truetype/noto
> /usr/share/fonts/opentype/noto
> ```
>=20

There is info in secs 2.2 and 2.3 of the fontspec docs which I linked t= o=20
earlier on how to load fonts by path and file name. Basically like this= =20
if doing it from a defaults file:

``````yaml
from: markdown
to: latex
pdf-engine: xelatex
variables:
mainfont: NotoSerif-Condensed
mainfontoptions: &fontoptions
- 'Path=3D/home/benct/.fonts/Noto/'
- 'UprightFont=3D*Medium.ttf'
- 'BoldFont=3D*SemiBold.ttf'
- 'ItalicFont=3D*MediumItalic.ttf'
- 'BoldItalicFont=3D*SemiBoldItalic.ttf'
sansfont: NotoSans-Condensed
sansfontoptions: *fontoptions
monofont: NotoSansMono-
monofontoptions:
- 'Path=3D/home/benct/.fonts/Noto/'
- 'UprightFont=3D*Medium.ttf'
- 'BoldFont=3D*SemiBold.ttf'
``````

Pandoc just copies all this into the fontspec `\setmainfont` etc.=20
commands. It is possible that the quotes aren't always necessary bu= t the=20
likelihood that the YAML parser doesn't like asterisks in unquoted= =20
strings is high, so use quotes when in doubt.
You can use YAML anchors and references to save on the typing inside th= e=20
same defaults file but as you see I couldn't do it with SansMono be= cause=20
it doesn't have any italic styles. You could fake italic with fonts= pec's=20
FakeSlant feature if you really needed it.




>=20
> On Monday, August 16, 2021 at 12:10:54 PM UTC-4 Hugh Esco wrote:
>=20
>> OK, this seems to be working better now:
>>
>> ```
>> pandoc 2.14.1
>> Compiled with pandoc-types 1.22, texmath 0.12.3, skylighting 0= .11,
>> citeproc 0.4.1, ipynb 0.1.0.1
>> User data directory: /home/hesco/.pandoc
>> Copyright (C) 2006-2021 John MacFarlane. Web: https://pandoc.org
>> ```
>>
>> NEXT QUESTIONS:
>>
>> What path is being searched for fonts?
>> How do I know what my options are?
>>
>> On Monday, August 16, 2021 at 11:55:41 AM UTC-4 Hugh Esco wrot= e:
>>
>>> pandoc 1.19.2.4
>>> Compiled with pandoc-types 1.17.0.5, texmath 0.9.4.4, skyl= ighting 0.3.3.1
>>> Default user data directory: /home/hesco/.pandoc
>>> Copyright (C) 2006-2016 John MacFarlane
>>> Web: http://pandoc.org
>>>
>>> On Monday, August 16, 2021 at 11:46:08 AM UTC-4 BPJ wrote:
>>>
>>>> You probably need to upgrade pandoc.
>>>> What does pandoc --version say?
>>>>
>>>> Den m=C3=A5n 16 aug. 2021 17:10Hugh Esco <hre...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
>>>>
>>>>> My attempts to test this yield errors looking like= this:
>>>>>
>>>>> ```
>>>>> $ pandoc --defaults `pwd`/defaults --latex-engine= =3Dlualatex
>>>>> --template=3Dmy_client.latex my_source_file.pdc -o= my_result_file.pdf
>>>>> pandoc: unrecognized option `--defaults'
>>>>> Try pandoc --help for more information.
>>>>> ```
>>>>> looking at the --help output yields this:
>>>>>
>>>>> ```
>>>>> $ pandoc --help | grep default
>>>>> -D FORMAT --print-default-template= =3DFORMAT
>>>>> --print-default-data-file= =3DFILE
>>>>> --default-image-extension= =3Dextension
>>>>> ```
>>>>>
>>>>> but no `--defaults` switch. What am I missing her= e, please?
>>>>>
>>>>> -- Hugh
>>>>>
>>>>> On Monday, August 16, 2021 at 4:32:15 AM UTC-4 BPJ= wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> Den m=C3=A5n 16 aug. 2021 10:25BPJ <b...-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org> skrev:
>>>>>>
>>>>>>> You use the `mainfont`, `sansfont`, `monof= ont`, `mathfont`,
>>>>>>> `CJKmainfont`
>>>>>>> variables for the font names and the corre= sponding `mainfontoptions`
>>>>>>> etc.
>>>>>>> variables. The latter are lists of strings= with raw fontspec[^1]
>>>>>>> options in the format `'Option=3DValue= '` or `'Option=3D{Multi-word value}'`. The
>>>>>>> easiest way is to specify them is in a def= aults file[^2] like this:
>>>>>>>
>>>>>>> from: markdown
>>>>>>> to: latex
>>>>>>> pdf-engine: xelatex
>>>>>>> variables:
>>>>>>> mainfont: Noto Serif
>>>>>>> sansfont: Noto Sans
>>>>>>> monofont: Noto Mono
>>>>>>> monofontoptions:
>>>>>>> - 'Scale=3DMatchLowercase'= ;
>>>>>>>
>>>>>>> For some reason the default latex template= [^3] does not contain any
>>>>>>> variable for `defaultfontfeatures` but
>>>>>>> `\defaultfontfeatures{Scale=3DMatchLowerca= se}` is hard coded. In my
>>>>>>> custom
>>>>>>> template I have added that variable[^4]:
>>>>>>>
>>>>>>> $if(defaultfontfeatures)$
>>>>>>> =20
>>>>>>> \mainfontfeatures{$for(mainfontfeatures)$$= mainfontfeatures$$sep$,$endfor$}
>>>>>>> $else$
>>>>>>>
>>>>>> \defaultfontfeatures{Scale=3DMatchLower= case}
>>>>>>> $endif$
>>>>>>>
>>>>>>
>>>>>> Sorry, a typo: it should be `defaultfontfeatur= es` rather than
>>>>>> `mainfontfeatures`. That's what happens wh= en you copy the wrong line and
>>>>>> use search/replace to make up for it! :-/
>>>>>>
>>>>>>
>>>>>>> Font embedding depends on your XeTeX/LuaTe= X settings. Usually it Just
>>>>>>> Works.
>>>>>>>
>>>>>>>
>>>>>>> [^1]: https://ctan.org/pkg/fontspec
>>>>>>>
>>>>>>> [^2]: https://pandoc.org/MANUAL.html#defau= lt-files
>>>>>>>
>>>>>>> [^3]: https://pandoc.org/MANUAL.html#templates
>>>>>>>
>>>>>>> [^4]: https://git.i= o/J0UJS
>>>>>>>
>>>>>>>
>>>>>>> Den m=C3=A5n 16 aug. 2021 06:56Hugh Esco &= lt;hre...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skre= v:
>>>>>>>
>>>>>>>> My tests seem to indicate that the fon= ts which are available to me
>>>>>>>> are a function of the value of the `--= latex-engine=3D` switch.
>>>>>>>>
>>>>>>>> If I set that switch to pdflatex (whic= h seems to be the default), I
>>>>>>>> can choose any font installed as a .st= y file at this path:
>>>>>>>> `/usr/share/texlive/texmf-dist/tex/lat= ex/psnfss/`, by setting a value to
>>>>>>>> the fontenc key at the top of my markd= own source file.
>>>>>>>>
>>>>>>>> But I have not been able to sort out h= ow to access other fonts
>>>>>>>> installed at `/usr/share`, by setting = the `--latex-engine` to `lualatext`
>>>>>>>> or `xelatex`.
>>>>>>>>
>>>>>>>> All my tests seem to look alike, and c= hanging my fonts has no impact
>>>>>>>> on how the resulting pdf looks.
>>>>>>>>
>>>>>>>> Can someone please point me to some do= cumentation which would help
>>>>>>>> me understand how to use the full rang= e of fonts available on this system,
>>>>>>>> suitable for which ever value I set to= the `--latext-engine` switch?
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> -- Hugh Esco
>>>>>>>>
>>>>>>>> --=20
>>>>>>>> You received this message because you = are subscribed to the Google
>>>>>>>> Groups "pandoc-discuss" grou= p.
>>>>>>>> To unsubscribe from this group and sto= p receiving emails from it,
>>>>>>>> send an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>>>>>>>> To view this discussion on the web vis= it
>>>>>>>> https://groups.google.com/d/msgid/pandoc-discuss/543536ca-7ced-4033-= ad1a-ecdd3fedaf44n%40googlegroups.com
>>>>>>>> <https://groups.google.com/d/msgid/pandoc-discuss/5435= 36ca-7ced-4033-ad1a-ecdd3fedaf44n%40googlegroups.com?utm_medium=3Demail&= ;utm_source=3Dfooter>
>>>>>>>> .
>>>>>>>>
>>>>>>> --=20
>>>>> You received this message because you are subscrib= ed to the Google
>>>>> Groups "pandoc-discuss" group.
>>>>> To unsubscribe from this group and stop receiving = emails from it, send
>>>>> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>>>>>
>>>> To view this discussion on the web visit
>>>>> http= s://groups.google.com/d/msgid/pandoc-discuss/512edc0d-8cbb-4e97-92b9-5cd1a1= bdfffen%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/pandoc-discuss/512edc0d-8cbb-4e97= -92b9-5cd1a1bdfffen%40googlegroups.com?utm_medium=3Demail&utm_source=3D= footer>
>>>>> .
>>>>>
>>>>
>=20

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/e775729a-ce74-4727-a451-bc9058b5086en%40googlegroups.= com.
------=_Part_71_172418305.1629309143194-- ------=_Part_70_1147279354.1629309143194--