7

I would advocate using the pgfplots package for this type of graphic. It allows you to use the following, for example \begin{tikzpicture} \begin{axis} \addplot[timtam]expression[domain=-3.5:3.5]{sin(x)}; \end{axis} \end{tikzpicture} Here's a couple of demonstrations; adjust as you see fit. For reference, see also Axis with trigonometric ...


6

You can use a number of \vphantoms, choosing the largest component - f - and \vphantom{f} with the other, smaller elements: \documentclass{amsart} \begin{document} $q_\ell^{\scriptscriptstyle {\alpha}_{c\ell}} q_f^{\scriptscriptstyle {\alpha}_{cf}} q_x^{\scriptscriptstyle {\alpha}_{cx}} $\quad $q_{\vphantom{f}\ell}^{\alpha_{c\ell\vphantom{f}}} q_f^{\...


6

Here are two solutions that employ the \vcenter and \hbox primitives to raise the \lim_{...} expression so that it's centered vertically on the math axis. The first solution typesets the argument in \textstyle, whereas the second uses the standard \scriptstyle for the argument. The following screenshot also shows the output of \lim. (For what my opinion is ...


5

I don't think I have seen this anywhere else. \usepackage{amsmath} %\usepackage{xparse} \NewDocumentCommand{\blim}{e{_}}{% \mathop{}\! \begin{array}{@{}c@{}}% just for vertical centering \operatorname*{lim}\limits\IfValueT{#1}{_{#1}} \end{array}\! \mathop{} } \begin{document} I'm fearing you want this just to get $\blim_{x\to0}f(x)$ inline. ...


4

Using my (accepted) answer on your previous question and tabularx table environment for table. For align of algorithm and flowchart at the top cells it is sufficient to add option baseline to tikzpicture. In MWE below is added makacell package for additional vertical space around cells contents and for the \thead command` for column headers:: \documentclass[...


4

By adding baseline=(current bounding box.north) to the options of the tikzpicture, you can shift its baseline from the default bottom edge to its top edge. This however will result in the top of the tikzpicture being vertically aligned with the bottom of the first line of text: To overcome this, I measured the height of the letter S using \settoheight{\...


3

I propose to do that with tabularx and multirow: \documentclass{article} \usepackage{array, multirow, tabularx, makecell} \usepackage{enumitem} \makeatletter \newcommand\compress{\@minipagetrue} \makeatother \begin{document} \begin{table}[h!] \setlist[itemize]{topsep=0pt, itemsep=0.5ex, wide=0pt, leftmargin=*,after=\vspace{-\baselineskip}} \...


3

With use of the multirow cells: \documentclass{article} \usepackage{geometry} % <--- \usepackage{ragged2e} % <--- \usepackage{makecell, multirow, tabularx} % <--- \renewcommand\theadfont{\small\bfseries} \renewcommand\theadgape{} \newcolumntype{L}{>{\RaggedRight}X} % <--- \usepackage{...


3

You can adjust the sub and superscript parameters see What do different \fontdimen<num> mean for a full list By increasing the default amount they are raised or lowered you can get them lining up, the values here just chosen by eye, the original values shown in the log are 3.62892pt 2.47217pt With the modified file being \documentclass{amsart} \begin{...


3

Here’s a solution, which raises or lowers the median of any operator to the median of its argument. \documentclass{article} \usepackage{amsmath} \usepackage{settobox} \usepackage[noactivechars]{mathstyle} \newsavebox{\opbox} \newsavebox{\argbox} \newlength{\opheight} \newlength{\opdepth} \newlength{\argheight} \newlength{\argdepth} \newcommand\vcenterop[2]{...


2

As I mentioned in comment, this table due to way how has terminated rows (\\[20pt]), newer has vertical centered contents of cells. If you like to have more vertical space in cells, then this you can achieve on many ways. One of them is use cellspace package: \documentclass{article} \usepackage{array} \usepackage[column=O]{cellspace} \newcolumntype{P}[1]{>...


2

Don't put the \item contents in braces. Rather, slightly redefine \mytab, but its argument in braces AND place the \mytab at the start of the item. \documentclass[oneside,11pt]{book} \usepackage[semibold,tt=false]{libertine} \usepackage{libertinust1math} \usepackage[ expansion = false , tracking = smallcaps , letterspace = 40 , ]{microtype} \...


2

You want to center the barcode in the middle column, I presume. Then you need to measure it, because the barcode is typeset as an object with zero width and height. Then you need to remove the rule on the left and on the right, which can be done with \multicolumn. \cline{3-3} &\multicolumn{1}{l}{}&\multicolumn{1}{c}{% \makebox[5.5cm][l]{% the width ...


2

Like this: (red lines shows text borders) With help of makecell packages: \documentclass{article} \usepackage[margin=2cm]{geometry} %---------------- show page layout. don't use in a real document! \usepackage{showframe} \renewcommand\ShowFrameLinethickness{0.15pt} \renewcommand*\ShowFrameColor{\color{red}} %--------------------------------------------------...


2

Firstly, you comment that you do not want it to appear as a separate paragraph, but you are explicitly marking a paragraph break before and after the centered text (which adds extra vertical space amongst other things) so removing that helps. Then center is a one item list and lists are set off with \topsep vertical spacing so setting that to 0pt makes a ...


2

It's not so difficult to center an oversized equation, but I'd recommend splitting it across lines. Instead of \vcenter, use gathered, which employs the same mechanism, but in a more user friendly way. I redefined \diagram to also accept options for \xymatrix; so I can reduce a bit the gap between columns and get a slightly less wide object. \documentclass[...


2

I,m not familiar with xy package, so I use tikz-cd which is also intended for such diagrams. However, problem is the same at both diagrams. For centering your "equations! in center of text, you can use changepage package: \documentclass[12pt]{amsart}%{article} \usepackage{amsmath, amsthm, amscd} %these are all as provided, I can't change these %\...


2

You are adding the negative space after the first line of the paragraph, you need to back out of horizontal mode with \par to add the negative space before the first line, but then take account that the indentation suppression needs to be re-done for the "real" paragraph. So this does what is intended although hooking into the after-indent test is ...


2

One way is to use of the adjusbox packages which enable moving images baselines position, adding margins etc. For inserting image it offer \adjustimage which can replace includegraphics: \documentclass{book} \usepackage[paperheight=3.0in,paperwidth=4.0in,margin=0.65in, heightrounded,showframe]{geometry} \usepackage{array, multirow, tabularx} \...


2

I have always used the tabu package and although it is abandoned and currently has problems when you want to color the background of the cells, it still works, since it is an extension of the packages for tables only that automates and provides controls for the style and size distribution of the columns, things of taste. The following code has updated the ...


1

Using geometry : \newgeometry beginning a single page plus \restoregeometry at the end. (1) There is no need to change the font size. (2) Note the empty line before each \bigskip. (3) Added some vertical stretching of the cells (from array). \documentclass{article} \RequirePackage[margin=2in]{geometry} \RequirePackage{pdflscape} \RequirePackage{afterpage} \...


1

With makeup, it is fairly easy to have your title vertically centered. You will find some hints there: vertically center all slides in ConTeXt with minimal setups The trouble is I don't understand if your text is somehow structurally connected to your section title. This solution will give you vertically aligned title and short text thereafter. It won't be ...


1

The nicematrix package by itself provides all the necessary elements for this table. Moreover, the code is clean and simple. The main command used, \Block, allows the identification and format of the multi row/column cells. (Important: The command \Block{} creates a monoblock cell that allows the use of \\ inside, thus cutting the line where you want it ...


1

This measures the picture's size and adapts the textual part width. Fix the paddings to your liking. \documentclass{article} \usepackage{xcolor,graphicx} \newsavebox{\picturetextbox} \newsavebox{\picturebox} \newcommand{\picturebgcolor}{}% initialize \newenvironment{picturetext}[4][] {% #1 options for the picture % #2 picture file name % #3 background ...


1

Another solution without the machinery of TiKZ, only the small framed package and its shaded environment: \documentclass[10pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage[svgnames]{xcolor} % \usepackage[export]{adjustbox} \usepackage{lmodern} \usepackage{framed, linegoal} \colorlet{shadecolor}{LimeGreen} \begin{document} \begin{shaded} \sffamily ...


1

I assume you're willing to use tikz so I tried to arrange boxes and their as you might wish (provided I correctly got what you need): \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx,tikz} \usepackage{lmodern} \usetikzlibrary{calc,...


1

Simplifying the markup, and squeezing the white space in the arrays, I also widened teh text block. \documentclass{article} \usepackage{amsmath,mathtools} \addtolength\oddsidemargin{-1cm} \addtolength\textwidth{2cm} \usepackage{nicefrac} \newenvironment{sysmatrix}[1] {\setlength\arraycolsep{3pt} \left(\begin{array}{@{}#1@{}}} {\end{array}\right)} \...


1

You can do it with two minipages: \documentclass{article} \usepackage{graphicx} \usepackage[font = small]{subcaption} \usepackage[font=small,labelfont=bf]{caption} \captionsetup{labelfont=bf,labelsep=period} \captionsetup[subfigure]{skip=0pt} \begin{document} \begin{figure}[t] %fig1 \centering \begin{minipage}{.52\textwidth} \begin{subfigure}{0.5\...


1

Here is how you could imitate the look of the nested itemize uwing a tabular: \documentclass[oneside,11pt]{book} \usepackage[semibold,tt=false]{libertine} \usepackage{libertinust1math} \usepackage[ expansion = false , tracking = smallcaps , letterspace = 40 , ]{microtype} \usepackage{enumitem} \begin{document} \begin{itemize} \item{Fruits} \...


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