Home Forums HCL Reviews Tutorials Articles Register Search Today's Posts Mark Forums Read
 LinuxQuestions.org some question with latex in slackware 12.1
 Slackware This Forum is for the discussion of Slackware Linux.

Notices

04-04-2009, 08:19 PM   #1
jr_bob_dobbs
LQ Newbie

Registered: Mar 2009
Posts: 24

Rep:
some question with latex in slackware 12.1

A project has emerged and it necessitates going from ascii text files to a pdf that, when printed, will make a printout whose size is that of a paperback book, aprox. six and three quarter inches in height by four an one eight inches in width.

Code:
latex < try_tex.txt
From the turtorials that I have read on latex/tex, I had assumed that this would create some intermediate file that would in turn need to be converted to ps and then pdf. To my surprise, that command went direct to pdf. nice! I'm guessing this must be something that was put in to slackware or something.

Anyway, the majority of my question and and concerns with using latex have already been solved by googling and browsing tutorials.

The test text file we are using as part of our figuring-it-out process is
Quote:
 \documentclass[openright,10pt]{book} \usepackage[pdftex]{graphicx} % to force page size, I hope % sizes from measuring an american-printed paperback book %\pdfpagewidth 4.125in %\pdfpageheight 6.75in \title{A Paperback Book Sized Attempt} \author{My Name} \begin{document} % set titles before this line but maketiele *after*! \textrm % force roman font - might not be needed? \maketitle % sets title for the whole documnet, set beforehand via title commend \chapter{Arrival} your stuff here \newpage % force a page break more stuff \emph{this part italic} \chapter{A further developement} It seems that there is a bug where the first paragraph is not indented. Bad show. To work around this bug (we'll never fix it) we tried the commands of two back-slashes to start a new paragraph. This failed. Also tried were preceding the pargraph with a backslash and a asterisk. This failed. Then was tried and asterisk and a backslash. This also failed. And now, some more more stuff, such as some properly `quoted' text'' A dash comes though as itself, nice. two dashes become a hyphen -- , a slightly longer dash. Longer still, the em-dash --- uses threee To get that three dots aka ellipsis \ldots although if you type three periods ... they will be printed as three periods but won't look the same. So, the questions are as follows. How to set the actual page size, in inches, using some method other than thepdfpagewidth and pdfpageheight commands. How to fix it so that the first paragraph of a chapter is intended as are the following paragraphs. \end{document}
Here are my two questions:

QUESTION ONE:

The first paragraph of a chapter is not indented. Yet all other paragraphs are. Preceding the paragraph with "*\" or "\*" (and some other things that I did but then forgot) did not work. How does one specifically tell latex "hey, turkey, do the first pargraph like the others!"

QUESTION TWO:

how to actually set the page size. There are options for letter, legal and a4, but no way to say "hey, do it this many inches by that many inches". Well, actually, there is one way, but it fails to work so it will be discounted. This failing non-working way is to use the
pdfpagewidth and pdfpageheight commands.

.

.

 04-05-2009, 01:09 AM #2 astrogeek Senior Member   Registered: Oct 2008 Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1} Posts: 2,457 Rep: Maybe this will help... Hi jr_bob_dobbs, I do not have an answer to your specific questions, and am not a LaTeX expert, but I use LyX almost daily under Slackware 12.1 and as far as I know there is nothing 'special' about LaTeX under Slackware. I have always been able to get my LaTeX documents to behave well. That being the case, you might do better to ask this in a Latex specific forum. A quick google found this one... http://www.latex-community.org/forum/ And you might also ask in the LyX forums - lots of LaTeX knowledge there too! http://lyx.org/ Good luck!
04-05-2009, 09:40 AM   #3
BCarey
Senior Member

Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,523

Rep:
Quote:
 Originally Posted by jr_bob_dobbs QUESTION ONE: The first paragraph of a chapter is not indented. Yet all other paragraphs are. Preceding the paragraph with "*\" or "\*" (and some other things that I did but then forgot) did not work. How does one specifically tell latex "hey, turkey, do the first pargraph like the others!"
Try the package "indentfirst"

Brian

04-05-2009, 01:38 PM   #4
jr_bob_dobbs
LQ Newbie

Registered: Mar 2009
Posts: 24

Original Poster
Rep:
Quote:
 Originally Posted by BCarey Try the package "indentfirst" Brian
That worked. Thank you!!!!!!

@astrogeek: that makes sense, and I will have to look into that.