Skip to content

Commit

Permalink
- implemented suggestions given in pgf-tikz#711
Browse files Browse the repository at this point in the history
  • Loading branch information
Mo-Gul authored and hmenke committed Aug 27, 2019
1 parent 1122604 commit 0455591
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/generic/pgf/text-en/pgfmanual-en-library-angles.tex
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ \section{Angle Library}
an option like |fill| or |shade| is passed to the pic. The following
example shows the difference:
%
\begin{codeexample}[preamble={\usetikzlibrary{quotes}}]
\begin{codeexample}[]
\tikz \draw [line width=2mm]
(2,0) coordinate (A) -- (0,0) coordinate (B)
-- (1,1) coordinate (C)
Expand All @@ -77,7 +77,7 @@ \section{Angle Library}
pic ["$\alpha$", draw, angle eccentricity=1] {angle};
\end{codeexample}
%
\begin{codeexample}[]
\begin{codeexample}[preamble={\usetikzlibrary{quotes}}]
\tikz {
\draw (2,0) coordinate (A) -- (0,0) coordinate (B)
-- (1,1) coordinate (C)
Expand Down
4 changes: 2 additions & 2 deletions doc/generic/pgf/text-en/pgfmanual-en-xxcolor.tex
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ \section{Extended Color Support}
Expands to the current accumulated mix-in. Each nesting of a |colormixin|
adds a mix-in to this list.
%
% TODOsp: codeexamples: the resulting PDF contains spurious "-6pt-6pt" before the `minipage`
\begin{codeexample}[preamble={\usepackage{xxcolor}}]
\begin{codeexample}[preamble={\usepackage{xxcolor}
\usepackage{calc}}]
\begin{minipage}{\linewidth-6pt}\raggedright
\begin{colormixin}{75!white}
\colorcurrentmixin\ should be ``!75!white''\par
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ local declare = require "pgf.gd.interface.InterfaceToAlgorithms".declare
--
-- @end

--[[
\begin{codeexample}[setup code,hidden]
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary{trees}
\end{codeexample}
--]]

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ local declare = require "pgf.gd.interface.InterfaceToAlgorithms".declare
--
-- @end

--[[
\begin{codeexample}[setup code,hidden]
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary{trees}
\end{codeexample}
--]]

---

Expand Down

0 comments on commit 0455591

Please sign in to comment.