# Tag Info

2

2

I think the key challenge is that not all textile tools that use pdf are known to work for higher versions, so it is easier to produce a stable pdf by default that is known to render on all channels in all viewers, etc.

2

Simply compile directly with pdflatex. pdflatex book.tex Alternative you can view the used commands in texstudio under settings. Background: The Information about the document structure is lost when compiling to dvi first and then to pdf.

2

In PDFTeX, image resources are sequentially numbered as they are included. The associated PDF object number of the XObject can be retrieved with \pdflastximage. You could record this relationship by writing it into a textfile during typesetting and then let it be used by your external programme to replace the XObject content stream with the desired one (the ...

1

I would go with a conditional to abstract the backend differences \ifdefined\XeTeXversion \protected\def\myspecial#1{\special{pdf:content q #1 Q}} \else \protected\def\myspecial#1{\pdfliteral{q #1 Q}} \fi \myspecial{% 0 G 0.4 w 0 8 m 2 10 l 0 6 m 4 10 l 0 4 m 6 10 l 0 2 m 8 10 l 0 0 m 10 10 l 0 -2 m 12 10 l 0 -4 m 14 10 l 0 ...

1

\includepdf takes the option addtotoc={page number, section, level, heading, label} So you can do: \documentclass{article} \usepackage{pdfpages} \begin{document} \tableofcontents \section{Lesson 1: Introduction} \includepdf[pages=-,addtotoc={ 1, subsection, 1, Introduction, L1:1, 2, subsection, 1, Introduction/Classification of ...

1

This will work on selected pages. In this case pages 2-3. \documentclass{article} \usepackage{everypage} \usepackage{tikz}% not really needed, but easier than \rlap{\hspace{-1in}\raisebox{1in}[0pt][0pt]{...}} \usepackage{lipsum}% MWE only \AddEverypageHook{% do pages 2-3 \ifnum\value{page} > 1 \ifnum\value{page} < 4 \begin{tikzpicture}[overlay, ...

1

You can use the package bookmark, the option startatroot resets the hierarchy after the frontmatter: \documentclass{report} \usepackage{hyperref} \usepackage{bookmark} \title{My document} \author{Myself} \begin{document} % Top-level front matter bookmark \pdfbookmark[-1]{Front Matter}{frontmatter} \maketitle % Abstract bookmark \pdfbookmark[0]{\...

1

Create a new file with the titlesec settings where you can load titlesec with the desired options, like center, tiny and bf: % titlesec-conf.tex \usepackage[bf,tiny,center]{titlesec} Or you can specify each sectioning level with \titleformat: % titlesec-conf.tex \usepackage[bf,tiny,center]{titlesec} \titleformat {\chapter} {\centering\bfseries\large\...

1