# All Questions

217,149 questions
Filter by
Sorted by
Tagged with
3 views

### Beamer with spanish babel and pgfplots

as the title says, I have a problem with babel and the label of the angle ("A") in my figure. If remove the line of \usepackage[spanish]{babel} or don't lable the angle, all compile without ...
7 views

### \tl_if_eq doesn't recognise match

I'm working on a command that involves checking several arguments to see if they're colours, and doing something with those that are. I can't get \tl_if_eq to recognise matches. \documentclass{article}...
5 views

### externalize crashes with TikZ-within-TikZ

In the MWE below, there is a custom arrow defined as a separate drawing using \tikz. The arrow is used as an edge node so that it can be sloped automatically. I am also using the TikZ external package ...
6 views

I use Latex in Jupyter Lab and for some reason when I try to add a table of contents to my document, I get nothing other than the word "Contents", as you can see in the image. I'm not using \...
6 views

### Latex template usage in the document

I want to use a template from my university in my document and I have a problem, when trying to do so. This is mainly because I do not understand two things: How to use a template in the document. I ...
4 views

### How can I remove an active dictionary from Winedt?

Here's an odd one : I've recently managed, after much toil and pain, to install a French dictionary in Winedt 10 and make it work. The problem now is that I wanted to switch back to English again (for ...
12 views

### \feynmandiagram doesn't produce expected diagrams as in the documentation of Tikz-feynman

I'm trying to follow the documentation of the Tikz-feynman package. The first example is this \feynmandiagram [horizontal=a to b] { i1 -- [fermion] a -- [fermion] i2, a -- [photon] b, f1 -- [...
10 views

When dealing with subfigures, I always like to have things as much aligned as possible. For that I use a fbox to see where boundaries are and I constantly have issues with space I can't get rid of. ...
14 views

### Toggle in the PDF

Is there a way to create a toggle in the PDF (or other output formats) generated by LaTeX? I mean something like this figure: If you click on the arrow, you can read more
16 views

### How do I place a figure around an enumitem environment?

I have been doing some LaTeX works lately and I have been wondering how can I insert a figure around a list/enumitem environment. Since the wrapfigure package does not work in this environment, I am ...
25 views

### Plot a chirped gaussian pulse with pgfplots

I want to draw this gaussian wave packet, with chirped frequency: This plot was created with Desmos.com online tool. The function that generated this waveform is My result with pgfplots is the ...
23 views

### Wrong alignment with microtype: “(3D)” is too far left; inside enumerate. Is it by design?

The package microtype is meant to make small improvements to the final look of a LaTeX document. According to an answer to Should I load microtype with pdflatex? and a comment beneath the answer, one ...
16 views

### Citing a Website in Overleaf

This is my input in my references.bib: @ONLINE{alma, author = {ALMA Observatory} title = {Origins | ALMA} date = {2021-03} url = {www.almaobservatory.org/en/about-alma/origins} } My ...
6 views

### Partial boldface of '\n' when using minted with BW style for Haskell highlighting

I'm using minted with BW style for syntax highlighting of Haskell code. The character '\n' (same for '\x' for any x) is coming out strangely: the first quotation mark and the backslash are boldface, ...
25 views

### What are the line thicknesses for fractions and underlines?

I need to know the thickness of certain lines in my document. In particular I want to know the thickness of the rule in a display-fraction and the thickness of an underline. I want to pass one of ...
11 views

### How to place a symbol to the right of the last item

I have created an environment and I want to put a symbol ($\circ$) to the right of the last item of an itemize, which is inside the environment. However, using \hspace*{\fill}$\circ$ places $\circ$ at ...
10 views

### Short and long chapters titles

I would like to show the long chapter title in the TOC and the short title in the headers (which means I do not want the short title in the TOC). \documentclass{report} \usepackage{fancyhdr} \...
16 views

### Why is that when I define a pagestyle with fancyhdr it's shown different for the first page and the others?

So I am trying to define a style for a work I have to do and I wanted to put two images for header and the page number in the foot of each page. And my code seems to so, but the first page is shown ...
8 views

### Editing “In:” expression in references Overleaf

I'm trying to put in italic the expression "In:" in references, regarding "@incollection" e "@inbook" reference types, but I have no idea how to do this. Does anyone have ...
18 views

### Mark a position on a drawn line

I am trying to mark a position along trajectory lines I'm drawing. The marking should be in roughly the same position, say X% of the length of the line. My current code \begin{tikzpicture} \...
19 views

### Points in 3D coordinate system with tikz

i would like to set points into a 3D coordinate system but I have a problem with the axis. Now I must use (-1.1,2.0,1.1) but the data points are in (-110,200,110) format. How can I change the axis, ...
29 views

### Creating combinations of a graph using loops

In the blue graph at the left there are 5 connections. From this graph one can create sub-graphs using for instance 3 of the connections. There would be a total of 10 combinations. Is there a smart ...
12 views

### Beamer: Independently layout blocks

The one thing that always bothers me when creating slides in LaTeX using the beamer class is that the layout is very static. That means once everything has been placed on the slide (with a lot of work ...
21 views

### Using LuaLaTex with BibTex but Citation show up as bold keywords in Overleaf

I am using LyaLatext for the Aerial font. For some reason, I cannot figure out why my citation is not read correctly. Here are the packages I set up \documentclass[10pt]{article} \usepackage[utf8]{...
11 views

### Changing font type and size of nomenclature

I am preparing a manuscript using Elsevier cas-dc.cls class. In that I have added a nomenclature using package nomencl. While I would like the font type and size to be the same as the rest of the ...
23 views

### How to set a width and a height of a figure?

I want to set a width and a height of a figure. I try it do, but only height is set, width is not. I don't know where is a problem. \begin{figure}[h] \centering \includegraphics[width=0.80, height=0....
31 views

### How to get accented letters (ogonek) in a specific font?

I need to use a specific font (New Aster LT Standard), and I am running into issues with 2 characters in my text. One is the polish ogonek on the name "Dąbrówka", the other is an accented ...
23 views

### Inserting a condition in a macro with more than 9 arguments

I have an excel table with several entries describing documents in an archive. Then I wanted to convert the whole table into formatted paragraphs in which every row appears as a unit. I then produced ...
41 views

### Reproducing pdfLaTeX formatting in LuaLaTeX

I'm having trouble reproducing pdfLaTeX smallcaps, (math/text) bold, and math operators. Here's what it looks like in pdfLaTeX: That's how I want LuaLaTeX to look. Instead, I get: The main and sans ...
21 views

### Glossaries - how to define newacronym that refers to a glossary entry

I have a number of acronyms in my document, some of which have a more complex meaning than others, and I would like to have an accompanying linked entry for them in the glossary. I found that in order ...
15 views

### Pgfplot nested loops with calculated parameter

I need to draw a finite number of cubes below a 3D surface. Thus I need nested loops. The following code is close to what I want, except that I need to reduce the z limit for the \k parameter: \...
8 views

### Insert tab space in title of contents text

I have sections with names that follow the format and some of the numbers are longer than others. When the table of contents is created, the portions are not aligned. For example, with the ...
43 views

### Why are my captions in German?

I have a problem with the labels of figures and tables in overleaf. For some reason I get them in german and I have no idea why. For figures I get Abbildung or Tabelle for tables. \documentclass[...
23 views

### Table floats to the wrong position no matter what I try

I insert a table in the document using the following code: \begin{table}[] \begin{tabular}{|l|l|l|ll} \cline{1-3} $\textbf{N}$ & $\textbf{Numerical Value}$ \\ \cline{1-3} 1 & -0.252057 \\...
16 views

### How to make some edges thicker and in a different color?

I have the following TikZ code. I would like to make some of the edges thicker and to change their color to red but only in the second overlay. How can you do that? \documentclass{beamer} \usepackage[...
8 views

### Color numbers but not color them in variable names using listings package

The problem: Is it possible to highlight all the numbers inside a lstenvironment except the numbers in comments, strings or variable names? Example of expected output: What I have tried: Using How ...
7 views

### Achieve pdfpages's \includepdf with standalone package

I would like to have the following dependency: main.tex |-- part.tex Where each file has its own preamble, part.tex is included as if their pdfs are inserted in main.pdf. I can easily achieve this ...
13 views

### How to add cite page occurrence for reference

I'm using BibTex to cite. If I cite an article on pages 4 and 5, how can I make the reference look like the following result (the red 4,5):
13 views

### apa style and citing both in text as at the end of a sentence

Currently, I am using \bibliographystyle{abbrvnat}. This enables me to cite in text with \citet{xxx} and cite at the end of a sentence with \citep{xxx}. Furthermore, the reference list at the end of ...
10 views

### Package minted with BibTeX entries

This question is related to my latest other question concerning the minted package. Actually, I am writing some documentation how to use BibLaTeX. I was glad, that Pygmentize recognizes BibTeX ...
26 views

### How can I create PDFs which maintain figures using XeLaTeX?

I want to be able to use the fonts of my OS when creating PDFs. After reading a but, I've come to understand that this requires me to use XeLaTeX (instead of plain LaTeX) and the package \fontspec. I ...
38 views

### Sort a list of numbers

In my exemple I want to put two lists together, and order them \def\Wmax{10^8} \def\Wmin{.01} \def\mySamplLst{\Wmin} \xdef\mySamplNb{10} \pgfmathparseFPU{(\Wmax/\Wmin)^(1/\mySamplNb)} \xdef\...
15 views

### Extra right insterted appears in array

in the given tex prepared by MATHEMATICA, I get an error when writing it in an array: \begin{array}{cc} B_n=-\frac{1}{3} i^{-n} \left(2.25 \left(J_{n+1}\left(\frac{1}{10}\right)-...
11 views

### How can I center an image in the frametitle?

I'm using the metropolis theme in Beamer and I would like to center (in the space) a house image in the frametitle. How could I do that? Below there is a MWE. Thanks a lot. \documentclass[t,...
22 views

### How do prevent blank line between theorem and run-in heading

I'm having some trouble combining my custom section style with a theorem environment. How can I prevent the theorem from leaving the first line of the section blank? Here is my code and the current ...
20 views

### How to add # in emph in lstlisting package?

my current lstlisting package format is provided below. I am not sure why but the # is not displayed as blue but rather as golden. I wish to make it displayed as the colour that is specified in ...
15 views

### author multible times - biblatex

I have the below type of bib file. How to use multiple authors in bib file @article{ipab730bbib33, author ={Doherty J P and Moore M A and Kim J M and Bray A J}, year =1994, journaltitle ={...
29 views

### tikz: disperse images symmetrically in a bounding box

Consider this example: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \begin{scope}[local bounding box=scope1] \node(a) at (0.0, 0.0){\includegraphics[width=1....