更改 PGF 日历中的行距

更改 PGF 日历中的行距

实际上有两个问题:在下面的例子中,我想 1)更改日历中的行距 2)将日历向左移动

我找不到增加日历行距的方法;我试过了\linespread在文档中,但它对日历没有影响。而且我无法再将日历的日期向左移动。我放弃了!

这是完整的示例,主要基于.pgf 文档思维导图。

\documentclass{article}
%%%<
\usepackage{verbatim}
%%%>


\usepackage{tikz}
\usepackage[paperwidth=22cm,paperheight=29cm,left=0cm,top=0cm,bottom=0cm,right=0cm]{geometry}



\usetikzlibrary{%
backgrounds,%
trees,%
mindmap,%
calendar}


\begin{document}


\noindent
\begin{tikzpicture}[mindmap]
\begin{scope}[
every node/.style={concept, circular drop shadow={shadow scale=1.1, shadow xshift=.8ex, shadow yshift=-.3ex,
fill=black, path fading={circle with fuzzy edge 20 percent}, every shadow},
% execute at begin node=\hskip0pt
},
root concept/.append style={concept color=black, fill=white, line width=1ex, text=black, font=\Huge\scshape, minimum size=5cm},
text=white,
radio/.style={concept color=red,faded/.style={concept color=red!50}, minimum size=4cm},
ortho/.style={concept color=blue,faded/.style={concept color=blue!50}, minimum size=4cm},
rhumato/.style={concept color=orange,faded/.style={concept color=orange!50}, minimum size=4cm},
reeduc/.style={concept color=green!50!black,faded/.style={concept color=green!50!black!50}, minimum size=4cm},
grow cyclic,
level 1/.append style={level distance=6cm,sibling angle=90,font=\Large\scshape},
level 2/.append style={level distance=4.5cm,sibling angle=45,font=\normalsize}]
  \node[font=\bfseries, root concept, xshift=-4.3cm] (arteos) {ART\'eOS} % root
  child [radio,sibling angle=45] { node[yshift=-2cm, xshift=1cm] {\makebox[0pt]{{Radiologie}}}
    child [minimum size=2.5cm] { node {{Imagerie\\fonctionnelle}}}
    child [minimum size=2.8cm] { node {{Radiographie\\inter-ventionnelle}}}
    child [minimum size=2cm] { node {{EOS}}}
  }
  child [ortho] { node[yshift=-0.5cm, xshift=-1cm] {\makebox[0pt]{{Orthop\'edie}}}
    child [minimum size=2.5cm] { node (o_perf) {\makebox[0pt]{Performance}}}
    child [minimum size=2.2cm] { node (o_mat) {{Tribologie}}}
    child [minimum size=2.8cm] { node (o_art) {\makebox[0pt]{Arthroplasties}}}
    child [minimum size=2cm] { node (o_fra) {{Fractures}}}
  }
  child [rhumato] { node[yshift=+3cm, xshift=-1cm] {\makebox[0pt]{{Rhumatologie}}}
    child [minimum size=2.5cm] { node (rh_epid) {\makebox[0pt]{Epid\'emiologie}}}
    child [minimum size=2.5cm] { node (rh_infla) {{Maladies\\inflam-matoires}}}
    child [minimum size=2.5cm] { node (rh_auto) {{Maladies\\ auto-immunes}}}
    child [minimum size=2.5cm] { node (rh_ost) {\makebox[0pt]{Ost\'eoporose}}}
  }
  child [reeduc] { node[yshift=+1cm, xshift=+0.5cm] {\makebox[0pt]{{R\'e\'education}}}
    child [minimum size=2.5cm] { node (re_rea) {\makebox[0pt] {R\'eadaptation}}}
    child [minimum size=2.1cm] { node (re_han) {{Handicap}}}
    child [minimum size=2.2cm] { node (re_eva) {{Evaluation}}}
    child [minimum size=2.5cm] { node (re_ree) {\makebox[0pt]{R\'e\'education}}}
    child [minimum size=2cm] { node (re_exe) {{Exercices}}}
  };

\end{scope}

\tiny
\calendar [day list downward,
      month text=\% mt\ \%y0,
      month yshift=1.5em,
      name=cal,
      at={(-0.5\textwidth -2cm,0.5\textheight-2cm)},
      dates=2012-11-01 to 2013-01-last]
if (weekend)
[black!25]
if (day of month=1) {
\node at (-2cm,1.5em) [anchor=base west] {\Large\tikzmonthtext};
};


\begin{pgfonlayer}{background}
  \clip[xshift=-6cm, yshift=2cm] (-.5\textwidth,-.5\textheight) rectangle ++(\textwidth,\textheight);
  \colorlet{upperleft}{green!50!black!25}
  \colorlet{upperright}{orange!25}
  \colorlet{lowerleft}{red!25}
  \colorlet{lowerright}{blue!25}
  % The large rectangles:
  \fill [upperleft] (arteos) rectangle ++(-20,20);
  \fill [upperright] (arteos) rectangle ++(20,20);
  \fill [lowerleft] (arteos) rectangle ++(-20,-20);
  \fill [lowerright] (arteos) rectangle ++(20,-20);
  % The shadings:
  \shade [left color=upperleft,right color=upperright]
    ([xshift=-1cm]arteos) rectangle ++(2,20);
  \shade [left color=lowerleft,right color=lowerright]
    ([xshift=-1cm]arteos) rectangle ++(2,-20);
  \shade [top color=upperleft,bottom color=lowerleft]
    ([yshift=-1cm]arteos) rectangle ++(-20,2);
  \shade [top color=upperright,bottom color=lowerright]
    ([yshift=-1cm]arteos) rectangle ++(20,2);
\end{pgfonlayer}
\end{tikzpicture}


\end{document}

欢迎任何帮助,并感谢网站上所有真正有用的帖子。

干杯,在此处输入图片描述

答案1

这是一个手动调整的示例。大部分问题都来自于为mindmapTikZ 图片提供选项而不是范围,并且使用\tiny不当(在 TikZ 环境中,TikZ rulaz!)。

\documentclass{article}
\usepackage{tikz}
\usepackage[paperwidth=22cm,paperheight=29cm,left=0cm,top=0cm,bottom=0cm,right=0cm]{geometry}

\usetikzlibrary{backgrounds,trees,mindmap,calendar,shadows}
\begin{document}

\noindent
\begin{tikzpicture}
\begin{scope}[yshift=2cm,mindmap,
every node/.style={concept, circular drop shadow={shadow scale=1.1, shadow xshift=.8ex, shadow yshift=-.3ex,
fill=black, path fading={circle with fuzzy edge 20 percent}, every shadow},
% execute at begin node=\hskip0pt
},
root concept/.append style={concept color=black, fill=white, line width=1ex, text=black, font=\Huge\scshape, minimum size=5cm},
text=white,
radio/.style={concept color=red,faded/.style={concept color=red!50}, minimum size=4cm},
ortho/.style={concept color=blue,faded/.style={concept color=blue!50}, minimum size=4cm},
rhumato/.style={concept color=orange,faded/.style={concept color=orange!50}, minimum size=4cm},
reeduc/.style={concept color=green!50!black,faded/.style={concept color=green!50!black!50}, minimum size=4cm},
grow cyclic,
level 1/.append style={level distance=6cm,sibling angle=90,font=\Large\scshape},
level 2/.append style={level distance=4.5cm,sibling angle=45,font=\normalsize}]
  \node[font=\bfseries, root concept, xshift=-4.3cm] (arteos) {ART\'eOS} % root
  child [radio,sibling angle=-135] { node[yshift=-2cm, xshift=1cm] {\makebox[0pt]{{Radiologie}}}
    child [minimum size=2.5cm] { node {{Imagerie\\fonctionnelle}}}
    child [minimum size=2.8cm] { node {{Radiographie\\inter-ventionnelle}}}
    child [minimum size=2cm] { node {{EOS}}}
  }
  child [ortho] { node[yshift=-0.5cm, xshift=-1cm] {\makebox[0pt]{{Orthop\'edie}}}
    child [minimum size=2.5cm] { node (o_perf) {\makebox[0pt]{Performance}}}
    child [minimum size=2.2cm] { node (o_mat) {{Tribologie}}}
    child [minimum size=2.8cm] { node (o_art) {\makebox[0pt]{Arthroplasties}}}
    child [minimum size=2cm] { node (o_fra) {{Fractures}}}
  }
  child [rhumato] { node[yshift=+3cm, xshift=-1cm] {\makebox[0pt]{{Rhumatologie}}}
    child [minimum size=2.5cm] { node (rh_epid) {\makebox[0pt]{Epid\'emiologie}}}
    child [minimum size=2.5cm] { node (rh_infla) {{Maladies\\inflam-matoires}}}
    child [minimum size=2.5cm] { node (rh_auto) {{Maladies\\ auto-immunes}}}
    child [minimum size=2.5cm] { node (rh_ost) {\makebox[0pt]{Ost\'eoporose}}}
  }
  child [reeduc] { node[yshift=+1cm, xshift=+0.5cm] {\makebox[0pt]{{R\'e\'education}}}
    child [minimum size=2.5cm] { node (re_rea) {\makebox[0pt] {R\'eadaptation}}}
    child [minimum size=2.1cm] { node (re_han) {{Handicap}}}
    child [minimum size=2.2cm] { node (re_eva) {{Evaluation}}}
    child [minimum size=2.5cm] { node (re_ree) {\makebox[0pt]{R\'e\'education}}}
    child [minimum size=2cm] { node (re_exe) {{Exercices}}}
  };
\end{scope}
\begin{scope}[shift={(-7cm,7.2cm)},scale=0.65,transform shape]
\calendar [day list downward,font=\small,
      month text=\% mt\ \%y0,
      month yshift=1.5em,
      name=cal,
      at={(-0.5\textwidth -2cm,0.5\textheight-2cm)},
      dates=2012-11-01 to 2013-01-last]
if (weekend)
[black!25]
if (day of month=1) {
\node at (-2cm,1.5em) [anchor=base west] {\Large\tikzmonthtext};
};

\end{scope}

\begin{scope}[on background layer]
  \clip[xshift=-6cm, yshift=2cm] (-.5\textwidth,-.5\textheight) rectangle ++(\textwidth,\textheight);
  \colorlet{upperleft}{green!50!black!25}
  \colorlet{upperright}{orange!25}
  \colorlet{lowerleft}{red!25}
  \colorlet{lowerright}{blue!25}
  % The large rectangles:
  \fill [upperleft] (arteos) rectangle ++(-20,20);
  \fill [upperright] (arteos) rectangle ++(20,20);
  \fill [lowerleft] (arteos) rectangle ++(-20,-20);
  \fill [lowerright] (arteos) rectangle ++(20,-20);
  % The shadings:
  \shade [left color=upperleft,right color=upperright]
    ([xshift=-1cm]arteos) rectangle ++(2,20);
  \shade [left color=lowerleft,right color=lowerright]
    ([xshift=-1cm]arteos) rectangle ++(2,-20);
  \shade [top color=upperleft,bottom color=lowerleft]
    ([yshift=-1cm]arteos) rectangle ++(-20,2);
  \shade [top color=upperright,bottom color=lowerright]
    ([yshift=-1cm]arteos) rectangle ++(20,2);
\end{scope}
\end{tikzpicture}


\end{document}

在此处输入图片描述

相关内容