## LaTeX forum ⇒ Templates, Wizards & Tools ⇒ Add a wrapfig button

Information and discussion about TeXnicCenter document/project templates and wizards and other tools and extensions for TeXnicCenter
nich
Posts: 14
Joined: Fri Aug 13, 2010 8:22 am

Hi all,

I need to use figures on the right or left hand side of the page with text wrapped around them quite a bit. Is there a way to a a button to Texnic center which will activate the macro to put in the all of the wrapfig code?

I am also confused about how I activte the macro:

macros/latex/contrib/other/misc/wrapfig.sty

Texnic center help says that this macro puts in the desired code but I am not sure how to actually execute this macro (or any macro).

Any help greatly appreciated

localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany
Somehow I can't follow you. I don't understand what TeXnicCenter (TXC) shall do for you to get whatever code working. I have no problem with the sample below.
\documentclass[11pt,a4paper,english]{article}\usepackage[T1]{fontenc}\usepackage[utf8]{inputenc}\usepackage{babel}\usepackage[includeheadfoot,margin=2cm]{geometry}\usepackage[font=small,labelfont=bf,tableposition=top]{caption}\usepackage{wrapfig}\usepackage{blindtext} \begin{document}   \begin{wrapfigure}{r}{8cm}     \centering     \rule{6.4cm}{3.6cm}     \caption{Dummy figure with \textsf{wrapfig}}\label{fig:dummy}   \end{wrapfigure}    \blindtext[2]\end{document}

For the present you may use the button for inserting a figure environment and then supplement it to an according environment of the wrapfig package.

Thorsten
LaTeX Community Moderator

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1