Most active questions
152 questions from the last 7 days
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: ...
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}
$\...
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 (...
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 ...
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 ...
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 ...
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{...
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 ...
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[...
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 ...
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:
...
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}
\...
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
\...
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 ...
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.