From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/27678 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Julien Dutant Newsgroups: gmane.text.pandoc Subject: Re: How to include Cyrillic Characters in Markdown for Pandoc Date: Wed, 3 Feb 2021 14:39:51 -0800 (PST) Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_182_574900946.1612391991565" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4907"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC5Y3356IYILRTHMQADBUBAXFKGHK-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Feb 03 23:39:54 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f57.google.com ([209.85.161.57]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l7QoU-00019F-IU for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 03 Feb 2021 23:39:54 +0100 Original-Received: by mail-oo1-f57.google.com with SMTP id z6sf649319oop.10 for ; Wed, 03 Feb 2021 14:39:54 -0800 (PST) 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=vCX3mbFPjEygoVEva6WqHRb0++FafDCxpn56S98yBlk=; b=nGPj6YcvxZbCmn49sjRKdJ+qbDx/b7CPvcuy6iOjtRP6R4oXwZGe28T30LlCvvalNs Z6XtuBj/Z1afew45A+PCwCT5cvYDOlbd2QDbodMfrxYvbRoYgjIv4csTSATIc9d7E0af VNtmiuOiQd2KKejZJNVmnuUQJmO2QmyiwP0Qq7A/NMh1/WQTnze0+nHMBMakCWV4UJyZ tDgwVnN2t70bFp2S3Ci8ATDp8qUTVZsLmL50QOpJBWER2xZg9qzqCKascZIyfI5uCwpd d7PhCKS7/uw+QsiFMvX03pN76dvzjkF494ajGlRbB76zDVkLfGxK4TckO+ownJX+z50i ecjQ== 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=vCX3mbFPjEygoVEva6WqHRb0++FafDCxpn56S98yBlk=; b=a1cw4QxCTyhZKNOPZ4gGRcr1YcNUbNOyoTAl3N+aKlVcOqq26U424V/uYxVqztdOEX ZmdyfXLwIPmtaSdYPZFnwO6Nqy0cLabWEzIzNnr52Nl47nNIquGHM5PfUh2HQSANetWx tMH6jA9R1as6Bwq+wlmrgv0Sx5qcO3zzqnJw276ftd1LUVIPbltDjp9t/tRJ6DHeMAMx cK5r2+NLiFFplIQ0E46aJ/aRGW5iN/eQRO4hjyeAMOEgG0ALz2CyMXbgbqXRQFpNLiCv 2Ip6gUFCjx87njtPm73gXpN+Mv7/EzXMj7L5G73T6hejWehlaWjJzF1Izs42kBqXIdBx +RNQ== 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=vCX3mbFPjEygoVEva6WqHRb0++FafDCxpn56S98yBlk=; b=I2bdj0a4rfqoDPm0iIQ60bN52aH08Xe3P8QbnebJxb+fb5rhdMeQXqXhK+aB4n4EnU gFFZLxnDLDu0MBJh8ZMmr+JLFCTZuUCETRJ5/GJx45N87V9+nMK2SJ0dTOIwwybLycV2 p3ldzZwGdm0N2+SryTlX4yWNAT8MsVknbMX1H7tdp0gC0nH5SjrLYgq0FCCjg5MyABfO HEYjGDmj8+LQcRAVChA2OCYm3ySsFqrTmqKhyux/iqoLAhMsBtc2kYBrmjWlXhOWyt8S QzOs/cOUXdeVtE90i6KvxyvcUCOsxVC+7VEq8t8gntwmaTM39OHo3EtsBSzXEmZ0tNXI RiPA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5302hne5pjB5byphxs+VGCWYSPVuLtxtwXoRg4pnPNV0btNBWD1M XdR2n2pvfdJ5Bm4TNjJUZrg= X-Google-Smtp-Source: ABdhPJxHuEvwQQwxXsCzmBY9vpElQ8kAz2LxJme1fdUs1jfKZfnDtJtJbwqKa5EhA7q68+iqVR2L3A== X-Received: by 2002:aca:dd55:: with SMTP id u82mr3557584oig.115.1612391993606; Wed, 03 Feb 2021 14:39:53 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:1391:: with SMTP id d17ls871428otq.2.gmail; Wed, 03 Feb 2021 14:39:52 -0800 (PST) X-Received: by 2002:a05:6830:13ce:: with SMTP id e14mr3523100otq.356.1612391992180; Wed, 03 Feb 2021 14:39:52 -0800 (PST) In-Reply-To: X-Original-Sender: julien.dutant-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:27678 Archived-At: ------=_Part_182_574900946.1612391991565 Content-Type: multipart/alternative; boundary="----=_Part_183_886179794.1612391991565" ------=_Part_183_886179794.1612391991565 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Try adding this to the header-include section (you probably have these=20 fonts, but change if appropriate): - \newfontfamily{\cyrillicfont}{Georgia} - \newfontfamily{\cyrillicfontsf}{Arial} Cf.=20 https://tex.stackexchange.com/questions/318394/sans-monospace-font-for-othe= rlanguage and=20 https://tex.stackexchange.com/questions/539296/overleafs-polyglossia-packag= e-with-cyrillic-fonts =20 for some background. Best, Julien On Wednesday, February 3, 2021 at 6:22:25 AM UTC mstep....-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org= =20 wrote: > Hello all! Hope I will not be banned from this list. My minimal working= =20 > example became a maximal (much too long) not working example. Questions a= re=20 > in this Markdown document. For beginners: save the two files, change into= =20 > the folder with your shell, and issue `make` ... > > Thank you for your answers. > > marek > > ***save as cyrillic_test.md*** > --- > documentclass: scrartcl > fontsize: 12pt > pagesize: a4paper > lang: de > header-includes:=20 > - \usepackage{fancyhdr} > - \pagestyle{fancy} > - \lhead{Pandoc, Cyrillic, Markdown to PDF} > - \rhead{\today} > colorlinks: > red > urlcolor: > blue > include-before: > - | > ```{=3Dlatex} > \begin{center} > \hfill \break% > \Huge{ Include Cyrillic in Markdown for Pandoc }\\[0.5em] > \Large{ Test-Paper to solve an Encoding Problem }\\[1.2em] > \Large{ University of Homeoffice }\\[1.2em] > \Large{ Klasse: Ambrosius Anonymus }\\[1.2em] > \large{ Last Edit: Munich \today}\\[1.5em] > \end{center} > ``` > - \tableofcontents > --- > > # How to include Cyrillic Characters in Markdown for Pandoc > > ## Foreword > > Original Thread: >=20 > > I am on Catalina, Newest `Pandoc` installed via `Homebrew`. I am using=20 > `Pandoc > Mardkown > LaTeX > PDF`.^[comp. the `Makefile`]=20 > > > > ## How to insert Cyrillic Text into Markdown=20 > > - My questions are: How to choose a character-set with Cyrillic script=20 > ^[Cyrillic: from code point ux0400 to ux04FF)]; how to know, whether for= =20 > example Arial in `/System/Library/Fonts/Supplemental` has this alphabet= =20 > included?^[Just now before posting I discovered in `Font Book.app`: choos= e=20 > `Arial` then `View > Language > Russian`] > - From where I choose the fonts:\ > + `/System/Library/Fonts/Supplemental` > + `/System/Library/Fonts/` > + `~/Library/Fonts` > + `/usr/local/texlive/2020/texmf-dist/fonts/` > > > > When issuing `make` with a snippet in Cyrillic in the Markdown Original I= =20 > get following error: > > ``` > Error producing PDF. > ! Package polyglossia Error: The current latin font=20 > latinmodern-math.otf(3)\ > does not contain the "Cyrillic" script! > (polyglossia)\ > Please define \cyrillicfont with \newfontfamily command. > ``` > > Apparently the font `latinmodern-math.otf` resides in:=20 > `/System/Volumes/Data/texlive/2019/\ > texmf-dist/fonts/opentype/public/lm-math/latinmodern-math.otf`^[What is= =20 > that? A huge folder, and my Texlive is from 2020! Is this a sort of Backu= p?=20 > May I delete this `texlive` folder?] and=20 > `/usr/local/texlive/2020/texmf-dist/fonts/opentype/public/\ > lm-math/latinmodern-math.otf`. I have to choose my character set from=20 > here? Converting with `Pandoc` the font is certainly chosen in the \LaTeX= {}=20 > install automatically. No need to define the path to the font. Right? > > Inserting in the YAML Headers: > > ``` > > header-includes:=20 > - \usepackage[T1,T2A]{fontenc} > - \usepackage[utf8]{inputenc} > - \usepackage[english,russian,main=3Dgerman]{babel} > > ``` > > is not working. Thank you for your patience. And for this long text. > > ***End*** > > ***save as Makefile*** > all: save typeset open > > .PHONY: all > save: > w > > typeset: > pandoc \ > --from markdown \ > --to latex \ > --out cyrillic_test.pdf \ > --pdf-engine xelatex \ > cyrillic_test.md > > open:=20 > open cyrillic_test.pdf > > ***End*** > --=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/f57e721f-4dd4-41e4-8176-a1608ed22655n%40googlegroups.com. ------=_Part_183_886179794.1612391991565 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Try adding this to the header-include section (you probably have these font= s, but change if appropriate):

On Wednesday= , February 3, 2021 at 6:22:25 AM UTC mstep....-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org wrote:
Hello all! Hope I w= ill not be banned from this list. My minimal working example became a maxim= al (much too long) not working example. Questions are in this Markdown docu= ment. For beginners: save the two files, change into the folder with your s= hell, and issue `make` ...

Thank you for your answers.

marek

***save as cyrillic_= test.md***
---
documentclass: scrartcl
f= ontsize: 12pt
pagesize: a4paper
lang: de
head= er-includes:=C2=A0
- \usepackage{fancyhdr}
- \pagestyle= {fancy}
- \lhead{Pandoc, Cyrillic, Markdown to PDF}
- \= rhead{\today}
colorlinks:
=C2=A0red
urlcolor:=
=C2=A0blue
include-before:
- |
=C2= =A0```{=3Dlatex}
=C2=A0\begin{center}
=C2=A0\hfill \bre= ak%
=C2=A0\Huge{ Include Cyrillic in Markdown for Pandoc }\\[0.5e= m]
=C2=A0\Large{ Test-Paper to solve an Encoding Problem }\\[1.2e= m]
=C2=A0\Large{ University of Homeoffice }\\[1.2em]
= =C2=A0\Large{ Klasse: Ambrosius Anonymus }\\[1.2em]
=C2=A0\large{= Last Edit: Munich \today}\\[1.5em]
=C2=A0\end{center}
= =C2=A0```
- \tableofcontents
---

# How to include Cyrillic Characters in Markdown for Pandoc
## Foreword



=
I tried with=C2=A0

header-includes:=C2=A0
- \usepackage[english,russian,main=3Dgerman]{babel}
- \use= package[T1,T2A]{fontenc}
- \usepackage[utf8]{inputenc}
= -->

## How to insert Cyrillic Text into Markdow= n=C2=A0

- My questions are: How to choose a charac= ter-set with Cyrillic script ^[Cyrillic: from code point ux0400 to ux04FF)]= ; how to know, whether for example Arial in `/System/Library/Fonts/Suppleme= ntal` has this alphabet included?^[Just now before posting I discovered in = `Font Book.app`: choose `Arial` then `View > Language > Russian`]
- From where I choose the fonts:\
=C2=A0 + `/System/Librar= y/Fonts/Supplemental`
=C2=A0 + `/System/Library/Fonts/`
=C2=A0 + `~/Library/Fonts`
=C2=A0 + `/usr/local/texlive/2020/tex= mf-dist/fonts/`

<!--
Uncomment for te= sting:
Bongard Problem [=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB =D0= =9C=D0=BE=D0=B8=D1=81=D0=B5=D0=B5=D0=B2=D0=B8=D1=87 =D0=91=D0=BE=D0=BD=D0= =B3=D0=B0=D1=80=D0=B4]{lang=3Dru}
-->

When issuing `make` with a snippet in Cyrillic in the Markdown Original I = get following error:

```
Error producing= PDF.
! Package polyglossia Error: The current latin font latinmo= dern-math.otf(3)\
does not contain the "Cyrillic" scrip= t!
(polyglossia)\
Please define \cyrillicfont with \new= fontfamily command.
```

Apparently the f= ont `latinmodern-math.otf` resides in: `/System/Volumes/Data/texlive/2019/\=
texmf-dist/fonts/opentype/public/lm-math/latinmodern-math.otf`^[= What is that? A huge folder, and my Texlive is from 2020! Is this a sort of= Backup? May I delete this `texlive` folder?] and `/usr/local/texlive/2020/= texmf-dist/fonts/opentype/public/\
lm-math/latinmodern-math.otf`.= I have to choose my character set from here? Converting with `Pandoc` the = font is certainly chosen in the \LaTeX{} install automatically. No need to = define the path to the font. Right?

Inserting in t= he YAML Headers:

```

head= er-includes:=C2=A0
- \usepackage[T1,T2A]{fontenc}
- \us= epackage[utf8]{inputenc}
- \usepackage[english,russian,main=3Dger= man]{babel}

```

is not wo= rking. Thank you for your patience. And for this long text.

<= /div>
***End***

***save as Makefile***
all: save typeset open

.PHONY: all
save:
w

typeset:
pandoc =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 \
=C2=A0--from =C2=A0 =C2=A0 =C2= =A0 =C2=A0 markdown =C2=A0 =C2=A0 =C2=A0 <= /span> \
=C2=A0--to =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 latex =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \
=C2=A0--out cyrillic_test.pdf \
=C2= =A0--pdf-engine xelatex \
=C2=A0cyrillic_test.md

open:=C2=A0
=
open cyrillic_test.pdf

***End***

--
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/f57e721f-4dd4-41e4-8176-a1608ed22655n%40googlegroups.= com.
------=_Part_183_886179794.1612391991565-- ------=_Part_182_574900946.1612391991565--