Tag Info

New answers tagged

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

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


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


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

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


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


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


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


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


0

To show what I mean: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{graphicx} \usepackage{mwe} \newenvironment{myblock}{% \vspace{.5\baselineskip} \hrule\nopagebreak\vspace{.35\baselineskip}\nopagebreak} {\nopagebreak\vspace{.5\baselineskip}\nopagebreak\hrule\vspace{.5 \baselineskip}\noindent} ...


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


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


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


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


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


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


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


0

The following code gives the result that you want, although it may not do it "properly": The rubric environment is not changed at all, but the image is inserted manually. \documentclass[a4paper,skipsamekey,12pt,german]{curve} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[a4paper,nohead,nofoot,hmargin=2cm,vmargin=2cm]{geometry} ...


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


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}



Top 50 recent answers are included