Fehler beim Konvertieren der .MD-Datei in .PDF unter Linux (Ubuntu).Linux

Linux verstehen
Guest
 Fehler beim Konvertieren der .MD-Datei in .PDF unter Linux (Ubuntu).

Post by Guest »

Ich versuche, eine auf Russisch geschriebene Markdown-Datei mit dem folgenden Pandoc-Befehl in eine PDF-Datei zu konvertieren:

Code: Select all

pandoc report1.md -o report1.pdf --pdf-engine=xelatex
Allerdings tritt dieser Fehler auf:

Code: Select all

! Argument of \str_uppercase:n has an extra }.
 `
\par
l.88   \setmainlanguage[]{}
Im Folgenden gebe ich Ihnen Code aus der Markdown-Datei, er ist in russischer Sprache geschrieben, ich glaube, das könnte das Problem sein. Der Fehler tritt auf, weil Pandoc LaTeX zum Generieren der PDF-Datei verwendet und LaTeX die richtigen Spracheinstellungen für nicht-lateinische Schriften wie Kyrillisch erfordert. Der Befehl \setmainlingual[]{} in LaTeX, der zum Festlegen der Hauptsprache des Dokuments verwendet wird, ist in diesem Fall leer, was den Fehler verursacht. Aber ich weiß nicht, wie ich es lösen soll.

Code: Select all

---
# Front matter
lang: ru-RU
title: "Лабораторная работа №1"
subtitle: "Дисциплина: Математические основы защиты информации и информационной безопасности"
author: "Алгайли Абдулазиз Мохаммед"

# Formatting
toc-title: "Содержание"
toc: true # Table of contents
toc_depth: 2
lof: true # Список рисунков
lot: true # Список таблиц
fontsize: 12pt
linestretch: 1.5
papersize: a4paper
documentclass: scrreprt
polyglossia-lang: russian
polyglossia-otherlangs: english
mainfont: PT Serif
romanfont: PT Serif
sansfont: PT Sans
monofont: PT Mono
mainfontoptions: Ligatures=TeX
romanfontoptions: Ligatures=TeX
sansfontoptions: Ligatures=TeX,Scale=MatchLowercase
monofontoptions: Scale=MatchLowercase
indent: true
pdf-engine: xelatex
header-includes:
- \linepenalty=10 # the penalty added to the badness of each line within a paragraph (no associated penalty node) Increasing the value makes tex try to have fewer lines in the paragraph.
- \interlinepenalty=0 # value of the penalty (node) added after each line of a paragraph.
- \hyphenpenalty=50 # the penalty for line breaking at an automatically inserted hyphen
- \exhyphenpenalty=50 # the penalty for line breaking at an explicit hyphen
- \binoppenalty=700 # the penalty for breaking a line at a binary operator
- \relpenalty=500 # the penalty for breaking a line at a relation
- \clubpenalty=150 # extra penalty for breaking after first line of a paragraph
- \widowpenalty=150 # extra penalty for breaking before last line of a paragraph
- \displaywidowpenalty=50 # extra penalty for breaking before last line before a display math
- \brokenpenalty=100 # extra penalty for page breaking after a hyphenated line
- \predisplaypenalty=10000 # penalty for breaking before a display
- \postdisplaypenalty=0 # penalty for breaking after a display
- \floatingpenalty = 20000 # penalty for splitting an insertion (can only be split footnote in standard LaTeX)
- \raggedbottom # or \flushbottom
- \usepackage{float} # keep figures where there are in the text
- \floatplacement{figure}{H} # keep figures where there are in the text
---

# Цель работы

Познакомиться с шифрами Цезаря и Атбаш.

.......

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post