docs.latex - jgrey4296/jgrey4296.github.io GitHub Wiki

Latex

Packages Tex User Group CTAN WikiBook Reference

TexLive

PdfLatex

Xetex

replace `babel` with `polyglossia` replace `lmodern` with `fontspec` replace `fancyhdr` with `scrlayer-scrpage` use `microtype`

remove `inputenc` remove `fontenc`

LuaLatex

% For using a font:
% from https://tex.stackexchange.com/questions/103704
\setmainfont[
    Path           = /home/john/.local/share/fonts/
    Extension      = .ttf,
    Ligatures      = TeX
]{Embossed Germanica}

tlmgr

to call bibtex, specify local aux file

for installing packages, use –usermode after tlmgr init-usertree

sudo fmtutil-sys –all

for fonts install collection-fontsrecommended for russian: cyrillic, hyphen-russian, babel-russian, fontspec, collection-langcyrillic

Specifying a particular repo

available:

# https://tex.stackexchange.com/questions/701501
tlmgr option repository {repo}j

texdoc

tlmgr option docfiles 1 tlmgr install –reinstall $(tlmgr list –only-installed | sed -E ‘s/i (.*):.*$/\1/’)

kpsewhich

kpsewhich for searching latex path https://www.overleaf.com/learn/latex/Articles/An_introduction_to_Kpathsea_and_how_TeX_engines_search_for_files

http://tug.org/texinfohtml/kpathsea.html#Supported-file-formats

kpsewhich -help

kpsewhich export_template_py.tex
kpsewhich ramabhadra.ttf
kpsewhich -D 2 RulerGold.ttf
kpsewhich --show-path=ls-R
kpsewhich --show-path=tex
kpsewhich -debug=32 HopeGold.ttf

kpsexpand

kpsexpand \$JG_FONTS

auctext

;; Use hidden directories for AUCTeX files.
(setq TeX-auto-local (expand-file-name "auctex/auto" user-cache-dir)
      TeX-style-local(expand-file-name "auctex/style" user-cache-dir)
      )

Overleaf

Howto

Specific Constructs

Proofs

Proof Trees

Pseudo Code

see algorithm2e

Event Chains (Instal)

Gantt Charts (Instal)

Installing fonts

OTF/TTF and WOFF are most supported. mktexlsr updmap fmtutil

Silencing Warnings

\hfuzz=5pt % silences overfull hboxes up to 5pts
\hbadness=100000 % silences underfull hbox warnings

package silence

\usepackage{silence}
\WarningFilter[pdftoc]{hyperref}{Token not allowed in a PDF string}
\WarningsOff*
\ErrorsOff*

writing packages

Links

⚠️ **GitHub.com Fallback** ⚠️