Search found 25 matches

by gkamel
Sat Oct 16, 2010 1:04 pm
Forum: Page Layout
Topic: Fancyhdr footer appearing on previous page
Replies: 0
Views: 1122

Fancyhdr footer appearing on previous page

Hello,
I am having a bit of a problem with fancyhdr footers. If I set the footer at the end of a paragraph occupying no more than a single line on the current page, the footer gets placed from the previous page on which the footer is set. If I set the footer at the end of a paragraph occupying more ...
by gkamel
Fri Apr 16, 2010 12:57 pm
Forum: General
Topic: Splitting a string at the last comma
Replies: 2
Views: 2149

Splitting a string at the last comma

Joseph, many thanks for your reply.. after a small correction, it worked perfectly --- the second line should be:

Code: Select all

\expandafter\SplitMyMacroAux\MyMacro\stop
Thanks again.
by gkamel
Fri Apr 16, 2010 11:39 am
Forum: General
Topic: Splitting a string at the last comma
Replies: 2
Views: 2149

Splitting a string at the last comma

I have the following macro:

Code: Select all

\def\MyMacro{{a,b,c},5}
and I would like to separate the 'a,b,c' part into one macro, say \MyMacroLeft, and the '5' into another macro, \MyMacroRight. Could anyone give me some hints as to the most efficient way of achieving this.

Many thanks.
by gkamel
Thu Oct 01, 2009 12:51 pm
Forum: General
Topic: Eliminating 'complex' ligatures in ArabTeX
Replies: 1
Views: 1906

Eliminating 'complex' ligatures in ArabTeX

I am working on a book containing Arabic and Enlish text in parallel columns, and am using ArabTeX to produce the Arabic. However, I am faced with a problem of lines overlapping due to ArabTeX automatically outputting ligatures of certain letter combinations, e.g. 'lam' followed by 'meem', whereby ...
by gkamel
Wed Mar 25, 2009 10:42 am
Forum: General
Topic: Token not allowed - babel (arabic) and hyperref conflict
Replies: 0
Views: 2532

Token not allowed - babel (arabic) and hyperref conflict

Hello,

I am using babel with hyperref, but get the following message repeated several times during compile when I include arabic (provided by the 'arabi' package) as an option of babel:

Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding)
The default document language is ...
by gkamel
Wed Mar 18, 2009 8:04 pm
Forum: Text Formatting
Topic: Preventing text wrapping in fancyhdr headers
Replies: 3
Views: 4106

Re: Preventing text wrapping in fancyhdr headers

It turns out that the problem is unique to my document, as the headers do not wrap if I use a minimal document. So I'll try to cut down my document to see what could be causing it, and post anything back here that may be of use to others.

Thanks.
by gkamel
Wed Mar 18, 2009 10:18 am
Forum: Text Formatting
Topic: Preventing text wrapping in fancyhdr headers
Replies: 3
Views: 4106

Preventing text wrapping in fancyhdr headers

Thanks, Thorsten, but LaTeX throws up an error as there is a linebreak in an \mbox due to the wrapping.

NB. the code in my first post should have read:

Code: Select all

\fancyhead[L]{\leftmark~::~\rightmark}
(missing the [L]). But regardless of this, the wrapping issue remains.
by gkamel
Wed Mar 18, 2009 9:39 am
Forum: Text Formatting
Topic: Preventing text wrapping in fancyhdr headers
Replies: 3
Views: 4106

Preventing text wrapping in fancyhdr headers

Hello,

I am using fancyhdr to print the section and subsection name as follows

\fancyhead{\leftmark~::~\rightmark}
however, fancyhdr wraps it just before the text reaches the centre header position. Is there a way of preventing the text from wrapping? I have checked the manual, these forums, and ...
by gkamel
Tue Mar 17, 2009 7:16 pm
Forum: Document Classes
Topic: Adjusting the space after section headings in the book class
Replies: 4
Views: 10450

Adjusting the space after section headings in the book class

Thank you very much, Thorsten; titlesec did the job..

Code: Select all

\titlespacing*{<cmd>}{<left sep>}{<before sep>}{<after sep>}[<right sep>]
Kind regards.
by gkamel
Mon Mar 16, 2009 6:03 pm
Forum: Document Classes
Topic: Adjusting the space after section headings in the book class
Replies: 4
Views: 10450

Re: Adjusting the space after section headings in the book class

Thanks for the reply, Thorsten.

Actually, this is the package I am using already, and I just noticed that \setstretch does not affect the space after section headings as you mentioned. But I would like to change the spacing nonetheless, as it's to large for my liking.

Thanks a lot.