Tag Info

Hot answers tagged

5

You can add add a yshift in the options of second axis environment. I.e., \begin{axis}[ at=(min_AQ_3DFT.below south), anchor=above north, xmin=0, xmax=8, ymin=0, ymax=9, y=0.5cm/2, xtick={0, 1, 2, 3, 4, 5, 6, 7, 8}, ytick={2, 4, 6, 8}, xmajorgrids=true, ymajorgrids=true, yminorticks=true, xlabel=$\theta_m$, ylabel=$L$, ...


5

There is a clear warning by fancyhdr about the \headheight being too small: Package Fancyhdr Warning: \headheight is too small (12.0pt): Make it at least 13.59999pt. We now make it that large for the rest of the document. This may cause the page layout to be inconsistent, however. Changing this accordingly to head=14pt as geometry option will solve ...


4

A simple solution based on makecell, which allows for line breaks in cells, and rotating. Added the caption package for a better vertical spacing between caption and table: \documentclass{article} \usepackage{booktabs, rotating, caption} \usepackage{makecell} \renewcommand\theadfont{\bfseries} \renewcommand\theadalign{lb} ...


4

Adding \beamer@centeredfalse to your .sty file might do the trick \documentclass{beamer} \makeatletter \beamer@centeredfalse \makeatother \begin{document} \begin{frame} we \end{frame} \end{document}


4

You should take into account How to keep a constant baselineskip when using minipages (or \parboxes)? and use \parbox[t]. Here's an implementation that also takes into account the possibility that the left box has more lines than the right box. \documentclass[10pt]{article} \usepackage{lipsum} \usepackage{forloop} \usepackage{geometry} ...


4

It is a common misunderstanding about m it does not mean place the content in the middle of the vertical space for that cell. It means: place the reference point for the content in the middle of the content. I added a line to your image showing the reference points of the cells in the second row, the reference point of column 1 is the middle of the 40 ...


3

If you set it up as a class, dept-beamer, say, then you can simply pass the options you need to beamer along with any the user declares: % dept-beamer.cls % \NeedsTeXFormat{LaTeX2e} \ProvidesClass{dept-beamer}% if class is dept-beamer.cls ... \DeclareOption*{\PassOptionsToClass{\CurrentOption}{beamer}}% pass options we don't know about off to beamer for ...


3

I would just use \raisebox{<len>}[0pt][0pt]{...} where you use a negative <len> that suits your needs. The 0pt optional arguments remove any vertical height/depth when moving the element vertically.


3

The following example defines \largehand, the larger version of the hand pointing to the right. It assumes that the hand symbols in pifont are centered around the middle of the typical full glyph height, represented by the filled square (\ding{110}). This is needed to reduce the white depth, when the symbol is moved down. Then the symbol is moved down, that ...


3

Use \subcaptionbox, so you don't have to guess the size of the subfigures. \documentclass{article} \usepackage{tikz} \usepackage[ format=hang, figurename=Figura, labelfont=bf, font=small, labelsep=quad, justification={justified}, width=.75\textwidth ]{caption} \usepackage[ labelfont={bf,small}, labelformat=parens, labelsep=none, ...


3

You can use alignat* that has advantages over array; the only possible alignment I see for the relation symbols is to their left, or the equals signs will appear hanging from nowhere. I also suggest some changes to your macros, using \papp[\big] in the last line so that the outer parentheses will increase their size (which they don't do with \left and ...


3

Make a new macro for making vectors, say \newcommand\myvec[1]{\vec{\vphantom{t}#1}}


3

You can also do the following to avoid having to change any of the existing mathematical code. \documentclass[border=5mm]{standalone} \let\nvec\vec \def\vec#1{\nvec{\vphantom t\smash{#1}}} \begin{document} $\vec{t} + \vec{a}$ \end{document} You will have to modify the \def command for the 'tallest' variable used.


3

Change \providecommand\insertframetitle{} to \providecommand\insertframetitle*{}. From the beamer user guide: If you add one star, three things happen. First, the template is put inside a TEX-group, thereby limiting most side effects of commands used inside the template. Second, inside this group the beamer-color named element name is used and ...


2

I would setup a custom style in a tabular format so that you can control spacings and contents of your summary list \documentclass{article} %\usepackage{longtable,floatrow,booktabs} \usepackage[acronym,toc]{glossaries} \makeglossaries \newacronym{uri}{URI}{Unique Resonance Identifier} \newacronym{led}{LED}{light-emitting diode} ...


2

alignat allows to specify the horizontal alignment 'width' (well, the number of equation columns rather) See the difference between the original and the alignat* version. \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \begin{document} Original version with \verb+align*+ ...


2

You can set the phone number and company name/tagline each in their own tabular, since they would necessarily be aligned vertically at the center: \documentclass[a4paper,9pt,oneside,portrait]{memoir} \usepackage[newdimens]{labels} \LabelCols=2% \LabelRows=5% \LeftPageMargin=8.0mm% \RightPageMargin=8.0mm% \TopPageMargin=4mm% \BottomPageMargin=6.5mm% ...


2

You need to align the first header at the [b]ase: \documentclass{article} \usepackage{booktabs,graphicx} \newcommand*\rot{\rotatebox{90}} \newcommand*{\leftspecialcell}[2][t]{% \begin{tabular}[#1]{@{}l@{}}#2\end{tabular}% } \begin{document} \begin{table} \centering \caption{Some caption} \begin{tabular}{ l c} \toprule ...


2

I suggest an approach based on the eqparbox package, which allows for a simple syntax: I define an \alignedsymbols command, with a mandatory argument (the math symbol to be aligned), and the alignment as an optional argument: c, l, r; c is the default. A simple align environment will do: \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} ...


2

You should use \substack, with which you can make a multiline subscript or superscript. Note that you need to load amsmath package to use the command. \documentclass{amsart} \begin{document} \[ \prod_{\substack{k=0\\ k\neq i}}^{n} \frac{x-c_{k}}{c_{i}-c_{k}} \] \end{document}


2

Adjust the width of the subfigure-minipages, they are too narrow right now. I guess you want those circles centered, add \centering. \documentclass{article} \usepackage{tikz} \usepackage[ format={hang}, figurename=Figura, labelfont={bf,normalsize}, textfont={small}, labelsep=quad, justification={justified}, width=.75\textwidth ...


2

Try adding anchor=center to the node style, i.e. within nodes={} in m2style. \documentclass[border=3mm]{standalone} \usepackage{tikz} \usetikzlibrary{ fit, positioning, matrix, } \begin{document} \begin{tikzpicture} \tikzset{ status/.style={rectangle, draw=black, text centered, text=black, minimum width=1.5em, minimum height=1.5em, ...


2

You can dispense with the minipages; it's enough to use a tabular with b (botoom) alignment in which the central column is of paragraph type p{<length>} (thus allowing text wrapping) and not to leave blank lines between the tabular and the legend: The code: \documentclass{beamer} \usepackage[english]{babel} \usepackage[utf8x]{inputenc} ...


2

You can even have wider margins fiddling with the font size and the value of tabcolsep. I took the opportunity to simplify your code and improve the appearance of the table with siunitx and makecell: \documentclass[landscape, 12pt]{report} \usepackage[showframe, nomarginpar, top=0.8in, bottom=1.25in, left=1in, right=1in]{geometry} \usepackage{siunitx} ...


2

Following the answer given by @LaRiFaRi, groupplots works for me (code at ShareLatex): \documentclass{standalone} \usepackage{pgfplots} \usetikzlibrary{pgfplots.groupplots} \pgfplotsset{compat=1.3} \begin{document} \begin{tikzpicture} \pgfplotsset{footnotesize,samples=10} \begin{groupplot}[group style = {group size = 3 by 1, horizontal sep = ...


2

The "5--50 Mpc" can be moved with the help of package multirow, see the answer of Mico. Units can be set with package siunitx. Especially, they are usually not set in italics. Unit "pc" for parsec is not predefined, but it is easy to add a definition: \DeclareSIUnit{\parsec}{pc} Package siunitx also supports table columns with alignment on the decimal ...


1

You have to use the top align parameter [t] of the minipage environment here. % arara: lualatex % you may use pdflatex, just remove the package I've loaded \documentclass{article} \usepackage{lua-visual-debug} % just for demo \begin{document} \noindent % this was missing \begin{minipage}[t]{0.4\textwidth} By:\\ Student ...


1

I introduce the leftitemize environment, that places its labels in a 2cm wide left-aligned box (in bold). The labels are aligned with the enclosing environment margin. \documentclass{article} \usepackage{enumitem} \let\svitem\item% \def\mybox#1{\makebox[2cm][l]{\bfseries#1}} \newenvironment{leftitemize} ...


1

The easiest way to me seems to be to load enumitem and define a new list: \usepackage{enumitem} \newlength\myitemwidth \setlength\myitemwidth{5em} % <<< choose what you need here \newlist{myacronymlist}{description}{1} \setlist[myacronymlist]{ labelindent = 0pt , labelsep = 0pt , leftmargin = \myitemwidth , labelwidth = \myitemwidth , ...


1

I would use the package adjustbox here. Please note the option valign=t I added to each image: % arara: pdflatex \documentclass[headsepline]{scrreprt} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \PassOptionsToPackage{demo}{graphicx} % you can remove this. \usepackage[export]{adjustbox} \usepackage{tikz} \usetikzlibrary{positioning} ...



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