Skip to content

Commit

Permalink
#44 latex up
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Mar 14, 2024
1 parent 31f0911 commit 4d0aa19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
@@ -1,4 +1,4 @@
# Copyright (c) 2009-2023 Yegor Bugayenko
# Copyright (c) 2009-2024 Yegor Bugayenko
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -86,16 +86,17 @@ RUN apt-get -y install wget \
software-properties-common

# LaTeX
ENV TEXLIVE_YEAR 2024
RUN mkdir /tmp/texlive \
&& cd /tmp/texlive \
&& wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl.zip \
&& unzip ./install-tl.zip -d install-tl \
&& cd install-tl/install-tl-* \
&& echo "selected_scheme scheme-medium" > p \
&& perl ./install-tl --profile=p \
&& ln -s $(ls /usr/local/texlive/2023/bin/) /usr/local/texlive/2023/bin/latest
ENV PATH "${PATH}:/usr/local/texlive/2023/bin/latest"
RUN echo 'export PATH=${PATH}:/usr/local/texlive/2023/bin/latest' >> /root/.profile \
&& ln -s $(ls /usr/local/texlive/${TEXLIVE_YEAR}/bin/) /usr/local/texlive/${TEXLIVE_YEAR}/bin/latest
ENV PATH "${PATH}:/usr/local/texlive/${TEXLIVE_YEAR}/bin/latest"
RUN echo 'export PATH=${PATH}:/usr/local/texlive/${TEXLIVE_YEAR}/bin/latest' >> /root/.profile \
&& tlmgr init-usertree \
&& tlmgr install texliveonfly \
&& pdflatex --version \
Expand Down
2 changes: 1 addition & 1 deletion settings.xml
@@ -1,5 +1,5 @@
<!--
* Copyright (c) 2009-2023 Yegor Bugayenko
* Copyright (c) 2009-2024 Yegor Bugayenko
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down

0 comments on commit 4d0aa19

Please sign in to comment.