From owner-freebsd-questions@freebsd.org Mon Aug 20 09:06:54 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 67A5B1089877 for ; Mon, 20 Aug 2018 09:06:54 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CD0278292E for ; Mon, 20 Aug 2018 09:06:53 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.195.99.237]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPA (Nemesis) id 0M5Ozn-1g3SVQ3kkR-00zXDO; Mon, 20 Aug 2018 11:06:52 +0200 Date: Mon, 20 Aug 2018 11:06:50 +0200 From: Polytropon To: Victor Sudakov Cc: freebsd-questions@freebsd.org Subject: Re: The recommended LaTeX port? Message-Id: <20180820110650.3f621f7e.freebsd@edvax.de> In-Reply-To: <20180820015337.GA24423@admin.sibptus.transneft.ru> References: <20180819134150.GA18805@admin.sibptus.transneft.ru> <20180819161317.9bfdac7f.freebsd@edvax.de> <20180820015337.GA24423@admin.sibptus.transneft.ru> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:NQrNgafsIhNempyEGToPzar4w+HHLNC028R7jJ3ahxdAg7+8Dlh XVPMz8mZOTw15sw+NvrwDemfki7yFOk+7tJdUY3MXHJblUg2XQZrMelrO2E4zWBHvFEMfl1 cMbOH0r+sxqnHF8TfUY6Ke1yZeHLpQQUmZgii3/YZ+WtB1kGcCKg7tKmLqjpkeYeVFwXcI0 4BMYH2rTEG5ICGqM4qbeQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:z6dREuC6g60=:EAAg24kV+cJEmnhGPF4+/S hBYbM96hdhUDzkwHaCHlZOMVGFCe/skhDeIoOTJM0NntZiId4/5v6M0r6/lbHcHGBtWFn7lF+ 7hNmpUCUYxDb19Q+lsnpj8Coi+iPhhzgll874IpftA9adD89UeOrGWdh9YUlDjGSxGAi7EfuB L2aFTnPDtFiWG49AgWShWd2sXzPn7sxZK9VactMAmBB6b0va4ePXUqh97RjrLQ+wRfrrNO+Wa 15w2Rp901xb0pfG3OAhZZ4xCAM2oYH/Kv7c5WKzdrjLEW3wJhGJ0Jl62IOXygFNXR7l7YzZKM Ny+75C0KDwKK3xOdILlZu5auPzDs4XKXjJVh1whXEKlT6M3AJdEOvfuzKO25x41o42qFAAGoK 60jG+8JzSXac1w6cOpoFDj+3MplVBzVqBRAohtqTE465DqWwCGUsF6NDyIbfoz56PvUoHzwRb WuUQo08OuzaiEpDJkMlHfiR70uQV8d2I9TLnnoErW/4VUefBrSaHi+32f7y4GVSE20wTGwRFA 8vFG9obqy0j0C3sgvaCioVSirNyoeu9v7EJrxsWwXDH1zNOMUgDOt2+abnvegRVGP+8tK2eBJ MyNZ1IYCUjv1doNbDSB1QO7KSbDvc8KEgcBLlmpNHMG6lGSkDgEuh5DLqBo0JNuRuj6nBjxJR jGw6l5/T92XQx31aJvB7aTlQxjKQS+YlvQBEOW0INCuIgxcjv2AXv+DEYuOKyFZ/kzFafp6yp Psr1XmWijRa2OiJF X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Aug 2018 09:06:54 -0000 On Mon, 20 Aug 2018 08:53:37 +0700, Victor Sudakov wrote: > Polytropon wrote: > > > > > > Which is *the* \LaTeX distribution for FreeBSD currently? > > > > > > I remember last time I needed \LaTex around a dozen years ago, I used > > > the teTeX port, but cannot find it now. > > > > This is currect, teTeX has been discontinued. The consensus > > is to use TeXlive which is in FreeBSD ports, but is offered > > for many other platforms, too. > > OK, print/texlive-full then. Correct. > > > Cyrillic support is crucial, direct output to PDF is very desirable, > > > dependency on GUI libs and tools is not desirable. > > > > With TeXlive, you have the same tools (and more packages) > > as teTeX, so the switch should be possible without problems. > > For cyrillic text, only used occassionally, I use > > No, occassionally is not for me. I always wanted to have a template wheer I can copy some russian text into it (with cyrillic letters only, UTF-8, but with the correct \frqq{}quotes\flqq{}, punctuation, numbers and so on), and it would typeset as expected. Sadly, I don't have such a template yet... :-( And: No, creating a converter from cyrillic UTF-8 to the EN-US-dominated nonsense ASCII replacement ruleset with z, s, ch, kh, y, w, z, resulting in "zdravstvu\u{i}te" and other mostly unreadable text doesn't count. :-) > > Additionally, it _should_ be possible to use UTF-8 > > input sources with cyrillic letters directly, using > > > > \usepackage[utf8x]{inputenc} > > In fact, this is not sufficient, pdflatex still complains about Cyrillic > characters. Maybe something like > > \usepackage[utf8]{inputenc} > \usepackage[russian]{babel} > > helps, but I think I need to find Russian users of TeXlive for > instructions. With TeXlive, you have at least the common foundation for any typesetting work. Oh, I just found something that works, thanks to your mentioning of the babel package (which I never found any use for, not in English, not in German). Save this to a demonstration file, for example bagash.tex: \documentclass[12pt,a4paper]{article} \usepackage{a4} \usepackage{soul} \usepackage[OT2,T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[russian]{babel} \begin{document} Самуил Я. Маршак: \textbf{Багаж} Дама сдавала в багаж: Диван, Чемодан, Саквояж, Картину, Корзину, Картонку И маленькую собачонку. \end{document} If you now run "pdflatex bagash.tex", you will see all the text as intended (even though it will be typeset in paragraph mode, but that is what you'd expect without any further markup). I found the relevant coding example in the babel documentation: https://ctan.org/pkg/babel?lang=en http://mirrors.ctan.org/macros/latex/required/babel/base/babel.pdf Just search for "russian", and you'll quickly find it. I think this solves the initial problem. And I learned something new today. :-) > > > I forgot to mention that I've tried a couple of online editors like > > > https://www.sharelatex.com/ but they all lacked Cyrillic support > > > miserably (Cyrillic characters either did not show in the compiled > > > output, or showed as mojibake). > > > > Just use a normal editor inside a terminal that can input > > and display cyrillic letters. Even ye olde xterm can do it. > > Make sure you set your environment variables correctly, > > i. e., en_US.UTF-8. > > Sorry, you misunderstood me. I meant *online* editors, not *visual* > editors. That is, online \LaTex compilers, you just upload your source > or edit it in a Web form, and they compile it for you online into PDF. > https://www.sharelatex.com/ is like that. And for a fee, they offer > collaboration tools, git integration etc. Ah okay. I don't use any of those, that's why I cannot suggest anything. Does a SSH access to a FreeBSD system with a normal editor (vim, gvim, mcedit, joe) using a web-based SSH client count as "online editor"? ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...