5

I know a little bit about TIKZ, but I would like help to do or how to start to build the logo of the institution in which I study.

If it is all the logo it would be great, if not, that it is only the logo in green and red above.

enter image description here

9
  • While possible, including something like this in your document using solely tikz would probably be more trouble than it's worth. I'd recommend just using something like inkscape to redesign the logo and then importing it using the graphicx package. Last case scenario just simply use the image file that you used in this question.
    – reayn
    Commented Apr 4, 2021 at 18:16
  • 10
    Doesn't your institution provide this logo as a PDF your an include? If not, might be an idea to recommend them to provide one.
    – daleif
    Commented Apr 4, 2021 at 18:24
  • 4
    I recommend following @daleif advice. I have an experience of spending hours on the logo and they told me that it was not ok for a millimetric difference in the font... better not to play with official logos ;-)
    – Rmano
    Commented Apr 4, 2021 at 19:02
  • @Rmano our is actually also available as a font, so via font forge you can convert it into svg and grap that data for tikz. That is how I got a tikz version of our very intrinsic university seal
    – daleif
    Commented Apr 4, 2021 at 19:05
  • 1
    @CarLaTeX Some institutions have rules about using their logos, which are not technically trademarks, but they may be protected by their owner. One has to check with the institution to see whether the usage is allowed. For instance, I'm allowed to use my university/department logo for official purposes, but students are not allowed to use it on their thesis frontispiece.
    – egreg
    Commented Apr 10, 2021 at 12:18

1 Answer 1

11

Just because we shouldn't, doesn't mean we can't ;)

\newlength\w\setlength\w{8.5mm}
\documentclass[border=.5\w]{standalone}
\usepackage{tikz}
\usepackage{raleway}
\renewcommand\familydefault{\sfdefault}
\definecolor{green}{HTML}{359730}
\definecolor{red}{HTML}{c90c10}
\definecolor{black}{HTML}{1d1d1d}
\tikzset{grid/.style = {minimum width=\w, minimum height=\w, rounded corners={#1}}}
\newcommand{\square}[2]{\node[fill=green,grid={.1\w}] at (#1,#2){};}
\renewcommand{\circle}[2]{\node[fill=red,grid={.5\w}] at (#1,#2){};}
\def\bigstyle{\fontsize{12mm}{11mm}\bfseries\selectfont\centering}
\def\medstyle{\fontsize{8mm}{10mm}\selectfont\centering}
\begin{document}
\color{black}
\begin{tikzpicture}
  \circle{-1}{4}\square{0}{4}\square{+1}{4}
  \square{-1}{3}\square{0}{3}
  \square{-1}{2}\square{0}{2}\square{+1}{2}
  \square{-1}{1}\square{0}{1}
  \node[fill=green,minimum width=9\w,minimum height=0.5mm,inner sep=0pt] at (0,-3.4){};
  \node at (0,-1) {\parbox{7cm}{\bigstyle{INSTITUTO\\FEDERAL}}};
  \node at (0,-2.7) {\parbox{7cm}{\medstyle{Goiano}}};
  \node at (0,-4.5) {\parbox{7cm}{\medstyle{Campus\\Rio Verde}}};
\end{tikzpicture}
\end{document}

I can't match the font exactly. The closest I found was raleway. The spacing also needs to be more precise.

enter image description here

5
  • Your definitions of \circle and \square look very similar; could you explain why they do different things? Commented Apr 5, 2021 at 6:09
  • 2
    Sure. They have different \fill colours, of course. Then I used a custom tikz style called grid, which accepts one argument, and applies it to the rounded corners radius. Since I set the minimum height and minimum width both to \w, then a radius of 0.5\w will make a circle, while 0.1\w will round just the corners a bit. It's a bit of a hack. Commented Apr 5, 2021 at 11:33
  • I see, so circles are just squares with very rounded corners. Thanks! Commented Apr 5, 2021 at 16:27
  • We should not because it is against trademark laws.
    – CarLaTeX
    Commented Apr 8, 2021 at 20:43
  • @CarLaTeX I seriously doubt it is against the law to just (attempt to) recreate any logo/trademark for your own personal amusement (or skill development, or to see if it is possible with a certain toolbox). By extension, helping someone in these regards is also permissible. Surely if the OP is maleficent, they could simply import the original logo as a picture and use that instead, not bothering with tikz. Commented May 8, 2021 at 15:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .