New answers tagged

1

If you add @{} to the row of a tabular it removes the padding, so that could maybe be your solution. \documentclass{article} \begin{document} \noindent text text text \noindent \begin{tabular}{@{} ll @{}} $h$ & Specific hentalpy, J/kg \\ $e_f$ & Specific flow exergy, J/kg \end{tabular} \noindent text text \end{document}


1

Basically, you want to right align the subsection numbers within a small space. If this causes problems in the TOC etc., try \hbox to 1em{\hfill...} or use \protect. \documentclass{article} \renewcommand{\thesubsubsection}{\makebox[1em][r]{\alph{subsubsection})}} \begin{document} \section{Dolor Sit Amet} \subsubsection{Lorem Ipsum} \subsubsection{Lorem ...


0

Here is a solution with basic tools: \documentclass{article} \begin{document} \noindent Running text \begin{itemize} \item First level item \par\noindent \hspace{\linewidth-\textwidth}% \begin{minipage}{\textwidth} bla bla bla \end{minipage} \begin{itemize} \item Second level item \par\noindent \hspace{\linewidth-\textwidth}% \begin{...


2

not used \resizebox, rather decrease font size to \footnotesize S columns are adopted to each column removed are table-space-text-pre and table-space-text-post instead of tabulars is used one common tabular* removed except in table headers all \multicolumns determination of spaces between column is left to LaTeX \documentclass[12pt,a4paper,twoside]{article} ...


1

Some comments and observations: The tabular environment does not take an intended-width argument. The only arguments recognized by tabular affect the vertical positioning relative to neighboring elements: t, c (the default), and b. width=\linewidth is simply ignored. You're probably thinking of the tabularx environment. By default, its X column type ...


5

Using \whiledo for building loops around parameterized animation frames is deprecated. It may lead to unexpected results, because \newframe embedded into its loop body may hide local assignments of dimensions and counters. Instead, use pkg animate's built-in command \multiframe: \documentclass{beamer} \usepackage{animate} \begin{document} \begin{frame}{...


1

\documentclass{article} \usepackage{lipsum,stackengine} \setstackEOL{\\} \begin{document} \lipsum[1] \begin{center} {\textbf{\Longstack[l]{ Question 1: Can we archive the blacked out text\\ so that it can be left aligned?\\\\ Question 2: Can we archive the blacked out text\\ so that it can also be centered? }}} \end{center} \lipsum[2] \end{document}


1

Use hl command (in soul package) to highlight text. For your purpose, just set the highlight color is black \sethlcolor{black}. The default highlight color is yellow. \documentclass{article} \usepackage{xcolor,soul} \sethlcolor{black} %\sethlcolor{green} \usepackage{lipsum} \begin{document} \lipsum[1] \begin{center} \begin{minipage}{.8\textwidth} \noindent\...


0

I always need to line up equals signs outside of a math environment, the best thing I found was to use center and tabular. This was best for lining up my equals signs in proofs, and in variable descriptions. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \int_{a}^{b} f(x) dx \approx h \left[ \dfrac{f(a)}{2} + \sum_{i=1}^{\...


1

Quick and dirty trick: \documentclass[10pt,a4paper]{article} \usepackage{array,xcolor} \begin{document} \color{gray!50} 1 2 3 --- --- --- --- ---> 4 5 \color{black} \vspace{-5\baselineskip} \newcolumntype{C}{ >{\centering\arraybackslash}m{0.45\textwidth}} \begin{tabular}{|C|C|} \hline \rule[-25.5pt]{0em}{60pt} A & \rule[-25.5pt]{0em}{60pt} ...


5

Here you are. I added a spacing of 4em. Anyway, you only need three alignment columns: \documentclass[11pt,letterpaper,twoside]{book} \usepackage{lmodern} \usepackage{amsmath} \begin{document} Blabla bla : \begin{alignat*}{4} x \quad &\Rightarrow \quad & y&\sim z,&\hspace{4em} a \quad &\Rightarrow \quad & 4b & \sim c, \\...


2

I would reformat your table in the following (however, I'm not sure, what you like to have): \documentclass[10pt,a4paper]{article} \usepackage{enumitem} \usepackage{ragged2e} % <--- \usepackage{array, makecell} \renewcommand\theadfont{\normalsize\bfseries} % <--- \newcolumntype{L}[1]{ >{\csname @minipagetrue\endcsname% ...


2

I would use a single align* environment. Then, only after the math part is entered correctly, I would insert a few judiciously chosen \mskip directives to fine-tune the horizontal alignment. That said, I don't think it's really necessary to perform the fine-tuning. \documentclass{article} \usepackage{amsmath,mleftright} \mleftright \begin{document} \begin{...


1

There are a number of ways to achieve this, none of which improve on what you currently use. Here are two: \documentclass{article} \usepackage{amsmath,eqparbox} \newcommand{\fourhat}{\skew{3.4}\hat{4}} \begin{document} \[ % Original \begin{pmatrix} 0 \\ \dot{\Theta}_{\fourhat} \\ 0 \end{pmatrix} \qquad % Suggestion 1 (eqparbox) \...


0

Five simple methods in no particular order: \documentclass{article} \usepackage{tabulary,tabularx,eqlist} \usepackage{lipsum} \parskip1em\parindent0pt \begin{document} \lipsum[1][1-3] % dummy text % method 1 \hangindent4em\makebox[4em][l]{Aside:}\lipsum[1][1-3] % method 2 \begin{tabulary}{\linewidth}{@{}lL@{}} Aside: & \lipsum[1][1-3]\\ \end{...


2

The following solution uses the \tag* macro (provided by the amsmath package) to accomplish your objective. Aside: The thick vertical lines at the left and right-hand edges of the image indicate the dimensions of the text block. \documentclass{article} \usepackage{amsmath} % for \tag* macro \usepackage{showframe} \begin{document} \[ \bigl\{ (x,y) \bigm| Ax+...


0

With enumitem, it is simple to define a custom description environment: \documentclass{article} \usepackage{enumitem} \usepackage{lipsum} \begin{document} \lipsum[10] \begin{description}[labelwidth=3em, leftmargin= 4em, rightmargin=4em, itemindent=0pt, nosep, font=\normalfont] \item[\hspace*{-\fontdimen2\font}\underline{Aside}:] \lipsum[11] \end{...


0

You could use list environment with suitable parameters: \documentclass{article} \newcommand{\aside}[1]{ \begin{list} {\underline{Aside:}\hfill} { \labelsep=0pt \labelwidth=4em \leftmargin=\labelwidth \rightmargin=\labelwidth } \item #1 \end{list} } \begin{document} Lorem ipsum lorem ipsum lorem ...


1

In your definition of the command aside with par following word "aside" require that following text start in new line. See, if the following work around gives what you like to have: \documentclass{article} \newcommand{\aside}[1]{\par\medskip\noindent% \underline{Aside}:\hfill \begin{minipage}[t]{\dimexpr\linewidth-8em\relax} #1 \end{...


4

The \prescript command, from mathtools, has this alignment: \documentclass{article} \usepackage{mathtools, bm} \begin{document} \[ \prescript{bj}{gij}{\bm{R}} \] \end{document}


0

The default for chapter openings is openright so that each chapter starts on a recto (odd) page. This is what happens in your MWE. You could try the option openleft so that chapters all start on verso (even) pages or the openany option whereby chapters start on the next page. %\documentclass{memoir} % chapters start on next odd page %\documenclass[...


1

To ensure a consistent cell padding, I deleted the \extrarowheight specification and added the cellspace package, in addition to a redefinition of the X column type and the use of >{\hsize=xx\hsize} to obtain X column widths in the ratio 2:1. Unrelated: needless to load array if you load tabularx. \documentclass{article} \usepackage[textwidth=6in]{...


1

Try the following: \documentclass{article} \usepackage[textwidth=6in]{geometry} \usepackage{array, tabularx} \renewcommand{\tabcolsep}{0pt} %%--------------------------------------------------------------% %% patch of Ulrike Fisher (on my request) % %% (http://tex.stackexchange.com/questions/319768/ % %%--------------------...


Top 50 recent answers are included