# Tag Info

10

You can set the paper size manually using geometry \documentclass{article} \usepackage[paperwidth=21cm,paperheight=500cm,margin=1in]{geometry} \usepackage{lipsum} \begin{document} \lipsum[1-150] \end{document} But 500cm is not infinite. You can use standalone class as suggested by touhami so that height is adjusted automatically. ...

8

Here you go (adjust the settings according to your needs): \documentclass[compress]{beamer} \usetheme{sthlm} \usepackage{ booktabs, datetime, dtklogos, multicol, pgfplots, ragged2e, tabularx, tikz, wasysym } \pgfplotsset{compat=1.8} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{newpxtext,newpxmath} \usetikzlibrary{ backgrounds, ...

7

I introduce a \newcounter{pagecntr}[chapter] which will be set to zero for every new chapter. I did not manage to set it directly to 1. That's why I needed to do the ugly \setcounter{temp}{\thepagecntr}\stepcounter{temp}\thetemp every time I want to print it. I guess, there are better approaches, but well... doesn't matter, it works. The final trick is to ...

5

When you make the page style for the front matter, don't worry about the verso pages. They are easier dealt with separately. Completely blank pages are much easier than what you seemed initially to be asking for ;). I'm assuming you want at least two different heading page styles: one for the front matter and one for the main matter. If they don't need to ...

4

I wouldn't use any packages for this; I'd just use some \hfills: \documentclass[12pt]{article} \usepackage[letterpaper, left=19mm, right=19mm, top=2.54cm, bottom=2.54cm, headheight=31pt]{geometry} \usepackage{amssymb} % set the font of the document \usepackage{fontspec} \setmainfont{Arial} \usepackage{titling} \usepackage{setspace} \setstretch{1.15} ...

3

Here's one way to achieve what you want (since internal calculations are involved you need to run the code at least twice for the rules to reach their final position): \documentclass[ 11pt, a4paper, twoside, openright, ]{scrbook} \usepackage{tikz} \usetikzlibrary{babel} \usepackage{lipsum} \usepackage{scrlayer-scrpage} \newcommand\tikzmark[1]{% ...

3

You could use \ifthispageodd to decide if the rule should go to the left or to the right and \makebox[0pt]... to hide the length of the \rule. \documentclass{scrbook} \usepackage{lipsum} \usepackage{scrlayer-scrpage} \ohead{% \ifthispageodd{\makebox[0pt][l]{\rule[-5pt]{\paperwidth}{.4pt}}}{}% \headmark% ...

3

Without information about the documentclass you are using or the type of document you are writing, I wrote a quite "basic" answer. This can be easily achieved with the fancyhdr package; the default style is: \fancypagestyle{DefaultStyle}{% \fancyhead{} %Clean headers \fancyhead[RO]{\slshape \leftmark} \fancyhead[LE]{\slshape \leftmark} ...

3

You can use a \raisebox to vertically move the image to the desired location; adjust the settings according to your needs: The code: \documentclass[12pt]{article} % set the font of the document \usepackage{fontspec} \setmainfont{Arial} \usepackage[letterpaper, left=19mm, right=19mm, top=2.54cm, ...

2

Use \rlap and \llap: \input plipsum \headline={% \ifodd\pageno \hfill{\it Chapter title}\rlap{\qquad{\bf\folio}}% \else \llap{{\bf\folio}\qquad}{\it Chapter title}\hfill \fi } \footline={} \lipsum{1-20} \bye Instead of “Chapter title” you may want variable data, that's left as an exercise about marks.

2

if you're trying to "copy" the texbook, take a look at the file manmac.tex in the .../tex/plain/base/ directory of a tex live distribution. that file contains the macros used for knuth's computers & typesetting series. i haven't checked, but an educated guess says that \llap and \rlap are involved. this is confirmed by another experienced user.

2

Possibly this might be a helpful beginning which I've expanded a bit in light of the additional information about your bibliography. Note that I had to expand your example considerably in order to reproduce this as yours did not provide the resources required. Also, I had to invent a definition for \lsstyle. This customises the footers as requested, as far ...

2

Below I've updated \chapter (thanks to xparse) to change the page style for only the first page of the chapter. The new page style - called chapter - can be updated to whatever you like using the regular fancyhdr styling. For example, the following removes all traces of it - both the header and the footer, as well as the rules: \fancypagestyle{chapter}{% ...

2


2

Here is an additional suggestion using scrlayer-scrpage instead fancyhdr. The pagestyle scrheadings is defined without the chapter pagenumber in the header and an alias Normal is set for this pagestyle. Then scrheadings is cloned to page style Specialadding the chapter pagenumber in the header. The onbackground hook for @everystyle@ is used to step the ...

2

The following provides a \label-\ref approach to your "last reviewed date" display. It uses zref to create a "property" called lastrevieweddate which stores the last known argument supplied to \lastreviewedon{<stuff>}. \documentclass{memoir} \usepackage{xcolor,zref} \definecolor{accentcolor}{HTML}{D33900} \definecolor{fadedgreycolor}{HTML}{888888} ...

2

One quick way is to add the line \lhead[]{} to the preamble. This will override the setting \lhead[The Winnower]{The Winnower} in the class file. Also, if you don't like the top rule, you can add the following line as suggested by @GonzaloMedina in a comment \renewcommand\headrulewidth{0pt} The template and .cls file can be found here. A ...

2

If you want a header to be only on the cover page, then it is not a header at all. You could just include a text with altered font at the top of the page with desired alignment (XeLaTeX makes this a little easier for me).

1

The design is your own decision. But, if you need this, then tikz is a good choice. Here is a MWE: \documentclass[12pt,a4paper]{article} \usepackage{tikz} \begin{document} Some text here ... \begin{figure}[!hbtp] \tikz[overlay,remember picture]{\node at(current page.north west)[anchor=north west,font=\bfseries]{Fig. \ref{fig:f1}};} ...

1

Here is a suggestion using package scrlayer to define a new layer pagestyle for the landscape pages. Note that you can still use fancyhdr or scrlayer-scrpage for the header and footer on the other pages. \documentclass[twoside]{report} \usepackage{pdflscape} \usepackage{lipsum} \usepackage{scrlayer} \DeclareNewLayer[ background, oddpage, textarea, ...

1


1

Although you could use \MakeUppercase, as suggested in comments, it's safer to load the textcase package and use \MakeTextUppercase instead (in case, eventual math contents or \refs or \cites go in the title): \documentclass[11pt,twoside]{book} \usepackage{titleps} \usepackage{textcase} \newpagestyle{Brill}[]{% ...

1

Here is a modified version of the code from Inserting predefined paragraph numbers in page header. I think that this does what you want. What I have one is made \chapter set a flag \IsNewChaptertrue which is then used by the \section command to determine whether or not it should start a new page using \clearpage. I think that I tested this when I was ...

1

Another possibility is using package scrlayer-scrpage. Then you can redefine the command \chaptermarkformat to get the desired layout. MWE: \documentclass[twoside]{report} \usepackage{blindtext}% dummy text \usepackage[automark,markcase=noupper,headsepline]{scrlayer-scrpage} \clearpairofpagestyles \ohead{\leftmark} ...

1

You should specify top together with the includehead setting: \documentclass{article} \usepackage[showframe,includehead,top=5mm]{geometry} \usepackage{lipsum, fancyhdr} \pagestyle{fancy} \fancyhf{} \fancyhead[R]{A header plus the page number: \thepage} \begin{document} \lipsum \end{document} From the geometry user's manual, Figure 2 displays the ...

1

Does this solution work for you? \documentclass{beamer} \usefonttheme{serif} \setbeamerfont{title}{series=\bfseries,parent=structure} \setbeamerfont{frametitle}{series=\bfseries,parent=structure} \title{Test} \begin{document} \begin{frame} \titlepage \end{frame} \begin{frame} \frametitle{Test} Test \end{frame} ...

1

1

Put the blue box inside a box of 0pt width: \lhead{\makebox[0pt][r]{\insertlogo~}\LARGE{\textbf{Lebenslauf}}} Full code: \documentclass[a4paper,12pt,ngerman]{article} \usepackage{babel} \usepackage{tikz} \usepackage{fancyhdr} \usepackage{color} \usepackage[a4paper,%showframe, left= 2.5cm, % linker Rand right= 1.99cm, % ...

1

A variation on the Harish Kumar's answer, but now the box goes all the way from the left margin to a distance controlled by \LogoSep (default=10pt) from the text area: \documentclass[a4paper,12pt,ngerman]{article} \usepackage{babel} \usepackage{tikzpagenodes} \usepackage{fancyhdr} \usetikzlibrary{calc} \usepackage[a4paper,%showframe, left= 2.5cm, ...

1

I suggest you use the first solution and just correct the numbering of the appendix subsections in the way you do in the second version. This results in empty descriptions in the headings in the appendix; it is not clear to me whether that is what you want or not, but it is better than a wrong heading. \documentclass{article} ...

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