Post by Peter FlynnPost by a***@gmail.comPost by Werner GrundlinghPost by AikidoGuyHi,
Yes, I understood that one. Sorry for not giving it as an example.
My question was for a general box. To be more specific... I use
gnuplot to create a LaTeX picture that I \input{}. The main wrapping
macro seems to be "\begingroup". I don't know anything about it, but
I thought that it might be a "box" that I could \resizebox{}{} or
perhaps, if such a command exists... to \cropbox{}.
My motivation was because the generated gnuplot image has extra
whitespace that I would like to crop off. Yes, there might be a way to
change an option in gnuplot to fix this problem, but I thought an
"easier" way would be to use a latex macro (if one existed).
Thanks for any possible tips...
You mention that you use a Gnuplot IMAGE. Why not then use
\includegraphics[...]{...}?
I assumed the OP was not referring literally to a bitmap or vector
image, because of the reference to \input{}...I assumed the "image" was
actually the LaTeX "picture" that is referenced in the same sentence.
Post by a***@gmail.comPost by Werner GrundlinghDepending on your manual expertise with bounding boxes, I would
suggest the following if you have an image with extra whitespace
[1] Open image in EPS/PS image in Ghostview;
[2] Obtain pixel coordinates of lower left (lx, ly) & upper right
(ux, uy) that would remove the excess whitespace;
[3] Open the image in a text editor like VI/VIM;
[4] Find the %%BoundingBox phrase (usually close to the top of the
file);
[5] Replace the existing set of 4 digits with your 'lx ly ux uy'; and
[6] Include the image like you regularly would using \includegraphics
[...]{...} without any viewport option specified.
There is very little reason nowadays for using EPS images *in the LaTeX
job* (there are other very good reasons for using them during image
construction, adaptation, or conversion along the way, of course).
Post by a***@gmail.comFirst of all, i cant speak and i cant understand and.. i cant
writing english very well. So i excuse you for this. I read a lot of
comment about this subject. İ dont find thing or i cant understand.
You're doing very well!
Post by a***@gmail.com\includegraphics[lx,ly][ux,uy]
Is it mean of?: Put the image when size:(lx,ly) as it will coming
left down corner of coordinates be (ux,uy).
llx,lly = coordinates of the lower left corner
urx,ury = coordinates of the upper right corner
(see
http://mirrors.ctan.org/macros/latex/required/graphics/grfguide.pdf#page=9)
Post by a***@gmail.comWhat is the accepted unit of LaTeX document size?
The \includegraphics command lets you use any units (see the list in
http://latex.silmaril.ie/formattinginformation/handj.html#units)
but if the units are omitted, they default to 'bp', which are the Adobe
units used in Postscript and PDF documents.
///Peter
Post by a***@gmail.comPost by Werner GrundlinghPost by AikidoGuyHi,
Yes, I understood that one. Sorry for not giving it as an example.
My question was for a general box. To be more specific... I use
gnuplot to create a LaTeX picture that I \input{}. The main wrapping
macro seems to be "\begingroup". I don't know anything about it, but
I thought that it might be a "box" that I could \resizebox{}{} or
perhaps, if such a command exists... to \cropbox{}.
My motivation was because the generated gnuplot image has extra
whitespace that I would like to crop off. Yes, there might be a way to
change an option in gnuplot to fix this problem, but I thought an
"easier" way would be to use a latex macro (if one existed).
Thanks for any possible tips...
You mention that you use a Gnuplot IMAGE. Why not then use
\includegraphics[...]{...}?
I assumed the OP was not referring literally to a bitmap or vector
image, because of the reference to \input{}...I assumed the "image" was
actually the LaTeX "picture" that is referenced in the same sentence.
Post by a***@gmail.comPost by Werner GrundlinghDepending on your manual expertise with bounding boxes, I would
suggest the following if you have an image with extra whitespace
[1] Open image in EPS/PS image in Ghostview;
[2] Obtain pixel coordinates of lower left (lx, ly) & upper right
(ux, uy) that would remove the excess whitespace;
[3] Open the image in a text editor like VI/VIM;
[4] Find the %%BoundingBox phrase (usually close to the top of the
file);
[5] Replace the existing set of 4 digits with your 'lx ly ux uy'; and
[6] Include the image like you regularly would using \includegraphics
[...]{...} without any viewport option specified.
There is very little reason nowadays for using EPS images *in the LaTeX
job* (there are other very good reasons for using them during image
construction, adaptation, or conversion along the way, of course).
Post by a***@gmail.comFirst of all, i cant speak and i cant understand and.. i cant
writing english very well. So i excuse you for this. I read a lot of
comment about this subject. İ dont find thing or i cant understand.
You're doing very well!
Post by a***@gmail.com\includegraphics[lx,ly][ux,uy]
Is it mean of?: Put the image when size:(lx,ly) as it will coming
left down corner of coordinates be (ux,uy).
llx,lly = coordinates of the lower left corner
urx,ury = coordinates of the upper right corner
(see
http://mirrors.ctan.org/macros/latex/required/graphics/grfguide.pdf#page=9)
Post by a***@gmail.comWhat is the accepted unit of LaTeX document size?
The \includegraphics command lets you use any units (see the list in
http://latex.silmaril.ie/formattinginformation/handj.html#units)
but if the units are omitted, they default to 'bp', which are the Adobe
units used in Postscript and PDF documents.
///Peter
Really you understand me ::))) Thank you very much. İ will see at links. As a result my english is not so bad (Joke:)) very bad!) good work