Tag Info

New answers tagged

4

Since there is no example to work on here, this answer involves some guesswork, and is indebted to the suggestion from @cfr in the comments. I've included some comments in the code to explain it a bit. The crucial (and rather clever) idea given by @cfr is to turn on a special page style for the abstract, but suppress it on the first page only. ...


1

An alternative to Harish Kumar's approach, a third option is to define a new environment called tablehere that won't float as displayed below. \makeatletter \newenvironment{tablehere} {\def\@captype{table}} {} \makeatother Same idea for images \makeatletter \newenvironment{figuehere} {\def\@captype{figure}} {} \makeatother Code ...


4

Since this is for all the pages, you could use the background package: \documentclass{book} \usepackage[scale=1,opacity=1,angle=0,color=black]{background} \usepackage{tikzpagenodes} \usepackage{fancyhdr} \backgroundsetup{ contents={ \tikz\node[draw,text width=4cm,anchor=south east,inner sep=10pt,outer sep=0pt] {For office use only \\[10pt] ...


8

You can put tabular material inside the header. But if you use table (which is a float) it won't work. Also the chapter page is given plain page style by default. Hence you have to redefine the plain pagestyle to be fancy. \documentclass[twoside]{book} \usepackage{fancyhdr} \fancyhead{} \fancyhead[RO, LE]{ \begin{tabular}[b]{c} safasf ...


0

I don't have enough reputation to comment, but we found a (hacky) fix to this problem at Page numbering transition from frontmatter to mainmatter going wrong Hope its still useful


2

this may or may not work, but it's too complicated for a comment. hepthesis.cls loads scrbook.cls. scrbook.cls defines \mainmatter thus: \newcommand*\mainmatter{% \if@twoside\cleardoubleoddpage\else\clearpage\fi \@mainmattertrue\pagenumbering{arabic}% } hepthesis.cls does some fancy tinkering with \mainmatter: %% Environment for the thesis main ...


3

Classically (La)TeX has no knowledge of the physical paper size, it just sets up a text block area of a give width and height. The "page margins" were just an artifact of where the dvi driver positioned that text block on the page. PDF and pdftex change that a bit as pdftex is essentially its own driver so needs to be concerned with that aspect and the pdf ...


1

I suppose somewhere in the unknown (for us) files there is something like \usepackage[colorlinks,linkcolor=red]{hyperref}. With the snippet provided, there are no definitions that makes your table of contents (I suppose you're referring to the table of contents and not index, though in italian they are "indice") red. Likely, you will find this definition in ...


5

With a tabular \documentclass{article} \begin{document} \noindent \begin{tabular}{@{}p{0.35\textwidth}@{}p{0.3\textwidth}p{0.075\textwidth}p{0.2\textwidth}@{}} Major Professor: & & Date: & \\\cline{2-2}\cline{4-4} \rule{0pt}{3ex} & Professor name, Ph.D. & & ...


4

You can use the collect package: \documentclass{article} \usepackage{collect} \makeatletter \newenvironment{contsummary}[1] {\@nameuse{collect*}{contsum}{\par}{\par}{\subsection*{#1}}{}} {\@nameuse{endcollect*}} \makeatother \definecollection{contsum} \begin{document} \section{Contents summary} \includecollection{contsum} \section{Test section one} ...



Top 50 recent answers are included