The Malaysian flag is called the Jalur Gemilang (“Stripes of Glory”). Ramón has been drawing a lot of flags/signs with TikZ, and here’s his great effort with Jalur Gemilang!
You can find many other flags drawn by Ramón here.
The Malaysian flag is called the Jalur Gemilang (“Stripes of Glory”). Ramón has been drawing a lot of flags/signs with TikZ, and here’s his great effort with Jalur Gemilang!
You can find many other flags drawn by Ramón here.
I’ve been asked a few times for the code of my own CV.
Truth is, it was first done many, many years ago, based on the CurVe class. As I picked up tips and tricks, I kept adding and modifying the formatting styles—but I never got round to cleaning it up properly. I wouldn’t wish it on anyone to have to read or use the messy code as it was *shudder*.
I got asked about it again recently, and I’m finally got round to simplify the thing and put it online on Overleaf (so that other users won’t get back to me with “but I don’t have this package” issues either! 😉)
It’s really still a bit rough in places, though…
To download it, click on the great big “Open as Template” button. If you don’t see a file list, click on “PROJECT” at the top first. Then go for the “Download as .zip” button at the bottom of the file list.
“I have an error” “The PDF wasn’t created” ” “Cannot compile” “It doesn’t work” aren’t specific. Show what you’ve written in the code (see ‘Make an MWE’), what are the error messages that you get, attach the .log file (as an attachment, not paste the entire contents into the email/forum!!). State clearly your LaTeX distribution version (MikTeX 2.9? TeX Live 2013?) or package versions especially if you’re using one of the university thesis templates here.
Give clear description about what you need. Do a “mockup” with Word or Excel if you have to, and attach the screen capture of that. Show clearly what LaTeX code you have tried yourself and what’s wrong with it that you still need to change.
That is, a minimal working example. Make the complete working code available, via Dropbox, on Google Drive, one of the online LaTeX platforms e.g. Overleaf, ShareLaTeX, Authorea, somewhere.
Some IDEs will force-compile the .tex file and still get a .pdf file out of it, happily displayed. But there are error messages in the console or .log file. Some candidates ignore the error messages, as long as they have a .pdf. And then they need to change something in the docs, and asks for help. Not gonna happen; and it’s a bit of a tall order to expect other people to locate the n unbalanced parentheses in the entire project or 1.5MB .bib file.
Please. Tolong. Help us to help you. Everyone wants to submit and graduate quickly, go about their lives helping people without getting too frazzled… and try not get too insane in the process.
end rant;
(Sigh, I’ve been getting too many “it doesn’t work and I want you to fix this immediately and I don’t care if you are doing this for free, and I cannot use the latest version and I cannot show you what I have done exactly” from candidates recently.)
It all started with this:
@overleaf guys watch this amazing CV template https://t.co/BInxwtuECT some ideas to make into Latex?
— Leonardo (@Leonduck) August 13, 2016
Leonardo was talking about a résumé of Marissa Mayer that Business Insider put together using enhancv.com.
I knew I had to do something about it. And so AltaCV was born.
This is how the re-created résumé looks like (view/open on Overleaf):
Though if you’re creating your own CV/résumé, you’d probably prefer using the basic template (view/open on Overleaf):
You can create your own CV using AltaCV online with Overleaf (use the links above); or you can download a zip from here, or git-clone it from Github.
AltaCV uses fontawesome
and academicons
; they’re included in both TeX Live 2016 and MikTeX 2.9.
The samples here use the Lato font.
LuaLaTeX compilation is strongly recommended. If you want to use XeLaTeX instead, that’s fine, but you may need to make sure academicons.ttf
is installed on your operating system, not just available in your TEXMF
tree with the academicons
LaTeX package.
New thesis template! I’ve created a LaTeX document class and template, umsthesis
(click to download), for Universiti Malaysia Sabah (UPNM), commissioned by Mohd Kamalrulzaman Md Akhir.
It’s also available on Bitbucket and Github, as well as on Overleaf.
Overleaf is a cloud-based collaborative authoring platform using LaTeX, who’ve teamed up with a number of journal publishers and universities. There are now three Overleaf Advisors in Malaysia (as of time of writing on 4 Aug 2016); you can apply if you’re interested, anywhere in the world!
Disclaimer: I’m a Community TeXpert at Overleaf; i.e. I handle LaTeX-related support requests; create templates for the Overleaf Gallery; write help articles, etc. So in case you’re wondering why I’m not an Advisor myself, that’s why. 🙂
Ahhhh tables — one of the infuriating things with tables in LaTeX, is that sometimes they’re so wide that they extend into the right margin, or even off the page. Here are a few things I usually do to deal with them.
tabularx
to auto-wrap long column contentsSometimes you have a column where the lines are long, but by default, lines in a table row don’t wrap. You can either use the makecell
trick to manually break the lines; or you can make text in that particular column line-wrap automatically, by using a p{3cm}
column specifier (but then you need to experiment a few times for a right width), or by using the tabularx
package.
\usepackage{tabularx} ... % Contents in the second and third columns will be auto-wrapped, % so that the entire table will fit the text width nicely \begin{tabularx}{\textwidth}{l X X l} No. & These are long statements... & These are very long too... & 0\\ ... \end{tabularx} |
makecell
to quickly break a cell into multiple linesSometimes you have a column with narrow values (e.g. just ‘34’, ‘67’…) but the column heading is long (e.g. ‘No. of patients’, which makes the column use up too much space. In this case you can use the makecell
package, and then manually line-break the column heading:
\makecell{No. of\\patients} & Region & .... \\ % Note that All of the above are still on the same table row. |
So in some situations you can get away with making the inter-column separation or padding smaller:
\begin{table}[hbt!] \setlength{\tabcolsep}{4pt} %% default is 6pt \begin{tabular}.... |
{\small % (or \footnotesize if still readable) \begin{tabular} ... \end{tabular} } |
Do check that you have the pair of braces around the \small
and the tabular. Take care that the table contents can still be read comfortably, and that your university or publisher allows you to change the font size in tables!
\resizebox{\textwidth}{!}{% \begin{tabular} ... \end{tabular} } |
Rather than figuring out whether a \small
or \footnote
will be enough ourselves, LaTeX will treat the entire table as a box, and try to resize it so that it fits the text width exactly. Again: take care that your reader can still read the shrunk table, and that it’s allowed by your university or publisher. From a LaTeX best-practice point of view, this approach is really not recommended.
There are a few different ways of doing this — try for example the sidewaystable
environment from the rotating
package:
\usepackage{rotating} ... \begin{sidewaystable} \caption{...} \begin{tabular} ... \end{tabular} \end{sidewaystable} |
And always remember: rather than agonising over how to fit a table on the page, it’s often more useful to consider how to present the data so that the reader can access and understand it easily!
Sigh, so I finally realised and managed to find the 2015 version of the UM thesis guidelines!!!
So I’ve updated the .cls
and .tex
(changes to existing v1.1.2), which includes the following updates:
\faculty
field\makecoverandtitlepage
now takes an option to output thethesis.tex
to match the updated guide.You can download umalaythesis
v1.2 from here, or from Bitbucket and Github, or open it as a an online project on Overleaf.
By default, LaTeX does not indent the first paragraph after a section command, but will indent all subsequent paragraphs.
You can, of course, add \indent
to the start of each first paragraph. But that gets rather tedious after a while, and you might miss it if e.g. some time later, you add another paragraph immediately after the sectioning command.
Fortunately, the indentfirst
package will do this automatically for you — rejoice!
If you need to change the indent amount (for all paragraphs), you can set the \parindent
length:
\setlength{\parindent}{2em} |
The inevitable next question: “What if I need to have some space between the paragraphs?”
Rule: Please don’t use
\\\\
to achieve “space between paragraphs”. Please. Don’t.
\\
is for line breaks. Paragraph breaks in LaTeX are done by either leaving a blank line in the source code, or by using \par
. Line breaks and paragraph breaks are two very, very distinct concepts in typesetting, and are handled differently in LaTeX.
So the easiest way to achieve this is simply by writing \usepackage{parskip}
. This avoids modifying the \parskip
length directly, because \parskip
has consequences for many other constructs, e.g. itemize
and enumerate
lists.
If you happen to be using one of the Koma-Script document classes, you may get a warning message when you try to load parskip
. In that case, just pass parskip
as a document class option, e.g. \documentclass[parskip]{scrbook}
.
If memoir
is the document class in use instead, you can write \nonzeroparskip
or \abnormalparskip{\baselineskip}
.
Just take note: it’s usually considered redundant to have both non-zero paragraph spacing and paragraph indents, so all paragraph indents are suppressed when parskip
is loaded. Having said that, if you do need the paragraphs to be indented as well (university thesis requirements), use the \setlength{\parindent}{2em}
to force this.
Following the most recent feedback from the Main Campus, USMThesis has been updated to v1.6.3 today. The changes this time are in usmthesis.tex
, where the List of Publications is moved after the appendices (so now Main Campus and Engineering Campus are on the same page now!) Pun unintended.
Looking at the ChangeLog, usmthesis
v0.1 was Nov 2005 — so it’s been 10 years!! In fact if anyone wants to host a meetup/talk or something, ping me.