# Tag Info

96

Here is a small bag of tips and tricks that I use to improve the handling and presentation of images in publications, which I want to share with you. Use non-floating images Most people think that the only way to insert an image in a publication is by using the LaTeX environment \begin{figure}...\end{figure}. This has many advantages but also many ...

72

My contribution is the little package gridleno.sty whose code I include below. This package was designed to enhance the functionality of grid.sty regarding the difficult task of grid typesetting in double column LaTeX documents. The package still needs a lot of improvements, this is only a starting point. The package was conceived to help producing lecture ...

62

You may be interested in pgfornament. \PassOptionsToPackage{svgnames}{xcolor} \documentclass[11pt]{article} \usepackage[object=vectorian]{pgfornament} %% http://altermundus.com/pages/tkz/ornament/index.html \usepackage{lipsum,tikz} \newcommand{\sectionline}{% \noindent \begin{center} {\color{DarkViolet} \resizebox{0.5\linewidth}{1ex} {{% ...

48

I had to prepare certificates for a workshop recently and this is how I did it. First, I prepared a border using smartdraw and called it border-2.jpg. Since certificates are given to many, I used datatool package. I used the particulars of participants in a .csv file namelist-1.csv like this: degree,Name,Dgn,subject,inst,place Dr,Abdul Ali,Assistant ...

46

This my submission in the other category for the Show Off Your Skillz in TeX & Friends Contest. I call it TypoTux, this is more like a hack than a usual typographic layout. See source and detailed description below the picture. % TypoTux % Created by István Szántai % Compiled with pdflatex using TeX Live 2011 % % Use it as you like, but please send ...

45

I prepared a two page sample of my lecture notes. The general book design is heavily inspired by Edward Tufte, R. Bringhurst and the tufte-latex-class. Then, with the advent of e-books, I wanted something that can be prepared for many different reader devices. It turned out that LaTeX is about the perfect tool to achieve this. I came up with some kind of ...

39

Now with pgfornament.sty. The idea comes from the psvectorian package of Patrick Fradin and a lot of things are inpired from it. I added another package tikzrput to emulate the macro \rput from pstricks. You can find it here Update I made a new version of the example e02 from psvectorian that you can see in Herbert's answer. In this example I used the ...

34

Here's one possibility using TikZ; \chapterdecoration is automatically invoked using the last optional argument of \titleformat for \chapter as given in arsclassica.sty: \documentclass[headinclude,footinclude]{scrbook} \usepackage[eulerchapternumbers,pdfspacing]{classicthesis} \usepackage{arsclassica} \usepackage{tikz} \usepackage{lipsum} ...

32

Macro package: ConTeXt (ver: 2011.10.20) Engine: LuaTeX Category: Other Block comments in TeX In \TEX\ \type{%} creates a line comment, i.e., \TEX\ ignores the material % CHECK: use text instead? from \type{%} until the end of the line. As a result, often % CHECK: use sometimes instead? you have to bream lines just to comment some material. % The line ...

31

In general: \rule{width}{height} macro: \newcommand{\sectionline}{% \nointerlineskip \vspace{\baselineskip}% \hspace{\fill}\rule{0.5\linewidth}{.7pt}\hspace{\fill}% \par\nointerlineskip \vspace{\baselineskip} }

31

The decorations library can be used to all kinds of stuff like this. Unfortunately it is slightly verbose. \usetikzlibrary{decorations.markings} \begin{scope}[very thick,decoration={ markings, mark=at position 0.5 with {\arrow{>}}} ] \draw[postaction={decorate}] (-4,0)--(4,0); \draw[postaction={decorate}] (4,0)--(4,2); ...

29

Mi little contribution with niceframe and wallpaper packages: \documentclass[landscape]{article} \usepackage{wallpaper} \usepackage{niceframe} \usepackage{xcolor} \usepackage{ulem} \usepackage{graphicx} \usepackage{geometry} \geometry{tmargin=.5cm,bmargin=.5cm, lmargin=.5cm,rmargin=.5cm} \usepackage{multicol} \setlength{\columnseprule}{0.4pt} ...

28

Academic submission: This document is part of a project I am working on for my students- it consists of problems, examples, and solutions (at the end). The final document will be many more than 4 pages, but this part gives a flavour :) First of all, to help you decide if you want to read the rest of my answer :), here are screen shots of my 4 pages Some ...

27

My entry (which I suppose falls into the other category) is just to show off a little snippet of code that I developed when typesetting a programme for a play. A slightly fancier list style was needed for people's names than anything built in, and I got one by abusing TeX's hyphenation mechanism to insert pretty bullet points rather than hyphens. You can ...

27

Here is a proof-of-concept solution for drawing the coil by parametrizing it and drawing the front and back parts separately using plot paths: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} % Define a formula for the coil. % This is what the numbers mean: % 0.3 ... how far the rings are apart % 0.4 ... how ...

26

I created a document in which Rubik's cube is built from small cubes and demonstrated: %Author: Count Zero %*free to be reused both partially and integrally by anyone* \documentclass{article} \usepackage{pxfonts}% change the font from Computer Modern to Adobe Palatino \usepackage{marvosym}% special characters used in the document :) \usepackage{tikz}% ...

26

I'd like to add a humble contribution to the contest. But beware, don't expect too much. After all, it's me. :) Before the code is properly unveiled, I'd like to provide some background, so everybody will understand why I came up with it. There we go. Background I'm the coordinator of a small choir in a parish. I decided to come up with a personal ...

24

Edit: A general solution to apply some some styles (like put an arrow in the middle) to each segment of an arbitrary path. There are two styles: the on each segment style uses the show path construction decoration of decorations.pathreplacing library to apply some styles (its argument) on each segment of a path. the mid arrow style uses the method of ...

23

I have not built entirely the certificates but it's easy to complete the frame. \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{concrete} \PassOptionsToPackage{dvipsnames,svgnames}{xcolor} \usepackage[object=vectorian]{pgfornament} \begin{document} \begin{center} ...

23

There are two approaches you can use. One is to import a picture and accurately place the text over it using the overpic package (see http://tex.stackexchange.com/a/45023/963 for some macros and a key value approach to assist in placing the text). The second is to build the certificate from scratch. If you want a fancy and modern border use the braids ...

23

Code saved in pgflibrarydecorations.mypathmorphing.code.tex \usepgfmodule{decorations} % coilup decoration % % Parameters: \pgfdecorationsegmentamplitude, \pgfdecorationsegmentlength, \pgfdeclaredecoration{coilup}{coil} { \state{coil}[switch if less than=% 1.5\pgfdecorationsegmentlength+% ...

23

Try this: \documentclass{article} \usepackage{fourier-orns} \begin{document} \Huge \hrulefill\hspace{0.2cm} \floweroneleft\floweroneright \hspace{0.2cm} \hrulefill \end{document}

23

Unfortunately, it doesn't calculate the score. Requires the latest release of PGF. \documentclass[tikz,border=5]{standalone} \usetikzlibrary{shapes.geometric} \def\lettertoscrabblescore#1{% \def\tmp{#1}% \expandafter\count\expandafter0\expandafter`#1\relax\advance\count0 by-65\relax% \ifcase\count0\relax% ...

22

with the PSTricks package psvectorian you can create something like this: \documentclass[]{book} \usepackage[svgnames]{pstricks} \usepackage{psvectorian} \begin{document} \begin{pspicture}(-5,-5)(5,5) \renewcommand*{\psvectorianDefaultColor}{blue}% \psframe[linewidth=0.4pt,fillstyle=solid,fillcolor=Beige](-5,-5)(5,5)% % ...

20

This is a point to start Picture Code \documentclass[11pt]{scrartcl} \usepackage{tikz,pgfornament,tikzrput} % altermundus.com/pages/tkz/tikzrput/ \usetikzlibrary{decorations,decorations.text} % altermundus.com/pages/tkz/ornament/ \begin{document} \begin{tikzpicture} \draw[ultra thick] circle[radius=6cm] circle[radius=7cm] ; \draw[line ...

20

The web-O-mints package offers here another option; a little example: \documentclass[12pt]{article} \usepackage[vmargin=2.5cm]{geometry} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{fourier} \usepackage[nopar]{lipsum} \newcommand\deco[2]{% \par\vspace{1ex} \begin{center} ...

19

memoir document class has facilities to draw these "totally sweet" anonymous breaks. See section 6.7 Fancy anonymous breaks (page 109-111) of the manual for details.

18

I have a suspicion that I'm breaking too many rules with this submission. In particular: Include things that a more-or-less everyday document can benefit from. The purpose of this document is to provide a benefit for those times when you can't use TeX. Limit your document to a few pages, maximally three or four. I get kinda verbose when I get ...

18

I do not think I understood you clearly. But, is it like this? \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing,patterns} \usetikzlibrary{calc,patterns,decorations.markings} \usetikzlibrary{positioning,snakes} \begin{document} \begin{tikzpicture}[every node/.style={draw,outer sep=0pt,thick}] ...

17

Well, we can always appeal to tikz to make these graphic details. Below you can see some lines with the tikz own endings. And the picture above was generated from the following code: \documentclass[a4paper, twocolumn]{article} \usepackage{tikz} \usetikzlibrary{arrows} \newcommand{\myrule} [3] []{ \begin{center} \begin{tikzpicture} ...

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