New answers tagged

0

A "nice" alternative to consider is the nicematrix package. wc{<lenght>} will center a column of that width. By defining the Tikz nodes in the cells and their corners, the package offers many options for customizing the tables, that will generally require several additional packages to achieve. That way the code is much simpler and more ...


0

\documentclass[11pt]{article} \usepackage{array, booktabs} \usepackage[table, svgnames, dvipsnames]{xcolor} \definecolor{LightCyan}{rgb}{0.88,1,1} \definecolor{Gray}{gray}{0.85} \newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}} \newcolumntype{Q}[1]{>{\columncolor{Gray}\centering\arraybackslash}p{#1}} \begin{document} \begin{tabular}{|P{...


1

Here is a possible solution There are two parts. First we redefine \partnumberline to get rid of the boxing and we'll add a lot of out formatting there. Note that the title part of the toc entry will come as \partnumberline{number}Title Next we patch \l@part to get rid of some grouping. \documentclass[smallroyalvopaper,11pt,twoside]{memoir} % formatting ...


1

The simplest solution, I think, would be to make a fixed width box for the first part of the phonological rule. Then arrows will all line up correctly. Here's a modified version of the \phon macro called \fphon which uses a length set initially to be the longest string in the group. You can set this globally (if most of the left hand sides of the rules are ...


0

\documentclass{article} \usepackage[para]{footmisc} \usepackage[utf8]{inputenc} \makeatletter \def\blfootnote{\gdef\@thefnmark{}\@footnotetext} \makeatother \newcommand{\vertical}[1]{\blfootnote{\hskip1em\hfill}\hskip-0.3em\footnote{\vtop {#1\vskip\baselineskip}\hfill }} \newcommand{\horizontal}[1]{\hskip-0.3em\footnote{#1}\hskip0.2em} \...


6

If I correctly understood your question, then you after something like this: I took the liberty and rewrite your picture code, from preamble remove packages which are loaded by beamer (xcolor, graphicx and hyperref) and not used package (booktabs, adjustbox). Use adjustbox for scaling of tikzpicture is not a good idea, the image is just fine without any ...


2

You can do it with an array. I show two realizations, in the second one the top row is globally centered with respect to the derivations below. Take your pick, I'd prefer the latter. \documentclass{article} \usepackage{amsmath,array} \begin{document} \begin{equation*} \setlength{\arraycolsep}{0pt} \renewcommand{\arraystretch}{2.4} \begin{array}{ >{\...


1

I think, this works nicely. There has always to be a space before the notescommand. \documentclass{article} \usepackage[para]{footmisc} \usepackage[utf8]{inputenc} \makeatletter \def\blfootnote{\gdef\@thefnmark{}\@footnotetext} \makeatother \newcommand{\vertical}[1]{\blfootnote{-----\hfill}\hskip-0.3em\footnote{\vtop{#1\vskip\baselineskip}\...


4

The memoir class (a superset of book, report, and article) provides a variety of footnote styles. % footnoteprob2.tex SE 584269 \documentclass[article]{memoir} %\documentclass{article} %\usepackage[para]{footmisc} %\usepackage{footmisc} \begin{document} \paragraphfootnotes A sentence.\footnote{Footnote.} A sentence.\footnote{Another footnote.} \vskip ...


5

Is this what you want? I used \shortintertext from mathtools: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{gather*} \begin{split} d(x) + e(x) + f(x) < a(x) * b(x) * c(x) \\ {} * d(x) * e(x) * f(x) \end{split} \shortintertext{\raggedleft Explained here} \begin{split} b(x) + c(x) + d(x) + e(x) + f(x) < a(x) * b(x) * c(x) ...


3

Here's an answer that focuses on getting the positioning of the blocks in the left-hand and right-hand columns right and tries to reduce visual distractions such as unnecessary or insufficiently-spaced horizontal lines. It works by using the enumitem package to set up two bespoke enumerate-like environments. \documentclass[12pt]{article} \usepackage[...


1

Here is a variant with vertically centered contents in the left column and automated numbering of the individual items using the enumitem package: \documentclass[12pt]{article} \usepackage[letterpaper, left=2.4cm, right=2.4cm, top=2.4cm, bottom=2.4cm]{geometry} \usepackage[spanish,es-tabla]{babel} \usepackage[T1]{fontenc} \usepackage[usenames,dvipsnames,...


1

I think you want to vertically align the two blocks on each row on their vertical centres, the m column type does this. \documentclass{article} \usepackage{colortbl} \begin{document} % never put a table inside center (it does not center it) %\begin{center} \begin{table}% H is not defined by default and best avoided [H] \caption{Relación de los contenidos ...


0

The main problem with your table is the unfortunate choice of 6.5 to format the 8 numerical columns; it should be 1.4 throughout. A second issue is that you employ a tabular* environment but give LaTeX no chance to achieve the desired overall width (here: \linewidth). Finally, there are only 8, not 9, columns of type d. \documentclass[conference]{IEEEtran} \...


1

You should use the S columns of siunitx. \documentclass[conference]{IEEEtran} \IEEEoverridecommandlockouts \usepackage{booktabs,tabulary,lipsum} \usepackage{dcolumn,tipa} \newcolumntype{d}{D{.}{.}{6.5}} \usepackage{siunitx} \usepackage[usestackEOL]{stackengine} \usepackage{multirow} \begin{document} \begin{table*}[ht] \sisetup{ table-number-...


5

\phantom measures the so-called natural height/depth/width of things by placing them into a \hbox and measuring that box's dimensions while often TeX does not typeset things at their natural dimensions but shrinks/stretches some glues for having things fit into their surrounding nicely. Also \hbox implies restricted horizontal mode as starting-point for ...


7

You can set the intercolumn space to zero and provide empty atoms in order to force TeX into adding automatic spacing. \documentclass{article} \usepackage{amsmath} \usepackage{array} % <--- addition! \begin{document} An array environment does the alignment well, \[ \setlength{\arraycolsep}{0pt} \begin{array}{ r >{{}}c<{{}} r<{\,} *{5}{l<{{}}}...


0

See, if the following solution is acceptable: By inserting equation into minipage: \documentclass[a4paper,12pt]{amsart} \usepackage[margin=1in]{geometry} \usepackage{enumitem} \usepackage{parskip} \begin{document} \begin{enumerate} \item This is the first item. I am just writing some nonsense to fill up the line. Now for a long displayed formula\par\...


2

The obligatory \ooalign solution... \documentclass{article} \usepackage{wasysym} \begin{document} {\ooalign{\hfil\varhexagon\hfil\cr\hfil\varhexstar\hfil\cr\hfil\davidsstar\hfil}} \end{document}


4

Here is a tikz solution, so that the outer hexagon has the same line thickness as the other lines. The call for the above image is \conhex\quad\conhex[4]\quad\conhex[4.5] The optional argument is the radius of the circumcircle (in pt units). I set the default at 3.5, which looks about the same size as your intended character. You could similarly define a ...


5

\documentclass{article} \usepackage{wasysym,stackengine} \stackMath \begin{document} \stackinset{c}{}{c}{}{\varhexagon}{% \stackinset{c}{}{c}{}{\varhexstar}{% \davidsstar}}xyz \end{document} If you scale the hexagon a little, \documentclass{article} \usepackage{wasysym,stackengine,graphicx} \stackMath \begin{document} \stackinset{c}{}{c}{}{\scalebox{1.1}{$\...


2

Two possibilities. In the first, a bit of visual formatting is needed to push the second line a bit to the right. \documentclass{amsart} \usepackage{mathtools} \begin{document} \begin{multline*} \frac{E(N(\theta_{q}))}{\mathcal{E}(N)} = \frac{1}{f(L)} \Bigl[ 2\arctan(\cot(q/2)) -2 \arctan(\cot(q/2)+f(L)) \\ \qquad % visually determined +(\cot(q/2)+f(L)) \...


1

I propose this layout, based on the multlined environment (frommathtools) and the linegoal package, which measures the relaining soace on the line: \documentclass{amsart} \usepackage{mathtools} \usepackage[verbose]{linegoal} \usepackage{showframe} \renewcommand{\ShowFrameLinethickness}{0.2pt} \begin{document} \[ \frac{{E}(N(\theta_{q}))}{\mathcal{E}(N)} = ...


1

The footmisc package offers a variety of footnote styles but unfortunately I don't think it can help with your particular problem, but please check it out to see if you can use it. If you are willing to use the memoir class (a superset of book, report and article) then I think that that provides what you are after by using paragraphed footnotes instead of ...


1

It does work. Align the | symbol: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} \gcd(a, b) & \mid a, b \\ \implies \gcd(a, b) & \mid ax + by \\ \implies \gcd(a, b) & \mid d \end{align*} \end{document}


2

You can use an align, even without =. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} & \gcd(a, b) \,|\, a \text{ and } b \\ \Rightarrow & \gcd(a, b) \,|\, ax + by \\ \Rightarrow & \gcd(a, b) \,|\, d \end{align*} \end{document}


2

Using align like this should be working: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} & \gcd(a,b) \mid a \ and \ b \\ \Rightarrow & \gcd(a,b) \mid ax + by \\ \Rightarrow & \gcd(a,b) \mid d \end{align*} \end{document} When I compile it, it is well centered and looks like your picture. Hope this helps


0

These lines can be produced using the "eqnarray"-environment: \begin{eqnarray*} gcd(a,b) &|& a and b =>gcd(a,b) &|& ax + by =>gcd(a,b) &|& d \end{eqnarray*} Use the asterix (*) to suppress the numbering of the equations and the sign "&" on both of the sign which you want to center around.


5

It's easier to achieve this with enumitem since you can adjust the horizontal spacing as an optional argument as well. \documentclass{article} \usepackage{enumitem,lipsum} \begin{document} \begin{enumerate}[label={(\arabic*.)},itemindent=1em,leftmargin=1em] \item \lipsum[1] \item \lipsum[2] \item \lipsum[3] \end{enumerate} \end{document}


2

These underlines are made with leaders. And leaders are aligned to each other. So if you shift the text around their position relative to the text changes: \documentclass{article} % \usepackage{parskip} \renewcommand{\familydefault}{\ttdefault} \usepackage{ulem} \newcommand{\suline}{\bgroup\markoverwith{\raisebox{-0.6em}{=}}\ULon} \begin{document} \...


0

Maybe you're looking for something like that: \documentclass[border=5pt]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} $S_{1\,2\,3} = \frac{1}{3!}$ \begin{tikzpicture}[thick,baseline=(current bounding box)] \coordinate (l3) at (0, 0); \coordinate (l2) at (0, 1em); \coordinate (l1)...


0

I think a command that would help here is rectangle: \draw (x, y) rectangle (z, w); draws a rectangle with its bottom left corner at (x, y) and its bottom right corner at (z, w). You then have two options for colouring, first [color=black] will make the lines black (currently you are just using very thick black lines to draw a rectangle), second [fill=black]...


2

With tabularx: \documentclass{article} \usepackage[margin=25mm]{geometry} \usepackage[singlelinecheck=false ]{caption} \usepackage{adjustbox} \newcommand\RotText[1]{\rotatebox{90}{\parbox{2.5 cm}{\raggedright#1}}} \usepackage[table,xcdraw]{xcolor} \usepackage{makecell, tabularx} \renewcommand\theadfont{\small\bfseries} \renewcommand\theadgape{} \...


Top 50 recent answers are included