# All Questions

172,602 questions
23 views

### Update LaTeX document content with the parameter values of a Matlab model

I have a Matlab model with some parameters ( a=1, b=2, c=3, etc). I want this values to appear "automatically" in my LaTeX document and when they are changed in the Matlab code they are in the LaTeX ...
26 views

### Misplaced path using -| or |- with decoration (e.g. snake)

If I draw a path with the -|(horizontal-first-then-vertical) or |- (vertical-first-then-horizontal) commands and decorate the path with the snake-morphing operation, the latter half of the path is ...
31 views

### Adding a shaded region between two curves on a PGFPLOTS graph

Ok, Say we have a graph defined as \begin{center} \begin{tikzpicture} \begin{axis}[ axis x line=middle, axis y line=middle ] \addplot[black,domain=-pi/2:pi/2]{cos(deg(x))}; ...
34 views

### pgfplots: How to align plot width to same width as legend?

The user marmot has posted a nice approach to put a legend below a multigraph diagram. Minimum Working Example (MWE): \documentclass[border=5mm]{standalone} \usepackage{pgfplots} \usetikzlibrary{...
49 views

### Split a long math equation

I get this error: \begin{multline} allowed only in paragraph mode. \documentclass[multi={mymath},border=1pt, convert={outext=.png}]{standalone} \begin{document} \begin{mymath} ...
21 views

### Minitoc is not working

I have used every trick that is on the internet but still, minitoc is not working. Here is my code, \documentclass[a4paper,11pt,oneside,openright]{book} \usepackage{listings} \usepackage{amsmath,...
44 views

### Self-Made Environment in a LaTeX document

Is it possible to include a self-made environment in a LaTeX document without using the \usepackage command. New Environment set of code: \usepackage{xparse} \ExplSyntaxOn \NewDocumentEnvironment {...
28 views

### I use markdown and pandoc and need to renewcommand iffalse/% with a couple tilde

I use Pandoc and Latex for my adacemic writing with Typora as my markdown editor. If I need to strikethrough text Typora uses ~~ double tildes. But Latex didn't recognize it as text which should be ...
20 views

### Footnotes in bibliography with biblatex

In my PhD thesis I include a bibliography containing my own publications at the beginning. Not all of them are relevant to the PhD thesis though, e.g. because they resulted from my masters. I would ...
19 views

### Compilation error when inserting a figure with \usepackage{graphicx}

I am trying to insert a figure into my report (using TexMaker), the code I'm using in the preamble is: \usepackage{graphicx} Then when placing my figure (which is a .png and located in the same ...
19 views

### How to have desired number of rows in the table

\FPset\rowN{5} This sets the number of rows in the table = 5 and table have 5 rows. If \FPset\rowN{3}, table need to have only 3 rows... How to automatically decide number of rows in a table? ...
18 views

### Pgfplot - How to exactly align the legend in a plot

I have a legend in my pgfplots and want to manually position it at a point where the legend does not cover any text or measurement points. I know the axis property legend pos=north west, but it's not ...
21 views

### Autocomplete paths in \newcommand [duplicate]

13 views

### Referencing theorem/definition/remark also saying whether it is a theorem/definition/remark instead of just a number

I have continuous numbering like this: \newtheorem{theorem}{Theorem} \newtheorem{definition}[theorem]{Definition} \newtheorem{lemma}[theorem]{Lemma} \theoremstyle{definition} \newtheorem{remark}[...
23 views

### How to put tabularx inside tabularx with different column length

I am trying to nest a tabularx table into a cell of another tabularx table. I did it according to the Question here. Now my problem is, that they use the \newcolumntype{Y}{>{\centering\...
9 views

### Disable environment contents by condition

I have implemented another question's accepted answer in an attempt to omit any contents of my custom environment if an optional argument is specified. However, even the most basic version does not ...
13 views

### Reducing width of image captions without messing up subcaptions

The captions in my document are as wide as the text itself and this can lead to parts where the caption seems to continue when in reality it's the document's text. So I wanted to reduce the width of ...
29 views

### Chose color in a \fill tikz

Simply, I am drawing a dot in a 3D tikzpicture using \fill (x,y,z) circle [radius=3pt, <somecoloroption>] How can I change its color? None of fill=red,draw=red, just red changed the color, ...
21 views

### how to make different header & footer setup for first page & rest of the pages in same document

I need to bring different header & footer contents in first page. what package can i use for this process. \documentclass[twocolumn, 9pt, a4paper]{extarticle} \usepackage{titlesec} \titlelabel{\...
21 views

### spreadtab not producing desired result

I'm using class beamer and package spreadtab. First frame works well, sum(cell(aaf):cell(aal)) gives output. Second frame: sum(cell(ccf):cell(ccl)) gives error. MWE: \documentclass{beamer} \...
33 views

### Change page about a table

I am using the template of SIAM journal on optimization (siamart_171218 docsiamart.tex) to edit a table, the template is as follow: \begin{tcbverbatimwrite}{tmp_\jobname_table.tex} \newcolumntype{R}{&...
16 views

### how to declare image,title,author,affiliation details in table format in twocolumn article document

currently am using minipage to bring side by side contents in title page. Is it possible to define this in tabular column format \begin{minipage}[m]{3cm} \vspace{0.1cm} \fbox{\includegraphics[width=1....
20 views

### Setting items separation in enumerate to pre-defined length (beamer)

I am trying to set global parameters to control items separation in enumerate and itemize environments. The command (from LaTeX Beamer: Define \itemsep globally) \xpatchcmd{\itemize}{\def\makelabel}{\...
261 views

### How to align my equation to left?

I want to display four equations which have different length. I want they align left like this. But my code give this The following are my code: \begin{aligned} p(a) &=p(a) p(a \rightarrow a)+...
18 views

### Renewcommand within an environment doesn't persist

I'd like to be able to change the behavior of my environment commands by another command. They should be changed until the end of the environment. This is what I thought would happen if I made a ...
30 views

### Unicode characters not displaying in latex

I am new to LaTeX. My document has lots of Bengali Unicode sentences and characters. However, it doesn't work with Unicode characters. For example, in the following script, I have a Bengali character ...
16 views

15 views

### pgfplots: Is “scale only axis” only necessary for documents but not for standalone?

Assumed we have this kind of code: Minimum Working Example (MWE): \documentclass{article} \usepackage{showframe} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[height=\...
22 views

### Space between Section and text

There is too much space between my section heading and the text written in that section. I have tried using \vspace but it is not working. What should I do to remove this bad box ?
20 views

### Own defined color and pgfplots

My codes are follows: % Using spot colors with xcolor and pstricks. % process with: % $latex xcpst %$ dvips -h tex.pro -h xcolor.pro -h spot.pro filename.dvi \begin{filecontents*}{PANTONE300C.pro} %...
38 views

### Adjusting table to linewidth and continue on next pages

I need to have this table adjusted to the line width as it is exceeding the page. I also need it to continue on the next page. How can I do this? Here is my MWE: \documentclass{article} \...
19 views

### How can i give latex code for original jpg colour . Please modify the below code.Even though i saved the colour jpg in the folder

How can I give latex code for original jpg color? Please modify the below code. Because below jpg shows color in black and white. Even though I saved the color jpg in the folder. \begin{frame} \...
18 views

### How to place a wide table on the first page and below the title?

I am working on a (two-column) report and have a wide table. How can I place the table on the first page and right below the title? I have tried \begin{table*}[t!] but it does not work. The table is ...
45 views

### How to pronounce LaTeX correctly? [duplicate]

I have heard the following 4 pronunciations for this word LaTeX. Which is the correct one? Laatec Letec Laatecs Letecs
15 views

### Centering on multicolumn within aligned tabular

I'm using @egreg's answer to the question Align Equations Over Multiple Tabular Rows to align my equals signs within columns of a table. I'm using multicolumn for the table headings which don't have ...
17 views

### Creating GIF files in beamer questions [duplicate]

Many posts here show animated graphics to illustrate solutions about content uncovering. How can I get GIF file for my slides to upload?
26 views

### Design an algorithm capable of predicting collisions to choose alternative path using tikzpicture environment

This is and addendum of a previous question: How to connect pics through a set of colorful arrows using tikzpicture environment. I would like to be able to draw arrows that do not overlap with nodes ...
17 views

### Customize chapters in table of contents from “1”, “2”, … to “Chapter 1:”, “Chapter 2:”, … using \@starttoc

I need to use this template for my thesis and having troubles modifying the labeling of chapters/sections in the table of contents. The way it is implemented right now is: "1 blah 1.1 blah-blah 1.2 ...
17 views

### Content aligned with a figure changes positions when the figure is uncovered (beamer)

When I align two minipages together, the contents location changes after a figure in one minipage is uncovered. The distance from the rule to the upper palettes illustrates this \documentclass[...
34 views

### How to store values in an array?

How to store a calculated value in array? zz(1) = ( xx(1) + yy(1) )/2 \fpeval\zz(\counter){(\xx(\counter)+\yy(\counter))/2} NOT working \documentclass{beamer} \usepackage{siunitx,amsmath} \...
14 views

### one column figure along with two column text

In Latex, I use \onecolumn \multiplot{3}{fig1,fig2,fig3} to plot figures in one column of my page. However, if I switch to the two column text using \twocolumn my text is here The text is in a new ...
8 views

### How to print answers only in exam?

With \printanswers I can print all the answers following each of the questions. Now I want to print the answers only without the questions. I need this because I want to upload answers only, not the ...
22 views

### Underfull \hbox (badness 10000) in paragraph in bbl bibliography

Just after the word resonance it is getting the above error. underfull. I have tried using \smallskip \bigskip but it does not work. In texstudio the author name until the word resonance in one line. ...
38 views

### Tabular align on equals sign [duplicate]

I'm pretty new to LaTeX, so sorry for the beginner question. I'm trying to align on equals signs within tabular, however a few rows are blank and don't have equals signs. How can I do this? Thanks! \...
27 views

### Vertical alignment of arrow between images

I'm struggling with template given for my article. I've got four images and I'd like to place right arrow between them. Problem is that arrows should be in the middle instead of at the bottom. \...
25 views

### Order of \usepackage causes error with footnote and xcolor

Attempting to compile the following, \documentclass[answers]{exam} \usepackage{footnote} \usepackage{xcolor} \makesavenoteenv{solution} \begin{document} \begin{solution} Hello.\footnote{Goodbye.} \...
30 views

### Reproducing a question style in enumerate

\documentclass[11pt, a4paper]{article} \usepackage{cmbright} \usepackage[margin=2cm]{geometry} \usepackage{multicol} \usepackage{enumitem} \begin{document} \begin{enumerate}[label=\textbf{\arabic*}, ...
20 views

### Left margin in list of tables

I am using \listoftables . Some elements of the list are longer than a single line. The first line of each element has a greater indentation than its following lines. I can I set the same indentation ...