# All Questions

217,290 questions
Filter by
Sorted by
Tagged with
23 views

### Draw a Gaussian curve over histogram: solution does not work [duplicate]

I would like to to create a histogram with an overlaying normal (Gauss) curve using PGFplots. I read some questions on this forum and I tried with \documentclass[usenames,dvipsnames]{beamer} \...
138 views

### Aligning ducks and their labels in a tree

I'm building a tree of labelled tikzducks. An MWE would be \documentclass{scrartcl} \usepackage{tikz} \usetikzlibrary{ducks} \begin{document} \begin{tikzpicture} [level distance=4cm, sibling ...
35 views

### Save the content of an environment containing \verb or \lstinline

I wish to copy the content of an environment into a macro (or into a temp file). Previously I use the following code: \usepackage{environ} \def\SavedContent{} \NewEnviron{savecontent}{% \BODY% ...
36 views

### Tikz: arrow heads on all edges on a \draw path

\documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture}[thick] \node (1) {1}; \node (2) [right of=1] {2}; \node (3) [right of=2] {3}; \draw [->] (1) -- (2) -- (3); \end{...
44 views

### How to redefine several commands all at once?

It happens sometimes that because I deal with complicated formulas, I want to add extra space around certain symbols, e.g. \longrightarrow, \subset, \cong, etc. Here is a MWE: \documentclass{article} \...
9 views

### tcolorbox footnotes local (with \footnote) or global (with \footnotemark) but the global not in the same bottom page when tcolorbox is breakable

I have a problem with the footnotes in the tcolobox environment. I use footnotes in tcolorbox boxes: in "local" (with the note that appears at the bottom of the boxes) with \footnote (the ...
18 views

### Big gap between \chapter and text

I want to build a document, where i am using memoir class, using \chapters as a headline for each section. My problem is, that there is a gap between the chapter and the "normal" text ...
18 views

### reshaping , fitting multicolumn table

Hello I have a code below and I would like to fit it to page and center the values base on the row with of the search word. many thanks in advance. \documentclass[11pt,authoryear,sort&compress]{...
98 views

### Centering Feynman diagrams in equations

\documentclass{article} \usepackage{amsmath} \usepackage{tikz} \usepackage{tikz-feynman} \begin{document} \begin{align*} \feynmandiagram [inline=(b.base), horizontal=f1 to f2, layered layout] { f1 [...
39 views

### What do you guys do with all the files what are automatically exported with .tex?

Following these posts: Egad! What are all those files?, File extensions related to LaTeX, etc etc. I would like to know whether I am supposed to keep these or delete them, and also is there a way to ...
90 views

### Put the table below the subsection

I have a following problem. I would like to put my table exactly below the name of the section and subsection. See my code bellow: \section{Robustness checks} \label{rob_check} \subsection{Maximum ...
384 views

### How to decide if a comma or punctuation between math mode content should be inside math mode or in text mode?

Which of the two is the preferred way of writing LaTeX code that has punctuation between math mode content? Example 1: Therefore the solutions to the given equation are $$2$$, $$4$$, $$6$$, \( 8 ...
22 views

### Bringing tables within page margin

I want to bring these two tables close to each other so that these do not cross the page margins. \documentclass[12pt,a4size]{article} \usepackage{showframe} \usepackage{fancybox} \usepackage{tabularx}...
35 views

### pkg fontspec cannot use the internal name to select the font in texlive2021

When I upgraded to texlive2021, this strange phenomenon occurred. For example, for this font, "GaramondPremrPro.otf", I usually use the setting \setmainfont{Garamond Premr Pro} to be able to ...
24 views

### How can I vertically center the heading text before the gregorio chant

Im trying to set the headings for each gregoriotex chant so that its centered evenly between the header and the chant in all instances (some have more or less space depending on the chant). My code ...
107 views

### How do I write a long vertical line in a group definition?

Given the following definition: $\partial K_R (z_0) = \{ z \in \mathcal{C} \vert |z-z_0| = R \}$ Both \vert and \mid give the same short line as | (from keyboard). I'd like a seperator line that is ...
19 views

### arydshln stretches my vertical lines in tabular

The moment I put arydshln in the preamble, it messes up the boxes I drew around numbers. I'm trying to draw dotted lines in tables. \documentclass[10pt, b5paper]{article} \usepackage{ipaex-type1} \...
33 views

### Activity Schedule (Gantt Diagram)

Does anyone knows how to do an activity schedule like this?
19 views

### How can I type type Electron Dot Diagram/Lewis structures in KaTeX?

I have tried searching for KaTeX help sites but have not found anything. I am unsure if the 'chemfig' package works for KaTeX but it does not seem to work.
39 views

### How can I add dotted circle within the tikz figure? [duplicate]

My working code is as follows: \documentclass{article} \usepackage{tikz,tikz-cd,pgf,makecell,smartdiagram,lmodern,ragged2e,array,caption,graphicx,booktabs,tabularx,xcolor} \usetikzlibrary{...
34 views

### I can´t write under my table and 2 white pages appear

I hope somebody can help me. I have problems with my code. Im starting with latex but im getting crazy. I created some tables but i have problems with them. I cant write under the last table, 2 new ...
44 views

### Question on writing symbols (~, tilde)

I was wondering if anyone can show me how to write ~ in Latex as I am new to Latex and trying to write my statistics notes in a neat format. I've surfed around the web, but could not find it.
36 views

### How to arrange three figures using tikz?

I want to produce a figure that looks as follows: My current working code is as follows: \documentclass{standalone} \usepackage{tikz,tikz-cd,pgf,makecell,smartdiagram,lmodern,ragged2e,array,caption,...
11 views

### Trouble with making citations in revtex4-1

I'm writing my first scientific publication using the revtex4-1 package, but I'm having some trouble with figuring out how to correctly cite sources and set up the bibliography/references page. I get ...
33 views

### How to align enumerate/itemize list labels to body text

I'm not sure how to title this question so feel free to change it. Given the following: This does look like what I think I want, however, notice that I "eyeballed" the leftmargin passed to ...
17 views

### What is the ratio between IEEE single-column double-spaced drafts and printed double-column papers? [closed]

What is the rough ratio between single-column double-spaced initial submission drafts in \documentclass[journal,draftclsnofoot,onecolumn,12pt,twoside]{IEEEtran} and IEEE double-column printed papers? ...
25 views

### textit and overbrace do not work

All the packages that I called in my latex document are as following \documentclass{article} \usepackage[a4paper, margin=1.1in]{geometry} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{...
29 views

### tikz - use relative coordinate with control command

To translate svg command to tikz, I try below two case which should be output the same curve. Per svg spec, C means absolute coordinate and c means relative coordinate. Below two svg command should ...
21 views

### Globally (preable) set the width of all tables in a document

Is there a way to globally (such as in the preamble) define the width of all tables in a document? My goal is to have all tables set to the \textwidth. My content source is markdown, and I'm using ...
13 views

### New environment for colored and small font-size

I am looking for a way to define a new environment in LaTeX that allows me to quickly write certain text passages in an altered way, such as smaller font-size and different color. What i'm ...
82 views

### Why does this custom “mytarget/mylink” definition pair NOT work properly?

The goal is to get a pair of commands, \mytarget(*) and \mylink/\Mylink. Specifically, I am interested why "my" solution does NOT work, and how to fix it (if possible). Syntax \mytarget{&...
23 views

### Pandoc citeproc not recognizting pnfmt{}

Situation: I'm converting from .tex to .docx (for collaboration purposes...) using pandoc. Because I use a lot of citations with "emphasis added" (using authordate) I am using pnfmt{}to ...
26 views

### Parskip package causing issues fitting citations within margins

I am using apalike bibliography in an article but for some reason, certain citations end up exceeding the margins of the page. In some paragraphs, the citations are formatted correctly, e.g. ...
40 views

### Tikz standalone the border is not working

I'm currently developing an LFSR drawing library that the latex is output from Python code. One main issue that has been left is the border. \documentclass[convert={density=300,size=1080x800,outext=....
221 views

### How to force equal spaces around French quotation marks?

this is again a noob question, and I guess a very generic one. In my French text, I use French quotation marks (the opening one is followed by a non-breaking space, the closing one is preceded by one)....
24 views

### Package clash between enotez and gmverse while using several paragraphs in an endnote

Here is my MWE: \documentclass{article} \usepackage{enotez} \usepackage{gmverse} \begin{document} \begin{verse} foo\endnote{bar baz} \end{verse} \end{document} When I use a linebreak in an \...
20 views

### What is the best way to create a detailed computer network diagram? [closed]

I need to generate a diagram illustrating the virtual cloud network for our cloud-based project. The diagram needs to show the boundary of our virtual network, links to the corporate network and ...
97 views

### Problem with $<$ and $>$ symbols

This is the main error Argument of \language@active@arg< has an extra }.\par \end{align} I realised the problem is with the symbols < and >. On Overleaf, I with the same structure and the ...
40 views

### A macro defining macro to swap starred and nonstarred \DeclarePairedDelimiter

In the accepted answer to this question a method of swapping the starred and non-starred versions of the macros from \DeclarePairedDelimiter is presented. For example, for the \abs function we could ...
12 views

### column position of first day of month using calendar [closed]

how do I make the first day of May 2021 ( a Sunday in red) appear in the seventh column using calendar?
31 views

### How do I change the font size of a newly defined command? [closed]

I wanted to make some texts to look like code with a new command named \code{...} and it worked with the followoing new command: \definecolor{light-gray}{gray}{0.95} \newcommand{\code}[1]{\colorbox{...
91 views

### Please give the latex code for this diagram, with the shaded region as shown [closed]

I have could draw the diagram except the shaded region and the marks showing that OP and OP' are equal. Please help me out!!
26 views

### Separate multiple bib files reference using biblatex

I have two .bib files and I can't seem to simply display each bibliography separate. I have searched on several forums but either I can't get the proposed solutions to work or they are quickly very ...
45 views

### Crop all pdf file pictures created with asymptote

In my educational work I often need to create documents containing a lot of pictures created separately with asymptote package then included when needed with \includegraphics. Often I find more ...
19 views

### Remove non-colour space between multirow cells in table

I'm creating a longtable with a number of coloured cells and some cells split into multirows, using rmarkdown: --- header-includes: - \usepackage{pdflscape} - \usepackage{longtable} - \usepackage{...
14 views

### How to Increase the counter for subfigures in Xepersian?

I am using subcaption for using subfigure environment. In one of my figures, I have more than 26 subfigures. I tried to use the alphalph package as the simplest solution I could find: \usepackage{...
19 views

### Mintinline in Tabularx / remove space in detokenize

I write a LaTeX manual in memoir class with the Minted package, TeXlive 2021 and TeXmaker. To insert some \mintinline code in a Tabularx X-type column, I used this trick and it work. Except that it ...
47 views

### Interrupting-modifying numbering of tcolorboxes

In the MWE I would like the numbering: \documentclass[11pt]{book} %================================================ Begin PREAMBLE \usepackage{relsize} %Set the font size relative to the ...
I am not able to center text in a multirow table, I want all column values to be centered here is the code \begin{table}[] \caption{$\alpha$ values obtained Analytically} \label{table:...