Tag Info

Hot answers tagged

47

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} {{% ...


42

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 ...


36

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 ...


26

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} ...


24

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 ...


24

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); ...


21

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 ...


21

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} ...


20

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)% % ...


19

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 ...


18

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} ...


18

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


17

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 ...


16

Knuth in the TeXBook gave an example of "poor man's bold," (The TeXbook, p. 386) which can be typeset obtained by overprinting the normal weight symbol with slight offsets. As he says: The results are somewhat fuzzy, and they certainly are no match for the real thing if it's available; but poor man's bold is better than nothing, and once in a ...


16

pgfplots has discontinuities decoration on the axis. See '4.8.11 Axis Discontinuities' in the manual. Example in the manual: % \usepackage{pgfplots} \begin{tikzpicture} \begin{axis}[ axis x line=bottom, axis y line=center, tick align=outside, axis y discontinuity=crunch, ymin=95, enlargelimits=false ] \addplot[blue,mark=none, domain=-4:4,samples=20] ...


16

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+% ...


16

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}] ...


15

Here is the aforementioned rule using tikz with the center dot set to 1 pt. In the updated version, I filled them in and extended them to slightly more than \textwidth. You can tweak the number I divided \textwidth by in order to shorten or lengthen it. Note that it looks better with both the \fill and the \draw commands together. Without the latter, the ...


14

You can use any \draw command in the with options: \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.markings} \begin{document} \begin{tikzpicture}[decoration={ markings, mark=between positions 0 and 1 step 9.5mm with {\draw [-latex] (-0.2,0) -- (0.2,0);},raise=0.1cm} ] \draw [help lines] grid (3,2); \draw [postaction={decorate}] ...


14

Here's an extended version of the complete sines decoration, which can now be controlled using start up/start down and end up/end down. \documentclass[a4paper,12pt]{article} \usepackage{tikz} \usetikzlibrary{decorations} \begin{document} \newif\ifstartcompletesineup \newif\ifendcompletesineup \pgfkeys{ /pgf/decoration/.cd, start up/.is ...


14

Hmm, so I'm the only one who thought the requirement was to shade an arrowhead on a path. Oh well... Decorations can be used, but are slow. The following is far from perfect, but is basically usable. In the first two versions transformations like scaling and rotation will ruin everything, this is (mostly) corrected in the third version. The approach ...


14

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} ...


14

I guess that you're looking for something a little like this: The code to produce that is: \documentclass{standalone} \usepackage{tikz} \usepackage{calligraphy} \begin{document} \begin{tikzpicture}[line width=2pt] \pen (0,0); \useasboundingbox (-3,-1) rectangle (3,2); \calligraphy (0,0) .. controls +(100:1) and +(90:1) .. ++(-2,.5) ++(0,0) .. controls ...


13

Given that the precise syntax you specify isn't possible, here's something that achieves the desired effect without having to specify the coordinates of the midpoints. \documentclass{article} \thispagestyle{empty} \usepackage{tikz} \usetikzlibrary{arrows} \newcommand{\midarrow}{\tikz \draw[-triangle 90] (0,0) -- +(.1,0);} \begin{document} ...


13

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} ...


12

On Werner's advice, here is the implementation of the suggested method (draw each parabola, use path clipping) and a MWE. I stripped out the chartcruft of the original. \documentclass{minimal} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=3.14159] \begin{scope} \clip (0.8,0) rectangle (1.5,-0.5); \draw[<->,color=red,dashed] (0,0) ...


12

I used this image and then this code: In header: \newcommand{\parasep}{ \begin{center} \includegraphics[scale=.5]{hrule.png} \end{center}} In body where you want the image: \parasep Oh and remember to: \usepackage{graphicx}


12

Here's a solution that uses the decorations library and declares a new discontinuity decoration, which is essentially a single zigzag in the middle of the first segment of a path. The length and amplitude of the discontinuity symbol are controlled using the standard decoration options segment length and amplitude. \documentclass{article} ...


12

Why do the blobs have tiny lines coming out of them every so often? Because the amplitude of the steps and the rounding radii are too similar. Reduce the radius or increase the amplitude and/or steps. You have to find right values by trial and error. Why are the corners of the blob at (4,1) and (14,1) not rounded? Because the path is not closed. ...


11

Edit: I corrected my answer to avoid the bad practice of modifying a package file, following the suggestion of Paul Gaborit. I made a few modifications to the code of this answer to get the following result: \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} \makeatletter % Decorations based on % ...



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