From: "'Marek Stepanek' via pandoc-discuss" <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Bold Type in Cyrillic not working in Markdown to PDF
Date: Tue, 25 Oct 2022 16:43:01 +0200 [thread overview]
Message-ID: <0B91B865-12BB-4A92-9FA0-5DBA5A3C3570@googlemail.com> (raw)
In-Reply-To: <5A532BF5-2F68-49BD-AA26-45752F8665E1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Thank you John for your answer. I am unable to implement your advices. I put up a little minimal (non) working example like follows:
***
---
documentclass: scrartcl
fontsize: 12pt
pagesize: a4paper
# maintfont: "Times New Roman"
colorlinks: red
urlcolor: mygray
header-includes:
- \usepackage{graphicx}
- \usepackage[font=small,labelfont=bf]{caption}
- \usepackage[russian,english,french,main=ngerman]{babel}
# - \usepackage[T1,T2A]{fontenc}
# - \usepackage[utf8]{inputenc}
- \usepackage{xcolor}
- \usepackage{lscape}
- \definecolor{mygray}{gray}{.45}
include-before:
- \tableofcontents
- \bigskip
---
# Wir, Russen, haben zwei Heimaten: unser Russland und Europa.
```{=latex}
\selectlanguage{english}
```
Chapters in Cyrillic are not bold. Text between two asterisks are not rendered bold. Could somebody help me out?
I tried with
```
--pdf-engine xelatex \
```
Second Question: how to comment out lines in a Makefile?
Thank you for your help!
```{=latex}
\selectlanguage{russian}
% \newfontfamily\cyrillicfont[Script=Cyrillic]{Times New Roman}
```
# У нас, у русских, две Родины – наша Россия и Европа.
**Выхожу один я на дорогу;**\newline
Сквозь туман кремнистый путь блестит;\newline
Ночь тиха. Пустыня внемлет богу,\newline
И звезда с звездою говорит.
***
Makefile
***
all: save typeset open
.PHONY: all
save:
w
typeset:
pandoc \
--from markdown \
--to latex \
--out mwe_cyrillic_bold.pdf \
--pdf-engine pdflatex \
mwe_cyrillic_bold.md
open:
open mwe_cyrillic_bold.pdf
***
Greetings
marek
> On 24. Oct 2022, at 19:30, John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> Try using `--pdf-engine=xelatex` and adding `maintfont:` to your metadata, specifying a font with good Cyrillic support.
> You could also try using L[aTEX commands that set a special font just for Cyrillic, e.g. (untested)
>
> \newfontfamily\cyrillicfont[Script=Cyrillic]{Times New Roman}
>
>
--
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/0B91B865-12BB-4A92-9FA0-5DBA5A3C3570%40googlemail.com.
prev parent reply other threads:[~2022-10-25 14:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-23 8:39 'Marek Stepanek' via pandoc-discuss
[not found] ` <21AD61A3-8B7D-43A0-BF9F-F671C0865EAA-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2022-10-24 4:09 ` John MacFarlane
[not found] ` <2A5BF708-9E3F-4FD7-A4A6-13FCFF891428-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-10-24 7:51 ` 'Marek Stepanek' via pandoc-discuss
[not found] ` <EC4CEDB6-78D3-4315-B147-ED2E2CC8AF40-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2022-10-24 17:30 ` John MacFarlane
[not found] ` <5A532BF5-2F68-49BD-AA26-45752F8665E1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-10-25 14:43 ` 'Marek Stepanek' via pandoc-discuss [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0B91B865-12BB-4A92-9FA0-5DBA5A3C3570@googlemail.com \
--to=pandoc-discuss-/jypxa39uh5tlh3mbocffw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).