[ADD] Times New Roman: установка шрифтов в Docker + fontconfig
This commit is contained in:
+11
@@ -7,8 +7,19 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
texlive-lang-cyrillic \
|
texlive-lang-cyrillic \
|
||||||
texlive-latex-extra \
|
texlive-latex-extra \
|
||||||
fonts-liberation \
|
fonts-liberation \
|
||||||
|
cabextract \
|
||||||
|
wget \
|
||||||
|
fontconfig \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN cd /tmp && \
|
||||||
|
wget -q https://downloads.sourceforge.net/corefonts/times32.exe && \
|
||||||
|
cabextract times32.exe && \
|
||||||
|
mkdir -p /usr/share/fonts/truetype/msttcorefonts && \
|
||||||
|
cp -f *.TTF /usr/share/fonts/truetype/msttcorefonts/ && \
|
||||||
|
fc-cache -f && \
|
||||||
|
rm -f /tmp/*.TTF /tmp/times32.exe
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN uv sync --frozen --no-dev
|
RUN uv sync --frozen --no-dev
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ PREAMBLE = r"""\documentclass[a4paper, 14pt]{extarticle}
|
|||||||
\usepackage{geometry}
|
\usepackage{geometry}
|
||||||
\geometry{a4paper,tmargin=2cm,bmargin=2cm,lmargin=3cm,rmargin=1.5cm}
|
\geometry{a4paper,tmargin=2cm,bmargin=2cm,lmargin=3cm,rmargin=1.5cm}
|
||||||
\usepackage{fontspec}
|
\usepackage{fontspec}
|
||||||
\setmainfont{Liberation Serif}
|
\setmainfont{Times New Roman}
|
||||||
\setsansfont{Liberation Sans}
|
\setsansfont{Liberation Sans}
|
||||||
\setmonofont{Liberation Mono}
|
\setmonofont{Liberation Mono}
|
||||||
\usepackage[english, main=russian]{babel}
|
\usepackage[english, main=russian]{babel}
|
||||||
|
|||||||
Reference in New Issue
Block a user