Browse Source

use xelatex to compile

Signed-off-by: surenyi <surenyi82@163.com>
master
surenyi 8 months ago
parent
commit
535755e787
  1. 5
      latexmkrc
  2. BIN
      pdf/rk3588_guide.pdf
  3. 74
      rk3588_guide.tex
  4. 6
      style/xecjk_preamble.tex
  5. 1
      tex/wsl2.tex

5
latexmkrc

@ -4,7 +4,7 @@
# 3: dvi conversion, as specified by the $dvipdf variable (useless)
# 4: lualatex, as specified by the $lualatex variable (best)
# 5: xelatex, as specified by the $xelatex variable (second best)
$pdf_mode=4;
$pdf_mode=5;
$preview_mode=0;
@ -15,7 +15,8 @@ $pdf_previewer = "SumatraPDF -reuse-instance -inverse-search -a %O %S";
@default_files=("*.tex");
# nonstopmode will print more infomations
$lualatex="lualatex -shell-escape -synctex=1 -interaction=batchmode %O %S";
#$lualatex="lualatex -shell-escape -synctex=1 -interaction=batchmode %O %S";
$xelatex="xelatex -shell-escape -synctex=1 -interaction=batchmode %O %S";
$success_cmd="internal mycopy %D";
sub mycopy {

BIN
pdf/rk3588_guide.pdf

Binary file not shown.

74
rk3588_guide.tex

@ -34,11 +34,9 @@
%1m = 39.4 inch
%大18开 (18.5cm * 23cm)
\usepackage{import}
%\usepackage[left=3.25cm, right=3.25cm, top=2.3cm,bottom=1.4cm]{geometry}
\usepackage[framemethod=tikz]{mdframed}
\usepackage[left=3.75cm,right=3.25cm,top=3cm,bottom=2.5cm]{geometry}
\usepackage[cachedir=output/cache, outputdir=output]{minted}
\usepackage{import}
%\usepackage{minted}
%% en_preamble包含基本的宏包配置
\import {style/}{en_preamble}
@ -52,18 +50,20 @@
\usepackage{tcolorbox}
\usepackage[shortlabels]{enumitem}
% xelatex
%\usepackage{navigator}
\usepackage{navigator}
% lualatex
%\usepackage{embedfile}
\usepackage{ulem}
\usepackage{embedfile}
\usepackage{pgfplots}
\usepackage{pifont}
\usepackage{adjustbox}
\usepackage{marginnote}
\usepackage{emoji}
% lualatex
%\usepackage{emoji}
\usepackage{circuitikz}
\usepackage{comment}
\usepackage{makecell}
% \usepackage{xdufont}
\usepackage[owncaptions,tablegrid]{vhistory}
\pgfplotsset{compat=newest}
@ -87,7 +87,7 @@
% otfinfo -i TwemojiMozilla.ttfamily
% Full name: Twemoji Mozilla
\setemojifont{Twemoji Mozilla}
%\setemojifont{Twemoji Mozilla}
%%%% 导言区结束
%%%%%%%%------------------------------------------------------------------------
\graphicspath{{images/}{tex/}}
@ -123,61 +123,7 @@
\makeatother
\urlstyle{leo}
\begin{comment}
\setCJKmainfont[
ItalicFont=AdobeKaitiStd-Regular,
BoldFont=Source Han Serif SC VF,
BoldItalicFont=AdobeKaitiStd-Regular,
ItalicFeatures={RawFeature={+axis={ital=1, wdth=400}}}, % slnt: -90,90
BoldFeatures={RawFeature={+axis={wght=800}}},
BoldItalicFeatures={RawFeature={+axis={wght=800, ital=1}}},
UprightFeatures={RawFeature={+axis={wght=400}}}
]{Source Han Serif SC VF}
\setCJKsansfont[
ItalicFont=AdobeKaitiStd-Regular,
BoldFont=Source Han Sans SC VF,
BoldItalicFont=AdobeKaitiStd-Regular,
ItalicFeatures={RawFeature={+axis={ital=1, wdth=400}}}, % slnt: -90,90
BoldFeatures={RawFeature={+axis={wght=800}}},
BoldItalicFeatures={RawFeature={+axis={wght=800, ital=1}}},
UprightFeatures={RawFeature={+axis={wght=400}}}
]{Source Han Sans SC VF}
\end{comment}
\setCJKfamilyfont{sourcehanserif}[
ItalicFont=AdobeKaitiStd-Regular,
BoldFont=Source Han Serif SC VF,
BoldItalicFont=AdobeKaitiStd-Regular,
ItalicFeatures={RawFeature={+axis={ital=1, wdth=400}}}, % slnt: -90,90
BoldFeatures={RawFeature={+axis={wght=800}}},
BoldItalicFeatures={RawFeature={+axis={wght=800, ital=1}}},
UprightFeatures={RawFeature={+axis={wght=400}}}
] {Source Han Serif SC VF}
\renewcommand{\songti}{\CJKfamily{sourcehanserif}}
\setCJKfamilyfont{sourcehansans}[
ItalicFont=AdobeKaitiStd-Regular,
BoldFont=Source Han Sans SC VF,
BoldItalicFont=AdobeKaitiStd-Regular,
ItalicFeatures={RawFeature={+axis={ital=1, wdth=400}}}, % slnt: -90,90
BoldFeatures={RawFeature={+axis={wght=800}}},
BoldItalicFeatures={RawFeature={+axis={wght=800, ital=1}}},
UprightFeatures={RawFeature={+axis={wght=400}}}
]{Source Han Sans SC VF}
\renewcommand{\heiti}{\CJKfamily{sourcehansans}}
\setCJKfamilyfont{milanvf}{MI Lan Pro VF}[
BoldFont=MI Lan Pro VF,
BoldFeatures={RawFeature={+axis={wght=800}}},
UprightFeatures={RawFeature={+axis={wght=400}}}
]
\newcommand{\milan}{\CJKfamily{milanvf}}
\setCJKfamilyfont{kxfull}{KangXiFontFullVersion}
\newcommand{\kx}{\CJKfamily{kxfull}}
\newcommand{\zhsquote}[1]{{\kx}#1{\kx}}
\newcommand{\zhsquote}[1]{「#1」}
% vhistory
\renewcommand{\vhhistoryname}{修订记录}
\renewcommand{\vhversionname}{版本变更}
@ -205,6 +151,10 @@
\renewcommand\vhChangeColWidth{1.5\hsize}
\makeindex
% \xdusetup {
% style / cjk-font = win,
% style / latin-font = tacn,
% }
%%%% 正文部分
%%%%%%%%------------------------------------------------------------------------
\begin{document}
@ -260,7 +210,6 @@
\backmatter{}
%\input{tex/appendix}
%\myclearpage
\end{content}
%\bibliographystyle{alpha}
@ -280,7 +229,6 @@
%\embedfile[filespec=fmsh_qspips_sw.c.pdf,%
% mimetype=application/pdf,%
% desc={将文件另存为 fmsh\_qspips\_sw.c} ] {scripts/fmsh_qspips_sw.c}
\end{document}
\embedfilefinish
%%%% 正文部分结束

6
style/xecjk_preamble.tex

@ -188,8 +188,8 @@
%% 定义新字体
%\setCJKfamilyfont{song}{Adobe Song Std}
%\setCJKfamilyfont{kai}{Adobe Kaiti Std}
%\setCJKfamilyfont{hei}{Adobe Heiti Std}
\setCJKfamilyfont{simfang}{AdobeFangsongStd-Regular}
%\setCJKfamilyfont{zhhei}{Adobe Heiti Std}
%\setCJKfamilyfont{simfang}{FangSong}
%\setCJKfamilyfont{lisu}{LiShu}
%\setCJKfamilyfont{youyuan}{Adobe Kaiti Std}
@ -222,7 +222,7 @@
%% 自定义黑体
%\newcommand{\hei}{\CJKfamily{hei}}
%% 自定义仿宋体
\renewcommand{\fangsong}{\CJKfamily{simfang}}
%\renewcommand{\fangsong}{\CJKfamily{simfang}}
%% 自定义隶书
%\newcommand{\lisu}{\CJKfamily{lisu}}
%% 自定义幼圆

1
tex/wsl2.tex

@ -81,3 +81,4 @@ netsh interface portproxy delete v4tov4 listenport=80 \
listenaddress=0.0.0.0
\end{minted}
\end{enumerate}

Loading…
Cancel
Save