# Tag Info

1

Perhaps this is what you want: \documentclass{minimal} \newenvironment{problem}{% \bigskip \textbf{Problem} \begin{trivlist} \item[] }{ \linebreak[2] \mbox{}\hspace*{\fill}\fbox{$>>$~Solution} \end{trivlist} } \begin{document} \begin{problem} Shorttext. Shorttext. Shorttext. Shorttext. \end{problem} \begin{problem} ...

0

pointer of callout shape lies on line, which go through given coordinate (in your case c22.west) and center of callout shape. in your case you determined callout position regarding its shape center. i'm afreid, that i not understand well what you like to achieve, so below is mwe, which show, how will me design your sketch: ...

1

Found the solution, so better share it. It was quite simple, we just have to use the table.env = FALSE option of latex command of Hmisc like this: \begin{table} \centering \caption{big table caption} \begin{subtable}{.5\textwidth} \centering <<R code to do t table,echo=FALSE, results='asis'>>= latex(t, file = "",table.env = ...

1

I would use a combination of tabularx and enumitem packages. tabularx provides X column parameters which create an expandable column which is treated as a column of type p{<width>} where <width> is the greatest value such that the entire width of the column is that passed to tabularx. Technically the minipage nested within the X-type column is ...

2

If you want the entry of a column to be positioned left, you may use l in the description of columns, e.g. \begin{tabular}{|l|l|c|}. Then you obtain exceptions, using multicolumn, e.g. \multicolumn{1}{|c|}{Types}. BTW: MWE instead of a picture will be much more useful.

1

You should always include a complete document in your question (and please don't just ask the same question again) however you can always stop a float floating by using \clearpage so \documentclass[preprint]{aastex} \begin{document} text \clearpage \input{file} \clearpage text \end{document}

0

To input a floating table, which appears at the next available space, you should use the table environment. \begin{table} \input{bodyrate} % Here you put the actual table. \end{table} The h, t, b and p arguments specify where the table can be located on a page. By using all four, you indicate that it can be placed anywhere. The same effect is achieved ...

1

I feel that in light of this blog post, I have to add an approach I had mentioned under "state of the art" as an answer. A recent blog post reports on an effort to produce a specific digitally printed edition of The Guardian for a cafe. There is a lot of talk about "experimental, algorithmic newspaper" there, but the tool which was employed, named ARTHR, ...

4

Sometimes you may have to cheat a little... Below I set the date as part of the address, leaving the date empty: \documentclass{scrlttr2} %\usepackage{fontspec} % Allows font customization %\usepackage{marvosym} % Allows the use of symbols \usepackage[english]{babel} % Required to compile in Windows \usepackage{graphicx} \setlength\parindent{0pt} % ...

4

LaTeX fills the top area before the bottom area and only attempts the bottom area if the float will not fit in the top. thus to encourage floats to go top and bottom you need to restrict the top \setcounter{topnumber}{1}% 2 in article would only allow one float at the top, or \renewcommand\topfraction{.5}% .7 in article would restrict the top area to ...

1

\documentclass[a4paper]{scrreprt} \usepackage{booktabs} \usepackage[labelfont=bf, labelsep=newline,singlelinecheck=false,]{caption} \setcapindent{0em} \parindent=0pt \newsavebox\TBox \begin{document} \rule{\linewidth}{1pt}% only demo \begin{table}[htb] \centering \savebox\TBox{% save it to get the width of the table \begin{tabular}{lccccc}\toprule ...

3

This answer proposes a notion of relative position between [0 1] where 0 means starting point and 1 means end point of a line. Thus, pos=0.1, 0.5, 0.9 would means near start, midway and near end respectively. By doing so words for location are turned into decimal numbers between 0 and 1. These numbers can be defined by users in the foreach loop. Note: The ...

2

It's not realy the indentation that's changing. What's happening is that memoir is using different widths for the left and right hand margins of your page. I might suggest using the geometry package to change this. You can use \usepackage[margin=1.75in]{geometry} to set the margins to 1.75in all around. But also, I'm not very familiar with the memoir ...

2

Assume that your invitation was called invite.pdf and created using: \documentclass{article} \usepackage{lipsum}% http://ctan.org/pkg/lipsum \usepackage[paperwidth=4.25in,paperheight=5.5in,margin=0.7in]{geometry}% http://ctan.org/pkg/geometry \begin{document} \lipsum[1]% The invitation \end{document} Now create printing.tex resembling: ...

1

You can just create two foreach loops, and only specify the position for the ones you want to change: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \usepackage[english]{babel} \begin{document} \tikzstyle{vertex}=[draw=black!25,shape=circle,fill=black!25, edge=black!25,minimum size=20pt,inner sep=0pt] \tikzstyle{edge} = [draw,thick,-] ...

3

The MWE package offers a nice solution: \documentclass{article} \usepackage{mwe}% or load ’graphicx’ and ’blindtext’ manually \begin{document} \blindtext \begin{figure} \includegraphics[width=.48\linewidth]{example-image-a}\hfill \includegraphics[width=.48\linewidth]{example-image-b} \caption{MWE to demonstrate how to place to images side-by-side} ...

22

Actually there are a number of ways of achieving what you are asking for. Without Using Any Package \documentclass{article} \usepackage{graphicx} \begin{document} \begin{figure}[!tbp] \centering \begin{minipage}[b]{0.4\textwidth} \includegraphics[width=\textwidth]{flower1.jpg} \caption{Flower one.} \end{minipage} \hfill ...

1

Using the multicol package provides a more general solution which works even if the stuff you want in a single column is just text, for example. Your code wouldn't easily compile for me as I don't know what package defines the \ce macro of if this is a custom macro or whatever. So I changed that to maths just to demonstrate the idea. I also added some text ...

-1

Now I know what I should do. I just put a star on figure: \begin{figure*} and \end{figure*}. And of course, I have deleted the \onecolumn.

4

The problem is in the fact that positioning redefines the above key which is used by moderntimeline to position the text over the timeline. Here are two patches that could solve your problem. One is to redefine the macro \tl@textstartabove using \def and not using \pgfmathsetmacro as is done in moderntimeline.sty: \def\tl@textstartabove{\tl@width+1pt} ...

0

\documentclass[12pt]{article} \usepackage[english]{babel} \usepackage{tikz} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture} \node {a} child{node {b}} child{node {c}}; \end{tikzpicture} \begin{tikzpicture}[->] \node {a} child{node {b}} child{node {c}}; \end{tikzpicture} \begin{tikzpicture}[->,sibling distance=15em] \node ...

3

Assuming I understand what is required, then you should take a look at the documentation (in the CVS manual) about graph layouts, in particular the tree layout: \documentclass[tikz,border=0.125cm]{standalone} \usetikzlibrary{graphs} \usetikzlibrary{graphdrawing} \usegdlibrary{trees} \begin{document} \tikz\graph [tree layout, grow down] {a -> {b,c}}; ...

8

You could adjust the way the plain (default) style sets the caption (from bottom to above or top): \documentclass{article} \usepackage{algorithm2e}% http://ctan.org/pkg/algorithm2e \makeatletter \renewcommand{\@algocf@capt@plain}{above}% formerly {bottom} \makeatother \begin{document} \begin{algorithm}[H] \SetAlgoLined \KwData{this text} ...

3

\documentclass{article} \usepackage[a4paper,margin=1in,showframe,marginparsep=0pt,marginparwidth=0pt]{geometry} \usepackage{graphicx} \usepackage{eso-pic} \AddToShipoutPictureBG*{% \AtTextLowerLeft{\makebox[\textwidth][r]{% \includegraphics[width=1cm,height=1cm,keepaspectratio]{example-image-a}}}} \begin{document} Some text here \end{document}

2

A tikz solution any way. \documentclass{article} \usepackage[a4paper,margin=1in,showframe]{geometry} \usepackage{tikz} \usetikzlibrary{backgrounds,calc} \usepackage{graphicx,lipsum} \begin{document} \begin{tikzpicture}[remember picture,overlay] \begin{pgfonlayer}{background} \node[anchor=south east,outer sep=0pt,inner sep=0pt] at (\$(current page.south ...

5

You can use the command \prescript of the maththools package. See the following minimal working example: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{equation*} \prescript{2}{}{K} \end{equation*} \end{document}

5

Here is one option: Don't use overlay at all. \documentclass{article} \usepackage{lipsum,tikz} \usepackage[margin=1in,showframe]{geometry} \begin{document} \noindent \hspace*{-2mm} \begin{tikzpicture} \coordinate (my spot) at (0,0); \fill[blue] (my spot) circle (1mm); \node[above right,align=left,blue,draw=blue,thick,outer sep=0pt] at (my spot) ...

6

Simply removing \par\noindent should be OK. Also, there is a spurious space in the line \end{minipage}} %\par\bigskip% Complete code \documentclass{article} \usepackage[margin=2cm]{geometry} \newlength\cardheight \newlength\cardwidth \setlength\cardheight{0.25\textheight} \setlength\cardwidth{0.4\textwidth} \newcommand\cards[1]{% ...

1

More advanced scenario with tabu (not taboo). \documentclass[preview,border=12pt,varwidth]{standalone}% change it back to your own document class \usepackage[demo]{graphicx} % the option demo is used for the example, remove it \graphicspath{{../Img/05Core/}} \usepackage{tabu,mathtools,tikz} \begin{document} \begin{table}[hbtp] \centering ...

4

Try something like this: \documentclass{article} \usepackage[demo]{graphicx} % the option demo is used for the example, remove it \usepackage{tabu} \begin{document} \begin{table}[hbtp] \centering \tabulinesep=\tabcolsep \begin{tabu} to \textwidth {|X[4,c,m]|X[1,c,m]|X[0.75,c,m]|X[1.25,c,m]|} \hline \textbf{Motif} ...

1

For reference, this issue seems to have been fixed in recent versions of cleveref (at least since 0.18.10; not yet in CTAN but available from my web site). The redefinitions in the other answers are no longer be necessary. I haven't tracked down precisely which version of cleveref fixed this bug.

Top 50 recent answers are included