Меню Рубрики

Latex для mac os

Как правильно установить LaTeX на Mac OS X El Capitan

Alexander Aseev

Read more posts by this author.

Alexander Aseev

Для начала небольшое вступление.

В 2014 году, после установки LaTeX и среды TeXstudio на MacBook Pro с OS X Yosemite, я столкнулся с множеством ошибок, которые выдавал мне TeXstudio. Среди них были ошибки, связанные со шрифтами. Впоследствии, эти ошибки пропали, после очередного обновления TeXstudio. С тех пор все работало идеально, и я был уверен, что все проблемы были из-за багов в TeXstudio.

Но не так давно, устанавливая на свой MacBook Air с тем же Yosemite тот же набор — MacTeX, TeXstudio. И снова те же ошибки. Было множество попыток перебороть проблему со шрифтами в системе, на отсутствие которых ругалась среда. Но все было тщетно, и через несколько дней я забросил это.
Сегодня же, зайдя на страницу MacTeX’а, я обнаружил, что в июле вышла новая версия, от 2015 года.
К слову, на тот момент LaTeX у меня совсем перестал работать, из-за внесенных Apple в OS X El Capitan запретов. Pdflatex, который отвечает за генерацию PDF-файлов лежит именно в той директории, к которой в El Capitan доступа нет. В итоге LaTeX не работает — PDF-файл не генерируется.

На данный момент есть одно очень простое решение:

  1. Для начала необходимо скачать последний дистрибутив MacTeX на официальном сайте — http://tug.org/mactex/mactex-download.html. Если же у вас уже стоял MacTeX, то вам необходимо удалить его. Делается это очень просто — открываем в Finder «Программы»->Tex. Перетягиваем папку в корзину, или же нажимаем cmd+backspace, что равнозначно предыдущему. Далее, нажимаем shift+cmd+G, для того, чтобы перейти в нужную папку, вводим /usr/local/texlive/ и удаляем папку, содержащую файлы самого LaTeX’а. Обычно это номер года — 2013 или 2014. Очищаем корзину, и можем продолжать.
  2. Далее нам необходимо установить предпочитаемую среду, позволяющую работать с LaTeX. Я использую TeXstudio, и мне пришлось удалить старую версию, для того, чтобы все настройки сбросились к стандартным. Ссылка на скачивание — http://texstudio.sourceforge.net.
  3. Устанавливаем MacTeX, вводим пароль администратора, перетягиваем TeXstudio в папку приложения — почти готово.
  4. Так как в El Capitan немного изменились пути расположения нужных нам для корректной работы файлов, нужно их изменить в TeXstudio. Запускаем программу, нажимаем сверху TeXstudio — Preferences — Команды.
  5. Здесь необходимо параметры запуска (все, что стоит после пробела) везде оставить неизменными, а пути к файлам изменить на следующие:

Нажимаем ок — и все.
Для примера даю скриншот того, как это выглядит у меня:

UPD: если у вас не работает генерация PDF-файлов с кириллицей (такое очень часто бывает на маках), с флагом /usepackage[T2A], и в логе есть ошибка » Font T2A/cmr/m/n/10.95=larm1095 at 10.95pt not loadable» или что-то в этом роде, то ее я смог исправить, отключив rootless — новый режим безопасности в El Capitan, запрещающий запись в системную директорию всем пользователям, даже root. Не советую так делать, так как это может сделать ваш Мак уязвимее (иногда, кстати, работает и без этого), но если вам очень необходимо, то все очень просто:

Выключаем мак, нажимаем на кнопку включения, и сразу же зажимаем cmd+R. Полоса загрузки заполнится, и вы попадете в Recovery Mode. Необходимо нажать на кнопку «инструменты» в верхнем меню, выбрать терминал и написать команду

Далее необходимо перезагрузить Мак командой

Готово!
Включить защиту обратно можно повторив действия по входу в режим Recovery и введя команду

На этом установку LaTeX на Mac OS X El Capitan можно считать законченной. После данных манипуляций у меня наконец-то заработала генерация PDF-файлов и исчезли все ошибки, которые сопровождали работу с LaTeX ранее.

UPD:
В комментариях также написали такой совет:

Ошибка с « Font T2A/cmr/m/n/10.95=larm1095 at 10.95pt not loadable» после долгих часов мучений решилась командой (предваритально надо поставить MacPorts):

sudo port install texlive-lang-cyrillic texlive-fonts-extra texlive-fonts-recommended

Настройка Ubuntu 16.04 server

Настройка сервера/VPS — это не сложно. Но так как я люблю все «поковырять», а потом вожусь с переустановкой системы, то решил для себя (а если кому-то понадобится — то и для других), что необходимо зафиксировать здесь простейшие действия, которые рекомендую сделать после установки

Метод Бренайзера/The Brenizer Method или Бокерама

Disclaimer: статья старая, писалась еще в 2012 году. Оставлена на память без изменений. Искал я как-то в Google интересующую меня информацию. И тут вдруг наткнулся на штуку, которая отбила все

Источник

Getting LaTeX

LaTeX is free software under the terms of the LaTeX Project Public License (LPPL). LaTeX is distributed through CTAN servers or comes as part of many easily installable and usable TeX distributions provided by the TeX User Group (TUG) or third parties. If you run into trouble, visit the help section.

LaTeX is not a stand-alone typesetting program in itself, but document preparation software that runs on top of Donald E. Knuth’s TeX typesetting system. TeX distributions usually bundle together all the parts needed for a working TeX system and they generally add to this both configuration and maintenance utilities. Nowadays LaTeX, and many of the packages built on it, form an important component of any major TeX distribution.

The LaTeX team cannot guarantee that TeX distributions, even recent ones, contain the most recent version of LaTeX. It may happen that you need a more recent LaTeX than the one that your favourite TeX distribution carries, e.g., in order to get a particular bug fix. In that case you will need to fetch LaTeX from CTAN and install it on top of your distribution. See below for details.

TeX Distributions

If you’re new to TeX and LaTeX or just want an easy installation, get a full TeX distribution. The TeX Users Group (TUG) has a list of notable distributions that are entirely, or least primarily, free software.

Linux

Check your Linux distributions software source for a TeX distribution including LaTeX. You can also install the current TeX Live distribution directly—in fact this may be advisable as many Linux distributions only contain older versions of TeX Live, see Linux TeX Live package status for details.

Mac OS

The MacTeX distribution contains everything you need, including a complete TeX system with LaTeX itself and editors to write documents.

Windows

Check out the MiKTeX or proTeXt or TeX Live distributions; they contain a complete TeX system with LaTeX itself and editors to write documents.

Online

LaTeX online services like Papeeria, Overleaf, ShareLaTeX, Datazar, and LaTeX base offer the ability to edit, view and download LaTeX files and resulting PDFs.

You can obtain LaTeX from CTAN , which is the primary source of distribution for LaTeX. In order for your downloaded LaTeX to be of any use, you have to obtain and set up a TeX system first. You can either install a TeX distribution (see above) or get a TeX system from CTAN . If you use a TeX distribution then it will include a version of LaTeX so this will probably make things easier for you; but you may have a reason not to do this.

The LaTeX Git Repository

These days the LaTeX development sources are kept in a GitHub repository (previously we used SVN).

Anyone can access it and download the files, but submission is restricted to team members. The repository is located at https://github.com/latex3/latex2e and from that browser page you may explore the files, clone the repository or download the files in a .zip archive (roughly 25Mb) by using the appropriate buttons.

If you are familiar with Git you can also clone the repository using the command line or your favorite Git fontend tool, e.g.,

which needs about 50Mb of space. Alternatively, you can do a Subversion checkout from the command line, e.g.,

which will just checkout the current files. But be aware that a SVN checkout of the form

will download all files including their history (back to 2009) and amounts to roughly 1.4Gb so that is quite large.

Note: If you had bookmarked the old SVN repository please update that bookmark to the new GIT repository as we have finally removed it.

A note on Git pull requests

Git repositories support distributed development and allow people to provide change sets that are made available through so called pull requests, so that the maintainers of a program can “pull the suggested changes” into the main repository.

While we appreciate contributions, we think that for the core LaTeX software pull requests are usually not a good approach (unless the change has be already discussed and agreed upon). The stability of LaTeX is very important and this means that changes to the kernel are necessarily very conservative. It also means that a lot of discussion has to happen before any changes are made. So if you do decide to post a pull request, please bear this in mind: we do appreciate ideas, but cannot always integrate them into the kernel and it is quite likely that we reject updates made in this way.

If you want to discuss a possible contribution before (or instead of) making a pull request, we suggest you raise the topic first on the LATEX-L list or drop a line to the team.

Historic LaTeX

Ulrik Vieth has collected historic versions of LaTeX from LaTeX 2.0 for TeX 1.0 (released on 11 December 1983) onwards. You can find them at ftp://ftp.tug.org/historic/macros/latex-saildart/. There might even be some earlier versions. All files have been pulled from the SAILDART archive site at http://z.baumgart.org/ (no longer online) which was based on archive tapes from SAIL at Stanford.

More historic material can be found at ftp://ftp.tug.org/historic (you may not be able to open this in all browsers — alternatively try https://www.math.utah.edu/pub/tex/historic/).

LaTeX is a document preparation system used for the communication and publication of scientific documents. LaTeX is free software and is distributed under the LaTeX Project Public License.

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

  • Latex for mac os
  • Last day on earth survival на mac os
  • Lan scanner mac os
  • Lamp mac os x
  • Labview для mac os