LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-04-2009, 08:19 PM   #1
jr_bob_dobbs
LQ Newbie
 
Registered: Mar 2009
Posts: 24

Rep: Reputation: 1
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.


.

.

Thank you in advance
 
Old 04-05-2009, 01:09 AM   #2
astrogeek
Senior Member
 
Registered: Oct 2008
Distribution: Slackware: 12.1, 13.1, 14.1, 64-14.1, -current, FreeBSD-10
Posts: 1,956

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
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!
 
Old 04-05-2009, 09:40 AM   #3
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,476

Rep: Reputation: Disabled
Quote:
Originally Posted by jr_bob_dobbs View Post
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
 
Old 04-05-2009, 01:38 PM   #4
jr_bob_dobbs
LQ Newbie
 
Registered: Mar 2009
Posts: 24

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by BCarey View Post
Try the package "indentfirst"

Brian
That worked. Thank you!!!!!!

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
latex issues on slackware 12.0; does not run when non-root schatoor Linux - Software 2 04-04-2008 02:58 PM
Latex question spoonsha Linux - Software 6 08-16-2005 08:35 PM
Simple Latex Question Optimistic Linux - Software 6 07-18-2005 03:41 AM
Firefox problem and a question on latex mssm Suse/Novell 5 02-28-2005 08:30 AM
latex question about verbasem realos Linux - General 2 07-03-2003 09:43 AM


All times are GMT -5. The time now is 04:19 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration