Most active questions

5 votes
5 answers
251 views

Generate Plot with Grid

I'm new to LaTeX and I'm looking forward on generating a plot/graph using LaTeX. Do anyone know how to generate the exact same graph as shown in the image below: Function: y= 8 - 2^(0.5x) Coordinates: ...
Neoh Beng Eik's user avatar
10 votes
3 answers
431 views

Single $ sign fixes an error in NewDocumentCommand

For some reason, this macro creates no error \documentclass{article} \usepackage{xparse} \usepackage{amsmath} \NewDocumentCommand{\ex}{e{!}m}{ \exists\IfValueTF{#1}{!#1$}{#2} } \begin{document} $\...
Nolord's user avatar
  • 411
6 votes
3 answers
323 views

Drawing horizontal/vertical arrows between TikZ nodes

I have a TikZ diagram that includes many nodes and paths (arrows) between them. Nodes typically have several arrows attached to them, and in those cases I specify the attachment points as e.g. \draw (...
chsk's user avatar
  • 3,978
7 votes
3 answers
161 views

Table with tabularx and multicolumn, unable to get correct cell widths

I'm trying to create a table which spans the entire page and where each row can have either one, two or three cells (each cell should have equal width.) I tried to use tabuarx with column type X and ...
mlidal's user avatar
  • 173
8 votes
2 answers
167 views

Adding comparators to siunitx

I'm trying to use \lessapprox (⪅) within the SI package. It is not a default comparator, but there is the package option input-comparators described in the manuals. But I don't know how to use it. I ...
deder's user avatar
  • 83
3 votes
3 answers
271 views

A command with potentially many arguments (to cite several Stacks Project tags at once)

I am currently using the following in my preamble: \newcommand{\stacksref}[1]{% \cite[\texttt{\href{https://stacks.math.columbia.edu/tag/#1}{#1}}]{SP} } so that for instance \stacksref{AB78} gives ...
Elías Guisado Villalgordo's user avatar
3 votes
4 answers
255 views

Closed region filled with color in tikz

Is there a way to fill the closed region with color? It seems extremely difficult, to me at least! (See figure) And, here is the code: \documentclass[tikz,border=3.14mm]{standalone} \usepackage{...
Grigorios Kostakos's user avatar
7 votes
4 answers
250 views

Getting suit symbols with pdflatex and luatex

I have these questions: Running pdflatex I get black Clubs/Spades and white Diamonds/Hearts. Though I can live with that in my application, I wonder if it is possible to get them at wish black or ...
Jack's user avatar
  • 1,291
3 votes
4 answers
142 views

`\@ifnextchar_` with a function as an argument

I'm trying to make a more intuitive versio of \to in the contexts of limits. I want \cos(x) \to_{x\to 0} 1 to produce the following result which can be done without macros with \cos(x) \xrightarrow[...
Nolord's user avatar
  • 411
3 votes
2 answers
262 views

What do a, b, c, d mean in the command \draw(a,b) rectangle (c,d);?

Consider the following very simple command: \draw (a,b) rectangle (c,d); I am a bit unsure about the precise meaning of the coordinates a, b, c, and d in this context. Does (a,b) specify the center ...
Ka Wa Yip's user avatar
  • 906
6 votes
3 answers
117 views

Scalerel Angle Brackets: Horizontal Spacing Issues

I found that \left\langle \right\rangle can only scale the angled brackets up to a certain limit. So, I used scalerel to give larger ones. But, we see that the horizontal spacing is not quite right: ...
Grass's user avatar
  • 157
7 votes
1 answer
188 views

FiraMono and numbers

I am currently trying to use the FiraMono Font in my LaTeX project. However, the numbers are... not aligned and simply look bad or out of scale. Take this minimal example: \documentclass{article} \...
Kurt's user avatar
  • 73
5 votes
2 answers
181 views

Reading and writing files consistently across TeX and Lua

Assume that I have an example LaTeX document named example document.tex with the following content: \documentclass{standalone} \ExplSyntaxOn % Create file `\jobname.ext`. \str_new:N \...
Witiko's user avatar
  • 1,076
4 votes
3 answers
128 views

How can I group some items in a list closer together? (without using separate environments?)

I want to write a list of items, and have the spacing between some items be less than the spacing between others. I can do this in LaTeX by using two list environments which differ only in their ...
modallyFragile's user avatar
5 votes
1 answer
303 views

How to obtain font in Wald's General Relativity?

What is the curly/script font that Wald uses here for the tensor space (the curly T) and the function space (the curly F)? I wasn't able to find these fonts in Table 348 here, nor from other posts.
Joshua's user avatar
  • 61

15 30 50 per page
1
2 3 4 5
11