Skip to content

Commit 32a93da

Browse files
committed
(fix): preamble.tex
1 parent 51a75f1 commit 32a93da

5 files changed

Lines changed: 33 additions & 17 deletions

File tree

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ missfont.log
239239

240240
# PDF
241241
*.pdf
242+
*.xdv
242243

243244
# PlantUML generated
244245
plantuml/*.png
@@ -248,6 +249,7 @@ plantuml/*.tex
248249
# Editor
249250
*.swp
250251
*~
252+
.gitignore~
251253

252254
# Java
253255
*.part

‎.gitignore~‎

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -219,33 +219,36 @@ __marimo__/
219219
# Streamlit
220220
.streamlit/secrets.toml
221221

222-
#LaTeX
223-
224-
# LaTeX вспомогательные файлы
222+
# LaTeX artifacts
225223
*.aux
226224
*.log
227-
*.out
228225
*.toc
226+
*.out
229227
*.lof
230228
*.lot
231-
*.fls
232-
*.fdb_latexmk
233229
*.synctex.gz
234-
*.synctex
230+
*.pytxcode
231+
*.fdb_latexmk
232+
*.fls
235233
*.bbl
236234
*.blg
237235
*.bcf
238236
*.run.xml
237+
*.synctex
238+
missfont.log
239239

240-
# Скомпилированный PDF (опционально)
241-
# *.pdf
242-
243-
# Редакторы
244-
.vscode/
245-
.idea/
246-
*.swp
240+
# PDF
241+
*.pdf
242+
*.xdv
247243

248244
# PlantUML generated
249245
plantuml/*.png
250246
plantuml/*.tex
251247
!plantuml/*.puml
248+
249+
# Editor
250+
*.swp
251+
*~
252+
253+
# Java
254+
*.part

‎main.pdf‎

2 Bytes
Binary file not shown.

‎main.xdv‎

44.7 KB
Binary file not shown.

‎preamble.tex‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
% --- Шрифты (XeLaTeX) ---
2+
\usepackage{iftex}
23
\usepackage{fontspec}
3-
\setmainfont{Times New Roman}
4-
\setsansfont{Times New Roman}
5-
\setmonofont{Courier New} % или Courier New / DejaVu Sans Mono
64

5+
\ifxetex
6+
\IfFontExistsTF{Times New Roman}{
7+
\setmainfont{Times New Roman}
8+
\setsansfont{Times New Roman}
9+
\setmonofont{Courier New}
10+
}{
11+
\setmainfont{Liberation Serif}
12+
\setsansfont{Liberation Sans}
13+
\setmonofont{Liberation Mono}
14+
}
15+
\else
16+
\PackageError{preamble}{This document requires XeLaTeX}{}
17+
\fi
718
% --- Графика и TikZ ---
819
\usepackage{graphicx}
920
\usepackage{tikz}

0 commit comments

Comments
 (0)