Most active questions
676 questions from the last 30 days
15
votes
7
answers
1k
views
Fill a space made by three arcs
I'd like to color this figure and even after a few hours trying to understand some similar posts I'm stuck...
\documentclass[border=10pt]{standalone}
\usepackage{tkz-euclide}
\begin{document}
\...
10
votes
6
answers
733
views
Typesetting a matrix, using comma and semicolon as separators between entries and rows respectively
Inspired by the question typesetting column vector, I'm working on creating a custom LaTeX command called \bbmatrix to generate a matrix surrounded by square brackets, where commas separate entries ...
15
votes
1
answer
817
views
How can I write something like `$|-x|$` without excessive spacing?
I want to write the absolute value of "negative x". When writing $|-x|$, I seem to get excessive spacing:
Note how there is a lot of space between the vertical bars and the minus sign.
How ...
11
votes
2
answers
468
views
How to achieve a ragged-right text that alternates longer and shorter lines symmetrically?
This was posted in reddit: https://www.reddit.com/r/typography/comments/1f9v2uc/how_is_this_kind_of_alignment_of_text_called_its/
Is there any way to achieve this in LuaLatex automatically?
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: ...
7
votes
4
answers
421
views
Typeset a matrix with crossing lines
Section 5.4, "Invariant Subspaces and the Cayley–Hamilton Theorem", of Friedberg, Insel, and Spence's Linear Algebra represents the direct sum of matrices like so:
I'm interested in ...
10
votes
3
answers
432
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 (...
8
votes
3
answers
332
views
How do I insert glyphs belonging to different sytlistic sets from a font?
A recent release (v.0.060 https://github.com/cormullion/juliamono/releases/tag/v0.060) of the Julia Mono font contains monospace sans-serif or mono-linear script/calligraphic letters. How do I use ...
6
votes
3
answers
453
views
plot the implicit function using Lua
I want to use the built-in Lua language in LuaLaTeX to plot the implicit function x*y^2+2*x^3*y^3-y-1=0. My idea is to plot the points within the rectangular region [−5,5]×[−5,5] that satisfy the ...
4
votes
3
answers
500
views
Displaying Elder Futhark rune, Thorn/Thurs/Thurisaz: ᚦ [closed]
I am trying to get this ᚦ to display in latex (overleaf).
I have tried using allrunes, which didn't work, defining by self - font supports them, but crashes (my coding maybe) and the package for the &...
4
votes
2
answers
489
views
How do I print the TeX code itself in the pdf while typeset by default?
How can I typeset the code itself in the pdf while executing it? There is always a need doing so when I write LaTeX introduction articles or package help document.
So far, I do it by copying the code ...
5
votes
1
answer
488
views
Latex just won't work with my code
I'm trying to practice Latex as I just got it, and I used the following code:
\documentclass{article}
\title{Hello World!}
\author{Kelly Strecker}
\date{April 22, 2025}
\begin{document}
\...
5
votes
2
answers
327
views
Estimate usage of LaTeX package in arXiv publications
I regularly would like to know the number of users of a given library, not only to know if there is enough interest to continue the development, but also to quantify the number of users when writing ...
4
votes
4
answers
428
views
Alternative solution to a symbol I need to use in a document
Context
I need to use a symbol inside a document. The symbol in question is V-shaped with a vertical bar in the middle
(more or less $\backslash |/$, but all together).
My work
I brutally resorted to ...