LyXView Page Dimensions

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
insipidtoast
Posts: 128
Joined: Wed Jul 04, 2012 5:34 pm

View Page Dimensions

Post by insipidtoast »

The page layout makes it easy to specify the dimensions of the page, but how do I know what the default margins are?

I want to add pictures that maintain their aspect ratio based on how wide the page is from margin to margin. On a 6in×9in page it looks like 4.5in is the maximum width of a picture before it goes into the margins. But, how can I be sure?

Is there a better way (better unit of measurement) to measure margins and the width of pictures?
FYI:
I'm using windows with LyX 2.0 and MiKTeX 2.9
I'm designing a book using the Koma-script class

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

View Page Dimensions

Post by localghost »

You can use the layout package to display all relevant page and paper dimensions.


Thorsten
insipidtoast
Posts: 128
Joined: Wed Jul 04, 2012 5:34 pm

Re: View Page Dimensions

Post by insipidtoast »

Does that package also give me the pixel measurements of the page, so that I know how to crop and resize my images to fit them perfectly within the margins?

(My JPEGs are only measured in pixels when I view their properties)
FYI:
I'm using windows with LyX 2.0 and MiKTeX 2.9
I'm designing a book using the Koma-script class
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

View Page Dimensions

Post by localghost »

No. The primary unit in TeX is pt (postscript point). The relation between postscript point and pixel is 0.75 (or 1.333 respectively).
insipidtoast
Posts: 128
Joined: Wed Jul 04, 2012 5:34 pm

Re: View Page Dimensions

Post by insipidtoast »

Uggh - That's too much math!
FYI:
I'm using windows with LyX 2.0 and MiKTeX 2.9
I'm designing a book using the Koma-script class
insipidtoast
Posts: 128
Joined: Wed Jul 04, 2012 5:34 pm

View Page Dimensions

Post by insipidtoast »

I loaded the layout package in the Latex preamble, but I still don't see how I'm supposed to view all the dimensions of the margins, page, etc.

So then I took a look at this from the link you provided:

"The package defines a command \layout, which will show a summary of the layout of the current document. "

I also entered \layout in the preamble, then in the text, then in both, and every time it gave me an error.
Last edited by cgnieder on Mon Sep 10, 2012 11:42 pm, edited 1 time in total.
FYI:
I'm using windows with LyX 2.0 and MiKTeX 2.9
I'm designing a book using the Koma-script class
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

View Page Dimensions

Post by Stefan Kottwitz »

insipidtoast wrote:and every time it gave me an error.
It would be good if you would tell us the error message, each time you get an error. Otherwise it's hard to guess.

Stefan
LaTeX.org admin
insipidtoast
Posts: 128
Joined: Wed Jul 04, 2012 5:34 pm

Re: View Page Dimensions

Post by insipidtoast »

Oh I guess I just left out a space between the ERT and the next word in my document.

It just doesn't work to enter \layout in the preamble

Don't worry about it though.

Thanks for your help
FYI:
I'm using windows with LyX 2.0 and MiKTeX 2.9
I'm designing a book using the Koma-script class
Post Reply