# Tag Info

106

Well someone has to go first.... ! I have partially completed my PhD, and, use this on the inside cover of my submissions to add some 'artistic-flair', however, the source for the word-cloud is actually my BibTeX Database, so the cloud is relevant to each document, and, the sample above is effectively the last one that I produced. In terms of ...

76

Here's a nineteenth century-style advertisement for TeX, demonstrating XeTeX's OpenType support and the power of OpenType fonts. A single font, Phaeton, was used to produce this file: all the text, the abbreviations, the banners, the ornaments used in the background and the image of the man on the horse are glyphs in the font. % save this document as ...

59

A very simple demonstration of using LaTeX fonts with pdfLaTeX. A pamphlet with a powerful message from George Orwell. Code \documentclass{article} \usepackage[landscape,a4paper,hmargin=1.5cm,vmargin=1.5cm]{geometry} \usepackage[osf]{garamondx} \usepackage[T1]{fontenc} \usepackage[cmyk,dvipsnames]{xcolor} \usepackage{tikz} \usepackage{multicol} ...

57

I'm not a type designer or a typographer, but I thought use TikZ to illustrate a type design. Here is my idea: I add a text to right side to complement the figure and show typography with a Sans Serif font, the numbers can be used in a pretty good cover :). The output can be downloaded here. Code \documentclass{article} ...

56

Well, it is Christmas: % save this document as example.tex % compile this document with: xelatex example.tex on a machine which has the Zapfino Extra LT Pro font (or edit the font declaration) --- you'll also need a background graphic, or comment it out \documentclass{article} % Needed to make sure your page dimensions % are the same as that of the ...

50

Here's a demonstration of TeX's hyphenation and justification algorithm. Apart from changing a few \sfcodes and using character protrusion with microtype, this is TeX's default output with no manual line breaks or hyphenation points. % save this document as example.tex % compile this document with: xelatex -shell-escape example.tex \documentclass{article} ...

39

Last summer I taught a cryptography course. Next summer I will again, but I'll use PythonTex! The example below shows off PythonTex, TeX, and a little bit of tikz. Good for March? % save this document as example.tex % compile this document with: pdflatex -shell-escape example.tex \documentclass[11pt]{article} \usepackage{tikz} \usepackage{pythontex} ...

39

For February, there are many possibilities at Can we make a love heart with LaTeX? Here’s my heart with one of the few poems I could stand seeing every day for a month: % Compile with lualatex \documentclass[svgnames,12pt]{article} \usepackage{fontspec,microtype,shapepar,xcolor} ...

19

The trick was to use the command \pgfkeys. Here is the full code: \documentclass{scrartcl} \usepackage[T1]{fontenc} \usepackage{libertine} \usepackage[margin=5pt,a5paper,landscape]{geometry} \setlength{\parindent}{0pt} \usepackage{tikz} \usetikzlibrary{calendar} \usepackage{expl3} \ExplSyntaxOn %% Knuth's AoCP, vol 1, 2nd ed, pp 155--156 \int_new:N ...

17

I couldn't resist: Here is one way to draw this with TikZ. To make it nicer to use, there should be some additional wrapper around it, that automatically calculates the horizontal placement of the nodes. Besides that, the code is astonishingly non-verbose. \documentclass{article} \usepackage{tikz} \begin{document} % These set the width of a day and the ...

16

I use termcal for planning lessons and creating syllabi. I usually start by creating a blank calendar for one semester for just specific days of the week, with holidays marked etc. When I finish the plan, I fill in topics, quizzes and exams, homework info and other details for individual days. A great advantage is that when I teach the same class again, ...

15

LaTeX has some nice title page designs but we need some tools to produce them. The following is a case study to see what is needed to build title pages from some basic building blocks. I improved the first submission by adding coordinate transformations. An on line pdf may be found here. The following is the source code. Compiling it may take a while. The ...

14

This is an example of automated environment using stringstrings and parselines packages to separate plain contents and a complex format, so the first word and the second word are aligned in two parallel diagonals, whereas the remaining text is right-aligned, and the three parts of each line also are formatted distinctly with color gradients across the rows. ...

13

This seems to work \documentclass[a4paper]{article} \usepackage{pgfgantt} \usepackage{pgfcalendar} \usepackage[a4paper,landscape,left=1cm,top=1cm,% bottom=1.5cm,right=1cm]{geometry} \begin{document} \newcount\startdate \pgfcalendardatetojulian{2012-011-03}{\startdate} \protected\def\zzz{\ ...

12

A small shortcut to what David has provided (which is fantastic considering he doesn't even use PGF :D ). \documentclass{article} \usepackage[paperwidth=300cm, paperheight=50cm, left=1cm,right=1cm,top=5cm,bottom=5cm]{geometry} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{pgfgantt} \usetikzlibrary{calendar} ...

12

I replaced your if-if-if-if construct with a simple \ifcase test. \moon works just fine now. Though the actual problem was another one. The counter assignments \global\advance\<counter> by 1 should be finished with a \relax. This also applies to the \ifnum but in this instance, it is not needed as math-mode is introduces right away. Without the \relax ...

12

TikZ/PGF has a nice Calendar library and an example of using it to produce a course schedule.

12

You can use the execute after day scope to execute some code to extract the number of days in the current month and perform a \pgftransformxshift accordingly: \documentclass[11pt]{article} \usepackage[showframe]{geometry} \usepackage{tikz} \usetikzlibrary{calendar} \setlength{\parindent}{0pt} \pagestyle{empty} \definecolor{gold}{RGB}{199,147,22} ...

12


11

A typography sample with the free ebgaramond font, lettrine, and the venerable tikzmark. The text is a poem called Black March by Stevie Smith; the original text is available here. Complete .tex source for download is available here; compile with pdflatex twice to sync page locations. The .pdf output is available for download here. ...

11

\documentclass{article} \usepackage[paperwidth=300cm, paperheight=50cm,left=1cm,right=1cm,top=5cm,bottom=5cm]{geometry} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{pgfgantt} \usepackage{pgfcalendar} \newcount\startdate \newcount\daynum \pgfcalendardatetojulian{2012-01-01}{\startdate} \protected\def\zzz{% ...

10

Birthday card About a month ago it was my boyfriend's 22nd birthday. I bought him the absolutely cutest stuffed bear evur and made a childish birthday card with gimp/inkscape. I know it's not a masterpiece, but he liked it anyway, so please don't be mean. I decided to replicate it with lualatex for this challenge. No real reason for lualatex over xelatex, ...

9

Here is a manually adjusted example. Most of the complications came from supplying the mindmap option to the TikZ picture instead of a scope and also using \tiny a little improperly (inside the TikZ environment, TikZ rulaz!). \documentclass{article} \usepackage{tikz} ...

9

If you modify the placement of the days slightly, you can easily add shapes without having to place the shapes using trial and error to find the right coordinates. By adding every day/.style={anchor=base}, day text={\%d=},rounded corners=0,anchor=base,text height=1ex,text depth=-0.5ex to the calendar options you align the days in such a way that you ...

9

http://www.diyplanner.com/node/6270 Requires Python to generate the calendar data for the selected year. I wanted something to look 'modern' 'light' and 'open plan'. Can be easily internationalized to most European languages (e.g. French, German, Spanish, etc.)

9

There's no way of doing this with a single option, but the following code is a way of getting the weekday headings in a way that keeps all options of the week list calendar. It adds the style day letter headings (which in this form only makes sense to use with the week list style). The style of the headings can be set with the option day headings. ...

8

You can use the if(weekend) [<do something with this weekend>] syntax. For example, you could set the weekend's color to red: \calendar[dates=2012-01-01 to 2012-01-last] if(weekend) [red]; or, if you want it to disappear, to white. But this still prints out the actual node text. Or, even worse, you have white text on a colored background. With the ...

7

You can use the \pgfcalendar macro in place of the default \pgffor used by \gantttitlelist as follows: \documentclass[landscape]{article} \usepackage[dvipsnames,usenames]{xcolor} \usepackage{tikz} \usepackage{pgfgantt} \usepackage{pgfcalendar} \renewcommand{\familydefault}{\sfdefault} \definecolor{barblue}{RGB}{153,204,254} \begin{document} ...

7

You can increase the value for tikz@lib@cal@width for example, to 7.8: \documentclass[letterpaper]{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{calendar,shapes} \makeatletter% \tikzstyle{week list sunday}=[ % Note that we cannot extend from week list, % the execute before day scope is cumulative execute ...

7

Here is something to get you started. I have created extra keys for making dates italic or bold. \documentclass{article} \usepackage{tikz} \usetikzlibrary{calendar,shapes.geometric} \begin{document} %% Extra keys for bold and italic dates. \pgfkeys{/tikz/italic/.code = { \itshape{#1} } } \pgfkeys{/tikz/bold/.code = { \bfseries{#1} } } ...

Only top voted, non community-wiki answers of a minimum length are eligible