diff --git a/assets/images/logo/dbkgd-curves.tex b/assets/images/logo/dbkgd-curves.tex new file mode 100644 index 0000000000000000000000000000000000000000..b600d37087de69a2625eb84f4c84993a42b71011 --- /dev/null +++ b/assets/images/logo/dbkgd-curves.tex @@ -0,0 +1,4 @@ +\tikzset{ + shadowed/.style={preaction={transform canvas={shift={(-.9pt,-.9pt)}},draw=black!25,ultra thick,shade path={left color=black!25, right color=black!0}, line cap=round}}, + } + \draw [draw=transparent!1, line cap=round, ultra thick, dynareirf, shade path={left color=dynareirf!200, right color=dynareirf!0}, shadowed] plot [smooth] coordinates {(-.47,-.6) (0.19,0.55) (.7,-.4) (.94,-.21) (1.17,-.38) (1.38,-.29) (1.58,-.36) (1.78,-.31) (1.98,-.34) (2.18,-.32) (2.36,-.33)}; \ No newline at end of file diff --git a/assets/images/logo/dbkgd-header.tex b/assets/images/logo/dbkgd-header.tex new file mode 100644 index 0000000000000000000000000000000000000000..0a2c13274f307111613cd110f778aeb33399bc60 --- /dev/null +++ b/assets/images/logo/dbkgd-header.tex @@ -0,0 +1,153 @@ +\usepackage{tikz} +\usetikzlibrary{decorations} +\usetikzlibrary{decorations.pathreplacing,shapes.misc} +\usetikzlibrary{fadings,decorations.pathmorphing} +\usetikzlibrary{shadows} + + +\usepackage[default]{lato} +\usepackage[T1]{fontenc} + +\makeatletter + +% From https://tex.stackexchange.com/questions/137357/how-to-draw-an-arrow-with-two-colors +\newif\iftikz@shading@path + +\tikzset{ + % There are three circumstances in which the fading sep is needed: + % 1. Arrows which do not update the bounding box (which is most of them). + % 2. Line caps/joins and mitres that extend outside the natural bounding + % box of the path (these are not calculated by PGF). + % 3. Other reasons that haven't been anticipated. + shading xsep/.store in=\tikz@pathshadingxsep, + shading ysep/.store in=\tikz@pathshadingysep, + shading sep/.style={shading xsep=#1, shading ysep=#1}, + shading sep=0.0cm, +} + +\def\tikz@shadepath#1{% + % \tikz@addmode installs the `modes' (e.g., fill, draw, shade) + % to be applied to the path. It isn't usualy for doing more + % changes to the path's construction. + \iftikz@shading@path% + \else% + \tikz@shading@pathtrue% + % Get the current path. + \pgfgetpath\tikz@currentshadingpath% + % Get the shading sep without setting any other keys. + \begingroup% + \pgfsys@beginscope% <- may not be necessary + \tikzset{#1}% + \xdef\tikz@tmp{\noexpand\def\noexpand\tikz@pathshadingxsep{\tikz@pathshadingxsep}% + \noexpand\def\noexpand\tikz@pathshadingysep{\tikz@pathshadingysep}}% + \pgfsys@endscope% + \endgroup + \tikz@tmp% + % Get the boudning box of the current path size including the shading sep + \pgfextract@process\pgf@shadingpath@southwest{\pgfpointadd{\pgfqpoint{\pgf@pathminx}{\pgf@pathminy}}% + {\pgfpoint{-\tikz@pathshadingxsep}{-\tikz@pathshadingysep}}}%% + \pgfextract@process\pgf@shadingpath@northeast{\pgfpointadd{\pgfqpoint{\pgf@pathmaxx}{\pgf@pathmaxy}}% + {\pgfpoint{\tikz@pathshadingxsep}{\tikz@pathshadingysep}}}% + % Clear the path + \pgfsetpath\pgfutil@empty% + % Save the current drawing mode and options. + \let\tikz@options@saved=\tikz@options% + \let\tikz@mode@saved=\tikz@mode% + \let\tikz@options=\pgfutil@empty% + \let\tikz@mode=\pgfutil@empty% + % \tikz@options are processed later on. + \tikz@addoption{% + \pgfinterruptpath% + \pgfinterruptpicture% + \begin{tikzfadingfrompicture}[name=.] + \pgfscope% + \tikzset{shade path/.style=}% Make absolutely sure shade path is not inherited. + \path \pgfextra{% + % Set the softpath. Any transformations,draw=none} in #1 will have no effect. + % This will *not* update the bounding box... + \pgfsetpath\tikz@currentshadingpath% + % ...so it is done manually. + \pgf@shadingpath@southwest + \expandafter\pgf@protocolsizes{\the\pgf@x}{\the\pgf@y}% + \pgf@shadingpath@northeast% + \expandafter\pgf@protocolsizes{\the\pgf@x}{\the\pgf@y}% + % Install the drawing modes and options. + \let\tikz@options=\tikz@options@saved% + \let\tikz@mode=\tikz@mode@saved% + }; + % Now get the bounding box of the picture. + \xdef\pgf@shadingboundingbox@southwest{\noexpand\pgfqpoint{\the\pgf@picminx}{\the\pgf@picminy}}% + \xdef\pgf@shadingboundingbox@northeast{\noexpand\pgfqpoint{\the\pgf@picmaxx}{\the\pgf@picmaxy}}% + \endpgfscope + \end{tikzfadingfrompicture}% + \endpgfinterruptpicture% + \endpgfinterruptpath% + % Install a rectangle that covers the shaded/faded path picture. + \pgftransformreset% + \pgfpathrectanglecorners{\pgf@shadingboundingbox@southwest}{\pgf@shadingboundingbox@northeast}% + % + % Reset all modes. + \let\tikz@path@picture=\pgfutil@empty% + \tikz@mode@fillfalse% + \tikz@mode@drawfalse% + %\tikz@mode@tipsfalse% <- To have successful compilation with pgf-tikz v3.0.1a + \tikz@mode@doublefalse% + \tikz@mode@clipfalse% + \tikz@mode@boundaryfalse% + \tikz@mode@fade@pathfalse% + \tikz@mode@fade@scopefalse% + % Now install shading options. + \tikzset{#1}% + \tikz@mode% + % Make the fading happen. + \def\tikz@path@fading{.}% + \tikz@mode@fade@pathtrue% + \tikz@fade@adjustfalse% + % Shift the fading to the mid point of the rectangle + \pgfpointscale{0.5}{\pgfpointadd{\pgf@shadingboundingbox@southwest}{\pgf@shadingboundingbox@northeast}}% + \edef\tikz@fade@transform{shift={(\the\pgf@x,\the\pgf@y)}}% + \pgfsetfading{\tikz@path@fading}{\tikz@do@fade@transform}% + \tikz@mode@fade@pathfalse% + }% + \fi% +} +\tikzset{ + shade path/.code={% + \tikz@addmode{\tikz@shadepath{#1}}% + } +} + +% From https://tex.stackexchange.com/questions/14283/stroke-with-variable-thickness/14295 +\pgfkeys{/pgf/decoration/.cd, + start color/.store in =\startcolor, + end color/.store in =\endcolor +} + +\pgfdeclaredecoration{width and color change}{initial}{ + \state{initial}[width=0pt, next state=line, persistent precomputation={% + \pgfmathdivide{50}{\pgfdecoratedpathlength}% + \let\increment=\pgfmathresult% + \def\x{0}% + }]{} + \state{line}[width=.5pt, persistent postcomputation={% + \pgfmathadd@{\x}{\increment}% + \let\x=\pgfmathresult% + }]{% + \pgfsetlinewidth{\x/40*0.075pt+\pgflinewidth}% + \pgfsetarrows{-}% + \pgfpathmoveto{\pgfpointorigin}% + \pgfpathlineto{\pgfqpoint{.75pt}{0pt}}% + \pgfsetstrokecolor{\endcolor!\x!\startcolor}% + \pgfusepath{stroke}% + } + \state{final}{% + \pgfsetlinewidth{\pgflinewidth}% + \pgfpathmoveto{\pgfpointorigin}% + \color{\endcolor!\x!\startcolor}% + \pgfusepath{stroke}% + } +} + +\makeatother % <- To close the \makeatletter call + +\definecolor{dynareirf}{HTML}{FF7F66} diff --git a/assets/images/logo/dbkgd.tex b/assets/images/logo/dbkgd.tex index 12b1cf9aa45384d1c68b562a25dc5ffeab092efb..a47b5846cabb0ccbe68f14e44c30a5b85de59b4b 100644 --- a/assets/images/logo/dbkgd.tex +++ b/assets/images/logo/dbkgd.tex @@ -1,163 +1,10 @@ \documentclass[border=0mm,convert={density=900,outext=.png}]{standalone} -\usepackage{tikz} -\usetikzlibrary{decorations} -\usetikzlibrary{decorations.pathreplacing,shapes.misc} -\usetikzlibrary{fadings,decorations.pathmorphing} -\usetikzlibrary{shadows} -\usepackage[default]{lato} -\usepackage[T1]{fontenc} - -\makeatletter - -% From https://tex.stackexchange.com/questions/137357/how-to-draw-an-arrow-with-two-colors -\newif\iftikz@shading@path - -\tikzset{ - % There are three circumstances in which the fading sep is needed: - % 1. Arrows which do not update the bounding box (which is most of them). - % 2. Line caps/joins and mitres that extend outside the natural bounding - % box of the path (these are not calculated by PGF). - % 3. Other reasons that haven't been anticipated. - shading xsep/.store in=\tikz@pathshadingxsep, - shading ysep/.store in=\tikz@pathshadingysep, - shading sep/.style={shading xsep=#1, shading ysep=#1}, - shading sep=0.0cm, -} - -\def\tikz@shadepath#1{% - % \tikz@addmode installs the `modes' (e.g., fill, draw, shade) - % to be applied to the path. It isn't usualy for doing more - % changes to the path's construction. - \iftikz@shading@path% - \else% - \tikz@shading@pathtrue% - % Get the current path. - \pgfgetpath\tikz@currentshadingpath% - % Get the shading sep without setting any other keys. - \begingroup% - \pgfsys@beginscope% <- may not be necessary - \tikzset{#1}% - \xdef\tikz@tmp{\noexpand\def\noexpand\tikz@pathshadingxsep{\tikz@pathshadingxsep}% - \noexpand\def\noexpand\tikz@pathshadingysep{\tikz@pathshadingysep}}% - \pgfsys@endscope% - \endgroup - \tikz@tmp% - % Get the boudning box of the current path size including the shading sep - \pgfextract@process\pgf@shadingpath@southwest{\pgfpointadd{\pgfqpoint{\pgf@pathminx}{\pgf@pathminy}}% - {\pgfpoint{-\tikz@pathshadingxsep}{-\tikz@pathshadingysep}}}%% - \pgfextract@process\pgf@shadingpath@northeast{\pgfpointadd{\pgfqpoint{\pgf@pathmaxx}{\pgf@pathmaxy}}% - {\pgfpoint{\tikz@pathshadingxsep}{\tikz@pathshadingysep}}}% - % Clear the path - \pgfsetpath\pgfutil@empty% - % Save the current drawing mode and options. - \let\tikz@options@saved=\tikz@options% - \let\tikz@mode@saved=\tikz@mode% - \let\tikz@options=\pgfutil@empty% - \let\tikz@mode=\pgfutil@empty% - % \tikz@options are processed later on. - \tikz@addoption{% - \pgfinterruptpath% - \pgfinterruptpicture% - \begin{tikzfadingfrompicture}[name=.] - \pgfscope% - \tikzset{shade path/.style=}% Make absolutely sure shade path is not inherited. - \path \pgfextra{% - % Set the softpath. Any transformations,draw=none} in #1 will have no effect. - % This will *not* update the bounding box... - \pgfsetpath\tikz@currentshadingpath% - % ...so it is done manually. - \pgf@shadingpath@southwest - \expandafter\pgf@protocolsizes{\the\pgf@x}{\the\pgf@y}% - \pgf@shadingpath@northeast% - \expandafter\pgf@protocolsizes{\the\pgf@x}{\the\pgf@y}% - % Install the drawing modes and options. - \let\tikz@options=\tikz@options@saved% - \let\tikz@mode=\tikz@mode@saved% - }; - % Now get the bounding box of the picture. - \xdef\pgf@shadingboundingbox@southwest{\noexpand\pgfqpoint{\the\pgf@picminx}{\the\pgf@picminy}}% - \xdef\pgf@shadingboundingbox@northeast{\noexpand\pgfqpoint{\the\pgf@picmaxx}{\the\pgf@picmaxy}}% - \endpgfscope - \end{tikzfadingfrompicture}% - \endpgfinterruptpicture% - \endpgfinterruptpath% - % Install a rectangle that covers the shaded/faded path picture. - \pgftransformreset% - \pgfpathrectanglecorners{\pgf@shadingboundingbox@southwest}{\pgf@shadingboundingbox@northeast}% - % - % Reset all modes. - \let\tikz@path@picture=\pgfutil@empty% - \tikz@mode@fillfalse% - \tikz@mode@drawfalse% - %\tikz@mode@tipsfalse% <- To have successful compilation with pgf-tikz v3.0.1a - \tikz@mode@doublefalse% - \tikz@mode@clipfalse% - \tikz@mode@boundaryfalse% - \tikz@mode@fade@pathfalse% - \tikz@mode@fade@scopefalse% - % Now install shading options. - \tikzset{#1}% - \tikz@mode% - % Make the fading happen. - \def\tikz@path@fading{.}% - \tikz@mode@fade@pathtrue% - \tikz@fade@adjustfalse% - % Shift the fading to the mid point of the rectangle - \pgfpointscale{0.5}{\pgfpointadd{\pgf@shadingboundingbox@southwest}{\pgf@shadingboundingbox@northeast}}% - \edef\tikz@fade@transform{shift={(\the\pgf@x,\the\pgf@y)}}% - \pgfsetfading{\tikz@path@fading}{\tikz@do@fade@transform}% - \tikz@mode@fade@pathfalse% - }% - \fi% -} -\tikzset{ - shade path/.code={% - \tikz@addmode{\tikz@shadepath{#1}}% - } -} - -% From https://tex.stackexchange.com/questions/14283/stroke-with-variable-thickness/14295 -\pgfkeys{/pgf/decoration/.cd, - start color/.store in =\startcolor, - end color/.store in =\endcolor -} - -\pgfdeclaredecoration{width and color change}{initial}{ - \state{initial}[width=0pt, next state=line, persistent precomputation={% - \pgfmathdivide{50}{\pgfdecoratedpathlength}% - \let\increment=\pgfmathresult% - \def\x{0}% - }]{} - \state{line}[width=.5pt, persistent postcomputation={% - \pgfmathadd@{\x}{\increment}% - \let\x=\pgfmathresult% - }]{% - \pgfsetlinewidth{\x/40*0.075pt+\pgflinewidth}% - \pgfsetarrows{-}% - \pgfpathmoveto{\pgfpointorigin}% - \pgfpathlineto{\pgfqpoint{.75pt}{0pt}}% - \pgfsetstrokecolor{\endcolor!\x!\startcolor}% - \pgfusepath{stroke}% - } - \state{final}{% - \pgfsetlinewidth{\pgflinewidth}% - \pgfpathmoveto{\pgfpointorigin}% - \color{\endcolor!\x!\startcolor}% - \pgfusepath{stroke}% - } -} - -\makeatother % <- To close the \makeatletter call - -\definecolor{dynareirf}{HTML}{FF7F66} +\input{dbkgd-header.tex} \begin{document} \begin{tikzpicture} - \tikzset{ - shadowed/.style={preaction={transform canvas={shift={(-.9pt,-.9pt)}},draw=black!25,ultra thick,shade path={left color=black!25, right color=black!0}, line cap=round}}, - } - % irf - \draw [draw=transparent!1, line cap=round, ultra thick, dynareirf, shade path={left color=dynareirf!200, right color=dynareirf!0}, shadowed] plot [smooth] coordinates {(-.47,-.6) (0.19,0.55) (.7,-.4) (.94,-.21) (1.17,-.38) (1.38,-.29) (1.58,-.36) (1.78,-.31) (1.98,-.34) (2.18,-.32) (2.36,-.33)}; + \input{dbkgd-curves.tex} + \node[right,scale=.45] at (.14, -.55) {Macroeconomic modeling for all}; \end{tikzpicture} -\end{document} +\end{document} \ No newline at end of file diff --git a/assets/images/logo/dbkgd_ws.tex b/assets/images/logo/dbkgd_ws.tex new file mode 100644 index 0000000000000000000000000000000000000000..ebee745b8cbf2be527dc70e47326731876bdee1f --- /dev/null +++ b/assets/images/logo/dbkgd_ws.tex @@ -0,0 +1,9 @@ +\documentclass[border=0mm,convert={density=900,outext=.png}]{standalone} + +\input{dbkgd-header.tex} + +\begin{document} +\begin{tikzpicture} + \input{dbkgd-curves.tex} +\end{tikzpicture} +\end{document} diff --git a/index.md b/index.md index c7b0dfcc901bec3fe0678e386023a9ba8b365c01..02de0471fabfd577c3e4cf1e153da855f0b437ab 100644 --- a/index.md +++ b/index.md @@ -9,7 +9,6 @@ feature_row: <br /> <div class="dynare_home_page_image_container"> -<div class="dynare_home_page_slogan">The macroeconomic modeling solution</div> </div> <br /> <a href="download" class="home_page_button">Download v{{ site.dynare_stable_version }}</a> <a href="http://www.dynare.org/manual/" class="home_page_button">Documentation</a>