# All Questions

183,946 questions
Filter by
Sorted by
Tagged with
2 views

2 views

### Select Color of numbers if a number is directly next to letter in \lstdefinelanguage

I am trying to reproduce python code in a latex report and stumbled upon some very helpful code (here) to select the right colors and formatting, however, it did not include the color of numbers. I ...
7 views

### Multiple Sub-figures in a row with different size

I'd like to have sub-figures as shown in the attached image but I couldn't find any helpful information from previous posts and I dont have an idea how to do it :| I will appreciate if anybody can ...
8 views

### Most Elegant Way to Share Theorem/Lemma/Exercise Numbering Across Multiple Articles

I am currently editing a series of notes for a course. Each part of notes is a separate Latex article. But I want the theorem, lemma, and exercise numbering to be consistent between articles. For ...
15 views

### Code compiling forever in tikz picture

I am running the following code and it does not work, it keep compiling. The plot is related to this post and credits to Schrödinger's cat I just want to replace all the figures by tikzpeople and {\...
33 views

### Decorated arrow - New math symbols

I would like to add new arrows to the list of arrows below. This arrows will be used as math symbols. The first problem I met is that the first arrow has a bigger head than to two others. I would ...
30 views

### Adding people to a figure

I need to replace the 3 kids by using the package \usepackage{tikzpeople} and I need to add \faFileTextO where are the fruits are placed. \documentclass{article} \usepackage{graphicx} \usepackage{...
15 views

### vim-latex on Overleaf

I'm a diehard vim user currently being forced to use overleaf for latex editing by various collaborators. Since overleaf has both a vim mode and support for keybindings, I was wondering if anyone had ...
72 views

### Weaknesses of (La)TeX [on hold]

Among the properties of (La)TeX considered rather negative, which ones are undoubtedly objectively avoidable weaknesses that are present for example for historical reasons (e.g. need for backward-...
11 views

### How to Solve Error With Square [] Brackets on New Line in Header

In the table below, if I move the units in the square brackets to the next line in the header (e.g. [mg/g] on a new line), I get an error. However, if I use curved () brackets instead, there is no ...
15 views

### Creating a link to a specific page of another pdf file

I tried to look at answers about package hyperref but I didn't find anything that allows me to add the full file path. I am using abode acrobat reader. Does is work with hyperref? what is the syntax ...
16 views

### Help with makedtx — DocInput undefined

I am trying to generate a CTAN .dtx/.ins files for a package I have and I stumbled upon a problem that I can't solve nor find around. I am on a Ubuntu 18.04, with a LaTeX Live 2017. Consider the ...
17 views

### Thousands separator for symbolic x coordinates?

How can I make the thousand separator work for x tick labels when I use symbolic x coordinates for labels? For some reason that setting is not affecting the output at all. Note that by default I use ...
25 views

### How to correctly vertical-center cells in a tabularx?

I want to add additional spacing to table rows/cells for a tabularx. However, after setting \arraystretch to something larger than 1 and setting \tabularxcolumn to m (see below), I notice that the ...
12 views

### Custom Page Border

How can i create a page template that looks like this: Where the default paper is A4 and I want my ctext to be located in the big rectangle? The distances represent how far away it should be from the ...
18 views

I'm currently trying to insert an author name in table of contents. My ad-hoc solution to the problem would be the following code snippet: \documentclass{article} \begin{document} \...
9 views

### Removing the word 'Part' from ToC entry (documentclass book and titlesec

I have a document of class book, and I have several chapters and sections in this document. Additionally, I group several chapters under one part, so I call \part to do this. At the end of my document,...
16 views

### How do I make an image the same size as a section heading?

In the document type article, how would I make an image the exact same size as a section heading?
30 views

### How to write pdf object directly in PDF and get number of this object via LaTeX or expl3?

via Lua I can write an object directly in PDF and use it: local num = pdf.immediateobj("stream", "\$$a^2+b^2=c^2\$$", "/Type /SomeType /Subtype /SomeSubtype") How can I do the same via expl3 or ...
24 views

### How to add infinity symbol in title mendeley (ex: H∞)

My reference's title got symbol like infinity in title Mendeley, however when export the reference, that symbol doesn't appear in LaTeX. Please help.
25 views

### Placing arrows in a tikz flowchart

I am trying to draw a flowchart with tikz. Below is my try. I would like the vertical arrow with superscript "a" to be connected with the horizontal arrow with superscript "n" and be more centered in ...
25 views

### Make longtable captions single spaced using memoir class

I am having a nightmare trying to solve this problem. It seems standard captions for figures and tables using memoir class are single spaced, but for tables created using longtable package they are ...
40 views

### Is there a new partial symbol into newtx package?

At this moment I do not remember exactly if I had asked a specific question here or in chat. However I remember that I had asked courteously to @egreg to change, for my tastes, the default \partial ...
20 views

### Remove multicolumn from Tabular

I'm trying to remove the first column (RoE) in this example: \documentclass[11pt]{article} \usepackage{multirow} \usepackage{tabularx} \usepackage{booktabs} \begin{document} \begin{table}[htbp] \...
31 views

### pgfplots - scatter small and similar values

I am trying to scatter the small and similar data with this code: \begin{tikzpicture} \begin{axis}[ xlabel={$$\displaystyle (\Delta t)^4$$}, xmajorgrids, xmin=-4.96554799726869e-06, xmax=0....
38 views

### How to mimic this pseudo code?

I am trying to mimic this algorithm but the layout is not working. How can I get the same layout (or something close to it)? See code below picture. I am using the package algo and the algo.sty link ...
23 views

### Can I configure latexmk to respect the TS-program directive?

I like latexmk but I use a variety of engines on files in the same folder. I'm trying to write a latexmkrc file that will look in the first few lines of the tex file for something like % !TEX TS-...
15 views

### Producing curved lines connecting AVMs

I'd like to have curved lines connecting AVMs and I currently have the following: \documentclass[11pt]{article} \usepackage{graphicx} \usepackage{avm} \usepackage{tree-dvips} \begin{document} \...
48 views

### Strange errors in tikz

I am trying to draw a flowchart with tikz. Below is my try. I am getting some strange errors. Could you help me? \documentclass[a4paper, 11pt]{article} \usepackage[a4paper,left=3cm,right=3cm,top=3cm,...
74 views

### Tikz: Impulse response vs. pole location

I'm wondering how getting started to type this Impulse response vs. pole location map in Tikz. it is very similar to the Poincaré-Diagram at: http://www.texample.net/tikz/examples/poincare/ ...
100 views

### Historical imperfections of (La)TeX [on hold]

Assume for a moment that all TeX literature, TeX software, TeX files etc. got destroyed in some global cataclysm. All information about TeX survives only in the mind of a few TeX gurus, or something ...
39 views

### Number of long equation not below but above it

Is there a way to display the number of a long equation (which usually appears below it if place is missing) above the equation? That is, instead of what would appear if you compile the code below ...
17 views

### Labeling a line in a flalign* enviroment

I would like to label the last line of this computation (and several longer ones), so I may use them as equations, like so: \begin{flalign*} \Gamma^{l}_{js}P^{j}Q^{s} &= \frac{1}{2}(\Gamma^{l}_{...
25 views

### Option clash for package graphicx

I am facing the above error message. Any who can help me. \documentclass[10pt]{amsart} \usepackage{mathrsfs} \usepackage{amstext} \usepackage{amscd} \usepackage{latexsym} \usepackage{amsfonts} \...
90 views

### Tikz: Arranging of a Table with Tikz elements

I'm trying to set an Table with CircuiTikz Elements. The table looks like this: and i want it to look like that: So i want to have everything centered in one row, and a newline at the "leitend" and ...
18 views

### Linespacing exception for tables and itemize and enumerate

With \setlength{\parindent}{4em} \setlength{\parskip}{1em} \renewcommand{\baselinestretch}{2.0} I am able to set the linespacing of my whole document. But I want to have my tables and itemize/...
21 views

### Customizing biblatex+biber to obtain THESISNAME and bibliographic dash

I have discovered biblatex and biber just a few months ago, they are fabulous resources but unfortunately I haven't found yet a resource explaining how to customize them. I'm using natbib syntax, and ...
13 views

### How to set different headers for different slides in beamer

I designed a few slides for a quiz show that I hosted. This question is about editing the headers differently in each slide. For reference, please find my output pdf here. In the first slide, the ...
29 views

### Acro package conflicts with something

I'm writing my document and I want to include a list of acronyms using acro package. When I try to compile it with XeTeX an error emerges: Command \sectionformat undefined. Here is minimal example to ...
31 views

### Text near to equations

I am trying to get this: My problem is the space between null_array and [n][n] MWE: \documentclass{standalone} \usepackage[utf8]{inputenc} \usepackage{amsmath} % \usepackage{amssymb} \usepackage[...
156 views

### Drawing some fruits with tikz

I am lacking these fruits: MWE from Mark Wibrow \documentclass[tikz,border=5]{standalone} \usepackage{xcolor-material} \usetikzlibrary{fit} \tikzset{% apple/.pic={ \fill [MaterialBrown] (-1/8,0) ...
23 views

### How to insert additional words or marks above a certain text and between lines?

I want to insert additional words or marks above a certain text and between lines as in the example below (k1, k2, k3). Some similar questions suggest TikZ would solve this. But I am not familiar ...
30 views

### drawing objects size is too small

\documentclass[12pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{tikz} \usetikzlibrary{calc} \...
35 views

### How to draw a two dimensional graph in LaTeX? [duplicate]

I have a set of data containing x-values and y-values. Say x=1,3,5,7,9 and y=26,28,30,28,26. How to plot it in LaTeX? The graph will be a straight line increasing till x=5, and then will start ...
33 views

### How to write music notes with LaTeX [duplicate]

How to write this musician notes with LaTeX? Please give me some examples and instructions.
31 views

### To cancel a space between a 'begin' function and the main text

How to cancel the space between '\begin{multicols}' and the paragraph above？
25 views

### Page numbering adjustment in article

Question: Here i am working with an article (in which i am not using \titlepage and \tableofcontents). My question is i wish to give page number from second page (after title page) by Page 1 of 10. ...
11 views

After patching (manually, i.e, directly editing memoir's code), this: It should look like this: I tried to patch the memoir using xpatch. This patch I did would work if it was finding the correct ...