# [texhax] Issues with colour box in amsbook project [Was Fwd: FW:]

Alan Litchfield alan at alphabyte.co.nz
Tue Jul 26 22:19:45 CEST 2011

If you look at the header of the emails I have been sending you will that it
is there.

texhax at tug.org

Cheers
Alan

Dr A K Hannaby wrote:
> Alan
> Please can you kindly give me the email address of "the list".
> I don't know it.
>
> -----Original Message-----
> From: texhax-bounces at tug.org [mailto:texhax-bounces at tug.org] On Behalf Of
> Alan T Litchfield
> Sent: 25 July 2011 21:00
> To: Dr A K Hannaby; texhax
> Subject: Re: [texhax] Issues with colour box in amsbook project [Was Fwd:
> FW:]
>
>
> I think you can rule out the minipage environment as being the cause of your
> symptoms. Are you producing dvi or pdf? The pdf I produced is attached. You
> will see on that the eps is not obscured.
>
> If you are producing dvi, try producing pdf and see if that resolves your
> issue. If you are producing pdf then try opening the pdf in some other
> viewer.
>
> I have not told figbox or figboxeight to do anything different from what you
>
> Alan
>
> On 26/07/2011, at 4:31 AM, Dr A K Hannaby wrote:
>
>> Thanks Alan
>> It's curious, I've taken out the minipage as you suggest, but the
>> result is same.
>> I have had the minipage in for over two years while writing this book
>> with no problem.
>> So it must be something I've added (that is different from what you've
>> got) that is the problem.
>> What is it that tells the figbox to be behind the figure in the
>> correct circumstance (in your case)?
>> Regards
>> Keith
>>
>>
>> -----Original Message-----
>> From: texhax-bounces at tug.org [mailto:texhax-bounces at tug.org] On Behalf
>> Of Alan T Litchfield
>> Sent: 24 July 2011 21:33
>> To: texhax at tug.org Hax; Dr A K Hannaby
>> Subject: [texhax] Issues with colour box in amsbook project [Was
>> Fwd: FW:]
>>
>> It is better if you reply back to the list.
>>
>> As I said in my post, I am not familiar with the ams classes and there
>> may be important settings that I do not know about. Others will be
>> better positioned to offer help than me.
>>
>> I have also attached the original file for others who may wish to have
>> a look.
>>
>> For myself I cannot reproduce what you reported. The image is able to
>> be read without problem and the box does not sit in front of the eps,
>> obscuring it. I have however changed the figure code to:
>>
>> \begin{figure}[hbt]
>> 		\figboxeight{\centering
>> 			\includegraphics[scale=1.15,width=\linewidth]
>> {fig_12c_two_solutions.eps}
>> 			\caption{A double solution on a directed number
> line}
>> 			\label{fig:doublesolution}}
>> \end{figure}
>>
>> so that the image sits correctly inside the box and does not extend
>> beyond it. I have also removed the minipage environment you had there.
>> I could see no reason for it.
>>
>> Good luck
>> Alan
>>
>> Begin forwarded message:
>>
>>> From: "Dr A K Hannaby" <keith.hannaby at mathshelp.com>
>>> Date: 24 July 2011 10:18:30 PM
>>> To: "'Alan T Litchfield'" <alan at alphabyte.co.nz>
>>> Subject: RE: [texhax] FW:
>>>
>>> Alan
>>> Many thanks for picking up my problem.
>>> Error shows up as a result of lines 695 to 745 of the text file and
>>> on the output it is adjacent to the words: "with surround" and
>>> "without surround".
>>> I've attached a sample .eps picture file: fig_12c_two_solutions.eps
>>> to match the \include entry (sorry, I forgot about that).
>>> Also given a magnification factor 1.15 (or more) to show that the
>>> picture is behind the colorbox.
>>> Hope this helps.
>>> Keith
>>>
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: texhax-bounces at tug.org [mailto:texhax-bounces at tug.org] On
>>> Behalf Of Alan T Litchfield
>>> Sent: 23 July 2011 23:13
>>> To: Dr A K Hannaby
>>> Cc: texhax at tug.org
>>> Subject: Re: [texhax] FW:
>>>
>>> Few things to start:
>>> 1. The email address you have used appears to be sufficiently
>>> precise.
>>> 2. It is better to include a subject. I normally ignore postings
>>> without a subject and selectively look at those that do.
>>> 3. Your file will not compile without the images you have specified
>>> and I do not want to spend the time in commenting out image
>>> references. What are the lines of code that are providing the errors
>>> you mention/giving you trouble?
>>>
>>> I suspect the problem is with the inclusion of the minipage
>>> environment inside the figure environment but that is just a guess.
>>> Note also that I am not entirely familiar with the ams classes and
>>> how they might change the behaviour of certain packages.
>>>
>>> As an aside, if I use multiple images inside one figure environment I
>>> prefer to use the subfig package
>>> ftp://ctan.tug.org/tex-archive/macros/latex/contrib/subfig/subfig.pdf
>>>
>>> Can you be more precise about the portion that requires attention,
>>>
>>> Alan
>>>
>>> On 23/07/2011, at 9:52 PM, Dr A K Hannaby wrote:
>>>
>>>> Tug
>>>> I don't appear to be making contact on my problem.
>>>> Yet, I am receiving daily emails on other matters.
>>>> Can you give me a precise email address to contact, please?
>>>> Keith
>>>>
>>>>
>>>>
>>>>
>>>> From: Dr A K Hannaby [mailto:keith.hannaby at mathshelp.com]
>>>> Sent: 20 July 2011 10:57
>>>> To: 'texhax at tug.org'
>>>> Subject:
>>>>
>>>> Dear Tug
>>>> I like to surround my diagrams and figures with a colorbox, working
>>>> in Miktex 2.9 Trouble is the boxes have suddenly placed themselves
>>>> in front of my figures rather than behind.
>>>> I enclose sample text and the error is on page 7 of the output.
>>>> I would be most grateful for your help.
>>>> Yours
>>>> Keith Hannaby
>>>
>>>
>
> --
> Alan T Litchfield
> AlphaByte
> PO Box 1941, Auckland, 1140
> New Zealand
> http://www.alphabyte.co.nz
> http://www.alphabyte.co.nz/beatrice
>
>

--
Alan Litchfield MBus (Hons), MNZCS
AlphaByte
PO Box 1941, 1140, Auckland, New Zealand
http://www.alphabyte.co.nz
http://www.alphabyte.co.nz/beatrice