## Top new questions this week:

### Thích Nhất Hạnh in LaTeX tufte-book class

I am very new to LaTeX and am wanting to use the OVERLEAF.com template found here: https://www.overleaf.com/latex/templates/book-design-inspired-by-edward-tufte/gcfbtdjfqdjh I am using MiKTeX. I am ...

unicode input-encodings miktex2.9 tufte-book vietnamese

### Subscript alignment problem with \int\limits

When subscript in the expression \int\limits_{some stuff} is large, it seems that LaTeX underestimates the space occupied by the subscript which leads to the wrong placement of e.g. \left\lvert (...

amsmath subscripts underbrace

### String to lowercase and replace spaces with underscore

I am trying to convert a predefined string in a variable to its lowercase and replace the spaces to underscore. But it's not working. The new string after conversion is like this: ...

xstring substitution textcase

How can I draw the following diagram using TikZ/PGF? I have been able to draw up to the following diagram: Using the following code: \[ \begin{tikzpicture}[node distance = 2cm, auto] \node (Q) {... tikz-pgf math-mode diagrams  asked by Masmath 7 votes  answered by Jasper Habicht 6 votes ### How LaTeX "understands" optional arguments? The most common notation for commands I have seen is the following: \command[optional]{mandatory} What I am trying to understand is how the optional arguments are understood. For example they can be ... optional-arguments arguments  asked by ado sar 6 votes  answered by Joseph Wright 9 votes ### Compact/short number range representation I googled, but couln't find a package to make number ranges in a compact/short form. In siunitx there's is a \numrange command, but this feature seems not to exist. Explaining: I'd like something like ... number  asked by Jander 6 votes  answered by egreg 4 votes ### Aligning Enumerate and Itemize lists in minipages This is my first post here, so if you have any improvements in general on how to format questions, let me know. I am trying to create 2 columns (I have used minipages to define width) and then have a ... vertical-alignment enumerate itemize minipage  asked by Karlsen97 5 votes  answered by Werner 4 votes ## Greatest hits from previous weeks: ### Multi-line (block) comments in LaTeX In LaTeX, % can be used for single-line comments. For multi-line comments, the following command is available in the verbatim package. \begin{comment} Commented code \end{comment} But is there a ... comments  asked by Arindam Pal 279 votes  answered by guillem 217 votes ### Table with multiple lines in some cells What is the easiest way to have 2 lines in some of the cells in a table? The only way I can think right now is to actually have 2 separate rows (without the line in the middle) and use \multirow on ... tables  asked by Grzenio 181 votes  answered by Werner 170 votes ### How can I get bold math symbols? To make Latin-letter variables bold I can use e.g. \mathbf{a}, but while putting Greek letters or symbols such as \nabla inside \mathbf doesn't cause any errors or warnings, it also doesn't do ... fonts math-mode symbols bold  asked by Michael Underwood 554 votes  answered by Mark Meckes 464 votes ### making appendix for thesis I need some help with creating an appendix for my thesis. I have about 10 figures which need to be in the appendix. I have a good appendix with the following code: \appendix \addcontentsline{toc}{... appendices thesis  asked by user13017 222 votes  answered by Gonzalo Medina 233 votes ### How to write a function (piecewise) with bracket outside? How to write this Piecewise function using LaTeX? I tried \begin{array}{cc} \{ & \begin{array}{cc} 0 & x\leq 0 \\ \frac{100-x}{100} & 0\leq x\leq 100 \\ 0 & ...

math-mode equations brackets

### How to add an extra level of sections with headings below \subsubsection

I have a document which requires many levels of sectioning. I have sections, subsections and subsubsections, but require one more level below that. I can't change the sections to be parts and move ...

sectioning sections-paragraphs

### Why do the less than symbol (<) and the greater than symbol (>) appear wrong as upside down exclamation (¡) or question mark (¿)?

When typing < or > in LaTeX and compiling with pdflatex, the less than and greater than symbols appear at upside down exclamation points. I'm not in math mode.

symbols punctuation font-encodings

## Can you answer these questions?

### Color Box for Section Title : Titlesec or others soluce explained/commented for beginners

I try to do with LateX some layout I usually do really easily on Word because I would like to use 100% LaTeX (I would currently describe myself as low intermediate LaTeX user). Here is what I aim to ...

tikz-pgf titlesec section-titles

### How to get a `not divides' symbol of the correct size using lualatex and unicode-math package?

I am having problems with \not command. I have read this: unicode-math breaks \not command I have tried the fix mentioned there. This MWE compiles without problems in pdflatex: \documentclass{article}...

luatex unicode-math
 asked by S. Venkataraman 1 vote

### Drawing a vertical rectangle instead of horizontal one and making its dimensions smaller, 3cm by 2cm

\documentclass{book} \usepackage[margin=1in]{geometry} \usepackage{tikz} \usetikzlibrary{shapes.geometric, patterns, patterns.meta} \usetikzlibrary{arrows.meta} \usetikzlibrary{decorations....

diagrams tikz-cd