Previously on Pimp My Code: logbook, a python logging library, got logging of its own, as well as new looks.
Today Exabit visits University of Cambridge, where Matej and his friends are struggling to get any PDFs out of their old LaTeX document class.
Exabit: Yo. Everyone enjoys reading, and I’m reading with these smooth and grotesque DejaVu sans-serif fonts, because I’m Exabit. Unfortunately for my man Matej, this Computer Modern’s Roman font is no good for eyes. But not to worry: Matej has no idea, but we’re about to pimp his code.
Exabit knocks the door, the door opens.
Matej: No way! You gotta be joking! No waay! Exabit!
Exabit: Yeah, yeah, calm down. I’ve came here today, and I’m ready to pimp your code.
Matej: I can’t believe it, is it really you?
Exabit: It’s me, alright? So, what about your code? Do you have a name for it?
Matej: It’s just called “thesis”, but informally we call it “embarrassment”.
Exabit: Well, show me your “embarrassment”.
Matej: Here it is. It’s a regular black-on-white model, though rather old one. The fonts got serifs with time, the typos are abundant. Obviously it has seen better days.
Exabit: Oh wow. And what’s up with that Makefile?
Matej: Well, it got circular dependencies, nobody knows how it works at all.
Exabit: Okay, I’ve seen enough. I’m taking this off to our garage where we will end its suffering.
Exabit makes a few gangsta gestures, takes off from the third attempt. When he arrives to the garage, Victor and El Hackerozo appear to protest.
Exabit: Okay, check this out. This is a 2011 LaTeX document class. What can we do with this?
Victor: A “screen” mode is a must. Since it’s a document class, we could simply add it as an option; then it would set fonts and colors for on-screen reading.
Exabit: Sounds good, what else?
El Hackerozo: There’s so much free space. I think we should hide empty pages in that “screen” mode, and add some flames on the title page. You know how pale some of those papers look like?
Exabit: Yeah, yeah, they are like “we are so awesome that we don’t have to look nice”, but they actually have to, you know what I’m saying?
El Hackerozo: I do. So, we can make a flame contour, which would simply stay that way in the print mode, but will be filled with screen mode.
Victor: Somebody should also fix those typos.
Exabit: Oh, guys, I forgot to show you: this Makefile has circular dependencies.
Victor grabs his head in horror.
Victor: I’m not sure if we’ll have enough time to get rid of that, but I’ll take a look.
Exabit: Well, sounds good, let’s do this!
The team works on it for hours, and it’s finally the time to present the work to the client. Matej and his friends are coming in, the team presents the work:
Yo dawg.
I heard you like LaTeX. So we’ve put more LaTeX into your LaTeX.
But first things first. Remember that old Makefile of yours, that was failing to make a PDF after
make clean
? Guess what? We fixed it! That’s right, now it’s actually doing what it’s supposed to do.
Of course we’ve fixed a few typos here and there: even the samples of your new class file should be impeccable.
Now, let me show you something. See this new TikZ flame contour? It’s fancy even this way, but let’s turn on your brand new
screen
documentclass option. Not just it brings the flame to life, it sets the default font family to sans serif, skips the empty pages, and even updates the background color of every page! It was not healthy to read from a screen with the contrast as high as there was before, and just look at those smooth letters!
Now that it’s easier on the eyes, you’ll always have a steady flow of new dissertations, since the students are gonna just love it. No lone nights with nothing to read anymore!
We’ve also found a hidden submission notice claiming that the thesis is badass, and restored it – no need to be humble with this beauty!
Yo, look here. Yeah, that’s a new shield – not exactly of a college, but indicating that you’ve been officially pimped!
It’s been our pleasure pimping your thesis template. See you next time!
Matej: Whoa, sick visuals! Awesome typo fixes! And look at this Makefile, ahh. May I try it?
Exabit: Of course, it’s all yours!
Matej: Awesome, it works!
Victor: Sure it does. Hey, let’s turn the screen mode on.
Matej and friends: Wow, unbelievable! Thank you guys!
Exabit: No problem, that’s what we do. It was Pimp My Code on The Asocial, see you next time!