Discussion:
How to wrap text around a figure?
Alasdair Reed
2012-11-26 06:01:45 UTC
Permalink
Hi, I am trying to wrap some text around a figure. Example the figure
should be a third the way down the page up against the left margin,
with the text flowing along the top of the figure and down the right
hand side of the figure resuming from the left hand margin once the
bottom of the figure is reached. Using "figure wrap float" the figure
is placed in the middle of the page and the text appears above and
below the figure but does not flow round it.
Which is the best way to
achieve this aim?

Alasdair
Paul A. Rubin
2012-11-27 00:09:25 UTC
Permalink
Did you change the default settings for the figure wrap float inset after adding
it to the document? If not, right-click the "handle" (where it says "wrap:
Figure") and select "Settings". Change the placement to left, make sure the
width is set appropriately, and make sure the "float" option is not selected. Of
course, you also have to make sure the figure fits in the allotted space.

Vertical positioning is tricky - it is based on where the box appears in the
text flow, rather than position on the page (meaning if you add or delete text
prior to the box, it will move).

Paul
Uwe Stöhr
2012-11-27 00:59:39 UTC
Permalink
Post by Alasdair Reed
Hi, I am trying to wrap some text around a figure.
See sec. 6.1 "Wrap Floats" of the EmbeddedObjects manual you find in LyX's Help menu.

regards Uwe
Allen Wilkinson
2012-11-27 20:01:12 UTC
Permalink
My problem is that if I want to show tracked changes in PDF view or output
I get these errors:
++++++++++++++++++++++++
Package xcolor Error: Undefined color `LYXDELETED'.
Package xcolor Error: Undefined color `LYXADDED'.
...
+++++++++++++++++++++++
after a modest finite extent of the document is processed.

If I delete changed and unchanged text from the document such that the
document is small enough, then PDF output with tracked changes works.

This is true whether I use Lyx PDF viewing, or run OS' pdflatex compiler
on exported .tex file.

If I disable 'show changes in output', then PDF output occurs without
errors.

Can anyone help me resolve this problem?

I did some general Google and LyX wiki searching, but nothing popped up.

-----------------------------------------
MY SET UP CONTEXT:

I have Lyx 2.0.5 on a Suse 11.1 box. and:

pdflatex -v
pdfTeX using libpoppler 3.141592-1.40.3-2.2 (Web2C 7.5.6)
kpathsea version 3.5.6

Header of .log file:
This is pdfTeX, Version 3.141592-1.40.3 (Web2C 7.5.6) (format=latex
2009.1.23) 27 NOV 2012 12:44
entering extended mode


Header of .tex file:
%% LyX 2.0.5 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[times]{nagauth}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage{pdfcolmk}
\usepackage{bm}
\usepackage{amstext}
\usepackage{graphicx}
\PassOptionsToPackage{normalem}{ulem}
\usepackage{ulem}
\usepackage[unicode=true,

bookmarks=true,bookmarksnumbered=true,bookmarksopen=true,bookmarksopenlevel=1,
breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false]
{hyperref}
\hypersetup{
colorlinks,bookmarksopen,bookmarksnumbered,citecolor=red,urlcolor=red}

\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\providecolor{lyxadded}{rgb}{0,0,1}
\providecolor{lyxdeleted}{rgb}{1,0,0}
%% Change tracking with ulem
\newcommand{\lyxadded}[3]{{\texorpdfstring{\color{lyxadded}{}}{}#3}}
\newcommand{\lyxdeleted}[3]{{\texorpdfstring{\color{lyxdeleted}\sout{#3}}{}}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
% nagdoc.tex V2.0, 13 May 2010

%\documentclass[times,doublespace]{nagauth}%For paper submission

\usepackage{moreverb}
\usepackage{bm}


\newcommand{\BibTeX}{{\rmfamily B\kern-.05em \textsc{i\kern-.025em b}%
\kern-.08em T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}

\def\volumeyear{2012}
------------------------------------------------------------

Thanks for any help, Allen
----
Address:

Allen Wilkinson (cell) (216) 548-2349
1286 Yellowstone Road
Cleveland Heights, OH 44121 USA (INTERNET) aw(at)chaff(dot)biz
+++++++
Richard Heck
2012-11-28 14:19:20 UTC
Permalink
Post by Allen Wilkinson
My problem is that if I want to show tracked changes in PDF view or
++++++++++++++++++++++++
Package xcolor Error: Undefined color `LYXDELETED'.
Package xcolor Error: Undefined color `LYXADDED'.
...
+++++++++++++++++++++++
after a modest finite extent of the document is processed.
If I delete changed and unchanged text from the document such that the
document is small enough, then PDF output with tracked changes works.
This is true whether I use Lyx PDF viewing, or run OS' pdflatex
compiler on exported .tex file.
If I disable 'show changes in output', then PDF output occurs without
errors.
Can anyone help me resolve this problem?
Odd that the "undefined color" is in all caps. Is LyX exporting this wrong?

I think we can only answer this with a test file that causes the problem.

rh
Allen Wilkinson
2012-11-28 16:09:32 UTC
Permalink
Richard,

Attached is the file I used for testing that shows failure as attached.

If I deleted the text in the Introduction section, then tracked changes
view okay in the PDF.

At the end of the file I have 3 test lines to see if additional changes
still displayed when the Introduction was deleted, and they did display.

I did not incrementally delete parts of the Intro to see when the problem
switches on.

The attached exported .tex file does not show lyxadded and lyxdeleted in
all caps anywhere.

Hope this provides what you seek.

Thanks, Allen
----
Address:

Allen Wilkinson (cell) (216) 548-2349
1286 Yellowstone Road
Cleveland Heights, OH 44121 USA (INTERNET) aw(at)chaff(dot)biz
+++++++
Post by Richard Heck
Post by Allen Wilkinson
My problem is that if I want to show tracked changes in PDF view or output
++++++++++++++++++++++++
Package xcolor Error: Undefined color `LYXDELETED'.
Package xcolor Error: Undefined color `LYXADDED'.
...
+++++++++++++++++++++++
after a modest finite extent of the document is processed.
If I delete changed and unchanged text from the document such that the
document is small enough, then PDF output with tracked changes works.
This is true whether I use Lyx PDF viewing, or run OS' pdflatex compiler on
exported .tex file.
If I disable 'show changes in output', then PDF output occurs without
errors.
Can anyone help me resolve this problem?
Odd that the "undefined color" is in all caps. Is LyX exporting this wrong?
I think we can only answer this with a test file that causes the problem.
rh
Richard Heck
2012-11-28 17:12:18 UTC
Permalink
Post by Allen Wilkinson
Richard,
Attached is the file I used for testing that shows failure as attached.
If I deleted the text in the Introduction section, then tracked
changes view okay in the PDF.
At the end of the file I have 3 test lines to see if additional
changes still displayed when the Introduction was deleted, and they
did display.
I did not incrementally delete parts of the Intro to see when the
problem switches on.
The attached exported .tex file does not show lyxadded and lyxdeleted
in all caps anywhere.
Hope this provides what you seek.
I don't have the ngauth class file so had to switch to article. Once I
did that, I had to delete a lot of the stuff before the abstract, as
that was ngauth specific. Having done that, however, I had no problem
viewing the file with changes. I append both the LyX file and the PDF.

Can you correctly view this file?

rh
Allen Wilkinson
2012-11-28 21:12:03 UTC
Permalink
Richard,

That helped, thanks.

I went back and tested my troubled file. I commented out the nagauth
\runningheads line (as a tracked change) and all changes were
displayed in the PDF.

Must be \runningheads definition tramples on something that track
changes needs.

If you care to debug this for proper nagauth styles, I'll send you the
nagauth.cls file. I'm not sure I know latex well enough to do it myself.

In any case I can manage with this work around.

Best, Allen
----
Address:

Allen Wilkinson (cell) (216) 548-2349
1286 Yellowstone Road
Cleveland Heights, OH 44121 USA (INTERNET) aw(at)chaff(dot)biz
+++++++
Post by Allen Wilkinson
Richard,
Attached is the file I used for testing that shows failure as attached.
If I deleted the text in the Introduction section, then tracked changes
view okay in the PDF.
At the end of the file I have 3 test lines to see if additional changes
still displayed when the Introduction was deleted, and they did display.
I did not incrementally delete parts of the Intro to see when the problem
switches on.
The attached exported .tex file does not show lyxadded and lyxdeleted in
all caps anywhere.
Hope this provides what you seek.
I don't have the ngauth class file so had to switch to article. Once I did
that, I had to delete a lot of the stuff before the abstract, as that was
ngauth specific. Having done that, however, I had no problem viewing the file
with changes. I append both the LyX file and the PDF.
Can you correctly view this file?
rh
Richard Heck
2012-11-29 05:25:15 UTC
Permalink
Post by Allen Wilkinson
Richard,
That helped, thanks.
I went back and tested my troubled file. I commented out the nagauth
\runningheads line (as a tracked change) and all changes were
displayed in the PDF.
Must be \runningheads definition tramples on something that track
changes needs.
The change tracking stuff loads soul and xcolor, I think, and there
could be some kind of incompatibility there. Hard to know.
Post by Allen Wilkinson
If you care to debug this for proper nagauth styles, I'll send you the
nagauth.cls file. I'm not sure I know latex well enough to do it myself.
If you could file a bug report and attach the problematic file and
either attach or link to ngauth.cls, that'd be great.

rh
Allen Wilkinson
2012-11-29 12:50:14 UTC
Permalink
Richard,

where would I file bug report? web page?

Allen
----
Address:

Allen Wilkinson (cell) (216) 548-2349
1286 Yellowstone Road
Cleveland Heights, OH 44121 USA (INTERNET) aw(at)chaff(dot)biz
+++++++
Post by Allen Wilkinson
Richard,
That helped, thanks.
I went back and tested my troubled file. I commented out the nagauth
\runningheads line (as a tracked change) and all changes were displayed in
the PDF.
Must be \runningheads definition tramples on something that track changes
needs.
The change tracking stuff loads soul and xcolor, I think, and there could be
some kind of incompatibility there. Hard to know.
Post by Allen Wilkinson
If you care to debug this for proper nagauth styles, I'll send you the
nagauth.cls file. I'm not sure I know latex well enough to do it myself.
If you could file a bug report and attach the problematic file and either
attach or link to ngauth.cls, that'd be great.
rh
Scott Kostyshak
2012-11-29 13:51:26 UTC
Permalink
Post by Allen Wilkinson
Richard,
where would I file bug report? web page?
http://www.lyx.org/trac

Thanks,

Scott
Post by Allen Wilkinson
Allen
----
Allen Wilkinson (cell) (216) 548-2349
1286 Yellowstone Road
Cleveland Heights, OH 44121 USA (INTERNET) aw(at)chaff(dot)biz
+++++++
Post by Allen Wilkinson
Richard,
That helped, thanks.
I went back and tested my troubled file. I commented out the nagauth
\runningheads line (as a tracked change) and all changes were displayed in
the PDF.
Must be \runningheads definition tramples on something that track changes
needs.
The change tracking stuff loads soul and xcolor, I think, and there could
be some kind of incompatibility there. Hard to know.
Post by Allen Wilkinson
If you care to debug this for proper nagauth styles, I'll send you the
nagauth.cls file. I'm not sure I know latex well enough to do it myself.
If you could file a bug report and attach the problematic file and either
attach or link to ngauth.cls, that'd be great.
rh
Julien Rioux
2013-01-18 23:53:15 UTC
Permalink
Post by Richard Heck
Post by Allen Wilkinson
My problem is that if I want to show tracked changes in PDF view or
++++++++++++++++++++++++
Package xcolor Error: Undefined color `LYXDELETED'.
Package xcolor Error: Undefined color `LYXADDED'.
...
+++++++++++++++++++++++
after a modest finite extent of the document is processed.
If I delete changed and unchanged text from the document such that the
document is small enough, then PDF output with tracked changes works.
This is true whether I use Lyx PDF viewing, or run OS' pdflatex
compiler on exported .tex file.
If I disable 'show changes in output', then PDF output occurs without
errors.
Can anyone help me resolve this problem?
Odd that the "undefined color" is in all caps. Is LyX exporting this wrong?
I think we can only answer this with a test file that causes the problem.
rh
The headers from that document class must be all caps. A similar error
happened with changes in section titles with the revtex document class,
which use all caps section titles. For some reason latex thinks that it
should also capitalize the color names. A workaround is to also define
the colors with capitalized names! c.f. http://www.lyx.org/trac/ticket/4625

Regards,
Julien

Continue reading on narkive:
Loading...