Làm thế nào để đăng ký các gói riêng tôi trong một ổ đĩa riêng để cài đặt TeX Live?
Bước 1. Mở C:\texlive\2010\texmf.cnf và sửa đổi như sau.
% (Public domain.)
% This texmf.cnf file should contain only your personal changes from the
% original texmf.cnf (for example, as chosen in the installer).
%
% That is, if you need to make changes to texmf.cnf, put your custom
% settings in this file, which is .../texlive/YYYY/texmf.cnf, rather than
% the distributed file (which is .../texlive/YYYY/texmf/web2c/texmf.cnf).
% And include *only* your changed values, not a copy of the whole thing!
%
OSFONTDIR = $SystemRoot/fonts//
%============== Below this row is my modification ====================
%
% My custom packages and classes are in D:\LVH@AJC\OneDrive\OTDH\Data\tex\latex.
%
TEXMFLOCAL = $SELFAUTOPARENT/../texmf-local,D:\LVH@AJC\OneDrive\OTDH\Data
%
%
% It is wrong if you do like below
% or
Các gói và lớp phải nằm trong một số thư mục con của tex\latex. Trong ví dụ trên của tôi, chúng nằm trong D:\LVH@AJC\OneDrive\OTDH\Data. Tôi không chắc khoảng trắng trong đường dẫn vẫn hoạt động trong hệ điều hành khác ngoài Windows.
Bước 2. Gọi lệnh C:\texlive\2019\bin\win32\texhash.exe
Hoàn thành. Xin chúc mừng.