Discussion:
[MiKTeX] Space between figures and its caption
c***@dei.uminho.pt
2004-02-20 11:47:17 UTC
Permalink
Hi,

Uwe Siart and Francisco A. S. Grossi thanks for the propmt answers to my
question about subfigures package.

I am faced with another problem. I'm inserting some figures (using normal \begin
{figure} without subfigure) from Matlab. These are eps figures. However, my
problem is that it apperas an huge amount of space between the figure and its
caption. Can anyone help me to Reduce this amout of space?


Thanks

Cristina
Hans Fredrik Nordhaug
2004-02-20 12:06:44 UTC
Permalink
Luis A. Payan R.
2004-02-20 20:40:28 UTC
Permalink
Hi cristina,
After take account the useful comments from Hans
Fredrik Nordhaug, may be you could try with:

\begin{figure}
\setlength{\abovecaptionskip}{0pt} %In some cases
%this is useful for your purpose
\begin{center}
\includegraphics{file.eps}
\end{center}
\caption{My caption here}
\label{a label here}
\end{figure}}

Best reagards,
Luis A. Payan
Post by c***@dei.uminho.pt
Post by c***@dei.uminho.pt
Hi,
Uwe Siart and Francisco A. S. Grossi thanks for
the propmt answers to my
Post by c***@dei.uminho.pt
question about subfigures package.
I am faced with another problem. I'm inserting
some figures (using normal \begin
Post by c***@dei.uminho.pt
{figure} without subfigure) from Matlab. These are
eps figures. However, my
Post by c***@dei.uminho.pt
problem is that it apperas an huge amount of space
between the figure and its
Post by c***@dei.uminho.pt
caption. Can anyone help me to Reduce this amout
of space?
Did you use "print -deps filename.eps" in Matlab? If
not, you have an ps
file instead of an eps file. Normally Matlab makes
eps files with tight
bounding boxes (no white space).
Regards,
Hans
PS! This isn't really MiKTeX related and you would
probably have found
your answer by searching on comp.text.tex - either
from
http://www.miktex.org/search.html or
http://groups.google.com/groups?group=comp.text.tex
-------------------------------------------------------
Post by c***@dei.uminho.pt
SF.Net is sponsored by: Speed Start Your Linux Apps
Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
Post by c***@dei.uminho.pt
_______________________________________________
MiKTeX-Users mailing list
https://lists.sourceforge.net/lists/listinfo/miktex-users

=====
Luis Alfredo Payan Rodriguez
***@yahoo.com.mx

_________________________________________________________
Do You Yahoo!?
La mejor conexión a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx
Poulton
2004-03-05 09:08:49 UTC
Permalink
Hi,
I am faced with a problem using the verbatim package. I'm inserting some
listings using
\verbatiminput{File}. However, my problem is that in the File, appear some
'^' characters; so at compilation time by Latex, I obtain the error message:
! Missing $ inserted.

Can anyone help me to solve this problem.
Best regards,
Daniel Poulton
Morten Høgholm
2004-03-05 09:35:14 UTC
Permalink
On Fri, 05 Mar 2004 10:08:49 +0100, Poulton <***@supelec.f=
r>=20
Hi,
I am faced with a problem using the verbatim package. I'm inserting=
some
listings using
\verbatiminput{File}. However, my problem is that in the File, appe=
ar=20
some
'^' characters; so at compilation time by Latex, I obtain the error=
=20
! Missing $ inserted.
You could show us what you do with a minimal failing example, because=
=20
you're definitely doing something wrong. This works:

\begin{filecontents*}{testfile.tst}
Does ^ cause an error? Nope.
\end{filecontents*}
\documentclass{minimal}
\usepackage{verbatim}
\begin{document}
\verbatiminput{testfile.tst}
\end{document}

Possibly you're using \input somewhere instead of \verbatiminput.
--=20
Morten H=F8gholm
Alan G Isaac
2004-03-05 16:32:45 UTC
Permalink
Post by Morten Høgholm
\begin{filecontents*}{testfile.tst}
Does ^ cause an error? Nope.
\end{filecontents*}
\documentclass{minimal}
\usepackage{verbatim}
\begin{document}
\verbatiminput{testfile.tst}
\end{document}
Not a MiKTeX specific question:
I know what you don't get (file overwriting
and environment placement options), but is
there anything you do get from the filecontents*
environment that is not offered by the
verbatimwrite environment?

Thanks,
Alan Isaac
Morten Høgholm
2004-03-05 17:04:46 UTC
Permalink
On Fri, 05 Mar 2004 11:32:45 -0500 (Eastern Standard Time), Alan G Is=
aac=20
^^^^^^^^^
I admit that I did indeed write it!
Post by Alan G Isaac
Post by Morten Høgholm
\begin{filecontents*}{testfile.tst}
Does ^ cause an error? Nope.
\end{filecontents*}
\documentclass{minimal}
\usepackage{verbatim}
\begin{document}
\verbatiminput{testfile.tst}
\end{document}
I know what you don't get (file overwriting
and environment placement options), but is
there anything you do get from the filecontents*
environment that is not offered by the
verbatimwrite environment?
Not really. It's just a way to provide an external file with _standar=
d_=20
LaTeX and I use it regularly for small examples like this. Sometimes =
you=20
want to provide a small package for a user and using the filecontents=
=20
environment is much safer to use than to have the user cut and paste =
=66rom=20
an email and storing the file with the right filename etc.
--=20
Morten H=F8gholm

Poulton
2004-03-05 10:38:39 UTC
Permalink
Thank's for your help. I have found what was wrong : the bad character was
'²' and not '^'.
D. Poulton

-----Message d'origine-----
De : miktex-users-***@lists.sourceforge.net
[mailto:miktex-users-***@lists.sourceforge.net] De la part de Morten
Høgholm
Envoyé : vendredi 5 mars 2004 10:35
À : miktex-***@lists.sourceforge.net
Objet : Re: [MiKTeX] Verbatim envirnment
Post by Poulton
Hi,
I am faced with a problem using the verbatim package. I'm inserting
some listings using \verbatiminput{File}. However, my problem is that
in the File, appear some '^' characters; so at compilation time by
Latex, I obtain the error
! Missing $ inserted.
You could show us what you do with a minimal failing example, because you're
definitely doing something wrong. This works:

\begin{filecontents*}{testfile.tst}
Does ^ cause an error? Nope.
\end{filecontents*}
\documentclass{minimal}
\usepackage{verbatim}
\begin{document}
\verbatiminput{testfile.tst}
\end{document}

Possibly you're using \input somewhere instead of \verbatiminput.
--
Morten Høgholm




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick
Continue reading on narkive:
Loading...