GeneralNeed some suggestion

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Cylian
Posts: 6
Joined: Tue Aug 26, 2008 11:33 am

Need some suggestion

Post by Cylian »

All LaTeX gurus and TeXperts,

I am very new to LaTeX system, using MikTeX 2.7 (complete) and WinEdt 5.6, I would like to create a document which must have some properties as follows (all measures in inches, and in points while font-size):
  • 1. Page-height: 11.26", Page-width: 8.26", Text-height: 7.5" and Text-width: 4.53", these values must be maintained throughout the document.
    2. Width of all tables and longtables must not exceed the Text-width value (i.e., 4.53").
    3. Verso pages should contain like [<page-number><0.25" space><title in bold>] and all left-aligned, where the recto pages would like [<author-names>~\maltese ~<section-head in bold><0.25" space><page-number>] and all right-aligned. There should be no page footers in the document.
    4. All section-heads would be "Helvetica Bold" (14pt), and sub-sections are in "Helvetica Light"(12pt). All body text (except equations) should be "Janson Text Roman" (9pt), text within tables would be 7pt.
    5. Vertical space within normal paragraphs would be 0.04", this measure would be 0.25" and 0.2" before and after sections and subsections respectively.
    6. First letter of first paragraph after each section sould be a "three lines spreaded drop cap".
So, to get desired result I proceed likewise:

Code: Select all

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[9pt]{book}
\usepackage[text={4.53in,7.5in},centering]{geometry}                %to set page lengths
\usepackage{fancyhdr}                                               %for drop cap
\usepackage{tabularx}                                               %to control table width
\usepackage{booktabs}                                               %to control horizontal lines within tables
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\paperwidth=8.26in
\paperheight=11.69in
\topmargin=.75in
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{fancyplain}
%% some redefination of the headers and footers
\renewcommand{\chaptermark}[1]%
                 {\markboth{#1}{}}
\renewcommand{\sectionmark}[1]%
                 {\markright{\thesection\ #1}}
\lhead[\fancyplain{}{\thepage}]%
      {\fancyplain{}{\rightmark}}
\rhead[\fancyplain{}{\leftmark}]%
      {\fancyplain{}{\thepage}}
\cfoot{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\rmdefault}{pjn}                                     %to set janson text as default font
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
...
\end{document}
For displaying equations, I used \begin{align}***\end{align}. And for quotations, \begin{quotation}***\end{quotation}. When a table appears within a listed quotation, coded likewise:

Code: Select all

\begin{quotation}
\begin{enumerate}
\item[1.] Data...\par
\begin{tabularx}{10cm}{lrXrXrX}***\end{tabularx}
\par
\item[2.] Data...\par
\item[3.] Data...\par
\end{enumerate}
\end{quotation}
The spacing between paragraph previous to the list changes abruptly, measuring almost 1.5"!!!
I tried a lot to recover, but all went in vein.

There's a more problem, I couldn't able to manage the length of the "\hline" within tabularx.

Thorsten told me to use booktabs, to maintain the length of "\hline". I tried but still I need some code examples to use "booktabs" with "tabularx".

If someone told me if there any wrong segments in my code. Or if someone told me how could I solve my problem, I would be highly obliged. All suggestions/guidances are welcome.

Thanks in advnace.

Regards,
Cylian

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

Cylian
Posts: 6
Joined: Tue Aug 26, 2008 11:33 am

Re: Need some suggestion

Post by Cylian »

If there nobody to help me. I need your help urgent. :cry:
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Need some suggestion

Post by gmedina »

Hi Cylian,

that's a lot of questions for just one post ;) . There are some issues that I can help you to solve, but some others require some effort and I do not have enough time right now. To get the dropped capitals you can use the lettrine package.

Besides, I would suggest you to ask one of the Moderators (sending a PM to Stefan_K or localghost) to move this thread to another subforum; perhaps to
LaTeX->General
You opened the thread in the LaTeX Distributions -> Decision Guidance subforum, and this subforum is not the appropriate one. Your thread belongs to LaTeX -> General and in that subforum there are more chances to get solutions to your problems.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Need some suggestion

Post by localghost »

Some questions can be answered very shortly by only giving a suitable package for customization.
You will have to read the documentations of these packages because explanations would be too much here.


Best regards
Thorsten¹
Post Reply