Tag Info

Hot answers tagged

9

Like this? \documentclass{article} \usepackage{graphicx} \begin{document} \makebox[0pt][c]{\rotatebox[origin=c]{0}{flower}}% \makebox[0pt][c]{\rotatebox[origin=c]{22.5}{flower}}% \makebox[0pt][c]{\rotatebox[origin=c]{45}{flower}}% \makebox[0pt][c]{\rotatebox[origin=c]{67.5}{flower}}% \makebox[0pt][c]{\rotatebox[origin=c]{90}{flower}} ...


6

\begin{minipage}[t] sets the first line/top element to the base line. In your case its the image. However the images have different heights. An invisible top element helps, e.g. \vspace{0pt}: \begin{figure} \begin{minipage}[t]{2cm} \vspace{0pt} \includegraphics[width=2cm,angle=90]{test1} \end{minipage} \begin{minipage}[t]{2.5cm} \vspace{0pt} ...


5

You can position the x-labels horizontally via the xlabelOffset key: \documentclass{article} \usepackage{pst-plot} \begin{document} \psset{xunit=1,yunit=0.2} \begin{pspicture}(-1.75,-12)(7,17) \psaxes[ticks=y,xlabelOffset=-0.2,Dx=2,Dy=10]{->}(0,0)(-1.7,-12)(5.9,13)[$t(s)$,0][$x$,90] \psxTick(0){~~~0} ...


5

i) A tabular stack does the work almost everywhere there are ordered rows and columns of symbols, but a scalebox won't compile inside it. \scalebox should work there. ii) A raisebox seems to work well in some cases, but it won't compile when placing math mode font size commands inside it, and in similar instances. a \raisebox forms a ...


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 ...


4

The box can be moved by \nobreak\hfill or \hspace*{\fill} to the right side of the text area. \raisebox{\depth}{...} moves the box to the base line. The line width of \fbox can be controlled by \fboxrule. \fboxsep is used to create a white box with dimensions 2\fboxsep × 2\fboxsep (1in × 1in). \documentclass{article} \begin{document} ...


4

forest is much better at optimising the placement of nodes. Here is a comparison of the tree your code produces (on the right) and a first-pass attempt to create the tree in forest: First Pass \documentclass{standalone} \usepackage{forest} \usetikzlibrary{shapes.geometric} \begin{document} \pgfkeys{/forest, principal/.append style={rectangle, minimum ...


4

You have to use \setlength instead of \renewcommand and also \dimexpr\paperheight-1cm\relax for the second question : \documentclass{article} \usepackage[absolute]{textpos} \setlength{\textwidth}{17cm} % (*) \begin{document} \begin{textblock*}{3cm}(1cm,\dimexpr\paperheight-1cm\relax) XXXXXXXXXXXXXXX \end{textblock*} \end{document}


3

I think there are a couple things going on here. The first, \zposy returns the vertical position as measured from the bottom of the page. In this next example, I dispense with using the calc package and use \dimexpr from e-TeX. I believe this will give you the results you want: \documentclass{article} \usepackage{amsmath,amssymb} \usepackage{lipsum} ...


3

Perhaps something like this: \documentclass{article} \usepackage{enumitem, kantlipsum} \setlist[enumerate]{wide, labelwidth=\parindent} \setlist[enumerate,1]{labelindent=0pt, labelwidth=\parindent, label=\arabic*.} \setlist[enumerate,2]{wide=.825cm, label=\alph*.} \setlist[enumerate,3]{wide=1.25cm, label=(\arabic*)} \begin{document} \kant[6] ...


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 ...


3

Here is an idea. I don't know if it could be applicable to your scenario, but if it is, it is the simplest one: do not use above nor below. Instead, let the node to be placed "over" the edges, and give it a white backround to hide part of the curve. I.e: \newcommand{\dual}{\draw (-2,-1) node[fill=white] {$X$} arc (180:0:2cm) node[fill=white] {$^*X$};} ...


3

With tikz \documentclass{article} \pagestyle{empty}% for cropping \usepackage{tikz} \makeatletter \newcommand\rottext[4][center]{ \tikz[baseline=(X.base),every node/.style={inner sep=0pt}]{ \node (X) {#2}; \foreach \i in {1,...,#3} \node[rotate around={#4*\i:(X.#1)}] {#2}; } } \begin{document} Lorem ipsum ...


3

The anchor points are selected with the first and 3rd arguments to \stackinset. The 1st argument is the horizontal anchor, left, center, or right, while the 3rd argument is the vertical anchor, top, center, or bottom. The 2nd and 4th arguments provide offsets for the anchors if you don't want them precisely at the left, center, or right, etc. The anchor ...


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) ...


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, ...


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

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 ...


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} ...


2

Use \processdelayedfloats at the end of every chapter: \documentclass[12pt,oneside]{report} \usepackage[utf8]{inputenc} \usepackage[nomarkers,nolists]{endfloat} \renewcommand{\efloatseparator}{\mbox{}} \renewcommand{\efloatseparator}{\vfill} \usepackage[]{threeparttable} \title{Minimal Working Example} \begin{document} \maketitle \chapter[Something ...


2

You can use the adjustbox package: \documentclass{article} \usepackage{graphicx} \usepackage[export]{adjustbox} \begin{document} \begin{figure} \includegraphics[width=2cm,angle=90,valign=T]{example-image.pdf} \includegraphics[width=2.5cm,angle=90,valign=T]{example-image-a.pdf} \includegraphics[width=2cm,valign=T]{example-image-b.pdf} \end{figure} ...


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} ...


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

The problems are two basically: The \foreach needs braces if there are more than one operation to be performed; It is not possible to use \draw and \fill in the same path. The point n.2 is the most important: what one does while using a \foreach statement inside a \drawn path is to append things. Of course it is possible to append nodes, but it is not ...


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} ...


1

Meh... as it usually goes, as soon as I posted the question, I noticed that \path (axis cs:0,0), and I thought: "what would happen if I type rel" in there?" - and indeed, that fixes it; simply replace \path (axis cs:0,0) with: \path (rel axis cs:0,0) ... in the code above, and the plot will center as expected... It's still a brute force solution without ...


1

On the advice of some of the comments I received, I took a proper look at whether simply doing something like \begin{figure}[!ht] would produce this desired effect. From experimenting with different floats and different positions. I am a little embarrassed to say that, yes, it seems like that is all that was needed after all. Maybe it won't suffice always ...


1

You could just add \hfil or \hfill (try what you like more) between your two figure. This will "push" the two images to the margins and put some blank space between them. Here is a version with minipage and one with subfigure from subcaption. If the \hfill is not possible for you, you should take a look on the command \subcaptionbox in the documentation ...


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 ...


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}} ...



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