有没有办法将上面的图水平转换?
平均能量损失
\documentclass[a4paper, 10pt]{report}
\usepackage{times}%times new roman
\usepackage{bookmark}
\usepackage[margin=0.5in]{geometry}
\usepackage{multicol}
\usepackage{pdflscape}
\usepackage{blindtext}
\usepackage{amsmath}
\usepackage{amssymb} %% for drwaaaaaaaaaaaaaaaing special symbols
\usepackage{empheq} %for box outside the equations
%%%%% Script for griffiths
% \usepackage{calligra}
% \DeclareMathAlphabet{\mathcalligra}{T1}{calligra}{m}{n}
% \DeclareFontShape{T1}{calligra}{m}{n}{<->s*[2.2]callig15}{}
% \newcommand{\scripty}[1]{\ensuremath{\mathcalligra{#1}}}
%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%% script for griffths 2
\usepackage{calligra}
\DeclareMathAlphabet{\mathcalligra}{T1}{calligra}{m}{n}
\DeclareFontShape{T1}{calligra}{m}{n}{<->s*[2.2]callig15}{}
\newcommand{\scriptr}{\mathcalligra{r}\,}
\newcommand{\boldscriptr}{\pmb{\mathcalligra{r}}\,}
%%%%%%%%%%%%%%%%%
\usepackage{graphicx}
\usepackage{graphics}
\usepackage{tikz}
\usetikzlibrary{angles,quotes, arrows,arrows.meta,backgrounds,calc,decorations,decorations.markings,decorations.pathmorphing,fit,positioning,shapes.arrows,shapes.callouts,shapes.geometric,shapes.misc}
\usepackage{circuitikz} %for drwaing ee circuit
\usepackage [edges, linguistics]{forest} % for drawing forest
\begin{document}
\begin{center}
\begin{forest}
forked edges,
[a
[b][c[d][e]]]]
\end{forest}
\end{center}
\end{document}
答案1
您可以使用选项grow=east
。forest
有关选项的更多信息以及如何使用选项为节点及其所有后代设置选项,请参阅手册for tree
:
\documentclass[a4paper, 10pt]{report}
\usepackage [edges, linguistics]{forest} % for drawing forest
\begin{document}
\begin{center}
\begin{forest}
for tree={grow=east},
forked edges
[a
[b][c[d][e]]]]
\end{forest}
\end{center}
\end{document}
或者使用grow'=east
设置reverse
为true
而不是false
:
\documentclass[a4paper, 10pt]{report}
\usepackage [edges, linguistics]{forest} % for drawing forest
\begin{document}
\begin{center}
\begin{forest}
for tree={grow'=east},
forked edges
[a
[b][c[d][e]]]]
\end{forest}
\end{center}
\end{document}
注意:手册还解释了grow''
,它不会改变reverse
。在示例中,它将显示与 相同的结果grow
。