usetikzlibrary{angles,quotes}%编译报错:
I can't find file 'tikzlibraryangles.code.tex'
请问是什么问题?
未提供MWE,无法判断问题,以下这个代码执行没有任何问题:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{angles}
\begin{document}
\tikz \draw (2,0) coordinate (A) -- (0,0) coordinate (B)
-- (-1,-1) coordinate (C)
pic [fill=black!50] {angle = A--B--C}
pic [draw,->,red,thick,angle radius=1cm] {angle = C--B--A};
\end{document}
%RequirePackage{fix-cm}
%documentclass[fancyhdr,openany,CJK,draft]{ctexbook}%,draft
documentclass[fancyhdr,openany,CJK]{ctexbook}%,draft
usepackage{etex}
usepackage{pgfplots}
usepackage{fancyhdr}
usepackage[fancyhdr]{interfaces}
usepackage{CJK,fancyhdr,amsmath,amsthm,amscd,amssymb,tikz,subfig,exercise}
usepackage{anysize,multirow}
usepackage{makecell,booktabs}
usepackage{slashbox}
usepackage{graphicx,graphics,txfonts}
usepackage{algorithm2e}
%usepackage{yhmath}wideparen
usepackage{pict2e} % 不必须.可使斜线比较好看
usepackage{slashbox}
usepackage{extarrows}
usepackage{cases}
usepackage{mathdots,mathrsfs,times}
usepackage{upgreek}
usepackage{blkarray}
usepackage{float}
usepackage{extarrows}
usepackage{arcs}
usepackage{caption}
%captionsetup[figure]{font=scriptsize}
%usepackage{esint}%闭合曲线积分
usepackage{showlabels}
usepackage{xcolor}
usepackage{empheq}
%usepackage{pgfplotstable}
usepackage[babel=true,kerning=true]{microtype}
usetikzlibrary{intersections}
usepackage{esvect}
usetikzlibrary{3d,calc,shapes}
usepackage{bm}
usepackage[titletoc]{appendix}
%usepackage{yhmath}
pgfplotsset{compat=newest}
usepackage{tikz}
usepackage{tikz-3dplot}
usepackage{standalone}
usetikzlibrary{angles,calc,fadings,decorations.pathreplacing,intersections,quotes}%
usepackage[all]{xy}
%usepackage{euler}
%usetikzlibrary{shapes,calc,positioning}
%usepackage{pgfmath}
%usetikzlibrary {arrows.meta}
%usetikzlibrary{angles,quotes}
captionsetup[figure]{name={small{图}}}
setlength{abovecaptionskip}{-0.3cm}
usetikzlibrary{patterns} %条纹
usepgfplotslibrary{patchplots}
pgfplotsset{compat=newest}
%usetikzlibrary{calc,intersections}
%usetikzlibrary{angles,calc,intersections,quotes}
definecolor{hellmagenta}{rgb}{1,0.75,0.9}
definecolor{hellcyan}{rgb}{0.75,1,0.9}
definecolor{hellgelb}{rgb}{1,1,0.8}
definecolor{colKeys}{rgb}{0,0,1}
definecolor{colIdentifier}{rgb}{0,0,0}
definecolor{colComments}{rgb}{1,0,0}
definecolor{colString}{rgb}{0,0.5,0}
definecolor{darkyellow}{rgb}{1,0.9,0}
definecolor{darkgreen}{rgb}{0,1,0}
definecolor{forestgreen}{rgb}{0.134,0.545,.134}
definecolor{darkblue}{rgb}{0.1,0.1,.5}
definecolor{pink}{RGB}{0.98,0.64,0.73}
definecolor{grassgreen}{RGB}{0.51,255,0}
definecolor{cyangreen}{RGB}{0.25,0.88,0.80}
defxstrut{vphantom{dfrac{(A)^1}{(B)^1}}}
setlength{headheight}{15pt}
%usepackage{hyperref}
%罗马数字
makeatletter
newcommand{rmnum}[1]{romannumeral #1}
newcommand{Rmnum}[1]{expandafter@slowromancapromannumeral #1@}
makeatother
newcommand{blank}{underline{qquadqquad}}%
%画球面
newcommandpgfmathsinandcos[3]{
pgfmathsetmacro#1{sin(#3)}
pgfmathsetmacro#2{cos(#3)}
}
newcommandLongitudePlane3{
pgfmathsinandcossinElcosEl{#2}
pgfmathsinandcossintcost{#3}
tikzset{#1/.estyle={cm={cost,sint*sinEl,0,cosEl,(0,0)}}}
}
newcommandLatitudePlane3{
pgfmathsinandcossinElcosEl{#2} % elevation
pgfmathsinandcossintcost{#3} % latitude
pgfmathsetmacroyshift{cosEl*sint}
pgfmathsetmacroyshift{cosEl*sint}
}
newcommandDrawLongitudeCircle2{
LongitudePlane{angEl}{#2}
tikzset{current plane/.prefix style={scale=#1}}% angle of "visibility"
pgfmathsetmacroangVis{atan(sin(#2)*cos(angEl)/sin(angEl))} %
draw[current plane] (angVis:1) arc (angVis:angVis+180:1);
draw[current plane, dashed] (angVis-180:1) arc (angVis-180:angVis:1);
}
newcommandDrawLatitudeCircle2{
LatitudePlane{angEl}{#2}
tikzset{current plane/.prefix style={scale=#1}}
pgfmathsetmacrosinVis{sin(#2)/cos(#2)*sin(angEl)/cos(angEl)}% angle of "visibility"
pgfmathsetmacroangVis{asin(min(1,max(sinVis,-1)))}
draw[current plane] (angVis:1) arc (angVis:-angVis-180:1);
draw[current plane, dashed] (180-angVis:1) arc (180-angVis:angVis:1);
}
%begin{tikzpicture} % "THE GLOBE" showcase
%defR{5} % sphere radius
%defangEl{35} % elevation angle
%filldraw[ball color=white] (0,0) circle (R);
%foreach t in {-80,-60,...,80} {DrawLatitudeCircle[R]{t}}
%foreach t in {-5,-35,...,-175} {DrawLongitudeCircle[R]{t}}
%end{tikzpicture}
%usepackage[body={134mm,194mm},centering,dvipdfm]{geometry}
%usepackage{wasysym}
%geometry{papersize={170mm,230mm}}
%makeatletter
%renewcommand*l@chapter{@dottedtocline{1}{0em}{1.0em}}
%makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%tikzlibraryquotes.code.tex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usetikzlibrary{matrix}
marginsize{2cm}{2cm}{1cm}{2cm}
%setlength{textwidth}{129mm}
%textgeigth{189mm}
parindent=2.6em
renewcommand{baselinestretch}{1.8}
%newcommandvarparallel{mathrel{/!/}}
begin{document}small
begin{figure}[!bhtp]
begin{tikzpicture}[scale=.75]
% Define radius
defr{3}
% Bloch vector
draw (0,0) node[circle,fill,inner sep=1] (orig) {} -- (r/3,r/2) node[circle,fill,inner sep=0.7,label=above:$\vec{r}$] (a) {};
draw[dashed] (orig) -- (r/3,-r/5) node (phi) {} -- (a);
% Sphere
draw (orig) circle (r);
draw[dashed,thick] (orig) ellipse (r{} and r/3);
% Axes
draw[->] (orig) -- ++(-r/5,-r/3) node[below] (x1) {$x$};
draw[->] (orig) -- ++(r,0) node[right] (x2) {$y$};
draw[->] (orig) -- ++(0,r) node[above] (x3) {$z$};
%Angles
pic [draw=gray,text=gray,->,"$\phi$"] {angle = x1--orig--phi};
pic [draw=gray,text=gray,<-,"$\theta$",angle eccentricity=1.4] {angle = a--orig--x3};
end{tikzpicture}caption{}
end{figure}
end{document}
@u4830
你的 WME 里面的反斜线怎么都不见了?
@u4830
MWE
@u4830 代码要会用 md 语法,不是粘贴就好了,编辑器界面都有提示。