Templates, Wizards & ToolsAdd a wrapfig button

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

Add a wrapfig button

Post by nich »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Add a wrapfig button

Post by localghost »

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.

Code: Select all

\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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

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