When using the exam class, is there a way to change the formatting of \fillin[][] command so I can increase the vertical space between text and underline? please see the output of the following code  \documentclass[answers]{exam} \usepackage{amsmath,amsbsy,amssymb,amsthm,xcolor} \usepackage{blkarray,mathrsfs,amsrefs,amsfonts,enumerate,pifont,enumitem} \newcommand{\ans}{\vskip0.01in {\color{blue}\textbf{Answer:}}} \begin{document} \begin{questions} \question  $f(x) = x-1$ and $g(x) = \frac{1}{x+1},$ find: \begin{enumerate}[font=\color{magenta} \Large, label=(\alph*)]      \item $(g\circ g)(x)$ and $(g\circ g)(5)$             \ans \fillin[$(g\circ g)(x)=g(g(x))=\frac{1}{\frac{1}{x+1}+1}=\frac{1+x}{2+x}$ and $(g\circ g)(5)=\frac67$][4.5in] \end{enumerate}    \end{questions} \end{document}   Thanks
123987
I am using an exam package and the following code  \fillin[$P(X\le6)-P(X\le3)$][3.7in]   but there is an vertical space issue which I could not find a solution for it between the equation and the horizontal line. Please see the picture
119513
I need to display fractions within a table and it requires to set  \renewcommand{\arraystretch}{2.3}   The problem is that not all rows contain fractions, and in this cases the white space below and above is too big. I can tweak it manually with something like \\[-2ex]. This works for the middle cases, though its a little inconvenient, but I have no idea how to reduce the absolute top space.   Something like   \vspace{-2ex}   has no effect.  The best would be to be able to change the arraystretch for a single table row, but the command has no effect after \begin{tabular}. How can I solve this issue?    MWE  \documentclass{article}  \usepackage{amsmath} \usepackage{booktabs}  \begin{document}  \begin{table}     \renewcommand{\arraystretch}{2.3}      \begin{tabular}{@{}c|l@{}}             \bfseries $R_x$ &amp; Symbol\\             \hline\hline             $\dfrac{a}{b}$ &amp; $ \dfrac{A}{B} $\\             $\dfrac{a}{b}$ &amp; $ \dfrac{A}{B} $\\             $\dfrac{a}{b}$ &amp; $ \dfrac{A}{B} $\\             \hline     \end{tabular} \end{table}  \end{document}   MWE with siunitx  \documentclass{article}  \usepackage{amsmath} \usepackage{booktabs} %\usepackage{siunitx} \usepackage{wrapfig}  \usepackage{cellspace} \setlength\cellspacetoplimit{4pt} \setlength\cellspacebottomlimit{4pt}  \begin{document}  \begin{wrapfigure}[14]{R}{8.5cm}     \renewcommand{\arraystretch}{2.3}      \begin{tabular}{@{}Sc|Sl@{}}             \bfseries $R_x$ &amp; Symbol\\             \hline\hline             $\dfrac{a}{b}$ &amp; $ \dfrac{A}{B} $\\             some text &amp; some other text \\             $\dfrac{a}{b}$ &amp; $ \dfrac{A}{B} $\\             $\dfrac{a}{b}$ &amp; $ \dfrac{A}{B} $\\             \hline     \end{tabular} \end{wrapfigure}  \end{document}
118840
I hope this question is in order here although it rather asks for a "best practice" than for some "solution".  I am wondering to what extent blank/empty lines in the code (I am using pdflatex) should be avoided and e.g. be replaced by %. My source code is full of single blank lines e.g. before the start of a new section, between math/text environments in order to increase the readability of the code.  Are such blank lines going to be ignored anyway (I guess this might depend on the specific instance?)/only cause minor vertical space in the PDF, or are they deemed "bad practice" and should be avoided?  All I could find was  according to which - I take it - blank lines should mostly be avoided apart from before tabular and array environments.
63322
I a chat discussion it was suggested that \hspace*{\fill} (with a space before it to allow for a line break) was sufficient to always get the text following aligned to the right. And indeed, it is aligned to the right.    However, in one case it is inserting an additional line  break where one should not be required as illustrated by the last example here.  I want the text bumped to the next line if and only if (iff ) there is no room:    If I remove the space before the \hspace*{\fill}, there are cases (second and third) where a new line should have been inserted but is not:    Related Question:      I have tried the suggestions at the related question and:   Martin Scharrer's suggestion of using \hbox{}\hfill results in the text being on the left for the last case. Herbert's \When macro exhibits a similar problem for the last case. Thorsten Donig's \signed macro does yield the correct number of lines, but portions of the file name for the middle two cases show up on the second line when they easily fit in the first line.     Notes:  I believe that this is unrelated to the problem, as I was able to reproduce the problem without it.  But, am mentioning it here in case it causes an issue with the proposed solution.  I am using \texttt for the file name. This resulted in an additional complication which I initially thought was the cause of the problem.  So, my actual use case is commented out below and it incorporates a solution from        Code:  \documentclass{article} \usepackage[paperwidth=7.0cm,showframe]{geometry} \usepackage{xcolor} \usepackage{xparse}   \newcommand*{\FillLine}[2]{% \noindent\parbox{\linewidth}{%     \raggedright     File:~#2 % &lt;-- Need space here     %Space before \hspace* allows for a break before it     \hspace*{\fill}\texttt{\small CONFIDENTIAL}%  }% }  %\newcommand*{\EnableHyphenationInTexttt}{\hyphenchar\font=45\relax} % %\newcommand*{\FillLine}[2]{% %    \noindent\parbox{\linewidth}{% %       \raggedright %       File:~\texttt{\EnableHyphenationInTexttt#2} % &lt;-- Need space here %       %Space before \hspace* allows for a break before it %       \hspace*{\fill}\texttt{\small CONFIDENTIAL}%  %    }% %}  \begin{document} \FillLine{Name}{Value}  \bigskip \FillLine{Name}{A-Long-Value}  \bigskip \FillLine{Name}{iiiiiii-iiiii-iiiiiii}  \bigskip \FillLine{Name}{Some-Really-Really-Long-Value} \end{document}
30625
This question led to a new package:      I'm giving my students an old exam and barely remembered to change the date at the top. A colleague and I joked about how long we could reuse the same exam, and it made me wonder if I could use LaTeX to create an exam that looked like it was written in 1963 on a typewriter.  Here's what I'd like to see:   Typewriter font even in math mode. (Several ways to accomplish this; is there a "best" way?) Slight inconsistencies in the printing of each letter. I attempt this below adapting code taken from . Each word has a random vertical shift, though I'd like to see it reduced to each letter having its own vertical shift. Other typewriter-like irregularities would be great. It would be great if math-mode delimeters \left(, \right}, etc., can be created in a piece-meal fashion as they did in days of old. Fraction bars, tops of square-root symbols -- any horizontal line, really -- is made up of a series of en-dashes that don't quite match up.   Here is what I've come up with so far:  \documentclass[10pt]{article}% This is a document class providing more font size options \usepackage{graphicx} \usepackage{ifthen} \usepackage[textwidth=7.5in,textheight=9.5in]{geometry} \pagestyle{empty}  % thanks to Bruno Le Floch: https://tex.stackexchange.com/q/9331/4012 % and in his comments to https://tex.stackexchange.com/a/29458/4012 \usepackage[first=-1,last=1]{lcg}% you can play around with these values \makeatletter \newcommand{\globalrand}{\rand\global\cr@nd\cr@nd} \makeatother  \newcommand{\randomvshift}[1]{\globalrand\raisebox{\value{rand}pt}{#1}}  %%% thanks to Martin Scharrer: https://tex.stackexchange.com/q/11598/4012 \makeatletter \def\typewriter#1{%     \@typewriter#1 \@empty } \def\@typewriter#1 #2{%    \randomvshift{#1}\space    \ifx #2\@empty\else     \expandafter\@typewriter    \fi    #2% } \makeatother \begin{document}\tt  \typewriter{Math 101 Fall 1963}  \begin{enumerate} \item   \typewriter{$\frac{\texttt{d}}{\texttt{dx}}\texttt{(x)}^2$}  \item \typewriter{State the Fundamental Theorem of Calculus.}  \end{enumerate}  \end{document}
71910
Here is a old post:   I tried to adjust the code to have semi-filled circle steps, but failed...  My .cls-file code:  \newcommand{\cvskill}[2]{% \textcolor{emphasis}{\textbf{#1}}\hfill \foreach \x in {1,...,5}{%   \space{\ifnumgreater{\x}{#2}{\color{body!30}}{\color{accent}}\ratingmarker}}\par% }   My .tex-file code:  \cvskill{German}{5} \divider  \cvskill{English}{4} \divider  \cvskill{French}{3} \divider  \cvskill{Spanish}{1}   Full code:   How it looks at the moment:   Can someone please help me out?  Thanks, Andreas
11664
I am just curious that the following format looks good to you or not? The preamble I used is just   \documentclass[12pt,a4paper]{article}  \usepackage{amsmath} \usepackage{amsthm} \usepackage{amssymb}   I don't feel it's so good because the first paragraph has no indent but the second does. If the first paragraph is much longer, than it's fine. But if not, it looks strange. Should I leave it, or you have suggestions for this?
15
I want to decrease the vertical space between the top of the page and the chapter heading. I have tried to follow the instructions for titlesec but I am not successful. I have tried the following two setups without any changes occuring.  First:  \documentclass[12pt]{report}   \usepackage[compact]{titlesec}   \begin{document}   \chapter{Characters}  The origin of the group determinant begins with Richard Dedekind in the late 1800's. He began to explore the idea after studying the discriminant in a normal field [A]. He made several observations about the group determinant, but was only able to prove some of them.   \end{document}   Second:  \documentclass[12pt]{report}   \usepackage{titlesec}   \titleformat{\chapter}[display]   {\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}   \titlespacing{\chapter}{0pt}{0pt}{0pt}   \begin{document}   \chapter{Characters}    The origin of the group determinant begins with Richard Dedekind in the late 1800's. He began to explore the idea after studying the discriminant in a normal field [A]. He made several observations about the group determinant, but was only able to prove some of them.   \end{document}
11364
In exam class, how to print Answer instead of Solution when using  \begin{solution}  \end{solution}   in question-answer format?
72109
I'm trying to create a pmatrix whose components are rather complicated fractions (Christoffel symbols), and the line spacing is too small making the whole thing a bit cramped and hard to read.  Is there any easy way to increase the spacing (about 1.5 the default would be perfect)?
43087
How to get the same feature as resume in the enumitem package for the questionsenv in the exam Latex class?  For instance,  \begin{questions}   \question A?   \question B? \end{questions} Some text. \begin{questions}   \question C? \end{questions}   should give something like  Question 1. A? Question 2. B? Some text. Question 3. C?
109050
I have a title page, which used a \vfill from the middle of the page, to push a line of text to the bottom. I inserted an image in this page, and wanted it place in the middle (vertically) between middle-of-page and the bottom text, and so inserted another \vfill there. This, however, doesn't seem to make the spaces on top and bottom of the images exactly equal.   I think that is somewhat demonstrated on this MWE:  \documentclass{book} \usepackage{filecontents} \begin{filecontents*}{test-image.tex}   \documentclass{standalone}   \usepackage{tikz}   \begin{document}   \begin{tikzpicture}   %\draw[thick] (0,0) rectangle (3cm,3cm);   \draw[line width=2mm] (2.8cm,1.5cm) arc [start angle=0, end angle=-240, radius=13mm];   \end{tikzpicture}   \end{document} \end{filecontents*}  \immediate\write18{pdflatex test-image.tex}  \usepackage{graphicx} \usepackage[   paperwidth=15cm,   paperheight=20cm,   outer=2cm,   inner=2cm,   top=2cm,   bottom=2cm   ]{geometry} \usepackage[a4,center]{crop} \crop[cam,info] % info is default, noinfo has to be set; use [off] to turn off all marks  \usepackage{lua-visual-debug}  \begin{document}  \frontmatter \begin{titlepage}   \begin{center}     {\Huge Testing the testing test, of the testing test}   \end{center}   %   \vspace{4 cm}   \begin{center}     {\large       Line One     }\\     \vspace{0.2cm}     {\Large       Line Two     }   \end{center}   % BOTTOM PART   \vfill   \begin{center}                                  % INSERT   \includegraphics[width=4.75cm]{test-image.pdf}  % INSERT   \end{center}                                    % INSERT   \vfill                                          % INSERT   \begin{center}     The bottom line is here.   \end{center} \end{titlepage} \end{document}   Compile this with lualatex -shell-escape test.tex. The resulting PDF I opened in inkscape, and added dimension lines and their length in what Inkscape sees as millimeters, and got this (note Inkscape corrupted some of the fonts; click for high-res):    So, the top and bottom length should be equal, but the top is 18.34 mm and the bottom is 19.72 mm in height (and in my actual example, I think I have an even more extreme difference, I just couldn't reconstruct it here).  Basically, the way I understand \vfill, if there are two \vfills, since they are of the same "order of infinity", the remaining space should be equally split between them; but apparently, there is a difference. Why does this difference occur - and how could I position the inserted logo, so the vertical spaces above and below it will be exactly equal?
74072
In a document, I would like to vertically align cell text. The only problem is that my array is contained in a begin {circuitikz} so the few tests I was able to do (with begin {center} in particular) don't work. Can you help me ? \documentclass[border=2mm]{standalone}  usepackage{multirow} \usepackage[utf8]{inputenc} \usepackage[siunitx, european, straightvoltages, RPvoltages]{circuitikz} \begin {document}  \begin{circuitikz} \node at (0,0)  {\begin{tabular}{|c|c|c|c|} \hline Type &amp; Composant &amp; Code &amp; Image résultant\\ \hline \multirow{7}{*}{Alimentation} &amp; pile &amp; to[battery1] &amp; \begin{circuitikz} \draw (0,0) to[battery1] (2,0);\end{circuitikz} \\ \cline{2-4}  &amp; source de courant &amp; to[isource] &amp; \begin{circuitikz} \draw (0,0) to[isource] (2,0);\end{circuitikz} \\  \cline{2-4}  &amp; source de tension &amp; to[vsource] &amp; \begin{circuitikz} \draw (0,0) to[vsource] (2,0);\end{circuitikz} \\  \cline{2-4}  &amp; source sinusoidale &amp; to[sV] ou to[vsourcesin] &amp; \begin{circuitikz} \draw (0,0) to[sV] (2,0);\end{circuitikz} \\  \cline{2-4}  &amp; source sinusoidale &amp; to[sV] ou to[vsourcesin] &amp; \begin{circuitikz} \draw (0,0) to[sV] (2,0);\end{circuitikz} \\  \cline{2-4}  &amp; source créneau &amp; to[sqV] ou to[vsourcesquare] &amp; \begin{circuitikz} \draw (0,0) to[sqV] (2,0);\end{circuitikz} \\  \cline{2-4}  &amp; source triangulaire &amp; to[tV] ou to[vsourcetri] &amp; \begin{circuitikz} \draw (0,0) to[tV] (2,0);\end{circuitikz} \\  \hline \end{tabular} }; \end{document}
19215
\documentclass[12pt,a4paper]{exam} \renewcommand{\baselinestretch}{1.2} \oddsidemargin 0in \evensidemargin 0in \topmargin 0in \textheight 9.2in \textwidth 6.5in %\hoffset -1in %\voffset -1in %\evensidemargin 14pt \usepackage{amsmath,amsthm,amsfonts,amssymb,dsfont} \pagestyle{headandfoot} \extraheadheight{.5in} \lhead[]{} \chead[ \vskip .1in  MATHEMATICS\\ STANDARD X(CBSE)\\       %\hrule     \textbf{PAIR OF LINEAR EQUATIONS IN TWO VARIABLES} \linebreak        \textbf{Time: 1 Hour}   \hskip 1.3in  \textsf{ }        \hfill{\textbf{Max. Marks:30}}\vskip.05in \vskip -.5in]{} \rhead[]{} \lfoot{David 7502878908} \cfoot{HOME TUITIONS} \rfoot{\iflastpage{$\maltese\maltese\maltese \maltese \maltese$}{Continued...\ldots}} \pointsinrightmargin \newcommand{\ntt}{\normalfont\ttfamily} %    command name \newcommand{\cn}[1]{{\protect\ntt\bslash#1}} \hfuzz1pc % Don't bother to report overfull boxes if overage is &lt; 1pc  \newcommand{\thmref}[1]{Theorem~\ref{#1}} \newcommand{\secref}[1]{\S\ref{#1}} \newcommand{\lemref}[1]{Lemma~\ref{#1}} %\newcommand{\bysame}{\mbox{\rule{3em}{.4pt}}\,} \newcommand{\sqt}[1]{\sqrt{\smash[b] {#1}}}  %    \interval is used to provide better spacing after a [ that %    is used as a closing delimiter. \newcommand{\interval}[1]{\mathinner{#1}}  %    Notation for an expression evaluated at a particular condition. The %    optional argument can be used to override automatic sizing of the %    right vert bar, e.g. \eval[\biggr]{...}_{...} \newcommand{\eval}[2][\right]{\relax   \ifx#1\right\relax \left.\fi#2#1\rvert}  %    Enclose the argument in vert-bar delimiters: \newcommand{\envert}[1]{\left\lvert#1\right\rvert} \let\abs=\envert  %    Enclose the argument in double-vert-bar delimiters: \newcommand{\enVert}[1]{\left\lVert#1\right\rVert} \let\norm=\enVert \newcommand{\pad}[2]{\frac{\der #1}{\der #2}} \newcommand{\IC}{{\mathbb C}} \newcommand{\IN}{{\mathbb N}} \newcommand{\IR}{{\mathbb R}} \newcommand{\gol}{\mbox{$\,${\rm Log}$\,$}} \newcommand{\Log}{\ln} \newcommand{\ov}[1]{\overline{\smash[b] {#1}}} \newcommand{\Ndash}{\nobreakdash--} \newcommand{\IE}{{\mathds{R}^n}} \newcommand{\IF}{{\mathds{R}^m}} \begin{document}  \hrule   \vskip .1cm {\hskip 2.5in \textbf{Part A} \hfill{}}   \underline{Answer all the questions:}   \begin{questions}  \question Which subject you like very much?  \choice mathematics \choice physics \cchoice chemisty %cchoice means that correct choice \choic biology   \end{questions} \cfoot{$\maltese\maltese\maltese \maltese \maltese$} \rfoot{} \end{document}   I need these commands in my questions with the following alignments..that is the output should be like this.  1.Which subject you like very much?  (a) mathematics                      (b) physics (c) chemistry                        (d) biology   What should i do for this.. and if the choices are lengthy it has to be aligned automatically...kindly help me...
83380
If we use the book class, the output looks like the following screenshot.    But if we use the article class, the output looks better as follows.    The MWE is given as follows. Note: please enable -shell-escape!  \documentclass[12pt]{article}% please change to article and compare the output.  \usepackage{filecontents} \begin{filecontents*}{"article sample.tex"} \documentclass{article} \usepackage{lipsum} \begin{document} \lipsum[1-20] \end{document} \end{filecontents*}  \usepackage{showexpl}  \lstset {     breaklines=true,     breakindent=0pt,     tabsize=2,     columns=flexible,     language={[LaTeX]TeX},     basicstyle=\small\ttfamily\hbox{}, }  \newcount\x  \newcommand\MyLTXinputExample[2][2mm]{% % #1: length of gap, % #2: filename with .tex,      \lstinputlisting[caption=\url{#2.tex}]{"#2.tex"}     \bgroup         \parskip=#1\relax         \fboxsep=0pt         \pdfximage{#2.pdf}%         \x=0         \loop             \ifnum\x&lt;\pdflastximagepages                 \advance\x by 1                 \noindent\hfill                 \fbox{\includegraphics[width=0.5\dimexpr\linewidth-4\fboxrule-#1\relax,page=\x]{"#2"}}%                                  \ifnum\x&lt;\pdflastximagepages                 \advance\x by 1                 \hfill                 \fbox{\includegraphics[width=0.5\dimexpr\linewidth-4\fboxrule-#1\relax,page=\x]{"#2"}}%             \fi                 \hfill\null\par         \repeat     \egroup }  \PassOptionsToPackage{obeyspaces}{url} \usepackage{hyperref}  \begin{document} \immediate\write18{pdflatex "article sample"} \MyLTXinputExample{article sample} \end{document}   How to prevent book class from vertically justifying the contents? In other words, I want to use the book class but its output (only the justification is under consideration) must look like the output that article class produces.
9513
I want my chapter titles to look like as asked in this . I have followed the method suggested by "lockstep", that is, using package titlesec. It works perfectly fine but here is the question: I want this format for main chapters only and for the rest, that is Contents, Declaration, Index, Bibliography etc I want them centered with normal vertical spaces before and after the title. Pasting the code at the start of Chapter 1 solves the problem partially; it leaves the starting ones (contents, declaration) totally unchanged and applies the same format to Index and Bibliography. Please help.
59971
users  I have some problems with linespacing in my thesis. One page look normal like this:    Another page look weird like this:    My preamble look like this:  \documentclass[a4paper,11pt,twoside]{report} \usepackage[utf8]{inputenc} \usepackage[english]{babel}  \usepackage{layout} \usepackage[protrusion=true,expansion=true]{microtype}   % Different usepackages \usepackage[T1]{fontenc} \usepackage[lf]{MinionPro} %% MinionPro \usepackage{icomma} \usepackage{setspace} \setstretch{1.1} \usepackage{siunitx,booktabs} \usepackage{graphicx} %% \usepackage{tocloft} - add if customize TOC \renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}} \usepackage{tabu}  % Chapter \usepackage[pagestyles ,newparttoc, explicit]{titlesec}% \usepackage{titletoc} \SetTracking[no ligatures = {f}]{encoding = }{100}  \usepackage[explicit]{titlesec} \titleformat{name=\chapter}[display]{ \figureversion{lining}}{\lsstyle\Large\MakeUppercase\chaptername\enspace \LARGE\thechapter}{2ex}{\LARGE\bfseries#1}%\uppercase  \titleformat{name=\chapter, numberless}{\lsstyle\LARGE}{}{0pt}{\MakeUppercase{#1}} \titlespacing{\chapter}{0pt}{2.5ex}{6ex}  % Table of Contents  \titlecontents{chapter}[0em]{\large\bfseries\protect\addvspace{15pt}}%\thecontentslabel\brlap[1.25\baselineskip] {\textssc{\mdseries\MakeLowercase\chaptername~{\footnotesize\thecontentslabel}}\\\medskip} {}% {\hfill\contentspage}%  % item / enumerate  \usepackage{enumitem}  % HTML code  \usepackage{listings} \usepackage{xcolor}  \definecolor{dkgreen}{rgb}{0,0.6,0} \definecolor{gray}{rgb}{0.5,0.5,0.5} \definecolor{mauve}{rgb}{0.58,0,0.82}  \lstset{frame=tb,   language=Java,   aboveskip=3mm,   belowskip=3mm,   showstringspaces=false,   columns=flexible,   basicstyle={\small\ttfamily},   numbers=none,   numberstyle=\tiny\color{gray},   keywordstyle=\color{blue},   commentstyle=\color{dkgreen},   stringstyle=\color{mauve},   breaklines=true,   breakatwhitespace=true,   tabsize=3 }   % Figure  \usepackage{chngcntr} \counterwithout{figure}{chapter}  % More pdf-pages at same site  \usepackage{pdfpages}  % References \usepackage[round, colon, sort, authoryear]{natbib} \setlength{\bibsep}{0.0pt} \setlength{\bibhang}{2em} \bibpunct{(}{)}{;}{a}{}{} \setcitestyle{notesep={: }} \def\citeapos#1{\citeauthor{#1}'s (\citeyear{#1})}  % Quotes \usepackage{csquotes} \MakeOuterQuote{"}  % Page margins \usepackage[left=3.5cm,right=3.5cm,top=3.5cm,bottom=3.5cm]{geometry}  % PDF background  \usepackage{eso-pic}  % Random text \usepackage{lipsum}  % Page style \usepackage{fancyhdr} \pagestyle{fancy}% &lt;- ! % Defining MyStyle \fancypagestyle{MyStyle}{%     \fancyhead{}     \fancyfoot{}     \fancyfoot[RO]{\small{\leftmark} \ \ \hspace{2pt} {\vrule height 10pt width 1pt} \hspace{2pt} \ \small{\thepage}}     \fancyfoot[LE]{\small{\thepage} \ \ \hspace{2pt} {\vrule height 10pt width 1pt} \hspace{2pt} \ \lsstyle\small{\MakeUppercase{\chaptername}}\ \thechapter} \renewcommand{\headrulewidth}{0pt} % Remove header rule \renewcommand{\chaptermark}[1]{\markboth{\lsstyle\uppercase{##1}}{}} } % Redefining the PLAIN style \fancypagestyle{plain}{% \fancyhead{} %Clean headers \fancyfoot{} %Clean footers \fancyfoot[RO]{{\vrule height 10pt width 1pt} \hspace{2pt} \ \thepage} \fancyfoot[LE]{\thepage \ \hspace{2pt} {\vrule height 10pt width 1pt} \hspace{2pt}} \renewcommand{\headrulewidth}{0pt} % Remove header rule }   % Tabular \usepackage{threeparttable} \def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi} \includepdfset{pagecommand=\thispagestyle{plain}} \renewcommand{\TPTnoteSettings}{\footnotesize} \renewcommand{\TPTnoteLabel}[1]{#1}   Because of the text-length I only show you preamble. The rest is text and figures, where I use [ht].  Is there anyone who can help me.  Best regards