# Tag Info

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

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

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

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

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

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

0

Tanks to @egreg I could manage to write a working solution as an alternative for supertabular. The code is sure not perfect, but I want to share it, in case someone has use for it. A few notes: The code was only written for my purposes: a table with two columns which can span over multiple pages and does automatic column breaks. \RaggedLeft won't work as ...

1

Another relatively simple approach based on use of minipages and TikZ node: Code: \documentclass[10pt]{article} \usepackage{lipsum} \usepackage{tikz,calc}% <-- added \usepackage{geometry} \usepackage{ragged2e} \geometry{a4paper, twocolumn, columnsep=10mm, top=10mm, left=10mm, right=10mm, bottom=10mm, headsep=0mm, footskip=0mm} \newlength\ShortCell ...

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

0

If one understands what \makeatletter and \makeatother do, then one can put the variable change everywhere before the document ends. So it should look like: \documentclass[paper=a4]{scrlttr2} \makeatletter \@setplength{firstfootvpos}{200mm} \makeatother \setkomavar{firstfoot}{ bla bla bla … Why? Well, seems that it’s because the @-letter has some ...

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

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

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

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.

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 could use the \multirow macro (from the multirow package). I would also use the rule-drawing macros of the booktabs package, and I'd lose all vertical bars. \documentclass{article} \usepackage[margin=1in]{geometry} \usepackage{amsmath,multirow,booktabs,caption} \newcommand\zcosmo{\textit{zcosmo}} \begin{document} \begin{table*} \centering ...

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

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}

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

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

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}

1

With the width of the tabular exceeding 17cm, the margins have to be quite narrow if the material is supposed to fit inside the textblock. In the example below, the margins are set to 1cm. (Aside: rather than setting puny margins, I'd reduce the column widths in the tabular.) \documentclass{article} \usepackage[a4paper,margin=1cm]{geometry} ...

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

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

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

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

0

As this is the first Google result for "latex dedication", I'd like to contribute a simpler way for dedications in Latex, which I adapted from here: \newpage \vspace*{8cm} % Sets a PDF bookmark for the dedication \pdfbookmark{Dedication}{dedication} \thispagestyle{empty} \begin{center} \Large \emph{Dedicated to google and wikipedia} \end{center}

0

Relational symbol right aligned The following example moves the \Longrightarrow to the left using the white space there. It is assumed, that the real world example will have more than just a a on the left side, also the arrow is probably annotated, otherwise \Rightarrow will look much better. \documentclass[a4paper,12pt]{article} ...

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

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

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

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


2


1

My suggestion would be to place the content in each of the cells inside its own minipage. This way you can fix both the width and height, as well as the vertical alignment with respect to the other parts of the tabular: \documentclass{article} \begin{document} \begin{tabular}{| l | l |} \hline 1a & 2a \\ \hline ...

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

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

Note that this will almost certainly result is much less intelligent page breaks than (La)TeX would give you left to its own devices. The best approach to page breaking is not to touch it until the document is in its final form and then, if necessary, tweak it manually to the least extent possible. That is, don't try this at home! The is, to say the least, ...

1

Best would be to place a \strut in places where you have no text (specifically \printchapternonum). For completeness, it's actually easiest to add this - a \strut - to all definitions of \chapnamefont and \chaptitlefont: \documentclass[oneside]{memoir} \makechapterstyle{stack} { \renewcommand{\afterchapternum}{} ...

Top 50 recent answers are included