Tag Info

7

You could do something like \def\mydoublerule#1#2#3{%% \hrule width#1 height#2 \vskip#2 \hrule width#1 height#3 } Where #1 is the width or the rule #2 is the height of the first rule #3 is the height of the second rule Here's a MWE \documentclass{article} \usepackage{lipsum} \def\mydoublerule#1#2#3{%% \hrule width#1 height#2 \vskip#2 \hrule ...

6

The following uses fancyhdr which provides \headrule and can be easily changed. It's been updated to set a rule of width 1pt, followed by a 1pt gap, followed by a rule of with 2.5pt: \documentclass{article} \usepackage{fancyhdr}% http://ctan.org/pkg/fancyhdr \pagestyle{fancy} \renewcommand{\headrulewidth}{2.5pt} \makeatletter ...

5

\thepage gives the value of the counter page. It is not advisable to redefine \thepage and it is wrong IMO (don't do it). You will be messing with the page numbers. A proper way will be as the following: \documentclass[twoside]{article} \usepackage[a4paper,margin=1in,heightrounded,headheight=16pt]{geometry} \usepackage{fancyhdr} \usepackage{lipsum} ...

5

Here is one option: Don't use overlay at all. \documentclass{article} \usepackage{lipsum,tikz} \usepackage[margin=1in,showframe]{geometry} \begin{document} \noindent \hspace*{-2mm} \begin{tikzpicture} \coordinate (my spot) at (0,0); \fill[blue] (my spot) circle (1mm); \node[above right,align=left,blue,draw=blue,thick,outer sep=0pt] at (my spot) ...

5

Without a MWE it is difficult to guess what you are trying to do... Hope this is what you want. With the help of \AddToShipoutPicture from the eso-pic package we create a "second header" in the document where to write the needed information. \documentclass{article} \usepackage{eso-pic} \usepackage{fancyhdr} \usepackage{blindtext} % just for the example ...

5

If a presentation using your theme always has a title page, which is usually the first page, then one can define the template for footline to be different for the first page. To implement this, one can use the \ifnum expression: \defbeamertemplate*{footline}{my footline} { \ifnum \insertpagenumber=1 <definition of footline style on page 1> ...

4


4

Probably this is what you want: Code: \documentclass[12pt,a4paper]{report} \usepackage{array} \newcolumntype{M}{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{1.5cm}} \begin{document} \begin{center} \begin{tabular}{|M|m{3cm}|M|M|M|M|} \hline \textbf{Q} & \textbf{Header one} & \textbf{Test \newline Text4} & \textbf{Test1 \newline ...

4

The command \ULCornerWallPaper doesn't accept any offset, but \CenterWallPaper does. You can use the lengths \wpXoffset and \wpYoffset to adjust the position in the page. In the example below I've set \addtolength{\wpXoffset}{-5.8cm} \addtolength{\wpYoffset}{12.5cm} but you will have to change these values to accomplish the positioning of your image. ...

4

You can do this with tikz and background packages too. Unlike wallpaper these two packages allow you to put the picture anywhere in the page. I have given an example with tikz below. \documentclass{article} \usepackage{lipsum}% http://ctan.org/pkg/lipsum \usepackage{tikz} \usetikzlibrary{calc} \usepackage[margin=2.8cm]{geometry} \begin{document} ...

3

If I understand correctly, you want the footer only in the last page. This can be achieved in the following way: Put \pagestyle{empty} just after \makecvtitle to remove the footer from all pages. Put \thispagestyle{plain} just before \end{document}. This ensures that the last page has the footer (note that moderncv redefines and uses the plain style). ...

3

there are two problems here: omit the page number from the title page. this can be done by adding \thispagestyle{empty} after \maketitle. change the page number after the pdf-page (which is now 2) to 3. this can be done by inserting \stepcounter{page} after the \clearpage.

3

Use the center field, without redefining \headrule: \documentclass{scrbook} \usepackage{fancyhdr} \usepackage{picture} % directly specify lengths with their unit in picture commands \usepackage{lipsum} % Display box around header \usepackage{eso-pic} \AddToShipoutPictureFG{ \AtTextUpperLeft{% \put(0,\headsep){% ...

3

You have to handle with \leftmark and \righmark. The example shows you one way. For more information you should read the manual of fancyhdr: http://ctan.org/pkg/fancyhdr \documentclass{book} \usepackage{fancyhdr} \rhead{\leftmark} \lhead{} \pagestyle{fancy} \usepackage{blindtext} \begin{document} \Blinddocument \end{document}

3

If you want only the top margin of the first page to be modified, you can use \vspace*{1in}: \documentclass[a4paper,10pt,oneside]{article} \usepackage[english]{babel} \usepackage[letterspace=150]{microtype} \usepackage{fancyhdr} \usepackage[top=1.5in,bottom=1.5in,right=1.5in,left=1.5in,headheight=95pt,headsep=-0.5cm]{geometry} \usepackage{lipsum} ...

3

After \pagestyle{fancy} it's usually better to say \fancyhf{} that clears all the six fields, so that you can decide what to put in each one. If you don't specify \fancyfoot, nothing will go in the footer. \documentclass{article} \usepackage{lipsum,fancyhdr} \pagestyle{fancy} \fancyhf{} \fancyhead[L]{My name} \fancyhead[R]{My affiliation} \begin{document} ...

2

There exists no \partmark in the default book.cls. As such, you also need to update \part to appropriately insert a newly-defined \partmark. The following MWE does exactly this using an etoolbox patch: \documentclass{book} \usepackage{fancyhdr,lipsum,xcolor,etoolbox} \makeatletter \patchcmd{\@part}% <cmd> {\markboth{}{}}% <search> ...

2

A new verion, after clarification. No additional packages used. Each column is a separate table. $'s left, however rather unneeded. \documentclass{article} \begin{document} \def\barr{\begin{tabular}{l}} \def\earr{\end{tabular}} \begin{tabular}{|c|l|c|c|c|c|} \hline$\textbf{Q }$& \barr$\textbf{Header one}$\earr & \barr$\textbf{Test}\$\\ ...

2

Sorry to add my late answer but this can be done without the use of any package, just by adding at the end a label \label{LastPage}. The total number of page being a \pageref{LastPage}. Hey, but this doesn't work with complex page numbering ??!! Well, that's not true : One has to put the label at the end of the part where total page number is required. To ...

2

2

To remove the header & footer completely, you can make the page style in use equivalent to the empty page style: \begingroup \makeatletter% Allow use of restricted @ in control sequences \let\ps@fancy\ps@empty% Make fancy page style equivalent to empty page style \tableofcontents \clearpage \endgroup The use of \begingroup...\endgroup localizes the ...

2

The problem is that the title is too long in that particular chapter, so the whole title page block gets moved to the next page, which is numbered. You can change your chapter macro so that the title is set in a box of a fixed height: write \parbox[t][height]... and include some \vspace at the end that can stretch or shrink: \documentclass[10pt]{book} ...

2

The fancyhdr package is immune to this problem. It might also be an easier option for creating your multi-line header. \documentclass{article} \usepackage{setspace} \usepackage{lipsum} \usepackage{fancyhdr} \doublespacing \pagestyle{fancy} \lhead{\begin{tabular}{rl} Author: & author\\ Title: & tile\\ Date: ...

2

Here is another MWE: \documentclass{article} % Adjust the height 1pt and \kern 1pt with equal dimension \newcommand{\sline}{% \hrule height 1pt width \hsize \kern 1pt \hrule width \hsize height 2pt% } \begin{document} \sline \end{document}

2

Don't use utf8x, at least until it is updated; prefer utf8. The problem is due to the page break when LaTeX is typesetting Greek verses. Just use \fancyhead{} % clear all fields \fancyhead[RO,LE]{\fontencoding{T1}\selectfont\leftmark} \fancyfoot{} % clear all fields \fancyfoot[LE,RO]{\fontencoding{T1}\selectfont\thepage} so that the headers and footers ...

1

I'll do with the assumption that you don't want the header in the chapter starting page: \documentclass[12pt, a4paper, reqno,oneside]{book} \usepackage{amsmath,amsxtra,amssymb,latexsym, amscd,amsthm} \usepackage{fancyhdr} \usepackage{lipsum} % just for the example \pagestyle{fancy} \fancyhf{} \fancyhead[L]{gggggggggggggggggggg} ...

1

The two lines with changes are marked % PS. Only the position of tables have been corected. \documentclass[oneside]{scrartcl} \usepackage[headsepline]{scrpage2} \usepackage{lipsum} \setlength{\headheight}{18ex} \automark{section} \defpagestyle{mystyle}{ % {} % {} % {\parbox{5cm}{logo \\ \medskip \hspace{0.15cm} www.awwwwr.com} \hfill \parbox{5cm} ...

1

Your outer theme should use \insertsectionhead instead of \insertsection: \documentclass{beamer} \begin{document} \section[Short section 1 title]{Long section 1 title} \begin{frame} \frametitle{F1} Long title: \insertsection Short title: \insertsectionhead \end{frame} \section[Short section 2 title]{Long section 2 title} \begin{frame} ...

1

The problem is when the headers with Greek characters are being prepared. If you have an up-to-date TeX distribution, just get rid of utf8x and use the utf8 option. I added a patch for the proof environment that uses boldface for the word ‘Proof’ and a colon instead of the period, so you can use it instead of defining another environment. ...

1

I found the answer by myself. We can change the value of \footskip which represents the vertical space between the bottom of footer box and the bottom of the text area. I draw the figure below to exemplify this. Also you can play a little with the GeoGebra construction here showing those variables.

Only top voted, non community-wiki answers of a minimum length are eligible