# All Questions

237,861 questions
Filter by
Sorted by
Tagged with
1 vote
3 views

### Different exponent formatting for x and y axes in pgfplots

I know it's possible to format the exponent of the log axis tick marks using log plot exponent style, but this affects both the x and y axes. Is there a way to give different specifications for each. ...
• 662
6 views

### Place algorithm environment directly under sections/subsections

Algorithm environment is placed wrong, not in the place I want it to be (directly under subsection statement). I am aware of popular answers about the problem like using float package and [H] ...
• 159
2 views

### Cannot decipher unbalanced body or paragraph tag issue using make4ht

I cannot figure out why make4ht conversion gives a DOM parsing failure. System: macOS with TeXShop via TeXLive-2022 (all latest versions recently updated) MWE with all configurations (in case a ...
10 views

### Side-by-side captions in minipage run too long, don't wrap to second line

I'm writing some proceedings based on the style guide here. I have two images which I want to place side-by-side in my article, but when I do, the captions don't wrap onto multiple lines but overlap ...
• 151
22 views

### Iterate through the tokens of a list not known in advance (\@for + \csname)

If I want to iterate through the tokens of \myList I can simply do \def\myList{one,two,three} \makeatletter \newcommand{\iterateThroughMyList}{% \@tempswafalse \@for\next:=\myList\do{% ...
• 143
21 views

### Fancyhdr not working in TeX Live

I have recently added the fancyhdr package (v4.0.3, i.e. latest version) to my application code and it works on Windows 10 with MiKTeX (current version). My application always worked also on Ubuntu 20....
• 107
9 views

### adding currency symbol to "Einzelpreis" in rechnung.sty

I am using the rechnung.sty package to write invoices and would like the currency symbol to appear no only in the "Gesamtpreis" column but also in the "Einzelpreis" column. From ...
32 views

### I need help with latex tiKz code for drawing 3 graphs on the same plane with nodes

I am relative new on latex, I therefore request somebody to assist with a code of drawing three graphs (see attached picture): Below is the MWE: \documentclass[12pt]{article} \usepackage{syntonly} \...
22 views

### Font specification works in XeTeX but not LuaTeX

I am writing some package code that will select the Montserrat family of fonts. I downloaded and installed the zip file of fonts available here. Here is an MWE: \documentclass{article} \RequirePackage{...
• 43.3k
26 views

### TikZ-Feynman line with mixed styles

I'm trying to draw Feynman diagrams like the ones in this article with tikz-feynman: I don't know how to make these edges that switch from straight to wiggly. I suppose I could break them up as two ...
• 121
33 views

### Converting bitmap diagrams into TikZ

I have some basic experience with LaTeX and used it to help publish the below volume, and others… Hardback: https://www.amazon.co.uk/Chris-Langans-Major-Papers-1989/dp/097191625X/ The hardback edition ...
• 59
27 views

### How to draw a neural network vertically [closed]

I'm looking to create something like this in TikZ environment. I have checked the neural network package, but I think it can't do it.
24 views

### How to automatically wrap lines with multicolumn and longtable?

How can I automatically wrap lines in longtable with multi column? Below is my code, which doesn't wrap. Also, how can I decrease the font size? \documentclass{article} \usepackage{longtable} \...
• 137
29 views

### pgfplots - color part of bars above given value different colour

I have written the latex commands below to produce a bar plot shown in the screenshot. What I want to do next is to colour each of the highlighted tip of the bar with a stronger colour as shown in the ...
• 1,926
74 views

### Looking for how to draw that diagram in TikZ

I'm looking to create something like this in TikZ environment. Im kind of stuck with the relations to each other: it seems weird, positioning one below the other, when unsure if all the block will be ...
• 41
62 views

### Does \ifx compare conditionals differently than other tokens?

I'm getting an unexpected result with parsing loop that uses \ifx. My understanding is that, for control-sequences, \ifx looks for "top level" equivalence and the same modifiers like \long. ...
• 151
29 views

### Table error: misplaced \omit

I'm trying to create a table, but I ran into a problem with Misplaced \omit. \sp@n ->\span \omit \advance @multicnt \m@ne` This is my code: \documentclass[11pt]{article} \usepackage{...
46 views

### Redirect tex.print output to a file

I want to redirect tex.print output to a file to collect and reuse the produced LaTeX material : the mwe : \documentclass{article} \begin{document} essai \directlua{require("essai.lua")} ...
• 16.5k
1 vote
41 views

### Random number shows up in cross-reference

I'm looking to cross-reference a table located in the appendix while inside the section before the appendix. When I do this, however, it says "Tabelle 2 6" instead of the desired "...
• 11
23 views

### Wasn't there a way to cite multiple chapters of a book referencing the book's entry rather than redundantly repeating information?

I vaguely remember but can't find on line that there was some "correct" way to cite multiple chapters in the same book. First you would enter the book as a book, then you would reference ...
1 vote
29 views

### Memoir removing chapter numbering but keeping appendix numbering

I am creating a labbook for which the \part is the year, the \chapter is the month and the \section is the specific day. This is how my document currently looks: I managed to get rid of the chapter ...
61 views

### How to create a LaTeX template for writing a mathematical article?

I have to write a mathematical article that includes Theorems. I want to write in such a way that my paragraphs span the whole page. I am attaching the image which I would like to replicate in my ...
60 views

### How to draw three-phase transformers like the one in the picture?

How to draw three-phase transformers like the one in the picture? I managed at most to make this code, which produces: \documentclass{article} \usepackage{circuitikz} \usepackage{...
70 views

### listings package line-breaking issues, with Unicode characters

When I use listings, to display code with Russian comments, in a literate block, I obtain invalid line-breaking, on whitespace characters. Please refer to the below MWE, for an example, which compiles ...
• 723
20 views

### How can I put any svg local files into gitlab so that it can be opened and referenced at any time? [closed]

How can I put any svg file into gitlab so that it can be opened and referenced at any time? Similar to this example：https://agrahn.gitlab.io/svg/texsx-469409.svg This way I can reference the svg on ...
16 views

### Change the title of the mdtheorem box

I have the following code for an infobox. I would like to change the title of the infobox, e.g. not have it say Definition 1.1 but something different, so the title should fit the content. ...
• 105
22 views

### \textbullet with sfdefault will display square bullet [duplicate]

When selecting sfdefault \textbullet returns a square. I need a round bullet similar to the one in the default serif font. \documentclass[a4paper]{article} \setlength{\parindent}{0pt} \begin{document}...
• 584
1 vote
40 views

### How can I number figures and tables by chapter in LaTeX?

I have been trying to label my figures and tables in LaTeX according to the number of the chapter. For example, the second figure of the first chapter should be Figure 1.2. Currently the numbering is ...
27 views

### Argument of � has an extra } [duplicate]

The error is as follows )) (C:\Program Files\MiKTeX\tex/latex-dev/graphics\mathcolor.ltx)) ! Argument of � has an extra }. <inserted text> \par l.8 \end{document} ...
9 views

### Expand command in pgfplots axis options

Depending on a boolean flag, I would like to set axis options like in the following example: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \usepackage{xparse} \usepackage{...
• 3,249
10 views

### How to cite with only year inside brackets, and not the name? [duplicate]

I would like to cite with only the year within parentheses, however, the result is that both name and year come within parentheses. E.g. (Breusch, 1978), but I'd like this to be Breusch (1978). I have ...
24 views

### How to Draw Moon-Sickle in PSTricks

I am trying to draw a picture with some sort of Moon-Sickle in PSTricks, but I am not able to connect the circle segments together. \documentclass[pstricks]{standalone} \definecolor{ctcolorblack}{...
• 41
16 views

### List of Abbreviations title not showing

I have a problem with the list of abbreviations. I can see it in the table of contents, but it is not showing the title. I do not see the title when I go to the page. I have used the following code: \...
14 views

### How to install the 'abstract' BibTeX style?

How can I activate the BibTeX style abstract? I think with \bibliographystyle, but how to install it? It seems to be absent from my TeX Live installation.
• 273
22 views

### Automatically generate two-page index entries

I'm writing a text where there will be several index entries for short biographies. The index entries for persons are supposed to be in small caps and the biography entries will get page numbers in ...
• 1,648
118 views

### How can I use more colors in TikZ?

There are only white, black, red, green, blue, cyan, magenta, and yellow. How can I add others? (I would like to use Green (different from green).)
• 281
19 views

### Missing pgfplots.statistics.sty

I'm planning to add box plots to a paper of mine. Before I do so, I tried to get the shortest box plot code I could think of to compile. I'm not posting it here though, because even before the ...
• 1
42 views

### LuaLaTeX fails with package icomma and Font TeX Gyre Termes Math

I came across an error as shown in this minimal example. The code does not produce an error, but LuaLaTeX ends in a loop and must be killed. \documentclass{scrbook} \usepackage{amsmath} \usepackage{...
41 views

### Extend a given shape from the UML-TikZ package with the path picture property

I call the style definition mystyle in line 20. As you can see, I pass a \filldraw command as an argument to the style definition mystyle. That way I want to achieve a gray circle to be displayed in ...
• 133
36 views

### Numbering in aligned environment

I'm trying to typeset a multi-line numbered equation with the following properties: first line is aligned left leftmost characters of all the remaining lines are vertically aligned, and the whole ...
• 560
150 views

### Multiply a fraction

It is necessary to multiply the fraction in accordance with the figure. \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english]{babel} % локализация и ...
• 327
1 vote
30 views

### Change reference title from number to year in elsarticle class

In elsarticle class I get this error: Please check the citation and reference style. Please use citation style as (authors, year) instead of [number]. Groups of references should be listed first ...
• 219
33 views

### Convert LaTeX to Word with Pandoc, including citations and bibliography

I'm trying to convert a LaTeX document ("latex-to-word.tex") to Word using pandoc. Unfortunately, I cannot print neither the reference list nor parenthetical citations in the Word file. I'm ...
29 views

### Use of multicols in listing causes unexpected alignment

The sole difference of the following two codes is the use of multicols=2. And this causes the alignment of parbox in Code 1 wrong -- though alignment t is given, the typeset seems like alignment b. ...
• 2,435
1 vote
24 views

### Cyrillic calligraphic font

I know how to write beautiful fonts in Latin, but I can't find Cyrillic. Here are the various fonts: https://tug.org/FontCatalogue/calligraphicalfonts.html \documentclass[french]{article} \usepackage[...
• 327
33 views

### Working with geometry and fontspec packages under the bookcover package

Problem Description The following code from page 30-31 of the bookcover package documentation can run only under pdflatex as suggested by one of the comments in it: \documentclass[ coverwidth=150mm, ...
• 330
48 views

### Nucleotide sequences exceed table

My problem is that the nucleotide sequences do not stay within the table using Overleaf. The table is not the best and I simply wanted to illustrate the problem. \begin{table}[h] \centering \begin{...
23 views

### Babel & Bilingual fonts

I am using Babel package to support Arabic and English in one document. But I am not able to identify a multilingual font that supports Bold typeface. The code below works fine, but lacks the bold ...
• 721
28 views

### How to have fixed, consistent and uniform whitespace around captions

I want to have my tables, figures, and listings have the same amount of white space above or below captions. At the moment space is different for tables, figures and listings. I am looking for a ...
• 330