# Tag Info

0


1

Here is a simple solution that ensures frames on every page, with the typogrid,geometry and framed package, with \FrameRule set to 0pt. One has to make titles by hand, as \maketitle creates emty (framed) pages before the title. The framed environment is used only to have a small space between text and frame. \documentclass[a4paper]{article} ...

3

Here is an adaptation of Place a TikZ picture on every page: Notes: This does require two runs. First one to determine the locations, and the second to do the drawing. Code: \documentclass[12pt]{book} \usepackage[demo]{graphicx} \usepackage[all]{background} \usepackage{lipsum} %\usepackage{showframe} \usepackage{tikz} \usetikzlibrary{calc} ...

1

Just to close this off You have to give the position specifiers to the table environment. It is preferrable to give [htb] instead of [!t] so that latex has some room to improve the appearence. \documentclass{article} \usepackage{array,kantlipsum} \begin{document} \kant[1-4] \begin{table}[htb] %%<<--- give it here \centering \caption{Vertical ...

4

\begin{figure} doesn't expand the optional argument; when expansion happens it's too late. \documentclass[10pt,a4paper]{article} \usepackage{keyval} \usepackage[demo]{graphicx}% draft is just for the example \makeatletter \define@key{image}{pos}{\def\i@pos{#1}} % define key-val \setkeys{image}{pos=!htbp} % set default \newcommand{\image}[2][]{% ...

6

You can use positioning library instead of the deprecated input syntax <direction> of =. See this answer Difference between "right of=" and "right=of" in PGF/TikZ and also Should \tikzset or \tikzstyle be used to define TikZ styles? Then, you can use the calc syntax to get the middle point of the two nodes. ...

0

Ok the reason is the length of the subcaption. In all 8 captions I have used the same caption togehter with a number. This number was from a) to d) two digits long and for the next four pictures just one digit. This one more digit does not make a linebreak in the caption! Or better there ist no visible break but it seems like there is a critical length of ...

2

The landscape mode is not possible inside the multicols environment. Use \rotatebox instead: \documentclass[twoside]{article} \linespread{1.08} \usepackage[hmarginratio=1:1,top=32mm,columnsep=20pt]{geometry} \usepackage{multicol} \usepackage{lscape,multirow,rotating,caption,tabularx,booktabs} \usepackage{blindtext} \begin{document} \begin{multicols}{2} ...

1

This might be what you're after: \documentclass{acm_proc_article-sp}% http://www.acm.org/sigs/publications/acm_proc_article-sp.cls/view \usepackage{etoolbox,lipsum} \makeatletter \patchcmd\@maketitle\@author{\@author \\[\normalbaselineskip] \myfigure}{}{} \newcommand\myfigure{% \makebox[0pt]{\includegraphics[width=\linewidth]{example-image}} ...

5

The problem is that labels are also nodes, and it seems that fancytikzposter defines a default node shape which is used everywhere (even in labels) which has two parts, one above for the "title" and other below for the "content". When you write label={foo} a node is created with "foo" as title and empty space as content. It is this empty space which ...

3

My impression is that you want a footnote. \documentclass{article} \usepackage{bigfoot} \usepackage{graphicx} \DeclareNewFootnote{sol}[gobble] \newcommand{\solution}[1]{% \footnotesol{\hspace*{-1.8em}\makebox[\textwidth][r]{\rotatebox[origin=c]{180}{#1}}}% } \newtheorem{question}{Question} \begin{document} \begin{question} Tell the result of doing ...

0

For putting figures side by side you can try this one. (captions and everything are handled automatically and you may use more or less number of figures: 2, 3, 4, etc.): \usepackage{graphicx} \usepackage{subfigure} \begin{document} \begin{figure}[ht] \centering \subfigure[Subfigure 1 title]{ \rule{2.8cm}{2cm} \label{fig:subfig1} } ...

3

Instead of using the mathpazo package, which is (a) quite old and (b) well known for having various font metric problems, you could use the newpxtext and newpxmath packages. These are derived from the mathpazo package but have much better font metrics. In particular, these packages produce well-spaced hat symbols. If you use these packages instead of ...

3

Here I use stackengine to add a stacking gap on the argument of \hat. I also use scalerel package to preserve the math style, and to express the stacking gap, .3\LMpt, in terms of a unit that scales with the math style (as an argument to \ThisStyle{}, \LMpt is a scalable version of 1pt, that will scale with smaller math styles). The hat kerning is lost, ...

2

\documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot} \begin{document} \psset{xunit=2,yunit=0.5,linewidth=0.03,tickwidth=0.03} \begin{pspicture}(-1.775,-2)(1.775,6.8) \psaxes[Dx=1,labels=x,xticksize=-4pt,Dy=2]{->}(0,0)(-1.77,0)(1.7,6.4)[$t$,0][,90] \uput[180](0,2){2} \uput[0](0,4){4} ...

3

You have to adjust the way \psyTick works since it currently doesn't support the placement: \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot} \makeatletter \def\psyTick@ii#1(#2)#3{{ \pst@killglue \addbefore@par{arrows=-,linewidth=\psk@ytickwidth\pslinewidth} \use@par \psline(\pst@yticksizeB,#2)(\pst@yticksizeA,#2) ...

2


1

Here is a solution, the requires the ifoddside package. The idea is to put the insertion point at the exact center of the physical with an invisible rule, then insert the picture scaled to paper width ant put in a box of zero width: \documentclass[a4paper]{book} \usepackage[utf8]{inputenc} \usepackage[nomarginpar]{geometry} ...

2

The image can easily be centered horizontally and vertically via package pdfpages. It also enlarges the image as much as possible to fit into the paper area without distorting the image. Example: \documentclass[11pt,a4paper,BCOR=10mm,DIV=11]{scrbook} \usepackage{pdfpages} \begin{document} \includepdf{MyImage.jpg} \end{document} Option BCOR is not ...

2

\documentclass[demo]{article} \usepackage[a6paper,margin=2cm]{geometry} \usepackage{graphicx} \begin{document} \null\vfill \centering\includegraphics{xyz} \vfill\null \end{document} How to prove? \documentclass[pstricks,border=12pt]{standalone} \usepackage{filecontents} \begin{filecontents*}{foo.tex} \documentclass[demo]{article} ...

3

\centerline takes an argument so in \centerline\noindent\makebox[\textwidth]{\includegraphics[width=\paperwidth]{MyImage.jpg} the argument is just \noindent so it is equivalent to \centerline{\noindent}% \makebox[\textwidth]{\includegraphics[width=\paperwidth]{MyImage.jpg}} so you get one blank white line from the \centerline then an overfull box ...

0

Try this \vspace*{\fill} \begin{center} \includegraphics[width=\paperwidth]{MyImage.jpg} \end{center} \vspace*{\fill}

1

If there was a "right answer" to this question the values would be fixed to that and not user set able. Basically you want to follow the advice in Frank's answer How to influence the position of float environments like figure and table in LaTeX? To comment on the values that you have set \renewcommand{\floatpagefraction}{.8} This makes it typically ...

0

Well, eventually I do hope for an erudite answer to this - but for the time being, I did somewhat solve the specific case in the OP; so I thought I'd post, as a reminder of how complicated this can get :). Now both document classes show fig:one on pg3, and fig:two on pg5, and otherwise the text flows in between; in particular test-article is now as required, ...

Top 50 recent answers are included