* Bold Type in Cyrillic not working in Markdown to PDF @ 2022-10-23 8:39 'Marek Stepanek' via pandoc-discuss [not found] ` <21AD61A3-8B7D-43A0-BF9F-F671C0865EAA-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: 'Marek Stepanek' via pandoc-discuss @ 2022-10-23 8:39 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Hello all, Cyrillic characters are rendered normally. Only the italic and bold fonts are in normal fonts. Probably this is more a LaTeX question. In my texts I am inserting citations with \foreignlanguage{russian}{Cyrillic text} working fine. Longer paragraphs I change the language in a LaTeX environment (?) like follows: ```{=latex} \selectlanguage{russian} ``` So my question is: how to change the default character of Pandoc in Russian environments with bold fonts. Best greetings to all marek ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <21AD61A3-8B7D-43A0-BF9F-F671C0865EAA-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>]
* Re: Bold Type in Cyrillic not working in Markdown to PDF [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> 0 siblings, 1 reply; 5+ messages in thread From: John MacFarlane @ 2022-10-24 4:09 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Are you using xelatex, lualatex, or pdflatex? How are you setting up fonts for Cyrillic? > On Oct 23, 2022, at 1:39 AM, 'Marek Stepanek' via pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> wrote: > > Hello all, > > Cyrillic characters are rendered normally. Only the italic and bold fonts are in normal fonts. > > Probably this is more a LaTeX question. In my texts I am inserting citations with \foreignlanguage{russian}{Cyrillic text} working fine. Longer paragraphs I change the language in a LaTeX environment (?) like follows: > > ```{=latex} > > \selectlanguage{russian} > > ``` > > So my question is: how to change the default character of Pandoc in Russian environments with bold fonts. > > > Best greetings to all > > > marek > > -- > 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/21AD61A3-8B7D-43A0-BF9F-F671C0865EAA%40googlemail.com. ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <2A5BF708-9E3F-4FD7-A4A6-13FCFF891428-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: Bold Type in Cyrillic not working in Markdown to PDF [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> 0 siblings, 1 reply; 5+ messages in thread From: 'Marek Stepanek' via pandoc-discuss @ 2022-10-24 7:51 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Thank you John for your answer. I am using pdflatex and no definition of any fonts. I am using the default fonts - and this is certainly the problem: ``` --- documentclass: scrartcl fontsize: 12pt pagesize: a4paper colorlinks: red urlcolor: mygray header-includes: - \setcounter{secnumdepth}{3} - \newcommand{\HRule}{\begin{center}\rule{0.5\linewidth}{0.2mm}\end{center}} - \newenvironment{itquote}{\begin{quote}\itshape}{\end{quote}\ignorespacesafterend} - \newenvironment{itpars}{\par\itshape}{\par} - \newenvironment{largecite}{\par\large\color{mygray}}{\par} - \newenvironment{largecite2}{\par\large\itshape\color{mygray}}{\par} - \usepackage{longtable} - \usepackage{graphicx} - \usepackage{booktabs} - \usepackage[font=small,labelfont=bf]{caption} - \usepackage[russian,english,french,main=ngerman]{babel} etc etc ``` My Makefile: all: save typeset open .PHONY: all save: w typeset: pandoc \ --from markdown \ --to latex \ --out important_txt23.pdf \ --pdf-engine pdflatex \ --bibliography important_txt23.bib \ --citeproc \ --csl csl/din-1505-2-numeric-alphabetical.csl \ --lua-filter pandoc-gls.lua \ important_txt23.md open: open important_txt23.pdf Thx again marek > On 24. Oct 2022, at 06:09, John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Are you using xelatex, lualatex, or pdflatex? > How are you setting up fonts for Cyrillic? > >> ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <EC4CEDB6-78D3-4315-B147-ED2E2CC8AF40-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>]
* Re: Bold Type in Cyrillic not working in Markdown to PDF [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> 0 siblings, 1 reply; 5+ messages in thread From: John MacFarlane @ 2022-10-24 17:30 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw 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} > On Oct 24, 2022, at 12:51 AM, 'Marek Stepanek' via pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> wrote: > > Thank you John for your answer. > > I am using pdflatex and no definition of any fonts. I am using the default fonts - and this is certainly the problem: > > > ``` > --- > documentclass: scrartcl > fontsize: 12pt > pagesize: a4paper > colorlinks: red > urlcolor: mygray > header-includes: > - \setcounter{secnumdepth}{3} > - \newcommand{\HRule}{\begin{center}\rule{0.5\linewidth}{0.2mm}\end{center}} > - \newenvironment{itquote}{\begin{quote}\itshape}{\end{quote}\ignorespacesafterend} > - \newenvironment{itpars}{\par\itshape}{\par} > - \newenvironment{largecite}{\par\large\color{mygray}}{\par} > - \newenvironment{largecite2}{\par\large\itshape\color{mygray}}{\par} > - \usepackage{longtable} > - \usepackage{graphicx} > - \usepackage{booktabs} > - \usepackage[font=small,labelfont=bf]{caption} > - \usepackage[russian,english,french,main=ngerman]{babel} > etc etc > ``` > > My Makefile: > > all: save typeset open > > .PHONY: all > save: > w > > typeset: > pandoc \ > --from markdown \ > --to latex \ > --out important_txt23.pdf \ > --pdf-engine pdflatex \ > --bibliography important_txt23.bib \ > --citeproc \ > --csl csl/din-1505-2-numeric-alphabetical.csl \ > --lua-filter pandoc-gls.lua \ > important_txt23.md > > open: > open important_txt23.pdf > > > Thx again > > > marek > > > >> On 24. Oct 2022, at 06:09, John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> Are you using xelatex, lualatex, or pdflatex? >> How are you setting up fonts for Cyrillic? >> >>> > > -- > 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/EC4CEDB6-78D3-4315-B147-ED2E2CC8AF40%40googlemail.com. ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <5A532BF5-2F68-49BD-AA26-45752F8665E1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: Bold Type in Cyrillic not working in Markdown to PDF [not found] ` <5A532BF5-2F68-49BD-AA26-45752F8665E1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2022-10-25 14:43 ` 'Marek Stepanek' via pandoc-discuss 0 siblings, 0 replies; 5+ messages in thread From: 'Marek Stepanek' via pandoc-discuss @ 2022-10-25 14:43 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw 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. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-10-25 14:43 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-10-23 8:39 Bold Type in Cyrillic not working in Markdown to PDF '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 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).