Skip to content

Commit 0455591

Browse files
Mo-Gulhmenke
authored andcommitted
- implemented suggestions given in pgf-tikz#711
1 parent 1122604 commit 0455591

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

doc/generic/pgf/text-en/pgfmanual-en-library-angles.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ \section{Angle Library}
5151
an option like |fill| or |shade| is passed to the pic. The following
5252
example shows the difference:
5353
%
54-
\begin{codeexample}[preamble={\usetikzlibrary{quotes}}]
54+
\begin{codeexample}[]
5555
\tikz \draw [line width=2mm]
5656
(2,0) coordinate (A) -- (0,0) coordinate (B)
5757
-- (1,1) coordinate (C)
@@ -77,7 +77,7 @@ \section{Angle Library}
7777
pic ["$\alpha$", draw, angle eccentricity=1] {angle};
7878
\end{codeexample}
7979
%
80-
\begin{codeexample}[]
80+
\begin{codeexample}[preamble={\usetikzlibrary{quotes}}]
8181
\tikz {
8282
\draw (2,0) coordinate (A) -- (0,0) coordinate (B)
8383
-- (1,1) coordinate (C)

doc/generic/pgf/text-en/pgfmanual-en-xxcolor.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ \section{Extended Color Support}
6767
Expands to the current accumulated mix-in. Each nesting of a |colormixin|
6868
adds a mix-in to this list.
6969
%
70-
% TODOsp: codeexamples: the resulting PDF contains spurious "-6pt-6pt" before the `minipage`
71-
\begin{codeexample}[preamble={\usepackage{xxcolor}}]
70+
\begin{codeexample}[preamble={\usepackage{xxcolor}
71+
\usepackage{calc}}]
7272
\begin{minipage}{\linewidth-6pt}\raggedright
7373
\begin{colormixin}{75!white}
7474
\colorcurrentmixin\ should be ``!75!white''\par

tex/generic/pgf/graphdrawing/lua/pgf/gd/control/ComponentAlign.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,12 @@ local declare = require "pgf.gd.interface.InterfaceToAlgorithms".declare
4747
--
4848
-- @end
4949

50+
--[[
5051
\begin{codeexample}[setup code,hidden]
5152
\usetikzlibrary{graphs,graphdrawing}
5253
\usegdlibrary{trees}
5354
\end{codeexample}
55+
--]]
5456

5557
---
5658

tex/generic/pgf/graphdrawing/lua/pgf/gd/control/ComponentDistance.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ local declare = require "pgf.gd.interface.InterfaceToAlgorithms".declare
2323
--
2424
-- @end
2525

26+
--[[
2627
\begin{codeexample}[setup code,hidden]
2728
\usetikzlibrary{graphs,graphdrawing}
2829
\usegdlibrary{trees}
2930
\end{codeexample}
31+
--]]
3032

3133
---
3234

0 commit comments

Comments
 (0)